@u-gis/ue 3.0.7-beta.1

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 (233) hide show
  1. package/README.md +2 -0
  2. package/dist/earthsdk3-ue.iife.js +348 -0
  3. package/dist/earthsdk3-ue.js +5253 -0
  4. package/dist/earthsdk3-ue.umd.cjs +21 -0
  5. package/dist/types/ESUeViewer/ESUeViewer.d.ts +537 -0
  6. package/dist/types/ESUeViewer/ESUeViewer.d.ts.map +1 -0
  7. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/ESMsgWebSocketWrapper.d.ts +16 -0
  8. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/ESMsgWebSocketWrapper.d.ts.map +1 -0
  9. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewer.d.ts +41 -0
  10. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewer.d.ts.map +1 -0
  11. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewerWrapper.d.ts +20 -0
  12. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewerWrapper.d.ts.map +1 -0
  13. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/dataFormats.d.ts +66 -0
  14. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/dataFormats.d.ts.map +1 -0
  15. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/index.d.ts +50 -0
  16. package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/index.d.ts.map +1 -0
  17. package/dist/types/ESUeViewer/Viewers/H5Viewer/DLViewer.d.ts +25 -0
  18. package/dist/types/ESUeViewer/Viewers/H5Viewer/DLViewer.d.ts.map +1 -0
  19. package/dist/types/ESUeViewer/Viewers/H5Viewer/ViewerH5Instance.d.ts +7 -0
  20. package/dist/types/ESUeViewer/Viewers/H5Viewer/ViewerH5Instance.d.ts.map +1 -0
  21. package/dist/types/ESUeViewer/Viewers/H5Viewer/data.d.ts +2 -0
  22. package/dist/types/ESUeViewer/Viewers/H5Viewer/data.d.ts.map +1 -0
  23. package/dist/types/ESUeViewer/Viewers/H5Viewer/index.d.ts +42 -0
  24. package/dist/types/ESUeViewer/Viewers/H5Viewer/index.d.ts.map +1 -0
  25. package/dist/types/ESUeViewer/Viewers/H5Viewer/utils.d.ts +6 -0
  26. package/dist/types/ESUeViewer/Viewers/H5Viewer/utils.d.ts.map +1 -0
  27. package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManager.d.ts +36 -0
  28. package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManager.d.ts.map +1 -0
  29. package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManagerWrapper.d.ts +21 -0
  30. package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManagerWrapper.d.ts.map +1 -0
  31. package/dist/types/ESUeViewer/Viewers/INNPSViewer/createMsgInput.d.ts +4 -0
  32. package/dist/types/ESUeViewer/Viewers/INNPSViewer/createMsgInput.d.ts.map +1 -0
  33. package/dist/types/ESUeViewer/Viewers/INNPSViewer/index.d.ts +44 -0
  34. package/dist/types/ESUeViewer/Viewers/INNPSViewer/index.d.ts.map +1 -0
  35. package/dist/types/ESUeViewer/Viewers/index.d.ts +4 -0
  36. package/dist/types/ESUeViewer/Viewers/index.d.ts.map +1 -0
  37. package/dist/types/ESUeViewer/index.d.ts +3 -0
  38. package/dist/types/ESUeViewer/index.d.ts.map +1 -0
  39. package/dist/types/ESUeViewer/inner/ReactProps.d.ts +106 -0
  40. package/dist/types/ESUeViewer/inner/ReactProps.d.ts.map +1 -0
  41. package/dist/types/ESUeViewer/inner/UeLocalViewer.d.ts +19 -0
  42. package/dist/types/ESUeViewer/inner/UeLocalViewer.d.ts.map +1 -0
  43. package/dist/types/ESUeViewer/inner/ViewerCreating.d.ts +8 -0
  44. package/dist/types/ESUeViewer/inner/ViewerCreating.d.ts.map +1 -0
  45. package/dist/types/ESUeViewer/inner/ViewerInstance.d.ts +7 -0
  46. package/dist/types/ESUeViewer/inner/ViewerInstance.d.ts.map +1 -0
  47. package/dist/types/ESUeViewer/inner/ViewerLocalInstance.d.ts +7 -0
  48. package/dist/types/ESUeViewer/inner/ViewerLocalInstance.d.ts.map +1 -0
  49. package/dist/types/ESUeViewer/uemsg/CallUeFuncs.d.ts +192 -0
  50. package/dist/types/ESUeViewer/uemsg/CallUeFuncs.d.ts.map +1 -0
  51. package/dist/types/ESUeViewer/uemsg/UeCloudViewerBase.d.ts +8 -0
  52. package/dist/types/ESUeViewer/uemsg/UeCloudViewerBase.d.ts.map +1 -0
  53. package/dist/types/ESUeViewer/uemsg/UeEventsType.d.ts +106 -0
  54. package/dist/types/ESUeViewer/uemsg/UeEventsType.d.ts.map +1 -0
  55. package/dist/types/ESUeViewer/uemsg/UeFuncsType.d.ts +929 -0
  56. package/dist/types/ESUeViewer/uemsg/UeFuncsType.d.ts.map +1 -0
  57. package/dist/types/ESUeViewer/uemsg/UeMessage.d.ts +42 -0
  58. package/dist/types/ESUeViewer/uemsg/UeMessage.d.ts.map +1 -0
  59. package/dist/types/ESUeViewer/uemsg/index.d.ts +6 -0
  60. package/dist/types/ESUeViewer/uemsg/index.d.ts.map +1 -0
  61. package/dist/types/UeObjects/base/UeESGeoVector/index.d.ts +30 -0
  62. package/dist/types/UeObjects/base/UeESGeoVector/index.d.ts.map +1 -0
  63. package/dist/types/UeObjects/base/UeESLabel/index.d.ts +7 -0
  64. package/dist/types/UeObjects/base/UeESLabel/index.d.ts.map +1 -0
  65. package/dist/types/UeObjects/base/UeESLocalVector/index.d.ts +30 -0
  66. package/dist/types/UeObjects/base/UeESLocalVector/index.d.ts.map +1 -0
  67. package/dist/types/UeObjects/base/UeESLocalVector2D/index.d.ts +7 -0
  68. package/dist/types/UeObjects/base/UeESLocalVector2D/index.d.ts.map +1 -0
  69. package/dist/types/UeObjects/base/UeESObjectWithLocation/index.d.ts +7 -0
  70. package/dist/types/UeObjects/base/UeESObjectWithLocation/index.d.ts.map +1 -0
  71. package/dist/types/UeObjects/base/UeESObjectWithLocation/types.d.ts +30 -0
  72. package/dist/types/UeObjects/base/UeESObjectWithLocation/types.d.ts.map +1 -0
  73. package/dist/types/UeObjects/base/UeESSceneObject/index.d.ts +11 -0
  74. package/dist/types/UeObjects/base/UeESSceneObject/index.d.ts.map +1 -0
  75. package/dist/types/UeObjects/base/UeESSceneObject/types.d.ts +4 -0
  76. package/dist/types/UeObjects/base/UeESSceneObject/types.d.ts.map +1 -0
  77. package/dist/types/UeObjects/base/UeESVisualObject/index.d.ts +7 -0
  78. package/dist/types/UeObjects/base/UeESVisualObject/index.d.ts.map +1 -0
  79. package/dist/types/UeObjects/base/index.d.ts +8 -0
  80. package/dist/types/UeObjects/base/index.d.ts.map +1 -0
  81. package/dist/types/UeObjects/general/UeES3DTileset/index.d.ts +13 -0
  82. package/dist/types/UeObjects/general/UeES3DTileset/index.d.ts.map +1 -0
  83. package/dist/types/UeObjects/general/UeESAlarm/index.d.ts +8 -0
  84. package/dist/types/UeObjects/general/UeESAlarm/index.d.ts.map +1 -0
  85. package/dist/types/UeObjects/general/UeESApertureEffect/index.d.ts +8 -0
  86. package/dist/types/UeObjects/general/UeESApertureEffect/index.d.ts.map +1 -0
  87. package/dist/types/UeObjects/general/UeESAreaMeasurement/index.d.ts +8 -0
  88. package/dist/types/UeObjects/general/UeESAreaMeasurement/index.d.ts.map +1 -0
  89. package/dist/types/UeObjects/general/UeESBlastParticleSystem/index.d.ts +8 -0
  90. package/dist/types/UeObjects/general/UeESBlastParticleSystem/index.d.ts.map +1 -0
  91. package/dist/types/UeObjects/general/UeESBoxClipping/index.d.ts +8 -0
  92. package/dist/types/UeObjects/general/UeESBoxClipping/index.d.ts.map +1 -0
  93. package/dist/types/UeObjects/general/UeESCameraView/index.d.ts +8 -0
  94. package/dist/types/UeObjects/general/UeESCameraView/index.d.ts.map +1 -0
  95. package/dist/types/UeObjects/general/UeESCameraVisibleRange/index.d.ts +8 -0
  96. package/dist/types/UeObjects/general/UeESCameraVisibleRange/index.d.ts.map +1 -0
  97. package/dist/types/UeObjects/general/UeESCar/index.d.ts +8 -0
  98. package/dist/types/UeObjects/general/UeESCar/index.d.ts.map +1 -0
  99. package/dist/types/UeObjects/general/UeESClassification/index.d.ts +8 -0
  100. package/dist/types/UeObjects/general/UeESClassification/index.d.ts.map +1 -0
  101. package/dist/types/UeObjects/general/UeESClippingPlane/index.d.ts +8 -0
  102. package/dist/types/UeObjects/general/UeESClippingPlane/index.d.ts.map +1 -0
  103. package/dist/types/UeObjects/general/UeESDataMesh/index.d.ts +8 -0
  104. package/dist/types/UeObjects/general/UeESDataMesh/index.d.ts.map +1 -0
  105. package/dist/types/UeObjects/general/UeESDatasmithRuntimeModel/index.d.ts +8 -0
  106. package/dist/types/UeObjects/general/UeESDatasmithRuntimeModel/index.d.ts.map +1 -0
  107. package/dist/types/UeObjects/general/UeESDirectionMeasurement/index.d.ts +8 -0
  108. package/dist/types/UeObjects/general/UeESDirectionMeasurement/index.d.ts.map +1 -0
  109. package/dist/types/UeObjects/general/UeESDistanceMeasurement/index.d.ts +8 -0
  110. package/dist/types/UeObjects/general/UeESDistanceMeasurement/index.d.ts.map +1 -0
  111. package/dist/types/UeObjects/general/UeESDynamicWater/index.d.ts +8 -0
  112. package/dist/types/UeObjects/general/UeESDynamicWater/index.d.ts.map +1 -0
  113. package/dist/types/UeObjects/general/UeESEntityCluster/index.d.ts +8 -0
  114. package/dist/types/UeObjects/general/UeESEntityCluster/index.d.ts.map +1 -0
  115. package/dist/types/UeObjects/general/UeESExcavate/index.d.ts +8 -0
  116. package/dist/types/UeObjects/general/UeESExcavate/index.d.ts.map +1 -0
  117. package/dist/types/UeObjects/general/UeESFireParticleSystem/index.d.ts +8 -0
  118. package/dist/types/UeObjects/general/UeESFireParticleSystem/index.d.ts.map +1 -0
  119. package/dist/types/UeObjects/general/UeESForestTileset/index.d.ts +8 -0
  120. package/dist/types/UeObjects/general/UeESForestTileset/index.d.ts.map +1 -0
  121. package/dist/types/UeObjects/general/UeESGaussianSplatting/index.d.ts +8 -0
  122. package/dist/types/UeObjects/general/UeESGaussianSplatting/index.d.ts.map +1 -0
  123. package/dist/types/UeObjects/general/UeESGeoDiv/index.d.ts +9 -0
  124. package/dist/types/UeObjects/general/UeESGeoDiv/index.d.ts.map +1 -0
  125. package/dist/types/UeObjects/general/UeESGeoExtrudedPolygon/index.d.ts +8 -0
  126. package/dist/types/UeObjects/general/UeESGeoExtrudedPolygon/index.d.ts.map +1 -0
  127. package/dist/types/UeObjects/general/UeESGeoJson/index.d.ts +8 -0
  128. package/dist/types/UeObjects/general/UeESGeoJson/index.d.ts.map +1 -0
  129. package/dist/types/UeObjects/general/UeESGeoLineString/index.d.ts +8 -0
  130. package/dist/types/UeObjects/general/UeESGeoLineString/index.d.ts.map +1 -0
  131. package/dist/types/UeObjects/general/UeESGeoPolygon/index.d.ts +8 -0
  132. package/dist/types/UeObjects/general/UeESGeoPolygon/index.d.ts.map +1 -0
  133. package/dist/types/UeObjects/general/UeESGeoRectangle/index.d.ts +8 -0
  134. package/dist/types/UeObjects/general/UeESGeoRectangle/index.d.ts.map +1 -0
  135. package/dist/types/UeObjects/general/UeESGeoWater/index.d.ts +8 -0
  136. package/dist/types/UeObjects/general/UeESGeoWater/index.d.ts.map +1 -0
  137. package/dist/types/UeObjects/general/UeESGltfModel/index.d.ts +16 -0
  138. package/dist/types/UeObjects/general/UeESGltfModel/index.d.ts.map +1 -0
  139. package/dist/types/UeObjects/general/UeESHeightMeasurement/index.d.ts +8 -0
  140. package/dist/types/UeObjects/general/UeESHeightMeasurement/index.d.ts.map +1 -0
  141. package/dist/types/UeObjects/general/UeESHuman/index.d.ts +8 -0
  142. package/dist/types/UeObjects/general/UeESHuman/index.d.ts.map +1 -0
  143. package/dist/types/UeObjects/general/UeESHumanPoi/index.d.ts +7 -0
  144. package/dist/types/UeObjects/general/UeESHumanPoi/index.d.ts.map +1 -0
  145. package/dist/types/UeObjects/general/UeESImageLabel/index.d.ts +12 -0
  146. package/dist/types/UeObjects/general/UeESImageLabel/index.d.ts.map +1 -0
  147. package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts +7 -0
  148. package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts.map +1 -0
  149. package/dist/types/UeObjects/general/UeESLevelRuntimeModel/index.d.ts +8 -0
  150. package/dist/types/UeObjects/general/UeESLevelRuntimeModel/index.d.ts.map +1 -0
  151. package/dist/types/UeObjects/general/UeESLocalCircle/index.d.ts +8 -0
  152. package/dist/types/UeObjects/general/UeESLocalCircle/index.d.ts.map +1 -0
  153. package/dist/types/UeObjects/general/UeESLocalPolygon/index.d.ts +8 -0
  154. package/dist/types/UeObjects/general/UeESLocalPolygon/index.d.ts.map +1 -0
  155. package/dist/types/UeObjects/general/UeESLocalPolygonZ/index.d.ts +8 -0
  156. package/dist/types/UeObjects/general/UeESLocalPolygonZ/index.d.ts.map +1 -0
  157. package/dist/types/UeObjects/general/UeESLocalRectangle/index.d.ts +8 -0
  158. package/dist/types/UeObjects/general/UeESLocalRectangle/index.d.ts.map +1 -0
  159. package/dist/types/UeObjects/general/UeESLocalSkyBox/index.d.ts +8 -0
  160. package/dist/types/UeObjects/general/UeESLocalSkyBox/index.d.ts.map +1 -0
  161. package/dist/types/UeObjects/general/UeESLocationMeasurement/index.d.ts +8 -0
  162. package/dist/types/UeObjects/general/UeESLocationMeasurement/index.d.ts.map +1 -0
  163. package/dist/types/UeObjects/general/UeESMsTileset/index.d.ts +8 -0
  164. package/dist/types/UeObjects/general/UeESMsTileset/index.d.ts.map +1 -0
  165. package/dist/types/UeObjects/general/UeESNavigator/index.d.ts +7 -0
  166. package/dist/types/UeObjects/general/UeESNavigator/index.d.ts.map +1 -0
  167. package/dist/types/UeObjects/general/UeESPath/index.d.ts +33 -0
  168. package/dist/types/UeObjects/general/UeESPath/index.d.ts.map +1 -0
  169. package/dist/types/UeObjects/general/UeESPipeFence/index.d.ts +8 -0
  170. package/dist/types/UeObjects/general/UeESPipeFence/index.d.ts.map +1 -0
  171. package/dist/types/UeObjects/general/UeESPipeline/index.d.ts +8 -0
  172. package/dist/types/UeObjects/general/UeESPipeline/index.d.ts.map +1 -0
  173. package/dist/types/UeObjects/general/UeESPipeserTileset/index.d.ts +8 -0
  174. package/dist/types/UeObjects/general/UeESPipeserTileset/index.d.ts.map +1 -0
  175. package/dist/types/UeObjects/general/UeESPit/index.d.ts +8 -0
  176. package/dist/types/UeObjects/general/UeESPit/index.d.ts.map +1 -0
  177. package/dist/types/UeObjects/general/UeESPoi2D/index.d.ts +8 -0
  178. package/dist/types/UeObjects/general/UeESPoi2D/index.d.ts.map +1 -0
  179. package/dist/types/UeObjects/general/UeESPoi3D/index.d.ts +8 -0
  180. package/dist/types/UeObjects/general/UeESPoi3D/index.d.ts.map +1 -0
  181. package/dist/types/UeObjects/general/UeESPoiTileset/index.d.ts +12 -0
  182. package/dist/types/UeObjects/general/UeESPoiTileset/index.d.ts.map +1 -0
  183. package/dist/types/UeObjects/general/UeESPolygonFence/index.d.ts +8 -0
  184. package/dist/types/UeObjects/general/UeESPolygonFence/index.d.ts.map +1 -0
  185. package/dist/types/UeObjects/general/UeESPolygonFlattenedPlane/index.d.ts +8 -0
  186. package/dist/types/UeObjects/general/UeESPolygonFlattenedPlane/index.d.ts.map +1 -0
  187. package/dist/types/UeObjects/general/UeESPolygonWithHole/index.d.ts +8 -0
  188. package/dist/types/UeObjects/general/UeESPolygonWithHole/index.d.ts.map +1 -0
  189. package/dist/types/UeObjects/general/UeESRtsFeatureEditing/index.d.ts +10 -0
  190. package/dist/types/UeObjects/general/UeESRtsFeatureEditing/index.d.ts.map +1 -0
  191. package/dist/types/UeObjects/general/UeESRtsTileset/index.d.ts +8 -0
  192. package/dist/types/UeObjects/general/UeESRtsTileset/index.d.ts.map +1 -0
  193. package/dist/types/UeObjects/general/UeESSeparateFoliage/index.d.ts +8 -0
  194. package/dist/types/UeObjects/general/UeESSeparateFoliage/index.d.ts.map +1 -0
  195. package/dist/types/UeObjects/general/UeESStaticMesh/index.d.ts +8 -0
  196. package/dist/types/UeObjects/general/UeESStaticMesh/index.d.ts.map +1 -0
  197. package/dist/types/UeObjects/general/UeESSubmergingAnalysis/index.d.ts +8 -0
  198. package/dist/types/UeObjects/general/UeESSubmergingAnalysis/index.d.ts.map +1 -0
  199. package/dist/types/UeObjects/general/UeESSunshineAnalysis/index.d.ts +8 -0
  200. package/dist/types/UeObjects/general/UeESSunshineAnalysis/index.d.ts.map +1 -0
  201. package/dist/types/UeObjects/general/UeESSurfaceAreaMeasurement/index.d.ts +8 -0
  202. package/dist/types/UeObjects/general/UeESSurfaceAreaMeasurement/index.d.ts.map +1 -0
  203. package/dist/types/UeObjects/general/UeESTerrainLayer/index.d.ts +14 -0
  204. package/dist/types/UeObjects/general/UeESTerrainLayer/index.d.ts.map +1 -0
  205. package/dist/types/UeObjects/general/UeESTextLabel/index.d.ts +8 -0
  206. package/dist/types/UeObjects/general/UeESTextLabel/index.d.ts.map +1 -0
  207. package/dist/types/UeObjects/general/UeESUEWidget/index.d.ts +11 -0
  208. package/dist/types/UeObjects/general/UeESUEWidget/index.d.ts.map +1 -0
  209. package/dist/types/UeObjects/general/UeESUnrealActor/index.d.ts +7 -0
  210. package/dist/types/UeObjects/general/UeESUnrealActor/index.d.ts.map +1 -0
  211. package/dist/types/UeObjects/general/UeESUnrealActor/tipInfo.d.ts +3 -0
  212. package/dist/types/UeObjects/general/UeESUnrealActor/tipInfo.d.ts.map +1 -0
  213. package/dist/types/UeObjects/general/UeESVideoFusion/index.d.ts +8 -0
  214. package/dist/types/UeObjects/general/UeESVideoFusion/index.d.ts.map +1 -0
  215. package/dist/types/UeObjects/general/UeESViewShed/index.d.ts +8 -0
  216. package/dist/types/UeObjects/general/UeESViewShed/index.d.ts.map +1 -0
  217. package/dist/types/UeObjects/general/UeESViewerStatusBar/index.d.ts +7 -0
  218. package/dist/types/UeObjects/general/UeESViewerStatusBar/index.d.ts.map +1 -0
  219. package/dist/types/UeObjects/general/UeESVisibilityAnalysis/index.d.ts +8 -0
  220. package/dist/types/UeObjects/general/UeESVisibilityAnalysis/index.d.ts.map +1 -0
  221. package/dist/types/UeObjects/general/UeESVolumeMeasurement/index.d.ts +8 -0
  222. package/dist/types/UeObjects/general/UeESVolumeMeasurement/index.d.ts.map +1 -0
  223. package/dist/types/UeObjects/general/UeESWidget/index.d.ts +11 -0
  224. package/dist/types/UeObjects/general/UeESWidget/index.d.ts.map +1 -0
  225. package/dist/types/UeObjects/general/index.d.ts +72 -0
  226. package/dist/types/UeObjects/general/index.d.ts.map +1 -0
  227. package/dist/types/UeObjects/index.d.ts +3 -0
  228. package/dist/types/UeObjects/index.d.ts.map +1 -0
  229. package/dist/types/copyright.d.ts +14 -0
  230. package/dist/types/copyright.d.ts.map +1 -0
  231. package/dist/types/index.d.ts +4 -0
  232. package/dist/types/index.d.ts.map +1 -0
  233. package/package.json +57 -0
@@ -0,0 +1,348 @@
1
+ var EarthSDK3_UE=function(J,j){"use strict";var Ly=Object.defineProperty;var Ry=(J,j,At)=>j in J?Ly(J,j,{enumerable:!0,configurable:!0,writable:!0,value:At}):J[j]=At;var z=(J,j,At)=>Ry(J,typeof j!="symbol"?j+"":j,At);var At={exports:{}};/*! For license information please see xbsj-base.js.LICENSE.txt */var ku=At.exports,Fs;function Ku(){return Fs||(Fs=1,function(v,e){(function(t,n){v.exports=n()})(ku,()=>(()=>{var t={109:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}),w=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l};Object.defineProperty(A,"__esModule",{value:!0}),A.DebouncingDeprecated=void 0;var p=h(6891),u=h(1662),f=function(c){function a(i){i===void 0&&(i=300);var s=c.call(this,function(r){var o=r.progressFunc,l=(r.completeFunc,r.errorFunc,w((0,u.debounce)(function(){if(!s._lastDebounceValue)throw new Error("!this._lastDebounceValue");o([s._lastDebounceValue,s._debouncTimes]),s._debouncTimes=0},s._delayTime),2)),d=l[0],B=l[1];return s._d=d,function(){B()}})||this;return s._delayTime=i,s._debouncTimes=0,s}return g(a,c),Object.defineProperty(a.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),a.prototype.debounce=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=i,this._d&&this._d()):console.warn("Debouncing is not running!")},a}(p.ProcessingDeprecated);A.DebouncingDeprecated=f},146:function(C,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,_){B.__proto__=_}||function(B,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(B[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function B(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(B.prototype=d.prototype,new B)}),w=this&&this.__read||function(l,d){var B=typeof Symbol=="function"&&l[Symbol.iterator];if(!B)return l;var _,b,E=B.call(l),F=[];try{for(;(d===void 0||d-- >0)&&!(_=E.next()).done;)F.push(_.value)}catch(S){b={error:S}}finally{try{_&&!_.done&&(B=E.return)&&B.call(E)}finally{if(b)throw b.error}}return F};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObjectWithId=A.SceneObjectIdWatching=A.getSceneObjectReactFromId=A.SceneObjectFromId=void 0;var p=h(1662),u=h(2220),f=h(7372),c=h(3815),a=function(l){function d(B){var _=l.call(this)||this;_._id=B,_._sceneObject=_.disposeVar((0,f.react)(void 0)),_.dispose(function(){_._sceneObject.value=void 0});var b=u.SceneObject.getSceneObjById(_._id);return b&&(_._sceneObject.value=b),_.dispose(u.SceneObject.context.sceneObjCreatedEvent.disposableOn(function(E){E.id===_._id&&(_._sceneObject.value=E)})),_.dispose(u.SceneObject.context.sceneObjToDestroyEvent.disposableOn(function(E){E.id===_._id&&(_._sceneObject.value=void 0)})),_}return g(d,l),Object.defineProperty(d.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),d}(f.Destroyable);function i(l){var d=w((0,p.getReactFuncs)(l),3),B=d[0],_=(d[1],d[2]),b=(0,f.react)(void 0);return b.disposeVar(new c.ObjResettingWithEvent(_,function(){var E=B();if(E){var F=new a(E),S=function(){b.value=F.sceneObject};return S(),F.dispose(F.sceneObjectChanged.disposableOn(S)),F}b.value=void 0})),b}A.SceneObjectFromId=a,A.getSceneObjectReactFromId=i;var s=function(l){function d(B,_){var b=l.call(this)||this,E=b.disposeVar(i(B));return b.disposeVar(new c.ObjResettingWithEvent(E.changed,function(){var F=E.value;if(F)return _(F)})),b}return g(d,l),d}(f.Destroyable);A.SceneObjectIdWatching=s;var r=function(l){function d(B,_){var b=l.call(this)||this;b._id=B,b._sofi=b.disposeVar(new a(b._id));var E=function(){_.sceneObject=b._sofi.sceneObject};return E(),b.dispose(b._sofi.sceneObjectChanged.disposableOn(E)),b}return g(d,l),d}(f.Destroyable),o=function(l){function d(){var B=l.call(this)||this;return B._id=B.disposeVar((0,f.react)(void 0)),B._sceneObject=B.disposeVar((0,f.react)(void 0)),B._resetting=B.disposeVar(new c.ObjResettingWithEvent(B.idChanged,function(){var _=B.id;if(_!==void 0&&_!=="")return new r(_,B);B.sceneObject=void 0})),B}return g(d,l),Object.defineProperty(d.prototype,"id",{get:function(){return this._id.value},set:function(B){this._id.value=B},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(B){this._sceneObject.value=B},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),d}(f.Destroyable);A.SceneObjectWithId=o},172:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(6928),A),g(h(7445),A)},200:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivPoi=void 0;var w=h(7372),p=h(7372),u=h(7324),f=function(c){function a(i,s){var r=c.call(this)||this;return r._customDivClass=i,r._divContainer=s,r._show=!1,r.dispose(function(){r.show=!1}),r}return g(a,c),a.prototype._updateDivPoi=function(){if(this._show){var i=this.floatDiv;i.element.parentElement||this._divContainer.appendChild(i.element)}else{var s=this._floatDiv;s&&s.element.parentElement&&this._divContainer.removeChild(s.element)}},Object.defineProperty(a.prototype,"show",{get:function(){return this._show},set:function(i){this._show!==i&&(this._show=i,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(i))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"floatDiv",{get:function(){var i=this;if(!this._floatDiv){var s=(0,u.getFloatDivPool)(this._customDivClass).create();this.dispose(function(){(0,u.getFloatDivPool)(i._customDivClass).destroy(s)}),this._floatDiv=s}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new w.Event),this._showChanged},enumerable:!1,configurable:!0}),a}(p.Destroyable);A.DivPoi=f},312:(C,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.Intersect=void 0,(h=A.Intersect||(A.Intersect={})).OUTSIDE=-1,h.INTERSECTING=0,h.INSIDE=1},345:(C,A)=>{function h(m){var g=0|+m;if(g.toString()===m)return g}Object.defineProperty(A,"__esModule",{value:!0}),A.observeArray=void 0,A.observeArray=function(m,g){if(!Array.isArray(m))throw new Error("!Array.isArray(array)");return new Proxy(m,{set:function(w,p,u,f){var c=w;if(typeof p!="string")throw new Error("typeof key !== string");var a=h(p);if(a===void 0)return Reflect.set(c,p,u,f);if(a<0)throw new Error("n < 0 || n >= array.length");return!!g({type:c[a]===void 0?"insert":"update",index:a,oldValue:c[a],value:u})&&Reflect.set(w,p,u,f)},deleteProperty:function(w,p){var u=w;if(typeof p!="string")throw new Error("typeof key !== string");var f=h(p);if(f===void 0)return Reflect.deleteProperty(w,p);if(f<0||f>=u.length)throw new Error("n < 0 || n >= array.length");return!!g({type:"delete",index:f,oldValue:u[f],value:void 0})&&Reflect.deleteProperty(w,p)}})}},433:function(C,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(i){f={error:i}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.magicStrToUint32=void 0,A.magicStrToUint32=function(g){if(g.length>4)throw new Error("getMagic error! str.length > 4");return function(w){return m([],h(w),!1).reverse().reduce(function(p,u){return(p<<=8)+u.codePointAt(0)},0)}(g)}},476:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.some=void 0;var m=h(6301);A.some=function(g,w){return(0,m.forEachWithBreak)(g,function(p,u){return w(p,u)})}},507:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerClickDeprecated=void 0;var p=h(109),u=h(7372),f=h(2299),c=h(7372),a=function(i){function s(r){var o=i.call(this)||this;o._clickEvent=new c.Event,o._dbclickEvent=new c.Event,o._downEvent=new c.Event,o._upEvent=new c.Event,o._moveEvent=new c.Event,o._debouncing=new p.DebouncingDeprecated(300),o.dispose(function(){o._clickEvent.destroy(),o._dbclickEvent.destroy(),o._downEvent.destroy(),o._upEvent.destroy(),o._moveEvent.destroy(),o._debouncing.destroy()});var l=!1,d=[0,0],B=!1;o._debouncing.progressFunc=function(S){var U=w(S,2),T=w(U[0],3),Q=T[0],P=T[1],I=T[2],M=U[1];M===1?o._clickEvent.emit(Q,P,I):M>=2?o._dbclickEvent.emit(Q,P,I):console.error("point click should not be here!")},o._debouncing.start(),o.dispose(function(){o._debouncing.isRunning&&o._debouncing.cancel(),o._debouncing.destroy()});var _=function(S){l=!0;var U=w((0,f.getDomEventCurrentTargetPos)(S),2),T=U[0],Q=U[1];d[0]=T,d[1]=Q,o._downEvent.emit(T,Q,S)},b=function(S){var U=w((0,f.getDomEventCurrentTargetPos)(S),2),T=U[0],Q=U[1];l&&!B&&o._debouncing.debounce(T,Q,S),l=!1,B=!1,o._upEvent.emit(T,Q,S)},E=function(S){var U=w((0,f.getDomEventCurrentTargetPos)(S),2),T=U[0],Q=U[1];if(l&&!B){var P=w(d,2),I=P[0],M=P[1];(Math.abs(T-I)>3||Math.abs(Q-M)>3)&&(B=!0)}o._moveEvent.emit(T,Q,S)},F=function(){l=!1,B=!1};return r.addEventListener("pointerdown",_),r.addEventListener("pointerup",b),r.addEventListener("pointermove",E),r.addEventListener("pointerout",F),o.dispose(function(){r.removeEventListener("pointerdown",_),r.removeEventListener("pointerup",b),r.removeEventListener("pointermove",E),r.removeEventListener("pointerout",F)}),o}return g(s,i),Object.defineProperty(s.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),s}(u.Destroyable);A.PointerClickDeprecated=a},602:(C,A)=>{var h,m,g,w,p,u,f,c,a;Object.defineProperty(A,"__esModule",{value:!0}),A.Tween=void 0,(h=A.Tween||(A.Tween={})).Linear=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*i/o+s},(a=h.Quad||(h.Quad={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*(i/=o)*i+s},a.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),-r*(i/=o)*(i-2)+s},a.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),(i/=o/2)<1?r/2*i*i+s:-r/2*(--i*(i-2)-1)+s},(c=h.Cubic||(h.Cubic={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*(i/=o)*i*i+s},c.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*((i=i/o-1)*i*i+1)+s},c.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),(i/=o/2)<1?r/2*i*i*i+s:r/2*((i-=2)*i*i+2)+s},(f=h.Quart||(h.Quart={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*(i/=o)*i*i*i+s},f.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),-r*((i=i/o-1)*i*i*i-1)+s},f.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),(i/=o/2)<1?r/2*i*i*i*i+s:-r/2*((i-=2)*i*i*i-2)+s},(u=h.Quint||(h.Quint={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*(i/=o)*i*i*i*i+s},u.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*((i=i/o-1)*i*i*i*i+1)+s},u.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),(i/=o/2)<1?r/2*i*i*i*i*i+s:r/2*((i-=2)*i*i*i*i+2)+s},(p=h.Sine||(h.Sine={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),-r*Math.cos(i/o*(Math.PI/2))+r+s},p.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*Math.sin(i/o*(Math.PI/2))+s},p.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),-r/2*(Math.cos(Math.PI*i/o)-1)+s},(w=h.Expo||(h.Expo={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),i==0?s:r*Math.pow(2,10*(i/o-1))+s},w.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),i==o?s+r:r*(1-Math.pow(2,-10*i/o))+s},w.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),i==0?s:i==o?s+r:(i/=o/2)<1?r/2*Math.pow(2,10*(i-1))+s:r/2*(2-Math.pow(2,-10*--i))+s},(g=h.Circ||(h.Circ={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),-r*(Math.sqrt(1-(i/=o)*i)-1)+s},g.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r*Math.sqrt(1-(i=i/o-1)*i)+s},g.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),(i/=o/2)<1?-r/2*(Math.sqrt(1-i*i)-1)+s:r/2*(Math.sqrt(1-(i-=2)*i)+1)+s},(m=h.Bounce||(h.Bounce={})).easeIn=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),r-h.Bounce.easeOut(o-i,0,r,o)+s},m.easeOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),(i/=o)<.36363636363636365?r*(7.5625*i*i)+s:i<.7272727272727273?r*(7.5625*(i-=.5454545454545454)*i+.75)+s:i<.9090909090909091?r*(7.5625*(i-=.8181818181818182)*i+.9375)+s:r*(7.5625*(i-=.9545454545454546)*i+.984375)+s},m.easeInOut=function(i,s,r,o){return s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=1),i<o/2?.5*h.Bounce.easeIn(2*i,0,r,o)+s:.5*h.Bounce.easeOut(2*i-o,0,r,o)+.5*r+s}},643:function(C,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,i=0,s=f.length;i<s;i++)!a&&i in f||(a||(a=Array.prototype.slice.call(f,0,i)),a[i]=f[i]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.cancelableFetchDeprecated=void 0;var w=h(5726);function p(u,f){for(var c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];var i=new AbortController,s=i.signal,r=m(c,2),o=r[0],l=r[1];if(l!=null&&l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal=s;var d=!1;(0,w._executeSetCancelFuncOrCancelResult)(u,function(){d=!0,i.abort()});var B=fetch(o,l);return f&&(B=B.then(function(_){if(!_.ok)return _;if(!_.body)throw Error("ReadableStream not yet supported in this browser.");var b=_.headers.get("content-length"),E=b?parseInt(b,10):0,F=0;return new Response(new ReadableStream({start:function(S){if(!_.body)throw new Error("!response.body");var U=_.body.getReader();(function T(){U.read().then(function(Q){var P=Q.done,I=Q.value;if(P)S.close();else{if(!I)throw new Error("!value");if(!f)throw new Error("!progressFunc");F+=I.byteLength,f(F,E),S.enqueue(I),T()}}).catch(function(Q){S.error(Q)})})()}}),{status:_.status,statusText:_.statusText,headers:_.headers})}).catch(function(_){throw d?(_ instanceof Error&&_.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new w.CancelError("fetching cancelled!")):(_ instanceof Error&&_.code===20&&console.error("error.code === 20"),_)})),B}A.cancelableFetchDeprecated=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];if(u.length>=1){if(typeof u[0]=="function"||u[0]===void 0){var c={},a=p.apply(void 0,g([c],m(u),!1)),i=c.cancelFunc;if(!i)throw new Error("!cancelResult.cancelFunc");return[i,a]}return p.apply(void 0,g([],m(u),!1))}throw new Error("cancelableFetch args error!")}},709:(C,A,h)=>{h.r(A),h.d(A,{Observable:()=>W});const m="insert",g="update",w="delete",p="reverse",u="shuffle",f=Symbol("observable-meta-key"),c={async:1},a={path:1,pathsOf:1,pathsFrom:1},i={[f]:{value:null},observe:{value:function(L,O){if(typeof L!="function")throw new Error(`observer MUST be a function, got '${L}'`);const H=this[f].observers;if(H.some(k=>k[0]===L))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let k;k=O?function(G){const R={};if(G.path!==void 0){if(typeof G.path!="string"||G.path==="")throw new Error('"path" option, if/when provided, MUST be a non-empty string');R.path=G.path}if(G.pathsOf!==void 0){if(G.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if(typeof G.pathsOf!="string")throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');R.pathsOf=G.pathsOf.split(".").filter(N=>N)}if(G.pathsFrom!==void 0){if(G.path||G.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if(typeof G.pathsFrom!="string"||G.pathsFrom==="")throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');R.pathsFrom=G.pathsFrom}const D=Object.keys(G).filter(N=>!a.hasOwnProperty(N));if(D.length)throw new Error(`'${D.join(", ")}' is/are not a valid observer option/s`);return R}(O):{},H.push([L,k])}}},unobserve:{value:function(){const L=this[f].observers;let O=L.length;if(O){let H=arguments.length;if(H)for(;H--;){let k=O;for(;k--;)L[k][0]===arguments[H]&&(L.splice(k,1),O--)}else L.splice(0)}}}},s=function(L,O){i[f].value=O;const H=Object.defineProperties({},i);for(const k of Object.keys(L))H[k]=b(L[k],k,O);return H},r=function(L,O){let H=0,k=L.length;i[f].value=O;const G=Object.defineProperties(new Array(k),i);for(;H<k;H++)G[H]=b(L[H],H,O);return G},o=function(L,O){return i[f].value=O,Object.defineProperties(L,i),L},l=function(L,O){let H=O;if(L.path){const k=L.path;H=O.filter(G=>G.path.join(".")===k)}else if(L.pathsOf){const k=L.pathsOf;H=O.filter(G=>G.path.length===k.length+1||G.path.length===k.length&&(G.type===p||G.type===u))}else if(L.pathsFrom){const k=L.pathsFrom;H=O.filter(G=>G.path.join(".").startsWith(k))}return H},d=function(L,O){try{L(O)}catch(H){console.error(`failed to notify listener ${L} with ${O}`,H)}},B=function(){const L=this.batches;this.batches=null;for(const[O,H]of L)d(O,H)},_=function(L,O){let H,k,G,R,D,N,Y,$=L;const q=O.length;do{for(H=$.observers,D=H.length;D--;)if([k,G]=H[D],R=l(G,O),R.length)if($.options.async){$.batches||($.batches=[],queueMicrotask(B.bind($)));let ae=$.batches.find(me=>me[0]===k);ae||(ae=[k,[]],$.batches.push(ae)),Array.prototype.push.apply(ae[1],R)}else d(k,R);let oe;if($.parent){oe=new Array(q);for(let ae=0;ae<q;ae++)Y=O[ae],N=[$.ownKey,...Y.path],oe[ae]={type:Y.type,path:N,value:Y.value,oldValue:Y.oldValue,object:Y.object};O=oe,$=$.parent}else $=null}while($)},b=function(L,O,H){return L&&typeof L=="object"?Array.isArray(L)?new M({target:L,ownKey:O,parent:H}).proxy:ArrayBuffer.isView(L)?new K({target:L,ownKey:O,parent:H}).proxy:L instanceof Date||L instanceof Blob||L instanceof Error?L:new I({target:L,ownKey:O,parent:H}).proxy:L},E=function(){const L=this[f],O=L.target;let H,k,G;for(O.reverse(),H=0,k=O.length;H<k;H++)if(G=O[H],G&&typeof G=="object"){const R=G[f];R&&(R.ownKey=H)}return _(L,[{type:p,path:[],object:this}]),this},F=function(L){const O=this[f],H=O.target;let k,G,R;for(H.sort(L),k=0,G=H.length;k<G;k++)if(R=H[k],R&&typeof R=="object"){const D=R[f];D&&(D.ownKey=k)}return _(O,[{type:u,path:[],object:this}]),this},S=function(L,O,H){const k=this[f],G=k.target,R=[],D=G.length,N=G.slice(0);if(O=O===void 0?0:O<0?Math.max(D+O,0):Math.min(O,D),H=H===void 0?D:H<0?Math.max(D+H,0):Math.min(H,D),O<D&&H>O){let Y;G.fill(L,O,H);for(let $,q,oe=O;oe<H;oe++)$=G[oe],G[oe]=b($,oe,k),N.hasOwnProperty(oe)?(q=N[oe],q&&typeof q=="object"&&(Y=q[f],Y&&(q=Y.detach())),R.push({type:g,path:[oe],value:G[oe],oldValue:q,object:this})):R.push({type:m,path:[oe],value:G[oe],object:this});_(k,R)}return this},U=function(L,O,H){const k=this[f],G=k.target,R=G.length;L=L<0?Math.max(R+L,0):L,O=O===void 0?0:O<0?Math.max(R+O,0):Math.min(O,R),H=H===void 0?R:H<0?Math.max(R+H,0):Math.min(H,R);const D=Math.min(H-O,R-L);if(L<R&&L!==O&&D>0){const N=G.slice(0),Y=[];G.copyWithin(L,O,H);for(let $,q,oe,ae=L;ae<L+D;ae++)$=G[ae],$&&typeof $=="object"&&($=b($,ae,k),G[ae]=$),q=N[ae],q&&typeof q=="object"&&(oe=q[f],oe&&(q=oe.detach())),typeof $!="object"&&$===q||Y.push({type:g,path:[ae],value:$,oldValue:q,object:this});_(k,Y)}return this},T={pop:function(){const L=this[f],O=L.target,H=O.length-1;let k=O.pop();if(k&&typeof k=="object"){const G=k[f];G&&(k=G.detach())}return _(L,[{type:w,path:[H],oldValue:k,object:this}]),k},push:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H),G=O.length;for(let N=0;N<H;N++)k[N]=b(arguments[N],G+N,L);const R=Reflect.apply(O.push,O,k),D=[];for(let N=G,Y=O.length;N<Y;N++)D[N-G]={type:m,path:[N],value:O[N],object:this};return _(L,D),R},shift:function(){const L=this[f],O=L.target;let H,k,G,R,D;for(H=O.shift(),H&&typeof H=="object"&&(D=H[f],D&&(H=D.detach())),k=0,G=O.length;k<G;k++)R=O[k],R&&typeof R=="object"&&(D=R[f],D&&(D.ownKey=k));return _(L,[{type:w,path:[0],oldValue:H,object:this}]),H},unshift:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H);for(let N=0;N<H;N++)k[N]=b(arguments[N],N,L);const G=Reflect.apply(O.unshift,O,k);for(let N,Y=0,$=O.length;Y<$;Y++)if(N=O[Y],N&&typeof N=="object"){const q=N[f];q&&(q.ownKey=Y)}const R=k.length,D=new Array(R);for(let N=0;N<R;N++)D[N]={type:m,path:[N],value:O[N],object:this};return _(L,D),G},reverse:E,sort:F,fill:S,copyWithin:U,splice:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H),G=O.length;for(let se=0;se<H;se++)k[se]=b(arguments[se],se,L);const R=H===0?0:k[0]<0?G+k[0]:k[0],D=H<2?G-R:k[1],N=Math.max(H-2,0),Y=Reflect.apply(O.splice,O,k),$=O.length;let q,oe,ae,me;for(let se,ye=0;ye<$;ye++)se=O[ye],se&&typeof se=="object"&&(q=se[f],q&&(q.ownKey=ye));for(oe=0,ae=Y.length;oe<ae;oe++)me=Y[oe],me&&typeof me=="object"&&(q=me[f],q&&(Y[oe]=q.detach()));const we=[];let ne;for(ne=0;ne<D;ne++)ne<N?we.push({type:g,path:[R+ne],value:O[R+ne],oldValue:Y[ne],object:this}):we.push({type:w,path:[R+ne],oldValue:Y[ne],object:this});for(;ne<N;ne++)we.push({type:m,path:[R+ne],value:O[R+ne],object:this});return _(L,we),Y}},Q={reverse:E,sort:F,fill:S,copyWithin:U,set:function(L,O){const H=this[f],k=H.target,G=L.length,R=k.slice(0);O=O||0,k.set(L,O);const D=new Array(G);for(let N=O;N<G+O;N++)D[N-O]={type:g,path:[N],value:k[N],oldValue:R[N],object:this};_(H,D)}};class P{constructor(O,H){const{target:k,parent:G,ownKey:R}=O;G&&R!==void 0?(this.parent=G,this.ownKey=R):(this.parent=null,this.ownKey=null);const D=H(k,this);this.observers=[],this.revocable=Proxy.revocable(D,this),this.proxy=this.revocable.proxy,this.target=D,this.options=this.processOptions(O.options)}processOptions(O){if(O){if(typeof O!="object")throw new Error(`Observable options if/when provided, MAY only be an object, got '${O}'`);const H=Object.keys(O).filter(k=>!c.hasOwnProperty(k));if(H.length)throw new Error(`'${H.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},O)}return{}}detach(){return this.parent=null,this.target}set(O,H,k){let G=O[H];if(k!==G){const R=b(k,H,this);if(O[H]=R,G&&typeof G=="object"){const N=G[f];N&&(G=N.detach())}const D=G===void 0?[{type:m,path:[H],value:R,object:this.proxy}]:[{type:g,path:[H],value:R,oldValue:G,object:this.proxy}];_(this,D)}return!0}deleteProperty(O,H){let k=O[H];if(delete O[H],k&&typeof k=="object"){const R=k[f];R&&(k=R.detach())}const G=[{type:w,path:[H],oldValue:k,object:this.proxy}];return _(this,G),!0}}class I extends P{constructor(O){super(O,s)}}class M extends P{constructor(O){super(O,r)}get(O,H){return T.hasOwnProperty(H)?T[H]:O[H]}}class K extends P{constructor(O){super(O,o)}get(O,H){return Q.hasOwnProperty(H)?Q[H]:O[H]}}class W{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(O,H){if(O&&typeof O=="object"){if(O[f])return O;if(Array.isArray(O))return new M({target:O,ownKey:null,parent:null,options:H}).proxy;if(ArrayBuffer.isView(O))return new K({target:O,ownKey:null,parent:null,options:H}).proxy;if(O instanceof Date||O instanceof Blob||O instanceof Error)throw new Error(`${O} found to be one of a on-observable types`);return new I({target:O,ownKey:null,parent:null,options:H}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(O){return!(!O||!O[f])}}Object.freeze(W)},723:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._inverseTransformation=void 0;var m=h(2731);A._inverseTransformation=function(g,w){var p=g[0],u=g[1],f=g[2],c=g[4],a=g[5],i=g[6],s=g[8],r=g[9],o=g[10],l=g[12],d=g[13],B=g[14],_=-p*l-u*d-f*B,b=-c*l-a*d-i*B,E=-s*l-r*d-o*B;return(w=w||(0,m.createNumbers)(16))[0]=p,w[1]=c,w[2]=s,w[3]=0,w[4]=u,w[5]=a,w[6]=r,w[7]=0,w[8]=f,w[9]=i,w[10]=o,w[11]=0,w[12]=_,w[13]=b,w[14]=E,w[15]=1,w}},733:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.readBits=A.readArray=A.readUnsigned=A.readString=A.peekBytes=A.readBytes=A.peekByte=A.readByte=A.buildStream=void 0,A.buildStream=function(m){return{data:m,pos:0}},A.readByte=function(){return function(m){return m.data[m.pos++]}},A.peekByte=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(g){return g.data[g.pos+m]}};var h=function(m){return function(g){return g.data.subarray(g.pos,g.pos+=m)}};A.readBytes=h,A.peekBytes=function(m){return function(g){return g.data.subarray(g.pos,g.pos+m)}},A.readString=function(m){return function(g){return Array.from(h(m)(g)).map(function(w){return String.fromCharCode(w)}).join("")}},A.readUnsigned=function(m){return function(g){var w=h(2)(g);return m?(w[1]<<8)+w[0]:(w[0]<<8)+w[1]}},A.readArray=function(m,g){return function(w,p,u){for(var f=typeof g=="function"?g(w,p,u):g,c=h(m),a=new Array(f),i=0;i<f;i++)a[i]=c(w);return a}},A.readBits=function(m){return function(g){for(var w=function(f){return f.data[f.pos++]}(g),p=new Array(8),u=0;u<8;u++)p[7-u]=!!(w&1<<u);return Object.keys(m).reduce(function(f,c){var a=m[c];return a.length?f[c]=function(i,s,r){for(var o=0,l=0;l<r;l++)o+=i[s+l]&&Math.pow(2,r-l-1);return o}(p,a.index,a.length):f[c]=p[a.index],f},{})}}},773:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defaultStartUpdateFunc=A.requestAnimationFrameTimeStampTest=void 0,A.requestAnimationFrameTimeStampTest=function(){return new Promise(function(h,m){var g=performance.now();requestAnimationFrame(function(w){return h(w>g)})})},A.defaultStartUpdateFunc=function(h){var m,g;return g=function(w){w=performance.now(),m=requestAnimationFrame(g),h(w)},m=requestAnimationFrame(g),function(){cancelAnimationFrame(m)}}},921:function(C,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var i,s,r=a.call(f),o=[];try{for(;(c===void 0||c-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return o},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var i,s=0,r=c.length;s<r;s++)!i&&s in c||(i||(i=Array.prototype.slice.call(c,0,s)),i[s]=c[s]);return f.concat(i||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.createProcessingFromAsyncFuncWithStartValues=A.createProcessingFromAsyncFunc=A.asyncFuncToCancelablePromise=A.cancelFuncToCancelablePromise=A.createProcessingFromPromiseCreateFuncWithStartValues=A.createProcessingFromPromiseCreateFunc=void 0;var w=h(1101),p=h(1148),u=h(9651);A.createProcessingFromPromiseCreateFunc=function(f){return c=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var s=f.apply(void 0,g([],m(a),!1));return(0,u.isPromiseCancelable)(s)?s:(0,u.createCancelablePromise)(s)},new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(a){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return a.promise(c.apply(void 0,g([],m(i),!1)))}));var c},A.createProcessingFromPromiseCreateFuncWithStartValues=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];return function(i){for(var s=[],r=1;r<arguments.length;r++)s[r-1]=arguments[r];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(o){return o.promise(i.apply(void 0,g([],m(s),!1)))}))}(function(){var i=f.apply(void 0,g([],m(c),!1));return(0,u.isPromiseCancelable)(i)?i:(0,u.createCancelablePromise)(i)})},A.cancelFuncToCancelablePromise=function(f){var c,a=new Promise(function(i,s){c=function(){f(),s()}});return(0,u.setPromiseCancel)(a,c),a},A.asyncFuncToCancelablePromise=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];var i=new w.CancelsManager,s=f.apply(void 0,g([i],m(c),!1)).finally(function(){return i.destroy()});return(0,u.setPromiseCancel)(s,i.cancel.bind(i)),s},A.createProcessingFromAsyncFunc=function(f){return new p.Processing((0,p.createStartFuncFromAsyncFunc)(f))},A.createProcessingFromAsyncFuncWithStartValues=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(i){return f.apply(void 0,g([i],m(c),!1))}))}},985:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(8466),A),g(h(3983),A),g(h(6424),A)},1023:function(C,A,h){var m,g=this&&this.__extends||(m=function(r,o){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var B in d)Object.prototype.hasOwnProperty.call(d,B)&&(l[B]=d[B])},m(r,o)},function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function l(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}),w=this&&this.__read||function(r,o){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,B,_=l.call(r),b=[];try{for(;(o===void 0||o-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){B={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(B)throw B.error}}return b};Object.defineProperty(A,"__esModule",{value:!0}),A.PickColorMananger=A.uint8sToUint32=A.uint32ToUint8s=void 0;var p=h(7372),u=new ArrayBuffer(4),f=new Uint32Array(u),c=new Uint8Array(u);function a(r){if(r>=16777215)throw new Error("uint32 > 0xFFFFFF");return f[0]=r,[c[0],c[1],c[2]]}function i(r,o,l){return c[0]=r,c[1]=o,c[2]=l,c[3]=0,f[0]}A.uint32ToUint8s=a,A.uint8sToUint32=i;var s=function(r){function o(){var l=r!==null&&r.apply(this,arguments)||this;return l._pickColors=new Array(16777215),l._pickColorIndex=0,l}return g(o,r),o.prototype.reset=function(){for(var l=0;l<this._pickColorIndex;++l){var d=this._pickColors[l];if(!d)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");d.poi=null,d.tag=""}this._pickColorIndex=0},o.prototype.createPickColor=function(l,d){var B=this._pickColorIndex;++this._pickColorIndex;var _=this._pickColors[B];_?(_.poi=l,_.tag=d):this._pickColors[B]={poi:l,tag:d};var b=w(a(B),3);return[b[0],b[1],b[2]]},o.prototype.getPickInfoFromColor=function(l,d,B){var _=i(l,d,B);if(_>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var b=this._pickColors[_];if(b)return b;console.error("!this._pickColors[index]")}},o.prototype.destroyImp=function(){this.reset()},o}(p.Destroyable);A.PickColorMananger=s},1047:function(C,A,h){var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.createProps=void 0;var w=h(9359),p=h(3915);A.createProps=function(u){var f,c,a=new w.Destroyable,i=function(l,d){var B,_=a.disposeVar(d instanceof p.ReactiveVariable?d:(0,p.react)(d));Object.defineProperties(a,((B={})[l]={get:function(){return _.value},set:function(b){_.value=b}},B["".concat(l,"Changed")]={get:function(){return _.changed}},B))};try{for(var s=m(Object.entries(u)),r=s.next();!r.done;r=s.next()){var o=g(r.value,2);i(o[0],o[1])}}catch(l){f={error:l}}finally{try{r&&!r.done&&(c=s.return)&&c.call(s)}finally{if(f)throw f.error}}return a}},1085:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ObjPool=void 0;var h=function(){function m(g,w,p){p===void 0&&(p=!1),this._createDefaultFunc=g,this._destroyFunc=w,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],p&&(this._usedElements=[])}return Object.defineProperty(m.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),m.prototype._getCreateID=function(){return this._nextCreateID++},m.prototype._create=function(){var g;return(g=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),g},m.prototype.create=function(){return this._create()},m.prototype.multiCreate=function(g){this._scratchObjs.length=0;for(var w=0;w<g;++w)this._scratchObjs.push(this._create());return this._scratchObjs},m.prototype._destroy=function(g){this._destroyFunc&&this._destroyFunc(g),g._cid=void 0},m.prototype.destroy=function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];for(var p=g.length,u=0;u<p;++u)this._destroy(g[u])},m}();A.ObjPool=h},1101:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&i[s],o=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&o>=i.length&&(i=void 0),{value:i&&i[o++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CancelsManager=void 0;var p=h(7372),u=h(1662),f=h(4206),c=h(9651),a=function(i){function s(){var r=i.call(this)||this;return r._cancelled=!1,r._promiseSet=new Set,r}return g(s,i),Object.defineProperty(s.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new p.Destroyable,this._disposer},enumerable:!1,configurable:!0}),s.prototype.destroyImp=function(){this.finally()},s.prototype.cancel=function(r){var o,l,d;if(!this._cancelled){this._cancelled=!0,(d=this._disposer)===null||d===void 0||d.destroy(),this._cancelError=r;try{for(var B=w(this._promiseSet),_=B.next();!_.done;_=B.next()){var b=_.value;(0,c.cancelPromise)(b)}}catch(E){o={error:E}}finally{try{_&&!_.done&&(l=B.return)&&l.call(B)}finally{if(o)throw o.error}}this._promiseSet.clear()}},Object.defineProperty(s.prototype,"cancelFuncsNum",{get:function(){return(0,u.reduce)(this._promiseSet,function(r){return r+1},0)},enumerable:!1,configurable:!0}),s.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},s.prototype.check=function(){var r;if(this._cancelled)throw(r=this._cancelError)!==null&&r!==void 0?r:new f.CancelError("cancel from CancelManager!")},s.prototype.promise=function(r){var o=this;return this._promiseSet.add(r),r.finally(function(){return o._promiseSet.delete(r),o.check()})},s.prototype.promiseAny=function(r){var o=this,l=[],d=r.map(function(B){return o._promiseSet.add(B),(0,c.isPromiseCancelable)(B)&&l.push((0,c.getPromiseCancel)(B)),B.finally(function(){return o._promiseSet.delete(B)})});return Promise.any(d).finally(function(){return l.forEach(function(B){return B(new f.CancelError("cancel from promiseAny!"))}),l.length=0})},s.prototype.promiseAll=function(r){var o=this,l=[],d=r.map(function(B){return o._promiseSet.add(B),(0,c.isPromiseCancelable)(B)&&l.push((0,c.getPromiseCancel)(B)),B.finally(function(){return o._promiseSet.delete(B)})});return Promise.all(d).finally(function(){return l.forEach(function(B){return B(new f.CancelError("cancel from promiseAll!"))}),l.length=0})},s.prototype.promiseRace=function(r){var o=this,l=[],d=r.map(function(B){return o._promiseSet.add(B),(0,c.isPromiseCancelable)(B)&&l.push((0,c.getPromiseCancel)(B)),B.finally(function(){return o._promiseSet.delete(B)})});return Promise.race(d).finally(function(){return l.forEach(function(B){return B(new f.CancelError("cancel from promiseRace!"))}),l.length=0})},s}(p.Destroyable);A.CancelsManager=a},1148:function(C,A,h){var m,g=this&&this.__extends||(m=function(r,o){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var B in d)Object.prototype.hasOwnProperty.call(d,B)&&(l[B]=d[B])},m(r,o)},function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function l(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}),w=this&&this.__read||function(r,o){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,B,_=l.call(r),b=[];try{for(;(o===void 0||o-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){B={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(B)throw B.error}}return b},p=this&&this.__spreadArray||function(r,o,l){if(l||arguments.length===2)for(var d,B=0,_=o.length;B<_;B++)!d&&B in o||(d||(d=Array.prototype.slice.call(o,0,B)),d[B]=o[B]);return r.concat(d||Array.prototype.slice.call(o))};Object.defineProperty(A,"__esModule",{value:!0}),A.createStartFuncFromAsyncFunc=A.Processing=void 0;var u=h(7372),f=h(7372),c=h(4206),a=h(1101),i=h(9651),s=function(r){function o(l){var d=r.call(this)||this;return d._startFunc=l,d._status="Initial",d._runningId=-1,d.dispose(function(){return d.isRunning&&d.cancel()}),d}return g(o,r),Object.defineProperty(o.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new f.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new f.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(l){this._errorFunc!==l&&(this._errorFunc=l)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(l){this._completeFunc!==l&&(this._completeFunc=l)},enumerable:!1,configurable:!0}),o.prototype.start=function(){for(var l=this,d=[],B=0;B<arguments.length;B++)d[B]=arguments[B];if(this._status==="Initial"){var _=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,p([{completeFunc:function(b){var E;_===l._runningId&&l._status==="Running"&&(l._status="Completed",l._completeFunc&&l._completeFunc(b),(E=l._completeEvent)===null||E===void 0||E.emit(b))},errorFunc:function(b){var E;_===l._runningId&&l._status==="Running"&&(l._status="Error",l._errorFunc&&l._errorFunc(b),(E=l._errorEvent)===null||E===void 0||E.emit(b))},runningingID:_}],w(d),!1))}},o.prototype.cancel=function(l){var d;if(l===void 0&&(l=new c.CancelError("")),this._status==="Running"){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(l),(d=this._errorEvent)===null||d===void 0||d.emit(l),this._cancelFunc(l),this._cancelFunc=void 0}},o.prototype.reset=function(){this._status==="Running"&&console.error("processing cannot reset while running. you can first cancel it!"),this._status!=="Completed"&&this._status!=="Error"||(this._status="Initial")},Object.defineProperty(o.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),o.prototype.restart=function(l){l===void 0&&(l=new c.CancelError(""));for(var d=[],B=1;B<arguments.length;B++)d[B-1]=arguments[B];this.isRunning&&this.cancel(l),this.reset(),this.start.apply(this,p([],w(d),!1))},o.prototype.restartIfNotRunning=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];this.isRunning||(this.reset(),this.start.apply(this,p([],w(l),!1)))},o}(u.Destroyable);A.Processing=s,A.createStartFuncFromAsyncFunc=function(r){return function(o){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];var B=new a.CancelsManager,_=o.completeFunc,b=o.errorFunc,E=r.apply(void 0,p([B],w(l),!1)).then(_).catch(b).finally(function(){return B.destroy()});return(0,i.setPromiseCancel)(E,B.cancel.bind(B)),function(F){return(0,i.cancelPromise)(E,F)}}}},1233:(C,A,h)=>{h.r(A),h.d(A,{LRUMap:()=>w});const m=Symbol("newer"),g=Symbol("older");function w(a,i){typeof a!="number"&&(i=a,a=0),this.size=0,this.limit=a,this.oldest=this.newest=void 0,this._keymap=new Map,i&&(this.assign(i),a<1&&(this.limit=this.size))}function p(a,i){this.key=a,this.value=i,this[m]=void 0,this[g]=void 0}function u(a){this.entry=a}function f(a){this.entry=a}function c(a){this.entry=a}w.prototype._markEntryAsUsed=function(a){a!==this.newest&&(a[m]&&(a===this.oldest&&(this.oldest=a[m]),a[m][g]=a[g]),a[g]&&(a[g][m]=a[m]),a[m]=void 0,a[g]=this.newest,this.newest&&(this.newest[m]=a),this.newest=a)},w.prototype.assign=function(a){let i,s=this.limit||Number.MAX_VALUE;this._keymap.clear();let r=a[Symbol.iterator]();for(let o=r.next();!o.done;o=r.next()){let l=new p(o.value[0],o.value[1]);if(this._keymap.set(l.key,l),i?(i[m]=l,l[g]=i):this.oldest=l,i=l,s--==0)throw new Error("overflow")}this.newest=i,this.size=this._keymap.size},w.prototype.get=function(a){var i=this._keymap.get(a);if(i)return this._markEntryAsUsed(i),i.value},w.prototype.set=function(a,i){var s=this._keymap.get(a);return s?(s.value=i,this._markEntryAsUsed(s),this):(this._keymap.set(a,s=new p(a,i)),this.newest?(this.newest[m]=s,s[g]=this.newest):this.oldest=s,this.newest=s,++this.size,this.size>this.limit&&this.shift(),this)},w.prototype.shift=function(){var a=this.oldest;if(a)return this.oldest[m]?(this.oldest=this.oldest[m],this.oldest[g]=void 0):(this.oldest=void 0,this.newest=void 0),a[m]=a[g]=void 0,this._keymap.delete(a.key),--this.size,[a.key,a.value]},w.prototype.find=function(a){let i=this._keymap.get(a);return i?i.value:void 0},w.prototype.has=function(a){return this._keymap.has(a)},w.prototype.delete=function(a){var i=this._keymap.get(a);if(i)return this._keymap.delete(i.key),i[m]&&i[g]?(i[g][m]=i[m],i[m][g]=i[g]):i[m]?(i[m][g]=void 0,this.oldest=i[m]):i[g]?(i[g][m]=void 0,this.newest=i[g]):this.oldest=this.newest=void 0,this.size--,i.value},w.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:[a.key,a.value]}):{done:!0,value:void 0}},f.prototype[Symbol.iterator]=function(){return this},f.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:a.key}):{done:!0,value:void 0}},c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:a.value}):{done:!0,value:void 0}},w.prototype.keys=function(){return new f(this.oldest)},w.prototype.values=function(){return new c(this.oldest)},w.prototype.entries=function(){return this},w.prototype[Symbol.iterator]=function(){return new u(this.oldest)},w.prototype.forEach=function(a,i){typeof i!="object"&&(i=this);let s=this.oldest;for(;s;)a.call(i,s.value,s.key,this),s=s[m]},w.prototype.toJSON=function(){for(var a=new Array(this.size),i=0,s=this.oldest;s;)a[i++]={key:s.key,value:s.value},s=s[m];return a},w.prototype.toString=function(){for(var a="",i=this.oldest;i;)a+=String(i.key)+":"+i.value,(i=i[m])&&(a+=" < ");return a}},1291:function(C,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,_){B.__proto__=_}||function(B,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(B[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function B(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(B.prototype=d.prototype,new B)}),w=this&&this.__awaiter||function(l,d,B,_){return new(B||(B=Promise))(function(b,E){function F(T){try{U(_.next(T))}catch(Q){E(Q)}}function S(T){try{U(_.throw(T))}catch(Q){E(Q)}}function U(T){var Q;T.done?b(T.value):(Q=T.value,Q instanceof B?Q:new B(function(P){P(Q)})).then(F,S)}U((_=_.apply(l,d||[])).next())})},p=this&&this.__generator||function(l,d){var B,_,b,E,F={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(U){return function(T){return function(Q){if(B)throw new TypeError("Generator is already executing.");for(;E&&(E=0,Q[0]&&(F=0)),F;)try{if(B=1,_&&(b=2&Q[0]?_.return:Q[0]?_.throw||((b=_.return)&&b.call(_),0):_.next)&&!(b=b.call(_,Q[1])).done)return b;switch(_=0,b&&(Q=[2&Q[0],b.value]),Q[0]){case 0:case 1:b=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,_=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((b=(b=F.trys).length>0&&b[b.length-1])||Q[0]!==6&&Q[0]!==2)){F=0;continue}if(Q[0]===3&&(!b||Q[1]>b[0]&&Q[1]<b[3])){F.label=Q[1];break}if(Q[0]===6&&F.label<b[1]){F.label=b[1],b=Q;break}if(b&&F.label<b[2]){F.label=b[2],F.ops.push(Q);break}b[2]&&F.ops.pop(),F.trys.pop();continue}Q=d.call(l,F)}catch(P){Q=[6,P],_=0}finally{B=b=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([U,T])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.FlvProcessing=A.FlvJsLoading=void 0;var u=h(1662),f=h(8106),c=h(2220),a=h(5819),i=function(l){function d(){var B=l.call(this)||this;return B._loading=!1,B._loadedEvent=B.disposeVar(new u.Event),B._loaded=!1,B._loadedPromise=new Promise(function(_){B._loadedPromiseResolve=_}),B._processing=B.disposeVar((0,a.createProcessingFromAsyncFunc)(function(_){return w(B,void 0,void 0,function(){var b;return p(this,function(E){switch(E.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return b=c.SceneObject.context.getStrFromEnv(d.path),[4,_.promise((0,u.loadJs)(b))];case 2:E.sent(),E.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),B._processingStart=B._processing.start(),B}return g(d,l),Object.defineProperty(d.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d.instance=function(){return d._instance=d._instance||new d,d._instance},d.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",d}(u.Destroyable);A.FlvJsLoading=i;var s=function(l){function d(B,_){var b=l.call(this)||this;b._complexImage=B,b._videoSrc=_;var E,F=document.createElement("video");return F.src=b._videoSrc,F.style.position="absolute",F.style.top="0px",F.style.left="0px",F.style.zIndex="-100",F.style.visibility="hidden",(E=function(){F.crossOrigin=b._complexImage.crossOrigin})(),b.dispose(b._complexImage.crossOriginChanged.disposableOn(E)),(E=function(){F.autoplay=b._complexImage.autoplay})(),b.dispose(b._complexImage.autoplayChanged.disposableOn(E)),(E=function(){F.loop=b._complexImage.loop})(),b.dispose(b._complexImage.loopChanged.disposableOn(E)),F.muted=!0,document.body.appendChild(F),b._element=F,b.dispose(function(){return document.body.removeChild(F)}),b}return g(d,l),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),d}(u.Destroyable),r=function(l){function d(B,_){var b=l.call(this)||this;return b._complexImage=B,b._videoSrc=_,b._videoDom=b.disposeVar(new s(b._complexImage,"")),b._processing=b.disposeVar((0,a.createProcessingFromAsyncFunc)(function(E){return w(b,void 0,void 0,function(){var F,S,U,T;return p(this,function(Q){switch(Q.label){case 0:return F=this.videoSrc,S=i.instance(),[4,E.promise(S.loadedPromise)];case 1:return Q.sent(),U=window.flvjs,T=this.element,[4,(0,f.step)(E,function(){return new Promise(function(P,I){if(U.isSupported()){var M=U.createPlayer({type:"flv",url:F});M.attachMediaElement(T),M.load(),M.play(),T.xbsjFlvPlayer=M}else I("flvjs不支持!")})})];case 2:return Q.sent(),[2]}})})})),b._processingStartup=b._processing.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d}(u.Destroyable),o=function(l){function d(B,_){var b=l.call(this)||this;return b._complexImage=B,b._imageUri=_,b._videoDom=b.disposeVar(new r(b._complexImage,b._imageUri)),b._update=b.disposeVar((0,f.createAnimateFrameWithStartValues)(function(){return b.update()})),b._updateStart=b._update.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),d.prototype.update=function(){if(!(this.videoElement.readyState<2)){var B=this._complexImage,_=this.videoElement,b=_.videoWidth,E=_.videoHeight;B.size=[b,E],B.pixelFormat="RGBA",B.copyTexture({source:this.videoElement})}},d}(u.Destroyable);A.FlvProcessing=o},1354:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.forEach=void 0;var m=h(8144);A.forEach=function(g,w){for(var p=(0,m.getIterator)(g),u=0;;){var f=p.next(),c=f.done,a=f.value;if(c)break;w(a,u++)}}},1378:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivBoxPicker=A.BoxPicker=void 0;var w=h(7372),p=h(7372),u=h(507),f=h(7372),c=function(i){function s(){var r=i.call(this)||this;r._pickRectEvent=r.disposeVar(new p.Event),r._updateRectEvent=r.disposeVar(new p.Event),r._pointerActionEvent=r.disposeVar(new p.Event),r._active=r.disposeVar((0,f.react)(!1)),r._pickRect={left0:0,top0:0,left1:0,top1:0};var o=0,l=0,d=0,B=0;return r.dispose(r._pointerActionEvent.disposableOn(function(_){var b=_.type,E=_.left,F=_.top;b==="PointerDown"?(r._active.value=!0,o=E,l=F,d=E,B=F,r._setPickRect({left0:o,top0:l,left1:d,top1:B}),r._updateRectEvent.emit(r._pickRect)):b==="PointerMove"?r._active.value&&(d=E,B=F,r._setPickRect({left0:o,top0:l,left1:d,top1:B}),r._updateRectEvent.emit(r._pickRect)):b==="PointerUp"&&r._active.value&&(r._active.value=!1,d=E,B=F,r._setPickRect({left0:o,top0:l,left1:d,top1:B}),r._updateRectEvent.emit(r._pickRect),r._pickRectEvent.emit(r._pickRect))})),r}return g(s,i),s.prototype._setPickRect=function(r){var o=r.left0,l=r.left1,d=r.top0,B=r.top1;this._pickRect.left0=o,this._pickRect.left1=l,this._pickRect.top0=d,this._pickRect.top1=B},s.prototype.pointerDown=function(r,o){this._pointerActionEvent.emit({type:"PointerDown",left:r,top:o})},s.prototype.pointerMove=function(r,o){this._pointerActionEvent.emit({type:"PointerMove",left:r,top:o})},s.prototype.pointerUp=function(r,o){this._pointerActionEvent.emit({type:"PointerUp",left:r,top:o})},s.prototype.reset=function(){this._setPickRect({left0:0,top0:0,left1:0,top1:0}),this._updateRectEvent.emit(this._pickRect),this._pickRectEvent.emit(this._pickRect)},Object.defineProperty(s.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),s.getLeftTopAndSize=function(r,o){o=o||{left:0,top:0,width:0,height:0,forward:!0};var l=r.left0,d=r.top0,B=r.left1,_=r.top1;return o.width=Math.abs(l-B),o.height=Math.abs(d-_),o.left=Math.min(l,B),o.top=Math.min(d,_),o.forward=B>l,o},s.contains=function(r,o,l){var d=l.left,B=l.top,_=l.width,b=l.height;return r>d&&r<=d+_&&o>=B&&o<=B+b},s}(w.Destroyable);A.BoxPicker=c;var a=function(i){function s(r){var o=i.call(this)||this,l=o.disposeVar(new u.PointerClickDeprecated(r));o.dispose(l.downEvent.disposableOn(function(b,E,F){return F.altKey&&o.pointerDown(b,E)})),o.dispose(l.moveEvent.disposableOn(function(b,E){return o.pointerMove(b,E)})),o.dispose(l.upEvent.disposableOn(function(b,E){return o.pointerUp(b,E)}));var d=document.createElement("div");d.style.backgroundColor="rgba(0, 0, 0, 0)",d.style.border="2px dashed red",d.style.position="absolute",d.style.boxSizing="border-box",d.style.pointerEvents="none",d.style.height="0px",d.style.width="0px",d.style.left="0px",d.style.top="0px",d.style.display="none",r.appendChild(d),o.dispose(function(){return r.removeChild(d)}),o.dispose(o.activeEvent.disposableOn(function(b){d.style.display=b?"block":"none"}));var B=function(){o.reset()};r.addEventListener("contextmenu",B),o.dispose(function(){return r.removeEventListener("contextmenu",B)});var _={left:0,top:0,width:0,height:0,forward:!1};return o.dispose(o.updateRectEvent.disposableOn(function(b){if(c.getLeftTopAndSize(b,_)){var E=_.left,F=_.top,S=_.width,U=_.height;d.style.height="".concat(0|U,"px"),d.style.width="".concat(0|S,"px"),d.style.left="".concat(0|E,"px"),d.style.top="".concat(0|F,"px")}})),o}return g(s,i),s}(c);A.DivBoxPicker=a},1412:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(7963),A),g(h(1851),A),g(h(9409),A),g(h(3022),A),g(h(7014),A),g(h(3096),A),g(h(5925),A),g(h(5210),A),g(h(1291),A)},1545:function(C,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(c[i]=a[i])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.RefsManager=void 0;var w=h(1662),p=function(u){function f(c){var a=u.call(this)||this;a._sceneObjRefs=new Map,a._refs={},a._refsChagned=a.disposeVar(new w.Event);var i=function(s,r,o){if(o){var l=a.getLastSceneObject(o);if(_=a._sceneObjRefs.get(o)){var d=_.indexOf(s);d===-1?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(s.id," type: ").concat(s.typeName,")!可能系统存在逻辑问题")):(_.splice(d,1),_.length===0&&a._sceneObjRefs.delete(o))}else console.warn("this._sceneObjRefs中不存在ref(".concat(o,"), 可能系统存在逻辑问题"));var B=a.getLastSceneObject(o);a._refs[o]=B,a._refsChagned.emit(B,l)}var _;r&&(l=a.getLastSceneObject(r),(_=a._sceneObjRefs.get(r))?(_.push(s),_.length>0&&console.warn("同时存在多个ref".concat(r,`相同的场景对象!
2
+ `).concat(_.map(function(b){return"".concat(b.id," ").concat(b.typeName,`
3
+ `)}).join(" ")))):a._sceneObjRefs.set(r,[s]),B=a.getLastSceneObject(r),a._refs[r]=B,a._refsChagned.emit(B,l))};return a.dispose(c.sceneObjCreatedEvent.disposableOn(function(s){var r=function(o,l){return i(s,o,l)};s.ref&&r(s.ref,void 0),s.refChanged.disposableOn(r)})),a.dispose(c.sceneObjToDestroyEvent.disposableOn(function(s){s.ref&&i(s,void 0,s.ref)})),a}return g(f,u),Object.defineProperty(f.prototype,"sceneObjRefs",{get:function(){return this._sceneObjRefs},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refs",{get:function(){return this._refs},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refsChanged",{get:function(){return this._refsChagned},enumerable:!1,configurable:!0}),f.prototype.getLastSceneObject=function(c){var a=this.getSceneObjects(c);if(a)return a[a.length-1]},f.prototype.getSceneObjects=function(c){var a=this._sceneObjRefs.get(c);if(a&&a.length!==0)return a},f}(w.Destroyable);A.RefsManager=p},1662:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9359),A),g(h(5600),A),g(h(6555),A),g(h(7941),A),g(h(1085),A),g(h(709),A),g(h(2520),A),g(h(3915),A),g(h(9910),A),g(h(5745),A),g(h(773),A),g(h(7132),A),g(h(8835),A),g(h(7793),A),g(h(1047),A),g(h(4775),A),g(h(2967),A),g(h(5785),A),g(h(5505),A),g(h(5986),A),g(h(9631),A),g(h(6469),A),g(h(5236),A),g(h(6301),A),g(h(2267),A),g(h(5015),A),g(h(3457),A),g(h(2968),A),g(h(8144),A),g(h(3735),A),g(h(6655),A),g(h(2168),A),g(h(7418),A),g(h(1662),A),g(h(7427),A),g(h(1354),A),g(h(4969),A),g(h(3280),A),g(h(9131),A),g(h(1233),A),g(h(433),A),g(h(7008),A),g(h(6362),A),g(h(3009),A),g(h(9970),A),g(h(3804),A),g(h(345),A),g(h(6583),A),g(h(4899),A),g(h(2882),A),g(h(3249),A),g(h(1803),A),g(h(9528),A),g(h(6138),A),g(h(9038),A),g(h(476),A),g(h(8992),A),g(h(6558),A),g(h(6432),A),g(h(2999),A),h(3428)},1801:function(C,A,h){var m=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,i){if(i||arguments.length===2)for(var s,r=0,o=a.length;r<o;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.createSleepingWithStartValues=A.createSleeping=A.sleep=void 0;var w=h(5726),p=h(921),u=h(9651);function f(c){for(var a,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var r=void 0,o=new Promise(function(l,d){r=d,a=globalThis.setTimeout(function(){a=void 0,l(i)},c)});return(0,u.setPromiseCancel)(o,function(l){a&&(clearTimeout(a),a=void 0),r&&r(l??new w.CancelError("sleep cancel error!"))}),o}A.sleep=f,A.createSleeping=function(){return(0,p.createProcessingFromPromiseCreateFunc)(f)},A.createSleepingWithStartValues=function(c){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return p.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,g([f,c],m(a),!1))}},1803:function(C,A){var h=this&&this.__values||function(m){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&m[g],p=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&p>=m.length&&(m=void 0),{value:m&&m[p++],done:!m}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.setValueFromProps=A.getValueFromProps=void 0,A.getValueFromProps=function(m,g){var w,p,u=m;try{for(var f=h(g),c=f.next();!c.done;c=f.next())u=u[c.value]}catch(a){w={error:a}}finally{try{c&&!c.done&&(p=f.return)&&p.call(f)}finally{if(w)throw w.error}}return u},A.setValueFromProps=function(m,g,w){if(g.length===0)throw new Error("props的数量必须大于0");for(var p=g.length-1,u=g[p],f=m,c=0;c<p;++c){var a=g[c];f[a]===void 0&&(f[a]={}),f=f[a]}f[u]=w}},1851:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.complexImageTypes=void 0,A.complexImageTypes=["img","gif","video","flv","hls"]},1895:function(C,A,h){var m=this&&this.__generator||function(c,a){var i,s,r,o,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(B){return function(_){return function(b){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,b[0]&&(l=0)),l;)try{if(i=1,s&&(r=2&b[0]?s.return:b[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,b[1])).done)return r;switch(s=0,r&&(b=[2&b[0],r.value]),b[0]){case 0:case 1:r=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,s=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||b[0]!==6&&b[0]!==2)){l=0;continue}if(b[0]===3&&(!r||b[1]>r[0]&&b[1]<r[3])){l.label=b[1];break}if(b[0]===6&&l.label<r[1]){l.label=r[1],r=b;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(b);break}r[2]&&l.ops.pop(),l.trys.pop();continue}b=a.call(c,l)}catch(E){b=[6,E],s=0}finally{i=r=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([B,_])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.DoublyLinkedList=void 0;var g=new(h(1085)).ObjPool(function(){return{item:void 0,previous:void 0,next:void 0}},function(c){c.item=void 0,c.previous=void 0,c.next=void 0},!0);function w(c,a,i){var s=g.create();return s.item=c,s.previous=a,s.next=i,s}function p(c){if(!c)throw new Error("node is undefined!");g.destroy(c)}function u(c,a){a.previous&&a.next?(a.previous.next=a.next,a.next.previous=a.previous):a.previous?(a.previous.next=void 0,c.tail=a.previous):a.next?(a.next.previous=void 0,c.head=a.next):(c.head=void 0,c.tail=void 0),a.next=void 0,a.previous=void 0}var f=function(){function c(a){var i=(a||{needLength:!0}).needLength;this.head=void 0,this.tail=void 0,i&&(this._length=0)}return c.prototype._incrementLength=function(){typeof this._length=="number"&&++this._length},c.prototype._decrementLength=function(){typeof this._length=="number"&&--this._length},c.prototype._setLength=function(a){typeof this._length=="number"&&(this._length=a)},Object.defineProperty(c.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"empty",{get:function(){return!this.head},enumerable:!1,configurable:!0}),c.prototype[Symbol.iterator]=function(){var a;return m(this,function(i){switch(i.label){case 0:a=this.head,i.label=1;case 1:return a?[4,a]:[3,3];case 2:return i.sent(),a=a.next,[3,1];case 3:return[2]}})},c.prototype.remove=function(a){if(!a)throw new Error("node is undefined!");u(this,a),this._decrementLength(),p(a)},c.prototype.getNode=function(a){for(var i=this.head;i!==null;){if(!i)throw new Error("current is undefined!");if(i.item===a)return i;i=i.next}},c.prototype.moveAfter=function(a,i){if(a!==i){u(this,i);var s=a.next;a.next=i,this.tail===a?this.tail=i:s&&(s.previous=i),i.next=s,i.previous=a}},c.prototype.moveBefore=function(a,i){if(a!==i){u(this,i);var s=a.previous;a.previous=i,this.head===a?this.head=i:s&&(s.next=i),i.previous=s,i.next=a}},c.prototype.insertBefore=function(a,i){var s=w(i,a.previous,a);return a.previous&&(a.previous.next=s),a.previous=s,this.head===a&&(this.head=s),this._incrementLength(),s},c.prototype.insertAfter=function(a,i){var s=w(i,a,a.next);return a.next&&(a.next.previous=s),a.next=s,this.tail===a&&(this.tail=s),this._incrementLength(),s},c.prototype._setFirstNode=function(a){if(this.head||this.tail)throw new Error("_setFirstNode error!");var i=w(a,void 0,void 0);if(this.head=i,this.tail=i,this._incrementLength(),this._length!==1)throw new Error("_setFirstNode error! this._length !== 1");return i},c.prototype.push=function(a){return this.tail?this.insertAfter(this.tail,a):this._setFirstNode(a)},c.prototype.pop=function(){if(!this.tail)throw new Error("DoublyLinkedList is empty!");var a=this.tail.item;return this.remove(this.tail),a},c.prototype.shift=function(){if(!this.head)throw new Error("DoublyLinkedList is empty!");var a=this.head.item;return this.remove(this.head),a},c.prototype.unshift=function(a){return this.head?this.insertBefore(this.head,a):this._setFirstNode(a)},c.prototype.removeAll=function(){for(var a=this.head;a;){var i=a.next;p(a),a=i}this.head=void 0,this.tail=void 0,this._setLength(0)},c}();A.DoublyLinkedList=f},1943:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B},p=this&&this.__spreadArray||function(i,s,r){if(r||arguments.length===2)for(var o,l=0,d=s.length;l<d;l++)!o&&l in s||(o||(o=Array.prototype.slice.call(s,0,l)),o[l]=s[l]);return i.concat(o||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.ThrottlingWithStartValues=A.Throttling=void 0;var u=h(1662),f=h(1148),c=function(i){function s(){var r=i.call(this,function(o,l,d){var B=o.errorFunc;try{var _=w((0,u.throttle)(l,d),2),b=_[0],E=_[1];return r._doFunc=b,E}catch(F){return B(F),function(){}}})||this;return r}return g(s,i),s.prototype.do=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.Throttling=c;var a=function(i){function s(r,o){var l=i.call(this,function(d){var B=d.errorFunc;try{var _=w((0,u.throttle)(r,o),2),b=_[0],E=_[1];return l._doFunc=b,E}catch(F){return B(F),function(){}}})||this;return l}return g(s,i),s.prototype.do=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.ThrottlingWithStartValues=a},1968:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.PointerHover=void 0;var w=h(7372),p=h(7372),u=h(8106),f=function(c){function a(){var i=c.call(this)||this;i._hoverEvent=i.disposeVar(new p.Event),i._hoverOutEvent=i.disposeVar(new p.Event),i._pointerdownEvent=i.disposeVar(new p.Event),i._pointerupEvent=i.disposeVar(new p.Event),i._pointermoveEvent=i.disposeVar(new p.Event),i._pointeroutEvent=i.disposeVar(new p.Event),i.delayTime=800;var s,r=i.disposeVar((0,u.createTimeout)()),o=function(){s?i._hoverEvent.emit(s):console.warn("!lastPointerEvent")};return i.dispose(i._pointerdownEvent.disposableOn(function(l){i._hoverOutEvent.emit()})),i.dispose(i._pointerupEvent.disposableOn(function(l){i._hoverOutEvent.emit()})),i.dispose(i._pointermoveEvent.disposableOn(function(l){s=l,r.restart(void 0,o,i.delayTime),i._hoverOutEvent.emit()})),i.dispose(i._pointeroutEvent.disposableOn(function(l){r.cancel(),i._hoverOutEvent.emit()})),i}return g(a,c),Object.defineProperty(a.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),a.prototype.pointerDown=function(i){this._pointerdownEvent.emit(i)},a.prototype.pointerUp=function(i){this._pointerupEvent.emit(i)},a.prototype.pointerMove=function(i){this._pointermoveEvent.emit(i)},a.prototype.pointerOut=function(i){this._pointeroutEvent.emit(i)},a}(w.Destroyable);A.PointerHover=f},2002:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.sleepDeprecated=void 0;var m=h(5726);A.sleepDeprecated=function(g,w){var p,u=void 0,f=new Promise(function(a,i){u=i,p=globalThis.setTimeout(function(){p=void 0,a()},g)}),c=function(a){p&&(clearTimeout(p),p=void 0),u&&u(a??new m.CancelError("sleep cancel error!"))};return typeof w=="boolean"&&w?[c,f]:w?((0,m._executeSetCancelFuncOrCancelResult)(w,c),f):void 0}},2051:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.Transition=void 0;var w=h(7372),p=h(7372),u=h(2127),f=function(c){function a(i){var s=c.call(this)||this;return s._stop=s.disposeVar((0,p.react)(0)),s._current=s.disposeVar((0,p.react)(0)),s._start=s.disposeVar((0,p.react)(0)),s._player=s.disposeVar(new u.Player(200)),s.dispose(s._player.currentTimeChangedEvent.disposableOn(function(r){var o=r/s._player.duration;o=o>1?1:o<0?0:o;var l=s._start.value,d=s._stop.value;s._current.value=l+(d-l)*o})),s.duration=i,s}return g(a,c),Object.defineProperty(a.prototype,"current",{get:function(){return this._current.value},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"currentChanged",{get:function(){return this._current.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return this._start.value},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sourceChanged",{get:function(){return this._start.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"target",{get:function(){return this._stop.value},set:function(i){this._start.value=this._current.value,this._stop.value=i,this._player.currentTime=0,this._player.playing=!0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"targetChanged",{get:function(){return this._stop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"duration",{get:function(){return this._player.duration},set:function(i){this._player.duration=i},enumerable:!1,configurable:!0}),a.prototype.reset=function(i){this._start.value=i,this._current.value=i,this._stop.value=i,this._player.playing=!1},a}(w.Destroyable);A.Transition=f},2075:(C,A,h)=>{h.r(A),h.d(A,{TaskProcessor:()=>r});var m=h(1662),g=h(2243);function w(l,d){return l??d}const p=Error,u=Error;function f(){if(!(0,g.defined)(r._canTransferArrayBuffer)){var l=new Worker(a("transferTypedArrayTest.js"));l.postMessage=w(l.webkitPostMessage,l.postMessage);var d=new Int8Array([99]);try{l.postMessage({array:d},[d.buffer])}catch{return r._canTransferArrayBuffer=!1,r._canTransferArrayBuffer}var B=g.when.defer();l.onmessage=function(_){var b=_.data.array,E=(0,g.defined)(b)&&b[0]===99;B.resolve(E),l.terminate(),r._canTransferArrayBuffer=E},r._canTransferArrayBuffer=B.promise}return r._canTransferArrayBuffer}function c(l,d){--l._activeTasks;var B=d.id;if((0,g.defined)(B)){var _=l._deferreds,b=_[B];if((0,g.defined)(d.error)){var E=d.error;E.name==="RuntimeError"?(E=new u(d.error.message)).stack=d.error.stack:E.name==="DeveloperError"&&((E=new p(d.error.message)).stack=d.error.stack),b.reject(E)}else b.resolve(d.result);delete _[B]}}function a(l){var d=function(E){return E=E.endsWith(".js")?E:E+".js",(0,m.getFinalUri)(E,r.workerBaseAbsoluteUri)}(l);if((0,m.isCrossOriginUrl)(d)){var B,_='importScripts("'+d+'");';try{B=new Blob([_],{type:"application/javascript"})}catch{var b=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);b.append(_),B=b.getBlob("application/javascript")}d=(window.URL||window.webkitURL).createObjectURL(B)}return d}var i;function s(l){var d=new Worker(((0,g.defined)(i)||(i=a("cesiumWorkerBootstrapper.js")),i));d.postMessage=w(d.webkitPostMessage,d.postMessage);const B=(0,m.isAbsoluteUri)(r.workerBaseAbsoluteUri)?r.workerBaseAbsoluteUri:"";var _={loaderConfig:{paths:{Workers:B},baseUrl:B},workerModule:l._workerName};return d.postMessage(_),d.onmessage=function(b){c(l,b.data)},d}function r(l,d){this._workerName=l,this._maximumActiveTasks=w(d,5),this._activeTasks=0,this._deferreds={},this._nextID=0}var o=[];r.prototype.scheduleTask=function(l,d){if((0,g.defined)(this._worker)||(this._worker=s(this)),!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var B=this;return(0,g.when)(f(),function(_){(0,g.defined)(d)?_||(d.length=0):d=o;var b=B._nextID++,E=g.when.defer();return B._deferreds[b]=E,B._worker.postMessage({id:b,parameters:l,canTransferArrayBuffer:_},d),E.promise})}},r.prototype.initWebAssemblyModule=function(l){(0,g.defined)(this._worker)||(this._worker=s(this));var d=g.when.defer(),B=this,_=this._worker;return getWebAssemblyLoaderConfig(this,l).then(function(b){return(0,g.when)(f(),function(E){var F,S=b.wasmBinary;(0,g.defined)(S)&&E&&(F=[S]),_.onmessage=function(U){_.onmessage=function(T){c(B,T.data)},d.resolve(U.data)},_.postMessage({webAssemblyConfig:b},F)})}),d},r.prototype.isDestroyed=function(){return!1},r.prototype.destroy=function(){return(0,g.defined)(this._worker)&&this._worker.terminate(),(0,m.destroyObject)(this)},r._defaultWorkerModulePrefix="Workers/",r._workerModulePrefix=r._defaultWorkerModulePrefix,r._canTransferArrayBuffer=void 0,r.workerBaseAbsoluteUri="xr-static/workers/core"},2082:(C,A)=>{function h(){return!0}function m(){throw new Error("throwOnDestroyed")}Object.defineProperty(A,"__esModule",{value:!0}),A.destroyObject=void 0,A.destroyObject=function(g){for(var w in g)typeof g[w]=="function"&&(g[w]=m);g.isDestroyed=h}},2127:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(A,"__esModule",{value:!0}),A.Player=void 0;var w=h(7372),p=h(7372),u=h(7372),f=h(1662),c=function(a){function i(s,r){s===void 0&&(s=1e3),r===void 0&&(r=f.defaultStartUpdateFunc);var o=a.call(this)||this;return o._currentTime=o.disposeVar((0,u.react)(0)),o._speed=1,o._duration=s,o._loop=!1,o.startUpdateFunc=r,o._updateBindThis=o._update.bind(o),o.dispose(function(){o._cancelStartUpdateFunc&&(o._cancelStartUpdateFunc(),o._cancelStartUpdateFunc=void 0)}),o._startTimeStamp=Number.NaN,o.dispose(function(){o._startPlayingEvent&&o._startPlayingEvent.reset(),o._stopPlayingEvent&&o._stopPlayingEvent.reset()}),o}return g(i,a),Object.defineProperty(i.prototype,"startPlayingEvent",{get:function(){return this._startPlayingEvent=this._startPlayingEvent||new p.Event,this._startPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"stopPlayingEvent",{get:function(){return this._stopPlayingEvent=this._stopPlayingEvent||new p.Event,this._stopPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"currentTimeChangedEvent",{get:function(){return this._currentTime.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"loopChangedEvent",{get:function(){return this._loopChangedEvent=this._loopChangedEvent||new p.Event,this._loopChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"loop",{get:function(){return this._loop},set:function(s){this._loop!==s&&(this._loop=s,this._loopChangedEvent&&this._loopChangedEvent.emit(this._loop))},enumerable:!1,configurable:!0}),i.prototype._update=function(s){if(Number.isNaN(this._startTimeStamp))console.warn("Number.isNaN(this._startTimeStamp)");else{var r=(s-this._startTimeStamp)*this._speed;this._setCurrentTimeInner(r)}},Object.defineProperty(i.prototype,"currentTime",{get:function(){return this._currentTime.value},set:function(s){this._setCurrentTimeInner(s),this._resetStartTime()},enumerable:!1,configurable:!0}),i.prototype._setCurrentTimeInner=function(s){this._currentTime.value!==s&&(this._duration<=0?this._currentTime.value=0:s<0?this.loop?this._currentTime.value=this._duration+s%this._duration:(this._currentTime.value=0,this.playing&&this._stopPlaying()):s>this._duration?this.loop?this._currentTime.value=s%this._duration:(this._currentTime.value=this._duration,this.playing&&this._stopPlaying()):this._currentTime.value=s)},Object.defineProperty(i.prototype,"durationChangedEvent",{get:function(){return this._durationChangedEvent||(this._durationChangedEvent=new p.Event),this._durationChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"duration",{get:function(){return this._duration},set:function(s){var r;if(s<0)console.warn("duration sholud greater than 0!");else if(this._duration!==s){var o=this._duration;this._duration=s,this._currentTime.value>this._duration&&(this._currentTime.value=this._duration),(r=this._durationChangedEvent)===null||r===void 0||r.emit(this._duration,o)}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"speedChangedEvent",{get:function(){return this._speedChangedEvent||(this._speedChangedEvent=new p.Event),this._speedChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"speed",{get:function(){return this._speed},set:function(s){var r;if(this._speed!==s&&s!==0){var o=this._speed;this._speed=s,this._resetStartTime(),(r=this._speedChangedEvent)===null||r===void 0||r.emit(this._speed,o)}},enumerable:!1,configurable:!0}),i.prototype._resetStartTime=function(){this._startTimeStamp=performance.now()-this._currentTime.value/this._speed},i.prototype._startPlaying=function(){var s,r;this._resetStartTime(),this._cancelStartUpdateFunc=this.startUpdateFunc(this._updateBindThis),(s=this._startPlayingEvent)===null||s===void 0||s.emit(this._currentTime.value),(r=this._playingChangedEvent)===null||r===void 0||r.emit(!0)},i.prototype._stopPlaying=function(){var s,r;if(!this._cancelStartUpdateFunc)throw new Error("this._cancelStartUpdateFunc is undefined!");this._cancelStartUpdateFunc(),this._cancelStartUpdateFunc=void 0,(s=this._stopPlayingEvent)===null||s===void 0||s.emit(this._currentTime.value),(r=this._playingChangedEvent)===null||r===void 0||r.emit(!1)},Object.defineProperty(i.prototype,"playingChangedEvent",{get:function(){return this._playingChangedEvent||(this._playingChangedEvent=new p.Event),this._playingChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"playing",{get:function(){return!!this._cancelStartUpdateFunc},set:function(s){!!this._cancelStartUpdateFunc!==s&&(s?this._startPlaying():this._stopPlaying())},enumerable:!1,configurable:!0}),i}(w.Destroyable);A.Player=c},2168:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getReactFuncs=void 0;var m=h(8835),g=h(6583);A.getReactFuncs=function(w){var p=(0,m.getCompleteReactParams)(w);return[function(){return p[0][p[1]]},function(u){try{p[0][p[1]]=u}catch(f){(0,g.oneTimeWarning)("setValue error, obj(".concat(p[0].constructor.name,") prop(").concat(p[1],") error(").concat(f,")"))}},p[0][p[2]]]}},2217:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerHoverDeprecated=void 0;var p=h(7372),u=h(7372),f=h(109),c=h(2299),a=function(i){function s(r,o){o===void 0&&(o=1500);var l=i.call(this)||this;l._hoverEvent=new u.Event,l._hoverOutEvent=new u.Event;var d=new f.DebouncingDeprecated(o);l.dispose(function(){return d.destroy()});var B,_=0,b=0;d.progressFunc=function(){return l._hoverEvent.emit(_,b,B)};var E=function(T){var Q;!d.isRunning&&d.restart(),B=T,Q=w((0,c.getDomEventCurrentTargetPos)(T),2),_=Q[0],b=Q[1],d.debounce(),l._hoverOutEvent.emit()},F=function(T){var Q;!d.isRunning&&d.restart(),B=T,Q=w((0,c.getDomEventCurrentTargetPos)(B),2),_=Q[0],b=Q[1],d.debounce(),l._hoverOutEvent.emit()},S=function(T){var Q;!d.isRunning&&d.restart(),B=T,Q=w((0,c.getDomEventCurrentTargetPos)(B),2),_=Q[0],b=Q[1],d.debounce(),l._hoverOutEvent.emit()},U=function(T){d.isRunning&&d.cancel(),l._hoverOutEvent.emit()};return r.addEventListener("pointerdown",E),r.addEventListener("pointerup",F),r.addEventListener("pointermove",S),r.addEventListener("pointerout",U),l.dispose(function(){r.removeEventListener("pointerdown",E),r.removeEventListener("pointerup",F),r.removeEventListener("pointermove",S),r.removeEventListener("pointerout",U)}),l}return g(s,i),Object.defineProperty(s.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),s}(p.Destroyable);A.PointerHoverDeprecated=a},2220:function(C,A,h){var m,g=this&&this.__extends||(m=function(o,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,B){d.__proto__=B}||function(d,B){for(var _ in B)Object.prototype.hasOwnProperty.call(B,_)&&(d[_]=B[_])},m(o,l)},function(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=o}m(o,l),o.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),w=this&&this.__createBinding||(Object.create?function(o,l,d,B){B===void 0&&(B=d);var _=Object.getOwnPropertyDescriptor(l,d);_&&!("get"in _?!l.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(o,B,_)}:function(o,l,d,B){B===void 0&&(B=d),o[B]=l[d]}),p=this&&this.__exportStar||function(o,l){for(var d in o)d==="default"||Object.prototype.hasOwnProperty.call(l,d)||w(l,o,d)},u=this&&this.__values||function(o){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&o[l],B=0;if(d)return d.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&B>=o.length&&(o=void 0),{value:o&&o[B++],done:!o}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(o,l){var d=typeof Symbol=="function"&&o[Symbol.iterator];if(!d)return o;var B,_,b=d.call(o),E=[];try{for(;(l===void 0||l-- >0)&&!(B=b.next()).done;)E.push(B.value)}catch(F){_={error:F}}finally{try{B&&!B.done&&(d=b.return)&&d.call(b)}finally{if(_)throw _.error}}return E},c=this&&this.__spreadArray||function(o,l,d){if(d||arguments.length===2)for(var B,_=0,b=l.length;_<b;_++)!B&&_ in l||(B||(B=Array.prototype.slice.call(l,0,_)),B[_]=l[_]);return o.concat(B||Array.prototype.slice.call(l))};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObject=void 0;var a=h(1662),i=h(3815),s=h(2723),r=function(o){function l(d){var B=o.call(this)||this;return B._components=B.disposeVar(new i.ObservableSet),d!==void 0&&(typeof d!="string"?console.warn("场景对象创建时的ID必须是字符串类型,而这里是id的类型是".concat(typeof d,",值为").concat(d)):d.trim()===""?console.warn("场景对象创建时的ID不能是空字符串!"):d.trim()!==d&&console.warn("id前后有空字符串!id: ".concat(d))),B._id=d??(0,a.createGuid)(),B._setDefaultName(),B}return g(l,o),Object.defineProperty(l,"sceneObjs",{get:function(){return l.context.sceneObjs},enumerable:!1,configurable:!0}),l.getSceneObjById=function(d){return l.context.getSceneObjectById(d)},l.getSceneObjsByDevTags=function(d){return l.context.getSceneObjectsByDevTags(d)},Object.defineProperty(l,"$refs",{get:function(){return l.context.refsManager.refs},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"defaultProps",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"id",{get:function(){return this._id},set:function(d){console.error("当前正在试图修改场景对象(".concat(this.name,"/").concat(this.typeName,")的ID,只有在创建时才可以设置ID!后期修改无效!!!"))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"components",{get:function(){return this._components},enumerable:!1,configurable:!0}),l.prototype._setDefaultName=function(){this.name="".concat(this.typeName,"_").concat((""+this.id).slice(-4))},l.prototype._innerGetJson=function(d){var B,_;d===void 0&&(d=!0);var b={id:this.id,type:this.typeName};try{for(var E=u(Object.keys(this.defaultProps)),F=E.next();!F.done;F=E.next()){var S=F.value;if(d){var U=this.defaultProps[S];(U instanceof a.ReactiveVariable?U.equals(this[S]):U===this[S])||(b[S]=this[S])}else b[S]=this[S]}}catch(T){B={error:T}}finally{try{F&&!F.done&&(_=E.return)&&_.call(E)}finally{if(B)throw B.error}}return b},l.prototype._innerSetJson=function(d,B,_){var b,E;if(d instanceof Object&&(!d.type||d.type===this.typeName)){d.id&&d.id!==this.id&&console.warn("value.id === undefined || value.id".concat(d.id," !== this.id(").concat(this.id,")"));var F=B||[];F.push("id","type");var S=Object.keys(this.defaultProps).filter(function(I){return!F.includes(I)});try{for(var U=u(S),T=U.next();!T.done;T=U.next()){var Q=T.value;if(Q in d)this[Q]=d[Q]===null?void 0:d[Q];else if(_==null||!_){var P=this.defaultProps[Q];P instanceof a.ReactiveVariable&&(P=P.value),this[Q]=P}}}catch(I){b={error:I}}finally{try{T&&!T.done&&(E=U.return)&&E.call(U)}finally{if(b)throw b.error}}}else console.error("value.type && value.type".concat(d.type," !== this.typeName").concat(this.typeName))},l.prototype.setJsonWithoutDefaults=function(d){this._innerSetJson(d,void 0,!0)},l.prototype.setJsonWithDefaults=function(d){this._innerSetJson(d,void 0,!1)},l.prototype.getJsonWithDefaults=function(){return this._innerGetJson(!1)},l.prototype.getJsonWithoutDefaults=function(){return this._innerGetJson(!0)},Object.defineProperty(l.prototype,"jsonStr",{get:function(){return JSON.stringify(this.json,void 0," ")},set:function(d){try{this.json=d&&JSON.parse(d)||{}}catch(B){console.error("SceneObject解析json数据时发生错误!error: ".concat(B))}},enumerable:!1,configurable:!0}),l.prototype.addDevTag=function(){for(var d=this,B=[],_=0;_<arguments.length;_++)B[_]=arguments[_];if(this.devTags){var b=B.filter(function(E){return!d.devTags.includes(E)});b.length>0&&(this.devTags=c(c([],f(this.devTags),!1),f(b),!1))}else this.devTags=B},l.prototype.deleteDevTag=function(){for(var d=[],B=0;B<arguments.length;B++)d[B]=arguments[B];if(this.devTags){var _=this.devTags.filter(function(b){return!d.includes(b)});this.devTags=_}},Object.defineProperty(l.prototype,"selfCreatedEvent",{get:function(){var d=this;return this._selfCreatedEvent||(this._selfCreatedEvent=this.disposeVar(new a.Event),this.dispose(l.context.sceneObjCreatedEvent.disposableOn(function(B){if(!d._selfCreatedEvent)throw new Error("!this._createdEvent");B===d&&d._selfCreatedEvent.emit()}))),this._selfCreatedEvent},enumerable:!1,configurable:!0}),l.context=new s.SceneObjectsContext,l.register=l.context.register.bind(l.context),l.create=l.context.createSceneObject.bind(l.context),l.createFromClass=l.context.createSceneObjectFromClass.bind(l.context),l.createFromJson=l.context.createSceneObjectFromJson.bind(l.context),l}(a.Destroyable);A.SceneObject=r,function(o){o.createDefaultProps=function(){return{name:"未命名场景对象",ref:void 0,devTags:(0,a.reactArrayWithUndefined)(void 0),extras:(0,a.reactJson)(void 0)}}}(r=A.SceneObject||(A.SceneObject={})),A.SceneObject=r,(0,a.extendClassProps)(r.prototype,r.createDefaultProps),p(h(146),A)},2228:(C,A)=>{function h(E,F){return F===void 0&&(F=[0,0]),F[0]=-E[1],F[1]=E[0],F}function m(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E[0]-F[0],S[1]=E[1]-F[1],S}function g(E,F){F===void 0&&(F=[0,0]);var S=function(U){return Math.sqrt(function(T){return T[0]*T[0]+T[1]*T[1]}(U))}(E);return F[0]=E[0]/S,F[1]=E[1]/S,F}function w(E,F){return F===void 0&&(F=[0,0]),F[0]=-E[0],F[1]=-E[1],F}function p(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E[0]*F,S[1]=E[1]*F,S}function u(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E[0]+F[0],S[1]=E[1]+F[1],S}function f(E,F){var S,U,T=(U=F,(S=E)[0]*U[0]+S[1]*U[1]),Q=Math.acos(T);return 1/Math.cos(Q/2)}function c(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E,S[1]=F,S}Object.defineProperty(A,"__esModule",{value:!0}),A.extrudePolyline=void 0;var a=[0,0],i=[0,0],s=[0,0],r=[0,0],o=[0,0],l=[0,0],d=[0,0],B=[0,0];function _(E,F,S,U,T,Q){var P=m(E,F,B),I=h(g(P,P),r),M=m(S,E,B),K=h(g(M,M),l),W=w(I,o),L=w(K,d),O=u(I,K);g(O,O);var H,k,G=(k=K,(H=I)[0]*k[1]-H[1]*k[0]);if(Math.abs(G)<.1)u(N=p(O,U,B),E,N),Q.push(N[0],N[1]),T.push(Q.length/2),Q.push(E[0],E[1]),T.push(Q.length/2),p(Y=w(O,B),U,Y),u(Y,E,Y),Q.push(Y[0],Y[1]),T.push(Q.length/2);else if(G<0){u(N=p(I,U,B),E,N),Q.push(N[0],N[1]);var R=p(O,U,B);u(R,E,R),Q.push(R[0],R[1]),u(Y=p(K,U,B),E,Y),Q.push(Y[0],Y[1]),T.push(Q.length/2),Q.push(E[0],E[1]),T.push(Q.length/2),D=(D=f(L,W))>3?3:D,p($=w(O,B),D*U,$),u($,E,$),Q.push($[0],$[1]),T.push(Q.length/2)}else{var D,N,Y;u(N=p(O,(D=(D=f(I,K))>3?3:D)*U,B),E,N),Q.push(N[0],N[1]),T.push(Q.length/2),Q.push(E[0],E[1]),T.push(Q.length/2),u(Y=p(W,U,B),E,Y),Q.push(Y[0],Y[1]);var $,q=w(O,B);p(q,U,q),u(q,E,q),Q.push(q[0],q[1]),u($=p(L,U,B),E,$),Q.push($[0],$[1]),T.push(Q.length/2)}}var b=[];A.extrudePolyline=function(E,F,S,U,T,Q){S===void 0&&(S=!1),U=U??[],T=T??[],Q=Q??[];var P=b;P.length=0,function(I,M,K,W,L){if(K===void 0&&(K=!1),I.length%2!=0)throw new Error("positions.length % 2 !== 0");W=W??[],L=L??[];var O=I,H=O.length/2;if(!(H<2)){if(K){if(!(H>=3))throw new Error("loop should have >= 3 vertex!");var k=c(O[0],O[1],a),G=c(O[2],O[3],s);_(k,c(O[2*(H-1)+0],O[2*(H-1)+1],i),G,M,L,W)}else{k=c(O[0],O[1],a);var R=m(G=c(O[2],O[3],s),k,B),D=h(g(R,R),l);u(Y=p(D,M,B),k,Y),W.push(Y[0],Y[1]),L.push(W.length/2),W.push(k[0],k[1]),L.push(W.length/2),p($=w(D,B),M,$),u($,k,$),W.push($[0],$[1]),L.push(W.length/2)}if(H>=3)for(var N=1;N<H-1;++N)k=c(O[2*N+0],O[2*N+1],a),G=c(O[2*(N+1)+0],O[2*(N+1)+1],s),_(k,c(O[2*(N-1)+0],O[2*(N-1)+1],i),G,M,L,W);if(K){if(!(H>=3))throw new Error("loop should have >= 3 vertex!");k=c(O[2*(H-1)+0],O[2*(H-1)+1],a),G=c(O[0],O[1],s),_(k,c(O[2*(H-2)+0],O[2*(H-2)*1],i),G,M,L,W)}else{var Y,$,q=m(k=c(O[2*(H-1)+0],O[2*(H-1)+1],a),c(O[2*(H-2)+0],O[2*(H-2)+1],i),B),oe=h(g(q,q),r);u(Y=p(oe,M,B),k,Y),W.push(Y[0],Y[1]),L.push(W.length/2),W.push(k[0],k[1]),L.push(W.length/2),p($=w(oe,B),M,$),u($,k,$),W.push($[0],$[1]),L.push(W.length/2)}}}(E,.5*F,S,U,P),function(I,M,K,W,L){if(W=W||[],L=L||[],I.length%2!=0)throw new Error("extrudedPositions.length % 2 !== 0");if(K.length%3!=0)throw new Error("extrudesSegments.length % 3 !== 0");for(var O=K.length/3,H=0,k=0;k<O;++k){for(var G=K[3*k+0],R=K[3*k+1],D=K[3*k+2],N=H;N<G;++N)W.push(0,0);if(G-H>=2)for(var Y=H+1;Y<G;++Y)L.push(G,Y,Y-1);W.push(0,.5);for(var $=R;$<D;++$)W.push(0,1);if(D-R>=2)for(var q=R+1;q<D;++q)L.push(G,q-1,q);H=D}for(H=0,k=0;k<O-1;++k){var oe=K[3*k+0]-1,ae=K[3*k+1]-1,me=K[3*k+2]-1,we=K[3*k+2],ne=K[3*(k+1)+0],se=K[3*(k+1)+1];L.push(oe,ae,ne),L.push(oe,ne,we),L.push(ae,me,se),L.push(ae,se,ne)}M&&(oe=K[3*(O-1)+0]-1,ae=K[3*(O-1)+1]-1,me=K[3*(O-1)+2]-1,we=0,ne=K[0],se=K[1],L.push(oe,ae,ne),L.push(oe,ne,we),L.push(ae,me,se),L.push(ae,se,ne))}(U,S,P,T,Q)}},2243:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5486),A),g(h(3631),A)},2267:(C,A)=>{function h(m,g){return(new Array(g).join("0")+m).slice(-g)}Object.defineProperty(A,"__esModule",{value:!0}),A.getDateTime=A.formatInterger=void 0,A.formatInterger=h,A.getDateTime=function(){var m=function(i){return h(i,2)},g=new Date,w=g.getFullYear(),p=g.getMonth()+1,u=g.getDate(),f=g.getHours(),c=g.getMinutes(),a=g.getSeconds();return"".concat(w,"-").concat(m(p),"-").concat(m(u)," ").concat(m(f),":").concat(m(c),":").concat(m(a))}},2277:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPrimitive=void 0;var w=h(1662),p=h(7372),u=h(7372),f=function(c){function a(i,s){s===void 0&&(s={});var r=c.call(this)||this;r._canvasPrimitivesContext=i,r._id=(0,w.createGuid)(),r._actived=!1,r._hovered=!1,r._selected=!1,r._opacity=1,r._show=!0;var o=s.needRedraw,l=o===void 0||o,d=s.needPickRedraw,B=d===void 0||d;return l&&(r._needRedrawEvent=new u.Event),B&&(r._needPickRedrawEvent=new u.Event),r._canvasPrimitivesContext.addPoi(r),r.dispose(function(){return r._canvasPrimitivesContext.removePoi(r)}),r.dispose(r.showChanged.disposableOn(function(){r.needRedraw(),r.needPickRedraw()})),r.dispose(r.opacityChanged.disposableOn(function(){return r.needRedraw()})),r}return g(a,c),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._canvasPrimitivesContext},enumerable:!1,configurable:!0}),a.prototype.needRedraw=function(){this._needRedrawEvent?this._needRedrawEvent.emit():console.warn("no needRedrawEvent!")},a.prototype.needPickRedraw=function(){this._needPickRedrawEvent?this._needPickRedrawEvent.emit():console.warn("no needPickRedrawEvent!")},a.prototype.hasClickEvent=function(){return!!this._clickEvent},Object.defineProperty(a.prototype,"clickEvent",{get:function(){return this._clickEvent=this._clickEvent||new u.Event,this._clickEvent},enumerable:!1,configurable:!0}),a.prototype.hasClickOutEvent=function(){return!!this._clickOutEvent},Object.defineProperty(a.prototype,"clickOutEvent",{get:function(){return this._clickOutEvent=this._clickOutEvent||new u.Event,this._clickOutEvent},enumerable:!1,configurable:!0}),a.prototype.hasDbclickEvent=function(){return!!this._dbclickEvent},Object.defineProperty(a.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent=this._dbclickEvent||new u.Event,this._dbclickEvent},enumerable:!1,configurable:!0}),a.prototype.hasDbclickOutEvent=function(){return!!this._dbclickOutEvent},Object.defineProperty(a.prototype,"dbclickOutEvent",{get:function(){return this._dbclickOutEvent=this._dbclickOutEvent||new u.Event,this._dbclickOutEvent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"actived",{get:function(){return this._actived},set:function(i){this._actived!==i&&(this._actived=i,this._activedChanged&&this._activedChanged.emit(i,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activedChanged",{get:function(){return this._activedChanged=this._activedChanged||new u.Event,this._activedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hovered",{get:function(){return this._hovered},set:function(i){this._hovered!==i&&(this._hovered=i,this._hoveredChanged&&this._hoveredChanged.emit(i,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hoveredChanged",{get:function(){return this._hoveredChanged=this._hoveredChanged||new u.Event,this._hoveredChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selected",{get:function(){return this._selected},set:function(i){this._selected!==i&&(this._selected=i,this._selectedChanged&&this._selectedChanged.emit(i,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selectedChanged",{get:function(){return this._selectedChanged=this._selectedChanged||new u.Event,this._selectedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"opacity",{get:function(){return this._opacity},set:function(i){this._opacity!==i&&(this._opacity=i,this._opacityChanged&&this._opacityChanged.emit(i,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new u.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"show",{get:function(){return this._show},set:function(i){this._show!==i&&(this._show=i,this._showChanged&&this._showChanged.emit(i,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new u.Event,this._showChanged},enumerable:!1,configurable:!0}),a}(p.Destroyable);A.CanvasPrimitive=f},2299:(C,A)=>{function h(g,w){w=w||[];var p=g.parentNode;return p?h(p,w.concat(p)):w}function m(g){var w=g.composedPath&&g.composedPath()||g.path,p=g.target;if(w!=null)return w.indexOf(window)<0?w.concat(window):w;if(p===window)return[window];if(p===null)throw new Error("target === null");return[p].concat(h(p),window)}Object.defineProperty(A,"__esModule",{value:!0}),A.getDomEventCurrentTargetPos=void 0,A.getDomEventCurrentTargetPos=function(g,w){w===void 0&&(w=!1);for(var p=g.offsetX,u=g.offsetY,f=m(g),c=0;c<f.length;++c){var a=f[c];if(!(a!==g.currentTarget&&a instanceof HTMLElement))break;p+=a.clientLeft,u+=a.clientTop,p+=a.offsetLeft,u+=a.offsetTop}return w?[p*window.devicePixelRatio,u*window.devicePixelRatio]:[p,u]}},2429:function(C,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),w=this&&this.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,o=r&&s[r],l=0;if(o)return o.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&l>=s.length&&(s=void 0),{value:s&&s[l++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.destroyAnimationWithChildren=A.Animation=A.Channel=void 0;var p=h(7372),u=h(1662),f=h(7372),c=0,a=function(s){function r(o,l){o===void 0&&(o=0),l===void 0&&(l=1e3);var d=s.call(this)||this;return d._startTime=Number.NaN,d._enabled=!0,d._animation=new i(l),d.dispose(function(){return d._animation.destroy()}),d.dispose(function(){d._changedEvent&&(d._changedEvent.reset(),d._changedEvent=void 0)}),d.startTime=o,d.dispose(d._animation.changedEvent.disposableOn(function(){d.changedEvent&&d.changedEvent.emit(d)})),d}return g(r,s),Object.defineProperty(r.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"startTime",{get:function(){return this._startTime},set:function(o){this._startTime!==o&&(this._startTime=o,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"enabled",{get:function(){return this._enabled},set:function(o){this._enabled!==o&&(this._enabled=o,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),r}(p.Destroyable);A.Channel=a;var i=function(s){function r(o){o===void 0&&(o=0);var l=s.call(this)||this;return l._duration=o,l._currentTime=Number.NaN,l.dispose(function(){l._channels&&(l._channels.destroy(),l._channels=void 0),l.enterFunc=void 0,l.leaveFunc=void 0,l.progressFunc=void 0,l._changedEvent&&(l._changedEvent.reset(),l._changedEvent=void 0)}),l}return g(r,s),Object.defineProperty(r.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name||(this._name="Unknown".concat(++c)),this._name},set:function(o){this._name!==o&&(this._name=o,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasChannels",{get:function(){return!(!this._channels||this._channels.length===0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"channels",{get:function(){var o=this;if(!this._channels){var l=new WeakMap,d=new u.ObservableArray;this.dispose(d.toChangeEvent.disposableOn(function(B,_){for(var b=B.length,E=0;E<b;++E){var F=B[E];if(F.deleteCount>0)for(var S=F.start;S<F.deleteCount;++S){var U=_.get(S);if(!(M=l.get(U)))throw console.error("!disposeFunc"),new Error("!disposeFunc");M(),l.delete(U)}if(F.items.length>0)for(var T=F.items,Q=T.length,P=0;P<Q;++P){var I=T[P],M=I.changedEvent.disposableOn(function(K){o.recomputeDurationFromChildren(!1),o._changedEvent&&o._changedEvent.emit(o)});l.set(I,M)}}return!0})),this.dispose(d.changedEvent.disposableOn(function(){o.recomputeDurationFromChildren(!1),o._changedEvent&&o._changedEvent.emit(o)})),this._channels=d}return this._channels},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"duration",{get:function(){return this._duration},set:function(o){this._duration!==o&&(this._duration,this._duration=o,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),r.prototype.recomputeDurationFromChildren=function(o){o===void 0&&(o=!1);var l=this._channels;if(l&&l.length>0){for(var d=0,B=l.length,_=0;_<B;++_){var b=l.get(_),E=b.animation,F=b.startTime;o&&E.recomputeDurationFromChildren();var S=F+E.duration;d<S&&(d=S)}this.duration=d}},r.prototype.valid=function(o){return(o=o??this._currentTime)>=0&&o<=this.duration},Object.defineProperty(r.prototype,"currentTime",{get:function(){return this._currentTime},set:function(o){if(this.valid(o)||(o=Number.NaN),!(Number.isNaN(o)&&Number.isNaN(this._currentTime))){if(this._currentTime!==o){var l=this._currentTime;if(Number.isNaN(o)?this.leaveFunc&&this.leaveFunc(l):Number.isNaN(this._currentTime)&&this.enterFunc&&this.enterFunc(o),this._currentTime=o,Number.isNaN(o)||this.progressFunc&&this.progressFunc(o,l),this._channels)for(var d=this._channels.length,B=0;B<d;++B){var _=this._channels.get(B),b=_.animation,E=_.startTime;if(_.enabled)if(Number.isNaN(o))b.currentTime=Number.NaN;else if(Number.isNaN(l)){var F=o-E;b.currentTime=F}else{var S=E+b.duration;F=o-E,o>l?(o<=E&&(b.currentTime=F),E>l&&E<=o&&(b.currentTime=0),o>E&&o<=S&&(b.currentTime=F),S>l&&S<=o&&(b.currentTime=b.duration),o>S&&(b.currentTime=F)):o<l&&(o>S&&(b.currentTime=F),S>l&&S<=o&&(b.currentTime=b.duration),o>E&&o<=S&&(b.currentTime=F),E>l&&E<=o&&(b.currentTime=0),o<=E&&(b.currentTime=F))}}}}},enumerable:!1,configurable:!0}),r}(p.Destroyable);A.Animation=i,A.destroyAnimationWithChildren=function s(r){var o,l;if(r.hasChannels)try{for(var d=w(r.channels),B=d.next();!B.done;B=d.next())s(B.value.animation)}catch(_){o={error:_}}finally{try{B&&!B.done&&(l=d.return)&&l.call(d)}finally{if(o)throw o.error}}r.destroy()}},2452:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerHandler=void 0;var h=function(){function m(){}return m.prototype._reset=function(g,w){this._listenerHandler=g,this._cid=w},m.prototype.clone=function(g){return(g=g??new m)._reset(this._listenerHandler,this._cid),g},Object.defineProperty(m.prototype,"valid",{get:function(){if(this._listenerHandler!==void 0&&typeof this._cid=="number"){var g=this._listenerHandler._cid;if(g!==void 0&&this._cid===g)return!0}return!1},enumerable:!1,configurable:!0}),m}();A.SmartListenerHandler=h},2520:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},p=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObservableArray=void 0;var u=h(9359),f=h(4899),c=function(a){function i(){var s=a.call(this)||this;return s._innerObj=[],s.dispose(function(){if(s.length=0,s._innerObj.length>0)throw new Error("this._innerObj.length > 0");s._toChangeEvent&&s._toChangeEvent.reset(),s._innerObj=void 0}),s}return g(i,a),Object.defineProperty(i.prototype,"toChangeEvent",{get:function(){return this._toChangeEvent||(this._toChangeEvent=new f.Event),this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),i.prototype._resetArray=function(s){this._toChangeEvent&&this._toChangeEvent.emit([{start:0,deleteCount:this._innerObj.length,items:s}],this);var r=s.length;this._innerObj.length=r;for(var o=0;o<r;++o)this._innerObj[o]=s[o];this._changedEvent&&this._changedEvent.emit(this)},i.prototype.splice=function(s,r){for(var o,l=[],d=2;d<arguments.length;d++)l[d-2]=arguments[d];var B=this._innerObj.length;(s=s>this._innerObj.length?this._innerObj.length:s)>B?s=B:s<0&&(s+=B)<0&&(s=0);var _=this._innerObj.length-s;if(r>_?r=_:r<0&&(r=0),arguments.length===1){this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:this._innerObj.length-s,items:[]}],this);var b=this._innerObj.splice(s);return this._changedEvent&&this._changedEvent.emit(this),b}return arguments.length===2?(this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:r,items:[]}],this),b=this._innerObj.splice(s,r),this._changedEvent&&this._changedEvent.emit(this),b):(this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:r,items:l}],this),b=(o=this._innerObj).splice.apply(o,p([s,r],w(l),!1)),this._changedEvent&&this._changedEvent.emit(this),b)},i.prototype.pop=function(){if(this._innerObj.length!==0){if(this._toChangeEvent){var s=this._innerObj.length-1;this._toChangeEvent.emit([{start:s,deleteCount:1,items:[]}],this)}var r=this._innerObj.pop();return this._changedEvent&&this._changedEvent.emit(this),r}},i.prototype.push=function(){for(var s,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(this._toChangeEvent){var l=this._innerObj.length;this._toChangeEvent.emit([{start:l,deleteCount:0,items:r}],this)}var d=(s=this._innerObj).push.apply(s,p([],w(r),!1));return this._changedEvent&&this._changedEvent.emit(this),d},Object.defineProperty(i.prototype,"length",{get:function(){return this._innerObj.length},set:function(s){if(s<0)throw new Error("value < 0");var r=this._innerObj.length;if(r!==s){if(this._toChangeEvent){var o=void 0,l=void 0,d=void 0;r>s?(o=s,l=r-s,d=[]):(o=r,l=0,d=new Array(s-r)),this._toChangeEvent.emit([{start:o,deleteCount:l,items:d}],this)}this._innerObj.length=s,this._changedEvent&&this._changedEvent.emit(this)}},enumerable:!1,configurable:!0}),i.prototype.get=function(s){return this._innerObj[s]},i.prototype.set=function(s,r){var o=this._innerObj.length;if(s<0||s>=o)throw new Error("index < 0 || index >= length");this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:1,items:[r]}],this),this._innerObj[s]=r,this._changedEvent&&this._changedEvent.emit(this)},i.prototype.indexOf=function(s){return this._innerObj.indexOf(s)},i.prototype[Symbol.iterator]=function(){return this._innerObj[Symbol.iterator]()},i}(u.Destroyable);A.ObservableArray=c},2601:function(C,A,h){var m=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,i){if(i||arguments.length===2)for(var s,r=0,o=a.length;r<o;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.wrapAsyncFuncToCancelablePromise=A.cancelablePromise=A._executeSetCancelFuncOrCancelResult=void 0;var w=h(8055);function p(c,a){typeof c=="function"?c(a):c.cancelFunc=a}function u(c,a){return a instanceof Promise?function(i,s){var r=void 0,o=s.then(function(l){if(r)throw r;return l});return p(i,function(l){r=l??new w.CancelError("_revocablePromise_forPromise cancel error!")}),o}(c,a):function(i,s){return new Promise(function(r,o){p(i,function(l){o(l??new w.CancelError("_revocablePromise_forExecutor cancel error!"))});try{s(r,o)}catch(l){o(l)}})}(c,a)}function f(c,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var r,o=void 0,l=a.apply(void 0,g([{cancelCheck:function(){if(o)throw o},registerCancelFunc:function(d){(r=r||[]).push(d)}}],m(i),!1));return p(c,function(d){if(o=d??new w.CancelError("wrapAsyncFuncToRevocablePromise cancel error!"),r)for(var B=r.length-1;B>=0;--B)(0,r[B])(d)}),l}A._executeSetCancelFuncOrCancelResult=p,A.cancelablePromise=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length===1){if(c[0]instanceof Promise){var i=u(r={},c[0]),s=r.cancelFunc;if(!s)throw new Error("!cancelResult.cancelFunc");return[s,i]}}else if(c.length===2){var r;if(c[0]instanceof Object)return u(r=c[0],c[1])}throw new Error("args wrong!")},A.wrapAsyncFuncToCancelablePromise=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length>=1){if(typeof c[0]=="function"){var i={},s=f.apply(void 0,g([i],m(c),!1)),r=i.cancelFunc;if(!r)throw new Error("!cancelResult.cancelFunc");return[r,s]}return f.apply(void 0,g([],m(c),!1))}throw new Error("wrapAsyncFuncToCancelablePromise args error!")}},2723:function(C,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),w=this&&this.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,o=r&&s[r],l=0;if(o)return o.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&l>=s.length&&(s=void 0),{value:s&&s[l++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(s,r){var o=typeof Symbol=="function"&&s[Symbol.iterator];if(!o)return s;var l,d,B=o.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=B.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(o=B.return)&&o.call(B)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObjectsContext=void 0;var u=h(1662),f=h(9367),c=h(9026),a=h(1545),i=function(s){function r(){var o=s.call(this)||this;return o._sceneObjConstructorsMap=new Map,o._sceneObjs=new Map,o._sceneObjCreatedEvent=new u.Event,o._sceneObjToDestroyEvent=new u.Event,o._refsManager=o.disposeVar(new a.RefsManager(o)),o._environmentVariables={"xr-static":"xr-static"},o._environmentVariablesChanged=o.disposeVar(new u.Event),o}return g(r,s),Object.defineProperty(r.prototype,"typeNames",{get:function(){return this._sceneObjConstructorsMap.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjs",{get:function(){return this._sceneObjs.values()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjCreatedEvent",{get:function(){return this._sceneObjCreatedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjToDestroyEvent",{get:function(){return this._sceneObjToDestroyEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refsManager",{get:function(){return this._refsManager},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"$refs",{get:function(){return this._refsManager.refs},enumerable:!1,configurable:!0}),r.prototype.register=function(o,l,d){return this._sceneObjConstructorsMap.has(o)&&(console.warn("register warn: ".concat(o," has registered, object is: ")),console.warn(this._sceneObjConstructorsMap.get(o))),this._sceneObjConstructorsMap.set(o,l),d&&this.setProps(o,d),o},r.prototype._getSceneObjConstructor=function(o){return this._sceneObjConstructorsMap.get(o)||void 0},r.prototype.getProps=function(o){var l=this._getSceneObjConstructor(o);if(l)return(0,u.getExtProp)(l,"__sceneObjExtraInfo");console.warn("cannot get constructor from type: ".concat(o))},r.prototype.setProps=function(o,l){var d=this._getSceneObjConstructor(o);if(d){var B=(0,u.getExtProp)(d,"__sceneObjExtraInfo");B||(B={},(0,u.setExtProp)(d,"__sceneObjExtraInfo",B)),Object.assign(B,l)}else console.warn("cannot get constructor from type: ".concat(o))},r.prototype.getProp=function(o,l){var d=this.getProps(o);return d&&d[l]},r.prototype.setProp=function(o,l,d){var B;this.setProps(o,((B={})[l]=d,B))},r.prototype._addSceneObject=function(o){var l=this;this._sceneObjs.set(o.id,o),this._sceneObjCreatedEvent.emit(o),o.dispose(function(){return l._deleteSceneObject(o)})},r.prototype._deleteSceneObject=function(o){this._sceneObjToDestroyEvent.emit(o),this._sceneObjs.delete(o.id)},r.prototype.createSceneObjectFromClass=function(o,l){if(!l||this._sceneObjs.has(l)){var d=(0,u.createGuid)();l&&console.warn("已存在相同id的对象!id自动变更!".concat(l," -> ").concat(d," 请注意:id变更可能导致引用失效!")),l=d}if(!l)throw new Error("id不能为空!");var B=new o(l);return B.id!==l&&(console.warn("sceneObj.id(".concat(B.id,") !== id(").concat(l,") sceneObjectType: ").concat(B.typeName)),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class MySceneObj extends ESSceneObject { constructor(id) { super(id); } }")),this._addSceneObject(B),B},r.prototype.createSceneObject=function(o,l){if(typeof o=="string"){var d=this._getSceneObjConstructor(o);return d?this.createSceneObjectFromClass(d,l):void console.warn("Cannot find SceneObjectType: ".concat(o))}return this.createSceneObjectFromClass(o,l)},r.prototype.createSceneObjectFromJson=function(o){var l=this.createSceneObject(o.type,o.id);return l&&(l.json=o),l},r.prototype.getSceneObjectById=function(o){return this._sceneObjs.get(o)},r.prototype.getSceneObjectsByDevTags=function(o){var l,d,B=[],_=function(F){o.some(function(S){return F.devTags&&F.devTags.includes(S)})&&B.push(F)};try{for(var b=w(this.sceneObjs),E=b.next();!E.done;E=b.next())_(E.value)}catch(F){l={error:F}}finally{try{E&&!E.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}return B},Object.defineProperty(r.prototype,"environmentVariables",{get:function(){return this._environmentVariables},set:function(o){var l,d;try{for(var B=w(Object.entries(o)),_=B.next();!_.done;_=B.next()){var b=p(_.value,2),E=b[0],F=b[1];this.setEnv(E,F)}}catch(S){l={error:S}}finally{try{_&&!_.done&&(d=B.return)&&d.call(B)}finally{if(l)throw l.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"environmentVariablesChanged",{get:function(){return this._environmentVariablesChanged},enumerable:!1,configurable:!0}),r.prototype.setEnv=function(o,l){if(this._environmentVariables[o]!==l){var d=this._environmentVariables[o];this._environmentVariables[o]=l,this._environmentVariablesChanged.emit(o,l,d)}},r.prototype.getEnv=function(o){return this._environmentVariables[o]},r.prototype.getStrFromEnv=function(o){return(0,c.replaceStrWithEnv)(o)},r.prototype.createEnvStrReact=function(o,l){return(0,f.createEnvEvalStrReact)(o,l)},r.prototype.createEvnStrReact=function(o,l){return(0,f.createEnvEvalStrReact)(o,l)},r}(u.Destroyable);A.SceneObjectsContext=i},2731:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ary2Ns=A.xyzw2N4=A.xyz2N3=A.xyz2N2=A.Xyzw2Ns=A.createNumbers=void 0,A.createNumbers=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];if(g>16)throw new Error("length > 16");for(var f=new Array(g),c=0;c<g;++c)f[c]=(w=p[c])!==null&&w!==void 0?w:0;return f};var h=function(){function g(w,p){this._xyzw=w,this._length=p}return Object.defineProperty(g.prototype,0,{get:function(){var w;return(w=this._xyzw.x)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.x=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,1,{get:function(){var w;return(w=this._xyzw.y)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.y=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,2,{get:function(){var w;return(w=this._xyzw.z)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.z=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,3,{get:function(){var w;return(w=this._xyzw.w)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.w=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),g}();A.Xyzw2Ns=h,A.xyz2N2=function(g){return new h(g,2)},A.xyz2N3=function(g){return new h(g,3)},A.xyzw2N4=function(g){return new h(g,4)};var m=function(){function g(w,p,u,f){this._array=w,this._length=p,this._start=u,this._stride=f}return Object.defineProperty(g.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,0,{get:function(){return this._array[this._start+0*this._stride]},set:function(w){this._array[this._start+0*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,1,{get:function(){return this._array[this._start+1*this._stride]},set:function(w){this._array[this._start+1*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,2,{get:function(){return this._array[this._start+2*this._stride]},set:function(w){this._array[this._start+2*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,3,{get:function(){return this._array[this._start+3*this._stride]},set:function(w){this._array[this._start+3*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,4,{get:function(){return this._array[this._start+4*this._stride]},set:function(w){this._array[this._start+4*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,5,{get:function(){return this._array[this._start+5*this._stride]},set:function(w){this._array[this._start+5*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,6,{get:function(){return this._array[this._start+6*this._stride]},set:function(w){this._array[this._start+6*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,7,{get:function(){return this._array[this._start+7*this._stride]},set:function(w){this._array[this._start+7*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,8,{get:function(){return this._array[this._start+8*this._stride]},set:function(w){this._array[this._start+8*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,9,{get:function(){return this._array[this._start+9*this._stride]},set:function(w){this._array[this._start+9*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,10,{get:function(){return this._array[this._start+10*this._stride]},set:function(w){this._array[this._start+10*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,11,{get:function(){return this._array[this._start+11*this._stride]},set:function(w){this._array[this._start+11*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,12,{get:function(){return this._array[this._start+12*this._stride]},set:function(w){this._array[this._start+12*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,13,{get:function(){return this._array[this._start+13*this._stride]},set:function(w){this._array[this._start+13*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,14,{get:function(){return this._array[this._start+14*this._stride]},set:function(w){this._array[this._start+14*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,15,{get:function(){return this._array[this._start+15*this._stride]},set:function(w){this._array[this._start+15*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,16,{get:function(){return this._array[this._start+16*this._stride]},set:function(w){this._array[this._start+16*this._stride]=w},enumerable:!1,configurable:!0}),g}();A.ary2Ns=function(g,w,p,u){return p===void 0&&(p=0),u===void 0&&(u=1),new m(g,w,p,u)}},2789:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(2228),A)},2811:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.TimingDeprecated=void 0;var w=h(5726),p=h(1662),u=function(){function c(a,i,s,r,o){a===void 0&&(a=0),i===void 0&&(i=0),s===void 0&&(s=0),this.startTime=a,this.duration=i,this.delay=s,this.proccessFunc=r,this.completeFunc=o,this._lastUpdateTimeStamp=0,this._processData={ratio:0,timeStamp:0,timeStampFromStart:0,timeStampFromLastUpdate:0}}return c.prototype.update=function(a){var i=(a-this.startTime)/this.duration;i>=0&&(this._processData.ratio=i,this._processData.timeStamp=a,this._processData.timeStampFromStart=a-this.startTime,this._processData.timeStampFromLastUpdate=a-this._lastUpdateTimeStamp,this._lastUpdateTimeStamp=a,this.proccessFunc&&this.proccessFunc(this._processData),i>=1&&this.completeFunc&&this.completeFunc())},c.prototype.start=function(){this.startTime=performance.now()+this.delay,this._lastUpdateTimeStamp=this.startTime},c}(),f=function(c){function a(i,s,r){i===void 0&&(i=1e3),s===void 0&&(s=0),r===void 0&&(r=p.defaultStartUpdateFunc);var o,l=this;function d(){o&&o()}return(l=c.call(this,function(B){var _=B.progressFunc,b=B.completeFunc,E=(B.errorFunc,l.startUpdateFunc&&l.startUpdateFunc(l._base.update.bind(l._base))||void 0);return l._base.startTime=performance.now(),l._base.duration=l.duration,l._base.delay=l.delay,l._base.proccessFunc=_,l._base.completeFunc=function(){E&&E(),b()},l._base.start(),o=E,d})||this)._base=new u,l.duration=i,l.delay=s,l.startUpdateFunc=r,l}return g(a,c),Object.defineProperty(a.prototype,"startTime",{get:function(){return this._base.startTime},enumerable:!1,configurable:!0}),a}(w.ProcessingDeprecated);A.TimingDeprecated=f},2830:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setTranslation=A._getTranslation=void 0;var m=h(2731);A._getTranslation=function(g,w){return(w=w||(0,m.createNumbers)(3))[0]=g[12],w[1]=g[13],w[2]=g[14],w},A._setTranslation=function(g,w,p){return g!==(p=p||(0,m.createNumbers)(16))&&(p[0]=g[0],p[1]=g[1],p[2]=g[2],p[3]=g[3],p[4]=g[4],p[5]=g[5],p[6]=g[6],p[7]=g[7],p[8]=g[8],p[9]=g[9],p[10]=g[10],p[11]=g[11],p[15]=g[15]),p[12]=w[0],p[13]=w[1],p[14]=w[2],p}},2882:function(C,A){var h=this&&this.__values||function(m){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&m[g],p=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&p>=m.length&&(m=void 0),{value:m&&m[p++],done:!m}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.pluckProperty=void 0,A.pluckProperty=function(m,g){for(var w,p,u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];var c=m;try{for(var a=h(u),i=a.next();!i.done;i=a.next()){var s=i.value;if(!c[s]){if(!g)return;c[s]={}}c=c[s]}}catch(r){w={error:r}}finally{try{i&&!i.done&&(p=a.return)&&p.call(a)}finally{if(w)throw w.error}}return c}},2921:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},p=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.Fetching=void 0;var u=h(643),f=h(5726),c=function(a){function i(s){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var l=a.call(this,function(d){for(var B=d.progressFunc,_=d.completeFunc,b=d.errorFunc,E=[],F=1;F<arguments.length;F++)E[F-1]=arguments[F];var S={},U={loaded:0,total:0},T=l._fetchArgs||E;if(T.length===0)throw new Error("fetchArgs.length === 0");if(u.cancelableFetchDeprecated.apply(void 0,p([S,function(Q,P){U.loaded=Q,U.total=P,B(U)}],w(T),!1)).then(s).then(_).catch(function(Q){Q instanceof f.CancelError||b(Q)}),!S.cancelFunc)throw new Error("!cancelResult.cancelFunc");return S.cancelFunc})||this;return r.length>0&&(l._fetchArgs=r),l}return g(i,a),Object.defineProperty(i.prototype,"fetchArgs",{get:function(){return this._fetchArgs},enumerable:!1,configurable:!0}),i}(h(6891).ProcessingDeprecated);A.Fetching=c},2967:(C,A)=>{var h,m;Object.defineProperty(A,"__esModule",{value:!0}),A.encodeString=void 0,A.encodeString=function(g,w){var p,u=h=h||new TextEncoder,f=0;if(u.encodeInto){var c=void 0;w?c=w:(p=3*g.length,(!m||m.byteLength<p)&&(m=new Uint8Array(2*p)),c=new Uint8Array(m.buffer,0,p));var a=u.encodeInto(g,c);if(a.written===void 0)throw new Error("encodedResults.written === 'undefined'");f=a.written}else{var i=u.encode(g);w&&w.set(i),f=i.byteLength}return f}},2968:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getFinalUri=void 0;var m=h(6432);A.getFinalUri=function(g,w){var p=(0,m.isAbsoluteUri)(g),u=g;return(0,m.isBase64Uri)(g)||p||w&&(u=w+"/"+g),u}},2999:function(C,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.withoutUndefinedArray=A.withoutUndefined=void 0;var g=h(2168),w=h(3915);function p(u,f,c,a){var i=m((0,g.getReactFuncs)(u),3),s=i[0],r=i[1],o=i[2],l=(0,w.react)(f,c,a);return l.dispose(l.changed.dwon(function(){l.value!==f?r(l.value):r(void 0)})),s()!==void 0&&(l.value=s()),l.dispose(o.don(function(d){l.value=d!==void 0?d:f})),l}A.withoutUndefined=p,A.withoutUndefinedArray=function(u,f,c,a){return p(u,f,function(i,s){return i.length===s.length&&i.every(function(r,o){return c&&c(r,s[o])||r===s[o]})},function(i,s){for(var r=s||new Array(i.length),o=0;o<i.length;++o)r[o]=a?a(i[o]):i[o];return r.length=i.length,r})}},3009:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.nextPow2=void 0,A.nextPow2=function(h){return h|=0,h--,h|=h>>1,h|=h>>2,h|=h>>4,h|=h>>8,h|=h>>16,++h}},3022:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},3096:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.VideoProcessing=void 0;var w=h(1662),p=h(8106),u=function(c){function a(i,s){var r=c.call(this)||this;r._complexImage=i,r._videoSrc=s;var o,l=document.createElement("video");return l.src=r._videoSrc,l.style.position="absolute",l.style.top="0px",l.style.left="0px",l.style.zIndex="-100",l.style.visibility="hidden",l.style.width="0px",l.style.height="0px",(o=function(){l.crossOrigin=r._complexImage.crossOrigin})(),r.dispose(r._complexImage.crossOriginChanged.disposableOn(o)),(o=function(){l.autoplay=r._complexImage.autoplay})(),r.dispose(r._complexImage.autoplayChanged.disposableOn(o)),(o=function(){l.loop=r._complexImage.loop})(),r.dispose(r._complexImage.loopChanged.disposableOn(o)),l.muted=!0,document.body.appendChild(l),r._element=l,r.dispose(function(){return document.body.removeChild(l)}),r}return g(a,c),Object.defineProperty(a.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),a}(w.Destroyable),f=function(c){function a(i,s){var r=c.call(this)||this;return r._complexImage=i,r._imageUri=s,r._videoDom=r.disposeVar(new u(r._complexImage,r._imageUri)),r._update=r.disposeVar((0,p.createAnimateFrameWithStartValues)(function(){return r.update()})),r._updateStart=r._update.start(),r}return g(a,c),Object.defineProperty(a.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),a.prototype.update=function(){if(!(this.videoElement.readyState<2)){var i=this._complexImage,s=this.videoElement,r=s.videoWidth,o=s.videoHeight;i.size=[r,o],i.pixelFormat="RGBA",i.copyTexture({source:this.videoElement})}},a}(w.Destroyable);A.VideoProcessing=f},3207:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defineReactiveProp=void 0;var m=h(7372);A.defineReactiveProp=function(g,w,p,u){var f,c="_"+w,a="_"+w+"Changed",i=w+"Changed";Object.defineProperties(g.prototype,((f={})[w]={get:function(){return this[c]===void 0&&p!==void 0&&(this[c]=p),this[c]},set:function(s){if(this[c]===void 0&&p!==void 0&&(this[c]=p),u?!u(this[c],s):this[c]!==s){var r=this[c];this[c]=s,this[a]&&this[a].emit(s,r)}}},f[i]={get:function(){var s=this;return this[a]===void 0&&(this[a]=new m.Event,this.dispose!==void 0&&this.dispose(function(){return s[a].destroy()})),this[a]}},f))}},3249:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.prevPow2=void 0,A.prevPow2=function(h){return h|=0,h|=h>>1,h|=h>>2,h|=h>>4,h|=h>>8,h|=h>>16,++h>>1}},3280:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.length=void 0;var m=h(6138),g=function(w){return++w};A.length=function(w){return(0,m.reduce)(w,g,0)}},3281:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(4416),A),g(h(9122),A),g(h(9812),A),g(h(312),A),g(h(4833),A),g(h(5590),A),g(h(4915),A),g(h(8089),A),g(h(2731),A),g(h(6172),A),g(h(7215),A),g(h(7665),A),g(h(9549),A),g(h(5873),A),g(h(602),A),g(h(9898),A),g(h(5985),A),g(h(7500),A),g(h(7413),A)},3300:function(C,A,h){var m=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B},g=this&&this.__spreadArray||function(i,s,r){if(r||arguments.length===2)for(var o,l=0,d=s.length;l<d;l++)!o&&l in s||(o||(o=Array.prototype.slice.call(s,0,l)),o[l]=s[l]);return i.concat(o||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A._getMaximumScale=A._setScale=A._getScale=void 0;var w=h(2731),p=h(9898),u=h(6021);function f(i,s){return(s=s||(0,w.createNumbers)(3))[0]=p.Vector.magnitude([i[0],i[1],i[2]]),s[1]=p.Vector.magnitude([i[4],i[5],i[6]]),s[2]=p.Vector.magnitude([i[8],i[9],i[10]]),s}A._getScale=f;var c=(0,w.createNumbers)(3);A._setScale=function(i,s,r){var o=f(i,c),l=p.Vector.divide(s,o,c);return(0,u._multiplyByScale)(i,l,r)};var a=(0,w.createNumbers)(3);A._getMaximumScale=function(i){var s=f(i,a);return Math.max.apply(Math,g([],m(p.Vector.itr(s)),!1))}},3315:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__generator||function(a,i){var s,r,o,l,d={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function B(_){return function(b){return function(E){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,E[0]&&(d=0)),d;)try{if(s=1,r&&(o=2&E[0]?r.return:E[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,E[1])).done)return o;switch(r=0,o&&(E=[2&E[0],o.value]),E[0]){case 0:case 1:o=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,r=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(!((o=(o=d.trys).length>0&&o[o.length-1])||E[0]!==6&&E[0]!==2)){d=0;continue}if(E[0]===3&&(!o||E[1]>o[0]&&E[1]<o[3])){d.label=E[1];break}if(E[0]===6&&d.label<o[1]){d.label=o[1],o=E;break}if(o&&d.label<o[2]){d.label=o[2],d.ops.push(E);break}o[2]&&d.ops.pop(),d.trys.pop();continue}E=i.call(a,d)}catch(F){E=[6,F],r=0}finally{s=o=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([_,b])}}},p=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&a[i],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.UiTree=void 0;var u=h(1662),f=h(8106),c=function(a){function i(s){var r=a.call(this)||this;r._tree=s,r._redrawEvent=r.disposeVar(new u.Event),r._containerScrollTop=r.disposeVar((0,u.react)(0)),r._containerClientHeight=r.disposeVar((0,u.react)(-1)),r._container=r.disposeVar((0,u.react)(void 0)),r._redrawInfo={topFreeSpaceHeight:0,topUnvisibleItemNum:0,middleTreeItems:[],bottomFreeSpaceHeight:0,bottomUnvisibleItemNum:0};var o,l=r._containerClientHeight,d=r._containerScrollTop,B=r._tree._forceRedrawEvent,_=r.disposeVar((0,u.createNextAnimateFrameEvent)(r._tree.itemDivHeightChanged,r._tree.itemChildrenChanged,r._tree.itemsChanged,l.changed,d.changed,B)),b=r.redrawInfo,E=function(F){var S=F.uiTreeObject;return!(!F.children||S&&S.collapsed)};return r.dispose(_.disposableOn(function(){var F,S,U,T;if(b.topFreeSpaceHeight=0,b.topUnvisibleItemNum=0,b.middleTreeItems.length=0,b.bottomFreeSpaceHeight=0,b.bottomUnvisibleItemNum=0,r._containerClientHeight.value>=0){var Q=(0,u.length)(r._tree.getDescendants(E)),P=r._tree.itemDivHeight,I=P*Q,M=(0,u.max)([(0,u.min)([(0,u.max)([I-l.value,0]),d.value]),0]),K=M/P|0,W=0|Math.ceil((M-K*P+l.value)/P);K>0&&(b.topUnvisibleItemNum=K,b.topFreeSpaceHeight=K*r._tree.itemDivHeight);var L=K+W,O=0;try{for(var H=p(r._tree.getDescendants(E)),k=H.next();!k.done;k=H.next()){var G=k.value;if(O>=L)break;O>=K&&b.middleTreeItems.push(G),++O}}catch(Y){F={error:Y}}finally{try{k&&!k.done&&(S=H.return)&&S.call(H)}finally{if(F)throw F.error}}var R=Q-K-W;R>0&&(b.bottomUnvisibleItemNum=R,b.bottomFreeSpaceHeight=R*r._tree.itemDivHeight)}else try{for(var D=p(r._tree.getDescendants(E)),N=D.next();!N.done;N=D.next())G=N.value,b.middleTreeItems.push(G)}catch(Y){U={error:Y}}finally{try{N&&!N.done&&(T=D.return)&&T.call(D)}finally{if(U)throw U.error}}r._redrawEvent.emit(b)})),r.dispose(function(){return o&&(o.destroy(),o=void 0)}),r.dispose(r.containerChanged.disposableOn(function(F){o&&(o.destroy(),o=void 0),F&&(o=(0,f.createAnimateFrame)()).start(function(){var S=F,U=S.scrollTop,T=S.clientHeight;U===void 0||T===void 0?(0,u.oneTimeWarning)("createUiTreeWithContainer error: conainter has no scrollTop or clientHeight property!"):(r.containerScrollTop=U,r.containerClientHeight=T)})})),r}return g(i,a),Object.defineProperty(i.prototype,"container",{get:function(){return this._container.value},set:function(s){this._container.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerChanged",{get:function(){return this._container.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"redrawInfo",{get:function(){return this._redrawInfo},enumerable:!1,configurable:!0}),i.prototype.getTreeItemPos=function(s){var r,o,l=0,d=!1;try{for(var B=p(this._tree.getDescendants(function(b){var E=b.uiTreeObject;return!(!b.children||E&&E.collapsed)})),_=B.next();!_.done;_=B.next()){if(_.value===s){d=!0;break}++l}}catch(b){r={error:b}}finally{try{_&&!_.done&&(o=B.return)&&o.call(B)}finally{if(r)throw r.error}}return d?[l,l*this._tree.itemDivHeight]:void 0},i.prototype.collapseAll=function(){var s,r;console.log("collapseAll");try{for(var o=p(this.tree.root.getDescendants()),l=o.next();!l.done;l=o.next())l.value.uiTreeObject.collapsed=!0}catch(d){s={error:d}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}},Object.defineProperty(i.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"redrawEvent",{get:function(){return this._redrawEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerScrollTop",{get:function(){return this._containerScrollTop.value},set:function(s){this._containerScrollTop.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerScrollTopChanged",{get:function(){return this._containerScrollTop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerClientHeight",{get:function(){return this._containerClientHeight.value},set:function(s){this._containerClientHeight.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerClientHeightChanged",{get:function(){return this._containerClientHeight.changed},enumerable:!1,configurable:!0}),i.prototype.getAllItems=function(s){var r,o,l,d,B,_;return w(this,function(b){switch(b.label){case 0:b.trys.push([0,5,6,7]),r=p(this._tree.getDescendants()),o=r.next(),b.label=1;case 1:return o.done?[3,4]:(l=o.value,s&&!s(l)?[3,3]:[4,l]);case 2:b.sent(),b.label=3;case 3:return o=r.next(),[3,1];case 4:return[3,7];case 5:return d=b.sent(),B={error:d},[3,7];case 6:try{o&&!o.done&&(_=r.return)&&_.call(r)}finally{if(B)throw B.error}return[7];case 7:return[2]}})},i.prototype.getAllSelectedItems=function(){return this.getAllItems(function(s){return s.uiTreeObject.selected})},i.prototype.getAllCheckedLeafItems=function(){return this.getAllItems(function(s){return!s.children&&s.uiTreeObject.checkedStatus==="checked"})},i.prototype.clearAllSelectedItems=function(s){var r,o;try{for(var l=p(this.getAllSelectedItems()),d=l.next();!d.done;d=l.next()){var B=d.value;s&&s.includes(B)||(B.uiTreeObject.selected=!1)}}catch(_){r={error:_}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},i}(u.Destroyable);A.UiTree=c},3428:()=>{ArrayBuffer.transfer||(ArrayBuffer.transfer=function(C,A){C=Object(C);var h=new ArrayBuffer(A);if(!(C instanceof ArrayBuffer&&h instanceof ArrayBuffer))throw new TypeError("Source and destination must be ArrayBuffer instances");if(h.byteLength>=C.byteLength){var m=0,g=C.byteLength;[8,4,2,1].forEach(function(w){if(g>=w){var p=function(u,f,c,a,i){var s=Uint8Array;switch(u){case 8:s=Float64Array;break;case 4:s=Float32Array;break;case 2:s=Uint16Array;break;default:s=Uint8Array}for(var r=new s(f,a,Math.trunc(i/u)),o=new s(c,a,Math.trunc(i/u)),l=0;l<o.length;l++)o[l]=r[l];return{nextOffset:r.byteOffset+r.byteLength,leftBytes:f.byteLength-(r.byteOffset+r.byteLength)}}(w,C,h,m,g);m=p.nextOffset,g=p.leftBytes}})}return h})},3457:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getBaseUri=void 0,A.getBaseUri=function(h){return h.substr(0,h.lastIndexOf("/"))}},3526:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},3631:(C,A)=>{function h(m,g){return m instanceof Promise?m.then(g):Promise.resolve(m).then(g)}Object.defineProperty(A,"__esModule",{value:!0}),A.when=void 0,A.when=h,h.defer=function(){var m={},g=new Promise(function(w,p){m.resolve=w,m.reject=p});return m.promise=g,m},h.resolve=function(m){return Promise.resolve(m)}},3639:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&i[s],o=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&o>=i.length&&(i=void 0),{value:i&&i[o++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.AnimationPlayer=void 0;var p=h(2429),u=h(7372),f=h(7372),c=h(2127),a=function(i){function s(r){r===void 0&&(r=5e3);var o=i.call(this)||this;return o._animation=new p.Animation(r),o.dispose(function(){o.destroyAllChannels(),o._animation.destroy()}),o._player=new c.Player(r),o.dispose(function(){return o._player.destroy()}),o._initAnimation(),o._selectedChannelChanged=new f.Event,o}return g(s,i),Object.defineProperty(s.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selectedChannelChanged",{get:function(){return this._selectedChannelChanged||(this._selectedChannelChanged=new f.Event),this._selectedChannelChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selectedChannel",{get:function(){return this._selectedChannel},set:function(r){if(this._selectedChannel!==r){var o=this._selectedChannel;this._selectedChannel=r,this._selectedChannelChanged&&this._selectedChannelChanged.emit(r,o)}},enumerable:!1,configurable:!0}),s.prototype._initAnimation=function(){var r=this,o=this._animation,l=this._player;o.progressFunc=function(d){},this.dispose(function(){o.progressFunc=void 0,o.enterFunc=void 0,o.leaveFunc=void 0}),this.dispose(l.currentTimeChangedEvent.disposableOn(function(d,B){l.playing?o.currentTime=d:(o.currentTime=d,o.currentTime=Number.NaN)})),this.dispose(l.startPlayingEvent.disposableOn(function(d){o.currentTime=d})),this.dispose(l.stopPlayingEvent.disposableOn(function(d){o.currentTime=Number.NaN})),this.dispose(this._animation.changedEvent.disposableOn(function(d){r._player.duration=d.duration}))},s.prototype.addChannel=function(){var r=new p.Channel(1e3,2e3);if(this._selectedChannel){var o=this._animation.channels.indexOf(this._selectedChannel);this._animation.channels.splice(o+1,0,r)}else this._animation.channels.push(r);return r},s.prototype.removeChannel=function(){if(this._selectedChannel){var r=this._animation.channels.indexOf(this._selectedChannel);r!==-1&&(this._animation.channels.splice(r,1),this._selectedChannel.destroy()),this._selectedChannel=void 0}else console.warn("请先选择需要删除的Channel.")},s.prototype.raiseChannel=function(r){var o=this._animation.channels.indexOf(r);if(o===-1)console.warn("-1 === index");else if(o===0)console.warn("cannot raise current channel!");else{if(!(o>0))throw new Error("should not be here!");this._animation.channels.splice(o,1),this._animation.channels.splice(o-1,0,r)}},s.prototype.lowerChannel=function(r){var o=this._animation.channels.indexOf(r);if(o===-1)console.warn("-1 === index");else if(o===this._animation.channels.length-1)console.warn("cannot lower current channel!");else{if(!(o>=0))throw new Error("should not be here!");this._animation.channels.splice(o,1),this._animation.channels.splice(o+1,0,r)}},s.prototype.destroyAllChannels=function(){var r,o,l=this._animation;if(l.hasChannels){try{for(var d=w(l.channels),B=d.next();!B.done;B=d.next()){var _=B.value;(0,p.destroyAnimationWithChildren)(_.animation)}}catch(b){r={error:b}}finally{try{B&&!B.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}l.channels.length=0,this._selectedChannel=void 0}},s}(u.Destroyable);A.AnimationPlayer=a},3735:function(C,A,h){var m=this&&this.__generator||function(w,p){var u,f,c,a,i={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(o){return function(l){if(u)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(u=1,f&&(c=2&l[0]?f.return:l[0]?f.throw||((c=f.return)&&c.call(f),0):f.next)&&!(c=c.call(f,l[1])).done)return c;switch(f=0,c&&(l=[2&l[0],c.value]),l[0]){case 0:case 1:c=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,f=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((c=(c=i.trys).length>0&&c[c.length-1])||l[0]!==6&&l[0]!==2)){i=0;continue}if(l[0]===3&&(!c||l[1]>c[0]&&l[1]<c[3])){i.label=l[1];break}if(l[0]===6&&i.label<c[1]){i.label=c[1],c=l;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(l);break}c[2]&&i.ops.pop(),i.trys.pop();continue}l=p.call(w,i)}catch(d){l=[6,d],f=0}finally{u=c=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([r,o])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.getMinMaxPosition=void 0;var g=h(6362);A.getMinMaxPosition=function(w,p){var u,f,c,a,i,s,r,o;if(w.length%3!=0)throw new Error("positions.length % 3 !== 0");var l=w.length/3;function d(b){var E;return m(this,function(F){switch(F.label){case 0:E=0,F.label=1;case 1:return E<l?[4,w[3*E+b]]:[3,4];case 2:F.sent(),F.label=3;case 3:return++E,[3,1];case 4:return[2]}})}var B=(u=p==null?void 0:p.min)!==null&&u!==void 0?u:[NaN,NaN,NaN],_=(f=p==null?void 0:p.max)!==null&&f!==void 0?f:[NaN,NaN,NaN];return B[0]=(c=(0,g.min)(d(0)))!==null&&c!==void 0?c:NaN,B[1]=(a=(0,g.min)(d(1)))!==null&&a!==void 0?a:NaN,B[2]=(i=(0,g.min)(d(2)))!==null&&i!==void 0?i:NaN,_[0]=(s=(0,g.max)(d(0)))!==null&&s!==void 0?s:NaN,_[1]=(r=(0,g.max)(d(1)))!==null&&r!==void 0?r:NaN,_[2]=(o=(0,g.max)(d(2)))!==null&&o!==void 0?o:NaN,{min:B,max:_}}},3804:function(C,A,h){var m=this&&this.__generator||function(p,u){var f,c,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(o){return function(l){return function(d){if(f)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(s=0)),s;)try{if(f=1,c&&(a=2&d[0]?c.return:d[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,d[1])).done)return a;switch(c=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,c=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=u.call(p,s)}catch(B){d=[6,B],c=0}finally{f=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.objsIterator=void 0;var g=h(1803),w=h(8144);A.objsIterator=function(p,u){var f,c,a,i;return m(this,function(s){switch(s.label){case 0:f=(0,w.getIterator)(p),s.label=1;case 1:return c=f.next(),a=c.done,i=c.value,a?[3,3]:[4,(0,g.getValueFromProps)(i,u)];case 2:return s.sent(),[3,1];case 3:return[2]}})}},3815:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9355),A),g(h(4344),A)},3915:function(C,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,_){B.__proto__=_}||function(B,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(B[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function B(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(B.prototype=d.prototype,new B)}),w=this&&this.__assign||function(){return w=Object.assign||function(l){for(var d,B=1,_=arguments.length;B<_;B++)for(var b in d=arguments[B])Object.prototype.hasOwnProperty.call(d,b)&&(l[b]=d[b]);return l},w.apply(this,arguments)},p=this&&this.__read||function(l,d){var B=typeof Symbol=="function"&&l[Symbol.iterator];if(!B)return l;var _,b,E=B.call(l),F=[];try{for(;(d===void 0||d-- >0)&&!(_=E.next()).done;)F.push(_.value)}catch(S){b={error:S}}finally{try{_&&!_.done&&(B=E.return)&&B.call(E)}finally{if(b)throw b.error}}return F},u=this&&this.__spreadArray||function(l,d,B){if(B||arguments.length===2)for(var _,b=0,E=d.length;b<E;b++)!_&&b in d||(_||(_=Array.prototype.slice.call(d,0,b)),_[b]=d[b]);return l.concat(_||Array.prototype.slice.call(d))};Object.defineProperty(A,"__esModule",{value:!0}),A.reactPosition2DsSet=A.reactPositionsSet=A.reactPositions=A.reactJsonCollectionWithUndefined=A.reactJsonCollection=A.reactArrayCollectionWithUndefined=A.reactArrayCollection=A.reactPlainObjectWithUndefined=A.reactPlainObject=A.reactJsonWithUndefined=A.reactJson=A.reactDeepArrayWithUndefined=A.reactDeepArray=A.reactArrayWithUndefined=A.reactArray=A.react=A.ReactiveVariable=void 0;var f=h(9359),c=h(4899),a=function(l){function d(B,_,b){var E=l.call(this)||this;return E._equalsFunc=_,E._assignFunc=b,E._value=E._assignFunc&&E._assignFunc(B,void 0)||B,E}return g(d,l),Object.defineProperty(d.prototype,"assignFunc",{get:function(){return this._assignFunc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"equalsFunc",{get:function(){return this._equalsFunc},enumerable:!1,configurable:!0}),d.prototype.equals=function(B){return this._equalsFunc?this._equalsFunc(this._value,B):this._value===B},Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(B){if(this._equalsFunc?!this._equalsFunc(this._value,B):this._value!==B){if(this.toChangeFunc&&!this.toChangeFunc(B,this._value))return;this._assignFunc?(this._oldValue=this._assignFunc(this._value,this._oldValue),this._value=this._assignFunc(B,this._value)):(this._oldValue=this._value,this._value=B),this._changed&&this._changed.emit(B,this._oldValue)}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"changed",{get:function(){return this._changed||(this._changed=this.disposeVar(new c.Event)),this._changed},enumerable:!1,configurable:!0}),d.prototype.forceChange=function(){this._changed&&this._changed.emit(this._value,this._value)},d}(f.Destroyable);function i(l,d,B){return new a(l,d,B)}function s(l,d,B){return i(l,function(_,b){return _.length===b.length&&_.every(function(E,F){return d&&d(E,b[F])||E===b[F]})},function(_,b){var E=b||new Array(_.length);return E.length=_.length,_.forEach(function(F,S){E[S]=B?B(F):F}),E})}function r(l,d,B){return i(l,function(_,b){return _===void 0||b===void 0?_===void 0&&b===void 0:_.length===b.length&&_.every(function(E,F){return d&&d(E,b[F])||E===b[F]})},function(_,b){if(_){var E=b||new Array(_.length);return E.length=_.length,_.forEach(function(F,S){E[S]=B?B(F):F}),E}})}function o(l){return r(l,function(d,B){return d.every(function(_,b){return _===B[b]})},function(d){return u([],p(d),!1)})}A.ReactiveVariable=a,A.react=i,A.reactArray=function(l){return new a(l,function(d,B){return d.length===B.length&&d.every(function(_,b){return _===B[b]})},function(d,B){var _=B||new Array(d.length);return _.length=d.length,d.forEach(function(b,E){return _[E]=b}),_})},A.reactArrayWithUndefined=function(l){return i(l,function(d,B){return d===void 0||B===void 0?d===void 0&&B===void 0:d.length===B.length&&d.every(function(_,b){return _===B[b]})},function(d,B){if(d){var _=B||new Array(d.length);return _.length=d.length,d.forEach(function(b,E){return _[E]=b}),_}})},A.reactDeepArray=s,A.reactDeepArrayWithUndefined=r,A.reactJson=function(l){return new a(l,function(d,B){return d===B||d!==void 0&&B!==void 0&&JSON.stringify(d)===JSON.stringify(B)},function(d,B){if(d!==void 0)return JSON.parse(JSON.stringify(d))})},A.reactJsonWithUndefined=function(l){return new a(l,function(d,B){return d===B||d!==void 0&&B!==void 0&&JSON.stringify(d)===JSON.stringify(B)},function(d,B){if(d!==void 0)return JSON.parse(JSON.stringify(d))})},A.reactPlainObject=function(l){return new a(l,function(d,B){if(d===B)return!0;if(d===void 0||B===void 0)return!1;var _=Object.keys(d),b=Object.keys(B);return _.length===b.length&&_.every(function(E,F){return E===b[F]&&d[E]===B[E]})},function(d,B){return d&&w({},d)})},A.reactPlainObjectWithUndefined=function(l){return new a(l,function(d,B){if(d===B)return!0;if(d===void 0||B===void 0)return!1;var _=Object.keys(d),b=Object.keys(B);return _.length===b.length&&_.every(function(E,F){return E===b[F]&&d[E]===B[E]})},function(d,B){return d&&w({},d)})},A.reactArrayCollection=function(l){return s(l,function(d,B){return d.every(function(_,b){return _===B[b]})},function(d){return u([],p(d),!1)})},A.reactArrayCollectionWithUndefined=o,A.reactJsonCollection=function(l){return s(l,function(d,B){return JSON.stringify(d)===JSON.stringify(B)},function(d){return JSON.parse(JSON.stringify(d))})},A.reactJsonCollectionWithUndefined=function(l){return r(l,function(d,B){return JSON.stringify(d)===JSON.stringify(B)},function(d){return JSON.parse(JSON.stringify(d))})},A.reactPositions=function(l){return o(l)},A.reactPositionsSet=function(l){return r(l,function(d,B){return d.length===B.length&&d.every(function(_,b){return _.every(function(E,F){return E===B[b][F]})})},function(d){return d.map(function(B){return u([],p(B),!1)})})},A.reactPosition2DsSet=function(l){return r(l,function(d,B){return d.length===B.length&&d.every(function(_,b){return _.every(function(E,F){return E===B[b][F]})})},function(d){return d.map(function(B){return u([],p(B),!1)})})}},3951:function(C,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(c[i]=a[i])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.IFrameBorderedPosFloatDiv=void 0;var w=h(7372),p=function(u){function f(){var c=u.call(this)||this,a=document.createElement("iframe");a.style.cssText="width: 100%; height: 100%; border-width: 0px; border-radius: 5px; display: block;",a.src="http://www.weather.com.cn/live/index.shtml",c._iframe=a,c.innerContentDiv.appendChild(a);var i=function(s){s.source===c._iframe.contentWindow&&(c._iframeMessageEvent?c._iframeMessageEvent.emit(s):console.warn("iframe消息接收到未处理!data: ".concat(s.data)))};return window.addEventListener("message",i),c.dispose(function(){window.removeEventListener("message",i)}),c}return g(f,u),f.prototype.reset=function(){u.prototype.reset.call(this),this.src=""},Object.defineProperty(f.prototype,"src",{get:function(){return this._iframe.src},set:function(c){this._iframe.src!==c&&(this._iframe.src=c)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"iframe",{get:function(){return this._iframe},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"iframeMessageEvent",{get:function(){return this._iframeMessageEvent=this._iframeMessageEvent||new w.Event,this._iframeMessageEvent},enumerable:!1,configurable:!0}),f}(h(4143).BorderedPosFloatDiv);A.IFrameBorderedPosFloatDiv=p},3983:(C,A)=>{function h(m,g,w){for(var p=0;p<w;++p)if(m[p]!==g[p])return!1;return!0}Object.defineProperty(A,"__esModule",{value:!0}),A.equalsPenSplineVertexType=void 0,A.equalsPenSplineVertexType=function(m,g,w){return h(m.position,g.position,w)&&(m.leftPosition===g.leftPosition===void 0||m.leftPosition&&g.leftPosition&&h(m.leftPosition,g.leftPosition,w)||!1)&&(m.rightPosition===g.rightPosition===void 0||m.rightPosition&&g.rightPosition&&h(m.rightPosition,g.rightPosition,w)||!1)}},4123:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorInfo=A.CursorFloatDiv=void 0;var p=h(7372),u=h(4621),f=h(7445),c=function(i){function s(){var r=i.call(this)||this;return r.contentDiv.style.backgroundColor="rgba(0, 0, 0, 0.8)",r.contentDiv.style.borderRadius="3px",r.contentDiv.style.color="rgb(255, 255, 255)",r.contentDiv.style.padding="1px 5px 1px 5px",r.contentDiv.style.fontSize="12px",r.contentDiv.style.whiteSpace="nowrap",r.contentDiv.innerText="未定义光标信息!",r.originRatioX=0,r.originRatioY=0,r.originOffsetX=-16,r}return g(s,i),s}(f.PosFloatDiv);A.CursorFloatDiv=c;var a=function(i){function s(r,o){var l=i.call(this)||this;l._pointerOut=l.disposeVar((0,p.react)(!1)),l._show=l.disposeVar((0,p.react)(!0)),l._cursorDiv=new f.DivPoi(o,r),l.dispose(function(){return l._cursorDiv.destroy()});var d=function(_){var b=w((0,u.getDomEventCurrentTargetPos)(_),2),E=b[0],F=b[1];l._cursorDiv.floatDiv.winPos=[E,F]};r.addEventListener("pointermove",d),l.dispose(function(){return r.removeEventListener("pointermove",d)});var B=function(){l._cursorDiv.show=l.show&&l._pointerOut.value};return B(),l.dispose(l.showChanged.disposableOn(B)),l.dispose(l._pointerOut.changed.disposableOn(B)),l}return g(s,i),Object.defineProperty(s.prototype,"show",{get:function(){return this._show.value},set:function(r){this._show.value=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showChanged",{get:function(){return this._show.changed},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this._pointerOut.value=!1},Object.defineProperty(s.prototype,"cursorDiv",{get:function(){return this._cursorDiv},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._cursorDiv.floatDiv.contentDiv.innerText},set:function(r){this._cursorDiv.floatDiv.contentDiv.innerText=r},enumerable:!1,configurable:!0}),s}(p.Destroyable);A.CursorInfo=a},4143:function(C,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),w=this&&this.__read||function(s,r){var o=typeof Symbol=="function"&&s[Symbol.iterator];if(!o)return s;var l,d,B=o.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=B.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(o=B.return)&&o.call(B)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.BorderedPosFloatDiv=A.createBottomTriangleElement=A.createCloseDiv=void 0;var p=h(7372),u=h(9986),f=["top","bottom","left","right"];function c(s,r,o){var l,d=document.createElement("div");return d.style.cssText="position: absolute; ".concat((l=o,Object.entries(l).map(function(B){var _=w(B,2),b=_[0],E=_[1];return f.includes(b)?"".concat(b,": ").concat(E,"px; "):""}).join(""))," background-color: ").concat(s,"; border-radius: ").concat(r,"px;"),d.innerHTML='<svg viewBox="0 0 1024 1024" style="display: block;" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2420" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M512 128C300.8 128 128 300.8 128 512s172.8 384 384 384 384-172.8 384-384S723.2 128 512 128zM512 832c-179.2 0-320-140.8-320-320s140.8-320 320-320 320 140.8 320 320S691.2 832 512 832z" p-id="2421" fill="#ffffff"></path><path d="M672 352c-12.8-12.8-32-12.8-44.8 0L512 467.2 396.8 352C384 339.2 364.8 339.2 352 352S339.2 384 352 396.8L467.2 512 352 627.2c-12.8 12.8-12.8 32 0 44.8s32 12.8 44.8 0L512 556.8l115.2 115.2c12.8 12.8 32 12.8 44.8 0s12.8-32 0-44.8L556.8 512l115.2-115.2C684.8 384 684.8 364.8 672 352z" p-id="2422" fill="#ffffff"></path></svg>',d}function a(s,r,o){o===void 0&&(o="rgba(0,0,0,0.7)");var l=document.createElement("div");l.style.cssText="margin: 0 auto; width: ".concat(s,"px; height: ").concat(r,"px; position: relative; pointer-events: none;");var d=document.createElement("div");return d.style.cssText="position: absolute; left: 0px; top: 0px; width: 0; height: 0; border-left: ".concat(.5*s,"px solid transparent; border-right: ").concat(.5*s,"px solid transparent; border-top: ").concat(r,"px solid ").concat(o,";"),l.appendChild(d),[l,d]}A.createCloseDiv=c,A.createBottomTriangleElement=a;var i=function(s){function r(){var o=s.call(this)||this;o._colorStr="rgba(0, 0, 0, 0.7)",o._divColorChanged=new p.Event,o._borderRadius=10;var l=document.createElement("div");l.style.cssText="position: relative; background-color: ".concat(o._colorStr,"; border-radius: ").concat(o._borderRadius,"px; padding: 5px; pointer-events: all;"),o._borderDiv=l;var d=c(o._colorStr,10,{top:3,right:3}),B=w(a(2*o._borderRadius,2*o._borderRadius,o._colorStr),2),_=B[0],b=B[1],E=document.createElement("div");o._innerContentDiv=E,l.appendChild(E),l.appendChild(d),o.contentDiv.appendChild(l),o.contentDiv.appendChild(_),d.style.opacity="0.1",d.onmouseenter=function(){d.style.opacity="1.0"},d.onmouseleave=function(){d.style.opacity="0.1"},d.onclick=function(){o._closeEvent&&o._closeEvent.emit()},o._closeDiv=d,o.dispose(o._divColorChanged.disposableOn(function(){b.style.borderTopColor=o._colorStr,l.style.backgroundColor=o._colorStr,_.style.width="".concat(2*o._borderRadius,"px"),_.style.height="".concat(2*o._borderRadius,"px"),b.style.borderLeft="".concat(o._borderRadius,"px"),b.style.borderRight="".concat(o._borderRadius,"px"),b.style.borderTop="".concat(2*o._borderRadius,"px")}));var F=function(S){S.key==="Escape"&&o._closeEvent&&o._closeEvent.emit()};return document.body.addEventListener("keydown",F,!0),o.dispose(function(){document.removeEventListener("keydown",F,!0)}),o}return g(r,s),Object.defineProperty(r.prototype,"borderDiv",{get:function(){return this._borderDiv},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"innerContentDiv",{get:function(){return this._innerContentDiv},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this.show=!1,this.opacity=0,this._closeDiv.style.opacity="0.1",s.prototype.reset.call(this)},Object.defineProperty(r.prototype,"colorStr",{get:function(){return this._colorStr},set:function(o){this._colorStr!==o&&(this._colorStr=o,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(o){this._borderRadius!==o&&(this._borderRadius=o,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),r}(u.PosFloatDiv);A.BorderedPosFloatDiv=i},4206:function(C,A){var h,m=this&&this.__extends||(h=function(w,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(u[c]=f[c])},h(w,p)},function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function u(){this.constructor=w}h(w,p),w.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)});Object.defineProperty(A,"__esModule",{value:!0}),A.CancelError=void 0;var g=function(w){function p(){return w!==null&&w.apply(this,arguments)||this}return m(p,w),p}(Error);A.CancelError=g},4209:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.inverse=void 0;var m=h(8089),g=h(2731),w=h(9898),p=(0,g.createNumbers)(9),u=(0,g.createNumbers)(9),f=(0,g.createNumbers)(4),c=(0,g.createNumbers)(4,0,0,0,1);A.inverse=function(a,i){var s=a[0],r=a[4],o=a[8],l=a[12],d=a[1],B=a[5],_=a[9],b=a[13],E=a[2],F=a[6],S=a[10],U=a[14],T=a[3],Q=a[7],P=a[11],I=a[15],M=S*I,K=U*P,W=F*I,L=U*Q,O=F*P,H=S*Q,k=E*I,G=U*T,R=E*P,D=S*T,N=E*Q,Y=F*T,$=M*B+L*_+O*b-(K*B+W*_+H*b),q=K*d+k*_+D*b-(M*d+G*_+R*b),oe=W*d+G*B+N*b-(L*d+k*B+Y*b),ae=H*d+R*B+Y*_-(O*d+D*B+N*_),me=K*r+W*o+H*l-(M*r+L*o+O*l),we=M*s+G*o+R*l-(K*s+k*o+D*l),ne=L*s+k*r+Y*l-(W*s+G*r+N*l),se=O*s+D*r+N*o-(H*s+R*r+Y*o),ye=(M=o*b)*Q+(L=l*B)*P+(O=r*_)*I-((K=l*_)*Q+(W=r*b)*P+(H=o*B)*I),Ee=K*T+(k=s*b)*P+(D=o*d)*I-(M*T+(G=l*d)*P+(R=s*_)*I),ue=W*T+G*Q+(N=s*B)*I-(L*T+k*Q+(Y=r*d)*I),ie=H*T+R*Q+Y*P-(O*T+D*Q+N*P),Oe=W*S+H*U+K*F-(O*U+M*F+L*S),rt=R*U+M*E+G*S-(k*S+D*U+K*E),HA=k*F+Y*U+L*E-(N*U+W*E+G*F),Ke=N*S+O*E+D*F-(R*F+Y*S+H*E),he=s*$+r*q+o*oe+l*ae;if(i=i||(0,g.createNumbers)(16),Math.abs(he)<1e-21){if(w.Vector.equalsEpsilon(m.Matrix4.getMatrix3(a,p),u,1e-7)&&w.Vector.equals(m.Matrix4.getRow(a,3,f),c))return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=0,i[11]=0,i[12]=-a[12],i[13]=-a[13],i[14]=-a[14],i[15]=1,i;throw new Error("matrix is not invertible because its determinate is zero.")}return he=1/he,i[0]=$*he,i[1]=q*he,i[2]=oe*he,i[3]=ae*he,i[4]=me*he,i[5]=we*he,i[6]=ne*he,i[7]=se*he,i[8]=ye*he,i[9]=Ee*he,i[10]=ue*he,i[11]=ie*he,i[12]=Oe*he,i[13]=rt*he,i[14]=HA*he,i[15]=Ke*he,i}},4221:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(4292),A),g(h(1662),A),g(h(3281),A),g(h(6356),A)},4235:(C,A,h)=>{A.A=void 0;var m=h(4638),g=h(733),w={blocks:function(s){for(var r=[],o=s.data.length,l=0,d=(0,g.readByte)()(s);d!==0&&d;d=(0,g.readByte)()(s)){if(s.pos+d>=o){var B=o-s.pos;r.push((0,g.readBytes)(B)(s)),l+=B;break}r.push((0,g.readBytes)(d)(s)),l+=d}for(var _=new Uint8Array(l),b=0,E=0;E<r.length;E++)_.set(r[E],b),b+=r[E].length;return _}},p=(0,m.conditional)({gce:[{codes:(0,g.readBytes)(2)},{byteSize:(0,g.readByte)()},{extras:(0,g.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,g.readUnsigned)(!0)},{transparentColorIndex:(0,g.readByte)()},{terminator:(0,g.readByte)()}]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===249}),u=(0,m.conditional)({image:[{code:(0,g.readByte)()},{descriptor:[{left:(0,g.readUnsigned)(!0)},{top:(0,g.readUnsigned)(!0)},{width:(0,g.readUnsigned)(!0)},{height:(0,g.readUnsigned)(!0)},{lct:(0,g.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,m.conditional)({lct:(0,g.readArray)(3,function(s,r,o){return Math.pow(2,o.descriptor.lct.size+1)})},function(s,r,o){return o.descriptor.lct.exists}),{data:[{minCodeSize:(0,g.readByte)()},w]}]},function(s){return(0,g.peekByte)()(s)===44}),f=(0,m.conditional)({text:[{codes:(0,g.readBytes)(2)},{blockSize:(0,g.readByte)()},{preData:function(s,r,o){return(0,g.readBytes)(o.text.blockSize)(s)}},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===1}),c=(0,m.conditional)({application:[{codes:(0,g.readBytes)(2)},{blockSize:(0,g.readByte)()},{id:function(s,r,o){return(0,g.readString)(o.blockSize)(s)}},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===255}),a=(0,m.conditional)({comment:[{codes:(0,g.readBytes)(2)},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===254}),i=[{header:[{signature:(0,g.readString)(3)},{version:(0,g.readString)(3)}]},{lsd:[{width:(0,g.readUnsigned)(!0)},{height:(0,g.readUnsigned)(!0)},{gct:(0,g.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,g.readByte)()},{pixelAspectRatio:(0,g.readByte)()}]},(0,m.conditional)({gct:(0,g.readArray)(3,function(s,r){return Math.pow(2,r.lsd.gct.size+1)})},function(s,r){return r.lsd.gct.exists}),{frames:(0,m.loop)([p,c,a,u,f],function(s){var r=(0,g.peekByte)()(s);return r===33||r===44})}];A.A=i},4292:(C,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.copyright=void 0;var m=(h="".concat("xbsj-base"))!==null&&h!==void 0?h:"-",g="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",w=((Date.now()-1743502596e3)/36e5).toFixed(1),p="%c🌏 ".concat(m,"%c ").concat("1.0.1"," ").concat("6a6f3869f41c8db67af383a267b45147c29ee2b5".slice(0,8)," ").concat("2025-04-01T10:16:36.000Z"," (距今").concat(w,`个小时)
4
+ %c`).concat(g+`
5
+ `,"当前网站正在使用").concat(m,",此开发包版权归").concat("北京西部世界科技有限公司","所有。");A.copyright=Object.seal({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get info(){return p},get date(){return"2025-04-01T10:16:36.000Z"},get author(){return"vtxf,suplyang"},get version(){return"1.0.1"},get name(){return"xbsj-base"},get commitId(){return"6a6f3869f41c8db67af383a267b45147c29ee2b5"},print:function(){console.info(this.info,`
6
+ font-size: 18px;
7
+ font-weight: 1000;
8
+ line-height: 1;
9
+ color: rgb(0, 120, 215);
10
+ padding-top: 20px;
11
+ padding-bottom: 10px;
12
+ `,`
13
+ font-size: 10px;
14
+ font-weight: 1000;
15
+ color: rgb(0, 120, 215);
16
+ `,`
17
+ font-size: 10px;
18
+ line-height: 1.5;
19
+ color: rgb(0, 120, 215);
20
+ padding-bottom: 2px;
21
+ padding-left: 35px;
22
+ `)}})},4344:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&a[i],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},u=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObservableSet=void 0;var f=h(1662),c=function(a){function i(){var s=a.call(this)||this;return s._set=new Set,s._toChangeEvent=s.disposeVar(new f.Event),s._changedEvent=s.disposeVar(new f.Event),s.dispose(function(){s._set.size!==0&&(i.warnOnDestroying&&console.warn("this._set.size > 0"),s.clear())}),s}return g(i,a),Object.defineProperty(i.prototype,"toChange",{get:function(){return this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"changed",{get:function(){return this._changedEvent},enumerable:!1,configurable:!0}),i.prototype.add=function(){for(var s,r,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];try{for(var d=w(o),B=d.next();!B.done;B=d.next()){var _=B.value;this._toChangeEvent.emit([],[_]),this._set.add(_),this._changedEvent.emit([],[_])}}catch(b){s={error:b}}finally{try{B&&!B.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}},i.prototype.delete=function(){for(var s,r,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];try{for(var d=w(o),B=d.next();!B.done;B=d.next()){var _=B.value;this._toChangeEvent.emit([_],[]),this._set.delete(_),this._changedEvent.emit([_],[])}}catch(b){s={error:b}}finally{try{B&&!B.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}},i.prototype.disposableAdd=function(){for(var s=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return this.add.apply(this,u([],p(r),!1)),function(){return s.delete.apply(s,u([],p(r),!1))}},Object.defineProperty(i.prototype,"size",{get:function(){return this._set.size},enumerable:!1,configurable:!0}),i.prototype.clear=function(){var s=u([],p(this._set),!1);this._toChangeEvent.emit([],s),this._set.clear(),this._changedEvent.emit([],s)},i.prototype.values=function(){return this._set.values()},i.warnOnDestroying=!0,i}(f.Destroyable);A.ObservableSet=c},4416:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.BoundingSphere=void 0;var m=h(312),g=h(8089),w=h(2731),p=h(7215),u=h(9898);(function(f){function c(F,S){return S=S||(0,w.createNumbers)(3),u.Vector.set(S,F[0],F[1],F[2]),S}function a(F){return F[3]}function i(F,S){return F[0]=S[0],F[1]=S[1],F[2]=S[2],F}function s(F,S){F[3]=S}f.getCenter=c,f.getRadius=a,f.setCenter=i,f.setRadius=s,f.fromCenterRadius=function(F,S,U){return u.Vector.set(U,F[0],F[1],F[2],S)};var r=(0,w.createNumbers)(3),o=(0,w.createNumbers)(3);f.intersectPlane=function(F,S){var U=c(F,r),T=a(F),Q=p.Plane.getNormal(S,o),P=u.Vector.dot(Q,U)+p.Plane.getDistance(S);return P<-T?m.Intersect.OUTSIDE:P<T?m.Intersect.INTERSECTING:m.Intersect.INSIDE};var l=(0,w.createNumbers)(3);f.transform=function(F,S,U){U=U||(0,w.createNumbers)(4);var T=c(F,l),Q=a(F);return g.Matrix4.affineMultiplyByPoint(S,T,T),Q*=g.Matrix4.getMaximumScale(S),i(U,T),s(U,Q),U};var d=(0,w.createNumbers)(3),B=(0,w.createNumbers)(3),_=(0,w.createNumbers)(3),b=(0,w.createNumbers)(3);f.union=function(F,S,U){U=U||(0,w.createNumbers)(4);var T=u.Vector.set(d,F[0],F[1],F[2]),Q=F[3],P=u.Vector.set(B,S[0],S[1],S[2]),I=S[3],M=u.Vector.subtract(P,T,_),K=u.Vector.magnitude(M);if(Q>=K+I)return u.Vector.clone(F,U),U;if(I>=K+Q)return u.Vector.clone(S,U),U;var W=.5*(Q+K+I),L=u.Vector.multiplyByScalar(M,(-Q+W)/K,b);return u.Vector.add(L,T,L),u.Vector.set(U,L[0],L[1],L[2],W),U};var E=(0,w.createNumbers)(3);f.fromCornerPoints=function(F,S,U){var T=u.Vector.lerp(F,S,.5,E),Q=u.Vector.distance(T,S);return u.Vector.set(U,T[0],T[1],T[2],Q)}})(A.BoundingSphere||(A.BoundingSphere={}))},4471:function(C,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var i,s,r=a.call(f),o=[];try{for(;(c===void 0||c-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return o},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var i,s=0,r=c.length;s<r;s++)!i&&s in c||(i||(i=Array.prototype.slice.call(c,0,s)),i[s]=c[s]);return f.concat(i||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.ListenerPipe=void 0;var w=h(1895),p=new(h(1085)).ObjPool(function(){return{func:void 0,scope:void 0,_hasRemoved:!1,_once:!1}},function(f){f.func=void 0,f.scope=void 0,f._hasRemoved=!1,f._once=!1},!0),u=function(){function f(){}return Object.defineProperty(f.prototype,"_dll",{get:function(){var c;return this.__dll=(c=this.__dll)!==null&&c!==void 0?c:new w.DoublyLinkedList({needLength:!0}),this.__dll},enumerable:!1,configurable:!0}),f.prototype._pushCurrentListener=function(c){this.__currentListenerStack?Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.push(c):this.__currentListenerStack=[this.__currentListenerStack,c]:this.__currentListenerStack=c},f.prototype._popCurrentListener=function(){if(!this.__currentListenerStack)throw new Error("cannot pop!");Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.pop():this.__currentListenerStack=void 0},f.prototype._hasCurrentListener=function(c){return!!this.__currentListenerStack&&(Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.indexOf(c)!==-1:this.__currentListenerStack===c)},f.prototype.do=function(){for(var c,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(this.__dll&&!this._dll.empty)for(var s=this._dll.head;s;){var r=s.item;r._hasRemoved||(this._pushCurrentListener(r),(c=r.func).call.apply(c,g([r.scope],m(a),!1)),this._popCurrentListener());var o=s.next;r._once&&!r._hasRemoved&&(this.remove(s),s=void 0),s&&this._clearHasRemoved(s),s=o}},Object.defineProperty(f.prototype,"empty",{get:function(){if(!this.__dll||this._dll.empty)return!0;for(var c=!0,a=this._dll.head;a;){if(!a.item._hasRemoved){c=!1;break}a=a.next}return c},enumerable:!1,configurable:!0}),f.prototype.isHandlerValid=function(c){return!c.item._hasRemoved},f.prototype.nextHandler=function(c){if(!c.item._hasRemoved)throw new Error("handler has removed!");for(var a=c.next;a&&a.item._hasRemoved;)a=a.next;return a},f.prototype.prevHandler=function(c){if(!c.item._hasRemoved)throw new Error("handler has removed!");for(var a=c.previous;a&&a.item._hasRemoved;)a=a.previous;return a},f.prototype.moveAfter=function(c,a){if(c.item._hasRemoved||a.item._hasRemoved)throw new Error("handler or nextHandler has removed!");return this._dll.moveAfter(c,a)},f.prototype.moveBefore=function(c,a){if(c.item._hasRemoved||a.item._hasRemoved)throw new Error("handler or prevHandler has removed!");return this._dll.moveBefore(c,a)},f.prototype.insertBefore=function(c,a,i,s){if(s===void 0&&(s=!1),c.item._hasRemoved)throw new Error("handler has removed!");var r=p.create();return r.func=a,r.scope=i,r._once=s,this._dll.insertBefore(c,r)},f.prototype.insertAfter=function(c,a,i,s){if(s===void 0&&(s=!1),c.item._hasRemoved)throw new Error("handler has removed!");var r=p.create();return r.func=a,r.scope=i,r._once=s,this._dll.insertAfter(c,r)},f.prototype._clearHasRemoved=function(c){c.item._hasRemoved&&!this._hasCurrentListener(c.item)&&(p.destroy(c.item),this._dll.remove(c))},f.prototype.remove=function(c){if(!c.item||c.item._hasRemoved)throw new Error("handler has removed!");this._hasCurrentListener(c.item)?c.item._hasRemoved=!0:(p.destroy(c.item),this._dll.remove(c))},f.prototype.removeAll=function(){if(this.__dll&&!this._dll.empty)for(var c=this._dll.head;c;){var a=c.next;c.item._hasRemoved||this.remove(c),c=a}},f.prototype.destroy=function(){if(this.__dll){for(var c=this._dll.head;c;){var a=c.next,i=c;this._hasCurrentListener(i.item)||(console.warn("Event has remove item that on current stack!"),console.warn("".concat(i.item.func.toString()))),p.destroy(i.item),this._dll.remove(i),c=a}this.__dll=void 0,this.__currentListenerStack=void 0}},f.prototype.push=function(c,a,i){i===void 0&&(i=!1);var s=p.create();return s.func=c,s.scope=a,s._once=i,this._dll.push(s)},f.prototype.pop=function(){var c=this.tail;if(!c)throw new Error("pop error!");this.remove(c)},f.prototype.shift=function(){var c=this.head;if(!c)throw new Error("shift error!");this.remove(c)},f.prototype.unshift=function(c,a,i){i===void 0&&(i=!1);var s=p.create();return s.func=c,s.scope=a,s._once=i,this._dll.unshift(s)},Object.defineProperty(f.prototype,"tail",{get:function(){for(var c=this._dll.tail;c&&c.item._hasRemoved;)c=c.previous;return c},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"head",{get:function(){for(var c=this._dll.head;c&&c.item._hasRemoved;)c=c.previous;return c},enumerable:!1,configurable:!0}),f}();A.ListenerPipe=u},4499:function(C,A){var h=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,i=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=i.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=i.return)&&f.call(i)}finally{if(a)throw a.error}}return s};function m(p,u,f,c){var a=h(p,2),i=a[0],s=a[1],r=h(c,4),o=r[0],l=r[1],d=r[2],B=r[3],_=u[0]*f[0],b=u[1]*f[1],E=i-(_*o+d),F=s-(b*l+B);return{left:E,top:F,right:E+_,bottom:F+b}}function g(p,u,f,c,a,i){p.beginPath(),p.moveTo(u+i,f),p.lineTo(u+c-i,f),p.arcTo(u+c,f,u+c,f+i,i),p.lineTo(u+c,f+a-i),p.arcTo(u+c,f+a,u+c-i,f+a,i),p.lineTo(u+i,f+a),p.arcTo(u,f+a,u,f+a-i,i),p.lineTo(u,f+i),p.arcTo(u,f,u+i,f,i)}function w(p){return("00"+p.toString(16).toUpperCase()).substr(-2)}Object.defineProperty(A,"__esModule",{value:!0}),A.getColorHexStr=A.uint8ToHexStr=A.drawTextBlock=A.setCanvasUniformColor=A.imageToCanvas=A.drawText=A.drawRoundRectPath=A.drawPoint=A.getDrawRect=void 0,A.getDrawRect=m,A.drawPoint=function(p,u,f,c,a){p.beginPath(),p.moveTo(u,f),p.lineTo(u-.5*c,f-.5*c),p.arc(u,f-c,.7071067811865475*c,.75*Math.PI,.25*Math.PI),p.lineTo(u,f),p.fillStyle=a,p.fill()},A.drawRoundRectPath=g,A.drawText=function(p,u,f,c,a,i){p.font=a;var s=p.measureText(c),r=s.actualBoundingBoxLeft+s.actualBoundingBoxRight,o=Number.isFinite(s.fontBoundingBoxAscent)?s.fontBoundingBoxAscent:s.actualBoundingBoxAscent,l=Number.isFinite(s.fontBoundingBoxDescent)?s.fontBoundingBoxDescent:s.actualBoundingBoxDescent,d=o+l;p.fillStyle=i,p.fillText(c,u-.5*r,f+.5*d-l)},A.imageToCanvas=function(p){var u=p.width,f=p.height,c=u instanceof SVGAnimatedLength?u.baseVal.SVG_LENGTHTYPE_PX:u,a=f instanceof SVGAnimatedLength?f.baseVal.SVG_LENGTHTYPE_PX:f,i=document.createElement("canvas");i.width=c,i.height=a;var s=i.getContext("2d");if(!s)throw new Error("!cavnasCtx");return s.drawImage(p,0,0,c,a),i},A.setCanvasUniformColor=function(p,u){var f=p.width,c=p.height,a=p.getContext("2d");if(!a)throw new Error("!cavnasCtx");for(var i=h(u.map(function(_){return 255*_|0}),3),s=i[0],r=i[1],o=i[2],l=a.getImageData(0,0,f,c),d=l.data,B=0;B<d.length;B+=4)d[B]=s,d[B+1]=r,d[B+2]=o;a.putImageData(l,0,0)},A.drawTextBlock=function(p,u,f,c,a,i,s,r,o){c===void 0&&(c=[.5,1,0,0]),i===void 0&&(i="12px Arial"),s===void 0&&(s=2),r===void 0&&(r="#FFF"),o===void 0&&(o="#000A"),p.font=i;var l=p.measureText(a),d=l.actualBoundingBoxLeft+l.actualBoundingBoxRight+2*s,B=l.fontBoundingBoxAscent+l.fontBoundingBoxDescent+2*s,_=m([u,f],[d,B],[1,1],c),b=_.left,E=_.top,F=_.bottom;p.fillStyle=o,g(p,b,E,d,B,s),p.fill(),p.fillStyle=r,p.fillText(a,b+s,F-s-l.fontBoundingBoxDescent)},A.uint8ToHexStr=w,A.getColorHexStr=function(p){var u=h(p.map(function(s){return 255*s|0}),4),f=u[0],c=u[1],a=u[2],i=u[3];return"#".concat(w(f)).concat(w(c)).concat(w(a)).concat(w(i))}},4601:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setRow=A._getRow=void 0;var m=h(2731),g=h(9898);A._getRow=function(w,p,u){if(p<0||p>3)throw new Error("index < 0 || index > 3");u=u||(0,m.createNumbers)(4);var f=w[p],c=w[p+4],a=w[p+8],i=w[p+12];return u[0]=f,u[1]=c,u[2]=a,u[3]=i,u},A._setRow=function(w,p,u,f){if(p<0||p>3)throw new Error("index < 0 || index > 3");return(f=g.Vector.clone(w,f))[p]=u[0],f[p+4]=u[1],f[p+8]=u[2],f[p+12]=u[3],f}},4621:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(1378),A),g(h(9369),A),g(h(9597),A),g(h(5010),A),g(h(507),A),g(h(1968),A),g(h(2217),A),g(h(2299),A)},4638:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loop=A.conditional=A.parse=void 0,A.parse=function h(m,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w;if(Array.isArray(g))g.forEach(function(f){return h(m,f,w,p)});else if(typeof g=="function")g(m,w,p,h);else{var u=Object.keys(g)[0];Array.isArray(g[u])?(p[u]={},h(m,g[u],w,p[u])):p[u]=g[u](m,w,p,h)}return w},A.conditional=function(h,m){return function(g,w,p,u){m(g,w,p)&&u(g,h,w,p)}},A.loop=function(h,m){return function(g,w,p,u){for(var f=[],c=g.pos;m(g,w,p);){var a={};if(u(g,h,w,a),g.pos===c)break;c=g.pos,f.push(a)}return f}}},4661:function(C,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,i=0,s=f.length;i<s;i++)!a&&i in f||(a||(a=Array.prototype.slice.call(f,0,i)),a[i]=f[i]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.stepProcessing=void 0;var w=h(5819),p=h(9374);A.stepProcessing=function(u,f){for(var c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];return u.promise((0,w.pairToPromise)(p.getPromiseFromProcessing.apply(void 0,g([f],m(c),!1))))}},4775:function(C,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(i){f={error:i}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.debounce=void 0,A.debounce=function(g,w){if(!window||!window.setTimeout||!window.clearTimeout)throw new Error("目前只适合在浏览器中使用!");var p=0;function u(){p>0&&(window.clearTimeout(p),p=0)}return[function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];u(),p=window.setTimeout.apply(window,m([g,w],h(f),!1))},u]}},4833:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.InverseViewMatrix=void 0;var m=h(9898),g=function(){function w(){}return w.getDirection=function(p,u){return m.Vector.set(u,-p[8],-p[9],-p[10])},w.getRight=function(p,u){return m.Vector.set(u,p[0],p[1],p[2])},w.getUp=function(p,u){return m.Vector.set(u,p[4],p[5],p[6])},w.getEye=function(p,u){return m.Vector.set(u,p[12],p[13],p[14])},w}();A.InverseViewMatrix=g},4899:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(1895),A),g(h(9067),A),g(h(4471),A),g(h(2452),A),g(h(5774),A)},4915:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Matrix3=void 0;var m,g=h(2731),w=h(9898);(m=A.Matrix3||(A.Matrix3={})).multiply=function(p,u,f){var c=p[0]*u[0]+p[3]*u[1]+p[6]*u[2],a=p[1]*u[0]+p[4]*u[1]+p[7]*u[2],i=p[2]*u[0]+p[5]*u[1]+p[8]*u[2],s=p[0]*u[3]+p[3]*u[4]+p[6]*u[5],r=p[1]*u[3]+p[4]*u[4]+p[7]*u[5],o=p[2]*u[3]+p[5]*u[4]+p[8]*u[5],l=p[0]*u[6]+p[3]*u[7]+p[6]*u[8],d=p[1]*u[6]+p[4]*u[7]+p[7]*u[8],B=p[2]*u[6]+p[5]*u[7]+p[8]*u[8];return(f=f||(0,g.createNumbers)(9))[0]=c,f[1]=a,f[2]=i,f[3]=s,f[4]=r,f[5]=o,f[6]=l,f[7]=d,f[8]=B,f},m.multiplyByVector=function(p,u,f){var c=u[0],a=u[1],i=u[2],s=p[0]*c+p[3]*a+p[6]*i,r=p[1]*c+p[4]*a+p[7]*i,o=p[2]*c+p[5]*a+p[8]*i;return w.Vector.set(f,s,r,o)},m.fromQuaternion=function(p,u){var f=p[0]*p[0],c=p[0]*p[1],a=p[0]*p[2],i=p[0]*p[3],s=p[1]*p[1],r=p[1]*p[2],o=p[1]*p[3],l=p[2]*p[2],d=p[2]*p[3],B=p[3]*p[3],_=f-s-l+B,b=2*(c-d),E=2*(a+o),F=2*(c+d),S=-f+s-l+B,U=2*(r-i),T=2*(a-o),Q=2*(r+i),P=-f-s+l+B;return u=u||(0,g.createNumbers)(9),w.Vector.set(u,_,F,T,b,S,Q,E,U,P),u},m.getScale=function(p,u){return(u=u||(0,g.createNumbers)(3))[0]=w.Vector.magnitude([p[0],p[1],p[2]]),u[1]=w.Vector.magnitude([p[3],p[4],p[5]]),u[2]=w.Vector.magnitude([p[6],p[7],p[8]]),u},m.getElementIndex=function(p,u){return 3*p+u},m.IDENTITY=Object.freeze([1,0,0,0,1,0,0,0,1]),m.COLUMN0ROW0=0,m.COLUMN0ROW1=1,m.COLUMN0ROW2=2,m.COLUMN1ROW0=3,m.COLUMN1ROW1=4,m.COLUMN1ROW2=5,m.COLUMN2ROW0=6,m.COLUMN2ROW1=7,m.COLUMN2ROW2=8},4969:(C,A)=>{function h(m){return JSON.stringify(m,void 0," ")}Object.defineProperty(A,"__esModule",{value:!0}),A.printJson=A.toJsonStr=void 0,A.toJsonStr=h,A.printJson=function(m){console.log(h(m))}},4990:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadCRN=void 0;var m=h(9928),g=h(2075),w=h(3631),p=h(5486),u=h(1662),f=Error,c=new g.TaskProcessor("transcodeCRNToDXT",Number.POSITIVE_INFINITY);A.loadCRN=function(a){if(!(0,p.defined)(a))throw new f("resourceOrUrlOrBuffer is required.");var i;if(i=a instanceof ArrayBuffer||ArrayBuffer.isView(a)?w.when.resolve(a):(0,u.fetchArrayBuffer)(a),(0,p.defined)(i))return i.then(function(s){if((0,p.defined)(s)){var r=[];return s instanceof ArrayBuffer?r.push(s):(s.byteOffset===0&&s.byteLength===s.buffer.byteLength||(s=s.slice(0,s.length)),r.push(s.buffer)),c.scheduleTask(s,r)}}).then(function(s){return s||console.error("compressedTextureBuffer is undefined!"),m.CompressedTextureBuffer.clone(s)})}},5010:function(C,A,h){var m,g=this&&this.__extends||(m=function(d,B){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])},m(d,B)},function(d,B){if(typeof B!="function"&&B!==null)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function _(){this.constructor=d}m(d,B),d.prototype=B===null?Object.create(B):(_.prototype=B.prototype,new _)}),w=this&&this.__awaiter||function(d,B,_,b){return new(_||(_=Promise))(function(E,F){function S(Q){try{T(b.next(Q))}catch(P){F(P)}}function U(Q){try{T(b.throw(Q))}catch(P){F(P)}}function T(Q){var P;Q.done?E(Q.value):(P=Q.value,P instanceof _?P:new _(function(I){I(P)})).then(S,U)}T((b=b.apply(d,B||[])).next())})},p=this&&this.__generator||function(d,B){var _,b,E,F,S={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return F={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function U(T){return function(Q){return function(P){if(_)throw new TypeError("Generator is already executing.");for(;F&&(F=0,P[0]&&(S=0)),S;)try{if(_=1,b&&(E=2&P[0]?b.return:P[0]?b.throw||((E=b.return)&&E.call(b),0):b.next)&&!(E=E.call(b,P[1])).done)return E;switch(b=0,E&&(P=[2&P[0],E.value]),P[0]){case 0:case 1:E=P;break;case 4:return S.label++,{value:P[1],done:!1};case 5:S.label++,b=P[1],P=[0];continue;case 7:P=S.ops.pop(),S.trys.pop();continue;default:if(!((E=(E=S.trys).length>0&&E[E.length-1])||P[0]!==6&&P[0]!==2)){S=0;continue}if(P[0]===3&&(!E||P[1]>E[0]&&P[1]<E[3])){S.label=P[1];break}if(P[0]===6&&S.label<E[1]){S.label=E[1],E=P;break}if(E&&S.label<E[2]){S.label=E[2],S.ops.push(P);break}E[2]&&S.ops.pop(),S.trys.pop();continue}P=B.call(d,S)}catch(I){P=[6,I],b=0}finally{_=E=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([T,Q])}}},u=this&&this.__read||function(d,B){var _=typeof Symbol=="function"&&d[Symbol.iterator];if(!_)return d;var b,E,F=_.call(d),S=[];try{for(;(B===void 0||B-- >0)&&!(b=F.next()).done;)S.push(b.value)}catch(U){E={error:U}}finally{try{b&&!b.done&&(_=F.return)&&_.call(F)}finally{if(E)throw E.error}}return S};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerClick=void 0;var f=h(7372),c=h(7372),a=h(7372),i=h(8106),s=h(5819),r=h(9597),o=h(2299),l=function(d){function B(){var _=d.call(this)||this;_._clickEvent=_.disposeVar(new c.Event),_._dbclickEvent=_.disposeVar(new c.Event),_._pointerdownEvent=_.disposeVar(new c.Event),_._pointerupEvent=_.disposeVar(new c.Event),_._pointermoveEvent=_.disposeVar(new c.Event),_._pointeroutEvent=_.disposeVar(new c.Event),_.dbClickDelayTime=300,_.nativeClickDelayTime=500,_.clickMovementTolerantPixelSize=3,_.debugging=!1,_._enabled=_.disposeVar((0,a.react)(!0));var b=_.disposeVar((0,s.createProcessingFromAsyncFunc)(function(F){return w(_,void 0,void 0,function(){var S,U,T=this;return p(this,function(Q){switch(Q.label){case 0:S=function(){var P,I,M;return p(this,function(K){switch(K.label){case 0:return[4,(0,i.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O),W.disposer.dispose(r.DomElementEvent.on(T._pointerdownEvent,L))})})];case 1:return P=K.sent(),I=(0,o.getDomEventCurrentTargetPos)(P),U.debugging&&console.log("鼠标按下 ".concat(I.toString())),[4,(0,i.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L(!0)},T.nativeClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,o.getDomEventCurrentTargetPos)(k),2),R=G[0],D=G[1],N=u(I,2),Y=N[0],$=N[1];(Math.abs(R-Y)>3||Math.abs(D-$)>3)&&L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L(!0)}))})})];case 2:return K.sent()?[4,(0,i.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L("timeout")},T.dbClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,o.getDomEventCurrentTargetPos)(k),2),R=G[0],D=G[1],N=u(I,2),Y=N[0],$=N[1];(Math.abs(R-Y)>3||Math.abs(D-$)>3)&&L("moved")})),W.disposer.dispose(r.DomElementEvent.on(T._pointerdownEvent,L)),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L("pointouted")})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L("pointuped")}))})})]:(U.debugging&&console.log("取消1"),[2,"continue"]);case 3:return typeof(M=K.sent())=="string"?(U.debugging&&console.log("触发单击事件!取消双击监听!error: ".concat(M)),U._clickEvent.emit(P),[2,"continue"]):[4,(0,i.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L(!1)},T.nativeClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,o.getDomEventCurrentTargetPos)(k),2),R=G[0],D=G[1],N=u(I,2),Y=N[0],$=N[1];(Math.abs(R-Y)>3||Math.abs(D-$)>3)&&L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L(!0)}))})})];case 4:return K.sent()?(U.debugging&&console.log("触发双击事件!"),U._dbclickEvent.emit(M),[2]):(U.debugging&&console.log("取消2"),[2,"continue"])}})},U=this,Q.label=1;case 1:return[5,S()];case 2:Q.sent(),Q.label=3;case 3:return[3,1];case 4:return[2]}})})})),E=function(F){F?b.restart():b.isRunning&&b.cancel()};return E(_.enabled),_.dispose(_.enabledChanged.disposableOn(E)),_}return g(B,d),Object.defineProperty(B.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),B.prototype.pointerDown=function(_){this._pointerdownEvent.emit(_)},B.prototype.pointerUp=function(_){this._pointerupEvent.emit(_)},B.prototype.pointerMove=function(_){this._pointermoveEvent.emit(_)},B.prototype.pointerOut=function(_){this._pointeroutEvent.emit(_)},Object.defineProperty(B.prototype,"enabled",{get:function(){return this._enabled.value},set:function(_){this._enabled.value=_},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),B}(f.Destroyable);A.PointerClick=l},5015:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getBase64UriData=void 0;var h=/^data:(.*?)(;base64)?,(.*)$/;function m(p,u){var f=decodeURIComponent(u);return p?atob(f):f}function g(p,u){for(var f=m(p,u),c=new ArrayBuffer(f.length),a=new Uint8Array(c),i=0;i<f.length;i++)a[i]=f.charCodeAt(i);return c}function w(p,u){u===void 0&&(u="text");var f=p[1],c=!!p[2],a=p[3];switch(u){case"text":return[m(c,a),f];case"arraybuffer":return[g(c,a),f];case"blob":var i=g(c,a);return[new Blob([i],{type:f}),f];case"document":return[new DOMParser().parseFromString(m(c,a),f),f];case"json":return[JSON.parse(m(c,a)),f];default:throw new Error("Unhandled responseType: "+u)}}A.getBase64UriData=function(p,u){u===void 0&&(u="text");var f=h.exec(p);if(f!==null){if(u==="document"||u==="blob"||u==="arraybuffer"||u==="text"||u==="json")return w(f,u);throw new Error("responseType error!")}}},5210:function(C,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,_){B.__proto__=_}||function(B,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(B[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function B(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(B.prototype=d.prototype,new B)}),w=this&&this.__awaiter||function(l,d,B,_){return new(B||(B=Promise))(function(b,E){function F(T){try{U(_.next(T))}catch(Q){E(Q)}}function S(T){try{U(_.throw(T))}catch(Q){E(Q)}}function U(T){var Q;T.done?b(T.value):(Q=T.value,Q instanceof B?Q:new B(function(P){P(Q)})).then(F,S)}U((_=_.apply(l,d||[])).next())})},p=this&&this.__generator||function(l,d){var B,_,b,E,F={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(U){return function(T){return function(Q){if(B)throw new TypeError("Generator is already executing.");for(;E&&(E=0,Q[0]&&(F=0)),F;)try{if(B=1,_&&(b=2&Q[0]?_.return:Q[0]?_.throw||((b=_.return)&&b.call(_),0):_.next)&&!(b=b.call(_,Q[1])).done)return b;switch(_=0,b&&(Q=[2&Q[0],b.value]),Q[0]){case 0:case 1:b=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,_=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((b=(b=F.trys).length>0&&b[b.length-1])||Q[0]!==6&&Q[0]!==2)){F=0;continue}if(Q[0]===3&&(!b||Q[1]>b[0]&&Q[1]<b[3])){F.label=Q[1];break}if(Q[0]===6&&F.label<b[1]){F.label=b[1],b=Q;break}if(b&&F.label<b[2]){F.label=b[2],F.ops.push(Q);break}b[2]&&F.ops.pop(),F.trys.pop();continue}Q=d.call(l,F)}catch(P){Q=[6,P],_=0}finally{B=b=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([U,T])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.HlsProcessing=A.HlsJsLoading=void 0;var u=h(1662),f=h(8106),c=h(2220),a=h(5819),i=function(l){function d(){var B=l.call(this)||this;return B._loading=!1,B._loadedEvent=B.disposeVar(new u.Event),B._loaded=!1,B._loadedPromise=new Promise(function(_){B._loadedPromiseResolve=_}),B._processing=B.disposeVar((0,a.createProcessingFromAsyncFunc)(function(_){return w(B,void 0,void 0,function(){var b;return p(this,function(E){switch(E.label){case 0:return this._loading=!0,window.Hls?(console.info("可能系统已经加载hlsjs,此处不再加载!"),[3,3]):[3,1];case 1:return b=c.SceneObject.context.getStrFromEnv(d.path),[4,_.promise((0,u.loadJs)(b))];case 2:E.sent(),E.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),B._processingStart=B._processing.start(),B}return g(d,l),Object.defineProperty(d.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d.instance=function(){return d._instance=d._instance||new d,d._instance},d.path="${xr-utils-script-dir}/xr-static/xr-utils/hlsjs/1.4.12/hls.min.js",d}(u.Destroyable);A.HlsJsLoading=i;var s=function(l){function d(B,_){var b=l.call(this)||this;b._complexImage=B,b._videoSrc=_;var E,F=document.createElement("video");return F.src=b._videoSrc,F.style.position="absolute",F.style.top="0px",F.style.left="0px",F.style.zIndex="-100",F.style.visibility="hidden",(E=function(){F.crossOrigin=b._complexImage.crossOrigin})(),b.dispose(b._complexImage.crossOriginChanged.disposableOn(E)),(E=function(){F.autoplay=b._complexImage.autoplay})(),b.dispose(b._complexImage.autoplayChanged.disposableOn(E)),(E=function(){F.loop=b._complexImage.loop})(),b.dispose(b._complexImage.loopChanged.disposableOn(E)),F.muted=!0,document.body.appendChild(F),b._element=F,b.dispose(function(){return document.body.removeChild(F)}),b}return g(d,l),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),d}(u.Destroyable),r=function(l){function d(B,_){var b=l.call(this)||this;return b._complexImage=B,b._videoSrc=_,b._videoDom=b.disposeVar(new s(b._complexImage,"")),b._processing=b.disposeVar((0,a.createProcessingFromAsyncFunc)(function(E){return w(b,void 0,void 0,function(){var F,S,U,T,Q;return p(this,function(P){switch(P.label){case 0:return F=this.videoSrc,S=i.instance(),[4,E.promise(S.loadedPromise)];case 1:return P.sent(),U=window.Hls,T=new U,Q=this.element,[4,(0,f.step)(E,function(){return new Promise(function(I,M){Q.xbsjHLS=T,T.attachMedia(Q),T.on(U.Events.MEDIA_ATTACHED,function(){T.loadSource(F),T.on(U.Events.MANIFEST_PARSED,function(K,W){Q.play(),I()})}),T.on(U.Events.ERROR,function(K,W){W.type;var L=W.details;W.fatal&&(T.destroy(),M(L))})})})];case 2:return P.sent(),[2]}})})})),b._processingStartup=b._processing.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d}(u.Destroyable),o=function(l){function d(B,_){var b=l.call(this)||this;return b._complexImage=B,b._imageUri=_,b._videoDom=b.disposeVar(new r(b._complexImage,b._imageUri)),b._update=b.disposeVar((0,f.createAnimateFrameWithStartValues)(function(){return b.update()})),b._updateStart=b._update.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),d.prototype.update=function(){if(!(this.videoElement.readyState<2)){var B=this._complexImage,_=this.videoElement,b=_.videoWidth,E=_.videoHeight;B.size=[b,E],B.pixelFormat="RGBA",B.copyTexture({source:this.videoElement})}},d}(u.Destroyable);A.HlsProcessing=o},5236:function(C,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(o){c(o)}}function i(r){try{s(u.throw(r))}catch(o){c(o)}}function s(r){var o;r.done?f(r.value):(o=r.value,o instanceof p?o:new p(function(l){l(o)})).then(a,i)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(s){return function(r){return function(o){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&o[0]?u.return:o[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,o[1])).done)return f;switch(u=0,f&&(o=[2&o[0],f.value]),o[0]){case 0:case 1:f=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,u=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||o[0]!==6&&o[0]!==2)){a=0;continue}if(o[0]===3&&(!f||o[1]>f[0]&&o[1]<f[3])){a.label=o[1];break}if(o[0]===6&&a.label<f[1]){a.label=f[1],f=o;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(o);break}f[2]&&a.ops.pop(),a.trys.pop();continue}o=w.call(g,a)}catch(l){o=[6,l],u=0}finally{p=f=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchJson=void 0,A.fetchJson=function(g,w){return w===void 0&&(w=fetch),h(this,void 0,void 0,function(){var p;return m(this,function(u){switch(u.label){case 0:return[4,w(g)];case 1:return(p=u.sent()).ok?[4,p.json()]:[2,void 0];case 2:return[2,u.sent()]}})})}},5252:function(C,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(c[i]=a[i])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPoi=void 0;var w=h(7372),p=function(u){function f(c,a,i){a===void 0&&(a=[0,0]),i===void 0&&(i=0);var s=u.call(this,c)||this;return s._winPos=a,s._depth=i,s.dispose(s.winPosAndDepthChanged.disposableOn(function(){s.needRedraw(),s.needPickRedraw()})),s}return g(f,u),Object.defineProperty(f.prototype,"winPos",{get:function(){return this._winPos},set:function(c){this._winPos[0]===c[0]&&this._winPos[1]===c[1]||(this._winPos[0]=c[0],this._winPos[1]=c[1],this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"depth",{get:function(){return this._depth},set:function(c){this._depth!==c&&(this._depth=c,this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"winPosAndDepthChanged",{get:function(){return this._winPosAndDepthChanged||(this._winPosAndDepthChanged=new w.Event),this._winPosAndDepthChanged},enumerable:!1,configurable:!0}),f}(h(2277).CanvasPrimitive);A.CanvasPoi=p},5260:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPointPoi=void 0;var p=h(8106),u=h(7372),f=h(5252),c=h(4499),a=function(i){function s(r){var o=i.call(this,r)||this;o._width=16,o._text="",o._fillStyle="#0F0",o._scale=1,o.dispose(o.scaleChanged.disposableOn(function(_){o.needRedraw(),o.needPickRedraw()}));var l=o.disposeVar(new p.Transition(100)),d=o.disposeVar(new p.Transition(100)),B=function(){o._clickEvent&&!o._clickEvent.empty&&(o.scale=(1+.1*d.current)*(1+.2*l.current))};return o.dispose(d.currentChanged.disposableOn(B)),o.dispose(l.currentChanged.disposableOn(B)),o.dispose(o.activedChanged.disposableOn(function(_){d.target=_?1:0,o.needRedraw()})),o.dispose(o.hoveredChanged.disposableOn(function(_){l.target=_?1:0,o.needRedraw()})),o.dispose(o.selectedChanged.disposableOn(function(_){o.needRedraw()})),o}return g(s,i),Object.defineProperty(s.prototype,"scale",{get:function(){return this._scale},set:function(r){this._scale!==r&&(this._scale=r,this._scaleChanged&&this._scaleChanged.emit(r,this))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleChanged",{get:function(){return this._scaleChanged||(this._scaleChanged=new u.Event),this._scaleChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"width",{get:function(){return this._width},set:function(r){this._width!==r&&(this._width=r,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._text},set:function(r){this._text!==r&&(this._text=r,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(r){this._fillStyle!==r&&(this._fillStyle=r,this.needRedraw())},enumerable:!1,configurable:!0}),s.prototype.draw=function(r){if(this._show){var o=w(this._winPos,2),l=o[0],d=o[1],B=r.globalAlpha;r.globalAlpha=this.opacity;var _=this._width*this._scale;this.selected&&(0,c.drawPoint)(r,l,d+3,_+3,"#F00"),this.actived&&this._clickEvent&&!this._clickEvent.empty&&(0,c.drawPoint)(r,l,d+5,_+5,"#FFF"),this.hovered?(0,c.drawPoint)(r,l,d+3,_+3,"#000A"):(0,c.drawPoint)(r,l,d+1,_+1,"#000A"),(0,c.drawPoint)(r,l,d,_,this._fillStyle);var b=this._scale>1.2?"bold 14px Arial":"bold 10px Arial";(0,c.drawText)(r,l,d-_,this._text,b,"#000"),r.globalAlpha=B}},s.prototype.drawForPick=function(r,o){if(this._show){var l=w(this._winPos,2),d=l[0],B=l[1],_=this._width*this._scale,b=o("default");(0,c.drawPoint)(r,d,B,_,b)}},s}(f.CanvasPoi);A.CanvasPointPoi=a},5281:function(C,A,h){var m=this&&this.__awaiter||function(p,u,f,c){return new(f||(f=Promise))(function(a,i){function s(l){try{o(c.next(l))}catch(d){i(d)}}function r(l){try{o(c.throw(l))}catch(d){i(d)}}function o(l){var d;l.done?a(l.value):(d=l.value,d instanceof f?d:new f(function(B){B(d)})).then(s,r)}o((c=c.apply(p,u||[])).next())})},g=this&&this.__generator||function(p,u){var f,c,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(o){return function(l){return function(d){if(f)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(s=0)),s;)try{if(f=1,c&&(a=2&d[0]?c.return:d[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,d[1])).done)return a;switch(c=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,c=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=u.call(p,s)}catch(B){d=[6,B],c=0}finally{f=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.loadGifFrames=void 0;var w=h(9704);A.loadGifFrames=function(p){return m(this,void 0,void 0,function(){var u,f,c;return g(this,function(a){switch(a.label){case 0:return[4,fetch(p)];case 1:return[4,a.sent().arrayBuffer()];case 2:return u=a.sent(),f=(0,w.parseGIF)(u),c=(0,w.decompressFrames)(f,!0),[2,{gif:f,gifFrames:c,arrayBuffer:u}]}})})}},5486:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defined=void 0,A.defined=function(h){return h!=null}},5505:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.every=void 0;var m=h(6301);A.every=function(g,w){return!(0,m.forEachWithBreak)(g,function(p,u){return!w(p,u)})}},5544:function(C,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(c[i]=a[i])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.IntervalDeprecated=void 0;var w=h(3207),p=function(u){function f(c,a){a===void 0&&(a=!0);var i=u.call(this,function(s){var r=s.progressFunc;return s.completeFunc,s.errorFunc,i._intervalFunc=r,i._intervalID&&console.error("this._intervalID should be undefined!"),i.leading&&r(),i._intervalID=setInterval(r,i.intervalTime),function(){if(!i._intervalID)throw console.error("this._intervalID should not be undefined!"),new Error("this._intervalID should not be undefined!");clearInterval(i._intervalID),i._intervalID=void 0}})||this;return i.intervalTime=c,i.leading=a,i.dispose(i.intervalTimeChanged.disposableOn(function(){i._intervalID&&i._intervalFunc&&(clearInterval(i._intervalID),i._intervalID=setInterval(i._intervalFunc,i.intervalTime))})),i}return g(f,u),f}(h(6891).ProcessingDeprecated);A.IntervalDeprecated=p,(0,w.defineReactiveProp)(p,"leading",!0),(0,w.defineReactiveProp)(p,"intervalTime",500)},5582:function(C,A,h){var m=this&&this.__awaiter||function(c,a,i,s){return new(i||(i=Promise))(function(r,o){function l(_){try{B(s.next(_))}catch(b){o(b)}}function d(_){try{B(s.throw(_))}catch(b){o(b)}}function B(_){var b;_.done?r(_.value):(b=_.value,b instanceof i?b:new i(function(E){E(b)})).then(l,d)}B((s=s.apply(c,a||[])).next())})},g=this&&this.__generator||function(c,a){var i,s,r,o,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(B){return function(_){return function(b){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,b[0]&&(l=0)),l;)try{if(i=1,s&&(r=2&b[0]?s.return:b[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,b[1])).done)return r;switch(s=0,r&&(b=[2&b[0],r.value]),b[0]){case 0:case 1:r=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,s=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||b[0]!==6&&b[0]!==2)){l=0;continue}if(b[0]===3&&(!r||b[1]>r[0]&&b[1]<r[3])){l.label=b[1];break}if(b[0]===6&&l.label<r[1]){l.label=r[1],r=b;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(b);break}r[2]&&l.ops.pop(),l.trys.pop();continue}b=a.call(c,l)}catch(E){b=[6,E],s=0}finally{i=r=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([B,_])}}},w=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l},p=this&&this.__spreadArray||function(c,a,i){if(i||arguments.length===2)for(var s,r=0,o=a.length;r<o;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.step=void 0;var u=h(5819),f=h(9374);A.step=function(c,a){for(var i=this,s=[],r=2;r<arguments.length;r++)s[r-2]=arguments[r];return c.promise((0,u.pairToPromise)(f.getPromiseFromProcessing.apply(void 0,p([(0,u.createProcessingFromAsyncFunc)(function(o){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];return m(i,void 0,void 0,function(){return g(this,function(B){switch(B.label){case 0:return c.disposer.dispose(function(){o.isDestroyed()||o.cancel()}),[4,a.apply(void 0,p([o],w(l),!1))];case 1:return[2,B.sent()]}})})})],w(s),!1))))}},5590:function(C,A,h){this&&this.__read,this&&this.__spreadArray,Object.defineProperty(A,"__esModule",{value:!0}),A.Kriging=void 0;var m=h(1662);function g(E,F){return E.resize(8*F),new Float64Array(E.arrayBuffer,0,F)}function w(E,F,S){var U=S;if(U.length!==F*F)throw new Error("Z.length !== n * n");U.fill(0);for(var T=0;T<F;T++)U[T*F+T]=E;return U}function p(E,F,S,U,T){var Q,P,I=T;if(I.length!==S*U)throw new Error("Z.length !== n * m");for(Q=0;Q<S;Q++)for(P=0;P<U;P++)I[Q*U+P]=E[Q*U+P]+F[Q*U+P];return I}function u(E,F,S,U,T,Q){var P,I,M,K=Q;if(K.length!==S*T)throw new Error("Z.length !== n * p");for(P=0;P<S;P++)for(I=0;I<T;I++)for(K[P*T+I]=0,M=0;M<U;M++)K[P*T+I]+=E[P*U+M]*F[M*T+I];return K}var f=new m.ScalableBuffer;function c(E,F){var S,U,T,Q=g(f,F);for(S=0;S<F;S++)Q[S]=E[S*F+S];for(S=0;S<F;S++){for(U=0;U<S;U++)Q[S]-=E[S*F+U]*E[S*F+U];if(Q[S]<=0)return!1;for(Q[S]=Math.sqrt(Q[S]),U=S+1;U<F;U++){for(T=0;T<S;T++)E[U*F+S]-=E[U*F+T]*E[S*F+T];E[U*F+S]/=Q[S]}}for(S=0;S<F;S++)E[S*F+S]=Q[S];return!0}function a(E,F){var S,U,T,Q;for(S=0;S<F;S++)for(E[S*F+S]=1/E[S*F+S],U=S+1;U<F;U++){for(Q=0,T=S;T<U;T++)Q-=E[U*F+T]*E[T*F+S];E[U*F+S]=Q/E[U*F+U]}for(S=0;S<F;S++)for(U=S+1;U<F;U++)E[S*F+U]=0;for(S=0;S<F;S++){for(E[S*F+S]*=E[S*F+S],T=S+1;T<F;T++)E[S*F+S]+=E[T*F+S]*E[T*F+S];for(U=S+1;U<F;U++)for(T=U;T<F;T++)E[S*F+U]+=E[T*F+S]*E[T*F+U]}for(S=0;S<F;S++)for(U=0;U<S;U++)E[S*F+U]=E[U*F+S]}var i=new m.ScalableBuffer,s=new m.ScalableBuffer,r=new m.ScalableBuffer,o=new m.ScalableBuffer;function l(E,F){var S,U,T,Q,P,I,M,K,W,L=F,O=g(i,F*F),H=g(s,F),k=g(r,F),G=g(o,F),R=0,D=0;for(S=0;S<F;S++)for(U=0;U<F;U++)O[S*F+U]=S==U?1:0;for(U=0;U<F;U++)G[U]=0;for(S=0;S<F;S++){for(I=0,U=0;U<F;U++)if(G[U]!=1)for(T=0;T<F;T++)G[T]==0&&Math.abs(E[U*F+T])>=I&&(I=Math.abs(E[U*F+T]),D=U,R=T);if(++G[R],D!=R){for(Q=0;Q<F;Q++)W=E[D*F+Q],E[D*F+Q]=E[R*F+Q],E[R*F+Q]=W;for(Q=0;Q<L;Q++)W=O[D*F+Q],O[D*F+Q]=O[R*F+Q],O[R*F+Q]=W}if(k[S]=D,H[S]=R,E[R*F+R]==0)return!1;for(K=1/E[R*F+R],E[R*F+R]=1,Q=0;Q<F;Q++)E[R*F+Q]*=K;for(Q=0;Q<L;Q++)O[R*F+Q]*=K;for(P=0;P<F;P++)if(P!=R){for(M=E[P*F+R],E[P*F+R]=0,Q=0;Q<F;Q++)E[P*F+Q]-=E[R*F+Q]*M;for(Q=0;Q<L;Q++)O[P*F+Q]-=O[R*F+Q]*M}}for(Q=F-1;Q>=0;Q--)if(k[Q]!=H[Q])for(T=0;T<F;T++)W=E[T*F+k[Q]],E[T*F+k[Q]]=E[T*F+H[Q]],E[T*F+H[Q]]=W;return!0}function d(E,F,S,U,T){return F+(U-F)/S*(1-Math.exp(-1/T*Math.pow(E/S,2)))}function B(E,F,S,U,T){return F+(U-F)/S*(1-Math.exp(-1/T*(E/S)))}function _(E,F,S,U,T){return E>S?F+(U-F)/S:F+(U-F)/S*(E/S*1.5-.5*Math.pow(E/S,3))}function b(E,F){var S=E[0]-F[0],U=E[1]-F[1],T=E[2]-F[2];return Math.sqrt(S*S+U*U+T*T)}(function(E){var F=new m.ScalableBuffer,S=new m.ScalableBuffer,U=new m.ScalableBuffer,T=new m.ScalableBuffer,Q=new m.ScalableBuffer,P=new m.ScalableBuffer,I=new m.ScalableBuffer,M=new m.ScalableBuffer,K=new m.ScalableBuffer,W=new m.ScalableBuffer,L=new m.ScalableBuffer,O=new m.ScalableBuffer,H=new m.ScalableBuffer,k=[];E.train=function(D,N,Y,$,q,oe,ae,me){var we;switch(q){case"gaussian":we=d;break;case"exponential":we=B;break;case"spherical":we=_}var ne,se,ye,Ee,ue={t:D,x:N,y:Y,z:$,nugget:0,range:0,sill:0,A:1/3,n:0,model:we},ie=D.length,Oe=k;for(Oe.length=(ie*ie-ie)/2,ne=0,ye=0;ne<ie;ne++)for(se=0;se<ne;se++,ye++)Oe[ye]=Oe[ye]||[0,0],Oe[ye][0]=b([N[ne],Y[ne],$[ne]],[N[se],Y[se],$[se]]),Oe[ye][1]=Math.abs(D[ne]-D[se]);Oe.sort(function(_s,DA){return _s[0]-DA[0]}),ue.range=Oe[(ie*ie-ie)/2-1][0];var rt=(ie*ie-ie)/2>30?30:(ie*ie-ie)/2,HA=ue.range/rt,Ke=g(O,rt);Ke.fill(0);var he=g(H,rt);if(he.fill(0),rt<30)for(Ee=0;Ee<rt;Ee++)Ke[Ee]=Oe[Ee][0],he[Ee]=Oe[Ee][1];else{for(ne=0,se=0,ye=0,Ee=0;ne<rt&&se<(ie*ie-ie)/2;ne++,ye=0){for(;Oe[se][0]<=(ne+1)*HA&&(Ke[Ee]+=Oe[se][0],he[Ee]+=Oe[se][1],ye++,!(++se>=(ie*ie-ie)/2)););ye>0&&(Ke[Ee]/=ye,he[Ee]/=ye,Ee++)}if(Ee<2)return ue}ie=Ee,ue.range=Ke[ie-1]-Ke[0];var Bt=g(F,2*ie);Bt.fill(1);var Xn=g(S,ie),Yn=ue.A;for(ne=0;ne<ie;ne++){switch(q){case"gaussian":Bt[2*ne+1]=1-Math.exp(-1/Yn*Math.pow(Ke[ne]/ue.range,2));break;case"exponential":Bt[2*ne+1]=1-Math.exp(-1/Yn*Ke[ne]/ue.range);break;case"spherical":Bt[2*ne+1]=Ke[ne]/ue.range*1.5-.5*Math.pow(Ke[ne]/ue.range,3)}Xn[ne]=he[ne]}var $n=function(_s,DA,Dy,Hy){var kA,KA,Es=Hy;if(Es.length!==2*DA)throw new Error("Z.length !== m * n");for(kA=0;kA<DA;kA++)for(KA=0;KA<2;KA++)Es[KA*DA+kA]=_s[2*kA+KA];return Es}(Bt,ie,0,g(U,2*ie)),Ct=u($n,Bt,2,ie,2,g(T,4)),Lu=(Ct=p(Ct,w(1/ae,2,g(I,4)),2,2,g(Q,4))).slice(0);c(Ct,2)?a(Ct,2):(l(Lu,2),Ct=Lu);var Ru=u(u(Ct,$n,2,2,ie,g(K,2*ie)),Xn,2,ie,1,g(M,2));ue.nugget=Ru[0],ue.sill=Ru[1]*ue.range+ue.nugget,ue.n=N.length,ie=N.length;var LA=g(P,ie*ie);for(ne=0;ne<ie;ne++){for(se=0;se<ne;se++)LA[ne*ie+se]=ue.model(Math.pow(Math.pow(N[ne]-N[se],2)+Math.pow(Y[ne]-Y[se],2),.5),ue.nugget,ue.range,ue.sill,ue.A),LA[se*ie+ne]=LA[ne*ie+se];LA[ne*ie+ne]=ue.model(0,ue.nugget,ue.range,ue.sill,ue.A)}var RA=p(LA,w(oe,ie,g(L,ie*ie)),ie,ie,g(W,ie*ie)),Du=RA.slice(0);if(c(RA,ie)?a(RA,ie):(l(Du,ie),RA=Du),me.length!==ie)throw new Error("mResult.length !== n");return ue.M=u(RA,D,ie,ie,1,me),ue};var G=new m.ScalableBuffer,R=new m.ScalableBuffer;E.predict=function(D,N,Y,$){var q,oe=g(G,$.n);for(q=0;q<$.n;q++){var ae=b([D,N,Y],[$.x[q],$.y[q],$.z[q]]);oe[q]=$.model(ae,$.nugget,$.range,$.sill,$.A)}if(!$.M)throw new Error("!variogram.M");return u(oe,$.M,1,$.n,1,g(R,1))[0]}})(A.Kriging||(A.Kriging={}))},5600:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getExtProp=A.setExtProp=void 0;var h=new WeakMap;A.setExtProp=function(m,g,w){h.has(m)||h.set(m,{}),h.get(m)[g]=w},A.getExtProp=function(m,g){if(h.has(m))return h.get(m)[g]}},5675:function(C,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,i=0,s=f.length;i<s;i++)!a&&i in f||(a||(a=Array.prototype.slice.call(f,0,i)),a[i]=f[i]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.createProcessing=void 0;var w=h(6891),p=h(8196);A.createProcessing=function(u){return new w.ProcessingDeprecated(function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];var i=new p.ProcessingStarter(f);return u.apply(void 0,g([i],m(c),!1)).then(i.complete.bind(i)).catch(i.error.bind(i)),i.cancel.bind(i)})}},5726:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5675),A),g(h(6891),A),g(h(8196),A),g(h(8055),A),g(h(8995),A),g(h(2601),A)},5745:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.scalableBufferPool=A.ScalableBuffer=void 0;var m=h(3009),g=h(1085);h(3428);var w=function(){function p(){this._arrayBuffer=new ArrayBuffer(1024)}return Object.defineProperty(p.prototype,"byteLength",{get:function(){return this._arrayBuffer.byteLength},enumerable:!1,configurable:!0}),p.prototype.resize=function(u){if(this._arrayBuffer.byteLength<u){var f=(0,m.nextPow2)(u);this._arrayBuffer=ArrayBuffer.transfer(this._arrayBuffer,f)}},Object.defineProperty(p.prototype,"arrayBuffer",{get:function(){return this._arrayBuffer},enumerable:!1,configurable:!0}),p}();A.ScalableBuffer=w,A.scalableBufferPool=new g.ObjPool(function(){return new w})},5774:function(C,A,h){var m=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,i){if(i||arguments.length===2)for(var s,r=0,o=a.length;r<o;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerPipe=void 0;var w=h(4471),p=h(2452);function u(c,a){return(a=a??new p.SmartListenerHandler)._reset(c,c._cid),a}var f=function(){function c(){}return Object.defineProperty(c.prototype,"_pipe",{get:function(){var a;return this.__pipe=(a=this.__pipe)!==null&&a!==void 0?a:new w.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),c.prototype.do=function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return(a=this._pipe).do.apply(a,g([],m(i),!1))},c.prototype.isHandlerValid=function(a){return!!a.valid&&this._pipe.isHandlerValid(a._listenerHandler)},c.prototype.moveAfter=function(a,i){if(!a.valid||!i.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(a._listenerHandler,i._listenerHandler)},c.prototype.moveBefore=function(a,i){if(!a.valid||!i.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(a._listenerHandler,i._listenerHandler)},c.prototype.insertBefore=function(a,i,s,r,o){if(r===void 0&&(r=!1),!a.valid)throw new Error("handler is not valid!");return u(this._pipe.insertBefore(a._listenerHandler,i,s,r),o)},c.prototype.insertAfter=function(a,i,s,r,o){if(r===void 0&&(r=!1),!a.valid)throw new Error("handler is not valid!");return u(this._pipe.insertAfter(a._listenerHandler,i,s,r),o)},c.prototype.remove=function(a){if(!a.valid)throw new Error("handler is not valid!");return this._pipe.remove(a._listenerHandler)},c.prototype.removeAll=function(){return this._pipe.removeAll()},c.prototype.push=function(a,i,s,r){return s===void 0&&(s=!1),u(this._pipe.push(a,i,s),r)},c.prototype.pop=function(){return this._pipe.pop()},c.prototype.shift=function(){return this._pipe.shift()},c.prototype.unshift=function(a,i,s,r){return s===void 0&&(s=!1),u(this._pipe.unshift(a,i,s),r)},c.prototype.getTail=function(a){var i=this._pipe.tail;return i?u(i,a):void 0},c.prototype.getHead=function(a){var i=this._pipe.head;return i?u(i,a):void 0},c}();A.SmartListenerPipe=f},5785:function(C,A,h){var m,g=this&&this.__extends||(m=function(o,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,B){d.__proto__=B}||function(d,B){for(var _ in B)Object.prototype.hasOwnProperty.call(B,_)&&(d[_]=B[_])},m(o,l)},function(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=o}m(o,l),o.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),w=this&&this.__read||function(o,l){var d=typeof Symbol=="function"&&o[Symbol.iterator];if(!d)return o;var B,_,b=d.call(o),E=[];try{for(;(l===void 0||l-- >0)&&!(B=b.next()).done;)E.push(B.value)}catch(F){_={error:F}}finally{try{B&&!B.done&&(d=b.return)&&d.call(b)}finally{if(_)throw _.error}}return E},p=this&&this.__spreadArray||function(o,l,d){if(d||arguments.length===2)for(var B,_=0,b=l.length;_<b;_++)!B&&_ in l||(B||(B=Array.prototype.slice.call(l,0,_)),B[_]=l[_]);return o.concat(B||Array.prototype.slice.call(l))};Object.defineProperty(A,"__esModule",{value:!0}),A.createNextAnimateFrameWeakEvent=A.NextAnimateFrameWeakEvent=A.createNextAnimateFrameEvent=A.NextAnimateFrameEvent=A.createNextMicroTaskWeakEvent=A.NextMicroTaskWeakEvent=A.createNextMicroTaskEvent=A.NextMicroTaskEvent=void 0;var u=h(4899),f=h(6558),c=function(o){function l(d,B){for(var _=[],b=2;b<arguments.length;b++)_[b-2]=arguments[b];var E=o.call(this)||this;return E._nextFunc=d,E.dispose(function(){E._cancellFunc&&(E._cancellFunc(),E._cancellFunc=void 0)}),_.forEach(function(F){return E.dispose(F[B?"dwon":"don"](function(){E.next()}))}),E}return g(l,o),l.prototype.next=function(){var d=this;this._cancellFunc||(this._cancellFunc=this._nextFunc(function(){return d._cancellFunc=void 0,d.emit()}))},l.prototype.flush=function(){this._cancellFunc&&(this._cancellFunc(),this._cancellFunc=void 0,this.emit())},l}(u.Event),a=function(o){function l(){for(var d=[],B=0;B<arguments.length;B++)d[B]=arguments[B];return o.apply(this,p([f.nextMicroTask,!1],w(d),!1))||this}return g(l,o),l}(c);A.NextMicroTaskEvent=a,A.createNextMicroTaskEvent=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(a.bind.apply(a,p([void 0],w(o),!1)))};var i=function(o){function l(){for(var d=[],B=0;B<arguments.length;B++)d[B]=arguments[B];return o.apply(this,p([f.nextMicroTask,!0],w(d),!1))||this}return g(l,o),l}(c);A.NextMicroTaskWeakEvent=i,A.createNextMicroTaskWeakEvent=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(a.bind.apply(a,p([void 0],w(o),!1)))};var s=function(o){function l(){for(var d=[],B=0;B<arguments.length;B++)d[B]=arguments[B];return o.apply(this,p([f.nextAnimateFrame,!1],w(d),!1))||this}return g(l,o),l}(c);A.NextAnimateFrameEvent=s,A.createNextAnimateFrameEvent=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(s.bind.apply(s,p([void 0],w(o),!1)))};var r=function(o){function l(){for(var d=[],B=0;B<arguments.length;B++)d[B]=arguments[B];return o.apply(this,p([f.nextAnimateFrame,!0],w(d),!1))||this}return g(l,o),l}(c);A.NextAnimateFrameWeakEvent=r,A.createNextAnimateFrameWeakEvent=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(r.bind.apply(r,p([void 0],w(o),!1)))}},5819:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9651),A),g(h(921),A),g(h(1148),A),g(h(1101),A),g(h(4206),A)},5873:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Ray=void 0;var m,g=h(9898);(m=A.Ray||(A.Ray={})).getOrigin=function(w,p){return g.Vector.set(p,w[0],w[1],w[2])},m.getDirection=function(w,p){return g.Vector.set(p,w[3],w[4],w[5])}},5925:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.GifProcessing=void 0;var w=h(7029),p=h(7372),u=h(8106),f=function(c){function a(i,s){var r=c.call(this)||this;return r._complexImage=i,r._imageUri=s,r._gif=r.disposeVar(new w.Gif),r._update=r.disposeVar((0,u.createAnimateFrameWithStartValues)(function(){return r.update()})),r._updateStart=r._update.start(),r._gif.url=r._imageUri,r}return g(a,c),Object.defineProperty(a.prototype,"gif",{get:function(){return this._gif},enumerable:!1,configurable:!0}),a.prototype.update=function(){var i=this,s=this._gif.player;if(s.gifFrames){var r,o=this._complexImage,l=s.gifCanvas,d=l.width,B=l.height;o.size=[d,B],o.pixelFormat="RGBA",o.copyTexture({source:s.gifCanvas}),(r=function(){s.autoPlayOnLoad=i._complexImage.autoplay})(),this.dispose(this._complexImage.autoplayChanged.disposableOn(r)),(r=function(){s.loop=i._complexImage.loop})(),this.dispose(this._complexImage.loopChanged.disposableOn(r))}},a}(p.Destroyable);A.GifProcessing=f},5985:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Vector3=void 0;var m,g=h(2731),w=h(9898);(m=A.Vector3||(A.Vector3={})).cross=function(p,u,f){var c=p[0],a=p[1],i=p[2],s=u[0],r=u[1],o=u[2],l=a*o-i*r,d=i*s-c*o,B=c*r-a*s;return w.Vector.set(f,l,d,B)},m.getOrthogonalityVector=function(p,u,f,c){if(!w.Vector.isNormalized(p))throw new Error("!Vector.isNormalized(constVector)");if(!(f=w.Vector.isNormalized(u)?w.Vector.clone(u,f):w.Vector.normalize(u,f)))throw new Error("vectorToFix is [0, 0, 0]!");return f=m.cross(p,f,f),w.Vector.normalize(f,f),c&&w.Vector.clone(f,c),m.cross(f,p,f),w.Vector.normalize(f,f)},m.UNIT_X=Object.freeze([1,0,0]),m.UNIT_Y=Object.freeze([0,1,0]),m.UNIT_Z=Object.freeze([0,0,1]),m.ZERO=Object.freeze([0,0,0]),m.ONE=Object.freeze([1,1,1]),m.SCRATCH0=(0,g.createNumbers)(3),m.SCRATCH1=(0,g.createNumbers)(3),m.SCRATCH2=(0,g.createNumbers)(3),m.SCRATCH3=(0,g.createNumbers)(3),m.SCRATCH4=(0,g.createNumbers)(3),m.SCRATCH5=(0,g.createNumbers)(3),m.SCRATCH6=(0,g.createNumbers)(3),m.SCRATCH7=(0,g.createNumbers)(3),m.SCRATCH8=(0,g.createNumbers)(3),m.SCRATCH9=(0,g.createNumbers)(3)},5986:function(C,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r},g=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.extendClassProps=void 0;var w=h(3915);function p(u,f,c,a){var i=u;if(!i[f]){var s=a(),r=Object.fromEntries(Object.entries(s).filter(function(o){var l=m(o,2),d=l[0],B=l[1],_=d in Object.getPrototypeOf(c);if(_){var b=B instanceof w.ReactiveVariable?B.value:B;u[d]=b}return!_}).map(function(o){var l=m(o,2),d=l[0],B=l[1];return B instanceof w.ReactiveVariable?[d,B]:[d,Array.isArray(B)?(0,w.reactArrayWithUndefined)(B):(0,w.react)(B)]}));i[f]=r}return i[f]}A.extendClassProps=function(u,f){var c,a,i,s=Symbol("".concat((i=u==null?void 0:u.constructor)===null||i===void 0?void 0:i.name,"-createDefaultProps"));u.constructor.__xbsj_dpSymbol=s,u.constructor.__xbsj_createDefaultProps=f;var r=function(_,b){var E;if(!Reflect.has(u,_)){var F=function(S){var U,T;if(!S[s]){for(var Q=[],P=Object.getPrototypeOf(S);P;)Q.push(P),P=Object.getPrototypeOf(P);Q.reverse();try{for(var I=g(Q),M=I.next();!M.done;M=I.next()){var K=M.value,W=K.constructor.__xbsj_dpSymbol;if(W){var L=K.constructor.__xbsj_createDefaultProps;L&&p(S,W,K,L)}}}catch(O){U={error:O}}finally{try{M&&!M.done&&(T=I.return)&&T.call(I)}finally{if(U)throw U.error}}}};Object.defineProperties(u,((E={})[_]={get:function(){return F(this),p(this,s,u,f)[_].value},set:function(S){F(this);var U=p(this,s,u,f)[_];U||console.error("!propObj"),U.value=S}},E["".concat(_,"Changed")]={get:function(){return F(this),p(this,s,u,f)[_].changed}},E["".concat(_,"React")]={get:function(){return F(this),p(this,s,u,f)[_]}},E))}};try{for(var o=g(Object.entries(f())),l=o.next();!l.done;l=o.next()){var d=m(l.value,2),B=d[0];d[1],r(B)}}catch(_){c={error:_}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(c)throw c.error}}}},6021:function(C,A,h){var m=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B};Object.defineProperty(A,"__esModule",{value:!0}),A._continuousMultiply=A._multiplyByPoint=A._affineMultiplyByPoint=A._multiplyByPointAsVector=A._multiplyByVector=A._multiplyByScale=A._multiplyByUniformScale=A._multiplyByTranslation=A._multiplyByMatrix3=A._multiplyTransformation=A._multiply=void 0;var g=h(2731),w=h(9898);function p(i,s,r){var o=i[0],l=i[1],d=i[2],B=i[3],_=i[4],b=i[5],E=i[6],F=i[7],S=i[8],U=i[9],T=i[10],Q=i[11],P=i[12],I=i[13],M=i[14],K=i[15],W=s[0],L=s[1],O=s[2],H=s[3],k=s[4],G=s[5],R=s[6],D=s[7],N=s[8],Y=s[9],$=s[10],q=s[11],oe=s[12],ae=s[13],me=s[14],we=s[15],ne=o*W+_*L+S*O+P*H,se=l*W+b*L+U*O+I*H,ye=d*W+E*L+T*O+M*H,Ee=B*W+F*L+Q*O+K*H,ue=o*k+_*G+S*R+P*D,ie=l*k+b*G+U*R+I*D,Oe=d*k+E*G+T*R+M*D,rt=B*k+F*G+Q*R+K*D,HA=o*N+_*Y+S*$+P*q,Ke=l*N+b*Y+U*$+I*q,he=d*N+E*Y+T*$+M*q,Bt=B*N+F*Y+Q*$+K*q,Xn=o*oe+_*ae+S*me+P*we,Yn=l*oe+b*ae+U*me+I*we,$n=d*oe+E*ae+T*me+M*we,Ct=B*oe+F*ae+Q*me+K*we;return(r=r||(0,g.createNumbers)(16))[0]=ne,r[1]=se,r[2]=ye,r[3]=Ee,r[4]=ue,r[5]=ie,r[6]=Oe,r[7]=rt,r[8]=HA,r[9]=Ke,r[10]=he,r[11]=Bt,r[12]=Xn,r[13]=Yn,r[14]=$n,r[15]=Ct,r}A._multiply=p,A._multiplyTransformation=function(i,s,r){var o=i[0],l=i[1],d=i[2],B=i[4],_=i[5],b=i[6],E=i[8],F=i[9],S=i[10],U=i[12],T=i[13],Q=i[14],P=s[0],I=s[1],M=s[2],K=s[4],W=s[5],L=s[6],O=s[8],H=s[9],k=s[10],G=s[12],R=s[13],D=s[14],N=o*P+B*I+E*M,Y=l*P+_*I+F*M,$=d*P+b*I+S*M,q=o*K+B*W+E*L,oe=l*K+_*W+F*L,ae=d*K+b*W+S*L,me=o*O+B*H+E*k,we=l*O+_*H+F*k,ne=d*O+b*H+S*k,se=o*G+B*R+E*D+U,ye=l*G+_*R+F*D+T,Ee=d*G+b*R+S*D+Q;return(r=r||(0,g.createNumbers)(16))[0]=N,r[1]=Y,r[2]=$,r[3]=0,r[4]=q,r[5]=oe,r[6]=ae,r[7]=0,r[8]=me,r[9]=we,r[10]=ne,r[11]=0,r[12]=se,r[13]=ye,r[14]=Ee,r[15]=1,r},A._multiplyByMatrix3=function(i,s,r){var o=i[0],l=i[1],d=i[2],B=i[4],_=i[5],b=i[6],E=i[8],F=i[9],S=i[10],U=s[0],T=s[1],Q=s[2],P=s[3],I=s[4],M=s[5],K=s[6],W=s[7],L=s[8],O=o*U+B*T+E*Q,H=l*U+_*T+F*Q,k=d*U+b*T+S*Q,G=o*P+B*I+E*M,R=l*P+_*I+F*M,D=d*P+b*I+S*M,N=o*K+B*W+E*L,Y=l*K+_*W+F*L,$=d*K+b*W+S*L;return(r=r||(0,g.createNumbers)(16))[0]=O,r[1]=H,r[2]=k,r[3]=0,r[4]=G,r[5]=R,r[6]=D,r[7]=0,r[8]=N,r[9]=Y,r[10]=$,r[11]=0,r[12]=i[12],r[13]=i[13],r[14]=i[14],r[15]=i[15],r},A._multiplyByTranslation=function(i,s,r){var o=s[0],l=s[1],d=s[2],B=o*i[0]+l*i[4]+d*i[8]+i[12],_=o*i[1]+l*i[5]+d*i[9]+i[13],b=o*i[2]+l*i[6]+d*i[10]+i[14];return(r=r||(0,g.createNumbers)(16))[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r[6]=i[6],r[7]=i[7],r[8]=i[8],r[9]=i[9],r[10]=i[10],r[11]=i[11],r[12]=B,r[13]=_,r[14]=b,r[15]=i[15],r};var u=(0,g.createNumbers)(3);function f(i,s,r){if(i[15]!==1)throw new Error("_multiplyByScale error: it should be affine matrix!");var o=s[0],l=s[1],d=s[2];return r=r||(0,g.createNumbers)(16),o===1&&l===1&&d===1?i!==r?w.Vector.clone(i,r):i:(r[0]=o*i[0],r[1]=o*i[1],r[2]=o*i[2],r[3]=0,r[4]=l*i[4],r[5]=l*i[5],r[6]=l*i[6],r[7]=0,r[8]=d*i[8],r[9]=d*i[9],r[10]=d*i[10],r[11]=0,r[12]=i[12],r[13]=i[13],r[14]=i[14],r[15]=1,r)}function c(i,s,r){var o=s[0],l=s[1],d=s[2],B=s[3],_=i[0]*o+i[4]*l+i[8]*d+i[12]*B,b=i[1]*o+i[5]*l+i[9]*d+i[13]*B,E=i[2]*o+i[6]*l+i[10]*d+i[14]*B,F=i[3]*o+i[7]*l+i[11]*d+i[15]*B;return(r=r||(0,g.createNumbers)(4))[0]=_,r[1]=b,r[2]=E,r[3]=F,r}A._multiplyByUniformScale=function(i,s,r){return u[0]=s,u[1]=s,u[2]=s,f(i,u,r)},A._multiplyByScale=f,A._multiplyByVector=c,A._multiplyByPointAsVector=function(i,s,r){var o=s[0],l=s[1],d=s[2],B=i[0]*o+i[4]*l+i[8]*d,_=i[1]*o+i[5]*l+i[9]*d,b=i[2]*o+i[6]*l+i[10]*d;return(r=r||(0,g.createNumbers)(3))[0]=B,r[1]=_,r[2]=b,r},A._affineMultiplyByPoint=function(i,s,r){if(i[15]!==1)throw new Error("matrix[15] !== 1");var o=s[0],l=s[1],d=s[2],B=i[0]*o+i[4]*l+i[8]*d+i[12],_=i[1]*o+i[5]*l+i[9]*d+i[13],b=i[2]*o+i[6]*l+i[10]*d+i[14];return(r=r||(0,g.createNumbers)(3))[0]=B,r[1]=_,r[2]=b,r};var a=(0,g.createNumbers)(4);A._multiplyByPoint=function(i,s,r){w.Vector.set(a,s[0],s[1],s[2],1),c(i,a,a),r=r||(0,g.createNumbers)(3);var o=m(w.Vector.itr(a),4),l=o[0],d=o[1],B=o[2],_=o[3];return w.Vector.set(r,l/_,d/_,B/_),r},A._continuousMultiply=function(i,s){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var l=r.length;i!==s&&w.Vector.clone(s,i);for(var d=0;d<l;++d)Array.isArray(r[d])&&typeof r[d][0]=="function"?(0,r[d][0])(i,r[d][1],i):r[d].length===16&&p(i,r[d],i);return i}},6138:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.reduce=void 0;var m=h(8144);A.reduce=function(g,w,p){for(var u=(0,m.getIterator)(g),f=p,c=0;;){var a=u.next(),i=a.done,s=a.value;if(i)break;f=w(f,s,c++)}return f}},6148:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B},p=this&&this.__spreadArray||function(i,s,r){if(r||arguments.length===2)for(var o,l=0,d=s.length;l<d;l++)!o&&l in s||(o||(o=Array.prototype.slice.call(s,0,l)),o[l]=s[l]);return i.concat(o||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.DebouncingWithStartValues=A.Debouncing=void 0;var u=h(1662),f=h(1148),c=function(i){function s(){var r=i.call(this,function(o,l,d){var B=o.errorFunc;try{var _=w((0,u.debounce)(l,d),2),b=_[0],E=_[1];return r._doFunc=b,E}catch(F){return B(F),function(){}}})||this;return r}return g(s,i),s.prototype.do=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.Debouncing=c;var a=function(i){function s(r,o){var l=i.call(this,function(d){var B=d.errorFunc;try{var _=w((0,u.debounce)(r,o),2),b=_[0],E=_[1];return l._doFunc=b,E}catch(F){return B(F),function(){}}})||this;return l}return g(s,i),s.prototype.do=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.DebouncingWithStartValues=a},6172:function(C,A,h){var m=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},g=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.OrientedBoundingBox=void 0;var w=h(2731),p=h(9898),u=h(7215),f=h(312),c=h(4915);(function(a){function i(b,E){return E=E||(0,w.createNumbers)(3),p.Vector.set(E,b[0],b[1],b[2]),E}function s(b,E){E=E||(0,w.createNumbers)(9);var F=b;return p.Vector.set(E,F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10],F[11]),E}a.getCenter=i,a.getHalfAxes=s,a.setCenter=function(b,E){for(var F=0;F<3;++F)b[F]=E[F];return b},a.setHalfAxes=function(b,E){for(var F=0;F<9;++F)b[F+3]=E[F];return b};var r=(0,w.createNumbers)(3),o=(0,w.createNumbers)(9);a.getModelMatrix=function(b,E){var F=s(b,o),S=i(b,r);return p.Vector.set(E,F[0],F[1],F[2],0,F[3],F[4],F[5],0,F[6],F[7],F[8],0,S[0],S[1],S[2],1)};var l=(0,w.createNumbers)(3),d=(0,w.createNumbers)(3),B=(0,w.createNumbers)(9);a.intersectPlane=function(b,E){var F=i(b,l),S=u.Plane.getNormal(E,d),U=u.Plane.getDistance(E),T=s(b,B),Q=S[0],P=S[1],I=S[2],M=Math.abs(Q*T[0]+P*T[1]+I*T[2])+Math.abs(Q*T[3]+P*T[4]+I*T[5])+Math.abs(Q*T[6]+P*T[7]+I*T[8]),K=p.Vector.dot(S,F)+U;return K<=-M?f.Intersect.OUTSIDE:K>=M?f.Intersect.INSIDE:f.Intersect.INTERSECTING};var _=(0,w.createNumbers)(3);a.getBoundingSphere=function(b,E){E=E||(0,w.createNumbers)(4);var F=s(b,B),S=c.Matrix3.getScale(F,_),U=Math.max.apply(Math,g([],m(p.Vector.itr(S)),!1));return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=U,E}})(A.OrientedBoundingBox||(A.OrientedBoundingBox={}))},6270:function(C,A,h){var m=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,i){if(i||arguments.length===2)for(var s,r=0,o=a.length;r<o;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorStops=void 0;var w=h(3281),p=h(7372),u=[0,0,0,0],f=function(){function c(){this._value=[],this._valueStr="[]",this.value=[{ratio:0,rgba:[0,0,1,1]},{ratio:.2,rgba:[0,1,0,1]},{ratio:.8,rgba:[1,1,0,1]},{ratio:1,rgba:[1,0,0,1]}]}return Object.defineProperty(c.prototype,"valueChanged",{get:function(){return this._valueChanged||(this._valueChanged=new p.Event),this._valueChanged},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){return JSON.parse(JSON.stringify(this._value))},set:function(a){if(a.length!==0){var i;if(this._value.length===a.length){var s=g([],m(a),!1).sort(function(o,l){return o.ratio-l.ratio});if(i=JSON.stringify(s),this._valueStr===i)return}i=i||JSON.stringify(g([],m(a),!1).sort(function(o,l){return o.ratio-l.ratio}));var r=this._value;if(this._value=JSON.parse(i),this._value.length===0)throw console.error("this._colorStops.length === 0"),new Error("this._colorStops.length === 0");this._valueChanged&&this._valueChanged.emit(this._value,r)}else console.error("value.length === 0")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"valueStr",{get:function(){return this._valueStr},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"minRatio",{get:function(){return this._value[0].ratio},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"maxRatio",{get:function(){return this._value[this._value.length-1].ratio},enumerable:!1,configurable:!0}),c.prototype._getRatioIndex=function(a){if(a<this._value[0].ratio||a>this._value[this._value.length-1].ratio)throw console.error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio"),new Error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio");for(var i=this._value.length,s=0;s<i-1;++s)if(a>=this._value[s].ratio&&a<=this._value[s+1].ratio)return s;throw console.error("shoud not be here!"),new Error("shoud not be here!")},c.prototype.getRatioColor=function(a,i){a=(0,w.clamp)(a,this.minRatio,this.maxRatio);for(var s=this._getRatioIndex(a),r=this._value[s],o=this._value[s+1],l=(a-r.ratio)/(o.ratio-r.ratio),d=0;d<4;++d)i[d]=r.rgba[d]*(1-l)+o.rgba[d]*l;if(!i.some(Number.isNaN))return i;console.error("result NaN")},c.prototype.getColorsInUint8=function(a){if(a.length%4!=0)throw console.error("result.length % 4 !== 0"),new Error("result.length % 4 !== 0");for(var i=a.length/4,s=1/i,r=0;r<i;++r){var o=u;this.getRatioColor((r+.5)*s,o)||o.splice(0,4,0,0,0,0);for(var l=0;l<4;++l)a[4*r+l]=255*o[l]|0}return a},c}();A.ColorStops=f},6301:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.forEachWithBreak=void 0;var m=h(8144);A.forEachWithBreak=function(g,w){for(var p=!1,u=(0,m.getIterator)(g),f=-1;;){var c=u.next(),a=c.done,i=c.value;if(a)break;if(w(i,++f)){p=!0;break}}return p}},6356:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(2429),A),g(h(3639),A),g(h(6613),A),g(h(6270),A),g(h(2127),A),g(h(4621),A),g(h(8106),A),g(h(6405),A),g(h(5819),A),g(h(1148),A),g(h(2220),A),g(h(3815),A),g(h(2243),A),g(h(8576),A),g(h(8453),A),g(h(4990),A),g(h(172),A),g(h(2075),A),g(h(7529),A),g(h(1412),A),g(h(8997),A),g(h(8421),A),g(h(2789),A),g(h(985),A),g(h(9412),A),g(h(7029),A)},6362:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.min=A.max=void 0;var m=h(6138);A.max=function(g){return(0,m.reduce)(g,function(w,p){return w>p?w:p},Number.NEGATIVE_INFINITY)},A.min=function(g){return(0,m.reduce)(g,function(w,p){return w<p?w:p},Number.POSITIVE_INFINITY)}},6405:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(109),A),g(h(2921),A),g(h(5544),A),g(h(2002),A),g(h(2811),A),g(h(6946),A),g(h(643),A)},6424:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.vertexArrayToBezierSpline3Positions=void 0;var m=h(8466),g=(0,m.computBezierSpline3BaseFactors)(20);A.vertexArrayToBezierSpline3Positions=function(w,p,u,f){var c,a,i=w.length;if(i<=1)return w.map(function(T){return T.position});for(var s=f===20?g:(0,m.computBezierSpline3BaseFactors)(f),r=u?i:i-1,o=new Array(r*f+1),l=0;l<r;++l){var d=w[l],B=w[l+1===i?0:l+1],_=d.position,b=(c=d.rightPosition)!==null&&c!==void 0?c:d.position,E=(a=B.leftPosition)!==null&&a!==void 0?a:B.position,F=B.position,S=l*f;o[S]=_;for(var U=1;U<f;++U)o[S+U]=(0,m.bezierSpline3WithBaseFactor)(s[U],p,_,b,E,F)}return o[r*f]=w[u?0:i-1].position,o}},6432:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.isBase64Uri=A.isAbsoluteUri=void 0,A.isAbsoluteUri=function(h){return h.startsWith("http:")||h.startsWith("https:")},A.isBase64Uri=function(h){return h.startsWith("data:")}},6469:function(C,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(o){c(o)}}function i(r){try{s(u.throw(r))}catch(o){c(o)}}function s(r){var o;r.done?f(r.value):(o=r.value,o instanceof p?o:new p(function(l){l(o)})).then(a,i)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(s){return function(r){return function(o){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&o[0]?u.return:o[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,o[1])).done)return f;switch(u=0,f&&(o=[2&o[0],f.value]),o[0]){case 0:case 1:f=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,u=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||o[0]!==6&&o[0]!==2)){a=0;continue}if(o[0]===3&&(!f||o[1]>f[0]&&o[1]<f[3])){a.label=o[1];break}if(o[0]===6&&a.label<f[1]){a.label=f[1],f=o;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(o);break}f[2]&&a.ops.pop(),a.trys.pop();continue}o=w.call(g,a)}catch(l){o=[6,l],u=0}finally{p=f=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchImage=void 0,A.fetchImage=function(g,w){return w===void 0&&(w=""),h(this,void 0,void 0,function(){return m(this,function(p){return[2,new Promise(function(u,f){var c=new Image;c.crossOrigin=w,c.src=g,c.onload=function(){return u(c)},c.onerror=function(a){return f(a)}})]})})}},6555:function(C,A,h){var m,g=this&&this.__extends||(m=function(p,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,c){f.__proto__=c}||function(f,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(f[a]=c[a])},m(p,u)},function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function f(){this.constructor=p}m(p,u),p.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)});Object.defineProperty(A,"__esModule",{value:!0}),A.HasOwner=void 0;var w=function(p){function u(f){var c=p.call(this)||this;return c._owner=f,c}return g(u,p),Object.defineProperty(u.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),u}(h(9359).Destroyable);A.HasOwner=w},6558:function(C,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(i){f={error:i}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.nextMicroTask=A.nextAnimateFrame=A.animateFrame=A.timeout=A.interval=void 0,A.interval=function(g,w){for(var p=[],u=2;u<arguments.length;u++)p[u-2]=arguments[u];var f=setInterval.apply(void 0,m([g,w],h(p),!1));return function(){return clearInterval(f)}},A.timeout=function(g,w){for(var p=[],u=2;u<arguments.length;u++)p[u-2]=arguments[u];var f=setTimeout.apply(void 0,m([g,w],h(p),!1));return function(){return clearTimeout(f)}},A.animateFrame=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];var f=function(){var c=performance.now();g.apply(void 0,m([c],h(p),!1)),w=requestAnimationFrame(f)};return f(),function(){return w!==void 0&&(cancelAnimationFrame(w),w=void 0)}},A.nextAnimateFrame=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];return w=requestAnimationFrame(function(){var f=performance.now();g.apply(void 0,m([f],h(p),!1))}),function(){return w!==void 0&&(cancelAnimationFrame(w),w=void 0)}},A.nextMicroTask=function(g){for(var w=[],p=1;p<arguments.length;p++)w[p-1]=arguments[p];var u,f=!1;return new Promise(function(c,a){u=a,c()}).then(function(){!f&&g.apply(void 0,m([],h(w),!1))}).catch(function(c){console.error(c)}),function(){return(f=!0)&&u&&(u("nextMicroTask cancelled!"),u=void 0)}}},6583:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.oneTimeWarning=void 0;var h=new Set;A.oneTimeWarning=function(m,g){g===void 0&&(g=m),h.has(g)||(h.add(g),console.warn(m))}},6613:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},6655:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getPaddingByteLength=void 0,A.getPaddingByteLength=function(h,m){return m!==1&&m!==2&&m!==4&&m!==8&&console.warn("getPaddingByteLength boundaryByteLength(".concat(m,") is not 2^")),(m-h%m)%m}},6680:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._fromDirectionUpRightAndTranslation=A._fromMatrix3AndTranslation=A._fromTranslation=void 0;var m=h(2731),g=h(9898),w=h(5985);A._fromTranslation=function(p,u){return(u=u||(0,m.createNumbers)(16))[0]=1,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=1,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=1,u[11]=0,u[12]=p[0],u[13]=p[1],u[14]=p[2],u[15]=1,u},A._fromMatrix3AndTranslation=function(p,u,f){return u=u||w.Vector3.ZERO,(f=f||(0,m.createNumbers)(16))[0]=p[0],f[1]=p[1],f[2]=p[2],f[3]=0,f[4]=p[3],f[5]=p[4],f[6]=p[5],f[7]=0,f[8]=p[6],f[9]=p[7],f[10]=p[8],f[11]=0,f[12]=u[0],f[13]=u[1],f[14]=u[2],f[15]=1,f},A._fromDirectionUpRightAndTranslation=function(p,u,f,c,a){var i=c??w.Vector3.ZERO;return g.Vector.set(a,f[0],f[1],f[2],0,u[0],u[1],u[2],0,-p[0],-p[1],-p[2],0,i[0],i[1],i[2],1)}},6888:function(C,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var i,s,r=a.call(f),o=[];try{for(;(c===void 0||c-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return o},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var i,s=0,r=c.length;s<r;s++)!i&&s in c||(i||(i=Array.prototype.slice.call(c,0,s)),i[s]=c[s]);return f.concat(i||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.createAnimateFrameWithStartValues=A.createAnimateFrame=A.createIntervalWithStartValues=A.createInterval=A.createTimeoutWithStartValues=A.createTimeout=A.createNextMicroTaskWithStartValues=A.createNextMicroTask=A.createNextAnimateFrameWithStartValues=A.createNextAnimateFrame=void 0;var w=h(1662),p=h(5819);function u(f,c){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];try{return c.apply(void 0,g([],m(a),!1))}catch(s){f(s)}}A.createNextAnimateFrame=function(){return new p.Processing(function(f,c){var a=f.completeFunc,i=f.errorFunc;return(0,w.nextAnimateFrame)(function(){return u(i,function(){c&&c(),a()})})})},A.createNextAnimateFrameWithStartValues=function(f){return new p.Processing(function(c){var a=c.completeFunc,i=c.errorFunc;return(0,w.nextAnimateFrame)(function(){return u(i,function(){f&&f(),a()})})})},A.createNextMicroTask=function(){return new p.Processing(function(f,c){var a=f.completeFunc,i=f.errorFunc;return(0,w.nextMicroTask)(function(){u(i,function(){c&&c(),a()})})})},A.createNextMicroTaskWithStartValues=function(f){return new p.Processing(function(c){var a=c.completeFunc,i=c.errorFunc;return(0,w.nextMicroTask)(function(){u(i,function(){f&&f(),a()})})})},A.createTimeout=function(){return new p.Processing(function(f,c,a){var i=f.completeFunc,s=f.errorFunc;return(0,w.timeout)(function(){u(s,function(){c&&c(),i()})},a??1e3)})},A.createTimeoutWithStartValues=function(f,c){return new p.Processing(function(a){var i=a.completeFunc,s=a.errorFunc;return(0,w.timeout)(function(){u(s,function(){f&&f(),i()})},c??1e3)})},A.createInterval=function(){return new p.Processing(function(f,c,a){var i=f.errorFunc;return a===void 0&&(a=1e3),(0,w.interval)(function(){return u(i,c)},a)})},A.createIntervalWithStartValues=function(f,c){return c===void 0&&(c=1e3),new p.Processing(function(a){var i=a.errorFunc;return(0,w.interval)(function(){return u(i,f)},c)})},A.createAnimateFrame=function(){return new p.Processing(function(f,c){var a=f.errorFunc;return(0,w.animateFrame)(function(i){return u(a,c,i)})})},A.createAnimateFrameWithStartValues=function(f){return new p.Processing(function(c){var a=c.errorFunc;return(0,w.animateFrame)(function(i){return u(a,f,i)})})}},6891:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},p=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.ProcessingDeprecated=void 0;var u=h(7372),f=h(7372),c=function(a){function i(s,r,o,l,d,B,_,b){var E=a.call(this)||this;return E._startProcessingFunc=s,E.startFunc=r,E.progressFunc=o,E.completeFunc=l,E.cancelFunc=d,E.cancelledFunc=B,E.errorFunc=_,E.finishedFunc=b,E._processingID=-1,E._status="Initial",E.dispose(function(){var F;return(F=E._statusChangedEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._startEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._progressEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._completeEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._cancelEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._cancelledEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._errorEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._finishedEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){return E.reset()}),E}return g(i,a),Object.defineProperty(i.prototype,"startEvent",{get:function(){return this._startEvent=this._startEvent||new f.Event,this._startEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"progressEvent",{get:function(){return this._progressEvent=this._progressEvent||new f.Event,this._progressEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"completeEvent",{get:function(){return this._completeEvent=this._completeEvent||new f.Event,this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cancelEvent",{get:function(){return this._cancelEvent=this._cancelEvent||new f.Event,this._cancelEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cancelledEvent",{get:function(){return this._cancelledEvent=this._cancelledEvent||new f.Event,this._cancelledEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"errorEvent",{get:function(){return this._errorEvent=this._errorEvent||new f.Event,this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"finishedEvent",{get:function(){return this._finishedEvent=this._finishedEvent||new f.Event,this._finishedEvent},enumerable:!1,configurable:!0}),i.prototype._completeFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this._status="Completed",this.completeFunc&&this.completeFunc(r),this._completeEvent&&this._completeEvent.emit(r),this.finishedFunc&&this.finishedFunc({status:"Completed",value:r}),this._finishedEvent&&this._finishedEvent.emit({status:"Completed",value:r}))},i.prototype._cancelFunc=function(s){this._status==="Running"&&(this._status="Cancelling",this.cancelFunc&&this.cancelFunc(s),this._cancelEvent&&this._cancelEvent.emit(s))},i.prototype._cancelledFunc=function(s){this._status==="Cancelling"&&(this._status="Cancelled",this.cancelledFunc&&this.cancelledFunc(s),this._cancelledEvent&&this._cancelledEvent.emit(s),this.finishedFunc&&this.finishedFunc({status:"Cancelled",cancelError:s}),this._finishedEvent&&this._finishedEvent.emit({status:"Cancelled",cancelError:s}))},i.prototype._errorFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this._status="Error",this.errorFunc&&this.errorFunc(r),this._errorEvent&&this._errorEvent.emit(r),this.finishedFunc&&this.finishedFunc({status:"Error",error:r}),this._finishedEvent&&this._finishedEvent.emit({status:"Error",error:r}))},i.prototype._progressFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this.progressFunc&&this.progressFunc(r),this._progressEvent&&this._progressEvent.emit(r))},i.prototype._startFunc=function(){for(var s,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(this._status==="Initial"){this._status="Running";var l=++this._processingID,d={completeFunc:this._completeFunc.bind(this,l),errorFunc:this._errorFunc.bind(this,l),progressFunc:this._progressFunc.bind(this,l),cancelFunc:this._cancel.bind(this,l),processingID:l},B=this._startProcessingFunc.apply(this,p([d],w(r),!1));return this._forceCancelFunc=B,this.startFunc&&this.startFunc.apply(this,p([],w(r),!1)),this._startEvent&&(s=this._startEvent).emit.apply(s,p([],w(r),!1)),l}return console.warn("this._status !== 'Initial' but start again!"),-1},Object.defineProperty(i.prototype,"_status",{get:function(){return this.__status},set:function(s){if(this.__status!==s){var r=this.__status;this.__status=s,this._statusChangedEvent&&this._statusChangedEvent.emit(s,r)}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"processingID",{get:function(){return this._processingID},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"statusChangedEvent",{get:function(){return this._statusChangedEvent||(this._statusChangedEvent=new f.Event),this._statusChangedEvent},enumerable:!1,configurable:!0}),i.prototype.reset=function(s){this._status==="Running"&&this.cancel(s),this._status==="Cancelled"||this._status==="Error"||this._status==="Completed"?this._status="Initial":this._status==="Cancelling"&&console.warn("Cannot reset! (this._status === 'Cancelling')")},Object.defineProperty(i.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),i.prototype.cancel=function(s,r){return r===void 0&&(r=this.processingID),this._cancel(r,s)},i.prototype._cancel=function(s,r){var o=this;if(this.processingID===s)if(this._status==="Running"){if(!this._forceCancelFunc)throw new Error("this._forceCancelFunc is undefined!");this._cancelFunc(r);var l=this._forceCancelFunc(r);if(this._forceCancelFunc=void 0,l&&l instanceof Promise)return l.then(function(){o._cancelledFunc(r)});this._cancelledFunc(r)}else console.warn("this._status !== 'Running' but cancel")},i.prototype.start=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];try{return this._startFunc.apply(this,p([],w(s),!1))}catch(o){console.error("processing start error: ".concat(o))}},i.prototype.restart=function(s){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];try{return this.isRunning&&this.cancel(s),this.isFinished&&this.reset(s),this.isInitial?this._startFunc.apply(this,p([],w(r),!1)):(console.warn("restart failed!"),-1)}catch(l){console.error("processing restart error: ".concat(l))}},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCancelled",{get:function(){return this._status==="Cancelled"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCancelling",{get:function(){return this._status==="Cancelling"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFinished",{get:function(){return this.isCancelled||this.isCompleted||this.isError},enumerable:!1,configurable:!0}),i}(u.Destroyable);A.ProcessingDeprecated=c},6928:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(7521),A),g(h(5252),A),g(h(5260),A),g(h(2277),A),g(h(9181),A),g(h(4499),A),g(h(1023),A)},6946:function(C,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(A,"__esModule",{value:!0}),A.TransitionDeprecated=void 0;var w=h(7372),p=h(7372),u=h(2811),f=function(c){function a(i){var s=c.call(this)||this;return s._duration=i,s._target=0,s._current=0,s._start=0,s._timing=new u.TimingDeprecated(Number.POSITIVE_INFINITY),s._timing.progressFunc=function(r){var o=r.ratio;o=o<0?0:o>1?1:o;var l=s._start*(1-o)+s._target*o;s._current=l,s._currentChanged&&s._currentChanged.emit(s._target,s._current)},s.dispose(function(){s._timing.isRunning&&s._timing.cancel(),s._timing.destroy()}),s}return g(a,c),a.prototype.reset=function(i,s){s===void 0&&(s=i),this._timing.isRunning&&this._timing.cancel(),this._target=i,this._current=s,this._start=i},Object.defineProperty(a.prototype,"target",{get:function(){return this._target},set:function(i){if(this._target!==i){this._target=i,this._timing.isRunning&&this._timing.cancel(),this._timing.reset(),this._start=this._current;var s=Math.abs(this._target-this._start);this._timing.duration=s*this._duration,this._timing.start()}},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"currentChanged",{get:function(){return this._currentChanged||(this._currentChanged=new p.Event),this._currentChanged},enumerable:!1,configurable:!0}),a}(w.Destroyable);A.TransitionDeprecated=f},7008:(C,A,h)=>{function m(B,_){var b=(65535&B)+(65535&_);return(B>>16)+(_>>16)+(b>>16)<<16|65535&b}function g(B,_,b,E,F,S){return m((U=m(m(_,B),m(E,S)))<<(T=F)|U>>>32-T,b);var U,T}function w(B,_,b,E,F,S,U){return g(_&b|~_&E,B,_,F,S,U)}function p(B,_,b,E,F,S,U){return g(_&E|b&~E,B,_,F,S,U)}function u(B,_,b,E,F,S,U){return g(_^b^E,B,_,F,S,U)}function f(B,_,b,E,F,S,U){return g(b^(_|~E),B,_,F,S,U)}function c(B,_){var b,E,F,S,U;B[_>>5]|=128<<_%32,B[14+(_+64>>>9<<4)]=_;var T=1732584193,Q=-271733879,P=-1732584194,I=271733878;for(b=0;b<B.length;b+=16)E=T,F=Q,S=P,U=I,T=w(T,Q,P,I,B[b],7,-680876936),I=w(I,T,Q,P,B[b+1],12,-389564586),P=w(P,I,T,Q,B[b+2],17,606105819),Q=w(Q,P,I,T,B[b+3],22,-1044525330),T=w(T,Q,P,I,B[b+4],7,-176418897),I=w(I,T,Q,P,B[b+5],12,1200080426),P=w(P,I,T,Q,B[b+6],17,-1473231341),Q=w(Q,P,I,T,B[b+7],22,-45705983),T=w(T,Q,P,I,B[b+8],7,1770035416),I=w(I,T,Q,P,B[b+9],12,-1958414417),P=w(P,I,T,Q,B[b+10],17,-42063),Q=w(Q,P,I,T,B[b+11],22,-1990404162),T=w(T,Q,P,I,B[b+12],7,1804603682),I=w(I,T,Q,P,B[b+13],12,-40341101),P=w(P,I,T,Q,B[b+14],17,-1502002290),T=p(T,Q=w(Q,P,I,T,B[b+15],22,1236535329),P,I,B[b+1],5,-165796510),I=p(I,T,Q,P,B[b+6],9,-1069501632),P=p(P,I,T,Q,B[b+11],14,643717713),Q=p(Q,P,I,T,B[b],20,-373897302),T=p(T,Q,P,I,B[b+5],5,-701558691),I=p(I,T,Q,P,B[b+10],9,38016083),P=p(P,I,T,Q,B[b+15],14,-660478335),Q=p(Q,P,I,T,B[b+4],20,-405537848),T=p(T,Q,P,I,B[b+9],5,568446438),I=p(I,T,Q,P,B[b+14],9,-1019803690),P=p(P,I,T,Q,B[b+3],14,-187363961),Q=p(Q,P,I,T,B[b+8],20,1163531501),T=p(T,Q,P,I,B[b+13],5,-1444681467),I=p(I,T,Q,P,B[b+2],9,-51403784),P=p(P,I,T,Q,B[b+7],14,1735328473),T=u(T,Q=p(Q,P,I,T,B[b+12],20,-1926607734),P,I,B[b+5],4,-378558),I=u(I,T,Q,P,B[b+8],11,-2022574463),P=u(P,I,T,Q,B[b+11],16,1839030562),Q=u(Q,P,I,T,B[b+14],23,-35309556),T=u(T,Q,P,I,B[b+1],4,-1530992060),I=u(I,T,Q,P,B[b+4],11,1272893353),P=u(P,I,T,Q,B[b+7],16,-155497632),Q=u(Q,P,I,T,B[b+10],23,-1094730640),T=u(T,Q,P,I,B[b+13],4,681279174),I=u(I,T,Q,P,B[b],11,-358537222),P=u(P,I,T,Q,B[b+3],16,-722521979),Q=u(Q,P,I,T,B[b+6],23,76029189),T=u(T,Q,P,I,B[b+9],4,-640364487),I=u(I,T,Q,P,B[b+12],11,-421815835),P=u(P,I,T,Q,B[b+15],16,530742520),T=f(T,Q=u(Q,P,I,T,B[b+2],23,-995338651),P,I,B[b],6,-198630844),I=f(I,T,Q,P,B[b+7],10,1126891415),P=f(P,I,T,Q,B[b+14],15,-1416354905),Q=f(Q,P,I,T,B[b+5],21,-57434055),T=f(T,Q,P,I,B[b+12],6,1700485571),I=f(I,T,Q,P,B[b+3],10,-1894986606),P=f(P,I,T,Q,B[b+10],15,-1051523),Q=f(Q,P,I,T,B[b+1],21,-2054922799),T=f(T,Q,P,I,B[b+8],6,1873313359),I=f(I,T,Q,P,B[b+15],10,-30611744),P=f(P,I,T,Q,B[b+6],15,-1560198380),Q=f(Q,P,I,T,B[b+13],21,1309151649),T=f(T,Q,P,I,B[b+4],6,-145523070),I=f(I,T,Q,P,B[b+11],10,-1120210379),P=f(P,I,T,Q,B[b+2],15,718787259),Q=f(Q,P,I,T,B[b+9],21,-343485551),T=m(T,E),Q=m(Q,F),P=m(P,S),I=m(I,U);return[T,Q,P,I]}function a(B){var _,b="",E=32*B.length;for(_=0;_<E;_+=8)b+=String.fromCharCode(B[_>>5]>>>_%32&255);return b}function i(B){var _,b=[];for(b[(B.length>>2)-1]=void 0,_=0;_<b.length;_+=1)b[_]=0;var E=8*B.length;for(_=0;_<E;_+=8)b[_>>5]|=(255&B.charCodeAt(_/8))<<_%32;return b}function s(B){var _,b,E="0123456789abcdef",F="";for(b=0;b<B.length;b+=1)_=B.charCodeAt(b),F+=E.charAt(_>>>4&15)+E.charAt(15&_);return F}function r(B){return unescape(encodeURIComponent(B))}function o(B){return function(_){return a(c(i(_),8*_.length))}(r(B))}function l(B,_){return function(b,E){var F,S,U=i(b),T=[],Q=[];for(T[15]=Q[15]=void 0,U.length>16&&(U=c(U,8*b.length)),F=0;F<16;F+=1)T[F]=909522486^U[F],Q[F]=1549556828^U[F];return S=c(T.concat(i(E)),512+8*E.length),a(c(Q.concat(S),640))}(r(B),r(_))}function d(B,_,b){return _?b?l(_,B):s(l(_,B)):b?o(B):s(o(B))}h.r(A),h.d(A,{md5:()=>d})},7014:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__awaiter||function(a,i,s,r){return new(s||(s=Promise))(function(o,l){function d(b){try{_(r.next(b))}catch(E){l(E)}}function B(b){try{_(r.throw(b))}catch(E){l(E)}}function _(b){var E;b.done?o(b.value):(E=b.value,E instanceof s?E:new s(function(F){F(E)})).then(d,B)}_((r=r.apply(a,i||[])).next())})},p=this&&this.__generator||function(a,i){var s,r,o,l,d={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function B(_){return function(b){return function(E){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,E[0]&&(d=0)),d;)try{if(s=1,r&&(o=2&E[0]?r.return:E[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,E[1])).done)return o;switch(r=0,o&&(E=[2&E[0],o.value]),E[0]){case 0:case 1:o=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,r=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(!((o=(o=d.trys).length>0&&o[o.length-1])||E[0]!==6&&E[0]!==2)){d=0;continue}if(E[0]===3&&(!o||E[1]>o[0]&&E[1]<o[3])){d.label=E[1];break}if(E[0]===6&&d.label<o[1]){d.label=o[1],o=E;break}if(o&&d.label<o[2]){d.label=o[2],d.ops.push(E);break}o[2]&&d.ops.pop(),d.trys.pop();continue}E=i.call(a,d)}catch(F){E=[6,F],r=0}finally{s=o=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([_,b])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.ImageProcessing=void 0;var u=h(1662),f=h(5819),c=function(a){function i(s,r){var o=a.call(this)||this;return o._complexImage=s,o._imageUri=r,o._processing=o.disposeVar((0,f.createProcessingFromAsyncFunc)(function(l){return w(o,void 0,void 0,function(){var d,B;return p(this,function(_){switch(_.label){case 0:return d=this._complexImage,[4,l.promise((0,u.fetchImage)(this._imageUri,this._complexImage.crossOrigin))];case 1:return(B=_.sent())?(B instanceof HTMLImageElement&&(d.size=[B.naturalWidth,B.naturalHeight],d.pixelFormat="RGBA",d.copyTexture({source:B})),[2]):[2]}})})})),o._processingStart=o._processing.start(),o}return g(i,a),Object.defineProperty(i.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),i}(u.Destroyable);A.ImageProcessing=c},7029:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5281),A),g(h(7118),A),g(h(9815),A)},7118:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},p=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.GifPlayer=void 0;var u=h(1662);function f(a,i,s){return a<i?i:a>s?s:a}var c=function(a){function i(s,r,o){r===void 0&&(r=!0);var l=a.call(this)||this;l._container=s,l._gifFrames=l.disposeVar((0,u.react)(void 0)),l._gifDurations=[],l._gifDuration=l.disposeVar((0,u.react)(0)),l._gifSize=l.disposeVar((0,u.react)([0,0],function(E,F){return E.every(function(S,U){return S===F[U]})},function(E){return p([],w(E),!1)})),l._autoPlayOnLoad=l.disposeVar((0,u.react)(!0)),l.loop=!0;var d=document.createElement("canvas");l._gifCanvas=d,d.style.width="100%",d.style.height="100%";var B,_=d.getContext("2d");l._container&&l._container.appendChild(d),l.dispose(function(){return l._container&&l._container.removeChild(d)}),l.dispose(l._gifFrames.changed.disposableOn(function(E){if(!E||E.length===0)return d.width=0,void(d.height=0);var F=E[0].dims,S=F.width,U=F.height;l._gifSize.value=[S,U];var T=E.length,Q=0;l._gifDurations.length=0;for(var P=0;P<T;++P)Q+=E[P].delay,l._gifDurations.push(Q);l._gifDuration.value=l._gifDurations[l._gifDurations.length-1],d.width=S,d.height=U,B=_.createImageData(S,U),l.currentTimeChangedEvent.emit(l.currentTime,l.currentTime),l._autoPlayOnLoad.value&&(l.currentTime=0,l.playing=!0)}));var b=-1;return l.dispose(l.currentTimeChangedEvent.disposableOn(function(E){var F=f(E/l.duration,0,1),S=l.gifDuration*F,U=l._gifFrames.value;if(U&&U.length>0){var T=l._getFrame(S);if(T===b)return;b=T;var Q=U[T];if(Q.disposalType!==0&&Q.disposalType!==1&&Q.disposalType!==2&&(0,u.oneTimeWarning)("gif parsed get disposalType ".concat(Q.disposalType,"... frame: ").concat(T," size: ").concat(JSON.stringify(Q.dims)),"gif parsed get disposalType ".concat(Q.disposalType,"...")),!B||T!==0&&Q.disposalType!==2||B.data.fill(0),B){var P=w(l._gifSize.value,2),I=P[0],M=P[1],K=Q.dims,W=K.width,L=K.height,O=K.left,H=K.top;if(L>M)throw new Error("height > canvasHeight");for(var k=0;k<L;++k)for(var G=0;G<W;++G){var R=k*W+G,D=(H+k)*I+(O+G),N=B.data,Y=Q.patch,$=Y[4*R+3]/255;N[4*D+0]=N[4*D+0]*(1-$)+Y[4*R+0]*$|0,N[4*D+1]=N[4*D+1]*(1-$)+Y[4*R+1]*$|0,N[4*D+2]=N[4*D+2]*(1-$)+Y[4*R+2]*$|0,N[4*D+3]=0|f(N[4*D+3]+Y[4*R+3],0,255)}_.putImageData(B,0,0)}}else(0,u.oneTimeWarning)("gif资源未加载!无法播放!")})),l.dispose(l._gifDuration.changed.disposableOn(function(){l.duration=l.gifDuration})),l._autoPlayOnLoad.value=r,l._gifFrames.value=o,l}return g(i,a),Object.defineProperty(i.prototype,"gifCanvas",{get:function(){return this._gifCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"gifFrames",{get:function(){return this._gifFrames.value},set:function(s){this._gifFrames.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"gifFramesChanged",{get:function(){return this._gifFrames.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"gifSize",{get:function(){return this._gifSize.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"gifSizeChanged",{get:function(){return this._gifSize.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"gifDuration",{get:function(){return this._gifDuration.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"gifDurationChanged",{get:function(){return this._gifDuration.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoPlayOnLoad",{get:function(){return this._autoPlayOnLoad.value},set:function(s){this._autoPlayOnLoad.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoPlayOnLoadChanged",{get:function(){return this._autoPlayOnLoad.changed},enumerable:!1,configurable:!0}),i.prototype._getFrame=function(s){for(var r=this._gifDurations.length,o=0;o<r;++o)if(s<=this._gifDurations[o])return o;throw new Error("should not be here")},i}(h(2127).Player);A.GifPlayer=c},7132:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.addClassStyle=void 0,A.addClassStyle=function(h){var m=document.createElement("style");return m.innerText=h,document.head.appendChild(m)}},7215:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Plane=void 0;var m=h(2731),g=h(9898),w=h(5873),p=h(8089);(function(u){var f=(0,m.createNumbers)(3);function c(d,B){g.Vector.set(f,d[0],d[1],d[2]);var _=g.Vector.magnitudeSquared(f);if(Math.abs(_-1)>1e-9)throw new Error("plane必须是单位向量!");return g.Vector.dot(f,B)+d[3]}function a(d,B){return B=B||(0,m.createNumbers)(3),g.Vector.set(B,d[0],d[1],d[2]),B}u.distancePlaneToPoint=c,u.projectPointOntoPlane=function(d,B,_){_=_||(0,m.createNumbers)(3);var b=c(B,d);return g.Vector.set(f,B[0],B[1],B[2]),g.Vector.multiplyByScalar(f,-b,_),g.Vector.add(_,d,_),_},u.getNormal=a,u.getDistance=function(d){return d[3]},u.setNormal=function(d,B){for(var _=0;_<3;++_)d[_]=B[_];return d},u.setDistance=function(d,B){return d[3]=B,d};var i=(0,m.createNumbers)(3),s=(0,m.createNumbers)(3);u.distanceRayToPlane=function(d,B,_){_===void 0&&(_=1e-5);var b=w.Ray.getDirection(d,i),E=a(B,s),F=-g.Vector.dot(b,E);if(!(Math.abs(F)<_))return c(B,w.Ray.getOrigin(d,i))/F};var r=(0,m.createNumbers)(16),o=(0,m.createNumbers)(4),l=(0,m.createNumbers)(3);u.transform=function(d,B,_){_=_||(0,m.createNumbers)(4);var b=p.Matrix4.inverse(p.Matrix4.transpose(B,r),r),E=p.Matrix4.multiplyByVector(b,d,o),F=a(d,l);return g.Vector.multiplyByScalar(E,1/g.Vector.magnitude(F),_),_},u.fromPointNormal=function(d,B,_){if(Math.abs(1-g.Vector.magnitude(B))>1e-6)throw new Error("Math.abs(1 - Vector.magnitude(normal)) > 0.000001");var b=-g.Vector.dot(B,d);return _=_||(0,m.createNumbers)(4),g.Vector.set(_,B[0],B[1],B[2],b)},u.UNIT_X=(0,m.createNumbers)(4,1,0,0,0),u.UNIT_Y=(0,m.createNumbers)(4,0,1,0,0),u.UNIT_Z=(0,m.createNumbers)(4,0,0,1,0)})(A.Plane||(A.Plane={}))},7324:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B};Object.defineProperty(A,"__esModule",{value:!0}),A.getFloatDivPool=A.FloatDiv=void 0;var p=h(7372),u=h(7372),f=h(7372),c=function(i){function s(){var r=i!==null&&i.apply(this,arguments)||this;return r._show=!0,r._opacity=1,r._winPos=[0,0],r}return g(s,i),Object.defineProperty(s.prototype,"winPos",{get:function(){return this._winPos},set:function(r){var o=w(r,2),l=o[0],d=o[1],B=w(this._winPos,2),_=B[0],b=B[1];l===_&&d===b||(this._winPos[0]=l,this._winPos[1]=d,this._winPosChanged&&this._winPosChanged.emit(this._winPos))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"winPosChanged",{get:function(){return this._winPosChanged=this._winPosChanged||new p.Event,this._winPosChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opacity",{get:function(){return this._opacity},set:function(r){this._opacity!==r&&(this._opacity=r,this._opacityChanged&&this._opacityChanged.emit(this._opacity))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new p.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"show",{get:function(){return this._show},set:function(r){this._show!==r&&(this._show=r,this._showChanged&&this._showChanged.emit(this._show))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new p.Event,this._showChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"closeEvent",{get:function(){return this._closeEvent||(this._closeEvent=new p.Event),this._closeEvent},enumerable:!1,configurable:!0}),s}(u.Destroyable);A.FloatDiv=c;var a=new WeakMap;A.getFloatDivPool=function(i){if(!a.has(i)){var s=new f.ObjPool(function(){return new i},function(r){return r.reset()});a.set(i,s)}return a.get(i)}},7372:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerPipe=A.SmartListenerHandler=A.ListenerPipe=A.Event=A.EventListenerHandler=A.DoublyLinkedList=A.react=A.ReactiveVariable=A.ObjPool=A.Destroyable=void 0;var m=h(1662);Object.defineProperty(A,"Destroyable",{enumerable:!0,get:function(){return m.Destroyable}});var g=h(1662);Object.defineProperty(A,"ObjPool",{enumerable:!0,get:function(){return g.ObjPool}});var w=h(1662);Object.defineProperty(A,"ReactiveVariable",{enumerable:!0,get:function(){return w.ReactiveVariable}}),Object.defineProperty(A,"react",{enumerable:!0,get:function(){return w.react}});var p=h(1662);Object.defineProperty(A,"DoublyLinkedList",{enumerable:!0,get:function(){return p.DoublyLinkedList}}),Object.defineProperty(A,"EventListenerHandler",{enumerable:!0,get:function(){return p.EventListenerHandler}}),Object.defineProperty(A,"Event",{enumerable:!0,get:function(){return p.Event}}),Object.defineProperty(A,"ListenerPipe",{enumerable:!0,get:function(){return p.ListenerPipe}}),Object.defineProperty(A,"SmartListenerHandler",{enumerable:!0,get:function(){return p.SmartListenerHandler}}),Object.defineProperty(A,"SmartListenerPipe",{enumerable:!0,get:function(){return p.SmartListenerPipe}})},7413:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ViewMatrix=void 0;var m=h(4915),g=h(8089),w=h(2731),p=h(9549),u=h(9898),f=h(5985),c=(0,w.createNumbers)(3),a=(0,w.createNumbers)(3),i=(0,w.createNumbers)(3);(function(s){function r(I,M,K,W,L){return(L=L||(0,w.createNumbers)(16))[0]=W[0],L[1]=K[0],L[2]=-M[0],L[3]=0,L[4]=W[1],L[5]=K[1],L[6]=-M[1],L[7]=0,L[8]=W[2],L[9]=K[2],L[10]=-M[2],L[11]=0,L[12]=-u.Vector.dot(W,I),L[13]=-u.Vector.dot(K,I),L[14]=u.Vector.dot(M,I),L[15]=1,L}s.computeView=r;var o=(0,w.createNumbers)(3),l=(0,w.createNumbers)(3),d=(0,w.createNumbers)(3);function B(I,M,K){var W=o,L=l,O=d,H=M;return u.Vector.set(W,-H[6],-H[7],-H[8]),u.Vector.set(L,H[3],H[4],H[5]),u.Vector.set(O,H[0],H[1],H[2]),r(I,W,L,O,K)}s.fromRotationMatrix3AndPosition=B;var _=(0,w.createNumbers)(9);s.fromRotationQuatAndPosition=function(I,M,K){return m.Matrix3.fromQuaternion(M,_),B(I,_,K)},s.lookAt=function(I,M,K,W){var L=u.Vector.subtract(M,I,c);if(!u.Vector.normalize(L,L))throw new Error("direction is undefined!");return f.Vector3.getOrthogonalityVector(L,K,i,a),s.computeView(I,L,i,a,W)},s.lookAtWithDirection=function(I,M,K,W){if(Math.abs(u.Vector.magnitudeSquared(M)-1)>1e-5)throw new Error("direction is not normalized!");return f.Vector3.getOrthogonalityVector(M,K,i,a),s.computeView(I,M,i,a,W)},s.getDirection=function(I,M){return u.Vector.set(M,-I[2],-I[6],-I[10])},s.getRight=function(I,M){return u.Vector.set(M,I[0],I[4],I[8])},s.getUp=function(I,M){return u.Vector.set(M,I[1],I[5],I[9])};var b=(0,w.createNumbers)(9);function E(I,M){(M=M||(0,w.createNumbers)(9))[0]=I[0],M[1]=I[4],M[2]=I[8],M[3]=I[1],M[4]=I[5],M[5]=I[9],M[6]=I[2],M[7]=I[6],M[8]=I[10]}s.getRotationQuat=function(I,M){return E(I,b),p.Quaternion.fromRotationMatrix3(b,M)},s.getRotationMatrix=E,s.getEye=function(I,M){var K=I,W=-K[0]*K[12]-K[1]*K[13]-K[2]*K[14],L=-K[4]*K[12]-K[5]*K[13]-K[6]*K[14],O=-K[8]*K[12]-K[9]*K[13]-K[10]*K[14];return u.Vector.set(M,W,L,O)};var F=(0,w.createNumbers)(3);s.distanceFromEye=function(I,M){return-g.Matrix4.affineMultiplyByPoint(I,M,F)[2]},s.ratioScreenToWorldSpace=function(I,M,K){return M[3]*I[5]*.5/K};var S=(0,w.createNumbers)(4),U=(0,w.createNumbers)(3),T=(0,w.createNumbers)(16),Q=(0,w.createNumbers)(16),P=(0,w.createNumbers)(16);s.rotateWithAxis=function(I,M,K,W,L){return L=L||(0,w.createNumbers)(16),g.Matrix4.fromTranslation(M,T),u.Vector.negate(M,U),g.Matrix4.fromTranslation(U,Q),p.Quaternion.fromAxisAngle(K,-W,S),g.Matrix4.fromRotateQuatAndTranslation(S,void 0,P),g.Matrix4.continuousMultiply(L,I,T,P,Q)},s.computeOrthographicOffCenter=function(I,M,K,W,L,O,H){var k=1/(M-I),G=1/(W-K),R=1/(O-L),D=-(M+I)*k,N=-(W+K)*G,Y=-(O+L)*R;return k*=2,G*=2,R*=-2,(H=H||(0,w.createNumbers)(16))[0]=k,H[1]=0,H[2]=0,H[3]=0,H[4]=0,H[5]=G,H[6]=0,H[7]=0,H[8]=0,H[9]=0,H[10]=R,H[11]=0,H[12]=D,H[13]=N,H[14]=Y,H[15]=1,H}})(A.ViewMatrix||(A.ViewMatrix={}))},7418:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getValueFromRatio=A.defaultLerpFunc=void 0;var m=h(8144);A.defaultLerpFunc=function(g,w,p){return g*(1-p)+w*p},A.getValueFromRatio=function(g,w,p,u,f){for(var c,a,i,s,r=(0,m.getIterator)(w);;){var o=r.next(),l=o.done,d=o.value;if(l)break;if(d===void 0)throw new Error("typeof value === 'undefined'");var B=d.ratio,_=d.value;if(c=i,a=s&&u?u(s,f??a):s,i=B,s=_,(c===void 0||g>=c)&&(i===void 0||g<=i)){if(c===void 0)return s&&u?u(s,f):s;if(i===void 0||s===void 0)throw new Error("typeof rightRatio === 'undefined'");return p(a,s,(g-c)/(i-c),f)}s=s&&u?u(s,f):s}if(i===void 0)throw new Error("typeof rightRatio === 'undefined'");if(g>i)return s;throw new Error("!(ratio > rightRatio)")}},7427:(C,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.isCrossOriginUrl=void 0,A.isCrossOriginUrl=function(m){(h=h??document.createElement("a")).href=window.location.href;var g=h.host,w=h.protocol;return h.href=m,h.href=h.href,w!==h.protocol||g!==h.host}},7445:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9986),A),g(h(200),A),g(h(7324),A),g(h(4143),A),g(h(3951),A),g(h(8193),A),g(h(4123),A)},7500:function(C,A,h){var m=this&&this.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var o,l,d=r.call(i),B=[];try{for(;(s===void 0||s-- >0)&&!(o=d.next()).done;)B.push(o.value)}catch(_){l={error:_}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return B},g=this&&this.__spreadArray||function(i,s,r){if(r||arguments.length===2)for(var o,l=0,d=s.length;l<d;l++)!o&&l in s||(o||(o=Array.prototype.slice.call(s,0,l)),o[l]=s[l]);return i.concat(o||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.Vector4=void 0;var w=h(2731),p=h(9898),u=(0,w.createNumbers)(4,1,255,65025,16581375),f=(0,w.createNumbers)(4,1/255,1/255,1/255,0),c=(0,w.createNumbers)(4,1,1/255,1/65025,1/16581375),a=(0,w.createNumbers)(4);(function(i){i.packDepth=function(o,l){if(o<0||o>1)throw new Error("depth < 0 || depth > 1");if(o===1)return p.Vector.set(l,1,0,0,0);l=p.Vector.multiplyByScalar(u,o,l),p.Vector.fract(l,l);var d=p.Vector.set(a,l[1],l[2],l[3],l[3]);return p.Vector.multiply(d,f,d),p.Vector.subtract(l,d,l)},i.unpackDepth=function(o){return p.Vector.dot(o,c)};var s=new Uint32Array(1),r=new Uint8Array(s.buffer);i.uint32ToFourUint8s=function(o,l){if(o>4294967295)throw new Error("uint32Number(".concat(o,") > 0xFFFFFFFF"));return s[0]=o,p.Vector.set.apply(p.Vector,g([l],m(r),!1))},i.fourUint8sToUint32=function(o){return p.Vector.clone(o,r),s[0]},i.ONE=(0,w.createNumbers)(4,1,1,1,1),i.ZERO=(0,w.createNumbers)(4,0,0,0,0)})(A.Vector4||(A.Vector4={}))},7521:function(C,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),w=this&&this.__read||function(s,r){var o=typeof Symbol=="function"&&s[Symbol.iterator];if(!o)return s;var l,d,B=o.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=B.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(o=B.return)&&o.call(B)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasImagePoi=void 0;var p=h(1662),u=h(8106),f=h(5252),c=h(4499);function a(s,r){var o=w(r,3),l=o[0],d=o[1],B=o[2],_="".concat(l,"-").concat(d,"-").concat(B),b=(0,p.getExtProp)(s,_);return b||(b=(0,c.imageToCanvas)(s),(0,c.setCanvasUniformColor)(b,r),(0,p.setExtProp)(s,_,b)),b}var i=function(s){function r(o,l,d,B,_){d===void 0&&(d=[32,32]),B===void 0&&(B=[.5,1,0,0]),_===void 0&&(_="#F00F");var b=s.call(this,o)||this;b._image=l,b._size=d,b._originRatioAndOffset=B,b._defaultColorStr=_,b._tooltip="",b._title="",b.__scale=[1,1],b._tooltipAlpha=0,b._bgColor=[.3,.3,.3,.8],b._bgColorHexStr=(0,c.getColorHexStr)(b._bgColor),b._fgColor=[1,1,1,1],b._fgColorHexStr=(0,c.getColorHexStr)(b._fgColor);var E=new u.Transition(100),F=new u.Transition(100);b.dispose(function(){E.destroy(),F.destroy()});var S=function(){if(b._clickEvent&&!b._clickEvent.empty){var U=(1+.08*F.current)*(1+.08*E.current);b._scale=[U,U],b._tooltipAlpha=E.current}};return b.dispose(b.activedChanged.disposableOn(function(U){F.target=U?1:0,b.needRedraw()})),b.dispose(b.hoveredChanged.disposableOn(function(U){E.target=U?1:0,b.needRedraw()})),b.dispose(b.selectedChanged.disposableOn(function(){b.needRedraw()})),b.dispose(F.currentChanged.disposableOn(S)),b.dispose(E.currentChanged.disposableOn(S)),b}return g(r,s),Object.defineProperty(r.prototype,"size",{get:function(){return this._size},set:function(o){var l=w(o,2),d=l[0],B=l[1],_=w(this._size,2),b=_[0],E=_[1];b===d&&E===B||(this._size[0]=d,this._size[1]=B,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_scale",{get:function(){return this.__scale},set:function(o){var l=w(o,2),d=l[0],B=l[1],_=w(this.__scale,2),b=_[0],E=_[1];b===d&&E===B||(this.__scale[0]=d,this.__scale[1]=B,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fgColor",{get:function(){return this._fgColor},set:function(o){if(!this._fgColor.every(function(E,F){return o[F]===E})){var l=w(o,4),d=l[0],B=l[1],_=l[2],b=l[3];this._fgColor.splice(0,4,d,B,_,b),this._fgColorHexStr=(0,c.getColorHexStr)(this._fgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bgColor",{get:function(){return this._bgColor},set:function(o){if(!this._bgColor.every(function(E,F){return o[F]===E})){var l=w(o,4),d=l[0],B=l[1],_=l[2],b=l[3];this._bgColor.splice(0,4,d,B,_,b),this._bgColorHexStr=(0,c.getColorHexStr)(this._bgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"originRatioAndOffset",{get:function(){return this._originRatioAndOffset},set:function(o){var l=w(this._originRatioAndOffset,4),d=l[0],B=l[1],_=l[2],b=l[3],E=w(o,4),F=E[0],S=E[1],U=E[2],T=E[3];d===F&&B===S&&_===U&&b===T||(this._originRatioAndOffset.splice(0,4,F,S,U,T),this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"image",{get:function(){return this._image},set:function(o){this._image!==o&&(this._image=o,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"defaultColorStr",{get:function(){return this._defaultColorStr},set:function(o){this._defaultColorStr!==o&&(this._defaultColorStr=o,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tooltip",{get:function(){return this._tooltip},set:function(o){this._tooltip!==o&&(this._tooltip=o,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"title",{get:function(){return this._title},set:function(o){this._title!==o&&(this._title=o,this.needRedraw())},enumerable:!1,configurable:!0}),r.prototype.draw=function(o){if(this._show){var l=w(this._winPos,2),d=l[0],B=l[1],_=this._size[0]*this.__scale[0],b=this._size[1]*this.__scale[1],E=(0,c.getDrawRect)([d,B],this._size,this.__scale,this._originRatioAndOffset),F=E.left,S=E.top,U=o.globalAlpha;if(o.globalAlpha=this.opacity,this._image){if(this.selected){var T=a(this._image,[1,0,0]),Q=(0,c.getDrawRect)([d,B+3],[_+6,b+6],[1,1],this._originRatioAndOffset),P=Q.left,I=Q.top;o.drawImage(T,P,I,_+6,b+6)}if(this.actived){var M=w(this._fgColor,4),K=M[0],W=M[1],L=M[2],O=(M[3],T=a(this._image,[K,W,L]),(0,c.getDrawRect)([d,B+4],[_+8,b+8],[1,1],this._originRatioAndOffset)),H=O.left,k=O.top;o.drawImage(T,H,k,_+8,b+8)}if(this.hovered){var G=w(this._bgColor,4),R=(K=G[0],W=G[1],L=G[2],G[3],a(this._image,[K,W,L])),D=(0,c.getDrawRect)([d,B+2],[_+4,b+4],[1,1],this._originRatioAndOffset),N=D.left,Y=D.top;o.drawImage(R,N,Y,_+4,b+4)}o.drawImage(this._image,F,S,_,b)}else o.fillStyle=this._fgColorHexStr,o.fillRect(F,S,_,b);if(this._title!==""&&(0,c.drawTextBlock)(o,d+20,B-16,[0,.5,0,0],this._title,"14px Arial",4,this._fgColorHexStr,this._bgColorHexStr),o.globalAlpha=U,this._hovered&&this._tooltip!==""){var $=o.globalAlpha;o.globalAlpha=this._tooltipAlpha,(0,c.drawTextBlock)(o,d,B-42,[.5,1,0,0],this._tooltip,"12px Arial",4,this._fgColorHexStr,this._bgColorHexStr),o.globalAlpha=$}}},r.prototype.drawForPick=function(o,l){if(this._show){var d=w(this._winPos,2),B=d[0],_=d[1],b=l("default"),E=this._size[0]*this.__scale[0],F=this._size[1]*this.__scale[1],S=(0,c.getDrawRect)([B,_],this._size,this.__scale,this._originRatioAndOffset),U=S.left,T=S.top;o.fillStyle=b,o.fillRect(U,T,E,F)}},r}(f.CanvasPoi);A.CanvasImagePoi=i},7529:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(3526),A),g(h(8368),A),g(h(8614),A),g(h(8301),A),g(h(9082),A),g(h(3315),A),g(h(7720),A)},7665:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ProjectionMatrix=void 0;var m,g,w=h(2731);m=A.ProjectionMatrix||(A.ProjectionMatrix={}),(g=m.Perspective||(m.Perspective={})).compute=function(p,u,f,c,a){if(f<=0||c<=0||p<=0||p>=Math.PI)throw new Error("near <= 0 || far <= 0 || fovY <= 0 || fovY >= Math.PI");var i=1/Math.tan(.5*p),s=i/u,r=(c+f)/(f-c),o=2*c*f/(f-c);return(a=a||(0,w.createNumbers)(16))[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=i,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=r,a[11]=-1,a[12]=0,a[13]=0,a[14]=o,a[15]=0,a},g.getSseDenominator=function(p){return 2/p[5]},g.getPerspectiveParams=function(p){var u=p,f=u[10],c=(f-1)/(f+1),a=u[14]*(c-1)/(-2*c),i=c*a,s=2*a/u[0],r=(s+u[8]*s)/2,o=r-s,l=2*a/u[5],d=(l+u[9]*l)/2;return{n:a,f:i,r,l:o,t:d,b:d-l}},g.resetNearFar=function(p,u,f,c,a,i,s,r){var o=p/s;return{l:f*=o,r:c*=o,b:a*=o,t:i*=o,n:s=p,f:u}},g.getFovAndAspectRatio=function(p,u,f,c,a,i){var s=(p+u)/2,r=(f+c)/2,o=u-s,l=c-r,d=2*Math.atan(o/a),B=2*Math.atan(l/a);return{xOffset:s,yOffset:r,fov:d>B?d:B,hFov:d,vFov:B,aspectRatio:o/l}}},7720:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&a[i],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.UiTreeObject=void 0;var p=h(1662),u={checked:1,unchecked:2,indeterminate:3},f=["checked","unchecked","indeterminate"],c=function(a){function i(s){var r=a.call(this)||this;r._treeItem=s,r._collapsed=r.disposeVar((0,p.react)(!1)),r._checkedStatus=r.disposeVar((0,p.react)("unchecked")),r._selected=r.disposeVar((0,p.react)(!1)),r._moveToPositionMode=r.disposeVar((0,p.react)("none")),r._updateCheckedStatusFromChildrenEvent=r.disposeVar(new p.Event);var o=function(){return r._treeItem.tree&&r._treeItem.tree.itemsChanged.emit([r._treeItem])};r.dispose(r._collapsed.changed.disposableOn(o)),r.dispose(r._checkedStatus.changed.disposableOn(o)),r.dispose(r._selected.changed.disposableOn(o)),r.dispose(r._moveToPositionMode.changed.disposableOn(o)),r.dispose(r._checkedStatus.changed.disposableOn(function(){return r._treeItem.parent&&r._treeItem.parent.uiTreeObject.updateCheckedStatusFromChildren()})),r.dispose(r._treeItem.childrenChangedEvent.disposableOn(function(){r.updateCheckedStatusFromChildren()}));var l=r.disposeVar((0,p.createNextAnimateFrameEvent)(r._updateCheckedStatusFromChildrenEvent));return r.dispose(l.disposableOn(function(){if(r._treeItem.children){var d=0;(0,p.forEachWithBreak)(r._treeItem.children,function(B){return(d|=u[B.uiTreeObject.checkedStatus])==3}),d>0&&(r._checkedStatus.value=f[d-1])}})),r.dispose(r._treeItem.childrenResetedEvent.disposableOn(function(d){d||r.checkedStatus!=="indeterminate"||(r._checkedStatus.value="unchecked")})),r.dispose(r._selected.changed.disposableOn(function(d){var B=r._treeItem.tree;B&&function(_,b,E){if(E===void 0&&(E=!0),b)_.selectedItems.push(r._treeItem);else{var F=_.selectedItems.indexOf(r._treeItem);F===-1?E&&console.error("selectedItems index -1"):_.selectedItems.splice(F,1)}}(B,d)})),r.dispose(function(){return r.selected=!1}),r}return g(i,a),Object.defineProperty(i.prototype,"treeItem",{get:function(){return this._treeItem},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"collapsed",{get:function(){return this._collapsed.value},set:function(s){this._collapsed.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"collapsedChanged",{get:function(){return this._collapsed.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"checkedStatus",{get:function(){return this._checkedStatus.value},enumerable:!1,configurable:!0}),i.prototype.check=function(s){var r,o,l=s?"checked":"unchecked";if(this._checkedStatus.value!==l&&(this._checkedStatus.value=l,this._treeItem.children))try{for(var d=w(this._treeItem.children),B=d.next();!B.done;B=d.next())B.value.uiTreeObject.check(s)}catch(_){r={error:_}}finally{try{B&&!B.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},i.prototype.updateCheckedStatusFromChildren=function(){this._updateCheckedStatusFromChildrenEvent.emit()},Object.defineProperty(i.prototype,"checkedStatusChanged",{get:function(){return this._checkedStatus.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this._selected.value},set:function(s){this._selected.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectedChanged",{get:function(){return this._selected.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"moveToPositionMode",{get:function(){return this._moveToPositionMode.value},set:function(s){this._moveToPositionMode.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"moveToPositionModeChanged",{get:function(){return this._moveToPositionMode.changed},enumerable:!1,configurable:!0}),i}(p.Destroyable);A.UiTreeObject=c},7793:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.createGuid=void 0,A.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var m=16*Math.random()|0;return(h==="x"?m:3&m|8).toString(16)})}},7941:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},7963:function(C,A,h){var m,g=this&&this.__extends||(m=function(B,_){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var F in E)Object.prototype.hasOwnProperty.call(E,F)&&(b[F]=E[F])},m(B,_)},function(B,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=B}m(B,_),B.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(A,"__esModule",{value:!0}),A.ComplexImage=A.getTypeFromImageUri=void 0;var w=h(1662),p=h(1662),u=h(3815),f=h(7014),c=h(9409),a=h(1851),i=h(3096),s=h(5925),r=h(5210),o=h(1291);function l(B){var _=B.substring(B.lastIndexOf(".")+1);return d.suffixTypes[_]}A.getTypeFromImageUri=l;var d=function(B){function _(){var b=B.call(this)||this;return b._enabled=b.disposeVar((0,p.react)(!1)),b._uri=b.disposeVar((0,p.react)("")),b._type=b.disposeVar((0,p.react)(void 0)),b._size=b.disposeVar((0,p.reactArrayWithUndefined)(void 0)),b._pixelFormat=b.disposeVar((0,p.react)("RGBA")),b._flipY=b.disposeVar((0,p.react)(!0)),b._crossOriginReact=b.disposeVar((0,p.react)("")),b._autoplayReact=b.disposeVar((0,p.react)(!0)),b._loopReact=b.disposeVar((0,p.react)(!0)),b._copyTextureEvent=b.disposeVar(new w.Event),b._imageProcessingResettingEvent=b.disposeVar((0,w.createNextAnimateFrameEvent)(b.enabledChanged,b.uriChanged,b.typeChanged)),b._imageProcessingResetting=b.disposeVar(new u.ObjResettingWithEvent(b._imageProcessingResettingEvent,function(){do{if(!b.enabled||!b.uri)break;var E=b.type;if(E||(E=l(b.uri)),!E)break;if(E==="img")return new f.ImageProcessing(b,b.uri);if(E==="video")return new i.VideoProcessing(b,b.uri);if(E==="gif")return new s.GifProcessing(b,b.uri);if(E==="hls")return new r.HlsProcessing(b,b.uri);if(E==="flv")return new o.FlvProcessing(b,b.uri)}while(!1)})),b._createNativeTextureEvent=b.disposeVar((0,w.createNextAnimateFrameEvent)(b.enabledChanged,b.sizeChanged,b.pixelFormatChanged,b.flipYChanged)),b}return g(_,B),Object.defineProperty(_.prototype,"enabled",{get:function(){return this._enabled.value},set:function(b){this._enabled.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"uri",{get:function(){return this._uri.value},set:function(b){this._uri.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"uriChanged",{get:function(){return this._uri.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"type",{get:function(){return this._type.value},set:function(b){this._type.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"typeChanged",{get:function(){return this._type.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"size",{get:function(){return this._size.value},set:function(b){this._size.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"sizeChanged",{get:function(){return this._size.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"pixelFormat",{get:function(){return this._pixelFormat.value},set:function(b){this._pixelFormat.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"pixelFormatChanged",{get:function(){return this._pixelFormat.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"flipY",{get:function(){return this._flipY.value},set:function(b){this._flipY.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"flipYChanged",{get:function(){return this._flipY.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"crossOrigin",{get:function(){return this._crossOriginReact.value},set:function(b){this._crossOriginReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"crossOriginChanged",{get:function(){return this._crossOriginReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"autoplay",{get:function(){return this._autoplayReact.value},set:function(b){this._autoplayReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"autoplayChanged",{get:function(){return this._autoplayReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loop",{get:function(){return this._loopReact.value},set:function(b){this._loopReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loopChanged",{get:function(){return this._loopReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"copyTextureEvent",{get:function(){return this._copyTextureEvent},enumerable:!1,configurable:!0}),_.prototype.copyTexture=function(b){this._createNativeTextureEvent.flush(),this._copyTextureEvent.emit(b)},Object.defineProperty(_.prototype,"imageProcessingResetting",{get:function(){return this._imageProcessingResetting},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"createNativeTextureEvent",{get:function(){return this._createNativeTextureEvent},enumerable:!1,configurable:!0}),_.prototype.copyFromCanvas=function(b){b.width<=0||b.height<=0?console.warn("canvas.width <= 0 || canvas.height <= 0"):(this.size=[b.width,b.height],this.pixelFormat="RGBA",this.copyTexture({source:b}))},_.types=a.complexImageTypes,_.czmPixelFormats=c.czmPixelFormats,_.suffixTypes={png:"img",jpg:"img",svg:"img",webp:"img",gif:"gif",mp4:"video",mov:"video",webm:"video",flv:"flv",m3u8:"hls"},_}(w.Destroyable);A.ComplexImage=d},8042:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._transpose=void 0;var m=h(2731);A._transpose=function(g,w){var p=g[1],u=g[2],f=g[3],c=g[6],a=g[7],i=g[11];return(w=w||(0,m.createNumbers)(16))[0]=g[0],w[1]=g[4],w[2]=g[8],w[3]=g[12],w[4]=p,w[5]=g[5],w[6]=g[9],w[7]=g[13],w[8]=u,w[9]=c,w[10]=g[10],w[11]=g[14],w[12]=f,w[13]=a,w[14]=i,w[15]=g[15],w}},8055:function(C,A){var h,m=this&&this.__extends||(h=function(w,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(u[c]=f[c])},h(w,p)},function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function u(){this.constructor=w}h(w,p),w.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)});Object.defineProperty(A,"__esModule",{value:!0}),A.CancelError=void 0;var g=function(w){function p(){return w!==null&&w.apply(this,arguments)||this}return m(p,w),p}(Error);A.CancelError=g},8089:function(C,A,h){var m=this&&this.__read||function(b,E){var F=typeof Symbol=="function"&&b[Symbol.iterator];if(!F)return b;var S,U,T=F.call(b),Q=[];try{for(;(E===void 0||E-- >0)&&!(S=T.next()).done;)Q.push(S.value)}catch(P){U={error:P}}finally{try{S&&!S.done&&(F=T.return)&&F.call(T)}finally{if(U)throw U.error}}return Q},g=this&&this.__spreadArray||function(b,E,F){if(F||arguments.length===2)for(var S,U=0,T=E.length;U<T;U++)!S&&U in E||(S||(S=Array.prototype.slice.call(E,0,U)),S[U]=E[U]);return b.concat(S||Array.prototype.slice.call(E))};Object.defineProperty(A,"__esModule",{value:!0}),A.Matrix4=void 0;var w=h(4915),p=h(2731),u=h(9549),f=h(9898),c=h(5985),a=h(8533),i=h(4209),s=h(6021),r=h(4601),o=h(2830),l=h(8042),d=h(6680),B=h(723),_=h(3300);(function(b){function E(P,I,M){return(0,d._fromMatrix3AndTranslation)(P,I,M)}b.getElementIndex=function(P,I){if(P<0||P>3||I<0||I>3)throw new Error("column < 0 || column > 3 || row < 0 || row > 3");return 4*P+I},b.getColumn=function(P,I,M){return(0,a._getColumn)(P,I,M)},b.setColumn=function(P,I,M,K){return(0,a._setColumn)(P,I,M,K)},b.getRow=function(P,I,M){return(0,r._getRow)(P,I,M)},b.setRow=function(P,I,M,K){(0,r._setRow)(P,I,M,K)},b.getTranslation=function(P,I){return(0,o._getTranslation)(P,I)},b.setTranslation=function(P,I,M){return(0,o._setTranslation)(P,I,M)},b.getScale=function(P,I){return(0,_._getScale)(P,I)},b.setScale=function(P,I,M){return(0,_._setScale)(P,I,M)},b.getMaximumScale=function(P){return(0,_._getMaximumScale)(P)},b.multiply=function(P,I,M){return(0,s._multiply)(P,I,M)},b.multiplyTransformation=function(P,I,M){return(0,s._multiplyTransformation)(P,I,M)},b.multiplyByMatrix3=function(P,I,M){return(0,s._multiplyByMatrix3)(P,I,M)},b.multiplyByTranslation=function(P,I,M){return(0,s._multiplyByTranslation)(P,I,M)},b.multiplyByUniformScale=function(P,I,M){(0,s._multiplyByUniformScale)(P,I,M)},b.multiplyByScale=function(P,I,M){return(0,s._multiplyByScale)(P,I,M)},b.multiplyByVector=function(P,I,M){return(0,s._multiplyByVector)(P,I,M)},b.multiplyByPointAsVector=function(P,I,M){return(0,s._multiplyByPointAsVector)(P,I,M)},b.affineMultiplyByPoint=function(P,I,M){return(0,s._affineMultiplyByPoint)(P,I,M)},b.multiplyByPoint=function(P,I,M){return(0,s._multiplyByPoint)(P,I,M)},b.continuousMultiply=function(P,I){for(var M=[],K=2;K<arguments.length;K++)M[K-2]=arguments[K];return s._continuousMultiply.apply(void 0,g([P,I],m(M),!1))},b.transpose=function(P,I){return(0,l._transpose)(P,I)},b.getMatrix3=function(P,I){return(I=I||(0,p.createNumbers)(9))[0]=P[0],I[1]=P[1],I[2]=P[2],I[3]=P[4],I[4]=P[5],I[5]=P[6],I[6]=P[8],I[7]=P[9],I[8]=P[10],I},b.setMatrix3=function(P,I){(I=I||f.Vector.clone(b.IDENTITY))[0]=P[0],I[1]=P[1],I[2]=P[2],I[4]=P[3],I[5]=P[4],I[6]=P[5],I[8]=P[6],I[9]=P[7],I[10]=P[8]},b.inverse=function(P,I){return(0,i.inverse)(P,I)},b.inverseTransformation=function(P,I){return(0,B._inverseTransformation)(P,I)},b.IDENTITY=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b.ZERO=Object.freeze([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),b.fromTranslation=function(P,I){return(0,d._fromTranslation)(P,I)},b.fromMatrix3AndTranslation=E;var F=(0,p.createNumbers)(9);b.fromRotateQuatAndTranslation=function(P,I,M){return w.Matrix3.fromQuaternion(P,F),E(F,I,M)},b.fromDirectionUpRightAndTranslation=function(P,I,M,K,W){return(0,d._fromDirectionUpRightAndTranslation)(P,I,M,K,W)},b.fromScale=function(P,I){return f.Vector.set(I,P[0],0,0,0,0,P[1],0,0,0,0,P[2],0,0,0,0,1)};var S=u.Quaternion.fromAxisAngle([1,0,0],.5*Math.PI),U=w.Matrix3.fromQuaternion(S);b.Z2NY=b.fromMatrix3AndTranslation(U);var T=(0,p.createNumbers)(4),Q=(0,p.createNumbers)(9);b.fromAxisAngle=function(P,I,M){return u.Quaternion.fromAxisAngle(P,I,T),w.Matrix3.fromQuaternion(T,Q),b.fromMatrix3AndTranslation(Q,c.Vector3.ZERO,M)}})(A.Matrix4||(A.Matrix4={}))},8106:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(6148),A),g(h(9972),A),g(h(9374),A),g(h(6888),A),g(h(1801),A),g(h(5582),A),g(h(4661),A),g(h(1943),A),g(h(2051),A)},8144:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getIterator=void 0,A.getIterator=function(h){var m;if(typeof h.next=="function")m=h;else{if(typeof h[Symbol.iterator]!="function")throw new Error("iteratorOrIterable error!");m=h[Symbol.iterator]()}return m}},8193:function(C,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(c[i]=a[i])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)}),w=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,i,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.ToolTipDiv=void 0;var p=function(u){function f(){var c=u.call(this)||this;c._text="";var a=document.createElement("div");c._div=a,a.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible; transition: opacity 0.5s;";var i=document.createElement("div");i.style.cssText="position: absolute; left: 0px; bottom: 0px; transform: translateX(-50%); margin: 0; padding: 0; pointer-events: none;";var s=document.createElement("div");return s.style.cssText="position: relative; background-color: rgba(0, 0, 0, 0.7); border-radius: 5px; padding: 3px; pointer-events: all; color: white; white-space: nowrap;",s.innerText=c._text,c._div.appendChild(i),i.appendChild(s),c._contentContainer=s,c._div=a,c.dispose(c.winPosChanged.disposableOn(function(r){var o=w(r,2),l=o[0],d=o[1];c._div.style.left="".concat(l,"px"),c._div.style.top="".concat(d-50,"px")})),c.dispose(c.opacityChanged.disposableOn(function(r){c._div.style.opacity="".concat(r)})),c.dispose(c.showChanged.disposableOn(function(r){c._div.style.visibility=r?"visible":"hidden"})),c}return g(f,u),Object.defineProperty(f.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),f.prototype.reset=function(){this.opacity=1,this.show=!0},Object.defineProperty(f.prototype,"text",{get:function(){return this._text},set:function(c){this._text!==c&&(this._text=c,this._contentContainer.innerText=c)},enumerable:!1,configurable:!0}),f}(h(7324).FloatDiv);A.ToolTipDiv=p},8196:function(C,A,h){var m=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&c[a],s=0;if(i)return i.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&s>=c.length&&(c=void 0),{value:c&&c[s++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(c,a){var i=typeof Symbol=="function"&&c[Symbol.iterator];if(!i)return c;var s,r,o=i.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return l};Object.defineProperty(A,"__esModule",{value:!0}),A.ProcessingStarter=void 0;var w=h(7372),p=h(1662),u=h(8055),f=function(){function c(a){this._startParams=a,this._cancelled=!1,this._cancelsMap=new Map}return Object.defineProperty(c.prototype,"disposer",{get:function(){var a=this;return this._disposer||(this._disposer=new w.Destroyable,this._disposer.dispose(function(){return a._disposer=void 0})),this._disposer},enumerable:!1,configurable:!0}),c.prototype.cancel=function(a){var i,s,r;if(!this._cancelled){this._cancelled=!0,(r=this._disposer)===null||r===void 0||r.destroy(),this._cancelError=a;try{for(var o=m(this._cancelsMap.values()),l=o.next();!l.done;l=o.next())(0,l.value)(a)}catch(d){i={error:d}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}this._cancelsMap.clear()}},c.prototype.check=function(){var a;if(this._cancelled)throw(a=this._cancelError)!==null&&a!==void 0?a:new u.CancelError("cancel from CancelManager!")},Object.defineProperty(c.prototype,"cancelFuncsNum",{get:function(){return(0,p.reduce)(this._cancelsMap.keys(),function(a){return a+1},0)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"processingID",{get:function(){return this._startParams.processingID},enumerable:!1,configurable:!0}),c.prototype.promises=function(){for(var a=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return i.map(function(r){var o=g(r,2),l=o[0],d=o[1];return a._cancelsMap.set(d,l),d.finally(function(){return a._cancelsMap.delete(d)})})},c.prototype.promise=function(a){var i=this,s=g(a,2),r=s[0],o=s[1];return this._cancelsMap.set(o,r),o.finally(function(){return i._cancelsMap.delete(o)})},c.prototype.promiseAny=function(a){var i=this,s=[],r=a.map(function(o){var l=g(o,2),d=l[0],B=l[1];return i._cancelsMap.set(B,d),s.push(d),B.finally(function(){return i._cancelsMap.delete(B)})});return Promise.any(r).finally(function(){return s.forEach(function(o){return o(new u.CancelError("cancel from promiseAny!"))})})},c.prototype.promiseAll=function(a){var i=this,s=[],r=a.map(function(o){var l=g(o,2),d=l[0],B=l[1];return i._cancelsMap.set(B,d),s.push(d),B.finally(function(){return i._cancelsMap.delete(B)})});return Promise.all(r).finally(function(){return s.forEach(function(o){return o(new u.CancelError("cancel from promiseAll!"))})})},c.prototype.promiseRace=function(a){var i=this,s=[],r=a.map(function(o){var l=g(o,2),d=l[0],B=l[1];return i._cancelsMap.set(B,d),s.push(d),B.finally(function(){return i._cancelsMap.delete(B)})});return Promise.race(r).finally(function(){return s.forEach(function(o){return o(new u.CancelError("cancel from promiseRace!"))})})},c.prototype.checkAndPromises=function(){for(var a=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return i.map(function(r){var o=g(r,2),l=o[0],d=o[1];return a._cancelsMap.set(d,l),d.finally(function(){return a._cancelsMap.delete(d),a.check()})})},c.prototype.checkAndPromise=function(a){var i=this;return a instanceof Promise?a.finally(function(){return i.check()}):this.promise(a).finally(function(){return i.check()})},c.prototype.complete=function(a){var i;this.cancelFuncsNum!==0&&console.warn("complete: this.cancelFuncsNum(".concat(this.cancelFuncsNum,")不为0!")),(i=this._disposer)===null||i===void 0||i.destroy(),this._cancelsMap.clear(),this._startParams.completeFunc(a)},c.prototype.error=function(a){var i;(i=this._disposer)===null||i===void 0||i.destroy(),this._cancelsMap.clear(),this._startParams.errorFunc(a)},c.prototype.progressFunc=function(a){this._startParams.progressFunc(a)},c.prototype.forceCancel=function(a){return this._startParams.cancelFunc(a)},c}();A.ProcessingStarter=f},8301:function(C,A,h){var m,g=this&&this.__extends||(m=function(r,o){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var B in d)Object.prototype.hasOwnProperty.call(d,B)&&(l[B]=d[B])},m(r,o)},function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function l(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}),w=this&&this.__values||function(r){var o=typeof Symbol=="function"&&Symbol.iterator,l=o&&r[o],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(r,o){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,B,_=l.call(r),b=[];try{for(;(o===void 0||o-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){B={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(B)throw B.error}}return b},u=this&&this.__spreadArray||function(r,o,l){if(l||arguments.length===2)for(var d,B=0,_=o.length;B<_;B++)!d&&B in o||(d||(d=Array.prototype.slice.call(o,0,B)),d[B]=o[B]);return r.concat(d||Array.prototype.slice.call(o))};Object.defineProperty(A,"__esModule",{value:!0}),A.Tree=void 0;var f=h(1662),c=h(9082),a=h(3315),i=h(8368),s=function(r){function o(l){var d=r.call(this)||this;return d._root=d.disposeVar(new c.TreeItem(d,!0,"_ROOT")),d._itemChildrenChanged=d.disposeVar(new f.Event),d._itemChildrenToChange=d.disposeVar(new f.Event),d._itemsAdded=d.disposeVar(new f.Event),d._itemsDeleted=d.disposeVar(new f.Event),d._itemsChanged=d.disposeVar(new f.Event),d._transactionStack=0,d._addedItems=new Set,d._deletedItems=new Set,d._selectedItems=d.disposeVar(new f.ObservableArray),d._itemDivHeight=d.disposeVar((0,f.react)(o.defaultItemDivHeight)),d._forceRedrawEvent=d.disposeVar(new f.Event),d._uiTree=d.disposeVar(new a.UiTree(d)),d._root._tree.value=d,d.dispose(d._itemChildrenToChange.disposableOn(function(B,_){var b,E,F,S;if(B.children){try{for(var U=w(_),T=U.next();!T.done;T=U.next()){for(var Q=T.value,P=Q.start,I=Q.deleteCount,M=Q.items,K=P;K<P+I;++K){var W=B.children.get(K);d._deletedItems.has(W)?console.error("this._deletedItems.has(currentItem(".concat(W.id,"))")):d._deletedItems.add(W)}try{for(var L=(F=void 0,w(M)),O=L.next();!O.done;O=L.next())W=O.value,d._deletedItems.has(W)?d._deletedItems.delete(W):d._addedItems.add(W)}catch(H){F={error:H}}finally{try{O&&!O.done&&(S=L.return)&&S.call(L)}finally{if(F)throw F.error}}}}catch(H){b={error:H}}finally{try{T&&!T.done&&(E=U.return)&&E.call(U)}finally{if(b)throw b.error}}d._execTransaction()}else console.error("!item.children")})),l!==void 0&&(d.itemDivHeight=l),d}return g(o,r),Object.defineProperty(o.prototype,"selectedItems",{get:function(){return this._selectedItems},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"lastSelectedItem",{get:function(){return this._selectedItems.length>0?this._selectedItems.get(this._selectedItems.length-1):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"itemDivHeight",{get:function(){return this._itemDivHeight.value},set:function(l){this._itemDivHeight.value=l},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"itemDivHeightChanged",{get:function(){return this._itemDivHeight.changed},enumerable:!1,configurable:!0}),o.prototype.forceRedraw=function(){this._forceRedrawEvent.emit()},Object.defineProperty(o.prototype,"uiTree",{get:function(){return this._uiTree},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"children",{get:function(){return this._root.children},enumerable:!1,configurable:!0}),o.prototype.getDescendants=function(l){return this._root.getDescendants(l)},o.prototype.getTreeItemFromId=function(l){var d,B,_=void 0;try{for(var b=w(this.getDescendants()),E=b.next();!E.done;E=b.next()){var F=E.value;if(F.id===l){_=F;break}}}catch(S){d={error:S}}finally{try{E&&!E.done&&(B=b.return)&&B.call(b)}finally{if(d)throw d.error}}return _},o.prototype._startTransaction=function(){this._transactionStack===0&&(this._deletedItems.size>0&&(console.warn("this._deletedItems.size > 0"),this._deletedItems.clear()),this._addedItems.size>0&&(console.warn("this._addedItems.size > 0"),this._addedItems.clear())),++this._transactionStack},o.prototype._stopTransaction=function(){--this._transactionStack,this._execTransaction()},o.prototype._execTransaction=function(){this._transactionStack===0&&(this._deletedItems.size>0&&(this._itemsDeleted.emit(u([],p(this._deletedItems),!1)),this._deletedItems.clear()),this._addedItems.size>0&&(this._itemsAdded.emit(u([],p(this._addedItems),!1)),this._addedItems.clear()))},Object.defineProperty(o.prototype,"itemChildrenChanged",{get:function(){return this._itemChildrenChanged},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"itemChildrenToChange",{get:function(){return this._itemChildrenToChange},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"itemsChanged",{get:function(){return this._itemsChanged},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"itemsAdded",{get:function(){return this._itemsAdded},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"itemsDeleted",{get:function(){return this._itemsDeleted},enumerable:!1,configurable:!0}),o.defaultItemDivHeight=24,o.canMoveToTreeItem=i.canMoveToTreeItem,o.moveToTreeItem=i.moveToTreeItem,o.canMoveToTreeItems=i.canMoveToTreeItems,o.moveToTreeItems=i.moveToTreeItems,o}(f.Destroyable);A.Tree=s},8368:function(C,A,h){var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.moveToTreeItems=A.canMoveToTreeItems=A.moveToTreeItem=A.canMoveToTreeItem=void 0;var g=h(1662);function w(u,f,c){if(u.tree!==f.tree||u===f||u.isAncestorOf(f)||u.tree!==f.tree||!u.parent)return!1;if(!u.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");return!(f===u||u.isAncestorOf(f)||c!=="inner"&&!f.parent||c==="inner"&&!f.children)}function p(u,f,c){if(u.tree&&f.tree&&u.tree===f.tree)if(u.parent){if(!u.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");if(f!==u)if(u.isAncestorOf(f))console.warn("当前节点不能拖放到它自身的后代节点之上!");else if(c==="inner"||f.parent)if(c!=="inner"||f.children){u.tree._startTransaction();var a=u.parent.children.indexOf(u);if(u.parent.children.splice(a,1),c!=="inner"){var i=f.parent;if(!i||!i.children)throw new Error("!parent");var s=i.children.indexOf(f);c==="before"?i.children.splice(s,0,u):c==="after"&&i.children.splice(s+1,0,u)}else f.children.push(u);u.tree._stopTransaction()}else console.warn("无法移动到目标节点的子节点中,因为目标节点不是组节点!");else console.warn("目标节点没有父节点,无法拖放!");else console.warn("自身不能拖放到自身!")}else console.warn("当前节点没有父节点,那么该节点无法被移动!")}A.canMoveToTreeItem=w,A.moveToTreeItem=p,A.canMoveToTreeItems=function(u,f,c){return(0,g.every)(u,function(a){return w(a,f,c)})},A.moveToTreeItems=function(u,f,c){var a,i;try{for(var s=m(u),r=s.next();!r.done;r=s.next()){var o=r.value;w(o,f,c)?p(o,f,c):console.warn("treeItem(id: ".concat(o.id,") cannot move..."))}}catch(l){a={error:l}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}}},8421:function(C,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(c[i]=a[i])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.unLoading=A.UnLoading=void 0;var w=h(1662),p=function(u){function f(){var c=u.call(this)||this;return c._unloadEvent=c.disposeVar(new w.Event),window.addEventListener("beforeunload",function(){c._unloadEvent.emit(),c.destroy()}),c}return g(f,u),f.prototype.unload=function(c){this.dispose(this._unloadEvent.disposableOn(c,unescape,!0))},f}(w.Destroyable);A.UnLoading=p,A.unLoading=new p},8453:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadBASIS=A.CompressedTextureBuffer=void 0;var m=h(9928);Object.defineProperty(A,"CompressedTextureBuffer",{enumerable:!0,get:function(){return m.CompressedTextureBuffer}});var g=h(2075),w=h(3631),p=h(5486),u=h(1662),f=Error,c=new g.TaskProcessor("transcodeBASISToTexture",Number.POSITIVE_INFINITY);A.loadBASIS=function(a,i){if(!a)throw new f("resourceOrUrlOrBuffer is required.");var s;if(s=a instanceof ArrayBuffer||ArrayBuffer.isView(a)?w.when.resolve(a):(0,u.fetchArrayBuffer)(a),(0,p.defined)(s))return s.then(function(r){if((0,p.defined)(r)){var o=[];r instanceof ArrayBuffer?o.push(r):(r.byteOffset===0&&r.byteLength===r.buffer.byteLength||(r=r.slice(0,r.length)),o.push(r.buffer));var l={data:r,textureFormat:i};return c.scheduleTask(l,o)}}).then(function(r){return r||console.error("compressedTextureBuffer is undefined!"),m.CompressedTextureBuffer.clone(r)})}},8466:(C,A)=>{function h(m,g){var w=m*m,p=w*m,u=m+m+m,f=w+w+w,c=p+p+p,a=1-u+f-p,i=u-(f+f)+c,s=f-c,r=p;return g?(g[0]=a,g[1]=i,g[2]=s,g[3]=r,g):[a,i,s,r]}Object.defineProperty(A,"__esModule",{value:!0}),A.computBezierSpline3BaseFactors=A.bezierSpline3=A.bezierSpline3WithBaseFactor=A.getBezierSpline3BaseFactor=void 0,A.getBezierSpline3BaseFactor=h,A.bezierSpline3WithBaseFactor=function(m,g,w,p,u,f,c){for(var a=c??new Array(g),i=0;i<g;++i)a[i]=m[0]*w[i]+m[1]*p[i]+m[2]*u[i]+m[3]*f[i];return a},A.bezierSpline3=function(m,g,w,p,u,f,c){for(var a=h(m),i=c??new Array(g),s=0;s<g;++s)i[s]=a[0]*w[s]+a[1]*p[s]+a[2]*u[s]+a[3]*f[s];return i},A.computBezierSpline3BaseFactors=function(m){for(var g=new Array(m+1),w=1/m,p=0,u=0;u<m;++u)g[u]=h(p),p+=w;return g}},8533:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setColumn=A._getColumn=void 0;var m=h(2731),g=h(9898);A._getColumn=function(w,p,u){if(p<0||p>3)throw new Error("index < 0 || index > 3");var f=4*p,c=w[f],a=w[f+1],i=w[f+2],s=w[f+3];return(u=u||(0,m.createNumbers)(4))[0]=c,u[1]=a,u[2]=i,u[3]=s,u},A._setColumn=function(w,p,u,f){if(p<0||p>3)throw new Error("index < 0 || index > 3");var c=4*p;return(f=g.Vector.clone(w,f))[c]=u[0],f[c+1]=u[1],f[c+2]=u[2],f[c+3]=u[3],f}},8576:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(3207),A)},8584:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.downloadLink=void 0,A.downloadLink=function(h,m){var g=document.createElement("a"),w=new MouseEvent("click");g.download=m||"下载",g.href=h,g.dispatchEvent(w)}},8614:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},8703:function(C,A,h){var m=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&c[a],s=0;if(i)return i.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&s>=c.length&&(c=void 0),{value:c&&c[s++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(A,"__esModule",{value:!0}),A._getCullingVolumeFromProjectionMatrix=void 0;var w=g(h(9812)),p=h(2731),u=h(9898);function f(c,a,i){return c[4*(i-1)+(a-1)]}A._getCullingVolumeFromProjectionMatrix=function(c,a){var i,s,r=c;if((a=a||new w.default([(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4)])).planes.length!==6)throw new Error("!target.planes || target.planes.length !== 6");u.Vector.set(a.planes[0],f(r,4,1)+f(r,1,1),f(r,4,2)+f(r,1,2),f(r,4,3)+f(r,1,3),f(r,4,4)+f(r,1,4)),u.Vector.set(a.planes[1],f(r,4,1)-f(r,1,1),f(r,4,2)-f(r,1,2),f(r,4,3)-f(r,1,3),f(r,4,4)-f(r,1,4)),u.Vector.set(a.planes[2],f(r,4,1)+f(r,2,1),f(r,4,2)+f(r,2,2),f(r,4,3)+f(r,2,3),f(r,4,4)+f(r,2,4)),u.Vector.set(a.planes[3],f(r,4,1)-f(r,2,1),f(r,4,2)-f(r,2,2),f(r,4,3)-f(r,2,3),f(r,4,4)-f(r,2,4)),u.Vector.set(a.planes[4],f(r,4,1)+f(r,3,1),f(r,4,2)+f(r,3,2),f(r,4,3)+f(r,3,3),f(r,4,4)+f(r,3,4)),u.Vector.set(a.planes[5],f(r,4,1)-f(r,3,1),f(r,4,2)-f(r,3,2),f(r,4,3)-f(r,3,3),f(r,4,4)-f(r,3,4));try{for(var o=m(a.planes),l=o.next();!l.done;l=o.next()){var d=l.value;u.Vector.normalize(d,d)}}catch(B){i={error:B}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}return a}},8835:function(C,A,h){var m=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},g=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.bindu=A.bind=A.track=A.getCompleteReactParams=void 0;var w=h(2168),p=h(3915);function u(a){var i=a instanceof p.ReactiveVariable?[a,"value","changed"]:g([],m(a),!1);return i[2]=i[2]||i[1]+"Changed",i}function f(a,i,s,r){r===void 0&&(r=!1),i[2]=i[2]||i[1]+"Changed";var o=function(){var l=i[0][i[1]];a[0][a[1]]=s?s(l):l};return o(),r?i[0][i[2]].disposableWeakOn(o):i[0][i[2]].disposableOn(o)}function c(a,i,s,r,o){return o===void 0&&(o=!1),function(l,d,B,_,b){b===void 0&&(b=!1);var E=f(l,d,B,b),F=f(d,l,_,b);return function(){return E(),F()}}(u(a),u(i),s,r,o)}A.getCompleteReactParams=u,A.track=function(a,i,s,r){return r===void 0&&(r=!1),f(a instanceof p.ReactiveVariable?[a,"value","changed"]:a,i instanceof p.ReactiveVariable?[i,"value","changed"]:i,s,r)},A.bind=c,A.bindu=function(a,i,s,r){r===void 0&&(r=!1);var o=m((0,w.getReactFuncs)(i),1)[0];return c(a,i,function(l){return l??s},function(l){return l===s&&o()===void 0?void 0:l},r)}},8992:function(C,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,i=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=i.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=i.return)&&f.call(i)}finally{if(a)throw a.error}}return s},g=this&&this.__spreadArray||function(p,u,f){if(f||arguments.length===2)for(var c,a=0,i=u.length;a<i;a++)!c&&a in u||(c||(c=Array.prototype.slice.call(u,0,a)),c[a]=u[a]);return p.concat(c||Array.prototype.slice.call(u))};Object.defineProperty(A,"__esModule",{value:!0}),A.throttle=void 0;var w=h(773);A.throttle=function(p,u,f){f===void 0&&(f=w.defaultStartUpdateFunc);var c=Number.NEGATIVE_INFINITY,a=void 0;return[function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];a=i},f&&f(function(i){i-c>u&&a&&(p.apply(void 0,g([],m(a),!1)),a=void 0,c=i)})||void 0]}},8995:function(C,A,h){var m,g=this&&this.__extends||(m=function(d,B){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])},m(d,B)},function(d,B){if(typeof B!="function"&&B!==null)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function _(){this.constructor=d}m(d,B),d.prototype=B===null?Object.create(B):(_.prototype=B.prototype,new _)}),w=this&&this.__read||function(d,B){var _=typeof Symbol=="function"&&d[Symbol.iterator];if(!_)return d;var b,E,F=_.call(d),S=[];try{for(;(B===void 0||B-- >0)&&!(b=F.next()).done;)S.push(b.value)}catch(U){E={error:U}}finally{try{b&&!b.done&&(_=F.return)&&_.call(F)}finally{if(E)throw E.error}}return S},p=this&&this.__spreadArray||function(d,B,_){if(_||arguments.length===2)for(var b,E=0,F=B.length;E<F;E++)!b&&E in B||(b||(b=Array.prototype.slice.call(B,0,E)),b[E]=B[E]);return d.concat(b||Array.prototype.slice.call(B))},u=this&&this.__values||function(d){var B=typeof Symbol=="function"&&Symbol.iterator,_=B&&d[B],b=0;if(_)return _.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&b>=d.length&&(d=void 0),{value:d&&d[b++],done:!d}}};throw new TypeError(B?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.NextMicroTaskEvent=A.NextMicroTask=A.NextAnimationFrame=A.getPromiseFromAsyncFunc=A.getPromiseFromProcessing=A.getProcessingFromPromise=void 0;var f=h(7372),c=h(7372),a=h(5675),i=h(6891);function s(d){for(var B=[],_=1;_<arguments.length;_++)B[_-1]=arguments[_];var b=-1;return[function(E){return b===d.processingID&&d.isRunning&&d.cancel(E)},new Promise(function(E,F){d.isRunning&&d.cancel(),d.reset();var S=d.finishedEvent.disposableOn(function(U){U.status==="Error"?F(U.error):U.status==="Cancelled"?F(U.cancelError):U.status==="Completed"&&E(U.value),S()});d.start.apply(d,p([],w(B),!1)),b=d.processingID})]}A.getProcessingFromPromise=function(d){return new i.ProcessingDeprecated(function(B){var _=B.completeFunc,b=B.errorFunc,E=!1;return d.then(function(F){E||_(F)}).catch(function(F){E||b(F)}),function(){E=!0}})},A.getPromiseFromProcessing=s,A.getPromiseFromAsyncFunc=function(d){for(var B=[],_=1;_<arguments.length;_++)B[_-1]=arguments[_];var b=(0,a.createProcessing)(d),E=w(s.apply(void 0,p([b],w(B),!1)),2);return[E[0],E[1].finally(function(){return b.destroy()})]};var r=function(d){function B(_){return d.call(this,function(b){for(var E=b.completeFunc,F=b.errorFunc,S=[],U=1;U<arguments.length;U++)S[U-1]=arguments[U];var T=requestAnimationFrame(function(Q){try{var P=_.apply(void 0,p([],w(S),!1));E(P)}catch(I){F(I)}});return function(){return cancelAnimationFrame(T)}})||this}return g(B,d),B}(i.ProcessingDeprecated);A.NextAnimationFrame=r;var o=function(d){function B(_){return d.call(this,function(b){for(var E,F=b.completeFunc,S=b.errorFunc,U=[],T=1;T<arguments.length;T++)U[T-1]=arguments[T];return new Promise(function(Q,P){E=P,Q()}).then(function(){F(_.apply(void 0,p([],w(U),!1)))}).catch(S),function(){E&&E()}})||this}return g(B,d),B}(i.ProcessingDeprecated);A.NextMicroTask=o;var l=function(d){function B(){for(var _,b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];var S=d.call(this)||this;S._event=new c.Event;try{for(var U=u(E),T=U.next();!T.done;T=U.next()){var Q=T.value;S.dispose(Q.disposableOn(function(){!P.isRunning&&P.restart()}))}}catch(I){_={error:I}}finally{try{T&&!T.done&&(b=U.return)&&b.call(U)}finally{if(_)throw _.error}}var P=new o(function(){S._event.emit()});return S.dispose(function(){return P.destroy()}),S}return g(B,d),Object.defineProperty(B.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),B}(f.Destroyable);A.NextMicroTaskEvent=l},8997:function(C,A,h){var m,g=this&&this.__extends||(m=function(B,_){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var F in E)Object.prototype.hasOwnProperty.call(E,F)&&(b[F]=E[F])},m(B,_)},function(B,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=B}m(B,_),B.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)}),w=this&&this.__awaiter||function(B,_,b,E){return new(b||(b=Promise))(function(F,S){function U(P){try{Q(E.next(P))}catch(I){S(I)}}function T(P){try{Q(E.throw(P))}catch(I){S(I)}}function Q(P){var I;P.done?F(P.value):(I=P.value,I instanceof b?I:new b(function(M){M(I)})).then(U,T)}Q((E=E.apply(B,_||[])).next())})},p=this&&this.__generator||function(B,_){var b,E,F,S,U={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return S={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function T(Q){return function(P){return function(I){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,I[0]&&(U=0)),U;)try{if(b=1,E&&(F=2&I[0]?E.return:I[0]?E.throw||((F=E.return)&&F.call(E),0):E.next)&&!(F=F.call(E,I[1])).done)return F;switch(E=0,F&&(I=[2&I[0],F.value]),I[0]){case 0:case 1:F=I;break;case 4:return U.label++,{value:I[1],done:!1};case 5:U.label++,E=I[1],I=[0];continue;case 7:I=U.ops.pop(),U.trys.pop();continue;default:if(!((F=(F=U.trys).length>0&&F[F.length-1])||I[0]!==6&&I[0]!==2)){U=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]<F[3])){U.label=I[1];break}if(I[0]===6&&U.label<F[1]){U.label=F[1],F=I;break}if(F&&U.label<F[2]){U.label=F[2],U.ops.push(I);break}F[2]&&U.ops.pop(),U.trys.pop();continue}I=_.call(B,U)}catch(M){I=[6,M],E=0}finally{b=F=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([Q,P])}}},u=this&&this.__asyncValues||function(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _,b=B[Symbol.asyncIterator];return b?b.call(B):(B=typeof c=="function"?c(B):B[Symbol.iterator](),_={},E("next"),E("throw"),E("return"),_[Symbol.asyncIterator]=function(){return this},_);function E(F){_[F]=B[F]&&function(S){return new Promise(function(U,T){(function(Q,P,I,M){Promise.resolve(M).then(function(K){Q({value:K,done:I})},P)})(U,T,(S=B[F](S)).done,S.value)})}}},f=this&&this.__read||function(B,_){var b=typeof Symbol=="function"&&B[Symbol.iterator];if(!b)return B;var E,F,S=b.call(B),U=[];try{for(;(_===void 0||_-- >0)&&!(E=S.next()).done;)U.push(E.value)}catch(T){F={error:T}}finally{try{E&&!E.done&&(b=S.return)&&b.call(S)}finally{if(F)throw F.error}}return U},c=this&&this.__values||function(B){var _=typeof Symbol=="function"&&Symbol.iterator,b=_&&B[_],E=0;if(b)return b.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&E>=B.length&&(B=void 0),{value:B&&B[E++],done:!B}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.defaultGetLocalFilePath=A.defaultLocalFileServer=A.LocalFileServer=A.LocalRootDir=A.getFileArrayBuffer=A.getFileJson=A.getFileText=A.getSubEntriesFromDir=void 0;var a=h(7372);function i(B){var _,b,E,F;return w(this,void 0,void 0,function(){var S,U,T,Q,P,I,M,K,W,L,O;return p(this,function(H){switch(H.label){case 0:S=[],U=[],T=B.entries(),H.label=1;case 1:H.trys.push([1,6,7,12]),Q=!0,P=u(T),H.label=2;case 2:return[4,P.next()];case 3:if(I=H.sent(),_=I.done)return[3,5];F=I.value,Q=!1;try{M=f(F,2),K=M[0],W=M[1],(L=W).kind==="file"?S.push(K):L.kind==="directory"&&U.push(K)}finally{Q=!0}H.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return O=H.sent(),b={error:O},[3,12];case 7:return H.trys.push([7,,10,11]),Q||_||!(E=P.return)?[3,9]:[4,E.call(P)];case 8:H.sent(),H.label=9;case 9:return[3,11];case 10:if(b)throw b.error;return[7];case 11:return[7];case 12:return[2,{files:S,dirs:U}]}})})}function s(B){return w(this,void 0,void 0,function(){return p(this,function(_){switch(_.label){case 0:return[4,B.getFile()];case 1:return[4,_.sent().text()];case 2:return[2,_.sent()]}})})}function r(B){return w(this,void 0,void 0,function(){var _;return p(this,function(b){switch(b.label){case 0:return[4,s(B)];case 1:_=b.sent();try{return[2,JSON.parse(_)]}catch{return[2,void 0]}return[2]}})})}function o(B){return w(this,void 0,void 0,function(){return p(this,function(_){switch(_.label){case 0:return[4,B.getFile()];case 1:return[4,_.sent().arrayBuffer()];case 2:return[2,_.sent()]}})})}A.getSubEntriesFromDir=i,A.getFileText=s,A.getFileJson=r,A.getFileArrayBuffer=o;var l=function(B){function _(b){var E=B.call(this)||this;return E._rootDirHandle=b,E}return g(_,B),Object.defineProperty(_.prototype,"rootDirHandle",{get:function(){return this._rootDirHandle},enumerable:!1,configurable:!0}),_.prototype.getSubFilesAndDirs=function(){return w(this,void 0,void 0,function(){return p(this,function(b){switch(b.label){case 0:return[4,i(this._rootDirHandle)];case 1:return[2,b.sent()]}})})},_.prototype.getDir=function(b){return w(this,void 0,void 0,function(){var E,F,S,U,T,Q,P;return p(this,function(I){switch(I.label){case 0:E=this._rootDirHandle,I.label=1;case 1:I.trys.push([1,6,7,8]),F=c(b),S=F.next(),I.label=2;case 2:return S.done?[3,5]:(U=S.value,[4,E==null?void 0:E.getDirectoryHandle(U)]);case 3:if(!(E=I.sent()))return console.log("getDirectoryHandle ".concat(U," failed")),[2,void 0];I.label=4;case 4:return S=F.next(),[3,2];case 5:return[3,8];case 6:return T=I.sent(),Q={error:T},[3,8];case 7:try{S&&!S.done&&(P=F.return)&&P.call(F)}finally{if(Q)throw Q.error}return[7];case 8:return[2,E]}})})},_.prototype.getFile=function(b,E){return w(this,void 0,void 0,function(){var F,S;return p(this,function(U){switch(U.label){case 0:return[4,this.getDir(b)];case 1:if(!(F=U.sent()))return[2,void 0];U.label=2;case 2:return U.trys.push([2,4,,5]),[4,F.getFileHandle(E)];case 3:return[2,U.sent()];case 4:return S=U.sent(),console.error("未能获取当前文件 ".concat(b.join("/"),"/").concat(E," error: ").concat(S),S),[2,void 0];case 5:return[2]}})})},_}(a.Destroyable);A.LocalRootDir=l;var d=function(B){function _(b){var E=B.call(this)||this;return E._prefix=b,E._startRootDirId=0,E._dirMap=new Map,E}return g(_,B),Object.defineProperty(_.prototype,"prefix",{get:function(){return this._prefix},enumerable:!1,configurable:!0}),_.prototype.getRootDirId=function(b){return w(this,void 0,void 0,function(){var E,F,S,U;return p(this,function(T){switch(T.label){case 0:return T.trys.push([0,2,,3]),console.log("window.showDirectoryPicker begin"),[4,window.showDirectoryPicker({id:b,mode:"read"})];case 1:return E=T.sent(),console.log("window.showDirectoryPicker end",E),[3,3];case 2:return F=T.sent(),console.error("LocalFileServer getRootDirId failed: ".concat(F),F),[2,void 0];case 3:return E?(S=++this._startRootDirId,U="".concat(this._prefix).concat(S),this._dirMap.set(U,new l(E)),[2,U]):[2]}})})},_.prototype.getRootDir=function(b){return this._dirMap.get(b)},_.prototype.getFile=function(b){return w(this,void 0,void 0,function(){var E,F,S,U,T,Q;return p(this,function(P){switch(P.label){case 0:return(E=b.split("/")).length<2?(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0]):(F=E[0],(S=this._dirMap.get(F))?(U=E.slice(1,E.length-1),T=E[E.length-1],[4,S.getFile(U,T)]):(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0]));case 1:return(Q=P.sent())?[2,Q]:(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0])}})})},_.prototype.getText=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,s(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getArrayBuffer=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,o(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getJson=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,r(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getLocalFilePath=function(b,E,F){return w(this,void 0,void 0,function(){var S,U,T,Q;return p(this,function(P){switch(P.label){case 0:return[4,this.getRootDirId(E)];case 1:return(S=P.sent())?(U=this.getRootDir(S))?[4,U.getSubFilesAndDirs()]:(console.warn("getRootDir error!"),[2,void 0]):(console.warn("getRootDirId error!"),[2,void 0]);case 2:return(T=P.sent()).files?(Q=b?T.files.filter(function(I){return b.some(function(M){return I.endsWith(M)})}):T.files).length===0?(console.warn("找不到符合要求的文件!"),[2,void 0]):[2,"https://".concat(S,"/").concat(Q[0])]:(console.warn("getSubFilesAndDirs error! 找不到符合要求的文件!"),[2,void 0])}})})},_}(a.Destroyable);A.LocalFileServer=d,A.defaultLocalFileServer=new d("xe2_local"),A.defaultGetLocalFilePath=function(B,_,b){return w(this,void 0,void 0,function(){return p(this,function(E){switch(E.label){case 0:return[4,A.defaultLocalFileServer.getLocalFilePath(B,_,b)];case 1:return[2,E.sent()]}})})}},9026:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.replaceStrWithEnv=void 0;var m=h(2220);A.replaceStrWithEnv=function(g){for(;;){var w=g.replace(/\${(.*?)\}/,function(p,u){var f=m.SceneObject.context.getEnv(u);return f===void 0?(console.warn("环境变量(".concat(u,")不存在,无法进行转换")),"{env-error}"):f});if(w===g)break;g=w}return g}},9038:function(C,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9486),A),g(h(8584),A)},9067:function(C,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),w=this&&this.__read||function(s,r){var o=typeof Symbol=="function"&&s[Symbol.iterator];if(!o)return s;var l,d,B=o.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=B.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(o=B.return)&&o.call(B)}finally{if(d)throw d.error}}return _},p=this&&this.__spreadArray||function(s,r,o){if(o||arguments.length===2)for(var l,d=0,B=r.length;d<B;d++)!l&&d in r||(l||(l=Array.prototype.slice.call(r,0,d)),l[d]=r[d]);return s.concat(l||Array.prototype.slice.call(r))};Object.defineProperty(A,"__esModule",{value:!0}),A.Event=A.EventListenerHandler=void 0;var u=h(9359),f=h(6583),c=h(4471),a=function(s){function r(){return s!==null&&s.apply(this,arguments)||this}return g(r,s),r}(h(2452).SmartListenerHandler);A.EventListenerHandler=a;var i=function(s){function r(){return s!==null&&s.apply(this,arguments)||this}return g(r,s),Object.defineProperty(r.prototype,"_pipe",{get:function(){var o;return this.__pipe=(o=this.__pipe)!==null&&o!==void 0?o:new c.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),r.prototype.emit=function(){for(var o,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];!this.isDestroyed()&&this.beforeCallback&&this.beforeCallback.apply(this,p([],w(l),!1)),!this.isDestroyed()&&(o=this._pipe).do.apply(o,p([],w(l),!1)),!this.isDestroyed()&&this.afterCallback&&this.afterCallback.apply(this,p([],w(l),!1))},r.prototype.on=function(o,l,d,B){d===void 0&&(d=!1);var _=d?this._pipe.unshift(o,l,!1):this._pipe.push(o,l,!1);return(B=B??new a)._reset(_,_._cid),B},r.prototype.disposableOn=function(o,l,d,B){var _=this;d===void 0&&(d=!1);var b=this.on(o,l,d,B);return function(){b.valid&&_.off(b)}},r.prototype.don=function(o,l,d,B){return d===void 0&&(d=!1),this.disposableOn(o,l,d,B)},r.prototype.disposableWeakOn=function(o,l,d,B){d===void 0&&(d=!1);var _=new u.Destroyable,b=function(){!_.isDestroyed()&&_.destroy()};return _.dispose(this.disposableOn(o,l,d,B)),_.dispose(this.toDestroyEvent.disposableOn(b)),b},r.prototype.dwon=function(o,l,d,B){return d===void 0&&(d=!1),this.disposableWeakOn(o,l,d,B)},r.prototype.once=function(o,l,d,B){d===void 0&&(d=!1);var _=d?this._pipe.unshift(o,l,!0):this._pipe.push(o,l,!0);return(B=B??new a)._reset(_,_._cid),B},r.prototype.disposableOnce=function(o,l,d,B){var _=this;d===void 0&&(d=!1);var b=this.once(o,l,d,B);return function(){return b.valid&&_.off(b)}},r.prototype.donce=function(o,l,d,B){var _=this;d===void 0&&(d=!1);var b=this.once(o,l,d,B);return function(){return b.valid&&_.off(b)}},r.prototype.off=function(o){if(!o.valid)throw new Error("handler is not valid!");this._pipe.remove(o._listenerHandler),o._reset()},r.prototype.reset=function(){this._pipe.removeAll()},r.prototype.destroyImp=function(){this.empty||((0,f.oneTimeWarning)("The event is destroying with listeners!"),this._pipe.removeAll())},r}(u.Destroyable);A.Event=i},9082:function(C,A,h){var m,g=this&&this.__extends||(m=function(r,o){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var B in d)Object.prototype.hasOwnProperty.call(d,B)&&(l[B]=d[B])},m(r,o)},function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function l(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}),w=this&&this.__generator||function(r,o){var l,d,B,_,b={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(F){return function(S){return function(U){if(l)throw new TypeError("Generator is already executing.");for(;_&&(_=0,U[0]&&(b=0)),b;)try{if(l=1,d&&(B=2&U[0]?d.return:U[0]?d.throw||((B=d.return)&&B.call(d),0):d.next)&&!(B=B.call(d,U[1])).done)return B;switch(d=0,B&&(U=[2&U[0],B.value]),U[0]){case 0:case 1:B=U;break;case 4:return b.label++,{value:U[1],done:!1};case 5:b.label++,d=U[1],U=[0];continue;case 7:U=b.ops.pop(),b.trys.pop();continue;default:if(!((B=(B=b.trys).length>0&&B[B.length-1])||U[0]!==6&&U[0]!==2)){b=0;continue}if(U[0]===3&&(!B||U[1]>B[0]&&U[1]<B[3])){b.label=U[1];break}if(U[0]===6&&b.label<B[1]){b.label=B[1],B=U;break}if(B&&b.label<B[2]){b.label=B[2],b.ops.push(U);break}B[2]&&b.ops.pop(),b.trys.pop();continue}U=o.call(r,b)}catch(T){U=[6,T],d=0}finally{l=B=0}if(5&U[0])throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}([F,S])}}},p=this&&this.__values||function(r){var o=typeof Symbol=="function"&&Symbol.iterator,l=o&&r[o],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(r,o){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,B,_=l.call(r),b=[];try{for(;(o===void 0||o-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){B={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(B)throw B.error}}return b},f=this&&this.__spreadArray||function(r,o,l){if(l||arguments.length===2)for(var d,B=0,_=o.length;B<_;B++)!d&&B in o||(d||(d=Array.prototype.slice.call(o,0,B)),d[B]=o[B]);return r.concat(d||Array.prototype.slice.call(o))};Object.defineProperty(A,"__esModule",{value:!0}),A.TreeItem=void 0;var c=h(1662),a=h(8368),i=h(7720),s=function(r){function o(l,d,B){d===void 0&&(d=!1);var _=r.call(this)||this;return _._tree=l,_._hasChildren=d,_._parent=_.disposeVar((0,c.react)(void 0)),_._level=_.disposeVar((0,c.react)(0)),_._uiTreeObject=_.disposeVar(new i.UiTreeObject(_)),_._id=B??(0,c.createGuid)(),_._id!=="_ROOT"&&o.wm.has(_._id)&&console.warn("创建了id(".concat(_._id,")相同的树节点,会导致之前的树节点无法索引!")),o.wm.set(_._id,_),_.dispose(function(){_._id==="_ROOT"||o.wm.has(_._id)?o.wm.delete(_._id):console.warn("树节点(".concat(_._id,")不在wm树上!"))}),_.dispose(_._parent.changed.disposableOn(function(){_._updateLevel()})),_.dispose(_._level.changed.disposableOn(function(){var b,E;if(_.children)try{for(var F=p(_.children),S=F.next();!S.done;S=F.next())S.value._updateLevel()}catch(U){b={error:U}}finally{try{S&&!S.done&&(E=F.return)&&E.call(F)}finally{if(b)throw b.error}}})),o.allTreeItems.set(_._id,_),_.dispose(function(){o.allTreeItems.delete(_._id)}),_}return g(o,r),o.getFromId=function(l){return o.wm.get(l)},Object.defineProperty(o.prototype,"uiTreeObject",{get:function(){return this._uiTreeObject},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),o.prototype._updateLevel=function(){this.parent&&(this._level.value=this.parent.level+1)},Object.defineProperty(o.prototype,"parent",{get:function(){return this._parent.value},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"parentChanged",{get:function(){return this._parent.changed},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"children",{get:function(){var l=this;if(this._hasChildren){if(!this._children){var d=this.disposeVar(new c.ObservableArray);this._children=d,this.dispose(d.toChangeEvent.disposableOn(function(b,E){var F,S,U,T;try{for(var Q=p(b),P=Q.next();!P.done;P=Q.next()){for(var I=P.value,M=I.start,K=I.deleteCount,W=I.items,L=M;L<M+K;++L)E.get(L)._parent.value=void 0;try{for(var O=(U=void 0,p(W)),H=O.next();!H.done;H=O.next()){var k=H.value;if(k.parent)throw console.error("请检查新增的treeItem是否正在使用!"),new Error("item.parent should not exist!");k._parent.value=l}}catch(G){U={error:G}}finally{try{H&&!H.done&&(T=O.return)&&T.call(O)}finally{if(U)throw U.error}}}}catch(G){F={error:G}}finally{try{P&&!P.done&&(S=Q.return)&&S.call(Q)}finally{if(F)throw F.error}}}));var B=new Set,_=new Set;this.dispose(d.toChangeEvent.disposableOn(function(b,E){var F,S,U,T,Q,P,I;if(l.tree){B.clear(),_.clear();try{for(var M=p(b),K=M.next();!K.done;K=M.next()){for(var W=K.value,L=W.start,O=W.deleteCount,H=W.items,k=L;k<L+O;++k)B.add(E.get(k));try{for(var G=(U=void 0,p(H)),R=G.next();!R.done;R=G.next()){var D=R.value;_.add(D)}}catch($){U={error:$}}finally{try{R&&!R.done&&(T=G.return)&&T.call(G)}finally{if(U)throw U.error}}}}catch($){F={error:$}}finally{try{K&&!K.done&&(S=M.return)&&S.call(M)}finally{if(F)throw F.error}}try{for(var N=p(B),Y=N.next();!Y.done;Y=N.next())D=Y.value,_.has(D)&&(B.delete(D),_.delete(D))}catch($){Q={error:$}}finally{try{Y&&!Y.done&&(P=N.return)&&P.call(N)}finally{if(Q)throw Q.error}}(I=l.tree)===null||I===void 0||I.itemChildrenToChange.emit(l,b,B,_)}})),this.dispose(d.changedEvent.disposableOn(function(){var b;(b=l.tree)===null||b===void 0||b.itemChildrenChanged.emit(l)})),this.dispose(d.toChangeEvent.disposableOn(function(){for(var b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];return l._childrenToChangeEvent&&(b=l._childrenToChangeEvent).emit.apply(b,f([],u(E),!1))})),this.dispose(d.changedEvent.disposableOn(function(){for(var b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];return l._childrenChangedEvent&&(b=l._childrenChangedEvent).emit.apply(b,f([],u(E),!1))}))}return this._children}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"childrenResetedEvent",{get:function(){return this._childrenResetedEvent||(this._childrenResetedEvent=new c.Event),this._childrenResetedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"childrenToChangeEvent",{get:function(){return this._childrenToChangeEvent||(this._childrenToChangeEvent=new c.Event),this._childrenToChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"childrenChangedEvent",{get:function(){return this._childrenChangedEvent||(this._childrenChangedEvent=new c.Event),this._childrenChangedEvent},enumerable:!1,configurable:!0}),o.prototype.resetChildren=function(l){l===void 0&&(l=!1),this._children&&(this._children.length=0),this._hasChildren=l,this._childrenResetedEvent&&this._childrenResetedEvent.emit(l)},o.prototype.getDescendants=function(l){var d,B,_,b,E,F;return w(this,function(S){switch(S.label){case 0:B=[],_=[],(d=this).children&&d.children.length>0&&(!l||l(d))&&(B.push(0),_.push(d.children)),S.label=1;case 1:return B.length>0?(b=B[B.length-1],E=_[_.length-1],[4,F=E.get(b)]):[3,3];case 2:return S.sent(),b<E.length-1?++B[B.length-1]:(_.pop(),B.pop()),F.children&&F.children.length>0&&(!l||l(F))&&(B.push(0),_.push(F.children)),[3,1];case 3:return[2]}})},o.prototype.getAncestors=function(l){var d;return w(this,function(B){switch(B.label){case 0:d=this.parent,B.label=1;case 1:return d?[4,d]:[3,3];case 2:return B.sent(),l&&!l(d)?[3,3]:(d=d.parent,[3,1]);case 3:return[2]}})},o.prototype.isDescendantOf=function(l){var d,B;try{for(var _=p(this.getAncestors()),b=_.next();!b.done;b=_.next())if(b.value===l)return!0}catch(E){d={error:E}}finally{try{b&&!b.done&&(B=_.return)&&B.call(_)}finally{if(d)throw d.error}}return!1},o.prototype.isAncestorOf=function(l){return l.isDescendantOf(this)},Object.defineProperty(o.prototype,"level",{get:function(){return this._level.value},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"levelChanged",{get:function(){return this._level.changed},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),o.prototype.canMoveTo=function(l,d){return(0,a.canMoveToTreeItem)(this,l,d)},o.prototype.moveTo=function(l,d){(0,a.moveToTreeItem)(this,l,d)},o.prototype.detachFromParent=function(){if(this.parent&&this.parent.children){var l=this.parent.children.indexOf(this);this.parent.children.splice(l,1)}},o.prototype.insertNewTreeItem=function(l,d){if(d&&d.tree!==this.tree)return console.warn("newTreeItem.tree !== this.tree"),!1;if(this.children&&l.startsWith("Inner"))return d&&this.children.push(d),!0;if(l==="Inner")return!1;var B=this.parent;if(!B||!B.children)return!1;var _=B.children.indexOf(this);return l.endsWith("Before")?d&&B.children.splice(_,0,d):l.endsWith("After")&&d&&B.children.splice(_+1,0,d),!0},o.wm=new Map,o.allTreeItems=new Map,o}(c.Destroyable);A.TreeItem=s},9122:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.clamp=void 0,A.clamp=function(h,m,g){return m===void 0&&(m=0),g===void 0&&(g=1),h<m?m:h>g?g:h}},9131:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadJs=void 0;var h=[];function m(g,w,p){if(h.includes(g))return console.warn("_loadJs ".concat(g," has loaded before!")),void(w&&w());var u=document.getElementsByTagName("head")[0],f=document.createElement("script");f.setAttribute("type","text/javascript"),f.setAttribute("src",g),f.onload=f.onreadystatechange=function(){this.readyState&&this.readyState!=="complete"||(h.push(g),w&&w(),f.onload=f.onreadystatechange=null)},f.onerror=function(c,a,i,s,r){p(r)},u.appendChild(f)}A.loadJs=function(g,w){if(w===void 0&&(w=!0),w){var p=window.L;window.L&&(window.L=void 0);var u=window.define;return window.define&&(window.define=void 0),new Promise(function(f,c){m(g,f,c)}).then(function(){return window.define=u,window.L=p,Promise.resolve()})}return new Promise(function(f,c){m(g,f,c)})}},9181:function(C,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),w=this&&this.__read||function(s,r){var o=typeof Symbol=="function"&&s[Symbol.iterator];if(!o)return s;var l,d,B=o.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=B.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(o=B.return)&&o.call(B)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPrimitivesContext=void 0;var p=h(1662),u=h(8106),f=h(7372),c=h(1023),a=function(s,r){return r.depth-s.depth},i=function(s){function r(){var o=s.call(this)||this;o._pois=[],o._size=[0,0],o._needRedraw=!1,o._needPickRedraw=!1,o._pickColorManager=new c.PickColorMananger;var l=document.createElement("canvas");l.style.width="100%",l.style.height="100%",o._canvasElement=l;var d=l.getContext("2d");if(d===null)throw new Error("cannot get context 2d!");return o._ctx=d,o._offscreenCanvasElement=document.createElement("canvas"),o._offscreenCtx=o._offscreenCanvasElement.getContext("2d"),o._offscreenCtx.imageSmoothingEnabled=!1,o._offscreenCanvasElement2=document.createElement("canvas"),o._offscreenCtx2=o._offscreenCanvasElement2.getContext("2d"),o._offscreenCtx2.imageSmoothingEnabled=!1,o.disposeVar((0,u.createAnimateFrameWithStartValues)(function(){var B=w(o._size,2),_=B[0],b=B[1],E=o._canvasElement,F=E.clientWidth,S=E.clientHeight;_===F&&b===S||(o._size[0]=F,o._size[1]=S,o._canvasElement.width=F,o._canvasElement.height=S,o._offscreenCanvasElement.width=F,o._offscreenCanvasElement.height=S,o._offscreenCanvasElement2.width=F,o._offscreenCanvasElement2.height=S,o._dirty()),o._needRedraw&&(o._needRedraw=!1,o._draw())})).start(),o}return g(r,s),Object.defineProperty(r.prototype,"element",{get:function(){return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pois",{get:function(){return this._pois},enumerable:!1,configurable:!0}),r.prototype._dirty=function(){this._needRedraw=!0,this._needPickRedraw=!0},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),r.prototype.addPoi=function(o){var l=this;if((0,p.getExtProp)(o,"listenHandler")===void 0)if(this._pois.indexOf(o)===-1){this._pois.push(o),this._dirty();var d=o._needRedrawEvent;if(d){var B=d.on(function(){l._needRedraw=!0});(0,p.setExtProp)(o,"needRedrawEventHandler",B)}var _=o._needPickRedrawEvent;if(_){var b=_.on(function(){l._needPickRedraw=!0});(0,p.setExtProp)(o,"needPickRedrawEventHandler",b)}}else console.error("同一个poi加了多次!");else console.error("可能有poi重复加载poiManager中!")},r.prototype.removePoi=function(o){var l=this._pois.indexOf(o);if(l!==-1){this._pois.splice(l,1),this._dirty();var d=o._needRedrawEvent;if(d){var B=(0,p.getExtProp)(o,"needRedrawEventHandler");B?d.off(B):console.error("poi没有listenHandler!")}var _=o._needPickRedrawEvent;if(_){var b=(0,p.getExtProp)(o,"needPickRedrawEventHandler");b?_.off(b):console.error("poi没有listenHandler!")}}else console.error("删除一个不存在的poi!")},r.prototype._draw=function(){var o=this;this._pois.sort(a);var l=w(this._size,2),d=l[0],B=l[1];this._ctx.clearRect(0,0,d,B),this._pois.forEach(function(_){return _.draw(o._ctx)})},r.prototype.pick=function(o,l,d,B){return this._needPickRedraw&&(this._needPickRedraw=!1,this._pickDraw()),this._getPickInfo(o,l,d,B)},r.prototype._pickDraw=function(){var o=this;this._pickColorManager.reset(),this._pois.sort(a);var l=w(this._size,2),d=l[0],B=l[1];this._offscreenCtx.clearRect(0,0,d,B),this._pois.forEach(function(_){_.drawForPick(o._offscreenCtx,function(b){var E=w(o._pickColorManager.createPickColor(_,b),3),F=E[0],S=E[1],U=E[2];return"rgb(".concat(F,", ").concat(S,", ").concat(U,")")})})},r.prototype._getPickInfo=function(o,l,d,B){for(var _=this._offscreenCtx.getImageData(o,l,d,B),b=[],E=_.data.length/4,F=0;F<E;++F){var S=_.data[4*F+0],U=_.data[4*F+1],T=_.data[4*F+2];if(_.data[4*F+3]===255){var Q=this._pickColorManager.getPickInfoFromColor(S,U,T);if(Q&&Q.poi&&!b.includes(Q)){var P=!0,I=w(this._size,2),M=I[0],K=I[1];this._offscreenCtx2.clearRect(0,0,M,K),Q.poi.drawForPick(this._offscreenCtx2,function(k){return"rgb(255, 255, 255)"});var W=this._offscreenCtx2.getImageData(o,l,d,B),L=W.data[4*F+0],O=W.data[4*F+1],H=W.data[4*F+2];W.data[4*F+3],L===255&&O===255&&H===255||(P=!1),P&&b.push(Q)}}}return b},r}(f.Destroyable);A.CanvasPrimitivesContext=i},9355:function(C,A,h){var m,g=this&&this.__extends||(m=function(a,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])},m(a,i)},function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=a}m(a,i),a.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}),w=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},p=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObjResetting=A.ObjResettingWithEvent=void 0;var u=h(1662),f=function(a){function i(s,r,o,l){o===void 0&&(o=!0);var d=a.call(this)||this;d._resetEvent=s,d._createFunc=r,d._obj=d.disposeVar((0,u.react)(void 0));var B=d._resetEvent,_=d._createFunc,b=function(){d._obj.value&&(d._obj.value.destroy(),d._obj.value=void 0)};return d.dispose(b),o&&(d._obj.value=l?_.apply(void 0,p([],w(l),!1)):_()),d.dispose(B.disposableOn(function(){for(var E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];b(),d._obj.value=_.apply(void 0,p([],w(E),!1))})),d}return g(i,a),Object.defineProperty(i.prototype,"obj",{get:function(){return this._obj.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"objChanged",{get:function(){return this._obj.changed},enumerable:!1,configurable:!0}),i}(u.Destroyable);A.ObjResettingWithEvent=f;var c=function(a){function i(s,r,o){r===void 0&&(r=!0);var l=a.call(this)||this;return l._createFunc=s,l._execOnInit=r,l._initParams=o,l._event=l.disposeVar(new u.Event),l._objResettingWithEvent=l.disposeVar(new f(l._event,l._createFunc,l._execOnInit,l._initParams)),l}return g(i,a),Object.defineProperty(i.prototype,"obj",{get:function(){return this._objResettingWithEvent.obj},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"objChanged",{get:function(){return this._objResettingWithEvent.objChanged},enumerable:!1,configurable:!0}),i.prototype.reset=function(){for(var s,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];(s=this._event).emit.apply(s,p([],w(r),!1))},i}(u.Destroyable);A.ObjResetting=c},9359:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Destroyable=A.destroyObject=void 0;var m=h(2082);Object.defineProperty(A,"destroyObject",{enumerable:!0,get:function(){return m.destroyObject}});var g=function(){function p(){this._memId=++p._lastMemId}return Object.defineProperty(p.prototype,"__v_skip",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"memId",{get:function(){return this._memId},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"disposers",{get:function(){return this._disposers||(this._disposers=[]),this._disposers},enumerable:!1,configurable:!0}),p.prototype.dispose=function(u){return this.disposers.push(u),u},p.prototype.d=function(u){return this.dispose(u)},p.prototype.disposeVar=function(u){return this.disposers.push(function(){return u.destroy()}),u},p.prototype.dv=function(u){return this.disposeVar(u)},p.prototype.tryDisposeVar=function(u){return this.disposers.push(function(){return u.tryDestroy()}),u},p.prototype.tdv=function(u){return this.tryDisposeVar(u)},p.prototype.autoDispose=function(u){return typeof u=="function"?this.dispose(u):this.disposeVar(u)},p.prototype.ad=function(u){return typeof u=="function"?this.dispose(u):this.disposeVar(u)},p.prototype.isDestroyed=function(){return!1},p.prototype.destroyImp=function(){},p.prototype.destroy=function(){if(this._toDestroyEvent&&this._toDestroyEvent.emit(),this.destroyImp(),this._disposers)try{for(var u=this._disposers,f=u.length-1;f>=0;--f)u[f]();u.length=0,this._disposers=void 0}catch(c){console.error("destroy get error! ".concat(c))}return(0,m.destroyObject)(this)},p.prototype.tryDestory=function(){if(!this.isDestroyed())return this.destroy()},p._lastMemId=-1,p}();A.Destroyable=g;var w=h(4899);Object.defineProperties(g.prototype,{toDestroyEvent:{get:function(){return this._toDestroyEvent===void 0&&(this._toDestroyEvent=this.disposeVar(new w.Event)),this._toDestroyEvent}}})},9367:function(C,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,i=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=i.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=i.return)&&f.call(i)}finally{if(a)throw a.error}}return s};Object.defineProperty(A,"__esModule",{value:!0}),A.createEnvEvalStrReact=void 0;var g=h(1662),w=h(2220);A.createEnvEvalStrReact=function(p,u){var f=m((0,g.getReactFuncs)(p),3),c=f[0],a=(f[1],f[2]),i=(0,g.react)(void 0),s=function(){var r,o=(r=c())!==null&&r!==void 0?r:u;i.value=o&&w.SceneObject.context.getStrFromEnv(o)};return s(),a&&i.dispose(a.disposableOn(s)),i.dispose(w.SceneObject.context.environmentVariablesChanged.disposableOn(s)),i}},9369:function(C,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=i[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivPointerClick=void 0;var w=h(7372),p=h(5010),u=function(f){function c(a,i){var s=f.call(this)||this;s._div=a,s._pointerClick=s.disposeVar(new p.PointerClick);var r=s,o=r.div,l=r.pointerClick,d=function(E){return l.pointerDown(E)},B=function(E){return l.pointerMove(E)},_=function(E){return l.pointerOut(E)},b=function(E){return l.pointerUp(E)};return o.addEventListener("pointerdown",d,i),o.addEventListener("pointermove",B,i),o.addEventListener("pointerout",_,i),o.addEventListener("pointerup",b,i),s.dispose(function(){o.removeEventListener("pointerdown",d,i),o.removeEventListener("pointermove",B,i),o.removeEventListener("pointerout",_,i),o.removeEventListener("pointerup",b,i)}),s}return g(c,f),Object.defineProperty(c.prototype,"div",{get:function(){return this._div},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"pointerClick",{get:function(){return this._pointerClick},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"clickEvent",{get:function(){return this.pointerClick.clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dbclickEvent",{get:function(){return this.pointerClick.dbclickEvent},enumerable:!1,configurable:!0}),c}(w.Destroyable);A.DivPointerClick=u},9374:function(C,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,i=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=i.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=i.return)&&f.call(i)}finally{if(a)throw a.error}}return s},g=this&&this.__spreadArray||function(p,u,f){if(f||arguments.length===2)for(var c,a=0,i=u.length;a<i;a++)!c&&a in u||(c||(c=Array.prototype.slice.call(u,0,a)),c[a]=u[a]);return p.concat(c||Array.prototype.slice.call(u))};Object.defineProperty(A,"__esModule",{value:!0}),A.getPromiseFromProcessing=void 0;var w=h(7372);A.getPromiseFromProcessing=function(p){for(var u=[],f=1;f<arguments.length;f++)u[f-1]=arguments[f];var c=-1;return[function(a){return c===p.runningId&&p.isRunning&&p.cancel(a)},new Promise(function(a,i){p.isRunning&&p.cancel(),p.reset();var s=new w.Destroyable;s.dispose(p.completeEvent.disposableOn(function(r){a(r),s.isDestroyed()?console.error("disposer is destroyed! ".concat(s)):s.destroy()})),s.dispose(p.errorEvent.disposableOn(function(r){i(r),s.isDestroyed()?console.error("disposer is destroyed! ".concat(s)):s.destroy()})),p.start.apply(p,g([],m(u),!1)),c=p.runningId})]}},9409:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.czmPixelFormats=void 0,A.czmPixelFormats=["DEPTH_COMPONENT","DEPTH_STENCIL","ALPHA","RED","RG","RGB","RGBA","LUMINANCE","LUMINANCE_ALPHA","RGB_DXT1","RGBA_DXT1","RGBA_DXT3","RGBA_DXT5","RGB_PVRTC_4BPPV1","RGB_PVRTC_2BPPV1","RGBA_PVRTC_4BPPV1","RGBA_PVRTC_2BPPV1","RGBA_ASTC","RGB_ETC1","RGB8_ETC2","RGBA8_ETC2_EAC","RGBA_BC7"]},9412:function(C,A,h){var m,g=this&&this.__extends||(m=function(r,o){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var B in d)Object.prototype.hasOwnProperty.call(d,B)&&(l[B]=d[B])},m(r,o)},function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function l(){this.constructor=r}m(r,o),r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}),w=this&&this.__values||function(r){var o=typeof Symbol=="function"&&Symbol.iterator,l=o&&r[o],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(r,o){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,B,_=l.call(r),b=[];try{for(;(o===void 0||o-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){B={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(B)throw B.error}}return b},u=this&&this.__spreadArray||function(r,o,l){if(l||arguments.length===2)for(var d,B=0,_=o.length;B<_;B++)!d&&B in o||(d||(d=Array.prototype.slice.call(o,0,B)),d[B]=o[B]);return r.concat(d||Array.prototype.slice.call(o))};Object.defineProperty(A,"__esModule",{value:!0}),A.SmartWorker=A.findTransferableObjectsFromArgs=void 0;var f=h(1662),c=h(7372);function a(r,o){var l,d,B,_,b,E,F,S;if(!(typeof r=="number"||typeof r=="string"||typeof r=="boolean"||r===void 0)){if(!(r instanceof String||r instanceof Boolean||r instanceof Date||r instanceof RegExp||r instanceof Blob||r instanceof File||r instanceof FileList)){if(r instanceof ArrayBuffer)o.indexOf(r)===-1&&o.push(r);else if(ArrayBuffer.isView(r))o.indexOf(r.buffer)===-1&&o.push(r.buffer);else if(r instanceof ImageBitmap)o.indexOf(r)===-1&&o.push(r);else if(!(r instanceof ImageData))if(r instanceof Map)try{for(var U=w(r),T=U.next();!T.done;T=U.next())a(T.value,o)}catch(O){l={error:O}}finally{try{T&&!T.done&&(d=U.return)&&d.call(U)}finally{if(l)throw l.error}}else if(r instanceof Set)try{for(var Q=w(r),P=Q.next();!P.done;P=Q.next())a(P.value,o)}catch(O){B={error:O}}finally{try{P&&!P.done&&(_=Q.return)&&_.call(Q)}finally{if(B)throw B.error}}else if(Array.isArray(r))try{for(var I=w(r),M=I.next();!M.done;M=I.next())a(M.value,o)}catch(O){b={error:O}}finally{try{M&&!M.done&&(E=I.return)&&E.call(I)}finally{if(b)throw b.error}}else{if(!(r instanceof Object))throw console.error("有不可使用的传递的类型!"),new Error("有不可使用的传递的类型!");try{for(var K=w(Object.entries(r)),W=K.next();!W.done;W=K.next()){var L=p(W.value,2);L[0],a(L[1],o)}}catch(O){F={error:O}}finally{try{W&&!W.done&&(S=K.return)&&S.call(K)}finally{if(F)throw F.error}}}}}}function i(){for(var r,o,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];try{var B=[];try{for(var _=w(l),b=_.next();!b.done;b=_.next())a(b.value,B)}catch(E){r={error:E}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}return B}catch{return}}A.findTransferableObjectsFromArgs=i;var s=function(r){function o(){var l=r.call(this)||this;l._resultEvent=new f.Event,l._lastExecId=-1;var d=URL.createObjectURL(new Blob([`
23
+
24
+ function _findTransferableObjectsFromArg(arg, transferableObjects) {
25
+ if (typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'boolean' || typeof arg === 'undefined') {
26
+ }
27
+ else if (arg instanceof String ||
28
+ arg instanceof Boolean ||
29
+ arg instanceof Date ||
30
+ arg instanceof RegExp ||
31
+ arg instanceof Blob ||
32
+ arg instanceof File ||
33
+ arg instanceof FileList) {
34
+ }
35
+ else if (arg instanceof ArrayBuffer) {
36
+ if (-1 === transferableObjects.indexOf(arg)) {
37
+ transferableObjects.push(arg);
38
+ }
39
+ }
40
+ else if (ArrayBuffer.isView(arg)) {
41
+ if (-1 === transferableObjects.indexOf(arg.buffer)) {
42
+ transferableObjects.push(arg.buffer);
43
+ }
44
+ }
45
+ else if (arg instanceof ImageBitmap) {
46
+ if (-1 === transferableObjects.indexOf(arg)) {
47
+ transferableObjects.push(arg);
48
+ }
49
+ }
50
+ else if (arg instanceof ImageData) {
51
+ }
52
+ else if (arg instanceof Map) {
53
+ for (let a of arg) {
54
+ _findTransferableObjectsFromArg(a, transferableObjects);
55
+ }
56
+ }
57
+ else if (arg instanceof Set) {
58
+ for (let a of arg) {
59
+ _findTransferableObjectsFromArg(a, transferableObjects);
60
+ }
61
+ }
62
+ else if (Array.isArray(arg)) {
63
+ for (let a of arg) {
64
+ _findTransferableObjectsFromArg(a, transferableObjects);
65
+ }
66
+ }
67
+ else if (arg instanceof Object) {
68
+ for (let [k, v] of Object.entries(arg)) {
69
+ _findTransferableObjectsFromArg(v, transferableObjects);
70
+ }
71
+ }
72
+ else {
73
+ console.error(\`有不可使用的传递的类型!\`);
74
+ throw new Error(\`有不可使用的传递的类型!\`);
75
+ }
76
+ }
77
+
78
+ function findTransferableObjectsFromArgs(...args) {
79
+ try {
80
+ const transferableObjects = [];
81
+ for (let arg of args) {
82
+ _findTransferableObjectsFromArg(arg, transferableObjects);
83
+ }
84
+ return transferableObjects;
85
+ }
86
+ catch (error) {
87
+ return undefined;
88
+ }
89
+ }
90
+
91
+ function progressFunc(execId, value) {
92
+ // @ts-ignore
93
+ const workerGlobal = globalThis;
94
+ const transferableObjects = findTransferableObjectsFromArgs(value);
95
+ const finalResult = {
96
+ type: 'function_progress',
97
+ execId,
98
+ progress: value,
99
+ };
100
+ if (transferableObjects) {
101
+ workerGlobal.postMessage(finalResult, transferableObjects);
102
+ }
103
+ else {
104
+ workerGlobal.postMessage(finalResult);
105
+ }
106
+ }
107
+
108
+ onmessage = function onmessageFunc(messageEvent) {
109
+ // DedicatedWorkerGlobalScope
110
+ // @ts-ignore
111
+ const workerGlobal = globalThis;
112
+ const { execId, type, name, args } = messageEvent.data;
113
+ if (type === 'function' || type === 'progressFunc') {
114
+ try {
115
+ // @ts-ignore
116
+ const func = workerGlobal[name];
117
+ if (typeof func !== 'function') {
118
+ console.error(\`typeof func !== 'function'\`);
119
+ throw new Error(\`typeof func !== 'function'\`);
120
+ }
121
+ let resultOrResultPromise;
122
+ if (type === 'progressFunc') {
123
+ // @ts-ignore
124
+ workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();
125
+ // @ts-ignore
126
+ const cancelFuncsMap = workerGlobal._cancelFuncsMap;
127
+ const localProgressFunc = (value) => {
128
+ progressFunc(execId, value);
129
+ };
130
+ let resolve_;
131
+ let reject_;
132
+ resultOrResultPromise = new Promise((resolve, reject) => {
133
+ resolve_ = resolve;
134
+ reject_ = reject;
135
+ });
136
+ let finished = false;
137
+ const completeFunc = (value) => {
138
+ finished = true;
139
+ if (cancelFuncsMap.has(execId)) {
140
+ cancelFuncsMap.delete(execId);
141
+ }
142
+ resolve_(value);
143
+ };
144
+ const errorFunc = (error) => {
145
+ finished = true;
146
+ if (cancelFuncsMap.has(execId)) {
147
+ cancelFuncsMap.delete(execId);
148
+ }
149
+ reject_(error);
150
+ };
151
+ const cancelFunc = func(localProgressFunc, completeFunc, errorFunc, ...args);
152
+ if (typeof cancelFunc === 'function') {
153
+ if (!finished) {
154
+ cancelFuncsMap.set(execId, cancelFunc);
155
+ }
156
+ }
157
+ else {
158
+ console.warn(\`typeof cancelFunc !== 'function'\`);
159
+ }
160
+ }
161
+ else if (type === 'function') {
162
+ resultOrResultPromise = func(...args);
163
+ }
164
+ if (resultOrResultPromise instanceof Promise) {
165
+ resultOrResultPromise.then(result => {
166
+ const transferableObjects = findTransferableObjectsFromArgs(result);
167
+ const finalResult = {
168
+ type: 'function_result',
169
+ execId,
170
+ result,
171
+ };
172
+ transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);
173
+ }).catch(error => {
174
+ const finalResult = {
175
+ type: 'function_result',
176
+ execId,
177
+ error,
178
+ };
179
+ workerGlobal.postMessage(finalResult);
180
+ });
181
+ }
182
+ else {
183
+ const result = resultOrResultPromise;
184
+ const finalResult = {
185
+ type: 'function_result',
186
+ execId,
187
+ result,
188
+ };
189
+ const transferableObjects = findTransferableObjectsFromArgs(result);
190
+ transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);
191
+ }
192
+ }
193
+ catch (error) {
194
+ const finalResult = {
195
+ type: 'function_result',
196
+ execId,
197
+ error,
198
+ };
199
+ workerGlobal.postMessage(finalResult);
200
+ }
201
+ }
202
+ else if (type === 'progressFunc_cancel') {
203
+ // @ts-ignore
204
+ workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();
205
+ // @ts-ignore
206
+ const cancelFuncsMap = workerGlobal._cancelFuncsMap;
207
+ // const execId = args[0];
208
+ if (typeof execId !== 'number') {
209
+ console.error(\`typeof execId !== 'number'\`);
210
+ }
211
+ else {
212
+ const cancelFunc = cancelFuncsMap.get(execId);
213
+ if (cancelFunc) {
214
+ cancelFunc(\`progressFunc cancel execId: \${execId}\`);
215
+ }
216
+ else {
217
+ // 找不到的原因可能是:
218
+ // 1 进度函数的返回值不对,不是一个取消函数!
219
+ // 2 进度函数已经被取消,再次执行取消时,就会警告!
220
+ console.warn(\`cancelFuncsMap cannot find execId: \${execId}\`);
221
+ }
222
+ }
223
+ }
224
+ else {
225
+ console.error('未知type!');
226
+ }
227
+ }
228
+ `]));return l.dispose(function(){return URL.revokeObjectURL(d)}),l._worker=new Worker(d),l.dispose(function(){return l._worker.terminate()}),l._worker.onmessage=function(B){l._resultEvent.emit(B)},l}return g(o,r),o.prototype.execWorkerFunc=function(l){for(var d=[],B=1;B<arguments.length;B++)d[B-1]=arguments[B];var _=i(d);if(_)return this.execWorkerFuncWithTransferableObjects.apply(this,u([l,_],p(d),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},o.prototype.execWorkerFuncWithTransferableObjects=function(l,d){var B=this;d===void 0&&(d=[]);for(var _=[],b=2;b<arguments.length;b++)_[b-2]=arguments[b];if(d)return new Promise(function(E,F){B._execWorkerFuncWithTransferableObjects.apply(B,u([l,E,F,d],p(_),!1))});throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},o.prototype._execWorkerFuncWithTransferableObjects=function(l,d,B,_){_===void 0&&(_=[]);for(var b=[],E=4;E<arguments.length;E++)b[E-4]=arguments[E];var F=++this._lastExecId,S={execId:F,type:"function",name:l,args:b};this._worker.postMessage(S,_);var U=this._resultEvent.disposableOn(function(T){var Q=T.data;Q.execId===F&&(Q.type==="function_result"?(U(),"error"in Q?B(Q.error):d(Q.result)):Q.type==="function_progress"&&console.error("messageData.type === 'function_progress'"))})},o.prototype.execWorkerProgressFunc=function(l,d,B,_){for(var b=[],E=4;E<arguments.length;E++)b[E-4]=arguments[E];var F=i(b);if(F)return this.execWorkerProgressFuncWithTransferableObjects.apply(this,u([l,d,B,_,F],p(b),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},o.prototype.execWorkerProgressFuncWithTransferableObjects=function(l,d,B,_,b){b===void 0&&(b=[]);for(var E=[],F=5;F<arguments.length;F++)E[F-5]=arguments[F];return this._execWorkerProgressFuncWithTransferableObjects.apply(this,u([l,d,B,_,b],p(E),!1))},o.prototype._execWorkerProgressFuncWithTransferableObjects=function(l,d,B,_,b){var E=this;b===void 0&&(b=[]);for(var F=[],S=5;S<arguments.length;S++)F[S-5]=arguments[S];var U=++this._lastExecId,T={execId:U,type:"progressFunc",name:l,args:F};this._worker.postMessage(T,b);var Q=this._resultEvent.disposableOn(function(P){var I=P.data;I.execId===U&&(I.type==="function_result"?(Q&&(Q(),Q=void 0),"error"in I?_(I.error):B(I.result)):I.type==="function_progress"&&d&&d(I.progress))});return function(){Q&&(Q(),Q=void 0),E._worker.postMessage({execId:U,type:"progressFunc_cancel",name:"funcName",args:[]})}},o.prototype.eval=function(l){return this.execWorkerFuncWithTransferableObjects("eval",[],l)},o.prototype.importScripts=function(l){return this.execWorkerFuncWithTransferableObjects("importScripts",[],l)},o.prototype.createGlobalFunc=function(l,d){return this.execWorkerFuncWithTransferableObjects("eval",[],"globalThis['".concat(d??l.name,"'] = ").concat(l.toString(),";undefined;"))},o}(c.Destroyable);A.SmartWorker=s},9486:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.saveOnBrowser=void 0,A.saveOnBrowser=function(h,m,g){g===void 0&&(m.endsWith(".gltf")?g="model/gltf+json":m.endsWith(".bin")?g="application/octet-stream":m.endsWith(".glb")?g="model/gltf-binary":m.endsWith(".jpg")||m.endsWith(".jpeg")?g="image/jpeg":m.endsWith(".png")?g="image/png":m.endsWith(".glsl")?g="text/plain":m.endsWith(".json")?g="application/json":m.endsWith(".b3dm")||m.endsWith(".i3dm")?g="application/octet-stream":console.warn("save ".concat(m,": MimeType无法确定!")));var w=new Blob([h],{type:g||""}),p=URL.createObjectURL(w),u=document.createElement("a"),f=new MouseEvent("click");u.download=m,u.href=p,u.dispatchEvent(f),URL.revokeObjectURL(p)}},9528:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.readFileFromBrowser=void 0,A.readFileFromBrowser=function(){return new Promise(function(h,m){var g=document.createElement("input");g.type="file",g.style.display="none";var w=new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window});g.dispatchEvent(w),g.addEventListener("change",function(p){var u=g.files;u&&u.length>0?u[0].text().then(function(f){h(f)}):m()})})}},9549:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Quaternion=void 0;var m=h(2731),g=h(9898),w=h(5985),p=h(4915),u=h(8089);(function(f){var c=(0,m.createNumbers)(3);function a(E,F,S){var U=F/2,T=Math.sin(U);g.Vector.normalize(E,c);var Q=c[0]*T,P=c[1]*T,I=c[2]*T,M=Math.cos(U);return S=S||(0,m.createNumbers)(4),g.Vector.clone([Q,P,I,M],S),S}f.fromAxisAngle=a;var i=(0,m.createNumbers)(3,1,2,0),s=(0,m.createNumbers)(3);function r(E,F){var S,U,T,Q,P,I=E[p.Matrix3.COLUMN0ROW0],M=E[p.Matrix3.COLUMN1ROW1],K=E[p.Matrix3.COLUMN2ROW2],W=I+M+K;if(W>0)P=.5*(S=Math.sqrt(W+1)),S=.5/S,U=(E[p.Matrix3.COLUMN1ROW2]-E[p.Matrix3.COLUMN2ROW1])*S,T=(E[p.Matrix3.COLUMN2ROW0]-E[p.Matrix3.COLUMN0ROW2])*S,Q=(E[p.Matrix3.COLUMN0ROW1]-E[p.Matrix3.COLUMN1ROW0])*S;else{var L=i,O=0;M>I&&(O=1),K>I&&K>M&&(O=2);var H=L[O],k=L[H];S=Math.sqrt(E[p.Matrix3.getElementIndex(O,O)]-E[p.Matrix3.getElementIndex(H,H)]-E[p.Matrix3.getElementIndex(k,k)]+1);var G=s;G[O]=.5*S,S=.5/S,P=(E[p.Matrix3.getElementIndex(k,H)]-E[p.Matrix3.getElementIndex(H,k)])*S,G[H]=(E[p.Matrix3.getElementIndex(H,O)]+E[p.Matrix3.getElementIndex(O,H)])*S,G[k]=(E[p.Matrix3.getElementIndex(k,O)]+E[p.Matrix3.getElementIndex(O,k)])*S,U=-G[0],T=-G[1],Q=-G[2]}return F?(F[0]=U,F[1]=T,F[2]=Q,F[3]=P,F):(0,m.createNumbers)(4,U,T,Q,P)}f.fromRotationMatrix3=r;var o=(0,m.createNumbers)(9);f.fromRotationMatrix4=function(E,F){return r(u.Matrix4.getMatrix3(E,o),F)},f.multiply=function(E,F,S){var U=E[0],T=E[1],Q=E[2],P=E[3],I=F[0],M=F[1],K=F[2],W=F[3],L=P*I+U*W+T*K-Q*M,O=P*M-U*K+T*W+Q*I,H=P*K+U*M-T*I+Q*W,k=P*W-U*I-T*M-Q*K;return g.Vector.set(S,L,O,H,k)};var l=(0,m.createNumbers)(3);f.rotationTo=function(E,F,S){var U=g.Vector.dot(E,F);return U<-.999999?(w.Vector3.cross(w.Vector3.UNIT_X,E,l),g.Vector.magnitudeSquared(l)<.001&&w.Vector3.cross(w.Vector3.UNIT_Y,E,l),g.Vector.normalize(l,l),a(l,Math.PI,S)):U>.999999?g.Vector.set(S,0,0,0,1):(w.Vector3.cross(E,F,l),S=g.Vector.set(S,l[0],l[1],l[2],1+U),g.Vector.normalize(S,S))};var d=(0,m.createNumbers)(4);f.lerp=function(E,F,S,U){return g.Vector.multiplyByScalar(F,S,d),U=g.Vector.multiplyByScalar(E,1-S,U),g.Vector.add(d,U,U)};var B=(0,m.createNumbers)(4),_=(0,m.createNumbers)(4),b=(0,m.createNumbers)(4);f.slerp=function(E,F,S,U){var T=g.Vector.dot(E,F),Q=F;if(T<0&&(T=-T,Q=g.Vector.negate(F,B)),1-T<1e-6)return g.Vector.lerp(E,Q,S,U);var P=Math.acos(T);return g.Vector.multiplyByScalar(E,Math.sin((1-S)*P),_),g.Vector.multiplyByScalar(Q,Math.sin(S*P),b),U=g.Vector.add(_,b,U),g.Vector.multiplyByScalar(U,1/Math.sin(P),U)}})(A.Quaternion||(A.Quaternion={}))},9597:function(C,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=i[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(A,"__esModule",{value:!0}),A.DomElementEvent=void 0;var w=h(7372),p=-1,u=function(f){function c(a,i,s,r){var o=f.call(this)||this;o._domElement=a,o._type=i,o.callback=r;var l=function(d){return d.__xbsj_listenerNo__=++p,d.__xbsj_listenerTime__=Date.now(),d.__xbsj_lastCurrentTarget__=d.currentTarget,o.emit(d),o.callback&&o.callback(d)};return o._domElement.addEventListener(o._type,l,s),o.dispose(function(){return o._domElement.removeEventListener(o._type,l,s)}),o}return g(c,f),c.getLastLisenNo=function(){return p},c.getCurrentTarget=function(a){return a.__xbsj_lastCurrentTarget__},c.getListenerNo=function(a){return a.__xbsj_listenerNo__},c.getListenerTime=function(a){return a.__xbsj_listenerTime__},c.on=function(a,i){var s=c.getLastLisenNo();return a.disposableOn(function(r){var o=c.getListenerNo(r);(o===void 0||o>s)&&i(r)})},Object.defineProperty(c.prototype,"element",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),c.create=function(a,i,s){return new c(a,i,s)},c}(w.Event);A.DomElementEvent=u},9631:function(C,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(o){c(o)}}function i(r){try{s(u.throw(r))}catch(o){c(o)}}function s(r){var o;r.done?f(r.value):(o=r.value,o instanceof p?o:new p(function(l){l(o)})).then(a,i)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(s){return function(r){return function(o){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&o[0]?u.return:o[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,o[1])).done)return f;switch(u=0,f&&(o=[2&o[0],f.value]),o[0]){case 0:case 1:f=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,u=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||o[0]!==6&&o[0]!==2)){a=0;continue}if(o[0]===3&&(!f||o[1]>f[0]&&o[1]<f[3])){a.label=o[1];break}if(o[0]===6&&a.label<f[1]){a.label=f[1],f=o;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(o);break}f[2]&&a.ops.pop(),a.trys.pop();continue}o=w.call(g,a)}catch(l){o=[6,l],u=0}finally{p=f=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchArrayBuffer=void 0,A.fetchArrayBuffer=function(g,w){return w===void 0&&(w=fetch),h(this,void 0,void 0,function(){var p;return m(this,function(u){switch(u.label){case 0:return[4,w(g)];case 1:return(p=u.sent()).ok?[4,p.arrayBuffer()]:[2,void 0];case 2:return[2,u.sent()]}})})}},9651:function(C,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var i,s,r=a.call(f),o=[];try{for(;(c===void 0||c-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return o};Object.defineProperty(A,"__esModule",{value:!0}),A.getEventFromPromise=A.getPromiseFromEvent=A.createCancelablePromise=A.pairToPromise=A.cancelPromise=A.isPromiseCancelable=A.getPromiseCancel=A.setPromiseCancel=void 0;var g=h(1662),w=h(7372);function p(f,c){(0,g.getExtProp)(f,"_promise_cancel")&&console.warn("setPromiseCancel warn: promise has cancelFunc!"),(0,g.setExtProp)(f,"_promise_cancel",c)}function u(f){return(0,g.getExtProp)(f,"_promise_cancel")}A.setPromiseCancel=p,A.getPromiseCancel=u,A.isPromiseCancelable=function(f){return!!u(f)},A.cancelPromise=function(f,c){var a=u(f);return!!a&&(a(c),!0)},A.pairToPromise=function(f){var c=m(f,2),a=c[0],i=c[1];return p(i,a),i},A.createCancelablePromise=function(f){var c,a=new Promise(function(i,s){c=s,f.then(i).catch(s)});return p(a,c),a},A.getPromiseFromEvent=function(f){var c,a,i=new Promise(function(s,r){a=f.disposableOn(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];a&&a(),s(o)}),c=function(o){a&&a(),r(o)}});return[c,i]},A.getEventFromPromise=function(f){var c=new w.Event,a=new w.Event;return f.then(function(i){c.isDestroyed()||c.emit(i)}).catch(function(i){a.isDestroyed()||a.emit(i)}),[c,a]}},9704:(C,A,h)=>{h.r(A),h.d(A,{decompressFrame:()=>u,decompressFrames:()=>f,parseGIF:()=>p});var m=h(4235),g=h(4638),w=h(733);const p=c=>{const a=new Uint8Array(c);return(0,g.parse)((0,w.buildStream)(a),m.A)},u=(c,a,i)=>{if(!c.image)return void console.warn("gif frame does not have associated image.");const{image:s}=c,r=s.descriptor.width*s.descriptor.height;var o=((d,B,_)=>{const E=_;var F,S,U,T,Q,P,I,M,K,W;const L=new Array(_),O=new Array(4096),H=new Array(4096),k=new Array(4097);for(Q=1+(S=1<<(W=d)),F=S+2,I=-1,U=(1<<(T=W+1))-1,M=0;M<S;M++)O[M]=0,H[M]=M;var G,R,D,N,Y,$;for(G=R=D=N=Y=$=0,K=0;K<E;){if(N===0){if(R<T){G+=B[$]<<R,R+=8,$++;continue}if(M=G&U,G>>=T,R-=T,M>F||M==Q)break;if(M==S){U=(1<<(T=W+1))-1,F=S+2,I=-1;continue}if(I==-1){k[N++]=H[M],I=M,D=M;continue}for(P=M,M==F&&(k[N++]=D,M=I);M>S;)k[N++]=H[M],M=O[M];D=255&H[M],k[N++]=D,F<4096&&(O[F]=I,H[F]=D,!(++F&U)&&F<4096&&(T++,U+=F)),I=P}N--,L[Y++]=k[N],K++}for(K=Y;K<E;K++)L[K]=0;return L})(s.data.minCodeSize,s.data.blocks,r);s.descriptor.lct.interlaced&&(o=((d,B)=>{const _=new Array(d.length),b=d.length/B,E=function(P,I){const M=d.slice(I*B,(I+1)*B);_.splice.apply(_,[P*B,B].concat(M))},F=[0,4,2,1],S=[8,8,4,2];for(var U=0,T=0;T<4;T++)for(var Q=F[T];Q<b;Q+=S[T])E(Q,U),U++;return _})(o,s.descriptor.width));const l={pixels:o,dims:{top:c.image.descriptor.top,left:c.image.descriptor.left,width:c.image.descriptor.width,height:c.image.descriptor.height}};return s.descriptor.lct&&s.descriptor.lct.exists?l.colorTable=s.lct:l.colorTable=a,c.gce&&(l.delay=10*(c.gce.delay||10),l.disposalType=c.gce.extras.disposal,c.gce.extras.transparentColorGiven&&(l.transparentIndex=c.gce.transparentColorIndex)),i&&(l.patch=(d=>{const B=d.pixels.length,_=new Uint8ClampedArray(4*B);for(var b=0;b<B;b++){const E=4*b,F=d.pixels[b],S=d.colorTable[F]||[0,0,0];_[E]=S[0],_[E+1]=S[1],_[E+2]=S[2],_[E+3]=F!==d.transparentIndex?255:0}return _})(l)),l},f=(c,a)=>c.frames.filter(i=>i.image).map(i=>u(i,c.gct,a))},9812:function(C,A,h){var m=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&a[i],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CullingVolume=void 0;var g=h(4416),w=h(312),p=h(6172),u=h(7215),f=h(8703),c=function(){function a(i){i===void 0&&(i=[]),this.planes=i}return a.fromProjectionMatrix=function(i,s){return(0,f._getCullingVolumeFromProjectionMatrix)(i,s)},a.prototype.computeVisibilityWithPlaneMask=function(i,s,r){if(r===a.MASK_OUTSIDE||r===a.MASK_INSIDE)return r;var o=a.MASK_INSIDE,l=this.planes;if(l)for(var d=0,B=l.length;d<B;++d){var _=d<31?1<<d:0;if(!(d<31)||r&_){var b=void 0;if(i==="box"?b=p.OrientedBoundingBox.intersectPlane(s,l[d]):i==="sphere"&&(b=g.BoundingSphere.intersectPlane(s,l[d])),b===w.Intersect.OUTSIDE)return a.MASK_OUTSIDE;b===w.Intersect.INTERSECTING&&(o|=_)}}return o},a.prototype.transform=function(i){var s,r;try{for(var o=m(this.planes),l=o.next();!l.done;l=o.next()){var d=l.value;u.Plane.transform(d,i,d)}}catch(B){s={error:B}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}},a.MASK_OUTSIDE=4294967295,a.MASK_INSIDE=0,a.MASK_INDETERMINATE=2147483647,a}();A.CullingVolume=c,A.default=c},9815:function(C,A,h){var m,g=this&&this.__extends||(m=function(i,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])},m(i,s)},function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=i}m(i,s),i.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)});Object.defineProperty(A,"__esModule",{value:!0}),A.Gif=void 0;var w=h(1662),p=h(5819),u=h(5819),f=h(7118),c=h(5281),a=function(i){function s(r){var o=i.call(this)||this;return o._url=o.disposeVar((0,w.react)("")),o._loadGifFramesProcessing=o.disposeVar((0,u.createProcessingFromPromiseCreateFunc)(function(l){return(0,p.createCancelablePromise)((0,c.loadGifFrames)(l))})),o._player=o.disposeVar(new f.GifPlayer(r)),o._player.autoPlayOnLoad=!0,o._loadGifFramesProcessing.completeFunc=function(l){var d=l.gifFrames;return o._player.gifFrames=d},o.dispose(o._url.changed.disposableOn(function(l){o._player.gifFrames=void 0,o._loadGifFramesProcessing.restart(new p.CancelError("reload gif(".concat(l,")")),l)})),o}return g(s,i),Object.defineProperty(s.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this._url.value},set:function(r){this._url.value=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"loadedEvent",{get:function(){return this._loadGifFramesProcessing.completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"size",{get:function(){return this._player.gifSize},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sizeChanged",{get:function(){return this._player.gifSizeChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"duration",{get:function(){return this._player.gifDuration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"durationChanged",{get:function(){return this._player.gifDurationChanged},enumerable:!1,configurable:!0}),s}(w.Destroyable);A.Gif=a},9898:function(C,A,h){var m=this&&this.__generator||function(w,p){var u,f,c,a,i={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(o){return function(l){if(u)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(u=1,f&&(c=2&l[0]?f.return:l[0]?f.throw||((c=f.return)&&c.call(f),0):f.next)&&!(c=c.call(f,l[1])).done)return c;switch(f=0,c&&(l=[2&l[0],c.value]),l[0]){case 0:case 1:c=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,f=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((c=(c=i.trys).length>0&&c[c.length-1])||l[0]!==6&&l[0]!==2)){i=0;continue}if(l[0]===3&&(!c||l[1]>c[0]&&l[1]<c[3])){i.label=l[1];break}if(l[0]===6&&i.label<c[1]){i.label=c[1],c=l;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(l);break}c[2]&&i.ops.pop(),i.trys.pop();continue}l=p.call(w,i)}catch(d){l=[6,d],f=0}finally{u=c=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([r,o])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.Vector=void 0;var g=h(2731);(function(w){function p(R,D){for(var N=R.length,Y=0;Y<N;++Y)if(!D(R[Y],Y))return!1;return!0}function u(R,D,N){for(var Y=R.length,$=N,q=0;q<Y;++q)$=D($,R[q],q);return $}w.set=function(R){for(var D=[],N=1;N<arguments.length;N++)D[N-1]=arguments[N];if(R=R||(0,g.createNumbers)(D.length),D.length>R.length)throw new Error("args.length > target.length");return R instanceof Float64Array?R.set(D):T(D,R),R},w.every=p,w.reduce=u,w.itr=function(R){var D;return m(this,function(N){switch(N.label){case 0:D=0,N.label=1;case 1:return D<R.length?[4,R[D]]:[3,4];case 2:N.sent(),N.label=3;case 3:return++D,[3,1];case 4:return[2]}})};var f,c=function(R,D){return R+D*D};function a(R){return u(R,c,0)}w.magnitudeSquared=a,w.magnitude=function(R){var D=a(R);return Math.sqrt(D)},w.isNormalized=function(R,D){D===void 0&&(D=1e-5);var N=a(R);return Math.abs(N-1)<D};var i,s=function(R,D,N){return R+D*f[N]};w.dot=function(R,D){return E(R,D),f=D,u(R,s,0)};var r,o=function(R,D,N){return R+(D-i[N])*(D-i[N])};function l(R,D){return E(R,D),i=D,u(R,o,0)}w.distanceSquared=l,w.distance=function(R,D){return Math.sqrt(l(R,D))};var d,B,_=function(R,D){return R===r[D]};w.equals=function(R,D){return E(R,D),r=D,p(R,_)};var b=function(R,D){return Math.abs(R-d[D])<B};function E(R,D){if(R.length!==D.length)throw new Error("left.length !== right.length")}function F(R,D,N){var Y=R.length;E(R,N=N||(0,g.createNumbers)(Y));for(var $=0;$<Y;++$)N[$]=D(R[$],$);return N}function S(R,D,N,Y){E(R,D),Y&&E(R,Y);var $=R.length;Y=Y||(0,g.createNumbers)($);for(var q=0;q<$;++q)Y[q]=N(R[q],D[q]);return Y}w.equalsEpsilon=function(R,D,N){return N===void 0&&(N=0),E(R,D),d=D,B=N,p(R,b)},w.op1=F,w.op2=S;var U=function(R){return R};function T(R,D){return F(R,U,D)}w.clone=T;var Q=0,P=function(R,D){return R*Q};function I(R,D,N){return Q=D,F(R,P,N)}w.multiplyByScalar=I,w.normalize=function(R,D,N){N===void 0&&(N=0);var Y=a(R);if(!(Y<=N))return I(R,1/Math.sqrt(Y),D)},w.negate=function(R,D){return I(R,-1,D)};var M=function(R){return Math.abs(R)};w.abs=function(R,D){return F(R,M,D)};var K=function(R){return R-Math.floor(R)};w.fract=function(R,D){return F(R,K,D)};var W=function(R,D){return R-D};w.subtract=function(R,D,N){return S(R,D,W,N)};var L=function(R,D){return R+D};w.add=function(R,D,N){return S(R,D,L,N)};var O=function(R,D){return R*D};w.multiply=function(R,D,N){return S(R,D,O,N)};var H,k=function(R,D){return R/D};w.divide=function(R,D,N){return S(R,D,k,N)};var G=function(R,D){return R*(1-H)+D*H};w.lerp=function(R,D,N,Y){return H=N,S(R,D,G,Y)}})(A.Vector||(A.Vector={}))},9910:(C,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.destroyScalableArray=A.createScalableArray=void 0;var m=h(1085),g=function(){function u(){this._array=[]}return Object.defineProperty(u.prototype,"array",{get:function(){return this._array},enumerable:!1,configurable:!0}),u}(),w=new m.ObjPool(function(){return new g}),p=new WeakMap;A.createScalableArray=function(){var u=w.create();return p.set(u.array,u),u.array},A.destroyScalableArray=function(u){var f=p.get(u);if(!f)throw console.warn("!obj"),new Error("!obj");w.destroy(f)}},9928:(C,A,h)=>{function m(g,w,p,u,f){this._format=g,this._width=w,this._height=p,this._buffer=u,this._mipLevels=f}h.r(A),h.d(A,{CompressedTextureBuffer:()=>m}),Object.defineProperties(m.prototype,{internalFormat:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}},mipLevels:{get:function(){return this._mipLevels}}}),m.clone=function(g){if(g)return new m(g._format,g._width,g._height,g._buffer,g._mipLevels)},m.prototype.clone=function(){return m.clone(this)}},9970:(C,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.nodeBufferToUint8Array=void 0,A.nodeBufferToUint8Array=function(h){return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}},9972:function(C,A,h){var m=this&&this.__read||function(a,i){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,o,l=s.call(a),d=[];try{for(;(i===void 0||i-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(B){o={error:B}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return d},g=this&&this.__spreadArray||function(a,i,s){if(s||arguments.length===2)for(var r,o=0,l=i.length;o<l;o++)!r&&o in i||(r||(r=Array.prototype.slice.call(i,0,o)),r[o]=i[o]);return a.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.createFetchingWithStartValues=A.createFetching=A.cancelableFetch=A.cancelableFetchWithProgress=void 0;var w=h(5726),p=h(9651),u=h(921);function f(a){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var r=new AbortController,o=r.signal,l=m(i,2),d=l[0],B=l[1];if(B!=null&&B.signal)throw console.error("init?.signal"),new Error("init?.signal");(B=B||{}).signal&&console.warn("revocableFetch error: init.signal would be override!"),B.signal=o;var _=!1,b=fetch(d,B);return a&&(b=b.then(function(E){if(!E.ok)return E;if(!E.body)throw Error("ReadableStream not yet supported in this browser.");var F=E.headers.get("content-length");F||console.warn("response.headers.get('content-length') is undefined... cannot get contentLength!");var S=F?parseInt(F,10):0,U=0;return new Response(new ReadableStream({start:function(T){if(!E.body)throw new Error("!response.body");var Q=E.body.getReader();(function P(){Q.read().then(function(I){var M=I.done,K=I.value;if(M)T.close();else{if(!K)throw new Error("!value");if(!a)throw new Error("!progressFunc");U+=K.byteLength,a(U,S),T.enqueue(K),P()}}).catch(function(I){T.error(I)})})()}}),{status:E.status,statusText:E.statusText,headers:E.headers})}).catch(function(E){throw _?(E instanceof Error&&E.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new w.CancelError("fetching cancelled! error: ".concat(E))):(E instanceof Error&&E.code===20&&console.error("error.code === 20"),E)})),(0,p.setPromiseCancel)(b,function(){_=!0,r.abort()}),b}function c(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return f.apply(void 0,g([void 0],m(a),!1))}A.cancelableFetchWithProgress=function(a){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return f.apply(void 0,g([a],m(i),!1))},A.cancelableFetch=c,A.createFetching=function(){return(0,u.createProcessingFromPromiseCreateFunc)(c)},A.createFetchingWithStartValues=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return u.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,g([c],m(a),!1))}},9986:function(C,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=i[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),w=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var i,s,r=a.call(f),o=[];try{for(;(c===void 0||c-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return o};Object.defineProperty(A,"__esModule",{value:!0}),A.PosFloatDiv=void 0;var p=h(7372),u=function(f){function c(){var a=f.call(this)||this;a._originOffsetX=0,a._originOffsetY=0,a._originRatioX=.5,a._originRatioY=1,a._divChanged=new p.Event;var i=document.createElement("div");i.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible;";var s=document.createElement("div");s.style.cssText="position: absolute; left: ".concat(-a._originOffsetX,"px; top: ").concat(-a._originOffsetY,"px; transform: translateX(-").concat(100*a._originRatioX,"%) translateY(-").concat(100*a._originRatioY,"%); margin: 0; padding: 0; pointer-events: none;");var r=document.createElement("div");a._contentDiv=r,s.appendChild(r),i.appendChild(s);var o=function(l){l.stopPropagation()};return i.addEventListener("pointermove",o),i.addEventListener("pointerdown",o),i.addEventListener("pointerup",o),a.dispose(function(){i.removeEventListener("pointermove",o),i.removeEventListener("pointerdown",o),i.removeEventListener("pointerup",o)}),a._div=i,a.dispose(a._divChanged.disposableOn(function(){s.style.left="".concat(-a._originOffsetX,"px"),s.style.top="".concat(-a._originOffsetY,"px"),s.style.transform="translateX(-".concat(100*a._originRatioX,"%) translateY(-").concat(100*a._originRatioY,"%)")})),a.dispose(a.winPosChanged.disposableOn(function(l){var d=w(l,2),B=d[0],_=d[1];a._div.style.left="".concat(B,"px"),a._div.style.top="".concat(_,"px")})),a.dispose(a.opacityChanged.disposableOn(function(l){a._div.style.opacity="".concat(l)})),a.dispose(a.showChanged.disposableOn(function(l){a._div.style.visibility=l?"visible":"hidden"})),a}return g(c,f),Object.defineProperty(c.prototype,"contentDiv",{get:function(){return this._contentDiv},enumerable:!1,configurable:!0}),c.prototype.reset=function(){},Object.defineProperty(c.prototype,"originOffsetX",{get:function(){return this._originOffsetX},set:function(a){this._originOffsetX!==a&&(this._originOffsetX=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originOffsetY",{get:function(){return this._originOffsetY},set:function(a){this._originOffsetY!==a&&(this._originOffsetY=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originRatioX",{get:function(){return this._originRatioX},set:function(a){this._originRatioX!==a&&(this._originRatioX=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originRatioY",{get:function(){return this._originRatioY},set:function(a){this._originRatioY!==a&&(this._originRatioY=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),c}(h(7324).FloatDiv);A.PosFloatDiv=u}},n={};function y(C){var A=n[C];if(A!==void 0)return A.exports;var h=n[C]={exports:{}};return t[C].call(h.exports,h,h.exports,y),h.exports}return y.n=C=>{var A=C&&C.__esModule?()=>C.default:()=>C;return y.d(A,{a:A}),A},y.d=(C,A)=>{for(var h in A)y.o(A,h)&&!y.o(C,h)&&Object.defineProperty(C,h,{enumerable:!0,get:A[h]})},y.o=(C,A)=>Object.prototype.hasOwnProperty.call(C,A),y.r=C=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},y(4221)})())}(At)),At.exports}var V=Ku();const Nu={...j.ESViewer.defaults,geoReferenceOrigin:void 0,keepWorldOriginNearCamera:!1,useCache:!0,widgetInteractionDistance:200,memReportInterval:10,sceneControlled:!0,brightness:0,emissiveIntensity:1,statusUpdateInterval:.5,baseUrl:window.location.href??""},Ss=()=>({...j.ESViewer.createCommonProps(),apiKey:"",apiUrl:"",secretKey:"",speechVoiceMode:"",geoReferenceOrigin:V.reactArrayWithUndefined(void 0),keepWorldOriginNearCamera:void 0,useCache:void 0,widgetInteractionDistance:void 0,memReportInterval:void 0,sceneControlled:void 0,brightness:void 0,emissiveIntensity:void 0,statusUpdateInterval:void 0,baseUrl:void 0});function NA(){const v=Ss(),e=[];return Object.keys(v).forEach(t=>{e.push(t)}),e}function Zn(v){const{defaults:e}=st,t=NA(),n={};return t.forEach(y=>{n[y]=v[y]??e[y]}),n}var qn={exports:{}},Qs;function Vu(){return Qs||(Qs=1,function(v){const e={};e.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},e.localCName=e.generateIdentifier(),e.splitLines=function(t){return t.trim().split(`
229
+ `).map(n=>n.trim())},e.splitSections=function(t){return t.split(`
230
+ m=`).map((y,C)=>(C>0?"m="+y:y).trim()+`\r
231
+ `)},e.getDescription=function(t){const n=e.splitSections(t);return n&&n[0]},e.getMediaSections=function(t){const n=e.splitSections(t);return n.shift(),n},e.matchPrefix=function(t,n){return e.splitLines(t).filter(y=>y.indexOf(n)===0)},e.parseCandidate=function(t){let n;t.indexOf("a=candidate:")===0?n=t.substring(12).split(" "):n=t.substring(10).split(" ");const y={foundation:n[0],component:{1:"rtp",2:"rtcp"}[n[1]]||n[1],protocol:n[2].toLowerCase(),priority:parseInt(n[3],10),ip:n[4],address:n[4],port:parseInt(n[5],10),type:n[7]};for(let C=8;C<n.length;C+=2)switch(n[C]){case"raddr":y.relatedAddress=n[C+1];break;case"rport":y.relatedPort=parseInt(n[C+1],10);break;case"tcptype":y.tcpType=n[C+1];break;case"ufrag":y.ufrag=n[C+1],y.usernameFragment=n[C+1];break;default:y[n[C]]===void 0&&(y[n[C]]=n[C+1]);break}return y},e.writeCandidate=function(t){const n=[];n.push(t.foundation);const y=t.component;y==="rtp"?n.push(1):y==="rtcp"?n.push(2):n.push(y),n.push(t.protocol.toUpperCase()),n.push(t.priority),n.push(t.address||t.ip),n.push(t.port);const C=t.type;return n.push("typ"),n.push(C),C!=="host"&&t.relatedAddress&&t.relatedPort&&(n.push("raddr"),n.push(t.relatedAddress),n.push("rport"),n.push(t.relatedPort)),t.tcpType&&t.protocol.toLowerCase()==="tcp"&&(n.push("tcptype"),n.push(t.tcpType)),(t.usernameFragment||t.ufrag)&&(n.push("ufrag"),n.push(t.usernameFragment||t.ufrag)),"candidate:"+n.join(" ")},e.parseIceOptions=function(t){return t.substring(14).split(" ")},e.parseRtpMap=function(t){let n=t.substring(9).split(" ");const y={payloadType:parseInt(n.shift(),10)};return n=n[0].split("/"),y.name=n[0],y.clockRate=parseInt(n[1],10),y.channels=n.length===3?parseInt(n[2],10):1,y.numChannels=y.channels,y},e.writeRtpMap=function(t){let n=t.payloadType;t.preferredPayloadType!==void 0&&(n=t.preferredPayloadType);const y=t.channels||t.numChannels||1;return"a=rtpmap:"+n+" "+t.name+"/"+t.clockRate+(y!==1?"/"+y:"")+`\r
232
+ `},e.parseExtmap=function(t){const n=t.substring(9).split(" ");return{id:parseInt(n[0],10),direction:n[0].indexOf("/")>0?n[0].split("/")[1]:"sendrecv",uri:n[1],attributes:n.slice(2).join(" ")}},e.writeExtmap=function(t){return"a=extmap:"+(t.id||t.preferredId)+(t.direction&&t.direction!=="sendrecv"?"/"+t.direction:"")+" "+t.uri+(t.attributes?" "+t.attributes:"")+`\r
233
+ `},e.parseFmtp=function(t){const n={};let y;const C=t.substring(t.indexOf(" ")+1).split(";");for(let A=0;A<C.length;A++)y=C[A].trim().split("="),n[y[0].trim()]=y[1];return n},e.writeFmtp=function(t){let n="",y=t.payloadType;if(t.preferredPayloadType!==void 0&&(y=t.preferredPayloadType),t.parameters&&Object.keys(t.parameters).length){const C=[];Object.keys(t.parameters).forEach(A=>{t.parameters[A]!==void 0?C.push(A+"="+t.parameters[A]):C.push(A)}),n+="a=fmtp:"+y+" "+C.join(";")+`\r
234
+ `}return n},e.parseRtcpFb=function(t){const n=t.substring(t.indexOf(" ")+1).split(" ");return{type:n.shift(),parameter:n.join(" ")}},e.writeRtcpFb=function(t){let n="",y=t.payloadType;return t.preferredPayloadType!==void 0&&(y=t.preferredPayloadType),t.rtcpFeedback&&t.rtcpFeedback.length&&t.rtcpFeedback.forEach(C=>{n+="a=rtcp-fb:"+y+" "+C.type+(C.parameter&&C.parameter.length?" "+C.parameter:"")+`\r
235
+ `}),n},e.parseSsrcMedia=function(t){const n=t.indexOf(" "),y={ssrc:parseInt(t.substring(7,n),10)},C=t.indexOf(":",n);return C>-1?(y.attribute=t.substring(n+1,C),y.value=t.substring(C+1)):y.attribute=t.substring(n+1),y},e.parseSsrcGroup=function(t){const n=t.substring(13).split(" ");return{semantics:n.shift(),ssrcs:n.map(y=>parseInt(y,10))}},e.getMid=function(t){const n=e.matchPrefix(t,"a=mid:")[0];if(n)return n.substring(6)},e.parseFingerprint=function(t){const n=t.substring(14).split(" ");return{algorithm:n[0].toLowerCase(),value:n[1].toUpperCase()}},e.getDtlsParameters=function(t,n){return{role:"auto",fingerprints:e.matchPrefix(t+n,"a=fingerprint:").map(e.parseFingerprint)}},e.writeDtlsParameters=function(t,n){let y="a=setup:"+n+`\r
236
+ `;return t.fingerprints.forEach(C=>{y+="a=fingerprint:"+C.algorithm+" "+C.value+`\r
237
+ `}),y},e.parseCryptoLine=function(t){const n=t.substring(9).split(" ");return{tag:parseInt(n[0],10),cryptoSuite:n[1],keyParams:n[2],sessionParams:n.slice(3)}},e.writeCryptoLine=function(t){return"a=crypto:"+t.tag+" "+t.cryptoSuite+" "+(typeof t.keyParams=="object"?e.writeCryptoKeyParams(t.keyParams):t.keyParams)+(t.sessionParams?" "+t.sessionParams.join(" "):"")+`\r
238
+ `},e.parseCryptoKeyParams=function(t){if(t.indexOf("inline:")!==0)return null;const n=t.substring(7).split("|");return{keyMethod:"inline",keySalt:n[0],lifeTime:n[1],mkiValue:n[2]?n[2].split(":")[0]:void 0,mkiLength:n[2]?n[2].split(":")[1]:void 0}},e.writeCryptoKeyParams=function(t){return t.keyMethod+":"+t.keySalt+(t.lifeTime?"|"+t.lifeTime:"")+(t.mkiValue&&t.mkiLength?"|"+t.mkiValue+":"+t.mkiLength:"")},e.getCryptoParameters=function(t,n){return e.matchPrefix(t+n,"a=crypto:").map(e.parseCryptoLine)},e.getIceParameters=function(t,n){const y=e.matchPrefix(t+n,"a=ice-ufrag:")[0],C=e.matchPrefix(t+n,"a=ice-pwd:")[0];return y&&C?{usernameFragment:y.substring(12),password:C.substring(10)}:null},e.writeIceParameters=function(t){let n="a=ice-ufrag:"+t.usernameFragment+`\r
239
+ a=ice-pwd:`+t.password+`\r
240
+ `;return t.iceLite&&(n+=`a=ice-lite\r
241
+ `),n},e.parseRtpParameters=function(t){const n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},C=e.splitLines(t)[0].split(" ");n.profile=C[2];for(let h=3;h<C.length;h++){const m=C[h],g=e.matchPrefix(t,"a=rtpmap:"+m+" ")[0];if(g){const w=e.parseRtpMap(g),p=e.matchPrefix(t,"a=fmtp:"+m+" ");switch(w.parameters=p.length?e.parseFmtp(p[0]):{},w.rtcpFeedback=e.matchPrefix(t,"a=rtcp-fb:"+m+" ").map(e.parseRtcpFb),n.codecs.push(w),w.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(w.name.toUpperCase());break}}}e.matchPrefix(t,"a=extmap:").forEach(h=>{n.headerExtensions.push(e.parseExtmap(h))});const A=e.matchPrefix(t,"a=rtcp-fb:* ").map(e.parseRtcpFb);return n.codecs.forEach(h=>{A.forEach(m=>{h.rtcpFeedback.find(w=>w.type===m.type&&w.parameter===m.parameter)||h.rtcpFeedback.push(m)})}),n},e.writeRtpDescription=function(t,n){let y="";y+="m="+t+" ",y+=n.codecs.length>0?"9":"0",y+=" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" ",y+=n.codecs.map(A=>A.preferredPayloadType!==void 0?A.preferredPayloadType:A.payloadType).join(" ")+`\r
242
+ `,y+=`c=IN IP4 0.0.0.0\r
243
+ `,y+=`a=rtcp:9 IN IP4 0.0.0.0\r
244
+ `,n.codecs.forEach(A=>{y+=e.writeRtpMap(A),y+=e.writeFmtp(A),y+=e.writeRtcpFb(A)});let C=0;return n.codecs.forEach(A=>{A.maxptime>C&&(C=A.maxptime)}),C>0&&(y+="a=maxptime:"+C+`\r
245
+ `),n.headerExtensions&&n.headerExtensions.forEach(A=>{y+=e.writeExtmap(A)}),y},e.parseRtpEncodingParameters=function(t){const n=[],y=e.parseRtpParameters(t),C=y.fecMechanisms.indexOf("RED")!==-1,A=y.fecMechanisms.indexOf("ULPFEC")!==-1,h=e.matchPrefix(t,"a=ssrc:").map(u=>e.parseSsrcMedia(u)).filter(u=>u.attribute==="cname"),m=h.length>0&&h[0].ssrc;let g;const w=e.matchPrefix(t,"a=ssrc-group:FID").map(u=>u.substring(17).split(" ").map(c=>parseInt(c,10)));w.length>0&&w[0].length>1&&w[0][0]===m&&(g=w[0][1]),y.codecs.forEach(u=>{if(u.name.toUpperCase()==="RTX"&&u.parameters.apt){let f={ssrc:m,codecPayloadType:parseInt(u.parameters.apt,10)};m&&g&&(f.rtx={ssrc:g}),n.push(f),C&&(f=JSON.parse(JSON.stringify(f)),f.fec={ssrc:m,mechanism:A?"red+ulpfec":"red"},n.push(f))}}),n.length===0&&m&&n.push({ssrc:m});let p=e.matchPrefix(t,"b=");return p.length&&(p[0].indexOf("b=TIAS:")===0?p=parseInt(p[0].substring(7),10):p[0].indexOf("b=AS:")===0?p=parseInt(p[0].substring(5),10)*1e3*.95-16e3:p=void 0,n.forEach(u=>{u.maxBitrate=p})),n},e.parseRtcpParameters=function(t){const n={},y=e.matchPrefix(t,"a=ssrc:").map(h=>e.parseSsrcMedia(h)).filter(h=>h.attribute==="cname")[0];y&&(n.cname=y.value,n.ssrc=y.ssrc);const C=e.matchPrefix(t,"a=rtcp-rsize");n.reducedSize=C.length>0,n.compound=C.length===0;const A=e.matchPrefix(t,"a=rtcp-mux");return n.mux=A.length>0,n},e.writeRtcpParameters=function(t){let n="";return t.reducedSize&&(n+=`a=rtcp-rsize\r
246
+ `),t.mux&&(n+=`a=rtcp-mux\r
247
+ `),t.ssrc!==void 0&&t.cname&&(n+="a=ssrc:"+t.ssrc+" cname:"+t.cname+`\r
248
+ `),n},e.parseMsid=function(t){let n;const y=e.matchPrefix(t,"a=msid:");if(y.length===1)return n=y[0].substring(7).split(" "),{stream:n[0],track:n[1]};const C=e.matchPrefix(t,"a=ssrc:").map(A=>e.parseSsrcMedia(A)).filter(A=>A.attribute==="msid");if(C.length>0)return n=C[0].value.split(" "),{stream:n[0],track:n[1]}},e.parseSctpDescription=function(t){const n=e.parseMLine(t),y=e.matchPrefix(t,"a=max-message-size:");let C;y.length>0&&(C=parseInt(y[0].substring(19),10)),isNaN(C)&&(C=65536);const A=e.matchPrefix(t,"a=sctp-port:");if(A.length>0)return{port:parseInt(A[0].substring(12),10),protocol:n.fmt,maxMessageSize:C};const h=e.matchPrefix(t,"a=sctpmap:");if(h.length>0){const m=h[0].substring(10).split(" ");return{port:parseInt(m[0],10),protocol:m[1],maxMessageSize:C}}},e.writeSctpDescription=function(t,n){let y=[];return t.protocol!=="DTLS/SCTP"?y=["m="+t.kind+" 9 "+t.protocol+" "+n.protocol+`\r
249
+ `,`c=IN IP4 0.0.0.0\r
250
+ `,"a=sctp-port:"+n.port+`\r
251
+ `]:y=["m="+t.kind+" 9 "+t.protocol+" "+n.port+`\r
252
+ `,`c=IN IP4 0.0.0.0\r
253
+ `,"a=sctpmap:"+n.port+" "+n.protocol+` 65535\r
254
+ `],n.maxMessageSize!==void 0&&y.push("a=max-message-size:"+n.maxMessageSize+`\r
255
+ `),y.join("")},e.generateSessionId=function(){return Math.random().toString().substr(2,22)},e.writeSessionBoilerplate=function(t,n,y){let C;const A=n!==void 0?n:2;return t?C=t:C=e.generateSessionId(),`v=0\r
256
+ o=`+(y||"thisisadapterortc")+" "+C+" "+A+` IN IP4 127.0.0.1\r
257
+ s=-\r
258
+ t=0 0\r
259
+ `},e.getDirection=function(t,n){const y=e.splitLines(t);for(let C=0;C<y.length;C++)switch(y[C]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return y[C].substring(2)}return n?e.getDirection(n):"sendrecv"},e.getKind=function(t){return e.splitLines(t)[0].split(" ")[0].substring(2)},e.isRejected=function(t){return t.split(" ",2)[1]==="0"},e.parseMLine=function(t){const y=e.splitLines(t)[0].substring(2).split(" ");return{kind:y[0],port:parseInt(y[1],10),protocol:y[2],fmt:y.slice(3).join(" ")}},e.parseOLine=function(t){const y=e.matchPrefix(t,"o=")[0].substring(2).split(" ");return{username:y[0],sessionId:y[1],sessionVersion:parseInt(y[2],10),netType:y[3],addressType:y[4],address:y[5]}},e.isValidSDP=function(t){if(typeof t!="string"||t.length===0)return!1;const n=e.splitLines(t);for(let y=0;y<n.length;y++)if(n[y].length<2||n[y].charAt(1)!=="=")return!1;return!0},v.exports=e}(qn)),qn.exports}var Us=Vu(),Je,Be,VA={d:(v,e)=>{for(var t in e)VA.o(e,t)&&!VA.o(v,t)&&Object.defineProperty(v,t,{enumerable:!0,get:e[t]})},o:(v,e)=>Object.prototype.hasOwnProperty.call(v,e)},ee={};VA.d(ee,{Dz:()=>da,g$:()=>Ms,Lt:()=>xs,Q9:()=>Os,qf:()=>ri,hV:()=>ya,z$:()=>Hd,J0:()=>ni,De:()=>cd,$C:()=>bt,al:()=>Gs,_W:()=>js,Gv:()=>ia,m:()=>oa,tz:()=>Vs,Nu:()=>ga,zg:()=>ba,vp:()=>ua,vU:()=>X,wF:()=>ea,rv:()=>ha,Nh:()=>pa,ss:()=>Ca,qW:()=>sa,QL:()=>na,cf:()=>Ea,eM:()=>qs,Yd:()=>x,Tk:()=>Ae,iM:()=>Ts,qy:()=>nt,ce:()=>qu,sK:()=>Z,Ok:()=>pe,q5:()=>va,g:()=>Md,xl:()=>$s,I:()=>Zs,bx:()=>Ai,dD:()=>ca,Ib:()=>tr,Az:()=>Ce,Iw:()=>$e,qY:()=>ti,db:()=>Ps,mR:()=>rr,Tn:()=>ei,rV:()=>ta,gh:()=>zs,Mi:()=>Js,j:()=>Xs,YB:()=>Ys,Yt:()=>Aa,i5:()=>ra,x_:()=>it,Am:()=>ai,eR:()=>Hs,r8:()=>Ws,u3:()=>_a,vd:()=>Rs,iV:()=>ks,jZ:()=>Ds,SW:()=>Ns,ZH:()=>Ks,Ni:()=>Sa,lh:()=>Ls,ZP:()=>la,bq:()=>Is,$f:()=>Qa,eu:()=>aa,Ax:()=>nd,Mc:()=>Ad});let x=class{static GetStackTrace(){const e=new Error;let t="No Stack Available for this browser";return e.stack&&(t=e.stack.toString().replace(/Error/g,"")),t}static SetLoggerVerbosity(e){this.verboseLogLevel!=null&&(this.verboseLogLevel=e)}static Log(e,t,n){if(n>this.verboseLogLevel)return;const y=`Level: Log
260
+ Msg: ${t}
261
+ Caller: ${e}`;console.log(y)}static Info(e,t,n){if(n>this.verboseLogLevel)return;const y=`Level: Info
262
+ Msg: ${t}`;console.info(y)}static Error(e,t){const n=`Level: Error
263
+ Msg: ${t}
264
+ Caller: ${e}`;console.error(n)}static Warning(e,t){const n=`Level: Warning
265
+ Caller: ${e}
266
+ Msg: ${t}`;console.warn(n)}};x.verboseLogLevel=5,function(v){v.LIST_STREAMERS="listStreamers",v.SUBSCRIBE="subscribe",v.UNSUBSCRIBE="unsubscribe",v.ICE_CANDIDATE="iceCandidate",v.OFFER="offer",v.ANSWER="answer",v.DATACHANNELREQUEST="dataChannelRequest",v.SFURECVDATACHANNELREADY="peerDataChannelsReady",v.PONG="pong"}(Je||(Je={}));let nt=class{sendFilter(e,t){return t}payload(){return x.Log(x.GetStackTrace(),`Sending =>
267
+ `+JSON.stringify(this,this.sendFilter,4),6),JSON.stringify(this,this.sendFilter)}};class Gu extends nt{constructor(){super(),this.type=Je.LIST_STREAMERS}}class ju extends nt{constructor(e){super(),this.type=Je.SUBSCRIBE,this.streamerId=e}}class Wu extends nt{constructor(){super(),this.type=Je.UNSUBSCRIBE}}class zu extends nt{constructor(e){super(),this.type=Je.PONG,this.time=e}}class Ju extends nt{constructor(e,t){super(),this.type=Je.OFFER,this.minBitrate=0,this.maxBitrate=0,e&&(this.type=e.type,this.sdp=e.sdp,this.minBitrate=t.minBitrateBps,this.maxBitrate=t.maxBitrateBps)}sendFilter(e,t){if(e!="minBitrate"&&e!="maxBitrate"||!(t<=0))return t}}let Xu=class extends nt{constructor(e,t){super(),this.type=Je.ANSWER,this.minBitrate=0,this.maxBitrate=0,e&&(this.type=e.type,this.sdp=e.sdp,this.minBitrate=t.minBitrateBps,this.maxBitrate=t.maxBitrateBps)}sendFilter(e,t){if(e!="minBitrate"&&e!="maxBitrate"||!(t<=0))return t}};class Yu extends nt{constructor(){super(),this.type=Je.DATACHANNELREQUEST}}class $u extends nt{constructor(){super(),this.type=Je.SFURECVDATACHANNELREADY}}class Zu{constructor(e){this.type=Je.ICE_CANDIDATE,this.candidate=e}payload(){return x.Log(x.GetStackTrace(),`Sending =>
268
+ `+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}(function(v){v.CONFIG="config",v.STREAMER_LIST="streamerList",v.STREAMER_ID_CHANGED="streamerIDChanged",v.PLAYER_COUNT="playerCount",v.OFFER="offer",v.ANSWER="answer",v.ICE_CANDIDATE="iceCandidate",v.PEER_DATA_CHANNELS="peerDataChannels",v.PING="ping",v.WARNING="warning"})(Be||(Be={}));class Ts{}class qu extends Ts{}class ei{constructor(){this.FromUEMessageHandlers=new Map}addMessageHandler(e,t){this.FromUEMessageHandlers.set(e,t)}handleMessage(e,t){this.FromUEMessageHandlers.has(e)?this.FromUEMessageHandlers.get(e)(t):x.Error(x.GetStackTrace(),`Message type of ${e} does not have a message handler registered on the frontend - ignoring message.`)}static setupDefaultHandlers(e){e.signallingProtocol.addMessageHandler(Be.PING,t=>{const n=new zu(new Date().getTime()).payload();x.Log(x.GetStackTrace(),Be.PING+": "+t,6),e.webSocket.send(n)}),e.signallingProtocol.addMessageHandler(Be.CONFIG,t=>{x.Log(x.GetStackTrace(),Be.CONFIG,6);const n=JSON.parse(t);e.onConfig(n)}),e.signallingProtocol.addMessageHandler(Be.STREAMER_LIST,t=>{x.Log(x.GetStackTrace(),Be.STREAMER_LIST,6);const n=JSON.parse(t);e.onStreamerList(n)}),e.signallingProtocol.addMessageHandler(Be.STREAMER_ID_CHANGED,t=>{x.Log(x.GetStackTrace(),Be.STREAMER_ID_CHANGED,6);const n=JSON.parse(t);e.onStreamerIDChanged(n)}),e.signallingProtocol.addMessageHandler(Be.PLAYER_COUNT,t=>{x.Log(x.GetStackTrace(),Be.PLAYER_COUNT,6);const n=JSON.parse(t);x.Log(x.GetStackTrace(),"Player Count: "+n.count,6),e.onPlayerCount(n)}),e.signallingProtocol.addMessageHandler(Be.ANSWER,t=>{x.Log(x.GetStackTrace(),Be.ANSWER,6);const n=JSON.parse(t);e.onWebRtcAnswer(n)}),e.signallingProtocol.addMessageHandler(Be.OFFER,t=>{x.Log(x.GetStackTrace(),Be.OFFER,6);const n=JSON.parse(t);e.onWebRtcOffer(n)}),e.signallingProtocol.addMessageHandler(Be.ICE_CANDIDATE,t=>{x.Log(x.GetStackTrace(),Be.ICE_CANDIDATE,6);const n=JSON.parse(t);e.onIceCandidate(n.candidate)}),e.signallingProtocol.addMessageHandler(Be.WARNING,t=>{x.Warning(x.GetStackTrace(),`Warning received: ${t}`)}),e.signallingProtocol.addMessageHandler(Be.PEER_DATA_CHANNELS,t=>{x.Log(x.GetStackTrace(),Be.PEER_DATA_CHANNELS,6);const n=JSON.parse(t);e.onWebRtcPeerDataChannels(n)})}}let Is=class{constructor(){this.WS_OPEN_STATE=1,this.onOpen=new EventTarget,this.onClose=new EventTarget,this.signallingProtocol=new ei,ei.setupDefaultHandlers(this)}connect(e){x.Log(x.GetStackTrace(),e,6);try{return this.webSocket=new WebSocket(e),this.webSocket.onopen=t=>this.handleOnOpen(t),this.webSocket.onerror=()=>this.handleOnError(),this.webSocket.onclose=t=>this.handleOnClose(t),this.webSocket.onmessage=t=>this.handleOnMessage(t),this.webSocket.onmessagebinary=t=>this.handleOnMessageBinary(t),!0}catch(t){return x.Error(t,t),!1}}handleOnMessageBinary(e){e&&e.data&&e.data.text().then(t=>{const n=new MessageEvent("messageFromBinary",{data:t});this.handleOnMessage(n)}).catch(t=>{x.Error(x.GetStackTrace(),`Failed to parse binary blob from websocket, reason: ${t}`)})}handleOnMessage(e){if(e.data&&e.data instanceof Blob)return void this.handleOnMessageBinary(e);const t=JSON.parse(e.data);x.Log(x.GetStackTrace(),`received =>
269
+ `+JSON.stringify(JSON.parse(e.data),void 0,4),6),this.signallingProtocol.handleMessage(t.type,e.data)}handleOnOpen(e){x.Log(x.GetStackTrace(),"Connected to the signalling server via WebSocket",6),this.onOpen.dispatchEvent(new Event("open"))}handleOnError(){x.Error(x.GetStackTrace(),"WebSocket error")}handleOnClose(e){x.Log(x.GetStackTrace(),"Disconnected to the signalling server via WebSocket: "+JSON.stringify(e.code)+" - "+e.reason),this.onClose.dispatchEvent(new CustomEvent("close",{detail:e}))}requestStreamerList(){const e=new Gu;this.webSocket.send(e.payload())}sendSubscribe(e){const t=new ju(e);this.webSocket.send(t.payload())}sendUnsubscribe(){const e=new Wu;this.webSocket.send(e.payload())}sendWebRtcOffer(e,t){const n=new Ju(e,t);this.webSocket.send(n.payload())}sendWebRtcAnswer(e,t){const n=new Xu(e,t);this.webSocket.send(n.payload())}sendWebRtcDatachannelRequest(){const e=new Yu;this.webSocket.send(e.payload())}sendSFURecvDataChannelReady(){const e=new $u;this.webSocket.send(e.payload())}sendIceCandidate(e){if(x.Log(x.GetStackTrace(),"Sending Ice Candidate"),this.webSocket&&this.webSocket.readyState===this.WS_OPEN_STATE){const t=new Zu(e);this.webSocket.send(t.payload())}}close(){var e;(e=this.webSocket)===null||e===void 0||e.close()}onConfig(e){}onStreamerList(e){}onStreamerIDChanged(e){}onIceCandidate(e){}onWebRtcAnswer(e){}onWebRtcOffer(e){}onWebRtcPeerDataChannels(e){}onPlayerCount(e){}},ed=class{constructor(e){this.videoElementProvider=e,this.audioElement=document.createElement("Audio"),this.videoElementProvider.setAudioElement(this.audioElement)}handleOnTrack(e){if(x.Log(x.GetStackTrace(),"handleOnTrack "+JSON.stringify(e.streams),6),e.track.id=="probator")return;const t=this.videoElementProvider.getVideoElement();if(e.track&&x.Log(x.GetStackTrace(),"Got track - "+e.track.kind+" id="+e.track.id+" readyState="+e.track.readyState,6),e.track.kind!="audio")return e.track.kind=="video"&&t.srcObject!==e.streams[0]?(t.srcObject=e.streams[0],void x.Log(x.GetStackTrace(),"Set video source from video track ontrack.")):void 0;this.CreateAudioTrack(e.streams[0])}CreateAudioTrack(e){const t=this.videoElementProvider.getVideoElement();t.srcObject!=e&&t.srcObject&&t.srcObject!==e&&(this.audioElement.srcObject=e,x.Log(x.GetStackTrace(),"Created new audio element to play separate audio stream."))}},td=class{constructor(e){this.freezeFrameHeight=0,this.freezeFrameWidth=0,this.rootDiv=e,this.rootElement=document.createElement("div"),this.rootElement.id="freezeFrame",this.rootElement.style.display="none",this.rootElement.style.pointerEvents="none",this.rootElement.style.position="absolute",this.rootElement.style.zIndex="20",this.imageElement=document.createElement("img"),this.imageElement.style.position="absolute",this.rootElement.appendChild(this.imageElement),this.rootDiv.appendChild(this.rootElement)}setElementForShow(){this.rootElement.style.display="block"}setElementForHide(){this.rootElement.style.display="none"}updateImageElementSource(e){const t=btoa(e.reduce((n,y)=>n+String.fromCharCode(y),""));this.imageElement.src="data:image/jpeg;base64,"+t}setDimensionsFromElementAndResize(){this.freezeFrameHeight=this.imageElement.naturalHeight,this.freezeFrameWidth=this.imageElement.naturalWidth,this.resize()}resize(){if(this.freezeFrameWidth!==0&&this.freezeFrameHeight!==0){let e=0,t=0,n=0,y=0;const C=this.rootDiv.clientWidth/this.rootDiv.clientHeight,A=this.freezeFrameWidth/this.freezeFrameHeight;C<A?(e=this.rootDiv.clientWidth,t=Math.floor(this.rootDiv.clientWidth/A),n=Math.floor(.5*(this.rootDiv.clientHeight-t)),y=0):(e=Math.floor(this.rootDiv.clientHeight*A),t=this.rootDiv.clientHeight,n=0,y=Math.floor(.5*(this.rootDiv.clientWidth-e))),this.rootElement.style.width=this.rootDiv.offsetWidth+"px",this.rootElement.style.height=this.rootDiv.offsetHeight+"px",this.rootElement.style.left="0px",this.rootElement.style.top="0px",this.imageElement.style.width=e+"px",this.imageElement.style.height=t+"px",this.imageElement.style.left=y+"px",this.imageElement.style.top=n+"px"}}};class rd{constructor(e){this.receiving=!1,this.size=0,this.jpeg=void 0,this.valid=!1,this.freezeFrameDelay=50,this.freezeFrame=new td(e)}showFreezeFrame(){this.valid&&this.freezeFrame.setElementForShow()}hideFreezeFrame(){this.valid=!1,this.freezeFrame.setElementForHide()}updateFreezeFrameAndShow(e,t){this.freezeFrame.updateImageElementSource(e),this.freezeFrame.imageElement.onload=()=>{this.freezeFrame.setDimensionsFromElementAndResize(),t()}}processFreezeFrameMessage(e,t){this.receiving||(this.receiving=!0,this.valid=!1,this.size=0,this.jpeg=void 0),this.size=new DataView(e.slice(1,5).buffer).getInt32(0,!0);const n=e.slice(5);if(this.jpeg){const y=new Uint8Array(this.jpeg.length+n.length);y.set(this.jpeg,0),y.set(n,this.jpeg.length),this.jpeg=y}else this.jpeg=n,this.receiving=!0,x.Log(x.GetStackTrace(),`received first chunk of freeze frame: ${this.jpeg.length}/${this.size}`,6);this.jpeg.length===this.size?(this.receiving=!1,this.valid=!0,x.Log(x.GetStackTrace(),`received complete freeze frame ${this.size}`,6),this.updateFreezeFrameAndShow(this.jpeg,t)):this.jpeg.length>this.size&&(x.Error(x.GetStackTrace(),`received bigger freeze frame than advertised: ${this.jpeg.length}/${this.size}`),this.jpeg=void 0,this.receiving=!1)}}class tr{constructor(e,t,n,y,C=()=>{}){this.onChange=C,this.onChangeEmit=()=>{},this.id=e,this.description=n,this.label=t,this.value=y}set label(e){this._label=e,this.onChangeEmit(this._value)}get label(){return this._label}get value(){return this._value}set value(e){this._value=e,this.onChange(this._value,this),this.onChangeEmit(this._value)}}class Ce extends tr{constructor(e,t,n,y,C,A=()=>{}){super(e,t,n,y,A);const h=new URLSearchParams(window.location.search);if(C&&h.has(this.id)){const m=this.getUrlParamFlag();this.flag=m}else this.flag=y;this.useUrlParams=C}getUrlParamFlag(){const e=new URLSearchParams(window.location.search);return!!e.has(this.id)&&e.get(this.id)!=="false"&&e.get(this.id)!=="False"}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);this.flag===!0?e.set(this.id,"true"):e.set(this.id,"false"),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}enable(){this.flag=!0}get flag(){return!!this.value}set flag(e){this.value=e}}class $e extends tr{constructor(e,t,n,y,C,A,h,m=()=>{}){super(e,t,n,A,m),this._min=y,this._max=C;const g=new URLSearchParams(window.location.search);if(h&&g.has(this.id)){const w=Number.parseFloat(g.get(this.id));this.number=Number.isNaN(w)?A:w}else this.number=A;this.useUrlParams=h}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.number.toString()),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}set number(e){this.value=this.clamp(e)}get number(){return this.value}clamp(e){return this._min==null&&this._max==null?e:this._min==null?Math.min(this._max,e):this._max==null?Math.max(this._min,e):Math.max(Math.min(this._max,e),this._min)}get min(){return this._min}get max(){return this._max}addOnChangedListener(e){this.onChange=e}}class Ps extends tr{constructor(e,t,n,y,C,A=()=>{}){super(e,t,n,y,A);const h=new URLSearchParams(window.location.search);if(C&&h.has(this.id)){const m=this.getUrlParamText();this.text=m}else this.text=y;this.useUrlParams=C}getUrlParamText(){var e;const t=new URLSearchParams(window.location.search);return t.has(this.id)&&(e=t.get(this.id))!==null&&e!==void 0?e:""}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.text),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}get text(){return this.value}set text(e){this.value=e}}class ti extends tr{constructor(e,t,n,y,C,A,h=()=>{}){super(e,t,n,y,h),this.options=C;const m=new URLSearchParams(window.location.search),g=A&&m.has(this.id)?this.getUrlParamText():y;this.selected=g,this.useUrlParams=A}getUrlParamText(){var e;const t=new URLSearchParams(window.location.search);return t.has(this.id)&&(e=t.get(this.id))!==null&&e!==void 0?e:""}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.selected),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}addOnChangedListener(e){this.onChange=e}get options(){return this._options}set options(e){this._options=e,this.onChangeEmit(this.selected)}get selected(){return this.value}set selected(e){let t=this.options.filter(n=>n.indexOf(e)!==-1);t.length?this.value=t[0]:(t=this.options.filter(n=>n.indexOf(e.split(" ")[0])!==-1),t.length&&(this.value=t[0]))}}class xs extends Event{constructor(e){super("afkWarningActivate"),this.data=e}}let ri=class extends Event{constructor(e){super("afkWarningUpdate"),this.data=e}};class Os extends Event{constructor(){super("afkWarningDeactivate")}}let Ms=class extends Event{constructor(){super("afkTimedOut")}},Hs=class extends Event{constructor(e){super("videoEncoderAvgQP"),this.data=e}};class Ls extends Event{constructor(){super("webRtcSdp")}}class Rs extends Event{constructor(){super("webRtcAutoConnect")}}class Ds extends Event{constructor(){super("webRtcConnecting")}}let ks=class extends Event{constructor(){super("webRtcConnected")}};class Ks extends Event{constructor(){super("webRtcFailed")}}class Ns extends Event{constructor(e){super("webRtcDisconnected"),this.data=e}}let Vs=class extends Event{constructor(e){super("dataChannelOpen"),this.data=e}};class Gs extends Event{constructor(e){super("dataChannelClose"),this.data=e}}let js=class extends Event{constructor(e){super("dataChannelError"),this.data=e}};class Ws extends Event{constructor(){super("videoInitialized")}}class zs extends Event{constructor(){super("streamLoading")}}class Js extends Event{constructor(){super("streamConnect")}}class Xs extends Event{constructor(){super("streamDisconnect")}}class Ys extends Event{constructor(){super("streamReconnect")}}class $s extends Event{constructor(e){super("playStreamError"),this.data=e}}class Zs extends Event{constructor(){super("playStream")}}class Ai extends Event{constructor(e){super("playStreamRejected"),this.data=e}}class qs extends Event{constructor(e){super("loadFreezeFrame"),this.data=e}}class ea extends Event{constructor(){super("hideFreezeFrame")}}class ta extends Event{constructor(e){super("statsReceived"),this.data=e}}let ra=class extends Event{constructor(e){super("streamerListMessage"),this.data=e}};class Aa extends Event{constructor(e){super("StreamerIDChangedMessage"),this.data=e}}class na extends Event{constructor(e){super("latencyTestResult"),this.data=e}}class ia extends Event{constructor(e){super("dataChannelLatencyTestResponse"),this.data=e}}class oa extends Event{constructor(e){super("dataChannelLatencyTestResult"),this.data=e}}class sa extends Event{constructor(e){super("initialSettings"),this.data=e}}class rr extends Event{constructor(e){super("settingsChanged"),this.data=e}}class Ad extends Event{constructor(){super("xrSessionStarted")}}class nd extends Event{constructor(){super("xrSessionEnded")}}class aa extends Event{constructor(e){super("xrFrame"),this.data=e}}class ca extends Event{constructor(e){super("playerCount"),this.data=e}}class la extends Event{constructor(){super("webRtcTCPRelayDetected")}}class ua extends EventTarget{dispatchEvent(e){return super.dispatchEvent(e)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}}class X{}X.AutoConnect="AutoConnect",X.AutoPlayVideo="AutoPlayVideo",X.AFKDetection="TimeoutIfIdle",X.BrowserSendOffer="OfferToReceive",X.HoveringMouseMode="HoveringMouse",X.ForceMonoAudio="ForceMonoAudio",X.ForceTURN="ForceTURN",X.FakeMouseWithTouches="FakeMouseWithTouches",X.IsQualityController="ControlsQuality",X.MatchViewportResolution="MatchViewportRes",X.StartVideoMuted="StartVideoMuted",X.SuppressBrowserKeys="SuppressBrowserKeys",X.UseMic="UseMic",X.KeyboardInput="KeyboardInput",X.MouseInput="MouseInput",X.TouchInput="TouchInput",X.GamepadInput="GamepadInput",X.XRControllerInput="XRControllerInput",X.WaitForStreamer="WaitForStreamer",X.HideUI="HideUI";const id=v=>Object.getOwnPropertyNames(X).some(e=>X[e]===v);class Z{}Z.AFKTimeoutSecs="AFKTimeout",Z.AFKCountdownSecs="AFKCountdown",Z.MinQP="MinQP",Z.MaxQP="MaxQP",Z.WebRTCFPS="WebRTCFPS",Z.WebRTCMinBitrate="WebRTCMinBitrate",Z.WebRTCMaxBitrate="WebRTCMaxBitrate",Z.MaxReconnectAttempts="MaxReconnectAttempts",Z.StreamerAutoJoinInterval="StreamerAutoJoinInterval";const od=v=>Object.getOwnPropertyNames(Z).some(e=>Z[e]===v);class it{}it.SignallingServerUrl="ss";const sd=v=>Object.getOwnPropertyNames(it).some(e=>it[e]===v);class pe{}pe.PreferredCodec="PreferredCodec",pe.StreamerId="StreamerId";const ad=v=>Object.getOwnPropertyNames(pe).some(e=>pe[e]===v);class cd{constructor(e={}){this.flags=new Map,this.numericParameters=new Map,this.textParameters=new Map,this.optionParameters=new Map;const{initialSettings:t,useUrlParams:n}=e;this._useUrlParams=!!n,this.populateDefaultSettings(this._useUrlParams,t)}get useUrlParams(){return this._useUrlParams}populateDefaultSettings(e,t){this.textParameters.set(it.SignallingServerUrl,new Ps(it.SignallingServerUrl,"Signalling url","Url of the signalling server",t&&t.hasOwnProperty(it.SignallingServerUrl)?t[it.SignallingServerUrl]:(location.protocol==="https:"?"wss://":"ws://")+window.location.hostname+(window.location.port==="80"||window.location.port===""?"":`:${window.location.port}`),e)),this.optionParameters.set(pe.StreamerId,new ti(pe.StreamerId,"Streamer ID","The ID of the streamer to stream.",t&&t.hasOwnProperty(pe.StreamerId)?t[pe.StreamerId]:"",[],e)),this.optionParameters.set(pe.PreferredCodec,new ti(pe.PreferredCodec,"Preferred Codec","The preferred codec to be used during codec negotiation","H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f",t&&t.hasOwnProperty(pe.PreferredCodec)?[t[pe.PreferredCodec]]:function(){const n=[];if(!RTCRtpReceiver.getCapabilities)return n.push("Only available on Chrome"),n;const y=/(VP\d|H26\d|AV1).*/;return RTCRtpReceiver.getCapabilities("video").codecs.forEach(C=>{const A=C.mimeType.split("/")[1]+" "+(C.sdpFmtpLine||"");y.exec(A)!==null&&n.push(A)}),n}(),e)),this.flags.set(X.AutoConnect,new Ce(X.AutoConnect,"Auto connect to stream","Whether we should attempt to auto connect to the signalling server or show a click to start prompt.",!(!t||!t.hasOwnProperty(X.AutoConnect))&&t[X.AutoConnect],e)),this.flags.set(X.AutoPlayVideo,new Ce(X.AutoPlayVideo,"Auto play video","When video is ready automatically start playing it as opposed to showing a play button.",!t||!t.hasOwnProperty(X.AutoPlayVideo)||t[X.AutoPlayVideo],e)),this.flags.set(X.BrowserSendOffer,new Ce(X.BrowserSendOffer,"Browser send offer","Browser will initiate the WebRTC handshake by sending the offer to the streamer",!(!t||!t.hasOwnProperty(X.BrowserSendOffer))&&t[X.BrowserSendOffer],e)),this.flags.set(X.UseMic,new Ce(X.UseMic,"Use microphone","Make browser request microphone access and open an input audio track.",!(!t||!t.hasOwnProperty(X.UseMic))&&t[X.UseMic],e)),this.flags.set(X.StartVideoMuted,new Ce(X.StartVideoMuted,"Start video muted","Video will start muted if true.",!(!t||!t.hasOwnProperty(X.StartVideoMuted))&&t[X.StartVideoMuted],e)),this.flags.set(X.SuppressBrowserKeys,new Ce(X.SuppressBrowserKeys,"Suppress browser keys","Suppress certain browser keys that we use in UE, for example F5 to show shader complexity instead of refresh the page.",!t||!t.hasOwnProperty(X.SuppressBrowserKeys)||t[X.SuppressBrowserKeys],e)),this.flags.set(X.IsQualityController,new Ce(X.IsQualityController,"Is quality controller?","True if this peer controls stream quality",!t||!t.hasOwnProperty(X.IsQualityController)||t[X.IsQualityController],e)),this.flags.set(X.ForceMonoAudio,new Ce(X.ForceMonoAudio,"Force mono audio","Force browser to request mono audio in the SDP",!(!t||!t.hasOwnProperty(X.ForceMonoAudio))&&t[X.ForceMonoAudio],e)),this.flags.set(X.ForceTURN,new Ce(X.ForceTURN,"Force TURN","Only generate TURN/Relayed ICE candidates.",!(!t||!t.hasOwnProperty(X.ForceTURN))&&t[X.ForceTURN],e)),this.flags.set(X.AFKDetection,new Ce(X.AFKDetection,"AFK if idle","Timeout the experience if user is AFK for a period.",!(!t||!t.hasOwnProperty(X.AFKDetection))&&t[X.AFKDetection],e)),this.flags.set(X.MatchViewportResolution,new Ce(X.MatchViewportResolution,"Match viewport resolution","Pixel Streaming will be instructed to dynamically resize the video stream to match the size of the video element.",!(!t||!t.hasOwnProperty(X.MatchViewportResolution))&&t[X.MatchViewportResolution],e)),this.flags.set(X.HoveringMouseMode,new Ce(X.HoveringMouseMode,"Control Scheme: Locked Mouse","Either locked mouse, where the pointer is consumed by the video and locked to it, or hovering mouse, where the mouse is not consumed.",!(!t||!t.hasOwnProperty(X.HoveringMouseMode))&&t[X.HoveringMouseMode],e,(n,y)=>{y.label=`Control Scheme: ${n?"Hovering":"Locked"} Mouse`})),this.flags.set(X.FakeMouseWithTouches,new Ce(X.FakeMouseWithTouches,"Fake mouse with touches","A single finger touch is converted into a mouse event. This allows a non-touch application to be controlled partially via a touch device.",!(!t||!t.hasOwnProperty(X.FakeMouseWithTouches))&&t[X.FakeMouseWithTouches],e)),this.flags.set(X.KeyboardInput,new Ce(X.KeyboardInput,"Keyboard input","If enabled, send keyboard events to streamer",!t||!t.hasOwnProperty(X.KeyboardInput)||t[X.KeyboardInput],e)),this.flags.set(X.MouseInput,new Ce(X.MouseInput,"Mouse input","If enabled, send mouse events to streamer",!t||!t.hasOwnProperty(X.MouseInput)||t[X.MouseInput],e)),this.flags.set(X.TouchInput,new Ce(X.TouchInput,"Touch input","If enabled, send touch events to streamer",!t||!t.hasOwnProperty(X.TouchInput)||t[X.TouchInput],e)),this.flags.set(X.GamepadInput,new Ce(X.GamepadInput,"Gamepad input","If enabled, send gamepad events to streamer",!t||!t.hasOwnProperty(X.GamepadInput)||t[X.GamepadInput],e)),this.flags.set(X.XRControllerInput,new Ce(X.XRControllerInput,"XR controller input","If enabled, send XR controller events to streamer",!t||!t.hasOwnProperty(X.XRControllerInput)||t[X.XRControllerInput],e)),this.flags.set(X.WaitForStreamer,new Ce(X.WaitForStreamer,"Wait for streamer","Will continue trying to connect to the first streamer available.",!t||!t.hasOwnProperty(X.WaitForStreamer)||t[X.WaitForStreamer],e)),this.flags.set(X.HideUI,new Ce(X.HideUI,"Hide the UI overlay","Will hide all UI overlay details",!(!t||!t.hasOwnProperty(X.HideUI))&&t[X.HideUI],e)),this.numericParameters.set(Z.AFKTimeoutSecs,new $e(Z.AFKTimeoutSecs,"AFK timeout","The time (in seconds) it takes for the application to time out if AFK timeout is enabled.",0,null,t&&t.hasOwnProperty(Z.AFKTimeoutSecs)?t[Z.AFKTimeoutSecs]:120,e)),this.numericParameters.set(Z.AFKCountdownSecs,new $e(Z.AFKCountdownSecs,"AFK countdown","The time (in seconds) for a user to respond before the stream is ended after an AFK timeout.",10,null,10,e)),this.numericParameters.set(Z.MaxReconnectAttempts,new $e(Z.MaxReconnectAttempts,"Max Reconnects","Maximum number of reconnects the application will attempt when a streamer disconnects.",0,999,t&&t.hasOwnProperty(Z.MaxReconnectAttempts)?t[Z.MaxReconnectAttempts]:3,e)),this.numericParameters.set(Z.MinQP,new $e(Z.MinQP,"Min QP","The lower bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,t&&t.hasOwnProperty(Z.MinQP)?t[Z.MinQP]:0,e)),this.numericParameters.set(Z.MaxQP,new $e(Z.MaxQP,"Max QP","The upper bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,t&&t.hasOwnProperty(Z.MaxQP)?t[Z.MaxQP]:51,e)),this.numericParameters.set(Z.WebRTCFPS,new $e(Z.WebRTCFPS,"Max FPS","The maximum FPS that WebRTC will try to transmit frames at.",1,999,t&&t.hasOwnProperty(Z.WebRTCFPS)?t[Z.WebRTCFPS]:60,e)),this.numericParameters.set(Z.WebRTCMinBitrate,new $e(Z.WebRTCMinBitrate,"Min Bitrate (kbps)","The minimum bitrate that WebRTC should use.",0,5e5,t&&t.hasOwnProperty(Z.WebRTCMinBitrate)?t[Z.WebRTCMinBitrate]:0,e)),this.numericParameters.set(Z.WebRTCMaxBitrate,new $e(Z.WebRTCMaxBitrate,"Max Bitrate (kbps)","The maximum bitrate that WebRTC should use.",0,5e5,t&&t.hasOwnProperty(Z.WebRTCMaxBitrate)?t[Z.WebRTCMaxBitrate]:0,e)),this.numericParameters.set(Z.StreamerAutoJoinInterval,new $e(Z.StreamerAutoJoinInterval,"Streamer Auto Join Interval (ms)","Delay between retries when waiting for an available streamer.",500,9e5,t&&t.hasOwnProperty(Z.StreamerAutoJoinInterval)?t[Z.StreamerAutoJoinInterval]:3e3,e))}_addOnNumericSettingChangedListener(e,t){this.numericParameters.has(e)&&this.numericParameters.get(e).addOnChangedListener(t)}_addOnOptionSettingChangedListener(e,t){this.optionParameters.has(e)&&this.optionParameters.get(e).addOnChangedListener(t)}getNumericSettingValue(e){if(this.numericParameters.has(e))return this.numericParameters.get(e).number;throw new Error(`There is no numeric setting with the id of ${e}`)}getTextSettingValue(e){if(this.textParameters.has(e))return this.textParameters.get(e).value;throw new Error(`There is no numeric setting with the id of ${e}`)}setNumericSetting(e,t){if(!this.numericParameters.has(e))throw new Error(`There is no numeric setting with the id of ${e}`);this.numericParameters.get(e).number=t}_addOnSettingChangedListener(e,t){this.flags.has(e)&&(this.flags.get(e).onChange=t)}_addOnTextSettingChangedListener(e,t){this.textParameters.has(e)&&(this.textParameters.get(e).onChange=t)}getSettingOption(e){return this.optionParameters.get(e)}isFlagEnabled(e){return this.flags.get(e).flag}setFlagEnabled(e,t){this.flags.has(e)?this.flags.get(e).flag=t:x.Warning(x.GetStackTrace(),`Cannot toggle flag called ${e} - it does not exist in the Config.flags map.`)}setTextSetting(e,t){this.textParameters.has(e)?this.textParameters.get(e).text=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.textParameters map.`)}setOptionSettingOptions(e,t){this.optionParameters.has(e)?this.optionParameters.get(e).options=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.optionParameters map.`)}setOptionSettingValue(e,t){if(this.optionParameters.has(e)){const n=this.optionParameters.get(e),y=n.options;y.includes(t)||(y.push(t),n.options=y),n.selected=t}else x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.enumParameters map.`)}setFlagLabel(e,t){this.flags.has(e)?this.flags.get(e).label=t:x.Warning(x.GetStackTrace(),`Cannot set label for flag called ${e} - it does not exist in the Config.flags map.`)}setSettings(e){for(const t of Object.keys(e))id(t)?this.setFlagEnabled(t,e[t]):od(t)?this.setNumericSetting(t,e[t]):sd(t)?this.setTextSetting(t,e[t]):ad(t)&&this.setOptionSettingValue(t,e[t])}getSettings(){const e={};for(const[t,n]of this.flags.entries())e[t]=n.flag;for(const[t,n]of this.numericParameters.entries())e[t]=n.number;for(const[t,n]of this.textParameters.entries())e[t]=n.text;for(const[t,n]of this.optionParameters.entries())e[t]=n.selected;return e}getFlags(){return Array.from(this.flags.values())}getTextSettings(){return Array.from(this.textParameters.values())}getNumericSettings(){return Array.from(this.numericParameters.values())}getOptionSettings(){return Array.from(this.optionParameters.values())}_registerOnChangeEvents(e){for(const t of this.flags.keys()){const n=this.flags.get(t);n&&(n.onChangeEmit=y=>e.dispatchEvent(new rr({id:n.id,type:"flag",value:y,target:n})))}for(const t of this.numericParameters.keys()){const n=this.numericParameters.get(t);n&&(n.onChangeEmit=y=>e.dispatchEvent(new rr({id:n.id,type:"number",value:y,target:n})))}for(const t of this.textParameters.keys()){const n=this.textParameters.get(t);n&&(n.onChangeEmit=y=>e.dispatchEvent(new rr({id:n.id,type:"text",value:y,target:n})))}for(const t of this.optionParameters.keys()){const n=this.optionParameters.get(t);n&&(n.onChangeEmit=y=>e.dispatchEvent(new rr({id:n.id,type:"option",value:y,target:n})))}}}var bt;(function(v){v[v.LockedMouse=0]="LockedMouse",v[v.HoveringMouse=1]="HoveringMouse"})(bt||(bt={}));class da{constructor(e,t,n){this.active=!1,this.countdownActive=!1,this.warnTimer=void 0,this.countDown=0,this.countDownTimer=void 0,this.config=e,this.pixelStreaming=t,this.onDismissAfk=n,this.onAFKTimedOutCallback=()=>{console.log("AFK timed out, did you want to override this callback?")}}onAfkClick(){clearInterval(this.countDownTimer),(this.active||this.countdownActive)&&(this.startAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new Os))}startAfkWarningTimer(){this.config.getNumericSettingValue(Z.AFKTimeoutSecs)>0&&this.config.isFlagEnabled(X.AFKDetection)?this.active=!0:this.active=!1,this.resetAfkWarningTimer()}stopAfkWarningTimer(){this.active=!1,this.countdownActive=!1,clearTimeout(this.warnTimer),clearInterval(this.countDownTimer)}pauseAfkWarningTimer(){this.active=!1}resetAfkWarningTimer(){this.active&&this.config.isFlagEnabled(X.AFKDetection)&&(clearTimeout(this.warnTimer),this.warnTimer=setTimeout(()=>this.activateAfkEvent(),1e3*this.config.getNumericSettingValue(Z.AFKTimeoutSecs)))}activateAfkEvent(){this.pauseAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new xs({countDown:this.countDown,dismissAfk:this.onDismissAfk})),this.countDown=this.config.getNumericSettingValue(Z.AFKCountdownSecs),this.countdownActive=!0,this.pixelStreaming.dispatchEvent(new ri({countDown:this.countDown})),this.config.isFlagEnabled(X.HoveringMouseMode)||document.exitPointerLock&&document.exitPointerLock(),this.countDownTimer=setInterval(()=>{this.countDown--,this.countDown==0?(this.pixelStreaming.dispatchEvent(new Ms),this.onAFKTimedOutCallback(),x.Log(x.GetStackTrace(),"You have been disconnected due to inactivity"),this.stopAfkWarningTimer()):this.pixelStreaming.dispatchEvent(new ri({countDown:this.countDown}))},1e3)}}class fa{constructor(){this.isReceivingFreezeFrame=!1}getDataChannelInstance(){return this}createDataChannel(e,t,n){this.peerConnection=e,this.label=t,this.datachannelOptions=n,n==null&&(this.datachannelOptions={},this.datachannelOptions.ordered=!0),this.dataChannel=this.peerConnection.createDataChannel(this.label,this.datachannelOptions),this.setupDataChannel()}setupDataChannel(){this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=e=>this.handleOnOpen(e),this.dataChannel.onclose=e=>this.handleOnClose(e),this.dataChannel.onmessage=e=>this.handleOnMessage(e),this.dataChannel.onerror=e=>this.handleOnError(e)}handleOnOpen(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) opened.`,7),this.onOpen((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}handleOnClose(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) closed.`,7),this.onClose((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}handleOnMessage(e){x.Log(x.GetStackTrace(),`Data Channel (${this.label}) message: ${e}`,8)}handleOnError(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) error: ${e}`,7),this.onError((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}onOpen(e,t){}onClose(e,t){}onError(e,t){}}class ha{}class pa{}class ga{}class ni{}class va{}class ld{}class ud{}class ya{constructor(){this.inboundVideoStats=new pa,this.inboundAudioStats=new ha,this.DataChannelStats=new ga,this.outBoundVideoStats=new va,this.sessionStats=new ld,this.streamStats=new ud,this.codecs=new Map}processStats(e){this.localCandidates=new Array,this.remoteCandidates=new Array,this.candidatePairs=new Array,e.forEach(t=>{switch(t.type){case"candidate-pair":this.handleCandidatePair(t);break;case"certificate":case"media-source":case"media-playout":case"outbound-rtp":case"peer-connection":case"remote-inbound-rtp":break;case"codec":this.handleCodec(t);break;case"data-channel":this.handleDataChannel(t);break;case"inbound-rtp":this.handleInBoundRTP(t);break;case"local-candidate":this.handleLocalCandidate(t);break;case"remote-candidate":this.handleRemoteCandidate(t);break;case"remote-outbound-rtp":this.handleRemoteOutBound(t);break;case"track":this.handleTrack(t);break;case"transport":this.handleTransport(t);break;case"stream":this.handleStream(t);break;default:x.Error(x.GetStackTrace(),"unhandled Stat Type"),x.Log(x.GetStackTrace(),t)}})}handleStream(e){this.streamStats=e}handleCandidatePair(e){this.candidatePairs.push(e)}handleDataChannel(e){this.DataChannelStats.bytesReceived=e.bytesReceived,this.DataChannelStats.bytesSent=e.bytesSent,this.DataChannelStats.dataChannelIdentifier=e.dataChannelIdentifier,this.DataChannelStats.id=e.id,this.DataChannelStats.label=e.label,this.DataChannelStats.messagesReceived=e.messagesReceived,this.DataChannelStats.messagesSent=e.messagesSent,this.DataChannelStats.protocol=e.protocol,this.DataChannelStats.state=e.state,this.DataChannelStats.timestamp=e.timestamp}handleLocalCandidate(e){const t=new ni;t.label="local-candidate",t.address=e.address,t.port=e.port,t.protocol=e.protocol,t.candidateType=e.candidateType,t.id=e.id,t.relayProtocol=e.relayProtocol,t.transportId=e.transportId,this.localCandidates.push(t)}handleRemoteCandidate(e){const t=new ni;t.label="remote-candidate",t.address=e.address,t.port=e.port,t.protocol=e.protocol,t.id=e.id,t.candidateType=e.candidateType,t.relayProtocol=e.relayProtocol,t.transportId=e.transportId,this.remoteCandidates.push(t)}handleInBoundRTP(e){switch(e.kind){case"video":this.inboundVideoStats=e,this.lastVideoStats!=null&&(this.inboundVideoStats.bitrate=8*(this.inboundVideoStats.bytesReceived-this.lastVideoStats.bytesReceived)/(this.inboundVideoStats.timestamp-this.lastVideoStats.timestamp),this.inboundVideoStats.bitrate=Math.floor(this.inboundVideoStats.bitrate)),this.lastVideoStats=Object.assign({},this.inboundVideoStats);break;case"audio":this.inboundAudioStats=e,this.lastAudioStats!=null&&(this.inboundAudioStats.bitrate=8*(this.inboundAudioStats.bytesReceived-this.lastAudioStats.bytesReceived)/(this.inboundAudioStats.timestamp-this.lastAudioStats.timestamp),this.inboundAudioStats.bitrate=Math.floor(this.inboundAudioStats.bitrate)),this.lastAudioStats=Object.assign({},this.inboundAudioStats);break;default:x.Log(x.GetStackTrace(),"Kind is not handled")}}handleRemoteOutBound(e){e.kind==="video"&&(this.outBoundVideoStats.bytesSent=e.bytesSent,this.outBoundVideoStats.id=e.id,this.outBoundVideoStats.localId=e.localId,this.outBoundVideoStats.packetsSent=e.packetsSent,this.outBoundVideoStats.remoteTimestamp=e.remoteTimestamp,this.outBoundVideoStats.timestamp=e.timestamp)}handleTrack(e){e.type!=="track"||e.trackIdentifier!=="video_label"&&e.kind!=="video"||(this.inboundVideoStats.framesDropped=e.framesDropped,this.inboundVideoStats.framesReceived=e.framesReceived,this.inboundVideoStats.frameHeight=e.frameHeight,this.inboundVideoStats.frameWidth=e.frameWidth)}handleTransport(e){this.transportStats=e}handleCodec(e){const t=e.id,n=`${e.mimeType.replace("video/","").replace("audio/","")}${e.sdpFmtpLine?` ${e.sdpFmtpLine}`:""}`;this.codecs.set(t,n)}handleSessionStatistics(e,t,n){const y=Date.now()-e;this.sessionStats.runTime=new Date(y).toISOString().substr(11,8).toString();const C=t===null?"Not sent yet":t?"true":"false";this.sessionStats.controlsStreamInput=C,this.sessionStats.videoEncoderAvgQP=n}isNumber(e){return typeof e=="number"&&isFinite(e)}getActiveCandidatePair(){return this.transportStats?this.candidatePairs.find(e=>e.id===this.transportStats.selectedCandidatePairId,null):this.candidatePairs.find(e=>e.selected,null)}}const ma=(wa={parseRtpParameters:()=>Us.parseRtpParameters,splitSections:()=>Us.splitSections},ii={},VA.d(ii,wa),ii);var wa,ii;class Ba{static isVideoTransciever(e){return this.canTransceiverReceiveVideo(e)||this.canTransceiverSendVideo(e)}static canTransceiverReceiveVideo(e){return!!e&&(e.direction==="sendrecv"||e.direction==="recvonly")&&e.receiver&&e.receiver.track&&e.receiver.track.kind==="video"}static canTransceiverSendVideo(e){return!!e&&(e.direction==="sendrecv"||e.direction==="sendonly")&&e.sender&&e.sender.track&&e.sender.track.kind==="video"}static isAudioTransciever(e){return this.canTransceiverReceiveAudio(e)||this.canTransceiverSendAudio(e)}static canTransceiverReceiveAudio(e){return!!e&&(e.direction==="sendrecv"||e.direction==="recvonly")&&e.receiver&&e.receiver.track&&e.receiver.track.kind==="audio"}static canTransceiverSendAudio(e){return!!e&&(e.direction==="sendrecv"||e.direction==="sendonly")&&e.sender&&e.sender.track&&e.sender.track.kind==="audio"}}var Ht,Ae,oi=function(v,e,t,n){return new(t||(t=Promise))(function(y,C){function A(g){try{m(n.next(g))}catch(w){C(w)}}function h(g){try{m(n.throw(g))}catch(w){C(w)}}function m(g){var w;g.done?y(g.value):(w=g.value,w instanceof t?w:new t(function(p){p(w)})).then(A,h)}m((n=n.apply(v,[])).next())})};class dd{constructor(e,t,n){this.config=t,this.createPeerConnection(e,n)}createPeerConnection(e,t){this.config.isFlagEnabled(X.ForceTURN)&&(e.iceTransportPolicy="relay",x.Log(x.GetStackTrace(),"Forcing TURN usage by setting ICE Transport Policy in peer connection config.")),this.peerConnection=new RTCPeerConnection(e),this.peerConnection.onsignalingstatechange=n=>this.handleSignalStateChange(n),this.peerConnection.oniceconnectionstatechange=n=>this.handleIceConnectionStateChange(n),this.peerConnection.onicegatheringstatechange=n=>this.handleIceGatheringStateChange(n),this.peerConnection.ontrack=n=>this.handleOnTrack(n),this.peerConnection.onicecandidate=n=>this.handleIceCandidate(n),this.peerConnection.ondatachannel=n=>this.handleDataChannel(n),this.aggregatedStats=new ya,this.preferredCodec=t,this.updateCodecSelection=!0}createOffer(e,t){return oi(this,void 0,void 0,function*(){x.Log(x.GetStackTrace(),"Create Offer",6);const n=location.hostname==="localhost"||location.hostname==="127.0.0.1",y=location.protocol==="https:";let C=t.isFlagEnabled(X.UseMic);!C||n||y||(C=!1,x.Error(x.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),x.Error(x.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.setupTransceiversAsync(C).finally(()=>{var A;(A=this.peerConnection)===null||A===void 0||A.createOffer(e).then(h=>{var m;this.showTextOverlayConnecting(),h.sdp=this.mungeSDP(h.sdp,C),(m=this.peerConnection)===null||m===void 0||m.setLocalDescription(h),this.onSendWebRTCOffer(h)}).catch(()=>{this.showTextOverlaySetupFailure()})})})}receiveOffer(e,t){var n;return oi(this,void 0,void 0,function*(){x.Log(x.GetStackTrace(),"Receive Offer",6),(n=this.peerConnection)===null||n===void 0||n.setRemoteDescription(e).then(()=>{const y=location.hostname==="localhost"||location.hostname==="127.0.0.1",C=location.protocol==="https:";let A=t.isFlagEnabled(X.UseMic);!A||y||C||(A=!1,x.Error(x.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),x.Error(x.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.config.setOptionSettingOptions(pe.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(e)),this.setupTransceiversAsync(A).finally(()=>{var h;(h=this.peerConnection)===null||h===void 0||h.createAnswer().then(m=>{var g;return m.sdp=this.mungeSDP(m.sdp,A),(g=this.peerConnection)===null||g===void 0?void 0:g.setLocalDescription(m)}).then(()=>{var m;this.onSendWebRTCAnswer((m=this.peerConnection)===null||m===void 0?void 0:m.currentLocalDescription)}).catch(()=>{x.Error(x.GetStackTrace(),"createAnswer() failed")})})})})}receiveAnswer(e){var t;(t=this.peerConnection)===null||t===void 0||t.setRemoteDescription(e),this.config.setOptionSettingOptions(pe.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(e))}generateStats(){var e;(e=this.peerConnection)===null||e===void 0||e.getStats(null).then(t=>{this.aggregatedStats.processStats(t),this.onVideoStats(this.aggregatedStats),this.updateCodecSelection&&this.aggregatedStats.inboundVideoStats.codecId&&this.config.setOptionSettingValue(pe.PreferredCodec,this.aggregatedStats.codecs.get(this.aggregatedStats.inboundVideoStats.codecId))})}close(){this.peerConnection&&(this.peerConnection.close(),this.peerConnection=null)}mungeSDP(e,t){let n=e.replace(/(a=fmtp:\d+ .*level-asymmetry-allowed=.*)\r\n/gm,`$1;x-google-start-bitrate=10000;x-google-max-bitrate=100000\r
270
+ `),y="maxaveragebitrate=510000;";return t&&(y+="sprop-maxcapturerate=48000;"),y+=this.config.isFlagEnabled(X.ForceMonoAudio)?"stereo=0;":"stereo=1;",y+="useinbandfec=1",n=n.replace("useinbandfec=1",y),n}handleOnIce(e){var t;x.Log(x.GetStackTrace(),"peerconnection handleOnIce",6),this.config.isFlagEnabled(X.ForceTURN)&&e.candidate.indexOf("relay")<0?x.Info(x.GetStackTrace(),`Dropping candidate because it was not TURN relay. | Type= ${e.type} | Protocol= ${e.protocol} | Address=${e.address} | Port=${e.port} |`,6):(t=this.peerConnection)===null||t===void 0||t.addIceCandidate(e)}handleSignalStateChange(e){x.Log(x.GetStackTrace(),"signaling state change: "+e,6)}handleIceConnectionStateChange(e){x.Log(x.GetStackTrace(),"ice connection state change: "+e,6),this.onIceConnectionStateChange(e)}handleIceGatheringStateChange(e){x.Log(x.GetStackTrace(),"ice gathering state change: "+JSON.stringify(e),6)}handleOnTrack(e){this.onTrack(e)}handleIceCandidate(e){this.onPeerIceCandidate(e)}handleDataChannel(e){this.onDataChannel(e)}onTrack(e){}onIceConnectionStateChange(e){}onPeerIceCandidate(e){}onDataChannel(e){}fuzzyIntersectUEAndBrowserCodecs(e){const t=new Array,n=this.parseAvailableCodecs(e),y=this.config.getSettingOption(pe.PreferredCodec).options;for(const C of n)if(y.includes(C))t.push(C);else{const A=C.split(" ")[0];for(const h of y)if(h.includes(A)){t.push(h);break}}return t}setupTransceiversAsync(e){var t,n,y,C,A,h,m,g,w,p,u,f;return oi(this,void 0,void 0,function*(){let c=!1;for(const i of(n=(t=this.peerConnection)===null||t===void 0?void 0:t.getTransceivers())!==null&&n!==void 0?n:[])if(i&&i.receiver&&i.receiver.track&&i.receiver.track.kind==="video"){c=!0;break}if(c||(y=this.peerConnection)===null||y===void 0||y.addTransceiver("video",{direction:"recvonly"}),RTCRtpReceiver.getCapabilities&&this.preferredCodec!=""){for(const i of(A=(C=this.peerConnection)===null||C===void 0?void 0:C.getTransceivers())!==null&&A!==void 0?A:[])if(i&&i.receiver&&i.receiver.track&&i.receiver.track.kind==="video"&&i.setCodecPreferences){const s=this.preferredCodec.split(" "),r={mimeType:"video/"+s[0],clockRate:9e4,sdpFmtpLine:s[1]?s[1]:""},o=[r];RTCRtpReceiver.getCapabilities("video").codecs.forEach(l=>{(l.mimeType!=r.mimeType||(l==null?void 0:l.sdpFmtpLine)!=(r==null?void 0:r.sdpFmtpLine))&&o.push(l)});for(const l of o)(l==null?void 0:l.sdpFmtpLine)!==void 0&&l.sdpFmtpLine!==""||delete l.sdpFmtpLine;i.setCodecPreferences(o)}}let a=!1;for(const i of(m=(h=this.peerConnection)===null||h===void 0?void 0:h.getTransceivers())!==null&&m!==void 0?m:[])if(i&&i.receiver&&i.receiver.track&&i.receiver.track.kind==="audio"){a=!0;break}if(e){const i={video:!1,audio:{autoGainControl:!1,channelCount:1,echoCancellation:!1,latency:0,noiseSuppression:!1,sampleRate:48e3,sampleSize:16,volume:1}},s=yield navigator.mediaDevices.getUserMedia(i);if(s)if(a){for(const r of(p=(w=this.peerConnection)===null||w===void 0?void 0:w.getTransceivers())!==null&&p!==void 0?p:[])if(Ba.canTransceiverReceiveAudio(r))for(const o of s.getTracks())o.kind&&o.kind=="audio"&&(r.sender.replaceTrack(o),r.direction="sendrecv")}else for(const r of s.getTracks())r.kind&&r.kind=="audio"&&((u=this.peerConnection)===null||u===void 0||u.addTransceiver(r,{direction:"sendrecv"}));else a||(f=this.peerConnection)===null||f===void 0||f.addTransceiver("audio",{direction:"recvonly"})}else a||(g=this.peerConnection)===null||g===void 0||g.addTransceiver("audio",{direction:"recvonly"})})}onVideoStats(e){}onSendWebRTCOffer(e){}onSendWebRTCAnswer(e){}showTextOverlayConnecting(){}showTextOverlaySetupFailure(){}parseAvailableCodecs(e){if(!RTCRtpReceiver.getCapabilities)return["Only available on Chrome"];const t=[],n=(0,ma.splitSections)(e.sdp);return n.shift(),n.forEach(y=>{const{codecs:C}=(0,ma.parseRtpParameters)(y),A=/(VP\d|H26\d|AV1).*/;C.forEach(h=>{const m=h.name+" "+Object.keys(h.parameters||{}).map(g=>g+"="+h.parameters[g]).join(";");if(A.exec(m)!==null){h.name=="VP9"&&(h.parameters={"profile-id":"0"});const g=h.name+" "+Object.keys(h.parameters||{}).map(w=>w+"="+h.parameters[w]).join(";");t.push(g)}})}),t}}class Ca{constructor(){this.PixelStreamingSettings=new fd,this.EncoderSettings=new ba,this.WebRTCSettings=new _a}ueCompatible(){this.WebRTCSettings.MaxFPS!=null&&(this.WebRTCSettings.FPS=this.WebRTCSettings.MaxFPS)}}class fd{}class ba{}class _a{}class Ea{constructor(){this.ReceiptTimeMs=null,this.TransmissionTimeMs=null,this.PreCaptureTimeMs=null,this.PostCaptureTimeMs=null,this.PreEncodeTimeMs=null,this.PostEncodeTimeMs=null,this.EncodeMs=null,this.CaptureToSendMs=null,this.testStartTimeMs=0,this.browserReceiptTimeMs=0,this.latencyExcludingDecode=0,this.testDuration=0,this.networkLatency=0,this.browserSendLatency=0,this.frameDisplayDeltaTimeMs=0,this.endToEndLatency=0,this.encodeLatency=0}setFrameDisplayDeltaTime(e){this.frameDisplayDeltaTimeMs==0&&(this.frameDisplayDeltaTimeMs=Math.round(e))}processFields(){this.EncodeMs!=null||this.PreEncodeTimeMs==null&&this.PostEncodeTimeMs==null||(x.Log(x.GetStackTrace(),`Setting Encode Ms
271
+ ${this.PostEncodeTimeMs}
272
+ ${this.PreEncodeTimeMs}`,6),this.EncodeMs=this.PostEncodeTimeMs-this.PreEncodeTimeMs),this.CaptureToSendMs!=null||this.PreCaptureTimeMs==null&&this.PostCaptureTimeMs==null||(x.Log(x.GetStackTrace(),`Setting CaptureToSendMs Ms
273
+ ${this.PostCaptureTimeMs}
274
+ ${this.PreCaptureTimeMs}`,6),this.CaptureToSendMs=this.PostCaptureTimeMs-this.PreCaptureTimeMs)}}class si{static setExtensionFromBytes(e,t){t.receiving||(t.mimetype="",t.extension="",t.receiving=!0,t.valid=!1,t.size=0,t.data=[],t.timestampStart=new Date().getTime(),x.Log(x.GetStackTrace(),"Received first chunk of file",6));const n=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),n,6),t.extension=n}static setMimeTypeFromBytes(e,t){t.receiving||(t.mimetype="",t.extension="",t.receiving=!0,t.valid=!1,t.size=0,t.data=[],t.timestampStart=new Date().getTime(),x.Log(x.GetStackTrace(),"Received first chunk of file",6));const n=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),n,6),t.mimetype=n}static setContentsFromBytes(e,t){if(!t.receiving)return;t.size=Math.ceil(new DataView(e.slice(1,5).buffer).getInt32(0,!0)/16379);const n=e.slice(5);if(t.data.push(n),x.Log(x.GetStackTrace(),`Received file chunk: ${t.data.length}/${t.size}`,6),t.data.length===t.size){t.receiving=!1,t.valid=!0,x.Log(x.GetStackTrace(),"Received complete file",6);const y=new Date().getTime()-t.timestampStart,C=Math.round(16*t.size*1024/y);x.Log(x.GetStackTrace(),`Average transfer bitrate: ${C}kb/s over ${y/1e3} seconds`,6);const A=new Blob(t.data,{type:t.mimetype}),h=document.createElement("a");h.setAttribute("href",URL.createObjectURL(A)),h.setAttribute("download",`transfer.${t.extension}`),document.body.append(h),h.remove()}else t.data.length>t.size&&(t.receiving=!1,x.Error(x.GetStackTrace(),`Received bigger file than advertised: ${t.data.length}/${t.size}`))}}class hd{constructor(){this.mimetype="",this.extension="",this.receiving=!1,this.size=0,this.data=[],this.valid=!1}}class Ue{}Ue.mainButton=0,Ue.auxiliaryButton=1,Ue.secondaryButton=2,Ue.fourthButton=3,Ue.fifthButton=4;class Me{}Me.primaryButton=1,Me.secondaryButton=2,Me.auxiliaryButton=4,Me.fourthButton=8,Me.fifthButton=16;class Lt{constructor(){this.unregisterCallbacks=[]}addUnregisterCallback(e){this.unregisterCallbacks.push(e)}unregisterAll(){for(const e of this.unregisterCallbacks)e();this.unregisterCallbacks=[]}}class pd{constructor(e,t,n){this.touchEventListenerTracker=new Lt,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=n;const y=h=>this.onTouchStart(h),C=h=>this.onTouchEnd(h),A=h=>this.onTouchMove(h);document.addEventListener("touchstart",y,{passive:!1}),document.addEventListener("touchend",C,{passive:!1}),document.addEventListener("touchmove",A,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchstart",y)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchend",C)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",A))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}setVideoElementParentClientRect(e){this.videoElementParentClientRect=e}onTouchStart(e){if(this.videoElementProvider.isVideoReady()&&e.target===this.videoElementProvider.getVideoElement()){if(this.fakeTouchFinger==null){const t=e.changedTouches[0];this.fakeTouchFinger=new gd(t.identifier,t.clientX-this.videoElementParentClientRect.left,t.clientY-this.videoElementParentClientRect.top);const n=this.videoElementProvider.getVideoParentElement(),y=new MouseEvent("mouseenter",t);n.dispatchEvent(y);const C=this.coordinateConverter.normalizeAndQuantizeUnsigned(this.fakeTouchFinger.x,this.fakeTouchFinger.y);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([Ue.mainButton,C.x,C.y])}e.preventDefault()}}onTouchEnd(e){if(!this.videoElementProvider.isVideoReady()||this.fakeTouchFinger==null)return;const t=this.videoElementProvider.getVideoParentElement(),n=this.toStreamerMessagesProvider.toStreamerHandlers;for(let y=0;y<e.changedTouches.length;y++){const C=e.changedTouches[y];if(C.identifier===this.fakeTouchFinger.id){const A=C.clientX-this.videoElementParentClientRect.left,h=C.clientY-this.videoElementParentClientRect.top,m=this.coordinateConverter.normalizeAndQuantizeUnsigned(A,h);n.get("MouseUp")([Ue.mainButton,m.x,m.y]);const g=new MouseEvent("mouseleave",C);t.dispatchEvent(g),this.fakeTouchFinger=null;break}}e.preventDefault()}onTouchMove(e){if(!this.videoElementProvider.isVideoReady()||this.fakeTouchFinger==null)return;const t=this.toStreamerMessagesProvider.toStreamerHandlers;for(let n=0;n<e.touches.length;n++){const y=e.touches[n];if(y.identifier===this.fakeTouchFinger.id){const C=y.clientX-this.videoElementParentClientRect.left,A=y.clientY-this.videoElementParentClientRect.top,h=this.coordinateConverter.normalizeAndQuantizeUnsigned(C,A),m=this.coordinateConverter.normalizeAndQuantizeSigned(C-this.fakeTouchFinger.x,A-this.fakeTouchFinger.y);t.get("MouseMove")([h.x,h.y,m.x,m.y]),this.fakeTouchFinger.x=C,this.fakeTouchFinger.y=A;break}}e.preventDefault()}}class gd{constructor(e,t,n){this.id=e,this.x=t,this.y=n}}class He{}He.backSpace=8,He.shift=16,He.control=17,He.alt=18,He.rightShift=253,He.rightControl=254,He.rightAlt=255;class vd{constructor(e,t,n){this.keyboardEventListenerTracker=new Lt,this.CodeToKeyCode={Escape:27,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,Minus:173,Equal:187,Backspace:8,Tab:9,KeyQ:81,KeyW:87,KeyE:69,KeyR:82,KeyT:84,KeyY:89,KeyU:85,KeyI:73,KeyO:79,KeyP:80,BracketLeft:219,BracketRight:221,Enter:13,ControlLeft:17,KeyA:65,KeyS:83,KeyD:68,KeyF:70,KeyG:71,KeyH:72,KeyJ:74,KeyK:75,KeyL:76,Semicolon:186,Quote:222,Backquote:192,ShiftLeft:16,Backslash:220,KeyZ:90,KeyX:88,KeyC:67,KeyV:86,KeyB:66,KeyN:78,KeyM:77,Comma:188,Period:190,Slash:191,ShiftRight:253,AltLeft:18,Space:32,CapsLock:20,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Pause:19,ScrollLock:145,NumpadDivide:111,NumpadMultiply:106,NumpadSubtract:109,NumpadAdd:107,NumpadDecimal:110,Numpad9:105,Numpad8:104,Numpad7:103,Numpad6:102,Numpad5:101,Numpad4:100,Numpad3:99,Numpad2:98,Numpad1:97,Numpad0:96,NumLock:144,ControlRight:254,AltRight:255,Home:36,End:35,ArrowUp:38,ArrowLeft:37,ArrowRight:39,ArrowDown:40,PageUp:33,PageDown:34,Insert:45,Delete:46,ContextMenu:93},this.toStreamerMessagesProvider=e,this.config=t,this.activeKeysProvider=n}registerKeyBoardEvents(){const e=C=>this.handleOnCompositionEnd(C),t=C=>this.handleOnKeyDown(C),n=C=>this.handleOnKeyUp(C),y=C=>this.handleOnKeyPress(C);document.addEventListener("compositionend",e),document.addEventListener("keydown",t),document.addEventListener("keyup",n),document.addEventListener("keypress",y),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("compositionend",e)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keydown",t)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keyup",n)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keypress",y))}unregisterKeyBoardEvents(){this.keyboardEventListenerTracker.unregisterAll()}handleOnKeyDown(e){const t=this.getKeycode(e);t&&t!==229&&(x.Log(x.GetStackTrace(),`key down ${t}, repeat = ${e.repeat}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyDown")([this.getKeycode(e),e.repeat?1:0]),this.activeKeysProvider.getActiveKeys().push(t),t===He.backSpace&&document.dispatchEvent(new KeyboardEvent("keypress",{charCode:He.backSpace})),this.config.isFlagEnabled(X.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(t)&&e.preventDefault())}handleOnKeyUp(e){const t=this.getKeycode(e);t&&(x.Log(x.GetStackTrace(),`key up ${t}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyUp")([t]),this.config.isFlagEnabled(X.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(t)&&e.preventDefault())}handleOnKeyPress(e){if(!("charCode"in e))return void x.Warning(x.GetStackTrace(),"KeyboardEvent.charCode is deprecated in this browser, cannot send key press.");const t=e.charCode;x.Log(x.GetStackTrace(),`key press ${t}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyPress")([t])}handleOnCompositionEnd(e){e.data&&e.data.length&&e.data.split("").forEach(t=>{this.handleOnKeyDown(new KeyboardEvent("keydown",{keyCode:t.toUpperCase().charCodeAt(0),charCode:t.charCodeAt(0)})),this.handleOnKeyPress(new KeyboardEvent("keypress",{keyCode:t.toUpperCase().charCodeAt(0),charCode:t.charCodeAt(0)})),this.handleOnKeyUp(new KeyboardEvent("keyup",{keyCode:t.toUpperCase().charCodeAt(0),charCode:t.charCodeAt(0)}))})}getKeycode(e){if(!("keyCode"in e)){const t=e;return t.code in this.CodeToKeyCode?this.CodeToKeyCode[t.code]:(x.Warning(x.GetStackTrace(),`Keyboard code of ${t.code} is not supported in our mapping, ignoring this key.`),null)}return e.keyCode===He.shift&&e.code==="ShiftRight"?He.rightShift:e.keyCode===He.control&&e.code==="ControlRight"?He.rightControl:e.keyCode===He.alt&&e.code==="AltRight"?He.rightAlt:e.keyCode}isKeyCodeBrowserKey(e){return e>=112&&e<=123||e===9}}class yd{constructor(e,t,n){this.x=0,this.y=0,this.updateMouseMovePositionEvent=C=>{this.updateMouseMovePosition(C)},this.mouseEventListenerTracker=new Lt,this.videoElementProvider=e,this.mouseController=t,this.activeKeysProvider=n;const y=this.videoElementProvider.getVideoParentElement();this.x=y.getBoundingClientRect().width/2,this.y=y.getBoundingClientRect().height/2,this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y)}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}lockStateChange(){const e=this.videoElementProvider.getVideoParentElement(),t=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers;if(document.pointerLockElement===e||document.mozPointerLockElement===e)x.Log(x.GetStackTrace(),"Pointer locked",6),document.addEventListener("mousemove",this.updateMouseMovePositionEvent,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1));else{x.Log(x.GetStackTrace(),"The pointer lock status is now unlocked",6),document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1);let n=this.activeKeysProvider.getActiveKeys();const y=new Set(n),C=[];y.forEach(A=>{}),C.forEach(A=>{t.get("KeyUp")([A])}),n=[]}}updateMouseMovePosition(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers,n=this.videoElementProvider.getVideoParentElement().clientWidth,y=this.videoElementProvider.getVideoParentElement().clientHeight;this.x+=e.movementX,this.y+=e.movementY,this.x>n&&(this.x-=n),this.y>y&&(this.y-=y),this.x<0&&(this.x=n+this.x),this.y<0&&(this.y=y-this.y),this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y);const C=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(e.movementX,e.movementY);t.get("MouseMove")([this.coord.x,this.coord.y,C.x,C.y])}handleMouseDown(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e.button,this.coord.x,this.coord.y])}handleMouseUp(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e.button,this.coord.x,this.coord.y])}handleMouseWheel(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([e.wheelDelta,this.coord.x,this.coord.y])}handleMouseDouble(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([e.button,this.coord.x,this.coord.y])}handlePressMouseButtons(e){this.videoElementProvider.isVideoReady()&&this.mouseController.pressMouseButtons(e.buttons,this.x,this.y)}handleReleaseMouseButtons(e){this.videoElementProvider.isVideoReady()&&this.mouseController.releaseMouseButtons(e.buttons,this.x,this.y)}}class md{constructor(e){this.mouseController=e}unregisterMouseEvents(){}updateMouseMovePosition(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"MouseMove",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY),n=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(e.movementX,e.movementY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseMove")([t.x,t.y,n.x,n.y]),e.preventDefault()}handleMouseDown(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"onMouse Down",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e.button,t.x,t.y]),e.preventDefault()}handleMouseUp(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"onMouse Up",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e.button,t.x,t.y]),e.preventDefault()}handleContextMenu(e){this.mouseController.videoElementProvider.isVideoReady()&&e.preventDefault()}handleMouseWheel(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([e.wheelDelta,t.x,t.y]),e.preventDefault()}handleMouseDouble(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([e.button,t.x,t.y])}handlePressMouseButtons(e){this.mouseController.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"onMouse press",6),this.mouseController.pressMouseButtons(e.buttons,e.offsetX,e.offsetY))}handleReleaseMouseButtons(e){this.mouseController.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"onMouse release",6),this.mouseController.releaseMouseButtons(e.buttons,e.offsetX,e.offsetY))}}class wd{constructor(e,t,n,y){this.mouseEventListenerTracker=new Lt,this.toStreamerMessagesProvider=e,this.coordinateConverter=n,this.videoElementProvider=t,this.activeKeysProvider=y,this.registerMouseEnterAndLeaveEvents()}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}registerLockedMouseEvents(e){const t=this.videoElementProvider.getVideoParentElement(),n=new yd(this.videoElementProvider,e,this.activeKeysProvider);if(t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock,document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock,t.requestPointerLock){const g=()=>{t.requestPointerLock()};t.addEventListener("click",g),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("click",g))}const y=()=>n.lockStateChange();document.addEventListener("pointerlockchange",y,!1),document.addEventListener("mozpointerlockchange",y,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("pointerlockchange",y,!1)),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mozpointerlockchange",y,!1));const C=g=>n.handleMouseDown(g),A=g=>n.handleMouseUp(g),h=g=>n.handleMouseWheel(g),m=g=>n.handleMouseDouble(g);t.addEventListener("mousedown",C),t.addEventListener("mouseup",A),t.addEventListener("wheel",h),t.addEventListener("dblclick",m),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousedown",C)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mouseup",A)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("wheel",h)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("dblclick",m)),this.mouseEventListenerTracker.addUnregisterCallback(()=>n.unregisterMouseEvents()),this.mouseEventListenerTracker.addUnregisterCallback(()=>{!document.exitPointerLock||document.pointerLockElement!==t&&document.mozPointerLockElement!==t||document.exitPointerLock()})}registerHoveringMouseEvents(e){const t=this.videoElementProvider.getVideoParentElement(),n=new md(e),y=w=>n.updateMouseMovePosition(w),C=w=>n.handleMouseDown(w),A=w=>n.handleMouseUp(w),h=w=>n.handleContextMenu(w),m=w=>n.handleMouseWheel(w),g=w=>n.handleMouseDouble(w);t.addEventListener("mousemove",y),t.addEventListener("mousedown",C),t.addEventListener("mouseup",A),t.addEventListener("contextmenu",h),t.addEventListener("wheel",m),t.addEventListener("dblclick",g),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousemove",y)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousedown",C)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mouseup",A)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("contextmenu",h)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("wheel",m)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("dblclick",g)),this.mouseEventListenerTracker.addUnregisterCallback(()=>n.unregisterMouseEvents())}registerMouseEnterAndLeaveEvents(){const e=this.videoElementProvider.getVideoParentElement(),t=y=>{this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"Mouse Entered",6),this.sendMouseEnter(),this.pressMouseButtons(y.buttons,y.x,y.y))},n=y=>{this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"Mouse Left",6),this.sendMouseLeave(),this.releaseMouseButtons(y.buttons,y.x,y.y))};e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseenter",t)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseleave",n))}releaseMouseButtons(e,t,n){const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,n);e&Me.primaryButton&&this.sendMouseUp(Ue.mainButton,y.x,y.y),e&Me.secondaryButton&&this.sendMouseUp(Ue.secondaryButton,y.x,y.y),e&Me.auxiliaryButton&&this.sendMouseUp(Ue.auxiliaryButton,y.x,y.y),e&Me.fourthButton&&this.sendMouseUp(Ue.fourthButton,y.x,y.y),e&Me.fifthButton&&this.sendMouseUp(Ue.fifthButton,y.x,y.y)}pressMouseButtons(e,t,n){if(!this.videoElementProvider.isVideoReady())return;const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,n);e&Me.primaryButton&&this.sendMouseDown(Ue.mainButton,y.x,y.y),e&Me.secondaryButton&&this.sendMouseDown(Ue.secondaryButton,y.x,y.y),e&Me.auxiliaryButton&&this.sendMouseDown(Ue.auxiliaryButton,y.x,y.y),e&Me.fourthButton&&this.sendMouseDown(Ue.fourthButton,y.x,y.y),e&Me.fifthButton&&this.sendMouseDown(Ue.fifthButton,y.x,y.y)}sendMouseEnter(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseEnter")()}sendMouseLeave(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseLeave")()}sendMouseDown(e,t,n){this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),`mouse button ${e} down at (${t}, ${n})`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e,t,n]))}sendMouseUp(e,t,n){if(!this.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),`mouse button ${e} up at (${t}, ${n})`,6);const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,n);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e,y.x,y.y])}}class Bd{constructor(e,t,n){this.fingers=[9,8,7,6,5,4,3,2,1,0],this.fingerIds=new Map,this.maxByteValue=255,this.touchEventListenerTracker=new Lt,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=n,this.videoElementParent=t.getVideoElement();const y=m=>this.onTouchStart(m),C=m=>this.onTouchEnd(m),A=m=>this.onTouchMove(m);this.videoElementParent.addEventListener("touchstart",y),this.videoElementParent.addEventListener("touchend",C),this.videoElementParent.addEventListener("touchmove",A),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchstart",y)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchend",C)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchmove",A)),x.Log(x.GetStackTrace(),"Touch Events Registered",6);const h=m=>{m.preventDefault()};document.addEventListener("touchmove",h),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",h))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}rememberTouch(e){const t=this.fingers.pop();t===void 0&&x.Log(x.GetStackTrace(),"exhausted touch identifiers",6),this.fingerIds.set(e.identifier,t)}forgetTouch(e){this.fingers.push(this.fingerIds.get(e.identifier)),this.fingers.sort(function(t,n){return n-t}),this.fingerIds.delete(e.identifier)}onTouchStart(e){if(this.videoElementProvider.isVideoReady()){for(let t=0;t<e.changedTouches.length;t++)this.rememberTouch(e.changedTouches[t]);x.Log(x.GetStackTrace(),"touch start",6),this.emitTouchData("TouchStart",e.changedTouches),e.preventDefault()}}onTouchEnd(e){if(this.videoElementProvider.isVideoReady()){x.Log(x.GetStackTrace(),"touch end",6),this.emitTouchData("TouchEnd",e.changedTouches);for(let t=0;t<e.changedTouches.length;t++)this.forgetTouch(e.changedTouches[t]);e.preventDefault()}}onTouchMove(e){this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"touch move",6),this.emitTouchData("TouchMove",e.touches),e.preventDefault())}emitTouchData(e,t){if(!this.videoElementProvider.isVideoReady())return;const n=this.videoElementProvider.getVideoParentElement().getBoundingClientRect(),y=this.toStreamerMessagesProvider.toStreamerHandlers;for(let C=0;C<t.length;C++){const h=t[C],m=h.clientX-n.left,g=h.clientY-n.top;x.Log(x.GetStackTrace(),`F${this.fingerIds.get(h.identifier)}=(${m}, ${g})`,6);const w=this.coordinateConverter.normalizeAndQuantizeUnsigned(m,g);switch(e){case"TouchStart":y.get("TouchStart")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*(h.force>0?h.force:1),w.inRange?1:0]);break;case"TouchEnd":y.get("TouchEnd")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0]);break;case"TouchMove":y.get("TouchMove")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*(h.force>0?h.force:1),w.inRange?1:0])}}}}class Cd{constructor(e){this.gamePadEventListenerTracker=new Lt,this.toStreamerMessagesProvider=e,this.requestAnimationFrame=(window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.requestAnimationFrame).bind(window);const t=window;if(window.addEventListener("beforeunload",n=>this.onBeforeUnload(n)),"GamepadEvent"in t){const n=C=>this.gamePadConnectHandler(C),y=C=>this.gamePadDisconnectHandler(C);window.addEventListener("gamepadconnected",n),window.addEventListener("gamepaddisconnected",y),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepadconnected",n)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepaddisconnected",y))}else if("WebKitGamepadEvent"in t){const n=C=>this.gamePadConnectHandler(C),y=C=>this.gamePadDisconnectHandler(C);window.addEventListener("webkitgamepadconnected",n),window.addEventListener("webkitgamepaddisconnected",y),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepadconnected",n)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepaddisconnected",y))}if(this.controllers=[],navigator.getGamepads)for(const n of navigator.getGamepads())n&&this.gamePadConnectHandler(new GamepadEvent("gamepadconnected",{gamepad:n}))}unregisterGamePadEvents(){this.gamePadEventListenerTracker.unregisterAll();for(const e of this.controllers)e.id!==void 0&&this.onGamepadDisconnected(e.id);this.controllers=[],this.onGamepadConnected=()=>{},this.onGamepadDisconnected=()=>{}}gamePadConnectHandler(e){x.Log(x.GetStackTrace(),"Gamepad connect handler",6);const t=e.gamepad,n={currentState:t,prevState:t,id:void 0};this.controllers.push(n),this.controllers[t.index].currentState=t,this.controllers[t.index].prevState=t,x.Log(x.GetStackTrace(),"gamepad: "+t.id+" connected",6),window.requestAnimationFrame(()=>this.updateStatus()),this.onGamepadConnected()}gamePadDisconnectHandler(e){x.Log(x.GetStackTrace(),"Gamepad disconnect handler",6),x.Log(x.GetStackTrace(),"gamepad: "+e.gamepad.id+" disconnected",6);const t=this.controllers[e.gamepad.index];delete this.controllers[e.gamepad.index],this.controllers=this.controllers.filter(n=>n!==void 0),this.onGamepadDisconnected(t.id)}scanGamePads(){const e=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():[];for(let t=0;t<e.length;t++)e[t]&&e[t].index in this.controllers&&(this.controllers[e[t].index].currentState=e[t])}updateStatus(){this.scanGamePads();const e=this.toStreamerMessagesProvider.toStreamerHandlers;for(const t of this.controllers){const n=t.id===void 0?this.controllers.indexOf(t):t.id,y=t.currentState;for(let C=0;C<t.currentState.buttons.length;C++){const A=t.currentState.buttons[C],h=t.prevState.buttons[C];A.pressed?C==Ht.LeftTrigger?e.get("GamepadAnalog")([n,5,A.value]):C==Ht.RightTrigger?e.get("GamepadAnalog")([n,6,A.value]):e.get("GamepadButtonPressed")([n,C,h.pressed?1:0]):!A.pressed&&h.pressed&&(C==Ht.LeftTrigger?e.get("GamepadAnalog")([n,5,0]):C==Ht.RightTrigger?e.get("GamepadAnalog")([n,6,0]):e.get("GamepadButtonReleased")([n,C,0]))}for(let C=0;C<y.axes.length;C+=2){const A=parseFloat(y.axes[C].toFixed(4)),h=-parseFloat(y.axes[C+1].toFixed(4));e.get("GamepadAnalog")([n,C+1,A]),e.get("GamepadAnalog")([n,C+2,h])}this.controllers[n].prevState=y}this.controllers.length>0&&this.requestAnimationFrame(()=>this.updateStatus())}onGamepadResponseReceived(e){for(const t of this.controllers)if(t.id===void 0){t.id=e;break}}onGamepadConnected(){}onGamepadDisconnected(e){}onBeforeUnload(e){for(const t of this.controllers)this.onGamepadDisconnected(t.id)}}(function(v){v[v.RightClusterBottomButton=0]="RightClusterBottomButton",v[v.RightClusterRightButton=1]="RightClusterRightButton",v[v.RightClusterLeftButton=2]="RightClusterLeftButton",v[v.RightClusterTopButton=3]="RightClusterTopButton",v[v.LeftShoulder=4]="LeftShoulder",v[v.RightShoulder=5]="RightShoulder",v[v.LeftTrigger=6]="LeftTrigger",v[v.RightTrigger=7]="RightTrigger",v[v.SelectOrBack=8]="SelectOrBack",v[v.StartOrForward=9]="StartOrForward",v[v.LeftAnalogPress=10]="LeftAnalogPress",v[v.RightAnalogPress=11]="RightAnalogPress",v[v.LeftClusterTopButton=12]="LeftClusterTopButton",v[v.LeftClusterBottomButton=13]="LeftClusterBottomButton",v[v.LeftClusterLeftButton=14]="LeftClusterLeftButton",v[v.LeftClusterRightButton=15]="LeftClusterRightButton",v[v.CentreButton=16]="CentreButton",v[v.LeftStickHorizontal=0]="LeftStickHorizontal",v[v.LeftStickVertical=1]="LeftStickVertical",v[v.RightStickHorizontal=2]="RightStickHorizontal",v[v.RightStickVertical=3]="RightStickVertical"})(Ht||(Ht={}));class bd{constructor(e,t,n){this.activeKeys=new _d,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=n}registerKeyBoard(e){x.Log(x.GetStackTrace(),"Register Keyboard Events",7);const t=new vd(this.toStreamerMessagesProvider,e,this.activeKeys);return t.registerKeyBoardEvents(),t}registerMouse(e){x.Log(x.GetStackTrace(),"Register Mouse Events",7);const t=new wd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter,this.activeKeys);switch(e){case bt.LockedMouse:t.registerLockedMouseEvents(t);break;case bt.HoveringMouse:t.registerHoveringMouseEvents(t);break;default:x.Info(x.GetStackTrace(),"unknown Control Scheme Type Defaulting to Locked Mouse Events"),t.registerLockedMouseEvents(t)}return t}registerTouch(e,t){if(x.Log(x.GetStackTrace(),"Registering Touch",6),e){const n=new pd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter);return n.setVideoElementParentClientRect(t),n}return new Bd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter)}registerGamePad(){return x.Log(x.GetStackTrace(),"Register Game Pad",7),new Cd(this.toStreamerMessagesProvider)}}class _d{constructor(){this.activeKeys=[],this.activeKeys=[]}getActiveKeys(){return this.activeKeys}}class Ed{constructor(e,t){this.lastTimeResized=new Date().getTime(),this.videoElement=document.createElement("video"),this.config=t,this.videoElement.id="streamingVideo",this.videoElement.disablePictureInPicture=!0,this.videoElement.playsInline=!0,this.videoElement.style.width="100%",this.videoElement.style.height="100%",this.videoElement.style.position="absolute",this.videoElement.style.pointerEvents="all",e.appendChild(this.videoElement),this.onResizePlayerCallback=()=>{console.log("Resolution changed, restyling player, did you forget to override this function?")},this.onMatchViewportResolutionCallback=()=>{console.log("Resolution changed and match viewport resolution is turned on, did you forget to override this function?")},this.videoElement.onclick=()=>{this.audioElement!=null&&this.audioElement.paused&&this.audioElement.play(),this.videoElement.paused&&this.videoElement.play()},this.videoElement.onloadedmetadata=()=>{this.onVideoInitialized()},window.addEventListener("resize",()=>this.resizePlayerStyle(),!0),window.addEventListener("orientationchange",()=>this.onOrientationChange())}setAudioElement(e){this.audioElement=e}play(){return this.videoElement.muted=this.config.isFlagEnabled(X.StartVideoMuted),this.videoElement.autoplay=this.config.isFlagEnabled(X.AutoPlayVideo),this.videoElement.play()}isPaused(){return this.videoElement.paused}isVideoReady(){return this.videoElement.readyState!==void 0&&this.videoElement.readyState>0}hasVideoSource(){return this.videoElement.srcObject!==void 0&&this.videoElement.srcObject!==null}getVideoElement(){return this.videoElement}getVideoParentElement(){return this.videoElement.parentElement}setVideoEnabled(e){this.videoElement.srcObject.getTracks().forEach(t=>t.enabled=e)}onVideoInitialized(){}onOrientationChange(){clearTimeout(this.orientationChangeTimeout),this.orientationChangeTimeout=window.setTimeout(()=>{this.resizePlayerStyle()},500)}resizePlayerStyle(){const e=this.getVideoParentElement();e&&(this.updateVideoStreamSize(),e.classList.contains("fixed-size")||this.resizePlayerStyleToFillParentElement(),this.onResizePlayerCallback())}resizePlayerStyleToFillParentElement(){this.getVideoParentElement().setAttribute("style","top: 0px; left: 0px; width: 100%; height: 100%; cursor: default;")}updateVideoStreamSize(){if(this.config.isFlagEnabled(X.MatchViewportResolution))if(new Date().getTime()-this.lastTimeResized>300){const e=this.getVideoParentElement();if(!e)return;this.onMatchViewportResolutionCallback(e.clientWidth,e.clientHeight),this.lastTimeResized=new Date().getTime()}else x.Log(x.GetStackTrace(),"Resizing too often - skipping",6),clearTimeout(this.resizeTimeoutHandle),this.resizeTimeoutHandle=window.setTimeout(()=>this.updateVideoStreamSize(),100)}}class Fd{constructor(){this.toStreamerHandlers=new Map,this.fromStreamerHandlers=new Map,this.toStreamerMessages=new Map,this.fromStreamerMessages=new Map}populateDefaultProtocol(){this.toStreamerMessages.set("IFrameRequest",{id:0,structure:[]}),this.toStreamerMessages.set("RequestQualityControl",{id:1,structure:[]}),this.toStreamerMessages.set("FpsRequest",{id:2,structure:[]}),this.toStreamerMessages.set("AverageBitrateRequest",{id:3,structure:[]}),this.toStreamerMessages.set("StartStreaming",{id:4,structure:[]}),this.toStreamerMessages.set("StopStreaming",{id:5,structure:[]}),this.toStreamerMessages.set("LatencyTest",{id:6,structure:["string"]}),this.toStreamerMessages.set("RequestInitialSettings",{id:7,structure:[]}),this.toStreamerMessages.set("TestEcho",{id:8,structure:[]}),this.toStreamerMessages.set("DataChannelLatencyTest",{id:9,structure:[]}),this.toStreamerMessages.set("UIInteraction",{id:50,structure:["string"]}),this.toStreamerMessages.set("Command",{id:51,structure:["string"]}),this.toStreamerMessages.set("KeyDown",{id:60,structure:["uint8","uint8"]}),this.toStreamerMessages.set("KeyUp",{id:61,structure:["uint8"]}),this.toStreamerMessages.set("KeyPress",{id:62,structure:["uint16"]}),this.toStreamerMessages.set("MouseEnter",{id:70,structure:[]}),this.toStreamerMessages.set("MouseLeave",{id:71,structure:[]}),this.toStreamerMessages.set("MouseDown",{id:72,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.set("MouseUp",{id:73,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.set("MouseMove",{id:74,structure:["uint16","uint16","int16","int16"]}),this.toStreamerMessages.set("MouseWheel",{id:75,structure:["int16","uint16","uint16"]}),this.toStreamerMessages.set("MouseDouble",{id:76,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.set("TouchStart",{id:80,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.set("TouchEnd",{id:81,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.set("TouchMove",{id:82,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.set("GamepadConnected",{id:93,structure:[]}),this.toStreamerMessages.set("GamepadButtonPressed",{id:90,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.set("GamepadButtonReleased",{id:91,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.set("GamepadAnalog",{id:92,structure:["uint8","uint8","double"]}),this.toStreamerMessages.set("GamepadDisconnected",{id:94,structure:["uint8"]}),this.fromStreamerMessages.set(0,"QualityControlOwnership"),this.fromStreamerMessages.set(1,"Response"),this.fromStreamerMessages.set(2,"Command"),this.fromStreamerMessages.set(3,"FreezeFrame"),this.fromStreamerMessages.set(4,"UnfreezeFrame"),this.fromStreamerMessages.set(5,"VideoEncoderAvgQP"),this.fromStreamerMessages.set(6,"LatencyTest"),this.fromStreamerMessages.set(7,"InitialSettings"),this.fromStreamerMessages.set(8,"FileExtension"),this.fromStreamerMessages.set(9,"FileMimeType"),this.fromStreamerMessages.set(10,"FileContents"),this.fromStreamerMessages.set(11,"TestEcho"),this.fromStreamerMessages.set(12,"InputControlOwnership"),this.fromStreamerMessages.set(13,"GamepadResponse"),this.fromStreamerMessages.set(14,"DataChannelLatencyTest"),this.fromStreamerMessages.set(255,"Protocol")}registerMessageHandler(e,t,n){switch(e){case Ae.ToStreamer:this.toStreamerHandlers.set(t,n);break;case Ae.FromStreamer:this.fromStreamerHandlers.set(t,n);break;default:x.Log(x.GetStackTrace(),`Unknown message direction ${e}`)}}}(function(v){v[v.ToStreamer=0]="ToStreamer",v[v.FromStreamer=1]="FromStreamer"})(Ae||(Ae={}));class Sd{constructor(){this.responseEventListeners=new Map}addResponseEventListener(e,t){this.responseEventListeners.set(e,t)}removeResponseEventListener(e){this.responseEventListeners.delete(e)}onResponse(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.Response",6);const t=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),t,6),this.responseEventListeners.forEach(n=>{n(t)})}}class Qd{constructor(e,t){this.dataChannelSender=e,this.toStreamerMessagesMapProvider=t}sendMessageToStreamer(e,t){t===void 0&&(t=[]);const n=this.toStreamerMessagesMapProvider.toStreamerMessages.get(e);if(n===void 0)return void x.Error(x.GetStackTrace(),`Attempted to send a message to the streamer with message type: ${e}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`);if(n.structure&&t&&n.structure.length!==t.length)return void x.Error(x.GetStackTrace(),`Provided message data doesn't match expected layout. Expected [ ${n.structure.map(m=>{switch(m){case"uint8":case"uint16":case"int16":case"float":case"double":return"number";case"string":return"string"}}).toString()} ] but received [ ${t.map(m=>typeof m).toString()} ]`);let y=0;const C=new TextEncoder;t.forEach((m,g)=>{switch(n.structure[g]){case"uint8":y+=1;break;case"uint16":case"int16":y+=2;break;case"float":y+=4;break;case"double":y+=8;break;case"string":y+=2,y+=2*C.encode(m).length}});const A=new DataView(new ArrayBuffer(y+1));A.setUint8(0,n.id);let h=1;t.forEach((m,g)=>{switch(n.structure[g]){case"uint8":A.setUint8(h,m),h+=1;break;case"uint16":A.setUint16(h,m,!0),h+=2;break;case"int16":A.setInt16(h,m,!0),h+=2;break;case"float":A.setFloat32(h,m,!0),h+=4;break;case"double":A.setFloat64(h,m,!0),h+=8;break;case"string":A.setUint16(h,m.length,!0),h+=2;for(let w=0;w<m.length;w++)A.setUint16(h,m.charCodeAt(w),!0),h+=2}}),this.dataChannelSender.canSend()?this.dataChannelSender.sendData(A.buffer):x.Info(x.GetStackTrace(),`Data channel cannot send yet, skipping sending message: ${e} - ${new Uint8Array(A.buffer)}`)}}class Ud{constructor(e){this.sendMessageController=e}SendRequestQualityControl(){this.sendMessageController.sendMessageToStreamer("RequestQualityControl")}SendMaxFpsRequest(){this.sendMessageController.sendMessageToStreamer("FpsRequest")}SendAverageBitrateRequest(){this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")}SendStartStreaming(){this.sendMessageController.sendMessageToStreamer("StartStreaming")}SendStopStreaming(){this.sendMessageController.sendMessageToStreamer("StopStreaming")}SendRequestInitialSettings(){this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")}}class Td{constructor(e){this.dataChannelProvider=e}canSend(){return this.dataChannelProvider.getDataChannelInstance().dataChannel!==void 0&&this.dataChannelProvider.getDataChannelInstance().dataChannel.readyState=="open"}sendData(e){const t=this.dataChannelProvider.getDataChannelInstance();t.dataChannel.readyState=="open"?(t.dataChannel.send(e),x.Log(x.GetStackTrace(),`Message Sent: ${new Uint8Array(e)}`,6),this.resetAfkWarningTimerOnDataSend()):x.Error(x.GetStackTrace(),`Message Failed: ${new Uint8Array(e)}`)}resetAfkWarningTimerOnDataSend(){}}class Id{constructor(e){this.videoElementProvider=e,this.normalizeAndQuantizeUnsignedFunc=()=>{throw new Error("Normalize and quantize unsigned, method not implemented.")},this.normalizeAndQuantizeSignedFunc=()=>{throw new Error("Normalize and unquantize signed, method not implemented.")},this.denormalizeAndUnquantizeUnsignedFunc=()=>{throw new Error("Denormalize and unquantize unsigned, method not implemented.")}}normalizeAndQuantizeUnsigned(e,t){return this.normalizeAndQuantizeUnsignedFunc(e,t)}unquantizeAndDenormalizeUnsigned(e,t){return this.denormalizeAndUnquantizeUnsignedFunc(e,t)}normalizeAndQuantizeSigned(e,t){return this.normalizeAndQuantizeSignedFunc(e,t)}setupNormalizeAndQuantize(){if(this.videoElementParent=this.videoElementProvider.getVideoParentElement(),this.videoElement=this.videoElementProvider.getVideoElement(),this.videoElementParent&&this.videoElement){const e=this.videoElementParent.clientWidth||1,t=this.videoElementParent.clientHeight||1,n=this.videoElement.videoWidth||1,y=t/e,C=(this.videoElement.videoHeight||1)/n;y>C?(x.Log(x.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio > videoAspectRatio",6),this.ratio=y/C,this.normalizeAndQuantizeUnsignedFunc=(A,h)=>this.normalizeAndQuantizeUnsignedPlayerBigger(A,h),this.normalizeAndQuantizeSignedFunc=(A,h)=>this.normalizeAndQuantizeSignedPlayerBigger(A,h),this.denormalizeAndUnquantizeUnsignedFunc=(A,h)=>this.denormalizeAndUnquantizeUnsignedPlayerBigger(A,h)):(x.Log(x.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio <= videoAspectRatio",6),this.ratio=C/y,this.normalizeAndQuantizeUnsignedFunc=(A,h)=>this.normalizeAndQuantizeUnsignedPlayerSmaller(A,h),this.normalizeAndQuantizeSignedFunc=(A,h)=>this.normalizeAndQuantizeSignedPlayerSmaller(A,h),this.denormalizeAndUnquantizeUnsignedFunc=(A,h)=>this.denormalizeAndUnquantizeUnsignedPlayerSmaller(A,h))}}normalizeAndQuantizeUnsignedPlayerBigger(e,t){const n=e/this.videoElementParent.clientWidth,y=this.ratio*(t/this.videoElementParent.clientHeight-.5)+.5;return n<0||n>1||y<0||y>1?new GA(!1,65535,65535):new GA(!0,65536*n,65536*y)}denormalizeAndUnquantizeUnsignedPlayerBigger(e,t){const n=e/65536,y=(t/65536-.5)/this.ratio+.5;return new ai(n*this.videoElementParent.clientWidth,y*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerBigger(e,t){const n=e/(.5*this.videoElementParent.clientWidth),y=this.ratio*t/(.5*this.videoElementParent.clientHeight);return new Fa(32767*n,32767*y)}normalizeAndQuantizeUnsignedPlayerSmaller(e,t){const n=this.ratio*(e/this.videoElementParent.clientWidth-.5)+.5,y=t/this.videoElementParent.clientHeight;return n<0||n>1||y<0||y>1?new GA(!1,65535,65535):new GA(!0,65536*n,65536*y)}denormalizeAndUnquantizeUnsignedPlayerSmaller(e,t){const n=(e/65536-.5)/this.ratio+.5,y=t/65536;return new ai(n*this.videoElementParent.clientWidth,y*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerSmaller(e,t){const n=this.ratio*e/(.5*this.videoElementParent.clientWidth),y=t/(.5*this.videoElementParent.clientHeight);return new Fa(32767*n,32767*y)}}class GA{constructor(e,t,n){this.inRange=e,this.x=t,this.y=n}}class ai{constructor(e,t){this.x=e,this.y=t}}class Fa{constructor(e,t){this.x=e,this.y=t}}class Sa{constructor(e,t){this.shouldShowPlayOverlay=!0,this.autoJoinTimer=void 0,this.config=e,this.pixelStreaming=t,this.responseController=new Sd,this.file=new hd,this.sdpConstraints={offerToReceiveAudio:!0,offerToReceiveVideo:!0},this.afkController=new da(this.config,this.pixelStreaming,this.onAfkTriggered.bind(this)),this.afkController.onAFKTimedOutCallback=()=>{this.closeSignalingServer("You have been disconnected due to inactivity")},this.freezeFrameController=new rd(this.pixelStreaming.videoElementParent),this.videoPlayer=new Ed(this.pixelStreaming.videoElementParent,this.config),this.videoPlayer.onVideoInitialized=()=>this.handleVideoInitialized(),this.videoPlayer.onMatchViewportResolutionCallback=(n,y)=>{const C={"Resolution.Width":n,"Resolution.Height":y};this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify(C)])},this.videoPlayer.onResizePlayerCallback=()=>{this.setUpMouseAndFreezeFrame()},this.streamController=new ed(this.videoPlayer),this.coordinateConverter=new Id(this.videoPlayer),this.sendrecvDataChannelController=new fa,this.recvDataChannelController=new fa,this.registerDataChannelEventEmitters(this.sendrecvDataChannelController),this.registerDataChannelEventEmitters(this.recvDataChannelController),this.dataChannelSender=new Td(this.sendrecvDataChannelController),this.dataChannelSender.resetAfkWarningTimerOnDataSend=()=>this.afkController.resetAfkWarningTimer(),this.streamMessageController=new Fd,this.webSocketController=new Is,this.webSocketController.onConfig=n=>this.handleOnConfigMessage(n),this.webSocketController.onStreamerList=n=>this.handleStreamerListMessage(n),this.webSocketController.onStreamerIDChanged=n=>this.handleStreamerIDChangedMessage(n),this.webSocketController.onPlayerCount=n=>{this.pixelStreaming._onPlayerCount(n.count)},this.webSocketController.onOpen.addEventListener("open",()=>{this.config.isFlagEnabled(X.BrowserSendOffer)||this.webSocketController.requestStreamerList()}),this.webSocketController.onClose.addEventListener("close",n=>{const y=this.shouldReconnect&&n.detail.code!=1001&&this.config.getNumericSettingValue(Z.MaxReconnectAttempts)>0,C=this.disconnectMessage?this.disconnectMessage:n.detail.reason;this.pixelStreaming._onDisconnect(C,!y&&!this.isReconnecting),this.afkController.stopAfkWarningTimer(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.setVideoEncoderAvgQP(0),this.setTouchInputEnabled(!1),this.setMouseInputEnabled(!1),this.setKeyboardInputEnabled(!1),this.setGamePadInputEnabled(!1),y&&setTimeout(()=>{this.isReconnecting=!0,this.reconnectAttempt++,this.tryReconnect(n.detail.reason)},2e3)}),this.sendMessageController=new Qd(this.dataChannelSender,this.streamMessageController),this.toStreamerMessagesController=new Ud(this.sendMessageController),this.registerMessageHandlers(),this.streamMessageController.populateDefaultProtocol(),this.inputClassesFactory=new bd(this.streamMessageController,this.videoPlayer,this.coordinateConverter),this.isUsingSFU=!1,this.isQualityController=!1,this.preferredCodec="",this.shouldReconnect=!0,this.isReconnecting=!1,this.reconnectAttempt=0,this.config._addOnOptionSettingChangedListener(pe.StreamerId,n=>{n!==""&&(this.peerConnectionController.peerConnection.close(),this.peerConnectionController.createPeerConnection(this.peerConfig,this.preferredCodec),this.subscribedStream=n,this.webSocketController.sendSubscribe(n))}),this.setVideoEncoderAvgQP(-1),this.signallingUrlBuilder=()=>{let n=this.config.getTextSettingValue(it.SignallingServerUrl);return this.config.isFlagEnabled(X.BrowserSendOffer)&&(n+="?"+X.BrowserSendOffer+"=true"),n}}requestUnquantizedAndDenormalizeUnsigned(e,t){return this.coordinateConverter.unquantizeAndDenormalizeUnsigned(e,t)}handleOnMessage(e){const t=new Uint8Array(e.data);x.Log(x.GetStackTrace(),"Message incoming:"+t,6);const n=this.streamMessageController.fromStreamerMessages.get(t[0]);this.streamMessageController.fromStreamerHandlers.get(n)(e.data)}registerMessageHandlers(){this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"QualityControlOwnership",e=>this.onQualityControlOwnership(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Response",e=>this.responseController.onResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Command",e=>{this.onCommand(e)}),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FreezeFrame",e=>this.onFreezeFrameMessage(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"UnfreezeFrame",()=>this.invalidateFreezeFrameAndEnableVideo()),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"VideoEncoderAvgQP",e=>this.handleVideoEncoderAvgQP(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"LatencyTest",e=>this.handleLatencyTestResult(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"DataChannelLatencyTest",e=>this.handleDataChannelLatencyTestResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"InitialSettings",e=>this.handleInitialSettings(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileExtension",e=>this.onFileExtension(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileMimeType",e=>this.onFileMimeType(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileContents",e=>this.onFileContents(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"InputControlOwnership",e=>this.onInputControlOwnership(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"GamepadResponse",e=>this.onGamepadResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Protocol",e=>this.onProtocolMessage(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"IFrameRequest",()=>this.sendMessageController.sendMessageToStreamer("IFrameRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"RequestQualityControl",()=>this.sendMessageController.sendMessageToStreamer("RequestQualityControl")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"FpsRequest",()=>this.sendMessageController.sendMessageToStreamer("FpsRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"AverageBitrateRequest",()=>this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"StartStreaming",()=>this.sendMessageController.sendMessageToStreamer("StartStreaming")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"StopStreaming",()=>this.sendMessageController.sendMessageToStreamer("StopStreaming")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"LatencyTest",e=>this.sendMessageController.sendMessageToStreamer("LatencyTest",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"RequestInitialSettings",()=>this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"UIInteraction",e=>this.sendMessageController.sendMessageToStreamer("UIInteraction",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"Command",e=>this.sendMessageController.sendMessageToStreamer("Command",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TextboxEntry",e=>this.sendMessageController.sendMessageToStreamer("TextboxEntry",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyDown",e=>this.sendMessageController.sendMessageToStreamer("KeyDown",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyUp",e=>this.sendMessageController.sendMessageToStreamer("KeyUp",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyPress",e=>this.sendMessageController.sendMessageToStreamer("KeyPress",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseEnter",e=>this.sendMessageController.sendMessageToStreamer("MouseEnter",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseLeave",e=>this.sendMessageController.sendMessageToStreamer("MouseLeave",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseDown",e=>this.sendMessageController.sendMessageToStreamer("MouseDown",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseUp",e=>this.sendMessageController.sendMessageToStreamer("MouseUp",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseMove",e=>this.sendMessageController.sendMessageToStreamer("MouseMove",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseWheel",e=>this.sendMessageController.sendMessageToStreamer("MouseWheel",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseDouble",e=>this.sendMessageController.sendMessageToStreamer("MouseDouble",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchStart",e=>this.sendMessageController.sendMessageToStreamer("TouchStart",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchEnd",e=>this.sendMessageController.sendMessageToStreamer("TouchEnd",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchMove",e=>this.sendMessageController.sendMessageToStreamer("TouchMove",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadConnected",()=>this.sendMessageController.sendMessageToStreamer("GamepadConnected")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadButtonPressed",e=>this.sendMessageController.sendMessageToStreamer("GamepadButtonPressed",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadButtonReleased",e=>this.sendMessageController.sendMessageToStreamer("GamepadButtonReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadAnalog",e=>this.sendMessageController.sendMessageToStreamer("GamepadAnalog",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadDisconnected",e=>this.sendMessageController.sendMessageToStreamer("GamepadDisconnected",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XREyeViews",e=>this.sendMessageController.sendMessageToStreamer("XREyeViews",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRHMDTransform",e=>this.sendMessageController.sendMessageToStreamer("XRHMDTransform",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRControllerTransform",e=>this.sendMessageController.sendMessageToStreamer("XRControllerTransform",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRSystem",e=>this.sendMessageController.sendMessageToStreamer("XRSystem",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonTouched",e=>this.sendMessageController.sendMessageToStreamer("XRButtonTouched",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonTouchReleased",e=>this.sendMessageController.sendMessageToStreamer("XRButtonTouchReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonPressed",e=>this.sendMessageController.sendMessageToStreamer("XRButtonPressed",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonReleased",e=>this.sendMessageController.sendMessageToStreamer("XRButtonReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRAnalog",e=>this.sendMessageController.sendMessageToStreamer("XRAnalog",e))}onCommand(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.Command",6);const t=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),"Data Channel Command: "+t,6);const n=JSON.parse(t);n.command==="onScreenKeyboard"&&this.pixelStreaming._activateOnScreenKeyboard(n)}onProtocolMessage(e){try{const t=new TextDecoder("utf-16").decode(e.slice(1)),n=JSON.parse(t);Object.prototype.hasOwnProperty.call(n,"Direction")||x.Error(x.GetStackTrace(),"Malformed protocol received. Ensure the protocol message contains a direction");const y=n.Direction;delete n.Direction,x.Log(x.GetStackTrace(),`Received new ${y==Ae.FromStreamer?"FromStreamer":"ToStreamer"} protocol. Updating existing protocol...`),Object.keys(n).forEach(C=>{const A=n[C];switch(y){case Ae.ToStreamer:if(!Object.prototype.hasOwnProperty.call(A,"id"))return void x.Error(x.GetStackTrace(),`ToStreamer->${C} protocol definition was malformed as it didn't contain at least an id
275
+
276
+ Definition was: ${JSON.stringify(A,null,2)}`);if(C==="UIInteraction"||C==="Command"||C==="LatencyTest")return;this.streamMessageController.toStreamerHandlers.get(C)?this.streamMessageController.toStreamerMessages.set(C,A):x.Error(x.GetStackTrace(),`There was no registered handler for "${C}" - try adding one using registerMessageHandler(MessageDirection.ToStreamer, "${C}", myHandler)`);break;case Ae.FromStreamer:if(!Object.prototype.hasOwnProperty.call(A,"id"))return void x.Error(x.GetStackTrace(),`FromStreamer->${C} protocol definition was malformed as it didn't contain at least an id
277
+
278
+ Definition was: ${JSON.stringify(A,null,2)}`);this.streamMessageController.fromStreamerHandlers.get(C)?this.streamMessageController.fromStreamerMessages.set(A.id,C):x.Error(x.GetStackTrace(),`There was no registered handler for "${A}" - try adding one using registerMessageHandler(MessageDirection.FromStreamer, "${C}", myHandler)`);break;default:x.Error(x.GetStackTrace(),`Unknown direction: ${y}`)}}),this.toStreamerMessagesController.SendRequestInitialSettings(),this.toStreamerMessagesController.SendRequestQualityControl()}catch(t){x.Log(x.GetStackTrace(),t)}}onInputControlOwnership(e){const t=new Uint8Array(e);x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.InputControlOwnership",6);const n=new Boolean(t[1]).valueOf();x.Log(x.GetStackTrace(),`Received input controller message - will your input control the stream: ${n}`),this.pixelStreaming._onInputControlOwnership(n)}onGamepadResponse(e){const t=new TextDecoder("utf-16").decode(e.slice(1)),n=JSON.parse(t);this.gamePadController.onGamepadResponseReceived(n.controllerId)}onAfkTriggered(){this.afkController.onAfkClick(),this.videoPlayer.isPaused()&&this.videoPlayer.hasVideoSource()&&this.playStream()}setAfkEnabled(e){e?this.onAfkTriggered():this.afkController.stopAfkWarningTimer()}tryReconnect(e){this.webSocketController?(this.isReconnecting=!0,this.webSocketController.webSocket&&this.webSocketController.webSocket.readyState!=WebSocket.CLOSED?(this.closeSignalingServer(`${e} Restarting stream...`),setTimeout(()=>{this.tryReconnect(e)},3e3)):(this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer())):x.Log(x.GetStackTrace(),"The Web Socket Controller does not exist so this will not work right now.")}loadFreezeFrameOrShowPlayOverlay(){this.pixelStreaming.dispatchEvent(new qs({shouldShowPlayOverlay:this.shouldShowPlayOverlay,isValid:this.freezeFrameController.valid,jpegData:this.freezeFrameController.jpeg})),this.shouldShowPlayOverlay===!0?(x.Log(x.GetStackTrace(),"showing play overlay"),this.resizePlayerStyle()):(x.Log(x.GetStackTrace(),"showing freeze frame"),this.freezeFrameController.showFreezeFrame()),setTimeout(()=>{this.videoPlayer.setVideoEnabled(!1)},this.freezeFrameController.freezeFrameDelay)}onFreezeFrameMessage(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6);const t=new Uint8Array(e);this.freezeFrameController.processFreezeFrameMessage(t,()=>this.loadFreezeFrameOrShowPlayOverlay())}invalidateFreezeFrameAndEnableVideo(){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6),setTimeout(()=>{this.pixelStreaming.dispatchEvent(new ea),this.freezeFrameController.hideFreezeFrame()},this.freezeFrameController.freezeFrameDelay),this.videoPlayer.getVideoElement()&&this.videoPlayer.setVideoEnabled(!0)}onFileExtension(e){const t=new Uint8Array(e);si.setExtensionFromBytes(t,this.file)}onFileMimeType(e){const t=new Uint8Array(e);si.setMimeTypeFromBytes(t,this.file)}onFileContents(e){const t=new Uint8Array(e);si.setContentsFromBytes(t,this.file)}playStream(){if(!this.videoPlayer.getVideoElement()){const e="Could not play video stream because the video player was not initialized correctly.";return this.pixelStreaming.dispatchEvent(new $s({message:e})),x.Error(x.GetStackTrace(),e),void this.closeSignalingServer("Stream not initialized correctly")}if(this.videoPlayer.hasVideoSource()){if(this.setTouchInputEnabled(this.config.isFlagEnabled(X.TouchInput)),this.pixelStreaming.dispatchEvent(new Zs),this.streamController.audioElement.srcObject){const e=this.config.isFlagEnabled(X.StartVideoMuted);this.streamController.audioElement.muted=e,e?this.playVideo():this.streamController.audioElement.play().then(()=>{this.playVideo()}).catch(t=>{x.Log(x.GetStackTrace(),t),x.Log(x.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new Ai({reason:t}))})}else this.playVideo();this.shouldShowPlayOverlay=!1,this.freezeFrameController.showFreezeFrame()}else x.Warning(x.GetStackTrace(),"Cannot play stream, the video element has no srcObject to play.")}playVideo(){this.videoPlayer.play().catch(e=>{this.streamController.audioElement.srcObject&&this.streamController.audioElement.pause(),x.Log(x.GetStackTrace(),e),x.Log(x.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new Ai({reason:e}))})}autoPlayVideoOrSetUpPlayOverlay(){this.config.isFlagEnabled(X.AutoPlayVideo)&&this.playStream(),this.resizePlayerStyle()}connectToSignallingServer(){this.locallyClosed=!1,this.shouldReconnect=!0,this.disconnectMessage=null;const e=this.signallingUrlBuilder();this.webSocketController.connect(e)}startSession(e){if(this.peerConfig=e,this.config.isFlagEnabled(X.ForceTURN)&&!this.checkTurnServerAvailability(e))return x.Info(x.GetStackTrace(),"No turn server was found in the Peer Connection Options. TURN cannot be forced, closing connection. Please use STUN instead"),void this.closeSignalingServer("TURN cannot be forced, closing connection. Please use STUN instead.");this.peerConnectionController=new dd(this.peerConfig,this.config,this.preferredCodec),this.peerConnectionController.onVideoStats=n=>this.handleVideoStats(n),this.peerConnectionController.onSendWebRTCOffer=n=>this.handleSendWebRTCOffer(n),this.peerConnectionController.onSendWebRTCAnswer=n=>this.handleSendWebRTCAnswer(n),this.peerConnectionController.onPeerIceCandidate=n=>this.handleSendIceCandidate(n),this.peerConnectionController.onDataChannel=n=>this.handleDataChannel(n),this.peerConnectionController.showTextOverlayConnecting=()=>this.pixelStreaming._onWebRtcConnecting(),this.peerConnectionController.showTextOverlaySetupFailure=()=>this.pixelStreaming._onWebRtcFailed();let t=!1;this.peerConnectionController.onIceConnectionStateChange=()=>{!t&&["connected","completed"].includes(this.peerConnectionController.peerConnection.iceConnectionState)&&(this.pixelStreaming._onWebRtcConnected(),t=!0)},this.peerConnectionController.onTrack=n=>this.streamController.handleOnTrack(n),this.config.isFlagEnabled(X.BrowserSendOffer)&&(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"cirrus",this.datachannelOptions),this.sendrecvDataChannelController.handleOnMessage=n=>this.handleOnMessage(n),this.peerConnectionController.createOffer(this.sdpConstraints,this.config))}checkTurnServerAvailability(e){if(!e.iceServers)return x.Info(x.GetStackTrace(),"A turn sever was not found"),!1;for(const t of e.iceServers)for(const n of t.urls)if(n.includes("turn"))return x.Log(x.GetStackTrace(),`A turn sever was found at ${n}`),!0;return x.Info(x.GetStackTrace(),"A turn sever was not found"),!1}handleOnConfigMessage(e){this.resizePlayerStyle(),this.startSession(e.peerConnectionOptions),this.webSocketController.onWebRtcAnswer=t=>this.handleWebRtcAnswer(t),this.webSocketController.onWebRtcOffer=t=>this.handleWebRtcOffer(t),this.webSocketController.onWebRtcPeerDataChannels=t=>this.handleWebRtcSFUPeerDatachannels(t),this.webSocketController.onIceCandidate=t=>this.handleIceCandidate(t)}handleStreamerListMessage(e){x.Log(x.GetStackTrace(),`Got streamer list ${e.ids}`,6);let t=null;var n=this.config.getSettingOption(pe.StreamerId);n.selected.toString().trim()&&(t=n.selected);const y=[...e.ids];y.unshift(""),this.config.setOptionSettingOptions(pe.StreamerId,y);let C=null;const A=this.config.isFlagEnabled(X.WaitForStreamer),h=this.config.getNumericSettingValue(Z.MaxReconnectAttempts),m=this.config.getNumericSettingValue(Z.StreamerAutoJoinInterval),g=this.config.useUrlParams,w=new URLSearchParams(window.location.search);g&&w.has(pe.StreamerId)?t=w.get(pe.StreamerId):this.subscribedStream&&(t=this.subscribedStream),t&&e.ids.includes(t)?C=t:t&&A||e.ids.length!=1||(C=e.ids[0]),C?(this.isReconnecting=!1,this.reconnectAttempt=0,this.config.setOptionSettingValue(pe.StreamerId,C)):A&&(this.reconnectAttempt<h?(this.isReconnecting=!0,this.reconnectAttempt++,setTimeout(()=>{this.webSocketController.requestStreamerList()},m)):(this.reconnectAttempt=0,this.isReconnecting=!1,this.shouldReconnect=!1)),this.pixelStreaming.dispatchEvent(new ra({messageStreamerList:e,autoSelectedStreamerId:C,wantedStreamerId:t}))}handleStreamerIDChangedMessage(e){const t=e.newID;var n=this.config.getSettingOption(pe.StreamerId),y=n.onChange;n.onChange=()=>{};for(var C=n.options,A=0;A<C.length;++A)if(C[A]==this.subscribedStream){C[A]=t;break}n.options=C,n.selected=t,n.onChange=y,this.subscribedStream=e.newID,this.pixelStreaming.dispatchEvent(new Aa({newID:t}))}handleWebRtcAnswer(e){x.Log(x.GetStackTrace(),`Got answer sdp ${e.sdp}`,6);const t={sdp:e.sdp,type:"answer"};this.peerConnectionController.receiveAnswer(t),this.handlePostWebrtcNegotiation()}handleWebRtcOffer(e){x.Log(x.GetStackTrace(),`Got offer sdp ${e.sdp}`,6),this.isUsingSFU=!!e.sfu&&e.sfu,this.isUsingSFU&&(this.peerConnectionController.preferredCodec="");const t={sdp:e.sdp,type:"offer"};this.peerConnectionController.receiveOffer(t,this.config),this.handlePostWebrtcNegotiation()}handleWebRtcSFUPeerDatachannels(e){const t={ordered:!0,negotiated:!0,id:e.sendStreamId},n=e.sendStreamId!=e.recvStreamId;if(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,n?"send-datachannel":"datachannel",t),n){const y={ordered:!0,negotiated:!0,id:e.recvStreamId};this.recvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"recv-datachannel",y),this.recvDataChannelController.handleOnOpen=()=>this.webSocketController.sendSFURecvDataChannelReady(),this.recvDataChannelController.handleOnMessage=C=>this.handleOnMessage(C)}else this.sendrecvDataChannelController.handleOnMessage=y=>this.handleOnMessage(y)}handlePostWebrtcNegotiation(){this.afkController.startAfkWarningTimer(),this.pixelStreaming._onWebRtcSdp(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.statsTimerHandle=window.setInterval(()=>this.getStats(),1e3),this.setMouseInputEnabled(this.config.isFlagEnabled(X.MouseInput)),this.setKeyboardInputEnabled(this.config.isFlagEnabled(X.KeyboardInput)),this.setGamePadInputEnabled(this.config.isFlagEnabled(X.GamepadInput))}handleIceCandidate(e){x.Log(x.GetStackTrace(),"Web RTC Controller: onWebRtcIce",6);const t=new RTCIceCandidate(e);this.peerConnectionController.handleOnIce(t)}handleSendIceCandidate(e){x.Log(x.GetStackTrace(),"OnIceCandidate",6),e.candidate&&e.candidate.candidate&&this.webSocketController.sendIceCandidate(e.candidate)}handleDataChannel(e){x.Log(x.GetStackTrace(),"Data channel created for us by browser as we are a receiving peer.",6),this.sendrecvDataChannelController.dataChannel=e.channel,this.sendrecvDataChannelController.setupDataChannel(),this.sendrecvDataChannelController.handleOnMessage=t=>this.handleOnMessage(t)}handleSendWebRTCOffer(e){x.Log(x.GetStackTrace(),"Sending the offer to the Server",6);const t={minBitrateBps:1e3*this.config.getNumericSettingValue(Z.WebRTCMinBitrate),maxBitrateBps:1e3*this.config.getNumericSettingValue(Z.WebRTCMaxBitrate)};this.webSocketController.sendWebRtcOffer(e,t)}handleSendWebRTCAnswer(e){x.Log(x.GetStackTrace(),"Sending the answer to the Server",6);const t={minBitrateBps:1e3*this.config.getNumericSettingValue(Z.WebRTCMinBitrate),maxBitrateBps:1e3*this.config.getNumericSettingValue(Z.WebRTCMaxBitrate)};this.webSocketController.sendWebRtcAnswer(e,t),this.isUsingSFU&&this.webSocketController.sendWebRtcDatachannelRequest()}setUpMouseAndFreezeFrame(){this.videoElementParentClientRect=this.videoPlayer.getVideoParentElement().getBoundingClientRect(),this.coordinateConverter.setupNormalizeAndQuantize(),this.freezeFrameController.freezeFrame.resize()}closeSignalingServer(e){var t;this.locallyClosed=!0,this.shouldReconnect=!1,this.disconnectMessage=e,(t=this.webSocketController)===null||t===void 0||t.close()}closePeerConnection(){var e;(e=this.peerConnectionController)===null||e===void 0||e.close()}close(){this.closeSignalingServer(""),this.closePeerConnection()}getStats(){this.peerConnectionController.generateStats()}sendLatencyTest(){this.latencyStartTime=Date.now(),this.streamMessageController.toStreamerHandlers.get("LatencyTest")([JSON.stringify({StartTime:this.latencyStartTime})])}sendDataChannelLatencyTest(e){this.streamMessageController.toStreamerHandlers.get("DataChannelLatencyTest")([JSON.stringify(e)])}sendEncoderMinQP(e){x.Log(x.GetStackTrace(),`MinQP=${e}
279
+ `,6),e!=null&&this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"Encoder.MinQP":e})])}sendEncoderMaxQP(e){x.Log(x.GetStackTrace(),`MaxQP=${e}
280
+ `,6),e!=null&&this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"Encoder.MaxQP":e})])}sendWebRTCMinBitrate(e){x.Log(x.GetStackTrace(),`WebRTC Min Bitrate=${e}`,6),e!=null&&this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"WebRTC.MinBitrate":e})])}sendWebRTCMaxBitrate(e){x.Log(x.GetStackTrace(),`WebRTC Max Bitrate=${e}`,6),e!=null&&this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"WebRTC.MaxBitrate":e})])}sendWebRTCFps(e){x.Log(x.GetStackTrace(),`WebRTC FPS=${e}`,6),e!=null&&(this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"WebRTC.Fps":e})]),this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"WebRTC.MaxFps":e})]))}sendShowFps(){x.Log(x.GetStackTrace(),"---- Sending show stat to UE ----",6),this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({"stat.fps":""})])}sendIframeRequest(){x.Log(x.GetStackTrace(),"---- Sending Request for an IFrame ----",6),this.streamMessageController.toStreamerHandlers.get("IFrameRequest")()}emitUIInteraction(e){x.Log(x.GetStackTrace(),"---- Sending custom UIInteraction message ----",6),this.streamMessageController.toStreamerHandlers.get("UIInteraction")([JSON.stringify(e)])}emitCommand(e){x.Log(x.GetStackTrace(),"---- Sending custom Command message ----",6),this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify(e)])}emitConsoleCommand(e){x.Log(x.GetStackTrace(),"---- Sending custom Command:ConsoleCommand message ----",6),this.streamMessageController.toStreamerHandlers.get("Command")([JSON.stringify({ConsoleCommand:e})])}sendRequestQualityControlOwnership(){x.Log(x.GetStackTrace(),"---- Sending Request to Control Quality ----",6),this.toStreamerMessagesController.SendRequestQualityControl()}handleLatencyTestResult(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.latencyTest",6);const t=new TextDecoder("utf-16").decode(e.slice(1)),n=new Ea;Object.assign(n,JSON.parse(t)),n.processFields(),n.testStartTimeMs=this.latencyStartTime,n.browserReceiptTimeMs=Date.now(),n.latencyExcludingDecode=~~(n.browserReceiptTimeMs-n.testStartTimeMs),n.testDuration=~~(n.TransmissionTimeMs-n.ReceiptTimeMs),n.networkLatency=~~(n.latencyExcludingDecode-n.testDuration),n.frameDisplayDeltaTimeMs&&n.browserReceiptTimeMs&&(n.endToEndLatency=(n.frameDisplayDeltaTimeMs,n.networkLatency,~~+n.CaptureToSendMs)),this.pixelStreaming._onLatencyTestResult(n)}handleDataChannelLatencyTestResponse(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.dataChannelLatencyResponse",6);const t=new TextDecoder("utf-16").decode(e.slice(1)),n=JSON.parse(t);this.pixelStreaming._onDataChannelLatencyTestResponse(n)}handleInitialSettings(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.InitialSettings",6);const t=new TextDecoder("utf-16").decode(e.slice(1)),n=JSON.parse(t),y=new Ca;n.Encoder&&(y.EncoderSettings=n.Encoder),n.WebRTC&&(y.WebRTCSettings=n.WebRTC),n.PixelStreaming&&(y.PixelStreamingSettings=n.PixelStreaming),n.ConfigOptions&&n.ConfigOptions.DefaultToHover!==void 0&&this.config.setFlagEnabled(X.HoveringMouseMode,!!n.ConfigOptions.DefaultToHover),y.ueCompatible(),x.Log(x.GetStackTrace(),t,6),this.pixelStreaming._onInitialSettings(y)}handleVideoEncoderAvgQP(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.VideoEncoderAvgQP",6);const t=Number(new TextDecoder("utf-16").decode(e.slice(1)));this.setVideoEncoderAvgQP(t)}handleVideoInitialized(){this.pixelStreaming._onVideoInitialized(),this.autoPlayVideoOrSetUpPlayOverlay(),this.resizePlayerStyle(),this.videoPlayer.updateVideoStreamSize()}onQualityControlOwnership(e){const t=new Uint8Array(e);x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.QualityControlOwnership",6),this.isQualityController=new Boolean(t[1]).valueOf(),x.Log(x.GetStackTrace(),`Received quality controller message, will control quality: ${this.isQualityController}`),this.pixelStreaming._onQualityControlOwnership(this.isQualityController)}handleVideoStats(e){this.pixelStreaming._onVideoStats(e)}resizePlayerStyle(){this.videoPlayer.resizePlayerStyle()}setPreferredCodec(e){this.preferredCodec=e,this.peerConnectionController&&(this.peerConnectionController.preferredCodec=e,this.peerConnectionController.updateCodecSelection=!1)}setVideoEncoderAvgQP(e){this.videoAvgQp=e,this.pixelStreaming._onVideoEncoderAvgQP(this.videoAvgQp)}setKeyboardInputEnabled(e){var t;(t=this.keyboardController)===null||t===void 0||t.unregisterKeyBoardEvents(),e&&(this.keyboardController=this.inputClassesFactory.registerKeyBoard(this.config))}setMouseInputEnabled(e){var t;if((t=this.mouseController)===null||t===void 0||t.unregisterMouseEvents(),e){const n=this.config.isFlagEnabled(X.HoveringMouseMode)?bt.HoveringMouse:bt.LockedMouse;this.mouseController=this.inputClassesFactory.registerMouse(n)}}setTouchInputEnabled(e){var t;(t=this.touchController)===null||t===void 0||t.unregisterTouchEvents(),e&&(this.touchController=this.inputClassesFactory.registerTouch(this.config.isFlagEnabled(X.FakeMouseWithTouches),this.videoElementParentClientRect))}setGamePadInputEnabled(e){var t;(t=this.gamePadController)===null||t===void 0||t.unregisterGamePadEvents(),e&&(this.gamePadController=this.inputClassesFactory.registerGamePad(),this.gamePadController.onGamepadConnected=()=>{this.streamMessageController.toStreamerHandlers.get("GamepadConnected")()},this.gamePadController.onGamepadDisconnected=n=>{this.streamMessageController.toStreamerHandlers.get("GamepadDisconnected")([n])})}registerDataChannelEventEmitters(e){e.onOpen=(t,n)=>this.pixelStreaming.dispatchEvent(new Vs({label:t,event:n})),e.onClose=(t,n)=>this.pixelStreaming.dispatchEvent(new Gs({label:t,event:n})),e.onError=(t,n)=>this.pixelStreaming.dispatchEvent(new js({label:t,event:n}))}registerMessageHandler(e,t,n){t===Ae.FromStreamer&&n===void 0&&x.Warning(x.GetStackTrace(),`Unable to register handler for ${e} as no handler was passed`),this.streamMessageController.registerMessageHandler(t,e,y=>n===void 0&&t===Ae.ToStreamer?this.sendMessageController.sendMessageToStreamer(e,y):n(y))}}class jA{constructor(e){this.toStreamerMessagesProvider=e,this.controllers=[]}static deepCopyGamepad(e){return JSON.parse(JSON.stringify({buttons:e.buttons.map(t=>JSON.parse(JSON.stringify({pressed:t.pressed,touched:t.touched,value:t.value}))),axes:e.axes}))}updateStatus(e,t,n){if(e.gamepad){const y=t.getPose(e.gripSpace,n);if(!y)return;let C=0;e.profiles.includes("htc-vive")?C=1:e.profiles.includes("oculus-touch")&&(C=2),this.toStreamerMessagesProvider.toStreamerHandlers.get("XRSystem")([C]);let A=2;switch(e.handedness){case"left":A=0;break;case"right":A=1}const h=y.transform.matrix,m=[];for(let u=0;u<16;u++)m[u]=new Float32Array([h[u]])[0];this.toStreamerMessagesProvider.toStreamerHandlers.get("XRControllerTransform")([m[0],m[4],m[8],m[12],m[1],m[5],m[9],m[13],m[2],m[6],m[10],m[14],m[3],m[7],m[11],m[15],A]),this.controllers[A]===void 0&&(this.controllers[A]={prevState:void 0,currentState:void 0,id:void 0},this.controllers[A].prevState=jA.deepCopyGamepad(e.gamepad)),this.controllers[A].currentState=jA.deepCopyGamepad(e.gamepad);const g=this.controllers[A],w=g.currentState,p=g.prevState;for(let u=0;u<w.buttons.length;u++){const f=w.buttons[u],c=p.buttons[u];if(f.pressed){let a=c.pressed?1:0;this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([A,u,a])}else c.pressed&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([A,u,0]);if(f.touched){let a=c.touched?1:0;this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonTouched")([A,u,a])}else c.touched&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonTouchReleased")([A,u,0])}for(let u=0;u<w.axes.length;u++){let f=w.axes[u];f!=p.axes[u]&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRAnalog")([A,u,f])}this.controllers[A].prevState=w}}}class Qa{constructor(e){this.xrViewerPose=null,this.videoTexture=null,this.prevVideoWidth=0,this.prevVideoHeight=0,this.leftView=null,this.rightView=null,this.xrSession=null,this.webRtcController=e,this.xrGamepadController=new jA(this.webRtcController.streamMessageController),this.onSessionEnded=new EventTarget,this.onSessionStarted=new EventTarget,this.onFrame=new EventTarget}xrClicked(){if(this.xrSession)this.xrSession.end();else{if(!navigator.xr)return void x.Error(x.GetStackTrace(),"This browser does not support XR.");navigator.xr.requestSession("immersive-vr",{optionalFeatures:[]}).then(e=>{this.onXrSessionStarted(e)})}}onXrSessionEnded(){x.Log(x.GetStackTrace(),"XR Session ended"),this.xrSession=null,this.onSessionEnded.dispatchEvent(new Event("xrSessionEnded"))}initGL(){if(this.gl)return;const e=document.createElement("canvas");this.gl=e.getContext("webgl2",{xrCompatible:!0}),this.gl.clearColor(0,0,0,1)}initShaders(){const e=this.gl.createShader(this.gl.VERTEX_SHADER);this.gl.shaderSource(e,`
281
+ attribute vec2 a_position;
282
+ attribute vec2 a_texCoord;
283
+
284
+ // varyings
285
+ varying vec2 v_texCoord;
286
+
287
+ void main() {
288
+ gl_Position = vec4(a_position.x, a_position.y, 0, 1);
289
+ // pass the texCoord to the fragment shader
290
+ // The GPU will interpolate this value between points.
291
+ v_texCoord = a_texCoord;
292
+ }
293
+ `),this.gl.compileShader(e);const t=this.gl.createShader(this.gl.FRAGMENT_SHADER);this.gl.shaderSource(t,`
294
+ precision mediump float;
295
+
296
+ // our texture
297
+ uniform sampler2D u_image;
298
+
299
+ // the texCoords passed in from the vertex shader.
300
+ varying vec2 v_texCoord;
301
+
302
+ void main() {
303
+ gl_FragColor = texture2D(u_image, v_texCoord);
304
+ }
305
+ `),this.gl.compileShader(t);const n=this.gl.createProgram();this.gl.attachShader(n,e),this.gl.attachShader(n,t),this.gl.linkProgram(n),this.gl.useProgram(n),this.positionLocation=this.gl.getAttribLocation(n,"a_position"),this.texcoordLocation=this.gl.getAttribLocation(n,"a_texCoord")}updateVideoTexture(){this.videoTexture||(this.videoTexture=this.gl.createTexture(),this.gl.bindTexture(this.gl.TEXTURE_2D,this.videoTexture),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR));let e=this.webRtcController.videoPlayer.getVideoElement().videoHeight,t=this.webRtcController.videoPlayer.getVideoElement().videoWidth;this.prevVideoHeight!=e||this.prevVideoWidth!=t?this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,t,e,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.webRtcController.videoPlayer.getVideoElement()):this.gl.texSubImage2D(this.gl.TEXTURE_2D,0,0,0,t,e,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.webRtcController.videoPlayer.getVideoElement()),this.prevVideoHeight=e,this.prevVideoWidth=t}initBuffers(){this.positionBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),this.gl.enableVertexAttribArray(this.positionLocation),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([-1,1,1,1,-1,-1,-1,-1,1,1,1,-1]),this.gl.STATIC_DRAW),this.gl.vertexAttribPointer(this.positionLocation,2,this.gl.FLOAT,!1,0,0),this.texcoordBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),this.gl.enableVertexAttribArray(this.texcoordLocation),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),this.gl.STATIC_DRAW),this.gl.vertexAttribPointer(this.texcoordLocation,2,this.gl.FLOAT,!1,0,0)}onXrSessionStarted(e){x.Log(x.GetStackTrace(),"XR Session started"),this.xrSession=e,this.xrSession.addEventListener("end",()=>{this.onXrSessionEnded()}),this.initGL(),this.initShaders(),this.initBuffers(),e.requestReferenceSpace("local").then(t=>{if(this.xrRefSpace=t,this.xrSession.updateRenderState({baseLayer:new XRWebGLLayer(this.xrSession,this.gl)}),this.xrSession.supportedFrameRates)for(let n of this.xrSession.supportedFrameRates)n==90&&e.updateTargetFrameRate(90);this.xrSession.requestAnimationFrame(this.onXrFrame.bind(this))}),this.onSessionStarted.dispatchEvent(new Event("xrSessionStarted"))}sendXRDataToUE(){if(this.leftView==null||this.rightView==null)return;const e=this.leftView.transform.matrix,t=this.leftView.projectionMatrix,n=this.rightView.transform.matrix,y=this.rightView.projectionMatrix;this.webRtcController.streamMessageController.toStreamerHandlers.get("XREyeViews")([e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15],t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15],n[0],n[4],n[8],n[12],n[1],n[5],n[9],n[13],n[2],n[6],n[10],n[14],n[3],n[7],n[11],n[15],y[0],y[4],y[8],y[12],y[1],y[5],y[9],y[13],y[2],y[6],y[10],y[14],y[3],y[7],y[11],y[15]])}onXrFrame(e,t){if(this.xrViewerPose=t.getViewerPose(this.xrRefSpace),this.xrViewerPose){if(this.updateViews(),this.leftView==null||this.rightView==null)return;this.sendXRDataToUE(),this.updateVideoTexture(),this.render()}this.webRtcController.config.isFlagEnabled(X.XRControllerInput)&&this.xrSession.inputSources.forEach((n,y,C)=>{this.xrGamepadController.updateStatus(n,t,this.xrRefSpace)},this),this.xrSession.requestAnimationFrame((n,y)=>this.onXrFrame(n,y)),this.onFrame.dispatchEvent(new aa({time:e,frame:t}))}updateViews(){if(this.xrViewerPose)for(const e of this.xrViewerPose.views)e.eye==="left"?this.leftView=e:e.eye==="right"&&(this.rightView=e)}render(){if(!this.gl)return;const e=this.xrSession.renderState.baseLayer;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,e.framebuffer),this.gl.viewport(0,0,e.framebufferWidth,e.framebufferHeight),this.gl.drawArrays(this.gl.TRIANGLES,0,6)}static isSessionSupported(e){return location.protocol!=="https:"&&x.Info(null,"WebXR requires https, if you want WebXR use https."),navigator.xr?navigator.xr.isSessionSupported(e):new Promise(()=>!1)}}class Pd{constructor(e){this.editTextButton=null,this.hiddenInput=null,"ontouchstart"in document.documentElement&&this.createOnScreenKeyboardHelpers(e)}unquantizeAndDenormalizeUnsigned(e,t){return null}createOnScreenKeyboardHelpers(e){this.hiddenInput||(this.hiddenInput=document.createElement("input"),this.hiddenInput.id="hiddenInput",this.hiddenInput.maxLength=0,this.hiddenInput.style.position="absolute",this.hiddenInput.style.left="-10%",this.hiddenInput.style.width="0px",this.hiddenInput.style.opacity="0",e.appendChild(this.hiddenInput)),this.editTextButton||(this.editTextButton=document.createElement("button"),this.editTextButton.id="editTextButton",this.editTextButton.innerHTML="edit text",e.appendChild(this.editTextButton),this.editTextButton.style.display="none",this.editTextButton.addEventListener("touchend",t=>{this.hiddenInput.focus(),t.preventDefault()}))}showOnScreenKeyboard(e){if(e.showOnScreenKeyboard){this.editTextButton.style.display="default";const t=this.unquantizeAndDenormalizeUnsigned(e.x,e.y);this.editTextButton.style.top=t.y.toString()+"px",this.editTextButton.style.left=(t.x-40).toString()+"px"}else this.editTextButton.style.display="none",this.hiddenInput.blur()}}class xd{constructor(e){this.seq=e.Seq,this.playerSentTimestamp=Date.now(),this.requestFillerSize=e.Filler?e.Filler.length:0}update(e){this.playerReceivedTimestamp=Date.now(),this.streamerReceivedTimestamp=e.ReceivedTimestamp,this.streamerSentTimestamp=e.SentTimestamp,this.responseFillerSize=e.Filler?e.Filler.length:0}}class Od{constructor(e,t){this.sink=e,this.callback=t,this.records=new Map,this.seq=0}start(e){return!this.isRunning()&&(this.startTime=Date.now(),this.records.clear(),this.interval=setInterval((()=>{Date.now()-this.startTime>=e.duration?this.stop():this.sendRequest(e.requestSize,e.responseSize)}).bind(this),Math.floor(1e3/e.rps)),!0)}stop(){this.interval&&(clearInterval(this.interval),this.interval=void 0,this.callback(this.produceResult()))}produceResult(){const e=new Map(this.records);return{records:e,dataChannelRtt:Math.ceil(Array.from(this.records.values()).reduce((t,n)=>t+(n.playerReceivedTimestamp-n.playerSentTimestamp),0)/this.records.size),playerToStreamerTime:Math.ceil(Array.from(this.records.values()).reduce((t,n)=>t+(n.streamerReceivedTimestamp-n.playerSentTimestamp),0)/this.records.size),streamerToPlayerTime:Math.ceil(Array.from(this.records.values()).reduce((t,n)=>t+(n.playerReceivedTimestamp-n.streamerSentTimestamp),0)/this.records.size),exportLatencyAsCSV:()=>{let t=`Timestamp;RTT;PlayerToStreamer;StreamerToPlayer;
306
+ `;return e.forEach(n=>{t+=n.playerSentTimestamp+";",t+=n.playerReceivedTimestamp-n.playerSentTimestamp+";",t+=n.streamerReceivedTimestamp-n.playerSentTimestamp+";",t+=n.playerReceivedTimestamp-n.streamerSentTimestamp+";",t+=`
307
+ `}),t}}}isRunning(){return!!this.interval}receive(e){if(!this.isRunning())return;if(!e)return void x.Error(x.GetStackTrace(),"Undefined response from server");let t=this.records.get(e.Seq);t&&t.update(e)}sendRequest(e,t){let n=this.createRequest(e,t),y=new xd(n);this.records.set(y.seq,y),this.sink(n)}createRequest(e,t){return{Seq:this.seq++,FillResponseSize:t,Filler:e?"A".repeat(e):""}}}class Md{constructor(e,t){this.allowConsoleCommands=!1,this.config=e,t!=null&&t.videoElementParent&&(this._videoElementParent=t.videoElementParent),this._eventEmitter=new ua,this.configureSettings(),this.setWebRtcPlayerController(new Sa(this.config,this)),this.onScreenKeyboardHelper=new Pd(this.videoElementParent),this.onScreenKeyboardHelper.unquantizeAndDenormalizeUnsigned=(n,y)=>this._webRtcController.requestUnquantizedAndDenormalizeUnsigned(n,y),this._activateOnScreenKeyboard=n=>this.onScreenKeyboardHelper.showOnScreenKeyboard(n),this._webXrController=new Qa(this._webRtcController),this._setupWebRtcTCPRelayDetection=this._setupWebRtcTCPRelayDetection.bind(this),this._eventEmitter.addEventListener("webRtcConnected",n=>{this._eventEmitter.addEventListener("statsReceived",this._setupWebRtcTCPRelayDetection)})}get videoElementParent(){return this._videoElementParent||(this._videoElementParent=document.createElement("div"),this._videoElementParent.id="videoElementParent"),this._videoElementParent}configureSettings(){this.config._addOnSettingChangedListener(X.IsQualityController,e=>{e!==!0||this._webRtcController.isQualityController||this._webRtcController.sendRequestQualityControlOwnership()}),this.config._addOnSettingChangedListener(X.AFKDetection,e=>{this._webRtcController.setAfkEnabled(e)}),this.config._addOnSettingChangedListener(X.MatchViewportResolution,()=>{this._webRtcController.videoPlayer.updateVideoStreamSize()}),this.config._addOnSettingChangedListener(X.HoveringMouseMode,e=>{this.config.setFlagLabel(X.HoveringMouseMode,`Control Scheme: ${e?"Hovering":"Locked"} Mouse`),this._webRtcController.setMouseInputEnabled(this.config.isFlagEnabled(X.MouseInput))}),this.config._addOnSettingChangedListener(X.KeyboardInput,e=>{this._webRtcController.setKeyboardInputEnabled(e)}),this.config._addOnSettingChangedListener(X.MouseInput,e=>{this._webRtcController.setMouseInputEnabled(e)}),this.config._addOnSettingChangedListener(X.FakeMouseWithTouches,e=>{this._webRtcController.setTouchInputEnabled(this.config.isFlagEnabled(X.TouchInput))}),this.config._addOnSettingChangedListener(X.TouchInput,e=>{this._webRtcController.setTouchInputEnabled(e)}),this.config._addOnSettingChangedListener(X.GamepadInput,e=>{this._webRtcController.setGamePadInputEnabled(e)}),this.config._addOnNumericSettingChangedListener(Z.MinQP,e=>{x.Log(x.GetStackTrace(),"-------- Sending MinQP --------",7),this._webRtcController.sendEncoderMinQP(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(Z.MaxQP,e=>{x.Log(x.GetStackTrace(),"-------- Sending encoder settings --------",7),this._webRtcController.sendEncoderMaxQP(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(Z.WebRTCMinBitrate,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMinBitrate(1e3*e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(Z.WebRTCMaxBitrate,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMaxBitrate(1e3*e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(Z.WebRTCFPS,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCFps(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnOptionSettingChangedListener(pe.PreferredCodec,e=>{this._webRtcController&&this._webRtcController.setPreferredCodec(e)}),this.config._registerOnChangeEvents(this._eventEmitter)}_activateOnScreenKeyboard(e){throw new Error("Method not implemented.")}_onInputControlOwnership(e){this._inputController=e}setWebRtcPlayerController(e){this._webRtcController=e,this._webRtcController.setPreferredCodec(this.config.getSettingOption(pe.PreferredCodec).selected),this._webRtcController.resizePlayerStyle(),this.checkForAutoConnect()}connect(){this._eventEmitter.dispatchEvent(new Js),this._webRtcController.connectToSignallingServer()}reconnect(){this._eventEmitter.dispatchEvent(new Ys),this._webRtcController.tryReconnect("Reconnecting...")}disconnect(){this._eventEmitter.dispatchEvent(new Xs),this._webRtcController.close()}play(){this._onStreamLoading(),this._webRtcController.playStream()}checkForAutoConnect(){this.config.isFlagEnabled(X.AutoConnect)&&(this._onWebRtcAutoConnect(),this._webRtcController.connectToSignallingServer())}unmuteMicrophone(e=!1){if(!this.config.isFlagEnabled("UseMic"))return e?(this.config.setFlagEnabled("UseMic",!0),void this.reconnect()):void x.Warning(x.GetStackTrace(),"Trying to unmute mic, but PixelStreaming was initialized with no microphone track. Call with forceEnable == true to re-connect with a mic track.");this.setMicrophoneMuted(!1)}muteMicrophone(){this.config.isFlagEnabled("UseMic")?this.setMicrophoneMuted(!0):x.Info(x.GetStackTrace(),"Trying to mute mic, but PixelStreaming has no microphone track, so sending sound is already disabled.")}setMicrophoneMuted(e){var t,n,y,C;for(const A of(C=(y=(n=(t=this._webRtcController)===null||t===void 0?void 0:t.peerConnectionController)===null||n===void 0?void 0:n.peerConnection)===null||y===void 0?void 0:y.getTransceivers())!==null&&C!==void 0?C:[])Ba.canTransceiverSendAudio(A)&&(A.sender.track.enabled=!e)}_onWebRtcAutoConnect(){this._eventEmitter.dispatchEvent(new Rs)}_onWebRtcSdp(){this._eventEmitter.dispatchEvent(new Ls)}_onStreamLoading(){this._eventEmitter.dispatchEvent(new zs)}_onDisconnect(e,t){this._eventEmitter.dispatchEvent(new Ns({eventString:e,allowClickToReconnect:t}))}_onWebRtcConnecting(){this._eventEmitter.dispatchEvent(new Ds)}_onWebRtcConnected(){this._eventEmitter.dispatchEvent(new ks)}_onWebRtcFailed(){this._eventEmitter.dispatchEvent(new Ks)}_onVideoInitialized(){this._eventEmitter.dispatchEvent(new Ws),this._videoStartTime=Date.now()}_onLatencyTestResult(e){this._eventEmitter.dispatchEvent(new na({latencyTimings:e}))}_onDataChannelLatencyTestResponse(e){this._eventEmitter.dispatchEvent(new ia({response:e}))}_onVideoStats(e){this._videoStartTime&&this._videoStartTime!==void 0||(this._videoStartTime=Date.now()),e.handleSessionStatistics(this._videoStartTime,this._inputController,this._webRtcController.videoAvgQp),this._eventEmitter.dispatchEvent(new ta({aggregatedStats:e}))}_onVideoEncoderAvgQP(e){this._eventEmitter.dispatchEvent(new Hs({avgQP:e}))}_onInitialSettings(e){var t;this._eventEmitter.dispatchEvent(new sa({settings:e})),e.PixelStreamingSettings&&(this.allowConsoleCommands=(t=e.PixelStreamingSettings.AllowPixelStreamingCommands)!==null&&t!==void 0&&t,this.allowConsoleCommands===!1&&x.Info(x.GetStackTrace(),"-AllowPixelStreamingCommands=false, sending arbitrary console commands from browser to UE is disabled."));const n=this.config.useUrlParams,y=new URLSearchParams(window.location.search);x.Info(x.GetStackTrace(),`using URL parameters ${n}`),e.EncoderSettings&&(this.config.setNumericSetting(Z.MinQP,n&&y.has(Z.MinQP)?Number.parseFloat(y.get(Z.MinQP)):e.EncoderSettings.MinQP),this.config.setNumericSetting(Z.MaxQP,n&&y.has(Z.MaxQP)?Number.parseFloat(y.get(Z.MaxQP)):e.EncoderSettings.MaxQP)),e.WebRTCSettings&&(this.config.setNumericSetting(Z.WebRTCMinBitrate,n&&y.has(Z.WebRTCMinBitrate)?Number.parseFloat(y.get(Z.WebRTCMinBitrate)):e.WebRTCSettings.MinBitrate/1e3),this.config.setNumericSetting(Z.WebRTCMaxBitrate,n&&y.has(Z.WebRTCMaxBitrate)?Number.parseFloat(y.get(Z.WebRTCMaxBitrate)):e.WebRTCSettings.MaxBitrate/1e3),this.config.setNumericSetting(Z.WebRTCFPS,n&&y.has(Z.WebRTCFPS)?Number.parseFloat(y.get(Z.WebRTCFPS)):e.WebRTCSettings.FPS))}_onQualityControlOwnership(e){this.config.setFlagEnabled(X.IsQualityController,e)}_onPlayerCount(e){this._eventEmitter.dispatchEvent(new ca({count:e}))}_setupWebRtcTCPRelayDetection(e){let t=e.data.aggregatedStats.getActiveCandidatePair();if(t!=null){let n=e.data.aggregatedStats.localCandidates.find(y=>y.id==t.localCandidateId,null);n!=null&&n.candidateType=="relay"&&n.relayProtocol=="tcp"&&this._eventEmitter.dispatchEvent(new la),this._eventEmitter.removeEventListener("statsReceived",this._setupWebRtcTCPRelayDetection)}}requestLatencyTest(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendLatencyTest(),!0)}requestDataChannelLatencyTest(e){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._dataChannelLatencyTestController||(this._dataChannelLatencyTestController=new Od(this._webRtcController.sendDataChannelLatencyTest.bind(this._webRtcController),t=>{this._eventEmitter.dispatchEvent(new oa({result:t}))}),this.addEventListener("dataChannelLatencyTestResponse",({data:{response:t}})=>{this._dataChannelLatencyTestController.receive(t)})),this._dataChannelLatencyTestController.start(e))}requestShowFps(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendShowFps(),!0)}requestIframe(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendIframeRequest(),!0)}emitUIInteraction(e){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.emitUIInteraction(e),!0)}emitCommand(e){return!(!this._webRtcController.videoPlayer.isVideoReady()||!this.allowConsoleCommands&&"ConsoleCommand"in e||(this._webRtcController.emitCommand(e),0))}emitConsoleCommand(e){return!(!this.allowConsoleCommands||!this._webRtcController.videoPlayer.isVideoReady()||(this._webRtcController.emitConsoleCommand(e),0))}addResponseEventListener(e,t){this._webRtcController.responseController.addResponseEventListener(e,t)}removeResponseEventListener(e){this._webRtcController.responseController.removeResponseEventListener(e)}dispatchEvent(e){return this._eventEmitter.dispatchEvent(e)}addEventListener(e,t){this._eventEmitter.addEventListener(e,t)}removeEventListener(e,t){this._eventEmitter.removeEventListener(e,t)}toggleXR(){this.webXrController.xrClicked()}setSignallingUrlBuilder(e){this._webRtcController.signallingUrlBuilder=e}get webSocketController(){return this._webRtcController.webSocketController}get webXrController(){return this._webXrController}registerMessageHandler(e,t,n){t!==Ae.FromStreamer||n!==void 0?t===Ae.ToStreamer&&n===void 0?this._webRtcController.streamMessageController.registerMessageHandler(t,e,y=>this._webRtcController.sendMessageController.sendMessageToStreamer(e,y)):this._webRtcController.streamMessageController.registerMessageHandler(t,e,y=>n(y)):x.Warning(x.GetStackTrace(),`Unable to register an undefined handler for ${e}`)}get toStreamerHandlers(){return this._webRtcController.streamMessageController.toStreamerHandlers}isReconnecting(){return this._webRtcController.isReconnecting}}class Hd{}ee.Dz,ee.g$,ee.Lt,ee.Q9,ee.qf,ee.hV,ee.z$,ee.J0;var Ua=ee.De;ee.$C,ee.al,ee._W,ee.Gv,ee.m,ee.tz,ee.Nu,ee.zg,ee.vp;var Rt=ee.vU;ee.wF,ee.rv,ee.Nh,ee.ss,ee.qW,ee.QL,ee.cf,ee.eM;var Ta=ee.Yd;ee.Tk,ee.iM,ee.qy,ee.ce;var Ia=ee.sK;ee.Ok,ee.q5;var Pa=ee.g;ee.xl,ee.I,ee.bx,ee.dD,ee.Ib,ee.Az,ee.Iw,ee.qY,ee.db,ee.mR,ee.Tn,ee.rV,ee.gh,ee.Mi,ee.j,ee.YB,ee.Yt,ee.i5;var Ld=ee.x_;ee.Am,ee.eR,ee.r8,ee.u3,ee.vd,ee.iV,ee.jZ,ee.SW,ee.ZH,ee.Ni,ee.lh,ee.ZP,ee.bq,ee.$f,ee.eu,ee.Ax,ee.Mc;const Rd={Response:1},WA={UIInteraction:50,MouseWheel:75};class Dd extends V.HasOwner{constructor(t,n){super(t);z(this,"_processResponseFn",t=>this.esUeViewer.processResponse(t));z(this,"_inner",new WebSocket(this._uri));z(this,"_innerInit",(()=>{this.inner.onmessage=t=>{if(this.isDestroyed())return;let n=new FileReader;n.onload=y=>{if(this.isDestroyed())return;let C=y.target.result,A=new Uint32Array(C),h=0;if(A[0]===Rd.Response){h+=4;let m=A[h/4];h+=4;for(let g=0;g<m;g++){let w=A[h/4];h+=4;let p=new TextDecoder("utf-8").decode(C.slice(h,h+w));h+=w,this._processResponseFn(p)}}},n.readAsArrayBuffer(t.data)},this.inner.onopen=()=>{this.isDestroyed()||(console.warn("earthsdk message websocket server connected:",this.uri),console.log("%c[EarthSDK websocket open]","background: #a6ec99; color: black","open"),this.owner.dispatchEvent(new CustomEvent("esmsgwsopen",{detail:"websocket open"})))},this._inner.onclose=t=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket close ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket close"})))},this._inner.onerror=t=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket error ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket error"})))},this.d(()=>{!this.isDestroyed()&&this._inner.close()})})());this._uri=n}get esUeViewer(){return this.owner}get uri(){return this._uri}get inner(){return this._inner}sendInputData(t){const n=this.inner;if(n.readyState!==WebSocket.OPEN)return;const C=new Uint8Array(t)[0];if(C>=WA.UIInteraction&&C<=WA.MouseWheel){const A=new ArrayBuffer(t.byteLength+4);return new DataView(A).setUint32(0,t.byteLength,!0),new Uint8Array(A,4).set(new Uint8Array(t)),n.send(new DataView(A)),!0}else return!1}emitDescriptorWithString(t,n){let y=new TextEncoder().encode(n),C=new DataView(new ArrayBuffer(3+y.length)),A=0;C.setUint8(A,t),A++,C.setUint16(A,y.length,!0),A+=2;for(let h=0;h<y.length;h++)C.setUint8(A,y[h]),A+=1;try{this.sendInputData(C.buffer)}catch(h){console.error(`data.buffer.size: ${C.buffer.byteLength} 独立通道 sendInputData error: ${h}`,h)}}destroyImpl(){this._inner&&this._inner.close()}}window.g_emitDescriptor_maxBytes=3e4;let kd=-1;Ta.SetLoggerVerbosity(1);class Kd extends V.Destroyable{constructor(t,n){super();z(this,"_eventTarget",new EventTarget);z(this,"debug",!1);z(this,"uiInteractionCallbacks",new Map);z(this,"_url",this._options.url);z(this,"_container",(()=>{const t=typeof this._domOrDomId=="string"?document.getElementById(this._domOrDomId):this._domOrDomId;if(!t)throw new Error(`ESUEViewer container${this._domOrDomId} error!`);return t})());z(this,"_pixelStream",(()=>{const t=new Ua({initialSettings:{AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!0,WaitForStreamer:!0,SuppressBrowserKeys:!1,[Ld.SignallingServerUrl]:this._url}});t.setFlagEnabled(Rt.BrowserSendOffer,!1),t.setFlagEnabled(Rt.HoveringMouseMode,!0),t.setFlagEnabled(Rt.MatchViewportResolution,!0),t.setNumericSetting(Ia.MaxReconnectAttempts,0);const n=new Pa(t,{videoElementParent:this._options.createUI?void 0:this.container});return this.d(()=>{!this.isDestroyed()&&n.disconnect()}),n})());z(this,"_esMsgWsWrapper");z(this,"_esMsgWsWrapperInit",(()=>{this._options.esmsgWsUri&&(this._esMsgWsWrapper=this.disposeVar(new Dd(this,this._options.esmsgWsUri)))})());this._domOrDomId=t,this._options=n;const y=this;if(y.esMsgWsWrapper){const C=this.webRtcController.sendMessageController.dataChannelSender.sendData;this.webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(A){y.esMsgWsWrapper?y.esMsgWsWrapper.sendInputData(A):C.call(this,A)}}this.pixelStream.addEventListener("videoInitialized",()=>{console.log("%c[EarthSDK webrtc videoInitialized]","background: #a6ec99; color: black","videoInitialized"),this.dispatchEvent(new CustomEvent("videoinited",{detail:"videoinited"}))}),this.pixelStream.addEventListener("webRtcFailed",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcFailed]","background: red; color: black","webRtcFailed"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcFailed"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcDisconnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcDisconnected]","background: red; color: black","webRtcDisconnected"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcDisconnected"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcConnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webrtc webRtcConnected]","background: #a6ec99; color: black","webRtcConnected"),this.dispatchEvent(new CustomEvent("webRtcConnected",{detail:"webRtcConnected"})))}),this.pixelStream.addResponseEventListener("esueviewer",C=>{this.processResponse(C)}),this.dispose(()=>{this._options.createUI||this.container.removeChild(this.webRtcController.videoPlayer.getVideoElement()),this.pixelStream.disconnect(),this.pixelStream.removeResponseEventListener("esueviewer")})}get eventTarget(){return this._eventTarget}addEventListener(t,n,y){return this.eventTarget.addEventListener(t,n,y)}removeEventListener(t,n,y){return this.eventTarget.removeEventListener(t,n,y)}dispatchEvent(t){return this.eventTarget.dispatchEvent(t)}get container(){return this._container}get pixelStream(){return this._pixelStream}get esMsgWsWrapper(){return this._esMsgWsWrapper}get esWebSocketReady(){var t;return((t=this.esMsgWsWrapper)==null?void 0:t.inner.readyState)===1}resolveCallback(t){let n={};try{n=JSON.parse(t)}catch{return!1}let y=n.callid;if(typeof y!="string"||!this.uiInteractionCallbacks.has(y))return!1;let C=this.uiInteractionCallbacks.get(y);return typeof C!="function"?!1:(C(n),this.uiInteractionCallbacks.delete(y),!0)}processResponse(t){if(this.debug??!1)try{const n=JSON.parse(t);if(n.ers=n.ers&&n.ers.filter(y=>y.et!=="mouseMoveEvent"),!(n.ers&&n.ers.length>0||n.frs&&n.frs.length>0))return;console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(n,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(n){console.error(`processResponse(${t}) error: ${n}`,n)}this.resolveCallback(t)||this.dispatchEvent(new CustomEvent("ueevent",{detail:t}))}emitUIInteraction(t,n){typeof n=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,n)),this.pixelStream.emitUIInteraction(t)}get webRtcController(){return this.pixelStream._webRtcController}_pixelStreamEmitUIInteractionAsString(t){this.webRtcController.streamMessageController.toStreamerHandlers.get("UIInteraction")([t])}emitUIInteractionForBigData(t,n){typeof n=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,n));const y=JSON.stringify(t),C=window.g_emitDescriptor_maxBytes,A=y.length,h=++kd;if(this.esMsgWsWrapper){if(A<C){this.esMsgWsWrapper.emitDescriptorWithString(WA.UIInteraction,`${h}-0/1-`+y);return}const m=Math.ceil(A/C)|0;[...new Array(m).keys()].map(w=>y.slice(w*C,(w+1)*C)).forEach((w,p)=>{this.esMsgWsWrapper&&this.esMsgWsWrapper.emitDescriptorWithString(WA.UIInteraction,`${h}-${p}/${m}-`+w)})}}emitCommand(t){this.pixelStream.emitCommand(t)}getVideoSize(){const t=this.webRtcController.videoPlayer.getVideoElement();return{width:t.videoWidth,height:t.videoHeight}}resizeUEVideo(t,n){let y={Resolution:{Width:t,Height:n}};console.log(`resizeUEVideo emitCommand ${t} ${n} begin`),this.emitCommand(y)}}class Nd extends V.Destroyable{constructor(t,n,y){super();z(this,"_instance",this.disposeVar(new Kd(this._container,{url:this._wsuri,esmsgWsUri:this._esmsgWsUri})));z(this,"_event",this.disposeVar(new V.Event));if(this._container=t,this._wsuri=n,this._esmsgWsUri=y,"addEventListener"in this._instance){["esmsgwsopen","error","videoinited","ueevent","webRtcConnected"].forEach(A=>{const h=m=>{this._event.emit(A,m.detail)};this._instance.addEventListener(A,h),this.dispose(()=>this._instance.removeEventListener(A,h))});return}this.dispose(this._instance.errorEvent.disposableOn(C=>{this._event.emit("error",C.detail)})),this.dispose(this._instance.webRtcConnectedEvent.disposableOn(C=>{this._event.emit("webRtcConnected",C.detail)})),this.dispose(this._instance.videoinitedEvent.disposableOn(C=>{this._event.emit("videoinited",C.detail)})),this.dispose(this._instance.ueevent.disposableOn(C=>{this._event.emit("ueevent",C.detail)}))}get webSocketReady(){return this._instance.esWebSocketReady}get event(){return this._event}get debug(){return this._instance.debug}set debug(t){this._instance.debug=t}emitUIInteractionForBigData(t,n){return new Promise((y,C)=>{const A=(...h)=>{y(h),n&&n(...h)};try{this._instance.emitUIInteractionForBigData(t,A)}catch(h){console.warn(`emitUIInteraction发生错误:${h}`),C(h)}})}getVideoSize(){return this._instance.getVideoSize()}resize(t,n){this._instance.resizeUEVideo(t,n)}}const Dt=async(v,e,t,n,y,C="default")=>{const A=await v.callUeFunc({f:"flyTo",p:{id:e,duration:t,flyToParam:n,position:y,flyMode:C}});if(A.error){console.error(A.error);return}return A.re},ci=async(v,e)=>{const t=await v.callUeFunc({f:"destroy",p:{id:e}});return t.error&&console.error(t.error),t},kt=(v,e)=>{v.callUeFunc({f:"calcFlyToParam",p:{id:e}}).then(t=>{t.error&&console.error("calcFlyToParam:",t.error)}).catch(t=>{console.error("calcFlyToParam:",t)})},xa=(v,e)=>{v.callUeFunc({f:"refreshTileset",p:{id:e}}).then(t=>{t.error&&console.error("refreshTileset:",t.error)}).catch(t=>{console.error("refreshTileset:",t)})},Ar=async(v,e,t,n,y,C="default")=>{const A=await v.callUeFunc({f:"flyIn",p:{id:e,position:t,rotation:n,duration:y,flyMode:C}});if(A.error){console.error(A.error);return}return A.re},Oa=async(v,e)=>{if(!v){console.warn("DefaultCameraFlyIn: viewer is undefined");return}const t=await v.callUeFunc({f:"DefaultCameraFlyIn",p:{Duration:e??1}});if(t.error){console.error("DefaultCameraFlyIn:",t.error);return}return t},Ma=async v=>{if(!v){console.warn("StartVoice:viewer is undefined");return}const e=await v.callUeFunc({f:"StartVoice",p:{}});if(e.error){console.error("StartVoice:",e.error);return}return e},Ha=async v=>{if(!v){console.warn("StopVoice:viewer is undefined");return}const e=await v.callUeFunc({f:"StopVoice",p:{}});if(e.error){console.error("StopVoice:",e.error);return}return e},La=async(v,e)=>{if(!v){console.warn("mountPakFiles:viewer is undefined");return}const t=await v.callUeFunc({f:"MountPakFiles",p:{json:e}});if(t.error){console.error("mountPakFiles:",t.error);return}return t},Ra=async v=>{if(!v){console.warn("generateMemReport:viewer is undefined");return}const e=await v.callUeFunc({f:"GenerateMemReport",p:{}});if(e.error){console.error("generateMemReport:",e.error);return}return e},li=async(v,e)=>{const t=await v.callUeFunc({f:"resetWithCurrentCamera",p:{id:e}});return t.error&&console.error("resetWithCurrentCamera:",t.error),t},zA=(v,e,t,n,y)=>{v.callUeFunc({f:"smoothMoveWithRotation",p:{id:e,Destination:t,NewRotation:n,Time:y}}).then(C=>{C.error&&console.error("smoothMoveWithRotation:",C.error)}).catch(C=>{console.error("smoothMoveWithRotation:",C)})},JA=(v,e,t,n,y,C)=>{v.callUeFunc({f:"smoothMoveOnGround",p:{id:e,Lon:t,Lat:n,Ground:y,Time:C}}).then(A=>{A.error&&console.error("smoothMoveOnGround:",A.error)}).catch(A=>{console.error("smoothMoveOnGround:",A)})},XA=(v,e,t,n,y,C,A)=>{v.callUeFunc({f:"smoothMoveWithRotationOnGround",p:{id:e,NewRotation:t,Lon:n,Lat:y,Time:C,Ground:A}}).then(h=>{h.error&&console.error("smoothMoveWithRotationOnGround:",h.error)}).catch(h=>{console.error("smoothMoveWithRotationOnGround:",h)})},Da=(v,e,t)=>{v.callUeFunc({f:"HighlightFeature",p:{id:e,HlId:t}}).then(n=>{n.error&&console.error("HighlightFeature:",n.error)}).catch(n=>{console.error("HighlightFeature:",n)})},ka=(v,e,t,n)=>{v.callUeFunc({f:"HighlightFeatureAndFlyTo",p:{id:e,HlId:t,Duration:n}}).then(y=>{y.error&&console.error("HighlightFeatureAndFlyTo:",y.error)}).catch(y=>{console.error("HighlightFeatureAndFlyTo:",y)})},Ka=(v,e,t)=>{v.callUeFunc({f:"SetLayerVisible",p:{id:e,LayerJson:t}}).then(n=>{n.error&&console.error("SetLayerVisible:",n.error)}).catch(n=>{console.error("SetLayerVisible:",n)})},Na=(v,e,t)=>{v.callUeFunc({f:"SetLayerColor",p:{id:e,LayerJson:t}}).then(n=>{n.error&&console.error("SetLayerColor:",n.error)}).catch(n=>{console.error("SetLayerColor:",n)})},YA=(v,e,t,n)=>{v.callUeFunc({f:"smoothMove",p:{id:e,Destination:t,Time:n}}).then(y=>{y.error&&console.error("smoothMove:",y.error)}).catch(y=>{console.error("smoothMove:",y)})},ui=(v,e,t,n)=>{v.callUeFunc({f:"callFunction",p:{id:e,fn:t,p:n}}).then(y=>{y.error&&(console.error("callFunction:",y.error),console.error(`id: ${e} fn: ${t} param: ${n}`))}).catch(y=>{console.error("callFunction:",y),console.error(`id: ${e} fn: ${t} param: ${n}`)})},Va=(v,e,t,n)=>{v.callUeFunc({f:"SetNodePosition",p:{id:e,NodeName:t,NodePosition:n}}).then(y=>{y.error&&console.error("SetNodePosition:",y.error)}).catch(y=>{console.error("SetNodePosition:",y)})},Ga=(v,e,t,n)=>{v.callUeFunc({f:"SetNodeRotation",p:{id:e,NodeName:t,NodeRotation:n}}).then(y=>{y.error&&console.error("SetNodeRotation:",y.error)}).catch(y=>{console.error("SetNodeRotation:",y)})},ja=(v,e,t,n)=>{v.callUeFunc({f:"SetNodeScale",p:{id:e,NodeName:t,NodeScale:n}}).then(y=>{y.error&&console.error("SetNodeScale:",y.error)}).catch(y=>{console.error("SetNodeScale:",y)})},ot=async(v,e)=>{const t=await v.callUeFunc({f:"ChangeNavigationMode",p:e});if(t.error){console.error("ChangeNavigationMode:",t.error);return}return t},Wa=async(v,e)=>{const t=await v.callUeFunc({f:"setGlobalProperty",p:e});if(t.error){console.error("setGlobalProperty:",t.error);return}return t},za=async v=>{const e=await v.callUeFunc({f:"Quit",p:void 0});if(e.error){console.error("Quit:",e.error);return}return e},Ja=async(v,e,t,n)=>{console.log("pickCallFunc",e,t,n);const y=await v.callUeFunc({f:"pick",p:{screenPosition:e,parentInfo:n}});if(!y.re&&(y.error||y.error=="")){console.error("pick:",y.error==""?"未获取到结果":y.error);return}let C=y.re.id;const A=C?j.ESSceneObject.getSceneObject(C):void 0;return A&&Reflect.has(A,"allowPicking")&&Reflect.has(A,"pickedEvent")&&(A.allowPicking??!1)&&A.pickedEvent.emit({attachedInfo:t}),A&&Reflect.has(A,"allowPicking")&&!A.allowPicking?new j.PickedResult:new j.PickedResult(y.re,A,y.re.features,y.re.add,t)},Xa=async(v,e)=>{const t=await v.callUeFunc({f:"pickPosition",p:{screenPosition:e}});if(!t.re&&(t.error||t.error=="")){console.error("pickPosition",t.error==""?"未获取到结果":t.error);return}const{position:n}=t.re;return n},Ya=async(v,e,t,n="ECC_Visibility")=>{const y=await v.callUeFunc({f:"GetHeightByLonLat",p:{Lon:e,Lat:t,Channel:n}});if(y.error){console.warn(`GetHeightByLonLat:${y.error}`);return}return y.re},$a=async(v,e,t="ECC_Visibility")=>{const n=await v.callUeFunc({f:"GetHeightsByLonLats",p:{LonLats:e,Channel:t}});if(n.error){console.warn(`GetHeightsByLonLats:${n.error}`);return}n.re.heights.includes(null)&&console.warn("注意! GetHeightsByLonLats: 存在高度为null的点. there are points with a height of null");try{return n.re.heights}catch{return}},Za=async(v,e=64,t=64)=>{const n=await v.callUeFunc({f:"capture",p:{resx:e,resy:t}});if(n.error){console.warn(n.error);return}return n.re.image},qa=async(v,e,t=[64,64])=>{const n=await v.callUeFunc({f:"partialCapture",p:{startPos:e,size:t}});if(n.error){console.warn(n.error);return}return n.re.image},ec=async(v,e)=>{const t=await v.callUeFunc({f:"LonLatAltToScreenPosition",p:{LonLatAlt:e}});return t.error&&console.warn(t.error),t.re},tc=async(v,e)=>{const t=await v.callUeFunc({f:"UEPositionToLonLatAlt",p:{UEPosition:e}});if(t.error){console.warn(t.error);return}return[...t.re.LonLatAlt]},rc=async(v,e)=>{const t=await v.callUeFunc({f:"GetAllSocketNamesByActorTag",p:{ActorTag:e}});if(t.error){console.warn(t.error);return}return[...t.re.socketNames]},Ac=async v=>{const e=await v.callUeFunc({f:"GetVersion",p:void 0});if(e.error){console.warn("GetVersion:",e.error);return}return e.re.version},nc=async(v,e)=>{const t=await v.callUeFunc({f:"GetBoundSphere",p:{id:e}});if(t.error){console.warn(t.error);return}return t.re},ic=async(v,e)=>{const t=await v.callUeFunc({f:"GetBoundSphereWithChildren",p:{id:e}});if(t.error){console.warn(`GetBoundSphereWithChildren:${t.error}`);return}return t.re},oc=async(v,e)=>{const t=await v.callUeFunc({f:"GetStrokeMaterialParamInfo",p:{id:e}});if(t.error){console.warn(`GetStrokeMaterialParamInfo:${t.error}`);return}return t.re},sc=async(v,e)=>{const t=await v.callUeFunc({f:"GetFillMaterialParamInfo",p:{id:e}});if(t.error){console.warn(`GetFillMaterialParamInfo:${t.error}`);return}return t.re},ac=async(v,e)=>{const t=await v.callUeFunc({f:"getGlobalProperty",p:{props:e}});if(t.error){console.warn(`getGlobalProperty:${t.error}`);return}return t.re},cc=async(v,e)=>{const t=await v.callUeFunc({f:"GetObjectByInfo",p:{info:e}});if(t.error){console.warn(`GetObjectByInfo:${t.error}`);return}return t.re},lc=async(v,e,t)=>await v.callUeFunc({f:"BindActorByTag",p:{ID:e,ActorTag:t}}),uc=async v=>await v.callUeFunc({f:"RestoreOriginalScene",p:void 0}),dc=async(v,e)=>await v.callUeFunc({f:"UnBindActorByID",p:{ID:e}}),fc=async(v,e)=>await v.callUeFunc({f:"UnBindActorByTag",p:{ActorTag:e}}),hc=async(v,e,t)=>await v.callUeFunc({f:"CreateActorByClass",p:{ID:e,ActorClass:t}}),pc=async function(v,e,t){return await v.callUeFunc({f:"Bind3DTilesetByTag",p:{ID:e,ActorTag:t}})},gc=async function(v,e){return await v.callUeFunc({f:"UnBind3DTilesetByTag",p:{ActorTag:e}})},vc=async function(v,e){return await v.callUeFunc({f:"UnBind3DTilesetById",p:{ID:e}})},yc=async function(v,e,t,n){return await v.callUeFunc({f:"BindImageryByTag",p:{ID:e,ActorTag:t,ComponentTag:n}})},mc=async function(v,e,t){return await v.callUeFunc({f:"UnBindImageryByTag",p:{ActorTag:e,ComponentTag:t}})},wc=async function(v,e){return await v.callUeFunc({f:"UnBindImageryById",p:{ID:e}})},Bc=async function(v,e,t,n){return await v.callUeFunc({f:"GetIdByComponentNameAndHitItem",p:{id:e,ComponentName:t,HitItem:n}})},Cc=async function(v,e="ECC_Visibility"){return await v.callUeFunc({f:"GetCameraRelativeHeight",p:{Channel:e}})},bc=async function(v,e,t,n){const y=await v.callUeFunc({f:"SaveStringToFile",p:{String:e,Path:t??"undefine",File:n??"data.txt"}});return y.error!==""&&console.warn("SaveStringToFile: ",y.error),y},_c=async function(v,e,t=!0){const n=await v.callUeFunc({f:"HighlightActorByTag",p:{ActorTag:e,Highlight:t}});return n.error!==""&&console.warn("HighlightActorByTag: ",n.error),n},Ec=async function(v,e){const t=await v.callUeFunc({f:"SendCustomMessage",p:{Message:e}});return t.error!==""&&console.warn("SendCustomMessage: ",t.error),t},Fc=async function(v){const e=await v.callUeFunc({f:"GetStatus",p:void 0});if(e.error){console.warn(`GetStatus:${e.error}`);return}return e.re},Sc=async(v,e,t,n,y=!0)=>{const C=await v.callUeFunc({f:"startEditing",p:{sceneObjectID:e,editingID:t,modes:n,useKeyToSwitch:y}});if(C.error){console.error("startEditing:",C.error);return}return C},Qc=async v=>{const e=await v.callUeFunc({f:"stopEditing",p:void 0});if(e.error){console.error("stopEditing:",e.error);return}return e},Uc=async(v,e,t)=>{const n=await v.callUeFunc({f:"moveObjects",p:{sceneObjectIDs:e,editingID:t}});if(n.error){console.error("moveObjects:",n.error);return}return n},Tc=async v=>{const e=await v.callUeFunc({f:"GetTilesetMaterialIDList",p:void 0});if(e.error){console.error("GetTilesetMaterialIDList:",e.error);return}return e.re.materialIDList};class nr extends V.Destroyable{}class Vd extends j.PickedInfo{constructor(e,t,n){super(t),this.uePickResult=e,this.tilesetPickInfo=n}}class Gd extends nr{constructor(t,n,y,C){super();z(this,"_esueViewerWrapper");z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Set);z(this,"_ueEvent",this.dv(new V.Event));z(this,"_errorEvent",this.dv(new V.Event));z(this,"_readyEvent",this.dv(new V.Event));z(this,"_esmsgwsopen",this.dv(V.react(!1)));z(this,"_videoinited",this.dv(V.react(!1)));z(this,"_webRtcConnected",this.dv(V.react(!1)));this._ueViewer=C,console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");const A=this._ueViewer;this._esueViewerWrapper=this.dv(new Nd(t,n,y));const h=this._esueViewerWrapper;{const f=()=>h.debug=A.debug??!1;f(),this.d(A.debugChanged.don(f))}let m=!1;{const f=()=>{if(m)return;const c=h.webSocketReady;if(this.videoinited&&this.webRtcConnected&&c){console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]","background: #a6ec99; color: black");const a={eventType:"init",params:{}};h.emitUIInteractionForBigData(a),this._readyEvent.emit(),m=!0}};this.d(this.videoinitedChanged.don(()=>{f()})),this.d(this.webRtcConnectedChanged.don(()=>{f()})),this.d(this.esmsgwsopenChanged.don(()=>{f()}))}this.d(h.event.don((f,c)=>{if(f==="error")this._errorEvent.emit(c);else if(f==="ueevent"){const a=JSON.parse(c);if(a.t==="cr"){const i=a;if(i.frs&&this._ueFuncResultWithIdsEvent.emit(i.frs),i.ers)for(let s of i.ers)this._ueEvent.emit(s)}}else f==="webRtcConnected"?this.webRtcConnected=!0:f==="videoinited"?this.videoinited=!0:f==="esmsgwsopen"&&(this.esmsgwsopen=!0)}));{const f=this.dv(V.createAnimateFrame());let c,a;f.start(()=>{if(c!==t.offsetWidth||a!==t.offsetHeight){if(c=t.offsetWidth,a=t.offsetHeight,c===void 0||a===void 0||!Number.isFinite(c)||!Number.isFinite(a)||c<0||a<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${a}`);return}h.resize(c,a),console.log(`resize: ${c} ${a}`)}})}this.d(this._ueFuncResultWithIdsEvent.don(f=>{for(const c of f){const a=this._waitingUeFuncIdAndResultCallbacks.get(c.fid);a&&(this._waitingUeFuncIdAndResultCallbacks.delete(c.fid),a.resultCallback(c.r))}}));let g=0;const w=f=>{const c={n:g++,tt:Date.now(),t:"c",fs:f};this._waitingUeCalls.add(c),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(c,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._esueViewerWrapper.emitUIInteractionForBigData(c,()=>{this._waitingUeCalls.delete(c)})},p=()=>{if(!m||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([c])=>c);for(const[c,a]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(c.fid,a);this._ueFuncWithIdAndResultCallbacks.length=0;{const c=window.g_emitDescriptor_maxBytes,a=f.map(l=>({f:l,s:JSON.stringify(l).length}));let i=a.length,s=0,r=0,o=[];do{do{const{f:l,s:d}=a[s];if(o.push(l),++s,r+d>c||o.length>=20)break}while(s<i);o.length>0&&(A.debug&&console.log(`传送${o.length}条消息...`),w([...o]),o.length=0,r=0)}while(s<i)}};this.dv(V.createInterval()).start(p,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get esueViewerWrapper(){return this._esueViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}get esmsgwsopen(){return this._esmsgwsopen.value}set esmsgwsopen(t){this._esmsgwsopen.value=t}get esmsgwsopenChanged(){return this._esmsgwsopen.changed}get videoinited(){return this._videoinited.value}set videoinited(t){this._videoinited.value=t}get videoinitedChanged(){return this._videoinited.changed}get webRtcConnected(){return this._webRtcConnected.value}set webRtcConnected(t){this._webRtcConnected.value=t}get webRtcConnectedChanged(){return this._webRtcConnected.changed}resize(t,n){this.esueViewerWrapper.resize(t,n)}callUeFunc(t){return new Promise(n=>{const C={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([C,{timeStamp:Date.now(),ueFunc:t,resultCallback:n}])})}disposableOnUeEvent(t,n){(this._ueViewer.debug??!1)&&console.log(`disposableOnUeEvent from UeCloudViewer, type:${t}`);const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const C=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.don(h=>{h.et===t&&h.eid===y&&n(h)});return()=>{A(),C()}}}function jd(v){let e="";const t=new Uint8Array(v),n=t.length;for(let y=0;y<n;y++)e+=String.fromCharCode(t[y]);return btoa(e)}const Wd=v=>{const e={type:"input",inputdata:jd(v)};return JSON.stringify(e)};function zd(v){return typeof v=="string"?document.getElementById(v):v}window.g_emitDescriptor_maxBytes=3e4,console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");let Jd=-1;Ta.SetLoggerVerbosity(1);class Xd extends V.Destroyable{constructor(t,n){super();z(this,"debug",!1);z(this,"_error",this.dv(new V.Event));z(this,"_connected",this.dv(new V.Event));z(this,"_ueevent",this.dv(new V.Event));z(this,"_pixelStream");z(this,"uiInteractionCallbacks",new Map);this._container=t,this._option=n;const y=new Ua({initialSettings:{HoveringMouse:!0,AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!0,WaitForStreamer:!0,SuppressBrowserKeys:!1,ss:this._option.ws},useUrlParams:!0});y.setFlagEnabled(Rt.BrowserSendOffer,!1),y.setFlagEnabled(Rt.HoveringMouseMode,!0),y.setFlagEnabled(Rt.MatchViewportResolution,!0),y.setNumericSetting(Ia.MaxReconnectAttempts,0),this._pixelStream=new Pa(y,{videoElementParent:this.container});{const C=this.pixelStream.webSocketController.webSocket,A=this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(h){C?C.send(Wd(h)):A.call(this,h)}}{const C=A=>{const h=this._pixelStream._webRtcController.mouseController;setTimeout(()=>{const m=h.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY),w=h.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");w&&w([A.button,m.x,m.y]),A.preventDefault()})};this.container.addEventListener("dblclick",C),this.d(()=>{this.container.removeEventListener("dblclick",C)})}["error","close","open"].forEach(A=>{const h=()=>{this.isDestroyed()||(A==="open"?this.connected.emit("webSocketOpen"):A==="close"?this.error.emit("webSocketClose"):A==="error"&&this.error.emit("webSocketError"))};this.pixelStream.webSocketController.webSocket.addEventListener(A,h),this.d(()=>{this.pixelStream.webSocketController.webSocket.removeEventListener(A,h)})}),["videoInitialized","webRtcConnected","webRtcDisconnected","webRtcFailed"].forEach(A=>{const h=()=>{this.isDestroyed()||(A==="webRtcConnected"||A==="videoInitialized"?this.connected.emit(A):(A==="webRtcDisconnected"||A==="webRtcFailed")&&(this.error.emit(A),this.pixelStream.disconnect()))};this.pixelStream.addEventListener(A,h),this.d(()=>{this.pixelStream.removeEventListener(A,h)})}),this.pixelStream.addResponseEventListener("handle_responses",C=>{this.processResponse(C)}),this.d(()=>{this.pixelStream.removeResponseEventListener("handle_responses")})}get error(){return this._error}get connected(){return this._connected}get ueevent(){return this._ueevent}get container(){return zd(this._container)}get pixelStream(){return this._pixelStream}get webSocketReady(){return this.pixelStream.webSocketController.webSocket.readyState===1}processResponse(t){if(this.debug??!1)try{const n=JSON.parse(t);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(n,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(n){console.error(`processResponse(${t}) error: ${n}`,n)}this.resolveCallback(t)||this.ueevent.emit(t)}emitUIInteractionForBigData(t,n){typeof n=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,n));const y=JSON.stringify(t),C=window.g_emitDescriptor_maxBytes??3e4,A=y.length,h=++Jd;if(A<C){const w={type:"earthsdk",time:new Date().getTime(),params:`${h}-0/1-`+y};this.sendData(JSON.stringify(w));return}const m=Math.ceil(A/C)|0;[...new Array(m).keys()].map(w=>y.slice(w*C,(w+1)*C)).forEach((w,p)=>{const u={type:"earthsdk",time:new Date().getTime(),params:`${h}-${p}/${m}-`+w};this.sendData(JSON.stringify(u))})}sendData(t){this.pixelStream.webSocketController.webSocket.send(t)}resolveCallback(t){let n={};try{n=JSON.parse(t)}catch{return!1}let y=n.callid;if(typeof y!="string"||!this.uiInteractionCallbacks.has(y))return!1;let C=this.uiInteractionCallbacks.get(y);return typeof C!="function"?!1:(C(n),this.uiInteractionCallbacks.delete(y),!0)}getVideoSize(){const t=this._pixelStream._webRtcController.videoPlayer.getVideoElement();return{width:t.videoWidth,height:t.videoHeight}}emitCommand(t){this.pixelStream.emitCommand(t)}emitUIInteraction(){console.log("emitUIInteraction 像素流初始化"),this.pixelStream.emitUIInteraction("像素流初始化")}resizeUEVideo(t,n){const y={Resolution:{Width:t,Height:n}};console.log(`resizeUEVideo emitCommand ${t} ${n} begin`),this.emitCommand(y)}}class Yd extends V.Destroyable{constructor(t,n,y){super();z(this,"_instance");z(this,"_event",this.dv(new V.Event));this._container=t,this._wsuri=n,this._esmsgWsUri=y,this._instance=this.dv(new Xd(this._container,{ws:this._wsuri})),this.d(this._instance.connected.don(C=>{this._event.emit(C,C),console.log(`%c[EarthSDK] ${C}`,"background: #a6ec99; color: black")})),this.d(this._instance.error.don(C=>{this._event.emit("errorEvent",C),console.log(`%c[EarthSDK] ${C}`,"background: red; color: black")})),this.d(this._instance.ueevent.don(C=>{this._event.emit("ueevent",C)}))}get instance(){return this._instance}get event(){return this._event}get debug(){return this._instance.debug}set debug(t){this._instance.debug=t}emitUIInteractionForBigData(t,n){return new Promise((y,C)=>{const A=(...h)=>{y(h),n&&n(...h)};try{this._instance.emitUIInteractionForBigData(t,A)}catch(h){console.warn(`emitUIInteraction发生错误:${h}`),C(h)}})}getVideoSize(){return this._instance.getVideoSize()}resize(t,n){this._instance.resizeUEVideo(t,n)}}class $d extends nr{constructor(t,n,y,C){super();z(this,"_videoInitialized",this.dv(V.react(!1)));z(this,"_webRtcConnected",this.dv(V.react(!1)));z(this,"_webSocketOpen",this.dv(V.react(!1)));z(this,"_ue5ViewerWrapper");z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Set);z(this,"_ueEvent",this.dv(new V.Event));z(this,"_errorEvent",this.dv(new V.Event));z(this,"_readyEvent",this.dv(new V.Event));this._ueViewer=C,console.log("INNPSViewer init ! 以内置信令服务器模式启动!");const A=this._ueViewer,h=this.dv(new Yd(t,n,y));this._ue5ViewerWrapper=h;{const u=()=>h.debug=A.debug??!1;u(),this.d(A.debugChanged.don(u))}{let u=!1;const f=this.dv(V.createNextAnimateFrameEvent(this._videoInitialized.changed,this._webRtcConnected.changed,this._webSocketOpen.changed));this.d(f.don(()=>{if(u)return;const c=this._ue5ViewerWrapper.instance.webSocketReady;if(this.videoInitialized&&this.webRtcConnected&&c){this._ue5ViewerWrapper.instance.emitUIInteraction(),this._readyEvent.emit(),u=!0,console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]","background: #a6ec99; color: black");const a={eventType:"init",params:{}};this._ue5ViewerWrapper.emitUIInteractionForBigData(a)}else console.warn("webSocketReady",c),u=!1}))}this.d(h.event.don((u,f)=>{if(u==="errorEvent")this._errorEvent.emit(f);else if(u==="videoInitialized")this._videoInitialized.value=!0;else if(u==="webRtcConnected")this._webRtcConnected.value=!0;else if(u==="webSocketOpen")this._webSocketOpen.value=!0;else if(u==="ueevent"){const c=JSON.parse(f);if(c.t==="cr"){const a=c;if(a.frs&&this._ueFuncResultWithIdsEvent.emit(a.frs),a.ers)for(let i of a.ers)this._ueEvent.emit(i)}}}));{const u=this.dv(V.createAnimateFrame());let f,c,a;u.start(()=>{if(f!==t.offsetWidth||c!==t.offsetHeight||a!==A.resolutionScale){if(f=t.offsetWidth,c=t.offsetHeight,f===void 0||c===void 0||!Number.isFinite(f)||!Number.isFinite(c)||f<0||c<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${f} ${c}`);return}a=A.resolutionScale,h.resize(f/a,c/a)}})}this.d(this._ueFuncResultWithIdsEvent.don(u=>{for(const f of u){const c=this._waitingUeFuncIdAndResultCallbacks.get(f.fid);c&&(this._waitingUeFuncIdAndResultCallbacks.delete(f.fid),c.resultCallback(f.r))}}));let m=0;const g=u=>{const f={n:m++,tt:Date.now(),t:"c",fs:u};this._waitingUeCalls.add(f),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(f,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._ue5ViewerWrapper.emitUIInteractionForBigData(f,()=>{this._waitingUeCalls.delete(f)})},w=()=>{if(!this._ue5ViewerWrapper.instance.webSocketReady||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([c])=>c);for(const[c,a]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(c.fid,a);this._ueFuncWithIdAndResultCallbacks.length=0;{const c=window.g_emitDescriptor_maxBytes,a=f.map(l=>({f:l,s:JSON.stringify(l).length}));let i=a.length,s=0,r=0,o=[];do{do{const{f:l,s:d}=a[s];if(o.push(l),++s,r+d>c||o.length>=20)break}while(s<i);o.length>0&&(A.debug&&console.log(`传送${o.length}条消息...`),g([...o]),o.length=0,r=0)}while(s<i)}};this.dv(V.createInterval()).start(w,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get videoInitialized(){return this._videoInitialized.value}get webRtcConnected(){return this._webRtcConnected.value}get webSocketOpen(){return this._webSocketOpen.value}get ue5ViewerWrapper(){return this._ue5ViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}resize(t,n){this.ue5ViewerWrapper.resize(t,n)}callUeFunc(t){return new Promise(n=>{const C={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([C,{timeStamp:Date.now(),ueFunc:t,resultCallback:n}])})}disposableOnUeEvent(t,n){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const C=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.don(h=>{h.et===t&&h.eid===y&&n(h)});return()=>{A(),C()}}}class Zd extends V.Destroyable{constructor(t,n,y,C){super();z(this,"_onRuntimeInitialized",this.dv(new V.Event));z(this,"_vIframe",null);this._ueViewer=C;const A=this._ueViewer;{const h=document.createElement("iframe");this._vIframe=h,h.style.cssText="width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;",t.appendChild(h),this.d(()=>{h&&t.removeChild(h)});const m=j.ESSceneObject.getStrFromEnv(y+`/web/${n}.html`);h.src=m,h.onload=()=>{const g=h.contentWindow;if(!g){console.error("iframeWindow is null");return}console.log("iwindow.Module",g.Module),g.Module.onRuntimeInitialized=()=>{this._onRuntimeInitialized.emit(),A.setStatus("Created"),A.setStatusLog("创建成功"),g.Module.UE4_resizeCanvas(),g.console.log("创建成功__________________________________________")}}}}get onRuntimeInitialized(){return this._onRuntimeInitialized}get vIframe(){return this._vIframe}}const Ic=typeof TextDecoder<"u"?new TextDecoder:void 0,qd=(v,e=0,t=NaN)=>{const n=e+t;let y=e;for(;v[y]&&!(y>=n);)++y;if(y-e>16&&v.buffer&&Ic)return Ic.decode(v.subarray(e,y));let C="";for(;e<y;){var A=v[e++];if(!(A&128)){C+=String.fromCharCode(A);continue}var h=v[e++]&63;if((A&224)==192){C+=String.fromCharCode((A&31)<<6|h);continue}var m=v[e++]&63;if((A&240)==224?A=(A&15)<<12|h<<6|m:((A&248)!=240&&console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),A=(A&7)<<18|h<<12|m<<6|v[e++]&63),A<65536)C+=String.fromCharCode(A);else{var g=A-65536;C+=String.fromCharCode(55296|g>>10,56320|g&1023)}}return C};class ef extends V.Destroyable{constructor(e,t,n){super();{const y=()=>{const m=Zn(t);t.setGlobalProperty(m)};y();const C=NA(),A=[];C.forEach(m=>{const g=t[m+"Changed"];A.push(g)});const h=this.dv(V.createNextAnimateFrameEvent(...A));this.d(h.don(y))}this.d(t.propChanged.don(y=>{if(y.objId==="")try{Object.keys(y.props).forEach(C=>{const A=y.props[C]===null?void 0:y.props[C];t[C]=A})}catch(C){console.error("ueViewer propChanged:"+C)}})),t.useCustomInteraction=!1,this.dv(new j.ViewerCustomInteraction(t,e)),this.dv(new V.ObjResettingWithEvent(t.statusUpdateIntervalChanged,y=>{if((t.statusUpdateInterval??.5)===0)return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("statusUpdate",h=>{t.statusUpdateEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.propChangedListeningChanged,()=>{if(!(t.propChangedListening??!0))return;const C=new V.Destroyable;return C.d(n.disposableOnUeEvent("propChanged",A=>{t.propChanged.emit(A)})),C})),this.dv(new V.ObjResettingWithEvent(t.objectEventListeningChanged,()=>{if(!(t.objectEventListening??!0))return;const C=new V.Destroyable;return C.d(n.disposableOnUeEvent("objectEvent",A=>{t.objectEvent.emit(A)})),C})),this.dv(new V.ObjResettingWithEvent(t.widgetEventListeningChanged,()=>{if(!(t.widgetEventListening??!0))return;const C=new V.Destroyable;return C.d(n.disposableOnUeEvent("widgetEvent",A=>{t.widgetEvent.emit(A)})),C})),this.dv(new V.ObjResettingWithEvent(t.speechRecognitionListeningChanged,()=>{if(!(t.speechRecognitionListening??!0))return;const C=new V.Destroyable;return C.d(n.disposableOnUeEvent("speechRecognition",A=>{t.speechRecognition.emit(A)})),C})),this.dv(new V.ObjResettingWithEvent(t.customMessageListeningChanged,()=>{if(!(t.customMessageListening??!0))return;const C=new V.Destroyable;return C.d(n.disposableOnUeEvent("customMessage",A=>{t.customMessage.emit(A)})),C})),this.dv(new V.ObjResettingWithEvent(t.editingEventListeningChanged,()=>{if(!(t.editingEventListening??!0))return;const C=new V.Destroyable;return C.d(n.disposableOnUeEvent("editingEvent",A=>{A.objectIDs=A.objectIDs.map(h=>h.split("_")[0]),t.editingEvent.emit(A)})),C}))}}let tf=-1;class rf extends nr{constructor(t,n,y="${earthsdk3-ue-h5-assets-script-dir}",C){super();z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Map);z(this,"_ueEvent",this.dv(new V.Event));this._ueViewer=C;const A=this._ueViewer,h=this.dv(new Zd(t,n,y,A));let m=!1,g=null;this.d(h.onRuntimeInitialized.don(()=>{var f;if(m=!0,(f=h==null?void 0:h.vIframe)!=null&&f.contentWindow){g=h.vIframe.contentWindow;const c=h.vIframe.contentWindow.document.getElementById("mainarea");c?this.dv(new ef(c,A,this)):console.error("h5Container is null")}else{console.error("iframeWindow is null");return}g.UE_JSHTML5Communication?g.UE_JSHTML5Communication.UESendMessageToJS=c=>{try{const a=qd(g.HEAPU8,c),i=JSON.parse(a);if(A.debug&&(console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(i,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()),i.t==="cr"){const s=i;if(s.frs&&this._ueFuncResultWithIdsEvent.emit(s.frs),s.ers)for(let r of s.ers)this._ueEvent.emit(r)}i.callid&&this._waitingUeCalls.has(i.callid)&&(this._waitingUeCalls.delete(i.callid),console.log(`waitingUeCalls.delete:${i.callid} end`))}catch(a){console.error("UE_JSHTML5Communication.UESendMessageToJS error:",a)}}:console.error("UE_JSHTML5Communication UESendMessageToJS not found")})),this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(f=>{for(const c of f){const a=this._waitingUeFuncIdAndResultCallbacks.get(c.fid);a&&(this._waitingUeFuncIdAndResultCallbacks.delete(c.fid),a(c.r))}}));let w=0;const p=()=>{if(!m||!g||!g.UE_JSHTML5Communication||!g.UE_JSHTML5Communication.JSSendMessageToUE||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([d])=>d),c={n:w++,tt:Date.now(),t:"c",fs:f,callid:V.createGuid()};for(const[d,B]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(d.fid,B);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.set(c.callid,c),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(c,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const a=JSON.stringify(c),i=window.g_emitDescriptor_maxBytes??3e4,s=a.length,r=++tf;if(s<i){const d=`${r}-0/1-`+a;g.UE_JSHTML5Communication.JSSendMessageToUE(d);return}const o=Math.ceil(s/i)|0;[...new Array(o).keys()].map(d=>a.slice(d*i,(d+1)*i)).forEach((d,B)=>{const _=`${r}-${B}/${o}-`+d;g.UE_JSHTML5Communication.JSSendMessageToUE(_)})};this.dv(V.createInterval()).start(p,50)}processResponse(t){if(this._ueViewer.debug??!1)try{const n=JSON.parse(t);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(n,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(n){console.error(`processResponse(${t}) error: ${n}`,n)}}callUeFunc(t){return new Promise(n=>{const C={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([C,n])})}disposableOnUeEvent(t,n){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const C=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.disposableOn(h=>{h.et===t&&h.eid===y&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${t} eid:${y} ueEvent:${JSON.stringify(h)}`),n(h))});return()=>{A(),C()}}}let Af=-1;class nf extends nr{constructor(t,n){super();z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Set);z(this,"_ueEvent",this.dv(new V.Event));this._ueViewer=n;const y=this._ueViewer;let C=!1;const A={eventType:"init",params:{}};window.ue.es.oncommand(JSON.stringify(A)),C=!0,window.calljs=(w,p)=>{if(y.debug&&console.log(`calljs eventName:${w} eventDetailStr:${p}`),w==="ueevent"||w==="commanFinish")try{const u=JSON.parse(p);if(u.t==="cr"){const f=u;if(f.frs&&this._ueFuncResultWithIdsEvent.emit(f.frs),f.ers)for(let c of f.ers)this._ueEvent.emit(c)}}catch(u){console.error(u)}},this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(w=>{for(const p of w){const u=this._waitingUeFuncIdAndResultCallbacks.get(p.fid);u&&(this._waitingUeFuncIdAndResultCallbacks.delete(p.fid),u(p.r))}}));let h=0;const m=()=>{if(!C||this._ueFuncWithIdAndResultCallbacks.length===0)return;const w=this._ueFuncWithIdAndResultCallbacks.map(([f])=>f),p={n:h++,tt:Date.now(),t:"c",fs:w};for(const[f,c]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(f.fid,c);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.add(p),y.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(p,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const u=++Af;window.ue.es.oncommand(`${u}-0/1-`+JSON.stringify(p)).then(()=>{this._waitingUeCalls.delete(p)})};this.dv(V.createInterval()).start(m,50)}callUeFunc(t){return new Promise(n=>{const C={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([C,n])})}disposableOnUeEvent(t,n){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const C=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.disposableOn(h=>{h.et===t&&h.eid===y&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${t} eid:${y} ueEvent:${JSON.stringify(h)}`),n(h))});return()=>{A(),C()}}}class of extends V.Destroyable{constructor(e,t){super();{const n=()=>{const h=Zn(e);e.setGlobalProperty(h)};n();const y=NA(),C=[];y.forEach(h=>{const m=e[h+"Changed"];C.push(m)});const A=this.dv(V.createNextAnimateFrameEvent(...C));this.d(A.don(n))}this.d(e.propChanged.don(n=>{if(n.objId==="")try{Object.keys(n.props).forEach(y=>{const C=n.props[y]===null?void 0:n.props[y];e[y]=C})}catch(y){console.error("ueViewer propChanged:"+y)}})),this.dv(new V.ObjResettingWithEvent(e.statusUpdateIntervalChanged,n=>{if((e.statusUpdateInterval??.5)===0)return;const C=new V.Destroyable;return C.d(t.disposableOnUeEvent("statusUpdate",A=>{e.statusUpdateEvent.emit(A)})),C})),this.dv(new V.ObjResettingWithEvent(e.propChangedListeningChanged,()=>{if(!(e.propChangedListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("propChanged",C=>{e.propChanged.emit(C)})),y})),this.dv(new V.ObjResettingWithEvent(e.objectEventListeningChanged,()=>{if(!(e.objectEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("objectEvent",C=>{e.objectEvent.emit(C)})),y})),this.dv(new V.ObjResettingWithEvent(e.widgetEventListeningChanged,()=>{if(!(e.widgetEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("widgetEvent",C=>{e.widgetEvent.emit(C)})),y})),this.dv(new V.ObjResettingWithEvent(e.speechRecognitionListeningChanged,()=>{if(!(e.speechRecognitionListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("speechRecognition",C=>{e.speechRecognition.emit(C)})),y})),this.dv(new V.ObjResettingWithEvent(e.customMessageListeningChanged,()=>{if(!(e.customMessageListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("customMessage",C=>{e.customMessage.emit(C)})),y})),this.dv(new V.ObjResettingWithEvent(e.editingEventListeningChanged,()=>{if(!(e.editingEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("editingEvent",C=>{C.objectIDs=C.objectIDs.map(A=>A.split("_")[0]),e.editingEvent.emit(C)})),y}))}}class sf extends V.Destroyable{constructor(e,t,n){super();{const C=()=>{const g=Zn(t);t.setGlobalProperty(g)};C();const A=NA(),h=[];A.forEach(g=>{const w=t[g+"Changed"];h.push(w)});const m=this.dv(V.createNextAnimateFrameEvent(...h));this.d(m.don(C))}this.d(t.propChanged.don(C=>{if(C.objId==="")try{Object.keys(C.props).forEach(A=>{const h=C.props[A]===null?void 0:C.props[A];t[A]=h})}catch(A){console.error("ueViewer propChanged:"+A)}}));const y=document.createElement("div");y.style.width="100%",y.style.height="100%",y.style.position="absolute",y.style.overflow="hidden",y.style.top="0",y.style.left="0",y.style.zIndex="0",y.style.backgroundColor="rgba(255,0,0,0)",y.setAttribute("masker","大屏顶层div,用于模拟鼠标事件和控制UE鼠标事件是否生效"),e.appendChild(y),this.d(()=>{y&&e&&e.removeChild(y)});{const C=(g,w)=>{window.ue.esinput.setinterceptevent(w),g.preventDefault()},A=g=>{C(g,!1)},h=g=>{C(g,!0)},m=g=>{C(g,!1)};y.addEventListener("mouseenter",A),y.addEventListener("mouseleave",h),y.addEventListener("mousemove",m),this.d(()=>{y.removeEventListener("mouseenter",A),y.removeEventListener("mouseleave",h),y.removeEventListener("mousemove",m)})}t.useCustomInteraction=!1,this.dv(new j.ViewerCustomInteraction(t,y,void 0,!0)),this.dv(new V.ObjResettingWithEvent(t.statusUpdateIntervalChanged,C=>{if((t.statusUpdateInterval??.5)===0)return;const h=new V.Destroyable;return h.d(n.disposableOnUeEvent("statusUpdate",m=>{t.statusUpdateEvent.emit(m)})),h})),this.dv(new V.ObjResettingWithEvent(t.propChangedListeningChanged,()=>{if(!(t.propChangedListening??!0))return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("propChanged",h=>{t.propChanged.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.objectEventListeningChanged,()=>{if(!(t.objectEventListening??!0))return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("objectEvent",h=>{t.objectEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.widgetEventListeningChanged,()=>{if(!(t.widgetEventListening??!0))return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("widgetEvent",h=>{t.widgetEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.speechRecognitionListeningChanged,()=>{if(!(t.speechRecognitionListening??!0))return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("speechRecognition",h=>{t.speechRecognition.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.customMessageListeningChanged,()=>{if(!(t.customMessageListening??!0))return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("customMessage",h=>{t.customMessage.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.editingEventListeningChanged,()=>{if(!(t.editingEventListening??!0))return;const A=new V.Destroyable;return A.d(n.disposableOnUeEvent("editingEvent",h=>{h.objectIDs=h.objectIDs.map(m=>m.split("_")[0]),t.editingEvent.emit(h)})),A}))}}class af extends V.Destroyable{constructor(t,n,y){super();z(this,"_reconnectEvent",this.dv(new V.Event));const C=(m,g)=>m.hasOwnProperty(g);let A=0,h;if(this.d(()=>{h&&clearTimeout(h)}),window.ue&&window.ue.es)if(window.ue.esinput){y.setStatus("Creating"),console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."),y.setStatusLog("开始创建本地视口...");const m=this.dv(new nf(t,y));this.d(()=>y.viewer=void 0),y.viewer=m,y.setStatus("Created"),y.setStatusLog("本地视口创建成功!"),this.dv(new sf(t,y,m))}else y.setStatus("Error"),y.setStatusLog("请升级 ESWebView !");else if(C(n.options,"ws")||C(n.options,"uri")&&C(n.options,"app")){y.setStatus("Creating"),y.setStatusLog("开始创建云渲染视口...");let m;this.d(()=>{y.setStatus("Raw"),y.setStatusLog(""),t&&m&&t.removeChild(m)&&(m=void 0)});const g=this.dv(V.createProcessingFromAsyncFunc(async w=>{y.viewer&&!y.viewer.isDestroyed()&&y.viewer.destroy(),y.viewer=void 0,m&&t.removeChild(m)&&(m=void 0),m=document.createElement("div"),m.setAttribute("earthsdk3-ue","earthsdk3-ue-videoContainer"),m.style.cssText="position:relative; height: 100%;width:100%;",t.appendChild(m);let p,u,f;if(C(n.options,"ws")){const{ws:s,esmsg:r,uselnternalSignallingServer:o}=n.options;p=s,u=r,f=o??!1}if(C(n.options,"uri")&&C(n.options,"app")){const{offsetWidth:s,offsetHeight:r}=m;let{uri:o,app:l,token:d}=n.options;o.endsWith("/")||(o+="/");const B=d?`?essstoken=${d}`:"",_=`/${l}/${s??1920}/${r??1080}`+B;console.log(`请求信令服务器: ${o}instance${_}`);const b=await w.promise(fetch(`${o}instance${_}`,{method:"GET"})),E=await w.promise(b.json());if(E&&E.status!=="ok"){y.setStatus("Error"),y.setStatusLog(`信令服务器请求失败 ${E.status}`),this._reconnectEvent.emit(void 0);return}else{console.log(`信令服务器请求成功! ${JSON.stringify(E,void 0," ")}`),await V.sleep(5e3);const{server:F,esmsg:S,instanceId:U,useInternalSignallingServer:T}=E;if(!U){y.setStatus("Error"),y.setStatusLog("检查信令服务器版本,返回数据错误! "),console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"),this._reconnectEvent.emit(void 0);return}p=F,u=S,f=T??!1,y.esssResponse=E}}const c=this.dv(f?new $d(m,p,u,y):new Gd(m,p,u,y));this.d(()=>y.viewer=void 0),this.d(c.errorEvent.don(s=>{const r=`[${s}]:像素流连接错误!`;y.setStatus("Error"),y.setStatusLog(r),this._reconnectEvent.emit(c)})),await w.promise(new Promise(s=>this.d(c.readyEvent.donce(s)))),y.setStatus("Created"),y.setStatusLog("云渲染视口创建成功!"),A=0,h&&clearTimeout(h),h=void 0;const{offsetWidth:a,offsetHeight:i}=m;c.resize(a*window.devicePixelRatio,i*window.devicePixelRatio),y.viewer=c,this.d(()=>y.viewer=void 0),this.dv(new of(y,c))}));g.start(),this.d(this._reconnectEvent.don(w=>{h===void 0&&(w&&!w.isDestroyed()&&w.destroy(),y.viewer&&!y.viewer.isDestroyed()&&y.viewer.destroy(),y.viewer=void 0,y.autoReconnect&&(y.setStatus("Reconnecting"),y.setStatusLog("正在尝试重新连接..."),A=A+5e3>3e4?3e4:A+5e3,console.warn(`间隔:${A/1e3}s,正在尝试重新连接...`),h=window.setTimeout(()=>{g.restart()},A)))})),this.d(g.errorEvent.don(w=>{y.setStatus("Error"),y.setStatusLog("云渲染视口创建失败!"),console.warn("云渲染视口创建失败!",w),this._reconnectEvent.emit(void 0)}))}else if(C(n.options,"project")){const m=n,g=m.options.project,w=m.options.baseUrl;y.setStatus("Creating"),y.setStatusLog("下载编译中...");const p=this.dv(new rf(t,g,w,y));y.viewer=p,this.d(()=>y.viewer=void 0)}else y.setStatus("Error"),y.setStatusLog("视口创建失败!"),console.warn("视口创建失败: 参数错误!")}}const Tt=class Tt extends j.ESViewer{constructor(t){super(t);z(this,"_viewer",this.dv(V.react(void 0)));z(this,"_esssResponse");z(this,"_speechRecognition",this.dv(new V.Event));z(this,"_propChanged",this.dv(new V.Event));z(this,"_objectEvent",this.dv(new V.Event));z(this,"_widgetEvent",this.dv(new V.Event));z(this,"_customMessage",this.dv(new V.Event));z(this,"_statusUpdateEvent",this.dv(new V.Event));z(this,"_statusUpdateEventdon",(()=>{this.d(this.statusUpdateEvent.don(t=>{this._statusInfo.fps=t.FPS??0,this._statusInfo.length=t.length??0,this._statusInfo.position=t.position??[0,0,0],this._statusInfo.rotation=t.rotation??[0,0,0]}))})());if(t.type!=="ESUeViewer")throw new Error("option.type must be ESUeViewer");const n=t;this.d(this._viewer.changed.don(()=>{this.viewerChanged.emit(this.viewer)})),this.dv(new V.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new af(this.subContainer,n,this)}))}get defaultProps(){return Tt.createDefaultProps()}set viewer(t){this._viewer.value=t}get viewer(){return this._viewer.value}get esssResponse(){return this._esssResponse}set esssResponse(t){this._esssResponse=t}get speechRecognition(){return this._speechRecognition}get propChanged(){return this._propChanged}get objectEvent(){return this._objectEvent}get widgetEvent(){return this._widgetEvent}get customMessage(){return this._customMessage}get statusUpdateEvent(){return this._statusUpdateEvent}async uePositionToLonLatAlt(t){if(!this.viewer){console.warn("UEPositionToLonLatAlt: viewer is undefined");return}return await tc(this.viewer,t)}async changeNavigationMode(t){if(!this.viewer){console.warn("ChangeNavigationMode: viewer is undefined");return}const n=await ot(this.viewer,t);return n&&!n.error&&(this._navigationMode.value=t.mode),n}async resetWithCurrentCamera(t){if(!this.viewer){console.warn("resetWithCurrentCamera: viewer is undefined");return}return await li(this.viewer,t)}async getAllSocketNamesByActorTag(t){if(!this.viewer){console.warn("GetAllSocketNamesByActorTag: viewer is undefined");return}return await rc(this.viewer,t)}async getBoundSphere(t){if(!this.viewer){console.warn("getBoundSphere: viewer is undefined");return}return await nc(this.viewer,t)}async getBoundSphereWithChildren(t){if(!this.viewer){console.warn("getBoundSphereWithChildren: viewer is undefined");return}return await ic(this.viewer,t)}async getStrokeMaterialParamInfo(t){if(!this.viewer){console.warn("GetStrokeMaterialParamInfo: viewer is undefined");return}return await oc(this.viewer,t)}async getFillMaterialParamInfo(t){if(!this.viewer){console.warn("getFillMaterialParamInfo: viewer is undefined");return}return await sc(this.viewer,t)}async getGlobalProperty(t){if(!this.viewer){console.warn("getGlobalProperty: viewer is undefined");return}return await ac(this.viewer,t)}async getObjectByInfo(t){if(!this.viewer){console.warn("GetObjectByInfo: viewer is undefined");return}return await cc(this.viewer,t)}async defaultCameraFlyIn(t=1){if(!this.viewer){console.warn("DefaultCameraFlyIn: viewer is undefined");return}return await Oa(this.viewer,t)}async startVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await Ma(this.viewer)}async stopVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await Ha(this.viewer)}async mountPakFiles(t){if(!this.viewer){console.warn("mountPakFiles:viewer is undefined");return}return await La(this.viewer,t)}async generateMemReport(){if(!this.viewer){console.warn("generateMemReport:viewer is undefined");return}return await Ra(this.viewer)}async quit(){if(!this.viewer){console.warn("Quit: viewer is undefined");return}return await za(this.viewer)}async bindActorByTag(t,n){if(!this.viewer){console.warn("BindActorByTag: viewer is undefined");return}return await lc(this.viewer,t,n)}async restoreOriginalScene(){if(!this.viewer){console.warn("RestoreOriginalScene: viewer is undefined");return}return await uc(this.viewer)}async unBindActorByID(t){if(!this.viewer){console.warn("UnBindActorByID: viewer is undefined");return}return await dc(this.viewer,t)}async unBindActorByTag(t){if(!this.viewer){console.warn("UnBindActorByTag: viewer is undefined");return}return await fc(this.viewer,t)}async createActorByClass(t,n){if(!this.viewer){console.warn("CreateActorByClass: viewer is undefined");return}return await hc(this.viewer,t,n)}async bind3DTilesetByTag(t,n){if(!this.viewer){console.warn("Bind3DTilesetByTag: viewer is undefined");return}return await pc(this.viewer,t,n)}async unBind3DTilesetByTag(t){if(!this.viewer){console.warn("UnBind3DTilesetByTag: viewer is undefined");return}return await gc(this.viewer,t)}async unBind3DTilesetById(t){if(!this.viewer){console.warn("UnBind3DTilesetById: viewer is undefined");return}return await vc(this.viewer,t)}async bindImageryByTag(t,n,y){if(!this.viewer){console.warn("BindImageryByTag: viewer is undefined");return}return await yc(this.viewer,t,n,y)}async unBindImageryByTag(t,n){if(!this.viewer){console.warn("UnBindImageryByTag: viewer is undefined");return}return await mc(this.viewer,t,n)}async unBindImageryById(t){if(!this.viewer){console.warn("UnBindImageryById: viewer is undefined");return}return await wc(this.viewer,t)}async getIdByComponentNameAndHitItem(t,n,y){if(!this.viewer){console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");return}return await Bc(this.viewer,t,n,y)}async getCameraRelativeHeight(t="ECC_Visibility"){if(!this.viewer){console.warn("GetCameraRelativeHeight: viewer is undefined");return}return await Cc(this.viewer,t)}async saveStringToFile(t,n,y){if(!this.viewer){console.warn("SaveStringToFile: viewer is undefined");return}return await bc(this.viewer,t,n,y)}async highlightActorByTag(t,n=!0){if(!this.viewer){console.warn("HighlightActorByTag: viewer is undefined");return}return await _c(this.viewer,t,n)}async sendCustomMessage(t){if(!this.viewer){console.warn("SendCustomMessage: viewer is undefined");return}return await Ec(this.viewer,t)}async getStatus(){if(!this.viewer){console.warn("GetStatus:viewer is undefined");return}return await Fc(this.viewer)}async getTilesetMaterialIDList(){if(!this.viewer){console.warn("GetTilesetMaterialIDList:viewer is undefined");return}return await Tc(this.viewer)}async pick(t,n,y){if(!this.viewer)return;let C=t;if(t&&window.ue&&this.container){const[A,h]=t,{left:m,top:g}=this.container.getBoundingClientRect();C=[m+A,g+h]}return await Ja(this.viewer,C,n,y)}async pickPosition(t){if(!this.viewer)return;let n=t;if(t&&window.ue&&this.container){const[y,C]=t,{left:A,top:h}=this.container.getBoundingClientRect();n=[A+y,h+C]}return await Xa(this.viewer,n)}async flyIn(t,n=[0,0,0],y=1,C="default"){if(!this.viewer)return;const A=await Ar(this.viewer,void 0,t,n,y,C);if(A)return A.endType===0&&console.warn(`flyTo:flyTo is end! endType:${A.endType}`),A.endType===1&&console.warn(`flyTo:飞行中断! endType:${A.endType}`),A}async flyTo(t,n,y="default"){if(!this.viewer)return;const C=await Dt(this.viewer,void 0,void 0,t,n,y);if(C)return C.endType===0&&console.warn(`flyTo:flyTo is end! endType:${C.endType}`),C.endType===1&&console.warn(`flyTo:飞行中断! endType:${C.endType}`),C}flyToBoundingSphere(t,n,y=1){const C=[[t[0],t[1],0],[t[0],t[3],0],[t[2],t[3],0],[t[2],t[1],0]],A=j.getGeoBoundingSphereFromPositions(C);if(!A)return;const{center:h,radius:m}=A,g={distance:n??m,heading:0,pitch:-90,flyDuration:y,hDelta:0,pDelta:0};this.flyTo(g,h)}getCurrentCameraInfo(){const{position:t,rotation:n}=this._statusInfo;return{position:t,rotation:n}}getLengthInPixel(){return this._statusInfo.length}async changeToWalk(t,n=4.2){if(!this.viewer)return;const y={mode:"Walk",position:t,jumpZVelocity:n},C=await ot(this.viewer,y);return C&&!C.error&&(this._navigationMode.value=y.mode),C}async changeToMap(){if(!this.viewer)return;const t={mode:"Map"},n=await ot(this.viewer,t);return n&&!n.error&&(this._navigationMode.value=t.mode),n}async changeToRotateGlobe(t=38,n=1e7,y=60){if(!this.viewer)return;const C={mode:"RotateGlobe",latitude:t,height:n,cycleTime:y},A=await ot(this.viewer,C);return A&&!A.error&&(this._navigationMode.value=C.mode),A}async changeToLine(t,n=10,y=10,C=!0,A=10,h="auto"){if(!this.viewer)return;const m={mode:"Line",geoLineStringId:t,speed:n,heightOffset:y,loop:C,turnRateDPS:A,lineMode:h},g=await ot(this.viewer,m);return g&&!g.error&&(this._navigationMode.value=m.mode),g}async changeToUserDefined(t){if(!this.viewer)return;const n={mode:"UserDefined",userDefinedPawn:t},y=await ot(this.viewer,n);return y&&!y.error&&(this._navigationMode.value=n.mode),y}async changeToRotatePoint(t,n=5e4,y=60,C=0,A=-30){if(!this.viewer)return;const h={mode:"RotatePoint",position:t,distance:n,orbitPeriod:y,heading:C,pitch:A},m=await ot(this.viewer,h);return m&&!m.error&&(this._navigationMode.value=h.mode),m}async changeToFollow(t,n=0,y=0,C=-30,A=!0){if(!this.viewer)return;const h={mode:"Follow",objectId:t,distance:n,heading:y,pitch:C,relativeRotation:A},m=await ot(this.viewer,h);return m&&!m.error&&(this._navigationMode.value=h.mode),m}getFPS(){return this._statusInfo.fps}async getVersion(){const t=window.g_XE3CopyRights??{};if(!this.viewer)return t;const n=await Ac(this.viewer);return t.esforue=n,t}async getHeightByLonLat(t,n,y="ECC_Visibility"){if(!this.viewer)return null;const C=await Ya(this.viewer,t,n,y);return C&&C.height!==void 0?C.height:null}async getHeightsByLonLats(t,n="ECC_Visibility"){return this.viewer?await $a(this.viewer,t,n):void 0}async capture(t=64,n=64){return this.viewer?await Za(this.viewer,t,n):void 0}async partialCapture(t,n=[64,64]){if(!this.viewer){console.warn("partialCapture:viewer is undefined");return}return await qa(this.viewer,t,n)}async lonLatAltToScreenPosition(t){if(!this.viewer)return;const n=await ec(this.viewer,t);return n&&[n.X,n.Y]}async setGlobalProperty(t){if(this.viewer)return await Wa(this.viewer,t)}async startEditing(t,n,y){y=Object.assign({useKeyToSwitch:!0,callSource:"outer"},y);const C=t.combinationClass?t.getMainClass():t;if(!C||!this.viewer||n==null)return;const A=Array.isArray(n)?[...n]:[n];return C.editingID=`${y.callSource}_${V.createGuid()}`,await Sc(this.viewer,C.id,C.editingID,A,y.useKeyToSwitch)}async stopEditing(){if(this.viewer)return await Qc(this.viewer)}async moveObjects(t){if(!this.viewer)return;const n=[],y=V.createGuid();for(let C=0;C<t.length;C++){const A=t[C],h=A.combinationClass?A.getMainClass():A;h.editingID=y,h&&n.push(h.id)}if(n.length!==0)return await Uc(this.viewer,n,y)}getProperties(){return[...super.getProperties()]}};z(Tt,"type",Tt.register("ESUeViewer",Tt)),z(Tt,"defaults",{...Nu});let st=Tt;(v=>{v.createDefaultProps=()=>({...j.ESViewer.createDefaultProps(),...Ss(),resolutionScale:1,autoReconnect:!1,propChangedListening:void 0,objectEventListening:void 0,widgetEventListening:void 0,speechRecognitionListening:void 0,customMessageListening:void 0})})(st||(st={})),V.extendClassProps(st.prototype,st.createDefaultProps);class _t extends j.EngineObject{constructor(e,t){super(e,t);const n=t.viewer;if(n&&(e.combinationClass||this.d(this.createdEvent.don(()=>{const y=this.constructor.propValFuncs,C=e.defaultProps,A=Object.keys(C).filter(u=>y[u]!==null);A.push(...this.constructor.forceUeUpdateProps);const h=e.constructor.defaults,m={val:{}},g=[];for(let u of A){const f=u+"Changed",c=e[f];g.push(c);const a=y[u];if(a===null)throw console.error("vf === null error"),new Error("vf === null error");const i=()=>{const s=e[u]??h[u];let r=a?a(s,this,t,e):s;if(r===void 0){console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${u} 对象名:${e.name} 对象id: ${e.id}`);return}m.val[u]=r};i(),this.d(c.don(i))}const w=()=>{n.callUeFunc({f:"update",p:{id:e.id,...m.val}}),m.val={}},p=this.dv(V.createNextAnimateFrameEvent(...g));this.d(p.don(w)),this.d(e.createdEvent.don(w)),this.d(e.flushEvent.don(()=>p.flush()))})),!e.combinationClass)){let y=!1;this.d(()=>{y&&ci(n,e.id)}),n.callUeFunc({f:"create",p:{type:e.typeName,id:e.id}}).then(()=>{y=!0,e.createdEvent.emit()}).catch(C=>console.error(C))}}}z(_t,"propValFuncs",{ref:null,devTags:null,extras:null,execOnceFuncStr:null,updateFuncStr:null,toDestroyFuncStr:null}),z(_t,"forceUeUpdateProps",[]);class Le extends _t{constructor(e,t){super(e,t);const n=t.viewer;n&&(this.d(e.flyToEvent.don(y=>{Dt(n,e.id,y)})),this.d(e.flyInEvent.don(y=>{var C,A;Ar(n,e.id,(C=e.flyInParam)==null?void 0:C.position,(A=e.flyInParam)==null?void 0:A.rotation,y??1)})),this.d(e.calcFlyToParamEvent.don(()=>{kt(n,e.id)})),this.d(e.calcFlyInParamEvent.don(()=>{const y=t.getCurrentCameraInfo();if(!y)return;const{position:C,rotation:A}=y;e.flyInParam={position:C,rotation:A,flyDuration:1}})),this.d(t.propChanged.don(y=>{y.objId===e.id&&Object.keys(y.props).forEach(C=>{const A=y.props[C]===null?void 0:y.props[C];e[C]=A})})))}}class de extends Le{constructor(e,t){super(e,t);const n=t.viewer;if(!n)return;const y=()=>{e.editing||n.callUeFunc({f:"update",p:{id:e.id,position:e.position,rotation:e.rotation}})},C=this.dv(V.createNextAnimateFrameEvent(e.positionChanged,e.rotationChanged,e.editingChanged));this.d(C.don(()=>{setTimeout(y,0)})),this.d(e.smoothMoveEvent.don((m,g)=>{YA(n,e.id,m,g)})),this.d(e.smoothMoveWithRotationEvent.don((m,g,w)=>{zA(n,e.id,m,g,w)})),this.d(e.smoothMoveOnGroundEvent.don((m,g,w,p)=>{JA(n,e.id,m,g,p,w)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((m,g,w,p,u)=>{XA(n,e.id,m,g,w,p,u)})),this.d(e.smoothMoveKeepPitchEvent.don(async(m,g)=>{const w=await n.callUeFunc({f:"SmoothMoveKeepPitch",p:{id:e.id,Destination:m,Time:g}});w.error&&console.error("SmoothMoveKeepPitch:",w.error)})),this.d(e.automaticLandingEvent.don(m=>{const g=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(w=>{w!==null&&(e.position=[...g,w],e.collision=m)})}));const A=async(m,g,w,p)=>{const{viewer:u}=m;if(!u){console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");return}const f=await u.callUeFunc({f:"SmoothMoveRelatively",p:{id:g,RelativePosition:w,Time:p}});return f.error&&console.error("SmoothMoveRelatively:",f.error),f};this.d(e.smoothMoveRelativelyEvent.don((m,g)=>{A(t,e.id,m,g)}));const h=async(m,g,w,p,u)=>{const{viewer:f}=m;if(!f){console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");return}const c=await f.callUeFunc({f:"SmoothMoveRelativelyWithRotation",p:{id:g,RelativePosition:w,NewRotation:p,Time:u}});return c.error&&console.error("SmoothMoveRelativelyWithRotation:",c.error),c};this.d(e.smoothMoveRelativelyWithRotationEvent.don((m,g,w)=>{h(t,e.id,m,g,w)}))}}class Re extends Le{constructor(e,t){super(e,t);const n=t.viewer;if(!n)return;const y=()=>{e.editing||n.callUeFunc({f:"update",p:{id:e.id,points:e.points}})},C=this.dv(V.createNextAnimateFrameEvent(e.pointsChanged,e.editingChanged));this.d(C.don(()=>{setTimeout(y,0)}))}}z(Re,"propValFuncs",{...Le.propValFuncs,pointStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),strokeStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),fillStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})})});class Ze extends de{constructor(e,t){super(e,t),t.viewer&&this.d(t.widgetEvent.don(y=>{if(y.objId!==e.id)return;const{type:C,add:A}=y;e.widgetEvent.emit({type:C,add:A})}))}}class di extends de{constructor(e,t){super(e,t),t.viewer}}z(di,"propValFuncs",{...de.propValFuncs,pointStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),strokeStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),fillStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})})});class $A extends di{constructor(e,t){super(e,t),t.viewer}}const Pc=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是3dTileset,无法绑定";default:return"未知错误"}},Fr=class Fr extends j.EngineObject{constructor(t,n){super(t,n);z(this,"_styleColor",this.dv(V.react([])));z(this,"_styleVisable",this.dv(V.react([])));const y=n.viewer;if(!y){console.warn("UeES3DTileset: viewer is undefined!");return}let C,A;const h=async()=>{!C&&!A||await y.callUeFunc({f:"update",p:{id:t.id,url:t.url,show:t.show,collision:t.collision,allowPicking:t.allowPicking,flyToParam:t.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:t.flyInParam??j.ESVisualObject.defaults.flyInParam,highlightID:t.highlightID,highlightColor:t.highlightColor,highlight:t.highlight,materialMode:t.materialMode,maximumScreenSpaceError:t.maximumScreenSpaceError,colorMode:Reflect.has(t,"colorMode")?t.colorMode:void 0,offset:t.offset,rotation:t.rotation,cacheBytes:t.cacheBytes,colorBlendMode:t.colorBlendMode,materialOverrideMap:t.materialOverrideMap}})},m=this.dv(V.createNextAnimateFrameEvent(t.urlChanged,t.showChanged,t.flyToParamChanged,t.flyInParamChanged,t.collisionChanged,t.allowPickingChanged,t.highlightIDChanged,t.highlightColorChanged,t.highlightChanged,t.materialModeChanged,t.maximumScreenSpaceErrorChanged,t.offsetChanged,t.rotationChanged,t.cacheBytesChanged,t.colorBlendModeChanged,t.materialOverrideMapChanged));h(),this.d(m.don(h)),Reflect.has(t,"colorMode")&&this.d(t.colorModeChanged.don(()=>h()));const g=this.dv(V.react(void 0));{const p=this.dv(V.createNextAnimateFrameEvent(t.actorTagChanged,t.urlChanged)),u=()=>{t.actorTag?g.value={type:"ActorTag",actorTag:t.actorTag}:t.url?g.value={type:"CreatedUrl",url:t.url}:g.value=void 0,t.editing=!1};u(),this.d(p.don(u))}const w=async()=>{const{id:p}=t;if(C!==void 0){C=void 0;try{const u=await n.unBind3DTilesetById(p);if(!u)return;if(u.error!==""){console.warn(`UeES3DTileset UnBind3DTilesetById: ${u.error}`);return}}catch(u){console.warn(`UeES3DTileset UnBind3DTilesetById: ${u}`);return}}if(A!==void 0){A=void 0;try{const u=await y.callUeFunc({f:"destroy",p:{id:p}});if(!u)return;if(u.error!==""){console.warn(`UeES3DTileset Destroy: ${u.error}`);return}}catch(u){console.warn(`UeES3DTileset Destroy: ${u}`);return}}};this.d(()=>{w()});{const p=this.dv(V.createProcessingFromAsyncFunc(async f=>{if(g.value===void 0){await f.promise(w());return}if(g.value.type==="ActorTag"){const{actorTag:c}=g.value;if(C!==c&&await f.promise(w()),C!==void 0||c===void 0)return;try{C=c;const a=await f.promise(n.bind3DTilesetByTag(t.id,c));if(!a)return;if(a.error!==""){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${a.error}`);return}if(a.re.type!==0)if(a.re.type===1)console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Pc(a.re.type)}`);else{console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Pc(a.re.type)}`);return}}catch(a){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${a}`);return}}else if(g.value.type==="CreatedUrl"){const{url:c}=g.value;if(c!==A&&await w(),A!==void 0||c===void 0)return;try{A=c;const a=await f.promise(y.callUeFunc({f:"create",p:{type:t.typeName,id:t.id}}));if(!a)return;if(a.error!==""){console.warn(`UeES3DTileset create: ${a.error}`);return}}catch(a){console.warn(`UeES3DTileset create: ${a}`);return}}await f.promise(h())})),u=async()=>{p.restart()};u(),this.d(g.changed.don(u))}this.d(t.refreshTilesetEvent.don(()=>{xa(y,t.id)})),this.d(t.flyToEvent.don(async(p,u)=>{if(!C&&!A)return;const f=await Dt(y,t.id,p);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),t.flyOverEvent.emit(u,c,n)})),this.d(t.calcFlyToParamEvent.don(()=>{!C&&!A||kt(y,t.id)})),this.d(t.calcFlyInParamEvent.don(async()=>{if(!C&&!A||!n.actived)return;const p=await n.getCurrentCameraInfo();if(!p)return;const{position:u,rotation:f}=p;t.flyInParam={position:u,rotation:f,flyDuration:1}})),this.d(n.propChanged.don(p=>{!C&&!A||p.objId===t.id&&Object.keys(p.props).forEach(u=>{const f=p.props[u]===null?void 0:p.props[u];t[u]=f})})),this.d(n.objectEvent.don(p=>{!C&&!A||p.id!==t.id||p.type!=="3DTilesetReady"||t.tilesetReady.emit(p.p)}));{const p=async(a,i)=>{if(!C&&!A)return;const s=await y.callUeFunc({f:"SetFeatureColor",p:{id:t.id,featureName:a,json:i}});if(s&&s.error!==""){console.warn(`UeES3DTileset SetFeatureColor: ${s.error}`);return}},u=async(a,i)=>{if(!C&&!A)return;const s=await y.callUeFunc({f:"SetFeatureVisable",p:{id:t.id,featureName:a,json:i}});if(s&&s.error!==""){console.warn(`UeES3DTileset SetFeatureVisable: ${s.error}`);return}},f=async()=>{if(!C&&!A)return;const a=await y.callUeFunc({f:"ResetFeatureStyle",p:{id:t.id}});if(a&&a.error!==""){console.warn(`UeES3DTileset ResetFeatureStyle: ${a.error}`);return}},c=async a=>{if(!C&&!A)return;const i=await y.callUeFunc({f:"SetFeatureStyle",p:{id:t.id,json:a}});if(i&&i.error!==""){console.warn(`UeES3DTileset SetFeatureStyle: ${i.error}`);return}};this.d(t.setFeatureColorEvent.don((a,i)=>{const s=[...this.styleColor,...i];this.styleColor=[...s],p(a,s)})),this.d(t.setFeatureVisableEvent.don((a,i)=>{const s=[...this.styleVisable,...i];this.styleVisable=[...s],u(a,s)})),this.d(t.resetFeatureStyleEvent.don(()=>{f(),this.styleColor=[],this.styleVisable=[]})),this.d(t.setFeatureStyleEvent.don(a=>{c(a)}))}{const p=async()=>{if(!C&&!A){t._featureTableResultEvent.emit(void 0);return}try{const u=await y.callUeFunc({f:"GetFeatureTable",p:{id:t.id}});u.error!==""&&console.warn(`UeES3DTileset GetFeatureTable: ${u.error}`),t._featureTableResultEvent.emit(u.re.table)}catch(u){console.warn(`UeES3DTileset GetFeatureTable: ${u}`),t._featureTableResultEvent.emit(void 0)}};this.d(t.getFeatureTableEvent.don(()=>{p()}))}{const p=async()=>{if(!C&&!A){t.getMaterialNameListEvent.emit(void 0);return}try{const u=await y.callUeFunc({f:"GetMaterialNameList",p:{id:t.id}});u.error!==""&&console.warn(`UeES3DTileset GetMaterialNameList: ${u.error}`),t.getMaterialNameListEvent.emit(u.re.materialNameList)}catch(u){console.warn(`UeES3DTileset GetMaterialNameList: ${u}`),t.getMaterialNameListEvent.emit(void 0)}};this.ad(t.getMaterialNameListEvent.don(u=>{u=="start"&&p()}))}}get styleColor(){return this._styleColor.value}set styleColor(t){this._styleColor.value=t}get styleVisable(){return this._styleVisable.value}set styleVisable(t){this._styleVisable.value=t}};z(Fr,"type",Fr.register("ESUeViewer",j.ES3DTileset.type,Fr));let ZA=Fr;const xc=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag对应的Actor是地形,无法绑定";case 4:return"没搜索到ComponentTag,无法绑定";default:return"未知错误"}},Sr=class Sr extends j.EngineObject{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}let y,C;const A=this.dv(V.react(void 0)),h=this.ad(V.reactJson(""));{const p=()=>{if(typeof e.url=="string")h.value=j.ESSceneObject.context.getStrFromEnv(e.url);else{const u=e.url;u.url=j.ESSceneObject.context.getStrFromEnv(u.url),h.value=u}};p(),this.ad(e.urlChanged.don(p))}const m=async()=>{!y&&!C||await n.callUeFunc({f:"update",p:{id:e.id,show:e.show??!0,rectangle:e.rectangle??[-180,-90,180,90],collision:e.collision??!0,allowPicking:e.allowPicking??!1,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,url:h.value??"",zIndex:e.zIndex??0,maximumLevel:e.maximumLevel??j.ESImageryLayer.defaults.maximumLevel,minimumLevel:e.minimumLevel??j.ESImageryLayer.defaults.minimumLevel,options:e.options??j.ESImageryLayer.defaults.options,targetID:e.targetID??j.ESImageryLayer.defaults.targetID,opacity:e.opacity??j.ESImageryLayer.defaults.opacity}})},g=this.dv(V.createNextAnimateFrameEvent(e.showChanged,h.changed,e.flyToParamChanged,e.flyInParamChanged,e.zIndexChanged,e.collisionChanged,e.allowPickingChanged,e.maximumLevelChanged,e.minimumLevelChanged,e.rectangleChanged,e.optionsChanged,e.targetIDChanged,e.opacityChanged));this.d(g.don(m));const w=async()=>{const{id:p}=e;if(y!==void 0){y=void 0;try{const u=await t.unBindImageryById(p);if(!u)return;if(u.error!==""){console.warn(`UeESImageryLayer UnImageryByID: ${u.error}`);return}}catch(u){console.warn(`UeESImageryLayer UnImageryByID promise: ${u}`);return}}if(C!==void 0){C=void 0;try{const u=await n.callUeFunc({f:"destroy",p:{id:p,test:"UeESImageryLayer"}});if(!u)return;if(u.error!==""){console.warn(`UeESImageryLayer Destroy: ${u.error}`);return}}catch(u){console.warn(`UeESImageryLayer Destroy promise: ${u}`);return}}};this.d(()=>{w()});{const p=this.dv(V.createProcessingFromAsyncFunc(async f=>{if(A.value===void 0){await f.promise(w());return}if(A.value.type==="ActorTag"){const{actorTag:c,componentTag:a}=A.value;if(y!==c&&await f.promise(w()),y!==void 0||c===void 0)return;try{y=c;const i=await f.promise(t.bindImageryByTag(e.id,c,a));if(!i)return;if(i.error!==""){console.warn(`ESImageryLayer BindImageryByTag: ${i.error}`);return}if(i.re.type!==0)if(i.re.type===1)console.warn(`ESImageryLayer BindImageryByTag: ${xc(i.re.type)}`);else{console.warn(`ESImageryLayer BindImageryByTag: ${xc(i.re.type)}`);return}}catch(i){console.warn(`ESImageryLayer BindImageryByTag promise: ${i}`);return}}else if(A.value.type==="CreatedUrl"){const{url:c}=A.value;if(c!==C&&await f.promise(w()),C!==void 0||c===void 0)return;try{C=c;const a=await f.promise(n.callUeFunc({f:"create",p:{type:"ESImageryLayer",id:e.id}}));if(!a)return;if(a.error!==""){console.warn(`ESImageryLayer create: ${a.error}`);return}}catch{console.warn("ESImageryLayer create: create promise error");return}}await f.promise(m())})),u=async()=>{p.restart()};u(),this.d(A.changed.don(u))}{const p=this.dv(V.createNextAnimateFrameEvent(e.actorTagChanged,h.changed,e.componentTagChanged)),u=()=>{e.actorTag&&e.componentTag?A.value={type:"ActorTag",actorTag:e.actorTag,componentTag:e.componentTag}:h.value?A.value={type:"CreatedUrl",url:h.value}:A.value=void 0};u(),this.d(p.don(u))}this.d(e.flyToEvent.don(async(p,u)=>{if(!y&&!C)return;const f=await Dt(n,e.id,p);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),e.flyOverEvent.emit(u,c,t)})),this.d(e.flyInEvent.don(async(p,u)=>{var a,i;if(!y&&!C)return;const f=await Ar(n,e.id,(a=e.flyInParam)==null?void 0:a.position,(i=e.flyInParam)==null?void 0:i.rotation,p??1);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),e.flyOverEvent.emit(u,c,t)})),this.d(e.calcFlyToParamEvent.don(()=>{!y&&!C||kt(n,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const p=await t.getCurrentCameraInfo();if(!p)return;const{position:u,rotation:f}=p;e.flyInParam={position:u,rotation:f,flyDuration:1}})),this.d(t.propChanged.don(p=>{!y&&!C||p.objId===e.id&&Object.keys(p.props).forEach(u=>{const f=p.props[u]===null?void 0:p.props[u];e[u]=f})}))}};z(Sr,"type",Sr.register("ESUeViewer",j.ESImageryLayer.type,Sr));let fi=Sr;const It=class It extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(It,"type",It.register("ESUeViewer",j.ESTerrainLayer.type,It)),z(It,"forceUeUpdateProps",[...Le.forceUeUpdateProps,"url"]),z(It,"propValFuncs",{...Le.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e),czmMaxzoom:null,czmMinzoom:null});let hi=It;const Qr=class Qr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Qr,"type",Qr.register("ESUeViewer",j.ESAlarm.type,Qr));let pi=Qr;const Ur=class Ur extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Ur,"type",Ur.register("ESUeViewer",j.ESApertureEffect.type,Ur));let gi=Ur;const Tr=class Tr extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Tr,"type",Tr.register("ESUeViewer",j.ESGeoPolygon.type,Tr));let Ne=Tr;const Ir=class Ir extends Ne{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}const y=()=>{let A=j.ESAreaMeasurement.defaults.fillStyle;try{A={...e.fillStyle??j.ESAreaMeasurement.defaults.fillStyle}}catch(h){console.error("ESAreaMeasurement fillStyle 属性类型错误!",h),A={...j.ESAreaMeasurement.defaults.fillStyle}}A.materialParams=JSON.stringify(A.materialParams),n.callUeFunc({f:"update",p:{id:e.id,stroked:e.stroked??j.ESAreaMeasurement.defaults.stroked,fillStyle:A,filled:e.filled??j.ESAreaMeasurement.defaults.filled}}),console.log(A)},C=this.dv(V.createNextAnimateFrameEvent(e.fillStyleChanged,e.strokedChanged,e.filledChanged));this.d(C.don(y)),this.d(e.createdEvent.don(y))}};z(Ir,"type",Ir.register("ESUeViewer",j.ESAreaMeasurement.type,Ir));let vi=Ir;const Pr=class Pr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Pr,"type",Pr.register("ESUeViewer",j.ESBlastParticleSystem.type,Pr));let yi=Pr;const xr=class xr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(xr,"type",xr.register("ESUeViewer",j.ESBoxClipping.type,xr));let mi=xr;const Or=class Or extends de{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.dispose(e.flyInEvent.don((y,C,A="default")=>{const{id:h,duration:m,position:g,rotation:w}=e;Ar(n,h,g,w,m??y,A)})),this.dispose(e.resetWithCurrentCameraEvent.don(()=>{li(n,e.id)})),this.dispose(e.captureEvent.don((y,C)=>{t.capture(y,C).then(h=>{h&&(e.thumbnail=h)})}))}};z(Or,"type",Or.register("ESUeViewer",j.ESCameraView.type,Or));let wi=Or;const Mr=class Mr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Mr,"type",Mr.register("ESUeViewer",j.ESCameraVisibleRange.type,Mr));let Bi=Mr;const Hr=class Hr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Hr,"type",Hr.register("ESUeViewer",j.ESCar.type,Hr));let Ci=Hr;const Lr=class Lr extends Re{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}const y=()=>{let A=j.ESClassification.defaults.fillStyle;try{A={...e.fillStyle??j.ESClassification.defaults.fillStyle}}catch(h){console.error("ESClassification fillStyle 属性类型错误!",h),A={...j.ESClassification.defaults.fillStyle}}A.materialParams=JSON.stringify(A.materialParams),n.callUeFunc({f:"update",p:{id:e.id,filled:e.filled??j.ESClassification.defaults.filled,fillStyle:A}})},C=this.dv(V.createNextAnimateFrameEvent(e.fillStyleChanged,e.filledChanged));this.d(C.don(y)),this.d(e.createdEvent.don(y))}};z(Lr,"type",Lr.register("ESUeViewer",j.ESClassification.type,Lr));let bi=Lr;const Rr=class Rr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(Rr,"type",Rr.register("ESUeViewer",j.ESClippingPlane.type,Rr));let _i=Rr;const Dr=class Dr extends de{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}const y=this.ad(V.reactJson(""));{const h=()=>{if(typeof e.url=="string")y.value=j.ESSceneObject.context.getStrFromEnv(e.url??j.ESDataMesh.defaults.url);else{const m=e.url;m.url=j.ESSceneObject.context.getStrFromEnv(m.url??j.ESDataMesh.defaults.url),y.value=m}};h(),this.ad(e.urlChanged.don(h))}const C=()=>{const h=e.colorStops??j.ESDataMesh.defaults.colorStops;n.callUeFunc({f:"update",p:{id:e.id,url:y.value??j.ESDataMesh.defaults.url,currentTime:e.currentTime??j.ESDataMesh.defaults.currentTime,minPropValue:e.minPropValue??j.ESDataMesh.defaults.minPropValue,maxPropValue:e.maxPropValue??j.ESDataMesh.defaults.maxPropValue,colorStops:JSON.stringify(h)}})},A=this.dv(V.createNextAnimateFrameEvent(y.changed,e.currentTimeChanged,e.minPropValueChanged,e.maxPropValueChanged,e.colorStopsChanged));this.d(A.don(C)),this.d(e.createdEvent.don(C))}};z(Dr,"type",Dr.register("ESUeViewer",j.ESDataMesh.type,Dr));let Ei=Dr;const kr=class kr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(kr,"type",kr.register("ESUeViewer",j.ESDatasmithRuntimeModel.type,kr));let Fi=kr;const Kr=class Kr extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Kr,"type",Kr.register("ESUeViewer",j.ESDirectionMeasurement.type,Kr));let Si=Kr;const Nr=class Nr extends Re{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}const y=()=>{let A;try{A={...e.strokeStyle??j.ESDistanceMeasurement.defaults.strokeStyle}}catch(h){console.error("ESDistanceMeasurement strokeStyle 属性类型错误!",h),A={...j.ESDistanceMeasurement.defaults.strokeStyle}}n.callUeFunc({f:"update",p:{id:e.id,strokeStyle:A}})},C=this.dv(V.createNextAnimateFrameEvent(e.strokeStyleChanged));this.d(C.don(y)),this.d(e.createdEvent.don(y))}};z(Nr,"type",Nr.register("ESUeViewer",j.ESDistanceMeasurement.type,Nr));let Qi=Nr;const Vr=class Vr extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Vr,"type",Vr.register("ESUeViewer",j.ESLocalPolygon.type,Vr));let qA=Vr;const Gr=class Gr extends qA{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Gr,"type",Gr.register("ESUeViewer",j.ESDynamicWater.type,Gr));let Ui=Gr;const jr=class jr extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(t.widgetEvent.don(y=>{if(y.objId!==e.id)return;const{type:C,properties:A}=y;e.widgetEvent.emit({type:C,properties:A})}))}};z(jr,"type",jr.register("ESUeViewer",j.ESEntityCluster.type,jr));let Ti=jr;const Wr=class Wr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Wr,"type",Wr.register("ESUeViewer",j.ESExcavate.type,Wr));let Ii=Wr;const zr=class zr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(zr,"type",zr.register("ESUeViewer",j.ESFireParticleSystem.type,zr));let Pi=zr;const Jr=class Jr extends Le{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}const y=this.ad(V.reactJson(""));{const h=()=>{if(typeof e.url=="string")y.value=j.ESSceneObject.context.getStrFromEnv(e.url);else{const m=e.url;m.url=j.ESSceneObject.context.getStrFromEnv(m.url),y.value=m}};h(),this.ad(e.urlChanged.don(h))}const C=()=>{n.callUeFunc({f:"update",p:{id:e.id,url:y.value??j.ESForestTileset.defaults.url,treeTypes:e.treeTypes??j.ESForestTileset.defaults.treeTypes,xiaoBanWidget:e.xiaoBanWidget??j.ESForestTileset.defaults.xiaoBanWidgetDefault,youShiSZ:e.youShiSZ??j.ESForestTileset.defaults.youShiSZ,diLei:e.diLei??j.ESForestTileset.defaults.diLei,senLinLB:e.senLinLB??j.ESForestTileset.defaults.senLinLB,labelMaterial:e.labelMaterial??j.ESForestTileset.defaults.labelMaterial,heightOffset:e.heightOffset??j.ESForestTileset.defaults.heightOffset}})},A=this.dv(V.createNextAnimateFrameEvent(y.changed,e.treeTypesChanged,e.xiaoBanWidgetChanged,e.youShiSZChanged,e.diLeiChanged,e.senLinLBChanged,e.labelMaterialChanged,e.heightOffsetChanged));this.d(A.don(C)),this.d(e.createdEvent.don(C))}};z(Jr,"type",Jr.register("ESUeViewer",j.ESForestTileset.type,Jr));let xi=Jr;/*!
308
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
309
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
310
+ * Released under MIT License
311
+ *//*! *****************************************************************************
312
+ Copyright (c) Microsoft Corporation.
313
+
314
+ Permission to use, copy, modify, and/or distribute this software for any
315
+ purpose with or without fee is hereby granted.
316
+
317
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
318
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
319
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
320
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
321
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
322
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
323
+ PERFORMANCE OF THIS SOFTWARE.
324
+ ***************************************************************************** */var Oi=function(v,e){return Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var y in n)Object.prototype.hasOwnProperty.call(n,y)&&(t[y]=n[y])},Oi(v,e)};function Xe(v,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Oi(v,e);function t(){this.constructor=v}v.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Mi=function(){return Mi=Object.assign||function(e){for(var t,n=1,y=arguments.length;n<y;n++){t=arguments[n];for(var C in t)Object.prototype.hasOwnProperty.call(t,C)&&(e[C]=t[C])}return e},Mi.apply(this,arguments)};function De(v,e,t,n){function y(C){return C instanceof t?C:new t(function(A){A(C)})}return new(t||(t=Promise))(function(C,A){function h(w){try{g(n.next(w))}catch(p){A(p)}}function m(w){try{g(n.throw(w))}catch(p){A(p)}}function g(w){w.done?C(w.value):y(w.value).then(h,m)}g((n=n.apply(v,[])).next())})}function Pe(v,e){var t={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},n,y,C,A;return A={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function h(g){return function(w){return m([g,w])}}function m(g){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,y&&(C=g[0]&2?y.return:g[0]?y.throw||((C=y.return)&&C.call(y),0):y.next)&&!(C=C.call(y,g[1])).done)return C;switch(y=0,C&&(g=[g[0]&2,C.value]),g[0]){case 0:case 1:C=g;break;case 4:return t.label++,{value:g[1],done:!1};case 5:t.label++,y=g[1],g=[0];continue;case 7:g=t.ops.pop(),t.trys.pop();continue;default:if(C=t.trys,!(C=C.length>0&&C[C.length-1])&&(g[0]===6||g[0]===2)){t=0;continue}if(g[0]===3&&(!C||g[1]>C[0]&&g[1]<C[3])){t.label=g[1];break}if(g[0]===6&&t.label<C[1]){t.label=C[1],C=g;break}if(C&&t.label<C[2]){t.label=C[2],t.ops.push(g);break}C[2]&&t.ops.pop(),t.trys.pop();continue}g=e.call(v,t)}catch(w){g=[6,w],y=0}finally{n=C=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}}function en(v,e,t){if(arguments.length===2)for(var n=0,y=e.length,C;n<y;n++)(C||!(n in e))&&(C||(C=Array.prototype.slice.call(e,0,n)),C[n]=e[n]);return v.concat(C||e)}for(var at=function(){function v(e,t,n,y){this.left=e,this.top=t,this.width=n,this.height=y}return v.prototype.add=function(e,t,n,y){return new v(this.left+e,this.top+t,this.width+n,this.height+y)},v.fromClientRect=function(e,t){return new v(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},v.fromDOMRectList=function(e,t){var n=Array.from(t).find(function(y){return y.width!==0});return n?new v(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):v.EMPTY},v.EMPTY=new v(0,0,0,0),v}(),tn=function(v,e){return at.fromClientRect(v,e.getBoundingClientRect())},cf=function(v){var e=v.body,t=v.documentElement;if(!e||!t)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),y=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new at(0,0,n,y)},rn=function(v){for(var e=[],t=0,n=v.length;t<n;){var y=v.charCodeAt(t++);if(y>=55296&&y<=56319&&t<n){var C=v.charCodeAt(t++);(C&64512)===56320?e.push(((y&1023)<<10)+(C&1023)+65536):(e.push(y),t--)}else e.push(y)}return e},be=function(){for(var v=[],e=0;e<arguments.length;e++)v[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var t=v.length;if(!t)return"";for(var n=[],y=-1,C="";++y<t;){var A=v[y];A<=65535?n.push(A):(A-=65536,n.push((A>>10)+55296,A%1024+56320)),(y+1===t||n.length>16384)&&(C+=String.fromCharCode.apply(String,n),n.length=0)}return C},Oc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lf=typeof Uint8Array>"u"?[]:new Uint8Array(256),An=0;An<Oc.length;An++)lf[Oc.charCodeAt(An)]=An;for(var Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ir=typeof Uint8Array>"u"?[]:new Uint8Array(256),nn=0;nn<Mc.length;nn++)ir[Mc.charCodeAt(nn)]=nn;for(var uf=function(v){var e=v.length*.75,t=v.length,n,y=0,C,A,h,m;v[v.length-1]==="="&&(e--,v[v.length-2]==="="&&e--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),w=Array.isArray(g)?g:new Uint8Array(g);for(n=0;n<t;n+=4)C=ir[v.charCodeAt(n)],A=ir[v.charCodeAt(n+1)],h=ir[v.charCodeAt(n+2)],m=ir[v.charCodeAt(n+3)],w[y++]=C<<2|A>>4,w[y++]=(A&15)<<4|h>>2,w[y++]=(h&3)<<6|m&63;return g},df=function(v){for(var e=v.length,t=[],n=0;n<e;n+=2)t.push(v[n+1]<<8|v[n]);return t},ff=function(v){for(var e=v.length,t=[],n=0;n<e;n+=4)t.push(v[n+3]<<24|v[n+2]<<16|v[n+1]<<8|v[n]);return t},Et=5,Hi=11,Li=2,hf=Hi-Et,Hc=65536>>Et,pf=1<<Et,Ri=pf-1,gf=1024>>Et,vf=Hc+gf,yf=vf,mf=32,wf=yf+mf,Bf=65536>>Hi,Cf=1<<hf,bf=Cf-1,Lc=function(v,e,t){return v.slice?v.slice(e,t):new Uint16Array(Array.prototype.slice.call(v,e,t))},_f=function(v,e,t){return v.slice?v.slice(e,t):new Uint32Array(Array.prototype.slice.call(v,e,t))},Ef=function(v,e){var t=uf(v),n=Array.isArray(t)?ff(t):new Uint32Array(t),y=Array.isArray(t)?df(t):new Uint16Array(t),C=24,A=Lc(y,C/2,n[4]/2),h=n[5]===2?Lc(y,(C+n[4])/2):_f(n,Math.ceil((C+n[4])/4));return new Ff(n[0],n[1],n[2],n[3],A,h)},Ff=function(){function v(e,t,n,y,C,A){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=y,this.index=C,this.data=A}return v.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Et],t=(t<<Li)+(e&Ri),this.data[t];if(e<=65535)return t=this.index[Hc+(e-55296>>Et)],t=(t<<Li)+(e&Ri),this.data[t];if(e<this.highStart)return t=wf-Bf+(e>>Hi),t=this.index[t],t+=e>>Et&bf,t=this.index[t],t=(t<<Li)+(e&Ri),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),Rc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sf=typeof Uint8Array>"u"?[]:new Uint8Array(256),on=0;on<Rc.length;on++)Sf[Rc.charCodeAt(on)]=on;var Qf="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Dc=50,Uf=1,kc=2,Kc=3,Tf=4,If=5,Nc=7,Vc=8,Gc=9,dt=10,Di=11,jc=12,ki=13,Pf=14,or=15,Ki=16,sn=17,sr=18,xf=19,Wc=20,Ni=21,ar=22,Vi=23,Kt=24,Ve=25,cr=26,lr=27,Nt=28,Of=29,Ft=30,Mf=31,an=32,cn=33,Gi=34,ji=35,Wi=36,ur=37,zi=38,ln=39,un=40,Ji=41,zc=42,Hf=43,Lf=[9001,65288],Jc="!",ce="×",dn="÷",Xi=Ef(Qf),ct=[Ft,Wi],Yi=[Uf,kc,Kc,If],Xc=[dt,Vc],Yc=[lr,cr],Rf=Yi.concat(Xc),$c=[zi,ln,un,Gi,ji],Df=[or,ki],kf=function(v,e){e===void 0&&(e="strict");var t=[],n=[],y=[];return v.forEach(function(C,A){var h=Xi.get(C);if(h>Dc?(y.push(!0),h-=Dc):y.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(C)!==-1)return n.push(A),t.push(Ki);if(h===Tf||h===Di){if(A===0)return n.push(A),t.push(Ft);var m=t[A-1];return Rf.indexOf(m)===-1?(n.push(n[A-1]),t.push(m)):(n.push(A),t.push(Ft))}if(n.push(A),h===Mf)return t.push(e==="strict"?Ni:ur);if(h===zc||h===Of)return t.push(Ft);if(h===Hf)return C>=131072&&C<=196605||C>=196608&&C<=262141?t.push(ur):t.push(Ft);t.push(h)}),[n,t,y]},$i=function(v,e,t,n){var y=n[t];if(Array.isArray(v)?v.indexOf(y)!==-1:v===y)for(var C=t;C<=n.length;){C++;var A=n[C];if(A===e)return!0;if(A!==dt)break}if(y===dt)for(var C=t;C>0;){C--;var h=n[C];if(Array.isArray(v)?v.indexOf(h)!==-1:v===h)for(var m=t;m<=n.length;){m++;var A=n[m];if(A===e)return!0;if(A!==dt)break}if(h!==dt)break}return!1},Zc=function(v,e){for(var t=v;t>=0;){var n=e[t];if(n===dt)t--;else return n}return 0},Kf=function(v,e,t,n,y){if(t[n]===0)return ce;var C=n-1;if(Array.isArray(y)&&y[C]===!0)return ce;var A=C-1,h=C+1,m=e[C],g=A>=0?e[A]:0,w=e[h];if(m===kc&&w===Kc)return ce;if(Yi.indexOf(m)!==-1)return Jc;if(Yi.indexOf(w)!==-1||Xc.indexOf(w)!==-1)return ce;if(Zc(C,e)===Vc)return dn;if(Xi.get(v[C])===Di||(m===an||m===cn)&&Xi.get(v[h])===Di||m===Nc||w===Nc||m===Gc||[dt,ki,or].indexOf(m)===-1&&w===Gc||[sn,sr,xf,Kt,Nt].indexOf(w)!==-1||Zc(C,e)===ar||$i(Vi,ar,C,e)||$i([sn,sr],Ni,C,e)||$i(jc,jc,C,e))return ce;if(m===dt)return dn;if(m===Vi||w===Vi)return ce;if(w===Ki||m===Ki)return dn;if([ki,or,Ni].indexOf(w)!==-1||m===Pf||g===Wi&&Df.indexOf(m)!==-1||m===Nt&&w===Wi||w===Wc||ct.indexOf(w)!==-1&&m===Ve||ct.indexOf(m)!==-1&&w===Ve||m===lr&&[ur,an,cn].indexOf(w)!==-1||[ur,an,cn].indexOf(m)!==-1&&w===cr||ct.indexOf(m)!==-1&&Yc.indexOf(w)!==-1||Yc.indexOf(m)!==-1&&ct.indexOf(w)!==-1||[lr,cr].indexOf(m)!==-1&&(w===Ve||[ar,or].indexOf(w)!==-1&&e[h+1]===Ve)||[ar,or].indexOf(m)!==-1&&w===Ve||m===Ve&&[Ve,Nt,Kt].indexOf(w)!==-1)return ce;if([Ve,Nt,Kt,sn,sr].indexOf(w)!==-1)for(var p=C;p>=0;){var u=e[p];if(u===Ve)return ce;if([Nt,Kt].indexOf(u)!==-1)p--;else break}if([lr,cr].indexOf(w)!==-1)for(var p=[sn,sr].indexOf(m)!==-1?A:C;p>=0;){var u=e[p];if(u===Ve)return ce;if([Nt,Kt].indexOf(u)!==-1)p--;else break}if(zi===m&&[zi,ln,Gi,ji].indexOf(w)!==-1||[ln,Gi].indexOf(m)!==-1&&[ln,un].indexOf(w)!==-1||[un,ji].indexOf(m)!==-1&&w===un||$c.indexOf(m)!==-1&&[Wc,cr].indexOf(w)!==-1||$c.indexOf(w)!==-1&&m===lr||ct.indexOf(m)!==-1&&ct.indexOf(w)!==-1||m===Kt&&ct.indexOf(w)!==-1||ct.concat(Ve).indexOf(m)!==-1&&w===ar&&Lf.indexOf(v[h])===-1||ct.concat(Ve).indexOf(w)!==-1&&m===sr)return ce;if(m===Ji&&w===Ji){for(var f=t[C],c=1;f>0&&(f--,e[f]===Ji);)c++;if(c%2!==0)return ce}return m===an&&w===cn?ce:dn},Nf=function(v,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=kf(v,e.lineBreak),n=t[0],y=t[1],C=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(y=y.map(function(h){return[Ve,Ft,zc].indexOf(h)!==-1?ur:h}));var A=e.wordBreak==="keep-all"?C.map(function(h,m){return h&&v[m]>=19968&&v[m]<=40959}):void 0;return[n,y,A]},Vf=function(){function v(e,t,n,y){this.codePoints=e,this.required=t===Jc,this.start=n,this.end=y}return v.prototype.slice=function(){return be.apply(void 0,this.codePoints.slice(this.start,this.end))},v}(),Gf=function(v,e){var t=rn(v),n=Nf(t,e),y=n[0],C=n[1],A=n[2],h=t.length,m=0,g=0;return{next:function(){if(g>=h)return{done:!0,value:null};for(var w=ce;g<h&&(w=Kf(t,C,y,++g,A))===ce;);if(w!==ce||g===h){var p=new Vf(t,w,m,g);return m=g,{value:p,done:!1}}return{done:!0,value:null}}}},jf=1,Wf=2,dr=4,qc=8,fn=10,el=47,fr=92,zf=9,Jf=32,hn=34,hr=61,Xf=35,Yf=36,$f=37,pn=39,gn=40,pr=41,Zf=95,ke=45,qf=33,eh=60,th=62,rh=64,Ah=91,nh=93,ih=61,oh=123,vn=63,sh=125,tl=124,ah=126,ch=128,rl=65533,Zi=42,St=43,lh=44,uh=58,dh=59,gr=46,fh=0,hh=8,ph=11,gh=14,vh=31,yh=127,qe=-1,Al=48,nl=97,il=101,mh=102,wh=117,Bh=122,ol=65,sl=69,al=70,Ch=85,bh=90,xe=function(v){return v>=Al&&v<=57},_h=function(v){return v>=55296&&v<=57343},Vt=function(v){return xe(v)||v>=ol&&v<=al||v>=nl&&v<=mh},Eh=function(v){return v>=nl&&v<=Bh},Fh=function(v){return v>=ol&&v<=bh},Sh=function(v){return Eh(v)||Fh(v)},Qh=function(v){return v>=ch},yn=function(v){return v===fn||v===zf||v===Jf},mn=function(v){return Sh(v)||Qh(v)||v===Zf},cl=function(v){return mn(v)||xe(v)||v===ke},Uh=function(v){return v>=fh&&v<=hh||v===ph||v>=gh&&v<=vh||v===yh},ft=function(v,e){return v!==fr?!1:e!==fn},wn=function(v,e,t){return v===ke?mn(e)||ft(e,t):mn(v)?!0:!!(v===fr&&ft(v,e))},qi=function(v,e,t){return v===St||v===ke?xe(e)?!0:e===gr&&xe(t):xe(v===gr?e:v)},Th=function(v){var e=0,t=1;(v[e]===St||v[e]===ke)&&(v[e]===ke&&(t=-1),e++);for(var n=[];xe(v[e]);)n.push(v[e++]);var y=n.length?parseInt(be.apply(void 0,n),10):0;v[e]===gr&&e++;for(var C=[];xe(v[e]);)C.push(v[e++]);var A=C.length,h=A?parseInt(be.apply(void 0,C),10):0;(v[e]===sl||v[e]===il)&&e++;var m=1;(v[e]===St||v[e]===ke)&&(v[e]===ke&&(m=-1),e++);for(var g=[];xe(v[e]);)g.push(v[e++]);var w=g.length?parseInt(be.apply(void 0,g),10):0;return t*(y+h*Math.pow(10,-A))*Math.pow(10,m*w)},Ih={type:2},Ph={type:3},xh={type:4},Oh={type:13},Mh={type:8},Hh={type:21},Lh={type:9},Rh={type:10},Dh={type:11},kh={type:12},Kh={type:14},Bn={type:23},Nh={type:1},Vh={type:25},Gh={type:24},jh={type:26},Wh={type:27},zh={type:28},Jh={type:29},Xh={type:31},eo={type:32},ll=function(){function v(){this._value=[]}return v.prototype.write=function(e){this._value=this._value.concat(rn(e))},v.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==eo;)e.push(t),t=this.consumeToken();return e},v.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case hn:return this.consumeStringToken(hn);case Xf:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),y=this.peekCodePoint(2);if(cl(t)||ft(n,y)){var C=wn(t,n,y)?Wf:jf,A=this.consumeName();return{type:5,value:A,flags:C}}break;case Yf:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Oh;break;case pn:return this.consumeStringToken(pn);case gn:return Ih;case pr:return Ph;case Zi:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Kh;break;case St:if(qi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case lh:return xh;case ke:var h=e,m=this.peekCodePoint(0),g=this.peekCodePoint(1);if(qi(h,m,g))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(wn(h,m,g))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(m===ke&&g===th)return this.consumeCodePoint(),this.consumeCodePoint(),Gh;break;case gr:if(qi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case el:if(this.peekCodePoint(0)===Zi)for(this.consumeCodePoint();;){var w=this.consumeCodePoint();if(w===Zi&&(w=this.consumeCodePoint(),w===el))return this.consumeToken();if(w===qe)return this.consumeToken()}break;case uh:return jh;case dh:return Wh;case eh:if(this.peekCodePoint(0)===qf&&this.peekCodePoint(1)===ke&&this.peekCodePoint(2)===ke)return this.consumeCodePoint(),this.consumeCodePoint(),Vh;break;case rh:var p=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(wn(p,u,f)){var A=this.consumeName();return{type:7,value:A}}break;case Ah:return zh;case fr:if(ft(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case nh:return Jh;case ih:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Mh;break;case oh:return Dh;case sh:return kh;case wh:case Ch:var c=this.peekCodePoint(0),a=this.peekCodePoint(1);return c===St&&(Vt(a)||a===vn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case tl:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Lh;if(this.peekCodePoint(0)===tl)return this.consumeCodePoint(),Hh;break;case ah:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Rh;break;case qe:return eo}return yn(e)?(this.consumeWhiteSpace(),Xh):xe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):mn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:be(e)}},v.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},v.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},v.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},v.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Vt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===vn&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var y=parseInt(be.apply(void 0,e.map(function(m){return m===vn?Al:m})),16),C=parseInt(be.apply(void 0,e.map(function(m){return m===vn?al:m})),16);return{type:30,start:y,end:C}}var A=parseInt(be.apply(void 0,e),16);if(this.peekCodePoint(0)===ke&&Vt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var h=[];Vt(t)&&h.length<6;)h.push(t),t=this.consumeCodePoint();var C=parseInt(be.apply(void 0,h),16);return{type:30,start:A,end:C}}else return{type:30,start:A,end:A}},v.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===gn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===gn?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},v.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===qe)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===pn||t===hn){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===qe||this.peekCodePoint(0)===pr)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Bn)}for(;;){var y=this.consumeCodePoint();if(y===qe||y===pr)return{type:22,value:be.apply(void 0,e)};if(yn(y))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qe||this.peekCodePoint(0)===pr?(this.consumeCodePoint(),{type:22,value:be.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Bn);if(y===hn||y===pn||y===gn||Uh(y))return this.consumeBadUrlRemnants(),Bn;if(y===fr)if(ft(y,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bn;else e.push(y)}},v.prototype.consumeWhiteSpace=function(){for(;yn(this.peekCodePoint(0));)this.consumeCodePoint()},v.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===pr||e===qe)return;ft(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},v.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var y=Math.min(t,e);n+=be.apply(void 0,this._value.splice(0,y)),e-=y}return this._value.shift(),n},v.prototype.consumeStringToken=function(e){var t="",n=0;do{var y=this._value[n];if(y===qe||y===void 0||y===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(y===fn)return this._value.splice(0,n),Nh;if(y===fr){var C=this._value[n+1];C!==qe&&C!==void 0&&(C===fn?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):ft(y,C)&&(t+=this.consumeStringSlice(n),t+=be(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},v.prototype.consumeNumber=function(){var e=[],t=dr,n=this.peekCodePoint(0);for((n===St||n===ke)&&e.push(this.consumeCodePoint());xe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var y=this.peekCodePoint(1);if(n===gr&&xe(y))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qc;xe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),y=this.peekCodePoint(1);var C=this.peekCodePoint(2);if((n===sl||n===il)&&((y===St||y===ke)&&xe(C)||xe(y)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qc;xe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Th(e),t]},v.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],y=this.peekCodePoint(0),C=this.peekCodePoint(1),A=this.peekCodePoint(2);if(wn(y,C,A)){var h=this.consumeName();return{type:15,number:t,flags:n,unit:h}}return y===$f?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},v.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Vt(e)){for(var t=be(e);Vt(this.peekCodePoint(0))&&t.length<6;)t+=be(this.consumeCodePoint());yn(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||_h(n)||n>1114111?rl:n}return e===qe?rl:e},v.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(cl(t))e+=be(t);else if(ft(t,this.peekCodePoint(0)))e+=be(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},v}(),ul=function(){function v(e){this._tokens=e}return v.create=function(e){var t=new ll;return t.write(e),new v(t.read())},v.parseValue=function(e){return v.create(e).parseComponentValue()},v.parseValues=function(e){return v.create(e).parseComponentValues()},v.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},v.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},v.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},v.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||$h(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},v.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},v.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?eo:e},v.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},v}(),vr=function(v){return v.type===15},Gt=function(v){return v.type===17},fe=function(v){return v.type===20},Yh=function(v){return v.type===0},to=function(v,e){return fe(v)&&v.value===e},dl=function(v){return v.type!==31},jt=function(v){return v.type!==31&&v.type!==4},et=function(v){var e=[],t=[];return v.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},$h=function(v,e){return e===11&&v.type===12||e===28&&v.type===29?!0:e===2&&v.type===3},ht=function(v){return v.type===17||v.type===15},Fe=function(v){return v.type===16||ht(v)},fl=function(v){return v.length>1?[v[0],v[1]]:[v[0]]},Te={type:17,number:0,flags:dr},ro={type:16,number:50,flags:dr},pt={type:16,number:100,flags:dr},yr=function(v,e,t){var n=v[0],y=v[1];return[ge(n,e),ge(typeof y<"u"?y:n,t)]},ge=function(v,e){if(v.type===16)return v.number/100*e;if(vr(v))switch(v.unit){case"rem":case"em":return 16*v.number;case"px":default:return v.number}return v.number},hl="deg",pl="grad",gl="rad",vl="turn",Cn={name:"angle",parse:function(v,e){if(e.type===15)switch(e.unit){case hl:return Math.PI*e.number/180;case pl:return Math.PI/200*e.number;case gl:return e.number;case vl:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},yl=function(v){return v.type===15&&(v.unit===hl||v.unit===pl||v.unit===gl||v.unit===vl)},ml=function(v){var e=v.filter(fe).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Te,Te];case"to top":case"bottom":return Ge(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Te,pt];case"to right":case"left":return Ge(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[pt,pt];case"to bottom":case"top":return Ge(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[pt,Te];case"to left":case"right":return Ge(270)}return 0},Ge=function(v){return Math.PI*v/180},gt={name:"color",parse:function(v,e){if(e.type===18){var t=Zh[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(v,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),y=e.value.substring(1,2),C=e.value.substring(2,3);return yt(parseInt(n+n,16),parseInt(y+y,16),parseInt(C+C,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),y=e.value.substring(1,2),C=e.value.substring(2,3),A=e.value.substring(3,4);return yt(parseInt(n+n,16),parseInt(y+y,16),parseInt(C+C,16),parseInt(A+A,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),y=e.value.substring(2,4),C=e.value.substring(4,6);return yt(parseInt(n,16),parseInt(y,16),parseInt(C,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),y=e.value.substring(2,4),C=e.value.substring(4,6),A=e.value.substring(6,8);return yt(parseInt(n,16),parseInt(y,16),parseInt(C,16),parseInt(A,16)/255)}}if(e.type===20){var h=lt[e.value.toUpperCase()];if(typeof h<"u")return h}return lt.TRANSPARENT}},vt=function(v){return(255&v)===0},Qe=function(v){var e=255&v,t=255&v>>8,n=255&v>>16,y=255&v>>24;return e<255?"rgba("+y+","+n+","+t+","+e/255+")":"rgb("+y+","+n+","+t+")"},yt=function(v,e,t,n){return(v<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},wl=function(v,e){if(v.type===17)return v.number;if(v.type===16){var t=e===3?1:255;return e===3?v.number/100*t:Math.round(v.number/100*t)}return 0},Bl=function(v,e){var t=e.filter(jt);if(t.length===3){var n=t.map(wl),y=n[0],C=n[1],A=n[2];return yt(y,C,A,1)}if(t.length===4){var h=t.map(wl),y=h[0],C=h[1],A=h[2],m=h[3];return yt(y,C,A,m)}return 0};function Ao(v,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<.16666666666666666?(e-v)*t*6+v:t<.5?e:t<.6666666666666666?(e-v)*6*(.6666666666666666-t)+v:v}var Cl=function(v,e){var t=e.filter(jt),n=t[0],y=t[1],C=t[2],A=t[3],h=(n.type===17?Ge(n.number):Cn.parse(v,n))/(Math.PI*2),m=Fe(y)?y.number/100:0,g=Fe(C)?C.number/100:0,w=typeof A<"u"&&Fe(A)?ge(A,1):1;if(m===0)return yt(g*255,g*255,g*255,1);var p=g<=.5?g*(m+1):g+m-g*m,u=g*2-p,f=Ao(u,p,h+1/3),c=Ao(u,p,h),a=Ao(u,p,h-1/3);return yt(f*255,c*255,a*255,w)},Zh={hsl:Cl,hsla:Cl,rgb:Bl,rgba:Bl},mr=function(v,e){return gt.parse(v,ul.create(e).parseComponentValue())},lt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},qh={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(v,e){return e.map(function(t){if(fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ep={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bn=function(v,e){var t=gt.parse(v,e[0]),n=e[1];return n&&Fe(n)?{color:t,stop:n}:{color:t,stop:null}},bl=function(v,e){var t=v[0],n=v[v.length-1];t.stop===null&&(t.stop=Te),n.stop===null&&(n.stop=pt);for(var y=[],C=0,A=0;A<v.length;A++){var h=v[A].stop;if(h!==null){var m=ge(h,e);m>C?y.push(m):y.push(C),C=m}else y.push(null)}for(var g=null,A=0;A<y.length;A++){var w=y[A];if(w===null)g===null&&(g=A);else if(g!==null){for(var p=A-g,u=y[g-1],f=(w-u)/(p+1),c=1;c<=p;c++)y[g+c-1]=f*c;g=null}}return v.map(function(a,i){var s=a.color;return{color:s,stop:Math.max(Math.min(1,y[i]/e),0)}})},tp=function(v,e,t){var n=e/2,y=t/2,C=ge(v[0],e)-n,A=y-ge(v[1],t);return(Math.atan2(A,C)+Math.PI*2)%(Math.PI*2)},rp=function(v,e,t){var n=typeof v=="number"?v:tp(v,e,t),y=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),C=e/2,A=t/2,h=y/2,m=Math.sin(n-Math.PI/2)*h,g=Math.cos(n-Math.PI/2)*h;return[y,C-g,C+g,A-m,A+m]},Ye=function(v,e){return Math.sqrt(v*v+e*e)},_l=function(v,e,t,n,y){var C=[[0,0],[0,e],[v,0],[v,e]];return C.reduce(function(A,h){var m=h[0],g=h[1],w=Ye(t-m,n-g);return(y?w<A.optimumDistance:w>A.optimumDistance)?{optimumCorner:h,optimumDistance:w}:A},{optimumDistance:y?1/0:-1/0,optimumCorner:null}).optimumCorner},Ap=function(v,e,t,n,y){var C=0,A=0;switch(v.size){case 0:v.shape===0?C=A=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-y)):v.shape===1&&(C=Math.min(Math.abs(e),Math.abs(e-n)),A=Math.min(Math.abs(t),Math.abs(t-y)));break;case 2:if(v.shape===0)C=A=Math.min(Ye(e,t),Ye(e,t-y),Ye(e-n,t),Ye(e-n,t-y));else if(v.shape===1){var h=Math.min(Math.abs(t),Math.abs(t-y))/Math.min(Math.abs(e),Math.abs(e-n)),m=_l(n,y,e,t,!0),g=m[0],w=m[1];C=Ye(g-e,(w-t)/h),A=h*C}break;case 1:v.shape===0?C=A=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-y)):v.shape===1&&(C=Math.max(Math.abs(e),Math.abs(e-n)),A=Math.max(Math.abs(t),Math.abs(t-y)));break;case 3:if(v.shape===0)C=A=Math.max(Ye(e,t),Ye(e,t-y),Ye(e-n,t),Ye(e-n,t-y));else if(v.shape===1){var h=Math.max(Math.abs(t),Math.abs(t-y))/Math.max(Math.abs(e),Math.abs(e-n)),p=_l(n,y,e,t,!1),g=p[0],w=p[1];C=Ye(g-e,(w-t)/h),A=h*C}break}return Array.isArray(v.size)&&(C=ge(v.size[0],n),A=v.size.length===2?ge(v.size[1],y):C),[C,A]},np=function(v,e){var t=Ge(180),n=[];return et(e).forEach(function(y,C){if(C===0){var A=y[0];if(A.type===20&&A.value==="to"){t=ml(y);return}else if(yl(A)){t=Cn.parse(v,A);return}}var h=bn(v,y);n.push(h)}),{angle:t,stops:n,type:1}},_n=function(v,e){var t=Ge(180),n=[];return et(e).forEach(function(y,C){if(C===0){var A=y[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){t=ml(y);return}else if(yl(A)){t=(Cn.parse(v,A)+Ge(270))%Ge(360);return}}var h=bn(v,y);n.push(h)}),{angle:t,stops:n,type:1}},ip=function(v,e){var t=Ge(180),n=[],y=1,C=0,A=3,h=[];return et(e).forEach(function(m,g){var w=m[0];if(g===0){if(fe(w)&&w.value==="linear"){y=1;return}else if(fe(w)&&w.value==="radial"){y=2;return}}if(w.type===18){if(w.name==="from"){var p=gt.parse(v,w.values[0]);n.push({stop:Te,color:p})}else if(w.name==="to"){var p=gt.parse(v,w.values[0]);n.push({stop:pt,color:p})}else if(w.name==="color-stop"){var u=w.values.filter(jt);if(u.length===2){var p=gt.parse(v,u[1]),f=u[0];Gt(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:p})}}}}),y===1?{angle:(t+Ge(180))%Ge(360),stops:n,type:y}:{size:A,shape:C,stops:n,position:h,type:y}},El="closest-side",Fl="farthest-side",Sl="closest-corner",Ql="farthest-corner",Ul="circle",Tl="ellipse",Il="cover",Pl="contain",op=function(v,e){var t=0,n=3,y=[],C=[];return et(e).forEach(function(A,h){var m=!0;if(h===0){var g=!1;m=A.reduce(function(p,u){if(g)if(fe(u))switch(u.value){case"center":return C.push(ro),p;case"top":case"left":return C.push(Te),p;case"right":case"bottom":return C.push(pt),p}else(Fe(u)||ht(u))&&C.push(u);else if(fe(u))switch(u.value){case Ul:return t=0,!1;case Tl:return t=1,!1;case"at":return g=!0,!1;case El:return n=0,!1;case Il:case Fl:return n=1,!1;case Pl:case Sl:return n=2,!1;case Ql:return n=3,!1}else if(ht(u)||Fe(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return p},m)}if(m){var w=bn(v,A);y.push(w)}}),{size:n,shape:t,stops:y,position:C,type:2}},En=function(v,e){var t=0,n=3,y=[],C=[];return et(e).forEach(function(A,h){var m=!0;if(h===0?m=A.reduce(function(w,p){if(fe(p))switch(p.value){case"center":return C.push(ro),!1;case"top":case"left":return C.push(Te),!1;case"right":case"bottom":return C.push(pt),!1}else if(Fe(p)||ht(p))return C.push(p),!1;return w},m):h===1&&(m=A.reduce(function(w,p){if(fe(p))switch(p.value){case Ul:return t=0,!1;case Tl:return t=1,!1;case Pl:case El:return n=0,!1;case Fl:return n=1,!1;case Sl:return n=2,!1;case Il:case Ql:return n=3,!1}else if(ht(p)||Fe(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return w},m)),m){var g=bn(v,A);y.push(g)}}),{size:n,shape:t,stops:y,position:C,type:2}},sp=function(v){return v.type===1},ap=function(v){return v.type===2},no={name:"image",parse:function(v,e){if(e.type===22){var t={url:e.value,type:0};return v.cache.addImage(e.value),t}if(e.type===18){var n=xl[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(v,e.values)}throw new Error("Unsupported image type "+e.type)}};function cp(v){return!(v.type===20&&v.value==="none")&&(v.type!==18||!!xl[v.name])}var xl={"linear-gradient":np,"-moz-linear-gradient":_n,"-ms-linear-gradient":_n,"-o-linear-gradient":_n,"-webkit-linear-gradient":_n,"radial-gradient":op,"-moz-radial-gradient":En,"-ms-radial-gradient":En,"-o-radial-gradient":En,"-webkit-radial-gradient":En,"-webkit-gradient":ip},lp={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(v,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return jt(n)&&cp(n)}).map(function(n){return no.parse(v,n)})}},up={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(v,e){return e.map(function(t){if(fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},dp={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(v,e){return et(e).map(function(t){return t.filter(Fe)}).map(fl)}},fp={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(v,e){return et(e).map(function(t){return t.filter(fe).map(function(n){return n.value}).join(" ")}).map(hp)}},hp=function(v){switch(v){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Wt;(function(v){v.AUTO="auto",v.CONTAIN="contain",v.COVER="cover"})(Wt||(Wt={}));var pp={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(v,e){return et(e).map(function(t){return t.filter(gp)})}},gp=function(v){return fe(v)||Fe(v)},Fn=function(v){return{name:"border-"+v+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},vp=Fn("top"),yp=Fn("right"),mp=Fn("bottom"),wp=Fn("left"),Sn=function(v){return{name:"border-radius-"+v,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return fl(t.filter(Fe))}}},Bp=Sn("top-left"),Cp=Sn("top-right"),bp=Sn("bottom-right"),_p=Sn("bottom-left"),Qn=function(v){return{name:"border-"+v+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ep=Qn("top"),Fp=Qn("right"),Sp=Qn("bottom"),Qp=Qn("left"),Un=function(v){return{name:"border-"+v+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return vr(t)?t.number:0}}},Up=Un("top"),Tp=Un("right"),Ip=Un("bottom"),Pp=Un("left"),xp={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Op={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(v,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Mp={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).reduce(function(t,n){return t|Hp(n.value)},0)}},Hp=function(v){switch(v){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Lp={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Rp={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(v,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Tn;(function(v){v.NORMAL="normal",v.STRICT="strict"})(Tn||(Tn={}));var Dp={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"strict":return Tn.STRICT;case"normal":default:return Tn.NORMAL}}},kp={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ol=function(v,e){return fe(v)&&v.value==="normal"?1.2*e:v.type===17?e*v.number:Fe(v)?ge(v,e):e},Kp={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(v,e){return e.type===20&&e.value==="none"?null:no.parse(v,e)}},Np={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(v,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},io={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},In=function(v){return{name:"margin-"+v,initialValue:"0",prefix:!1,type:4}},Vp=In("top"),Gp=In("right"),jp=In("bottom"),Wp=In("left"),zp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Jp={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Pn=function(v){return{name:"padding-"+v,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Xp=Pn("top"),Yp=Pn("right"),$p=Pn("bottom"),Zp=Pn("left"),qp={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(v,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},eg={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(v,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},tg={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.length===1&&to(e[0],"none")?[]:et(e).map(function(t){for(var n={color:lt.TRANSPARENT,offsetX:Te,offsetY:Te,blur:Te},y=0,C=0;C<t.length;C++){var A=t[C];ht(A)?(y===0?n.offsetX=A:y===1?n.offsetY=A:n.blur=A,y++):n.color=gt.parse(v,A)}return n})}},rg={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ag={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(v,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=og[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},ng=function(v){var e=v.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},ig=function(v){var e=v.filter(function(m){return m.type===17}).map(function(m){return m.number}),t=e[0],n=e[1];e[2],e[3];var y=e[4],C=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var A=e[12],h=e[13];return e[14],e[15],e.length===16?[t,n,y,C,A,h]:null},og={matrix:ng,matrix3d:ig},Ml={type:16,number:50,flags:dr},sg=[Ml,Ml],ag={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(v,e){var t=e.filter(Fe);return t.length!==2?sg:[t[0],t[1]]}},cg={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},wr;(function(v){v.NORMAL="normal",v.BREAK_ALL="break-all",v.KEEP_ALL="keep-all"})(wr||(wr={}));for(var lg={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"break-all":return wr.BREAK_ALL;case"keep-all":return wr.KEEP_ALL;case"normal":default:return wr.NORMAL}}},ug={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(v,e){if(e.type===20)return{auto:!0,order:0};if(Gt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Hl={name:"time",parse:function(v,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},dg={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(v,e){return Gt(e)?e.number:1}},fg={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hg={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},pg={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(v,e){var t=[],n=[];return e.forEach(function(y){switch(y.type){case 20:case 0:t.push(y.value);break;case 17:t.push(y.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(y){return y.indexOf(" ")===-1?y:"'"+y+"'"})}},gg={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},vg={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(v,e){if(Gt(e))return e.number;if(fe(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},yg={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.filter(fe).map(function(t){return t.value})}},mg={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Se=function(v,e){return(v&e)!==0},wg={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(v,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},Bg={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],y=e.filter(dl),C=0;C<y.length;C++){var A=y[C],h=y[C+1];if(A.type===20){var m=h&&Gt(h)?h.number:1;n.push({counter:A.value,increment:m})}}return n}},Cg={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return[];for(var t=[],n=e.filter(dl),y=0;y<n.length;y++){var C=n[y],A=n[y+1];if(fe(C)&&C.value!=="none"){var h=A&&Gt(A)?A.number:0;t.push({counter:C.value,reset:h})}}return t}},bg={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(v,e){return e.filter(vr).map(function(t){return Hl.parse(v,t)})}},_g={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var n=[],y=e.filter(Yh);if(y.length%2!==0)return null;for(var C=0;C<y.length;C+=2){var A=y[C].value,h=y[C+1].value;n.push({open:A,close:h})}return n}},Ll=function(v,e,t){if(!v)return"";var n=v[Math.min(e,v.length-1)];return n?t?n.open:n.close:""},Eg={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.length===1&&to(e[0],"none")?[]:et(e).map(function(t){for(var n={color:255,offsetX:Te,offsetY:Te,blur:Te,spread:Te,inset:!1},y=0,C=0;C<t.length;C++){var A=t[C];to(A,"inset")?n.inset=!0:ht(A)?(y===0?n.offsetX=A:y===1?n.offsetY=A:y===2?n.blur=A:n.spread=A,y++):n.color=gt.parse(v,A)}return n})}},Fg={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(v,e){var t=[0,1,2],n=[];return e.filter(fe).forEach(function(y){switch(y.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(function(y){n.indexOf(y)===-1&&n.push(y)}),n}},Sg={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Qg={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(v,e){return vr(e)?e.number:0}},Ug=function(){function v(e,t){var n,y;this.animationDuration=re(e,bg,t.animationDuration),this.backgroundClip=re(e,qh,t.backgroundClip),this.backgroundColor=re(e,ep,t.backgroundColor),this.backgroundImage=re(e,lp,t.backgroundImage),this.backgroundOrigin=re(e,up,t.backgroundOrigin),this.backgroundPosition=re(e,dp,t.backgroundPosition),this.backgroundRepeat=re(e,fp,t.backgroundRepeat),this.backgroundSize=re(e,pp,t.backgroundSize),this.borderTopColor=re(e,vp,t.borderTopColor),this.borderRightColor=re(e,yp,t.borderRightColor),this.borderBottomColor=re(e,mp,t.borderBottomColor),this.borderLeftColor=re(e,wp,t.borderLeftColor),this.borderTopLeftRadius=re(e,Bp,t.borderTopLeftRadius),this.borderTopRightRadius=re(e,Cp,t.borderTopRightRadius),this.borderBottomRightRadius=re(e,bp,t.borderBottomRightRadius),this.borderBottomLeftRadius=re(e,_p,t.borderBottomLeftRadius),this.borderTopStyle=re(e,Ep,t.borderTopStyle),this.borderRightStyle=re(e,Fp,t.borderRightStyle),this.borderBottomStyle=re(e,Sp,t.borderBottomStyle),this.borderLeftStyle=re(e,Qp,t.borderLeftStyle),this.borderTopWidth=re(e,Up,t.borderTopWidth),this.borderRightWidth=re(e,Tp,t.borderRightWidth),this.borderBottomWidth=re(e,Ip,t.borderBottomWidth),this.borderLeftWidth=re(e,Pp,t.borderLeftWidth),this.boxShadow=re(e,Eg,t.boxShadow),this.color=re(e,xp,t.color),this.direction=re(e,Op,t.direction),this.display=re(e,Mp,t.display),this.float=re(e,Lp,t.cssFloat),this.fontFamily=re(e,pg,t.fontFamily),this.fontSize=re(e,gg,t.fontSize),this.fontStyle=re(e,mg,t.fontStyle),this.fontVariant=re(e,yg,t.fontVariant),this.fontWeight=re(e,vg,t.fontWeight),this.letterSpacing=re(e,Rp,t.letterSpacing),this.lineBreak=re(e,Dp,t.lineBreak),this.lineHeight=re(e,kp,t.lineHeight),this.listStyleImage=re(e,Kp,t.listStyleImage),this.listStylePosition=re(e,Np,t.listStylePosition),this.listStyleType=re(e,io,t.listStyleType),this.marginTop=re(e,Vp,t.marginTop),this.marginRight=re(e,Gp,t.marginRight),this.marginBottom=re(e,jp,t.marginBottom),this.marginLeft=re(e,Wp,t.marginLeft),this.opacity=re(e,dg,t.opacity);var C=re(e,zp,t.overflow);this.overflowX=C[0],this.overflowY=C[C.length>1?1:0],this.overflowWrap=re(e,Jp,t.overflowWrap),this.paddingTop=re(e,Xp,t.paddingTop),this.paddingRight=re(e,Yp,t.paddingRight),this.paddingBottom=re(e,$p,t.paddingBottom),this.paddingLeft=re(e,Zp,t.paddingLeft),this.paintOrder=re(e,Fg,t.paintOrder),this.position=re(e,eg,t.position),this.textAlign=re(e,qp,t.textAlign),this.textDecorationColor=re(e,fg,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=re(e,hg,(y=t.textDecorationLine)!==null&&y!==void 0?y:t.textDecoration),this.textShadow=re(e,tg,t.textShadow),this.textTransform=re(e,rg,t.textTransform),this.transform=re(e,Ag,t.transform),this.transformOrigin=re(e,ag,t.transformOrigin),this.visibility=re(e,cg,t.visibility),this.webkitTextStrokeColor=re(e,Sg,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=re(e,Qg,t.webkitTextStrokeWidth),this.wordBreak=re(e,lg,t.wordBreak),this.zIndex=re(e,ug,t.zIndex)}return v.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},v.prototype.isTransparent=function(){return vt(this.backgroundColor)},v.prototype.isTransformed=function(){return this.transform!==null},v.prototype.isPositioned=function(){return this.position!==0},v.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},v.prototype.isFloating=function(){return this.float!==0},v.prototype.isInlineLevel=function(){return Se(this.display,4)||Se(this.display,33554432)||Se(this.display,268435456)||Se(this.display,536870912)||Se(this.display,67108864)||Se(this.display,134217728)},v}(),Tg=function(){function v(e,t){this.content=re(e,wg,t.content),this.quotes=re(e,_g,t.quotes)}return v}(),Rl=function(){function v(e,t){this.counterIncrement=re(e,Bg,t.counterIncrement),this.counterReset=re(e,Cg,t.counterReset)}return v}(),re=function(v,e,t){var n=new ll,y=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(y);var C=new ul(n.read());switch(e.type){case 2:var A=C.parseComponentValue();return e.parse(v,fe(A)?A.value:e.initialValue);case 0:return e.parse(v,C.parseComponentValue());case 1:return e.parse(v,C.parseComponentValues());case 4:return C.parseComponentValue();case 3:switch(e.format){case"angle":return Cn.parse(v,C.parseComponentValue());case"color":return gt.parse(v,C.parseComponentValue());case"image":return no.parse(v,C.parseComponentValue());case"length":var h=C.parseComponentValue();return ht(h)?h:Te;case"length-percentage":var m=C.parseComponentValue();return Fe(m)?m:Te;case"time":return Hl.parse(v,C.parseComponentValue())}break}},Ig="data-html2canvas-debug",Pg=function(v){var e=v.getAttribute(Ig);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},oo=function(v,e){var t=Pg(v);return t===1||e===t},tt=function(){function v(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,oo(t,3))debugger;this.styles=new Ug(e,window.getComputedStyle(t,null)),Bo(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=tn(this.context,t),oo(t,4)&&(this.flags|=16)}return v}(),xg="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Dl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Br=typeof Uint8Array>"u"?[]:new Uint8Array(256),xn=0;xn<Dl.length;xn++)Br[Dl.charCodeAt(xn)]=xn;for(var Og=function(v){var e=v.length*.75,t=v.length,n,y=0,C,A,h,m;v[v.length-1]==="="&&(e--,v[v.length-2]==="="&&e--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),w=Array.isArray(g)?g:new Uint8Array(g);for(n=0;n<t;n+=4)C=Br[v.charCodeAt(n)],A=Br[v.charCodeAt(n+1)],h=Br[v.charCodeAt(n+2)],m=Br[v.charCodeAt(n+3)],w[y++]=C<<2|A>>4,w[y++]=(A&15)<<4|h>>2,w[y++]=(h&3)<<6|m&63;return g},Mg=function(v){for(var e=v.length,t=[],n=0;n<e;n+=2)t.push(v[n+1]<<8|v[n]);return t},Hg=function(v){for(var e=v.length,t=[],n=0;n<e;n+=4)t.push(v[n+3]<<24|v[n+2]<<16|v[n+1]<<8|v[n]);return t},Qt=5,so=11,ao=2,Lg=so-Qt,kl=65536>>Qt,Rg=1<<Qt,co=Rg-1,Dg=1024>>Qt,kg=kl+Dg,Kg=kg,Ng=32,Vg=Kg+Ng,Gg=65536>>so,jg=1<<Lg,Wg=jg-1,Kl=function(v,e,t){return v.slice?v.slice(e,t):new Uint16Array(Array.prototype.slice.call(v,e,t))},zg=function(v,e,t){return v.slice?v.slice(e,t):new Uint32Array(Array.prototype.slice.call(v,e,t))},Jg=function(v,e){var t=Og(v),n=Array.isArray(t)?Hg(t):new Uint32Array(t),y=Array.isArray(t)?Mg(t):new Uint16Array(t),C=24,A=Kl(y,C/2,n[4]/2),h=n[5]===2?Kl(y,(C+n[4])/2):zg(n,Math.ceil((C+n[4])/4));return new Xg(n[0],n[1],n[2],n[3],A,h)},Xg=function(){function v(e,t,n,y,C,A){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=y,this.index=C,this.data=A}return v.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Qt],t=(t<<ao)+(e&co),this.data[t];if(e<=65535)return t=this.index[kl+(e-55296>>Qt)],t=(t<<ao)+(e&co),this.data[t];if(e<this.highStart)return t=Vg-Gg+(e>>so),t=this.index[t],t+=e>>Qt&Wg,t=this.index[t],t=(t<<ao)+(e&co),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),Nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yg=typeof Uint8Array>"u"?[]:new Uint8Array(256),On=0;On<Nl.length;On++)Yg[Nl.charCodeAt(On)]=On;var $g=1,lo=2,uo=3,Vl=4,Gl=5,Zg=7,jl=8,fo=9,ho=10,Wl=11,zl=12,Jl=13,Xl=14,po=15,qg=function(v){for(var e=[],t=0,n=v.length;t<n;){var y=v.charCodeAt(t++);if(y>=55296&&y<=56319&&t<n){var C=v.charCodeAt(t++);(C&64512)===56320?e.push(((y&1023)<<10)+(C&1023)+65536):(e.push(y),t--)}else e.push(y)}return e},ev=function(){for(var v=[],e=0;e<arguments.length;e++)v[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var t=v.length;if(!t)return"";for(var n=[],y=-1,C="";++y<t;){var A=v[y];A<=65535?n.push(A):(A-=65536,n.push((A>>10)+55296,A%1024+56320)),(y+1===t||n.length>16384)&&(C+=String.fromCharCode.apply(String,n),n.length=0)}return C},tv=Jg(xg),je="×",go="÷",rv=function(v){return tv.get(v)},Av=function(v,e,t){var n=t-2,y=e[n],C=e[t-1],A=e[t];if(C===lo&&A===uo)return je;if(C===lo||C===uo||C===Vl||A===lo||A===uo||A===Vl)return go;if(C===jl&&[jl,fo,Wl,zl].indexOf(A)!==-1||(C===Wl||C===fo)&&(A===fo||A===ho)||(C===zl||C===ho)&&A===ho||A===Jl||A===Gl||A===Zg||C===$g)return je;if(C===Jl&&A===Xl){for(;y===Gl;)y=e[--n];if(y===Xl)return je}if(C===po&&A===po){for(var h=0;y===po;)h++,y=e[--n];if(h%2===0)return je}return go},nv=function(v){var e=qg(v),t=e.length,n=0,y=0,C=e.map(rv);return{next:function(){if(n>=t)return{done:!0,value:null};for(var A=je;n<t&&(A=Av(e,C,++n))===je;);if(A!==je||n===t){var h=ev.apply(null,e.slice(y,n));return y=n,{value:h,done:!1}}return{done:!0,value:null}}}},iv=function(v){for(var e=nv(v),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t},ov=function(v){var e=123;if(v.createRange){var t=v.createRange();if(t.getBoundingClientRect){var n=v.createElement("boundtest");n.style.height=e+"px",n.style.display="block",v.body.appendChild(n),t.selectNode(n);var y=t.getBoundingClientRect(),C=Math.round(y.height);if(v.body.removeChild(n),C===e)return!0}}return!1},sv=function(v){var e=v.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",v.body.appendChild(e);var t=v.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,y=rn(n.data).map(function(m){return be(m)}),C=0,A={},h=y.every(function(m,g){t.setStart(n,C),t.setEnd(n,C+m.length);var w=t.getBoundingClientRect();C+=m.length;var p=w.x>A.x||w.y>A.y;return A=w,g===0?!0:p});return v.body.removeChild(e),h},av=function(){return typeof new Image().crossOrigin<"u"},cv=function(){return typeof new XMLHttpRequest().responseType=="string"},lv=function(v){var e=new Image,t=v.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},Yl=function(v){return v[0]===0&&v[1]===255&&v[2]===0&&v[3]===255},uv=function(v){var e=v.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var y=new Image,C=e.toDataURL();y.src=C;var A=vo(t,t,0,0,y);return n.fillStyle="red",n.fillRect(0,0,t,t),$l(A).then(function(h){n.drawImage(h,0,0);var m=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var g=v.createElement("div");return g.style.backgroundImage="url("+C+")",g.style.height=t+"px",Yl(m)?$l(vo(t,t,0,0,g)):Promise.reject(!1)}).then(function(h){return n.drawImage(h,0,0),Yl(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},vo=function(v,e,t,n,y){var C="http://www.w3.org/2000/svg",A=document.createElementNS(C,"svg"),h=document.createElementNS(C,"foreignObject");return A.setAttributeNS(null,"width",v.toString()),A.setAttributeNS(null,"height",e.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",t.toString()),h.setAttributeNS(null,"y",n.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(h),h.appendChild(y),A},$l=function(v){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Ie={get SUPPORT_RANGE_BOUNDS(){var v=ov(document);return Object.defineProperty(Ie,"SUPPORT_RANGE_BOUNDS",{value:v}),v},get SUPPORT_WORD_BREAKING(){var v=Ie.SUPPORT_RANGE_BOUNDS&&sv(document);return Object.defineProperty(Ie,"SUPPORT_WORD_BREAKING",{value:v}),v},get SUPPORT_SVG_DRAWING(){var v=lv(document);return Object.defineProperty(Ie,"SUPPORT_SVG_DRAWING",{value:v}),v},get SUPPORT_FOREIGNOBJECT_DRAWING(){var v=typeof Array.from=="function"&&typeof window.fetch=="function"?uv(document):Promise.resolve(!1);return Object.defineProperty(Ie,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:v}),v},get SUPPORT_CORS_IMAGES(){var v=av();return Object.defineProperty(Ie,"SUPPORT_CORS_IMAGES",{value:v}),v},get SUPPORT_RESPONSE_TYPE(){var v=cv();return Object.defineProperty(Ie,"SUPPORT_RESPONSE_TYPE",{value:v}),v},get SUPPORT_CORS_XHR(){var v="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ie,"SUPPORT_CORS_XHR",{value:v}),v},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var v=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ie,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:v}),v}},Cr=function(){function v(e,t){this.text=e,this.bounds=t}return v}(),dv=function(v,e,t,n){var y=pv(e,t),C=[],A=0;return y.forEach(function(h){if(t.textDecorationLine.length||h.trim().length>0)if(Ie.SUPPORT_RANGE_BOUNDS){var m=Zl(n,A,h.length).getClientRects();if(m.length>1){var g=yo(h),w=0;g.forEach(function(u){C.push(new Cr(u,at.fromDOMRectList(v,Zl(n,w+A,u.length).getClientRects()))),w+=u.length})}else C.push(new Cr(h,at.fromDOMRectList(v,m)))}else{var p=n.splitText(h.length);C.push(new Cr(h,fv(v,n))),n=p}else Ie.SUPPORT_RANGE_BOUNDS||(n=n.splitText(h.length));A+=h.length}),C},fv=function(v,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var y=e.parentNode;if(y){y.replaceChild(n,e);var C=tn(v,n);return n.firstChild&&y.replaceChild(n.firstChild,n),C}}return at.EMPTY},Zl=function(v,e,t){var n=v.ownerDocument;if(!n)throw new Error("Node has no owner document");var y=n.createRange();return y.setStart(v,e),y.setEnd(v,e+t),y},yo=function(v){if(Ie.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(v)).map(function(t){return t.segment})}return iv(v)},hv=function(v,e){if(Ie.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(v)).map(function(n){return n.segment})}return vv(v,e)},pv=function(v,e){return e.letterSpacing!==0?yo(v):hv(v,e)},gv=[32,160,4961,65792,65793,4153,4241],vv=function(v,e){for(var t=Gf(v,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],y,C=function(){if(y.value){var A=y.value.slice(),h=rn(A),m="";h.forEach(function(g){gv.indexOf(g)===-1?m+=be(g):(m.length&&n.push(m),n.push(be(g)),m="")}),m.length&&n.push(m)}};!(y=t.next()).done;)C();return n},yv=function(){function v(e,t,n){this.text=mv(t.data,n.textTransform),this.textBounds=dv(e,this.text,n,t)}return v}(),mv=function(v,e){switch(e){case 1:return v.toLowerCase();case 3:return v.replace(wv,Bv);case 2:return v.toUpperCase();default:return v}},wv=/(^|\s|:|-|\(|\))([a-z])/g,Bv=function(v,e,t){return v.length>0?e+t.toUpperCase():v},ql=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y.src=n.currentSrc||n.src,y.intrinsicWidth=n.naturalWidth,y.intrinsicHeight=n.naturalHeight,y.context.cache.addImage(y.src),y}return e}(tt),eu=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y.canvas=n,y.intrinsicWidth=n.width,y.intrinsicHeight=n.height,y}return e}(tt),tu=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this,C=new XMLSerializer,A=tn(t,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),y.svg="data:image/svg+xml,"+encodeURIComponent(C.serializeToString(n)),y.intrinsicWidth=n.width.baseVal.value,y.intrinsicHeight=n.height.baseVal.value,y.context.cache.addImage(y.svg),y}return e}(tt),ru=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y.value=n.value,y}return e}(tt),mo=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y.start=n.start,y.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,y}return e}(tt),Cv=[{type:15,flags:0,unit:"px",number:3}],bv=[{type:16,flags:0,number:50}],_v=function(v){return v.width>v.height?new at(v.left+(v.width-v.height)/2,v.top,v.height,v.height):v.width<v.height?new at(v.left,v.top+(v.height-v.width)/2,v.width,v.width):v},Ev=function(v){var e=v.type===Fv?new Array(v.value.length+1).join("•"):v.value;return e.length===0?v.placeholder||"":e},Mn="checkbox",Hn="radio",Fv="password",Au=707406591,wo=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;switch(y.type=n.type.toLowerCase(),y.checked=n.checked,y.value=Ev(n),(y.type===Mn||y.type===Hn)&&(y.styles.backgroundColor=3739148031,y.styles.borderTopColor=y.styles.borderRightColor=y.styles.borderBottomColor=y.styles.borderLeftColor=2779096575,y.styles.borderTopWidth=y.styles.borderRightWidth=y.styles.borderBottomWidth=y.styles.borderLeftWidth=1,y.styles.borderTopStyle=y.styles.borderRightStyle=y.styles.borderBottomStyle=y.styles.borderLeftStyle=1,y.styles.backgroundClip=[0],y.styles.backgroundOrigin=[0],y.bounds=_v(y.bounds)),y.type){case Mn:y.styles.borderTopRightRadius=y.styles.borderTopLeftRadius=y.styles.borderBottomRightRadius=y.styles.borderBottomLeftRadius=Cv;break;case Hn:y.styles.borderTopRightRadius=y.styles.borderTopLeftRadius=y.styles.borderBottomRightRadius=y.styles.borderBottomLeftRadius=bv;break}return y}return e}(tt),nu=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this,C=n.options[n.selectedIndex||0];return y.value=C&&C.text||"",y}return e}(tt),iu=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y.value=n.value,y}return e}(tt),ou=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;y.src=n.src,y.width=parseInt(n.width,10)||0,y.height=parseInt(n.height,10)||0,y.backgroundColor=y.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){y.tree=au(t,n.contentWindow.document.documentElement);var C=n.contentWindow.document.documentElement?mr(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,A=n.contentWindow.document.body?mr(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;y.backgroundColor=vt(C)?vt(A)?y.styles.backgroundColor:A:C}}catch{}return y}return e}(tt),Sv=["OL","UL","MENU"],Ln=function(v,e,t,n){for(var y=e.firstChild,C=void 0;y;y=C)if(C=y.nextSibling,cu(y)&&y.data.trim().length>0)t.textNodes.push(new yv(v,y,t.styles));else if(zt(y))if(pu(y)&&y.assignedNodes)y.assignedNodes().forEach(function(h){return Ln(v,h,t,n)});else{var A=su(v,y);A.styles.isVisible()&&(Qv(y,A,n)?A.flags|=4:Uv(A.styles)&&(A.flags|=2),Sv.indexOf(y.tagName)!==-1&&(A.flags|=8),t.elements.push(A),y.slot,y.shadowRoot?Ln(v,y.shadowRoot,A,n):!Dn(y)&&!lu(y)&&!kn(y)&&Ln(v,y,A,n))}},su=function(v,e){return bo(e)?new ql(v,e):uu(e)?new eu(v,e):lu(e)?new tu(v,e):Tv(e)?new ru(v,e):Iv(e)?new mo(v,e):Pv(e)?new wo(v,e):kn(e)?new nu(v,e):Dn(e)?new iu(v,e):fu(e)?new ou(v,e):new tt(v,e)},au=function(v,e){var t=su(v,e);return t.flags|=4,Ln(v,e,t,t),t},Qv=function(v,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Co(v)&&t.styles.isTransparent()},Uv=function(v){return v.isPositioned()||v.isFloating()},cu=function(v){return v.nodeType===Node.TEXT_NODE},zt=function(v){return v.nodeType===Node.ELEMENT_NODE},Bo=function(v){return zt(v)&&typeof v.style<"u"&&!Rn(v)},Rn=function(v){return typeof v.className=="object"},Tv=function(v){return v.tagName==="LI"},Iv=function(v){return v.tagName==="OL"},Pv=function(v){return v.tagName==="INPUT"},xv=function(v){return v.tagName==="HTML"},lu=function(v){return v.tagName==="svg"},Co=function(v){return v.tagName==="BODY"},uu=function(v){return v.tagName==="CANVAS"},du=function(v){return v.tagName==="VIDEO"},bo=function(v){return v.tagName==="IMG"},fu=function(v){return v.tagName==="IFRAME"},hu=function(v){return v.tagName==="STYLE"},Ov=function(v){return v.tagName==="SCRIPT"},Dn=function(v){return v.tagName==="TEXTAREA"},kn=function(v){return v.tagName==="SELECT"},pu=function(v){return v.tagName==="SLOT"},gu=function(v){return v.tagName.indexOf("-")>0},Mv=function(){function v(){this.counters={}}return v.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},v.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},v.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},v.prototype.parse=function(e){var t=this,n=e.counterIncrement,y=e.counterReset,C=!0;n!==null&&n.forEach(function(h){var m=t.counters[h.counter];m&&h.increment!==0&&(C=!1,m.length||m.push(1),m[Math.max(0,m.length-1)]+=h.increment)});var A=[];return C&&y.forEach(function(h){var m=t.counters[h.counter];A.push(h.counter),m||(m=t.counters[h.counter]=[]),m.push(h.reset)}),A},v}(),vu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},yu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Hv={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Lv={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jt=function(v,e,t,n,y,C){return v<e||v>t?_r(v,y,C.length>0):n.integers.reduce(function(A,h,m){for(;v>=h;)v-=h,A+=n.values[m];return A},"")+C},mu=function(v,e,t,n){var y="";do t||v--,y=n(v)+y,v/=e;while(v*e>=e);return y},_e=function(v,e,t,n,y){var C=t-e+1;return(v<0?"-":"")+(mu(Math.abs(v),C,n,function(A){return be(Math.floor(A%C)+e)})+y)},Ut=function(v,e,t){t===void 0&&(t=". ");var n=e.length;return mu(Math.abs(v),n,!1,function(y){return e[Math.floor(y%n)]})+t},Xt=1,mt=2,wt=4,br=8,ut=function(v,e,t,n,y,C){if(v<-9999||v>9999)return _r(v,4,y.length>0);var A=Math.abs(v),h=y;if(A===0)return e[0]+h;for(var m=0;A>0&&m<=4;m++){var g=A%10;g===0&&Se(C,Xt)&&h!==""?h=e[g]+h:g>1||g===1&&m===0||g===1&&m===1&&Se(C,mt)||g===1&&m===1&&Se(C,wt)&&v>100||g===1&&m>1&&Se(C,br)?h=e[g]+(m>0?t[m-1]:"")+h:g===1&&m>0&&(h=t[m-1]+h),A=Math.floor(A/10)}return(v<0?n:"")+h},wu="十百千萬",Bu="拾佰仟萬",Cu="マイナス",_o="마이너스",_r=function(v,e,t){var n=t?". ":"",y=t?"、":"",C=t?", ":"",A=t?" ":"";switch(e){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var h=_e(v,48,57,!0,n);return h.length<4?"0"+h:h;case 4:return Ut(v,"〇一二三四五六七八九",y);case 6:return Jt(v,1,3999,vu,3,n).toLowerCase();case 7:return Jt(v,1,3999,vu,3,n);case 8:return _e(v,945,969,!1,n);case 9:return _e(v,97,122,!1,n);case 10:return _e(v,65,90,!1,n);case 11:return _e(v,1632,1641,!0,n);case 12:case 49:return Jt(v,1,9999,yu,3,n);case 35:return Jt(v,1,9999,yu,3,n).toLowerCase();case 13:return _e(v,2534,2543,!0,n);case 14:case 30:return _e(v,6112,6121,!0,n);case 15:return Ut(v,"子丑寅卯辰巳午未申酉戌亥",y);case 16:return Ut(v,"甲乙丙丁戊己庚辛壬癸",y);case 17:case 48:return ut(v,"零一二三四五六七八九",wu,"負",y,mt|wt|br);case 47:return ut(v,"零壹貳參肆伍陸柒捌玖",Bu,"負",y,Xt|mt|wt|br);case 42:return ut(v,"零一二三四五六七八九",wu,"负",y,mt|wt|br);case 41:return ut(v,"零壹贰叁肆伍陆柒捌玖",Bu,"负",y,Xt|mt|wt|br);case 26:return ut(v,"〇一二三四五六七八九","十百千万",Cu,y,0);case 25:return ut(v,"零壱弐参四伍六七八九","拾百千万",Cu,y,Xt|mt|wt);case 31:return ut(v,"영일이삼사오육칠팔구","십백천만",_o,C,Xt|mt|wt);case 33:return ut(v,"零一二三四五六七八九","十百千萬",_o,C,0);case 32:return ut(v,"零壹貳參四五六七八九","拾百千",_o,C,Xt|mt|wt);case 18:return _e(v,2406,2415,!0,n);case 20:return Jt(v,1,19999,Lv,3,n);case 21:return _e(v,2790,2799,!0,n);case 22:return _e(v,2662,2671,!0,n);case 22:return Jt(v,1,10999,Hv,3,n);case 23:return Ut(v,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ut(v,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(v,3302,3311,!0,n);case 28:return Ut(v,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",y);case 29:return Ut(v,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",y);case 34:return _e(v,3792,3801,!0,n);case 37:return _e(v,6160,6169,!0,n);case 38:return _e(v,4160,4169,!0,n);case 39:return _e(v,2918,2927,!0,n);case 40:return _e(v,1776,1785,!0,n);case 43:return _e(v,3046,3055,!0,n);case 44:return _e(v,3174,3183,!0,n);case 45:return _e(v,3664,3673,!0,n);case 46:return _e(v,3872,3881,!0,n);case 3:default:return _e(v,48,57,!0,n)}},bu="data-html2canvas-ignore",_u=function(){function v(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Mv,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return v.prototype.toIFrame=function(e,t){var n=this,y=Rv(e,t);if(!y.contentWindow)return Promise.reject("Unable to find iframe window");var C=e.defaultView.pageXOffset,A=e.defaultView.pageYOffset,h=y.contentWindow,m=h.document,g=Kv(y).then(function(){return De(n,void 0,void 0,function(){var w,p;return Pe(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(jv),h&&(h.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(h.scrollY!==t.top||h.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(h.scrollX-t.left,h.scrollY-t.top,0,0))),w=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:m.fonts&&m.fonts.ready?[4,m.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,kv(m)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof w=="function"?[2,Promise.resolve().then(function(){return w(m,p)}).then(function(){return y})]:[2,y]}})})});return m.open(),m.write(Vv(document.doctype)+"<html></html>"),Gv(this.referenceElement.ownerDocument,C,A),m.replaceChild(m.adoptNode(this.documentElement),m.documentElement),m.close(),g},v.prototype.createElementClone=function(e){if(oo(e,2))debugger;if(uu(e))return this.createCanvasClone(e);if(du(e))return this.createVideoClone(e);if(hu(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return bo(t)&&(bo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),gu(t)?this.createCustomElementClone(t):t},v.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Eo(e.style,t),t},v.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(C,A){return A&&typeof A.cssText=="string"?C+A.cssText:C},""),y=e.cloneNode(!1);return y.textContent=n,y}}catch(C){if(this.context.logger.error("Unable to access cssRules property",C),C.name!=="SecurityError")throw C}return e.cloneNode(!1)},v.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var y=e.cloneNode(!1);try{y.width=e.width,y.height=e.height;var C=e.getContext("2d"),A=y.getContext("2d");if(A)if(!this.options.allowTaint&&C)A.putImageData(C.getImageData(0,0,e.width,e.height),0,0);else{var h=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(h){var m=h.getContextAttributes();(m==null?void 0:m.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}A.drawImage(e,0,0)}return y}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return y},v.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var y=e.ownerDocument.createElement("canvas");return y.width=e.offsetWidth,y.height=e.offsetHeight,y},v.prototype.appendChildNode=function(e,t,n){(!zt(t)||!Ov(t)&&!t.hasAttribute(bu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!zt(t)||!hu(t))&&e.appendChild(this.cloneNode(t,n))},v.prototype.cloneChildNodes=function(e,t,n){for(var y=this,C=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;C;C=C.nextSibling)if(zt(C)&&pu(C)&&typeof C.assignedNodes=="function"){var A=C.assignedNodes();A.length&&A.forEach(function(h){return y.appendChildNode(t,h,n)})}else this.appendChildNode(t,C,n)},v.prototype.cloneNode=function(e,t){if(cu(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&zt(e)&&(Bo(e)||Rn(e))){var y=this.createElementClone(e);y.style.transitionProperty="none";var C=n.getComputedStyle(e),A=n.getComputedStyle(e,":before"),h=n.getComputedStyle(e,":after");this.referenceElement===e&&Bo(y)&&(this.clonedReferenceElement=y),Co(y)&&Jv(y);var m=this.counters.parse(new Rl(this.context,C)),g=this.resolvePseudoContent(e,y,A,Er.BEFORE);gu(e)&&(t=!0),du(e)||this.cloneChildNodes(e,y,t),g&&y.insertBefore(g,y.firstChild);var w=this.resolvePseudoContent(e,y,h,Er.AFTER);return w&&y.appendChild(w),this.counters.pop(m),(C&&(this.options.copyStyles||Rn(e))&&!fu(e)||t)&&Eo(C,y),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([y,e.scrollLeft,e.scrollTop]),(Dn(e)||kn(e))&&(Dn(y)||kn(y))&&(y.value=e.value),y}return e.cloneNode(!1)},v.prototype.resolvePseudoContent=function(e,t,n,y){var C=this;if(n){var A=n.content,h=t.ownerDocument;if(!(!h||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Rl(this.context,n));var m=new Tg(this.context,n),g=h.createElement("html2canvaspseudoelement");Eo(n,g),m.content.forEach(function(p){if(p.type===0)g.appendChild(h.createTextNode(p.value));else if(p.type===22){var u=h.createElement("img");u.src=p.value,u.style.opacity="1",g.appendChild(u)}else if(p.type===18){if(p.name==="attr"){var f=p.values.filter(fe);f.length&&g.appendChild(h.createTextNode(e.getAttribute(f[0].value)||""))}else if(p.name==="counter"){var c=p.values.filter(jt),a=c[0],i=c[1];if(a&&fe(a)){var s=C.counters.getCounterValue(a.value),r=i&&fe(i)?io.parse(C.context,i.value):3;g.appendChild(h.createTextNode(_r(s,r,!1)))}}else if(p.name==="counters"){var o=p.values.filter(jt),a=o[0],l=o[1],i=o[2];if(a&&fe(a)){var d=C.counters.getCounterValues(a.value),B=i&&fe(i)?io.parse(C.context,i.value):3,_=l&&l.type===0?l.value:"",b=d.map(function(S){return _r(S,B,!1)}).join(_);g.appendChild(h.createTextNode(b))}}}else if(p.type===20)switch(p.value){case"open-quote":g.appendChild(h.createTextNode(Ll(m.quotes,C.quoteDepth++,!0)));break;case"close-quote":g.appendChild(h.createTextNode(Ll(m.quotes,--C.quoteDepth,!1)));break;default:g.appendChild(h.createTextNode(p.value))}}),g.className=Fo+" "+So;var w=y===Er.BEFORE?" "+Fo:" "+So;return Rn(t)?t.className.baseValue+=w:t.className+=w,g}}},v.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},v}(),Er;(function(v){v[v.BEFORE=0]="BEFORE",v[v.AFTER=1]="AFTER"})(Er||(Er={}));var Rv=function(v,e){var t=v.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(bu,"true"),v.body.appendChild(t),t},Dv=function(v){return new Promise(function(e){if(v.complete){e();return}if(!v.src){e();return}v.onload=e,v.onerror=e})},kv=function(v){return Promise.all([].slice.call(v.images,0).map(Dv))},Kv=function(v){return new Promise(function(e,t){var n=v.contentWindow;if(!n)return t("No window assigned for iframe");var y=n.document;n.onload=v.onload=function(){n.onload=v.onload=null;var C=setInterval(function(){y.body.childNodes.length>0&&y.readyState==="complete"&&(clearInterval(C),e(v))},50)}})},Nv=["all","d","content"],Eo=function(v,e){for(var t=v.length-1;t>=0;t--){var n=v.item(t);Nv.indexOf(n)===-1&&e.style.setProperty(n,v.getPropertyValue(n))}return e},Vv=function(v){var e="";return v&&(e+="<!DOCTYPE ",v.name&&(e+=v.name),v.internalSubset&&(e+=v.internalSubset),v.publicId&&(e+='"'+v.publicId+'"'),v.systemId&&(e+='"'+v.systemId+'"'),e+=">"),e},Gv=function(v,e,t){v&&v.defaultView&&(e!==v.defaultView.pageXOffset||t!==v.defaultView.pageYOffset)&&v.defaultView.scrollTo(e,t)},jv=function(v){var e=v[0],t=v[1],n=v[2];e.scrollLeft=t,e.scrollTop=n},Wv=":before",zv=":after",Fo="___html2canvas___pseudoelement_before",So="___html2canvas___pseudoelement_after",Eu=`{
325
+ content: "" !important;
326
+ display: none !important;
327
+ }`,Jv=function(v){Xv(v,"."+Fo+Wv+Eu+`
328
+ .`+So+zv+Eu)},Xv=function(v,e){var t=v.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,v.appendChild(n)}},Fu=function(){function v(){}return v.getOrigin=function(e){var t=v._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},v.isSameOrigin=function(e){return v.getOrigin(e)===v._origin},v.setContext=function(e){v._link=e.document.createElement("a"),v._origin=v.getOrigin(e.location.href)},v._origin="about:blank",v}(),Yv=function(){function v(e,t){this.context=e,this._options=t,this._cache={}}return v.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Uo(e)||ey(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},v.prototype.match=function(e){return this._cache[e]},v.prototype.loadImage=function(e){return De(this,void 0,void 0,function(){var t,n,y,C,A=this;return Pe(this,function(h){switch(h.label){case 0:return t=Fu.isSameOrigin(e),n=!Qo(e)&&this._options.useCORS===!0&&Ie.SUPPORT_CORS_IMAGES&&!t,y=!Qo(e)&&!t&&!Uo(e)&&typeof this._options.proxy=="string"&&Ie.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Qo(e)&&!Uo(e)&&!y&&!n?[2]:(C=e,y?[4,this.proxy(C)]:[3,2]);case 1:C=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(m,g){var w=new Image;w.onload=function(){return m(w)},w.onerror=g,(ty(C)||n)&&(w.crossOrigin="anonymous"),w.src=C,w.complete===!0&&setTimeout(function(){return m(w)},500),A._options.imageTimeout>0&&setTimeout(function(){return g("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,h.sent()]}})})},v.prototype.has=function(e){return typeof this._cache[e]<"u"},v.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},v.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var y=e.substring(0,256);return new Promise(function(C,A){var h=Ie.SUPPORT_RESPONSE_TYPE?"blob":"text",m=new XMLHttpRequest;m.onload=function(){if(m.status===200)if(h==="text")C(m.response);else{var p=new FileReader;p.addEventListener("load",function(){return C(p.result)},!1),p.addEventListener("error",function(u){return A(u)},!1),p.readAsDataURL(m.response)}else A("Failed to proxy resource "+y+" with status code "+m.status)},m.onerror=A;var g=n.indexOf("?")>-1?"&":"?";if(m.open("GET",""+n+g+"url="+encodeURIComponent(e)+"&responseType="+h),h!=="text"&&m instanceof XMLHttpRequest&&(m.responseType=h),t._options.imageTimeout){var w=t._options.imageTimeout;m.timeout=w,m.ontimeout=function(){return A("Timed out ("+w+"ms) proxying "+y)}}m.send()})},v}(),$v=/^data:image\/svg\+xml/i,Zv=/^data:image\/.*;base64,/i,qv=/^data:image\/.*/i,ey=function(v){return Ie.SUPPORT_SVG_DRAWING||!ry(v)},Qo=function(v){return qv.test(v)},ty=function(v){return Zv.test(v)},Uo=function(v){return v.substr(0,4)==="blob"},ry=function(v){return v.substr(-3).toLowerCase()==="svg"||$v.test(v)},te=function(){function v(e,t){this.type=0,this.x=e,this.y=t}return v.prototype.add=function(e,t){return new v(this.x+e,this.y+t)},v}(),Yt=function(v,e,t){return new te(v.x+(e.x-v.x)*t,v.y+(e.y-v.y)*t)},Kn=function(){function v(e,t,n,y){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=y}return v.prototype.subdivide=function(e,t){var n=Yt(this.start,this.startControl,e),y=Yt(this.startControl,this.endControl,e),C=Yt(this.endControl,this.end,e),A=Yt(n,y,e),h=Yt(y,C,e),m=Yt(A,h,e);return t?new v(this.start,n,A,m):new v(m,h,C,this.end)},v.prototype.add=function(e,t){return new v(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},v.prototype.reverse=function(){return new v(this.end,this.endControl,this.startControl,this.start)},v}(),We=function(v){return v.type===1},Ay=function(){function v(e){var t=e.styles,n=e.bounds,y=yr(t.borderTopLeftRadius,n.width,n.height),C=y[0],A=y[1],h=yr(t.borderTopRightRadius,n.width,n.height),m=h[0],g=h[1],w=yr(t.borderBottomRightRadius,n.width,n.height),p=w[0],u=w[1],f=yr(t.borderBottomLeftRadius,n.width,n.height),c=f[0],a=f[1],i=[];i.push((C+m)/n.width),i.push((c+p)/n.width),i.push((A+a)/n.height),i.push((g+u)/n.height);var s=Math.max.apply(Math,i);s>1&&(C/=s,A/=s,m/=s,g/=s,p/=s,u/=s,c/=s,a/=s);var r=n.width-m,o=n.height-u,l=n.width-p,d=n.height-a,B=t.borderTopWidth,_=t.borderRightWidth,b=t.borderBottomWidth,E=t.borderLeftWidth,F=ge(t.paddingTop,e.bounds.width),S=ge(t.paddingRight,e.bounds.width),U=ge(t.paddingBottom,e.bounds.width),T=ge(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=C>0||A>0?ve(n.left+E/3,n.top+B/3,C-E/3,A-B/3,le.TOP_LEFT):new te(n.left+E/3,n.top+B/3),this.topRightBorderDoubleOuterBox=C>0||A>0?ve(n.left+r,n.top+B/3,m-_/3,g-B/3,le.TOP_RIGHT):new te(n.left+n.width-_/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=p>0||u>0?ve(n.left+l,n.top+o,p-_/3,u-b/3,le.BOTTOM_RIGHT):new te(n.left+n.width-_/3,n.top+n.height-b/3),this.bottomLeftBorderDoubleOuterBox=c>0||a>0?ve(n.left+E/3,n.top+d,c-E/3,a-b/3,le.BOTTOM_LEFT):new te(n.left+E/3,n.top+n.height-b/3),this.topLeftBorderDoubleInnerBox=C>0||A>0?ve(n.left+E*2/3,n.top+B*2/3,C-E*2/3,A-B*2/3,le.TOP_LEFT):new te(n.left+E*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=C>0||A>0?ve(n.left+r,n.top+B*2/3,m-_*2/3,g-B*2/3,le.TOP_RIGHT):new te(n.left+n.width-_*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=p>0||u>0?ve(n.left+l,n.top+o,p-_*2/3,u-b*2/3,le.BOTTOM_RIGHT):new te(n.left+n.width-_*2/3,n.top+n.height-b*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||a>0?ve(n.left+E*2/3,n.top+d,c-E*2/3,a-b*2/3,le.BOTTOM_LEFT):new te(n.left+E*2/3,n.top+n.height-b*2/3),this.topLeftBorderStroke=C>0||A>0?ve(n.left+E/2,n.top+B/2,C-E/2,A-B/2,le.TOP_LEFT):new te(n.left+E/2,n.top+B/2),this.topRightBorderStroke=C>0||A>0?ve(n.left+r,n.top+B/2,m-_/2,g-B/2,le.TOP_RIGHT):new te(n.left+n.width-_/2,n.top+B/2),this.bottomRightBorderStroke=p>0||u>0?ve(n.left+l,n.top+o,p-_/2,u-b/2,le.BOTTOM_RIGHT):new te(n.left+n.width-_/2,n.top+n.height-b/2),this.bottomLeftBorderStroke=c>0||a>0?ve(n.left+E/2,n.top+d,c-E/2,a-b/2,le.BOTTOM_LEFT):new te(n.left+E/2,n.top+n.height-b/2),this.topLeftBorderBox=C>0||A>0?ve(n.left,n.top,C,A,le.TOP_LEFT):new te(n.left,n.top),this.topRightBorderBox=m>0||g>0?ve(n.left+r,n.top,m,g,le.TOP_RIGHT):new te(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||u>0?ve(n.left+l,n.top+o,p,u,le.BOTTOM_RIGHT):new te(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=c>0||a>0?ve(n.left,n.top+d,c,a,le.BOTTOM_LEFT):new te(n.left,n.top+n.height),this.topLeftPaddingBox=C>0||A>0?ve(n.left+E,n.top+B,Math.max(0,C-E),Math.max(0,A-B),le.TOP_LEFT):new te(n.left+E,n.top+B),this.topRightPaddingBox=m>0||g>0?ve(n.left+Math.min(r,n.width-_),n.top+B,r>n.width+_?0:Math.max(0,m-_),Math.max(0,g-B),le.TOP_RIGHT):new te(n.left+n.width-_,n.top+B),this.bottomRightPaddingBox=p>0||u>0?ve(n.left+Math.min(l,n.width-E),n.top+Math.min(o,n.height-b),Math.max(0,p-_),Math.max(0,u-b),le.BOTTOM_RIGHT):new te(n.left+n.width-_,n.top+n.height-b),this.bottomLeftPaddingBox=c>0||a>0?ve(n.left+E,n.top+Math.min(d,n.height-b),Math.max(0,c-E),Math.max(0,a-b),le.BOTTOM_LEFT):new te(n.left+E,n.top+n.height-b),this.topLeftContentBox=C>0||A>0?ve(n.left+E+T,n.top+B+F,Math.max(0,C-(E+T)),Math.max(0,A-(B+F)),le.TOP_LEFT):new te(n.left+E+T,n.top+B+F),this.topRightContentBox=m>0||g>0?ve(n.left+Math.min(r,n.width+E+T),n.top+B+F,r>n.width+E+T?0:m-E+T,g-(B+F),le.TOP_RIGHT):new te(n.left+n.width-(_+S),n.top+B+F),this.bottomRightContentBox=p>0||u>0?ve(n.left+Math.min(l,n.width-(E+T)),n.top+Math.min(o,n.height+B+F),Math.max(0,p-(_+S)),u-(b+U),le.BOTTOM_RIGHT):new te(n.left+n.width-(_+S),n.top+n.height-(b+U)),this.bottomLeftContentBox=c>0||a>0?ve(n.left+E+T,n.top+d,Math.max(0,c-(E+T)),a-(b+U),le.BOTTOM_LEFT):new te(n.left+E+T,n.top+n.height-(b+U))}return v}(),le;(function(v){v[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(le||(le={}));var ve=function(v,e,t,n,y){var C=4*((Math.sqrt(2)-1)/3),A=t*C,h=n*C,m=v+t,g=e+n;switch(y){case le.TOP_LEFT:return new Kn(new te(v,g),new te(v,g-h),new te(m-A,e),new te(m,e));case le.TOP_RIGHT:return new Kn(new te(v,e),new te(v+A,e),new te(m,g-h),new te(m,g));case le.BOTTOM_RIGHT:return new Kn(new te(m,e),new te(m,e+h),new te(v+A,g),new te(v,g));case le.BOTTOM_LEFT:default:return new Kn(new te(m,g),new te(m-A,g),new te(v,e+h),new te(v,e))}},Nn=function(v){return[v.topLeftBorderBox,v.topRightBorderBox,v.bottomRightBorderBox,v.bottomLeftBorderBox]},ny=function(v){return[v.topLeftContentBox,v.topRightContentBox,v.bottomRightContentBox,v.bottomLeftContentBox]},Vn=function(v){return[v.topLeftPaddingBox,v.topRightPaddingBox,v.bottomRightPaddingBox,v.bottomLeftPaddingBox]},iy=function(){function v(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return v}(),Gn=function(){function v(e,t){this.path=e,this.target=t,this.type=1}return v}(),oy=function(){function v(e){this.opacity=e,this.type=2,this.target=6}return v}(),sy=function(v){return v.type===0},Su=function(v){return v.type===1},ay=function(v){return v.type===2},Qu=function(v,e){return v.length===e.length?v.some(function(t,n){return t===e[n]}):!1},cy=function(v,e,t,n,y){return v.map(function(C,A){switch(A){case 0:return C.add(e,t);case 1:return C.add(e+n,t);case 2:return C.add(e+n,t+y);case 3:return C.add(e,t+y)}return C})},Uu=function(){function v(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return v}(),Tu=function(){function v(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Ay(this.container),this.container.styles.opacity<1&&this.effects.push(new oy(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,y=this.container.bounds.top+this.container.styles.transformOrigin[1].number,C=this.container.styles.transform;this.effects.push(new iy(n,y,C))}if(this.container.styles.overflowX!==0){var A=Nn(this.curves),h=Vn(this.curves);Qu(A,h)?this.effects.push(new Gn(A,6)):(this.effects.push(new Gn(A,2)),this.effects.push(new Gn(h,4)))}}return v.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,y=this.effects.slice(0);n;){var C=n.effects.filter(function(m){return!Su(m)});if(t||n.container.styles.position!==0||!n.parent){if(y.unshift.apply(y,C),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=Nn(n.curves),h=Vn(n.curves);Qu(A,h)||y.unshift(new Gn(h,6))}}else y.unshift.apply(y,C);n=n.parent}return y.filter(function(m){return Se(m.target,e)})},v}(),To=function(v,e,t,n){v.container.elements.forEach(function(y){var C=Se(y.flags,4),A=Se(y.flags,2),h=new Tu(y,v);Se(y.styles.display,2048)&&n.push(h);var m=Se(y.flags,8)?[]:n;if(C||A){var g=C||y.styles.isPositioned()?t:e,w=new Uu(h);if(y.styles.isPositioned()||y.styles.opacity<1||y.styles.isTransformed()){var p=y.styles.zIndex.order;if(p<0){var u=0;g.negativeZIndex.some(function(c,a){return p>c.element.container.styles.zIndex.order?(u=a,!1):u>0}),g.negativeZIndex.splice(u,0,w)}else if(p>0){var f=0;g.positiveZIndex.some(function(c,a){return p>=c.element.container.styles.zIndex.order?(f=a+1,!1):f>0}),g.positiveZIndex.splice(f,0,w)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else y.styles.isFloating()?g.nonPositionedFloats.push(w):g.nonPositionedInlineLevel.push(w);To(h,w,C?w:t,m)}else y.styles.isInlineLevel()?e.inlineLevel.push(h):e.nonInlineLevel.push(h),To(h,e,t,m);Se(y.flags,8)&&Iu(y,m)})},Iu=function(v,e){for(var t=v instanceof mo?v.start:1,n=v instanceof mo?v.reversed:!1,y=0;y<e.length;y++){var C=e[y];C.container instanceof ru&&typeof C.container.value=="number"&&C.container.value!==0&&(t=C.container.value),C.listValue=_r(t,C.container.styles.listStyleType,!0),t+=n?-1:1}},ly=function(v){var e=new Tu(v,null),t=new Uu(e),n=[];return To(e,t,t,n),Iu(e.container,n),t},Pu=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftPaddingBox,v.topRightBorderBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderBox,v.topRightPaddingBox,v.bottomRightBorderBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightPaddingBox,v.bottomLeftBorderBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftPaddingBox,v.topLeftBorderBox,v.topLeftPaddingBox)}},uy=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox,v.topRightBorderBox,v.topRightBorderDoubleOuterBox);case 1:return ze(v.topRightBorderBox,v.topRightBorderDoubleOuterBox,v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox,v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox,v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox)}},dy=function(v,e){switch(e){case 0:return ze(v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox,v.topRightBorderDoubleInnerBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderDoubleInnerBox,v.topRightPaddingBox,v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox,v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox,v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox)}},fy=function(v,e){switch(e){case 0:return jn(v.topLeftBorderStroke,v.topRightBorderStroke);case 1:return jn(v.topRightBorderStroke,v.bottomRightBorderStroke);case 2:return jn(v.bottomRightBorderStroke,v.bottomLeftBorderStroke);case 3:default:return jn(v.bottomLeftBorderStroke,v.topLeftBorderStroke)}},jn=function(v,e){var t=[];return We(v)?t.push(v.subdivide(.5,!1)):t.push(v),We(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ze=function(v,e,t,n){var y=[];return We(v)?y.push(v.subdivide(.5,!1)):y.push(v),We(t)?y.push(t.subdivide(.5,!0)):y.push(t),We(n)?y.push(n.subdivide(.5,!0).reverse()):y.push(n),We(e)?y.push(e.subdivide(.5,!1).reverse()):y.push(e),y},xu=function(v){var e=v.bounds,t=v.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Wn=function(v){var e=v.styles,t=v.bounds,n=ge(e.paddingLeft,t.width),y=ge(e.paddingRight,t.width),C=ge(e.paddingTop,t.width),A=ge(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,C+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+y),-(e.borderTopWidth+e.borderBottomWidth+C+A))},hy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},py=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},Io=function(v,e,t){var n=hy(Zt(v.styles.backgroundOrigin,e),v),y=py(Zt(v.styles.backgroundClip,e),v),C=gy(Zt(v.styles.backgroundSize,e),t,n),A=C[0],h=C[1],m=yr(Zt(v.styles.backgroundPosition,e),n.width-A,n.height-h),g=vy(Zt(v.styles.backgroundRepeat,e),m,C,n,y),w=Math.round(n.left+m[0]),p=Math.round(n.top+m[1]);return[g,w,p,A,h]},$t=function(v){return fe(v)&&v.value===Wt.AUTO},zn=function(v){return typeof v=="number"},gy=function(v,e,t){var n=e[0],y=e[1],C=e[2],A=v[0],h=v[1];if(!A)return[0,0];if(Fe(A)&&h&&Fe(h))return[ge(A,t.width),ge(h,t.height)];var m=zn(C);if(fe(A)&&(A.value===Wt.CONTAIN||A.value===Wt.COVER)){if(zn(C)){var g=t.width/t.height;return g<C!=(A.value===Wt.COVER)?[t.width,t.width/C]:[t.height*C,t.height]}return[t.width,t.height]}var w=zn(n),p=zn(y),u=w||p;if($t(A)&&(!h||$t(h))){if(w&&p)return[n,y];if(!m&&!u)return[t.width,t.height];if(u&&m){var f=w?n:y*C,c=p?y:n/C;return[f,c]}var a=w?n:t.width,i=p?y:t.height;return[a,i]}if(m){var s=0,r=0;return Fe(A)?s=ge(A,t.width):Fe(h)&&(r=ge(h,t.height)),$t(A)?s=r*C:(!h||$t(h))&&(r=s/C),[s,r]}var o=null,l=null;if(Fe(A)?o=ge(A,t.width):h&&Fe(h)&&(l=ge(h,t.height)),o!==null&&(!h||$t(h))&&(l=w&&p?o/n*y:t.height),l!==null&&$t(A)&&(o=w&&p?l/y*n:t.width),o!==null&&l!==null)return[o,l];throw new Error("Unable to calculate background-size for element")},Zt=function(v,e){var t=v[e];return typeof t>"u"?v[0]:t},vy=function(v,e,t,n,y){var C=e[0],A=e[1],h=t[0],m=t[1];switch(v){case 2:return[new te(Math.round(n.left),Math.round(n.top+A)),new te(Math.round(n.left+n.width),Math.round(n.top+A)),new te(Math.round(n.left+n.width),Math.round(m+n.top+A)),new te(Math.round(n.left),Math.round(m+n.top+A))];case 3:return[new te(Math.round(n.left+C),Math.round(n.top)),new te(Math.round(n.left+C+h),Math.round(n.top)),new te(Math.round(n.left+C+h),Math.round(n.height+n.top)),new te(Math.round(n.left+C),Math.round(n.height+n.top))];case 1:return[new te(Math.round(n.left+C),Math.round(n.top+A)),new te(Math.round(n.left+C+h),Math.round(n.top+A)),new te(Math.round(n.left+C+h),Math.round(n.top+A+m)),new te(Math.round(n.left+C),Math.round(n.top+A+m))];default:return[new te(Math.round(y.left),Math.round(y.top)),new te(Math.round(y.left+y.width),Math.round(y.top)),new te(Math.round(y.left+y.width),Math.round(y.height+y.top)),new te(Math.round(y.left),Math.round(y.height+y.top))]}},yy="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ou="Hidden Text",my=function(){function v(e){this._data={},this._document=e}return v.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),y=this._document.createElement("img"),C=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),y.src=yy,y.width=1,y.height=1,y.style.margin="0",y.style.padding="0",y.style.verticalAlign="baseline",C.style.fontFamily=e,C.style.fontSize=t,C.style.margin="0",C.style.padding="0",C.appendChild(this._document.createTextNode(Ou)),n.appendChild(C),n.appendChild(y);var h=y.offsetTop-C.offsetTop+2;n.removeChild(C),n.appendChild(this._document.createTextNode(Ou)),n.style.lineHeight="normal",y.style.verticalAlign="super";var m=y.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:h,middle:m}},v.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},v}(),Mu=function(){function v(e,t){this.context=e,this.options=t}return v}(),wy=1e4,By=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y._activeEffects=[],y.canvas=n.canvas?n.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),n.canvas||(y.canvas.width=Math.floor(n.width*n.scale),y.canvas.height=Math.floor(n.height*n.scale),y.canvas.style.width=n.width+"px",y.canvas.style.height=n.height+"px"),y.fontMetrics=new my(document),y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-n.x,-n.y),y.ctx.textBaseline="bottom",y._activeEffects=[],y.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),y}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(y){return n.applyEffect(y)})},e.prototype.applyEffect=function(t){this.ctx.save(),ay(t)&&(this.ctx.globalAlpha=t.opacity),sy(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Su(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return De(this,void 0,void 0,function(){var n;return Pe(this,function(y){switch(y.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:y.sent(),y.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return De(this,void 0,void 0,function(){return Pe(this,function(n){switch(n.label){case 0:if(Se(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(t)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,n,y){var C=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+y);else{var A=yo(t.text);A.reduce(function(h,m){return C.ctx.fillText(m,h,t.bounds.top+y),h+C.ctx.measureText(m).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var n=t.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),y=Fy(t.fontFamily).join(", "),C=vr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,C,y].join(" "),y,C]},e.prototype.renderTextNode=function(t,n){return De(this,void 0,void 0,function(){var y,C,A,h,m,g,w,p,u=this;return Pe(this,function(f){return y=this.createFontStyle(n),C=y[0],A=y[1],h=y[2],this.ctx.font=C,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",m=this.fontMetrics.getMetrics(A,h),g=m.baseline,w=m.middle,p=n.paintOrder,t.textBounds.forEach(function(c){p.forEach(function(a){switch(a){case 0:u.ctx.fillStyle=Qe(n.color),u.renderTextWithLetterSpacing(c,n.letterSpacing,g);var i=n.textShadow;i.length&&c.text.trim().length&&(i.slice(0).reverse().forEach(function(s){u.ctx.shadowColor=Qe(s.color),u.ctx.shadowOffsetX=s.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=s.offsetY.number*u.options.scale,u.ctx.shadowBlur=s.blur.number,u.renderTextWithLetterSpacing(c,n.letterSpacing,g)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),n.textDecorationLine.length&&(u.ctx.fillStyle=Qe(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(s){switch(s){case 1:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+g),c.bounds.width,1);break;case 2:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:u.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+w),c.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&c.text.trim().length&&(u.ctx.strokeStyle=Qe(n.webkitTextStrokeColor),u.ctx.lineWidth=n.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+g)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,y){if(y&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var C=Wn(t),A=Vn(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(y,0,0,t.intrinsicWidth,t.intrinsicHeight,C.left,C.top,C.width,C.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return De(this,void 0,void 0,function(){var n,y,C,A,h,m,r,r,g,w,p,u,l,f,c,d,a,i,s,r,o,l,d;return Pe(this,function(B){switch(B.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,y=t.curves,C=n.styles,A=0,h=n.textNodes,B.label=1;case 1:return A<h.length?(m=h[A],[4,this.renderTextNode(m,C)]):[3,4];case 2:B.sent(),B.label=3;case 3:return A++,[3,1];case 4:if(!(n instanceof ql))return[3,8];B.label=5;case 5:return B.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return r=B.sent(),this.renderReplacedElement(n,y,r),[3,8];case 7:return B.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof eu&&this.renderReplacedElement(n,y,n.canvas),!(n instanceof tu))return[3,12];B.label=9;case 9:return B.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return r=B.sent(),this.renderReplacedElement(n,y,r),[3,12];case 11:return B.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof ou&&n.tree?(g=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,g.render(n.tree)]):[3,14];case 13:w=B.sent(),n.width&&n.height&&this.ctx.drawImage(w,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),B.label=14;case 14:if(n instanceof wo&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===Mn?n.checked&&(this.ctx.save(),this.path([new te(n.bounds.left+p*.39363,n.bounds.top+p*.79),new te(n.bounds.left+p*.16,n.bounds.top+p*.5549),new te(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new te(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new te(n.bounds.left+p*.72983,n.bounds.top+p*.23),new te(n.bounds.left+p*.84,n.bounds.top+p*.34085),new te(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=Qe(Au),this.ctx.fill(),this.ctx.restore()):n.type===Hn&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Qe(Au),this.ctx.fill(),this.ctx.restore())),Cy(n)&&n.value.length){switch(u=this.createFontStyle(C),l=u[0],f=u[1],c=this.fontMetrics.getMetrics(l,f).baseline,this.ctx.font=l,this.ctx.fillStyle=Qe(C.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_y(n.styles.textAlign),d=Wn(n),a=0,n.styles.textAlign){case 1:a+=d.width/2;break;case 2:a+=d.width;break}i=d.add(a,0,0,-d.height/2+1),this.ctx.save(),this.path([new te(d.left,d.top),new te(d.left+d.width,d.top),new te(d.left+d.width,d.top+d.height),new te(d.left,d.top+d.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cr(n.value,i),C.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Se(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(s=n.styles.listStyleImage,s.type!==0)return[3,18];r=void 0,o=s.url,B.label=15;case 15:return B.trys.push([15,17,,18]),[4,this.context.cache.match(o)];case 16:return r=B.sent(),this.ctx.drawImage(r,n.bounds.left-(r.width+10),n.bounds.top),[3,18];case 17:return B.sent(),this.context.logger.error("Error loading list-style-image "+o),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==-1&&(l=this.createFontStyle(C)[0],this.ctx.font=l,this.ctx.fillStyle=Qe(C.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",d=new at(n.bounds.left,n.bounds.top+ge(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ol(C.lineHeight,C.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cr(t.listValue,d),C.letterSpacing,Ol(C.lineHeight,C.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),B.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return De(this,void 0,void 0,function(){var n,y,s,C,A,s,h,m,s,g,w,s,p,u,s,f,c,s,a,i,s;return Pe(this,function(r){switch(r.label){case 0:if(Se(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),n=0,y=t.negativeZIndex,r.label=2;case 2:return n<y.length?(s=y[n],[4,this.renderStack(s)]):[3,5];case 3:r.sent(),r.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),C=0,A=t.nonInlineLevel,r.label=7;case 7:return C<A.length?(s=A[C],[4,this.renderNode(s)]):[3,10];case 8:r.sent(),r.label=9;case 9:return C++,[3,7];case 10:h=0,m=t.nonPositionedFloats,r.label=11;case 11:return h<m.length?(s=m[h],[4,this.renderStack(s)]):[3,14];case 12:r.sent(),r.label=13;case 13:return h++,[3,11];case 14:g=0,w=t.nonPositionedInlineLevel,r.label=15;case 15:return g<w.length?(s=w[g],[4,this.renderStack(s)]):[3,18];case 16:r.sent(),r.label=17;case 17:return g++,[3,15];case 18:p=0,u=t.inlineLevel,r.label=19;case 19:return p<u.length?(s=u[p],[4,this.renderNode(s)]):[3,22];case 20:r.sent(),r.label=21;case 21:return p++,[3,19];case 22:f=0,c=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return f<c.length?(s=c[f],[4,this.renderStack(s)]):[3,26];case 24:r.sent(),r.label=25;case 25:return f++,[3,23];case 26:a=0,i=t.positiveZIndex,r.label=27;case 27:return a<i.length?(s=i[a],[4,this.renderStack(s)]):[3,30];case 28:r.sent(),r.label=29;case 29:return a++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var n=this;t.forEach(function(y,C){var A=We(y)?y.start:y;C===0?n.ctx.moveTo(A.x,A.y):n.ctx.lineTo(A.x,A.y),We(y)&&n.ctx.bezierCurveTo(y.startControl.x,y.startControl.y,y.endControl.x,y.endControl.y,y.end.x,y.end.y)})},e.prototype.renderRepeat=function(t,n,y,C){this.path(t),this.ctx.fillStyle=n,this.ctx.translate(y,C),this.ctx.fill(),this.ctx.translate(-y,-C)},e.prototype.resizeImage=function(t,n,y){var C;if(t.width===n&&t.height===y)return t;var A=(C=this.canvas.ownerDocument)!==null&&C!==void 0?C:document,h=A.createElement("canvas");h.width=Math.max(1,n),h.height=Math.max(1,y);var m=h.getContext("2d");return m.drawImage(t,0,0,t.width,t.height,0,0,n,y),h},e.prototype.renderBackgroundImage=function(t){return De(this,void 0,void 0,function(){var n,y,C,A,h,m;return Pe(this,function(g){switch(g.label){case 0:n=t.styles.backgroundImage.length-1,y=function(w){var p,u,f,F,I,M,T,Q,b,c,F,I,M,T,Q,a,i,s,r,o,l,d,B,_,b,E,F,S,U,T,Q,P,I,M,K,W,L,O,H,k,G,R;return Pe(this,function(D){switch(D.label){case 0:if(w.type!==0)return[3,5];p=void 0,u=w.url,D.label=1;case 1:return D.trys.push([1,3,,4]),[4,C.context.cache.match(u)];case 2:return p=D.sent(),[3,4];case 3:return D.sent(),C.context.logger.error("Error loading background-image "+u),[3,4];case 4:return p&&(f=Io(t,n,[p.width,p.height,p.width/p.height]),F=f[0],I=f[1],M=f[2],T=f[3],Q=f[4],b=C.ctx.createPattern(C.resizeImage(p,T,Q),"repeat"),C.renderRepeat(F,b,I,M)),[3,6];case 5:sp(w)?(c=Io(t,n,[null,null,null]),F=c[0],I=c[1],M=c[2],T=c[3],Q=c[4],a=rp(w.angle,T,Q),i=a[0],s=a[1],r=a[2],o=a[3],l=a[4],d=document.createElement("canvas"),d.width=T,d.height=Q,B=d.getContext("2d"),_=B.createLinearGradient(s,o,r,l),bl(w.stops,i).forEach(function(N){return _.addColorStop(N.stop,Qe(N.color))}),B.fillStyle=_,B.fillRect(0,0,T,Q),T>0&&Q>0&&(b=C.ctx.createPattern(d,"repeat"),C.renderRepeat(F,b,I,M))):ap(w)&&(E=Io(t,n,[null,null,null]),F=E[0],S=E[1],U=E[2],T=E[3],Q=E[4],P=w.position.length===0?[ro]:w.position,I=ge(P[0],T),M=ge(P[P.length-1],Q),K=Ap(w,I,M,T,Q),W=K[0],L=K[1],W>0&&L>0&&(O=C.ctx.createRadialGradient(S+I,U+M,0,S+I,U+M,W),bl(w.stops,W*2).forEach(function(N){return O.addColorStop(N.stop,Qe(N.color))}),C.path(F),C.ctx.fillStyle=O,W!==L?(H=t.bounds.left+.5*t.bounds.width,k=t.bounds.top+.5*t.bounds.height,G=L/W,R=1/G,C.ctx.save(),C.ctx.translate(H,k),C.ctx.transform(1,0,0,G,0,0),C.ctx.translate(-H,-k),C.ctx.fillRect(S,R*(U-k)+k,T,Q*R),C.ctx.restore()):C.ctx.fill())),D.label=6;case 6:return n--,[2]}})},C=this,A=0,h=t.styles.backgroundImage.slice(0).reverse(),g.label=1;case 1:return A<h.length?(m=h[A],[5,y(m)]):[3,4];case 2:g.sent(),g.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,n,y){return De(this,void 0,void 0,function(){return Pe(this,function(C){return this.path(Pu(y,n)),this.ctx.fillStyle=Qe(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,n,y,C){return De(this,void 0,void 0,function(){var A,h;return Pe(this,function(m){switch(m.label){case 0:return n<3?[4,this.renderSolidBorder(t,y,C)]:[3,2];case 1:return m.sent(),[2];case 2:return A=uy(C,y),this.path(A),this.ctx.fillStyle=Qe(t),this.ctx.fill(),h=dy(C,y),this.path(h),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return De(this,void 0,void 0,function(){var n,y,C,A,h,m,g,w,p=this;return Pe(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),n=t.container.styles,y=!vt(n.backgroundColor)||n.backgroundImage.length,C=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],A=by(Zt(n.backgroundClip,0),t.curves),y||n.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),vt(n.backgroundColor)||(this.ctx.fillStyle=Qe(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(f){p.ctx.save();var c=Nn(t.curves),a=f.inset?0:wy,i=cy(c,-a+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(p.path(c),p.ctx.clip(),p.mask(i)):(p.mask(c),p.ctx.clip(),p.path(i)),p.ctx.shadowOffsetX=f.offsetX.number+a,p.ctx.shadowOffsetY=f.offsetY.number,p.ctx.shadowColor=Qe(f.color),p.ctx.shadowBlur=f.blur.number,p.ctx.fillStyle=f.inset?Qe(f.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),u.label=2;case 2:h=0,m=0,g=C,u.label=3;case 3:return m<g.length?(w=g[m],w.style!==0&&!vt(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,h,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(w.color,h,t.curves)];case 10:u.sent(),u.label=11;case 11:h++,u.label=12;case 12:return m++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,y,C,A){return De(this,void 0,void 0,function(){var h,m,g,w,p,u,f,c,a,i,s,r,o,l,d,B,d,B;return Pe(this,function(_){return this.ctx.save(),h=fy(C,y),m=Pu(C,y),A===2&&(this.path(m),this.ctx.clip()),We(m[0])?(g=m[0].start.x,w=m[0].start.y):(g=m[0].x,w=m[0].y),We(m[1])?(p=m[1].end.x,u=m[1].end.y):(p=m[1].x,u=m[1].y),y===0||y===2?f=Math.abs(g-p):f=Math.abs(w-u),this.ctx.beginPath(),A===3?this.formatPath(h):this.formatPath(m.slice(0,2)),c=n<3?n*3:n*2,a=n<3?n*2:n,A===3&&(c=n,a=n),i=!0,f<=c*2?i=!1:f<=c*2+a?(s=f/(2*c+a),c*=s,a*=s):(r=Math.floor((f+a)/(c+a)),o=(f-r*c)/(r-1),l=(f-(r+1)*c)/r,a=l<=0||Math.abs(a-o)<Math.abs(a-l)?o:l),i&&(A===3?this.ctx.setLineDash([0,c+a]):this.ctx.setLineDash([c,a])),A===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Qe(t),this.ctx.stroke(),this.ctx.setLineDash([]),A===2&&(We(m[0])&&(d=m[3],B=m[0],this.ctx.beginPath(),this.formatPath([new te(d.end.x,d.end.y),new te(B.start.x,B.start.y)]),this.ctx.stroke()),We(m[1])&&(d=m[1],B=m[2],this.ctx.beginPath(),this.formatPath([new te(d.end.x,d.end.y),new te(B.start.x,B.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return De(this,void 0,void 0,function(){var n;return Pe(this,function(y){switch(y.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Qe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=ly(t),[4,this.renderStack(n)];case 1:return y.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(Mu),Cy=function(v){return v instanceof iu||v instanceof nu?!0:v instanceof wo&&v.type!==Hn&&v.type!==Mn},by=function(v,e){switch(v){case 0:return Nn(e);case 2:return ny(e);case 1:default:return Vn(e)}},_y=function(v){switch(v){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ey=["-apple-system","system-ui"],Fy=function(v){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?v.filter(function(e){return Ey.indexOf(e)===-1}):v},Sy=function(v){Xe(e,v);function e(t,n){var y=v.call(this,t,n)||this;return y.canvas=n.canvas?n.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),y.options=n,y.canvas.width=Math.floor(n.width*n.scale),y.canvas.height=Math.floor(n.height*n.scale),y.canvas.style.width=n.width+"px",y.canvas.style.height=n.height+"px",y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-n.x,-n.y),y.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),y}return e.prototype.render=function(t){return De(this,void 0,void 0,function(){var n,y;return Pe(this,function(C){switch(C.label){case 0:return n=vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Qy(n)];case 1:return y=C.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Qe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(y,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(Mu),Qy=function(v){return new Promise(function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Uy=function(){function v(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return v.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.getTime=function(){return Date.now()-this.start},v.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,en([this.id,this.getTime()+"ms"],e))},v.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.instances={},v}(),Ty=function(){function v(e,t){var n;this.windowBounds=t,this.instanceName="#"+v.instanceCount++,this.logger=new Uy({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new Yv(this,e)}return v.instanceCount=1,v}(),Iy=function(v,e){return e===void 0&&(e={}),Py(v,e)};typeof window<"u"&&Fu.setContext(window);var Py=function(v,e){return De(void 0,void 0,void 0,function(){var t,n,y,C,A,h,m,g,w,p,u,f,c,a,i,s,r,o,l,d,_,B,_,b,E,F,S,U,T,Q,P,I,M,K,W,L,O,H,k,G;return Pe(this,function(R){switch(R.label){case 0:if(!v||typeof v!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=v.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(n=t.defaultView,!n)throw new Error("Document is not attached to a Window");return y={allowTaint:(b=e.allowTaint)!==null&&b!==void 0?b:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(F=e.useCORS)!==null&&F!==void 0?F:!1},C=Mi({logging:(S=e.logging)!==null&&S!==void 0?S:!0,cache:e.cache},y),A={windowWidth:(U=e.windowWidth)!==null&&U!==void 0?U:n.innerWidth,windowHeight:(T=e.windowHeight)!==null&&T!==void 0?T:n.innerHeight,scrollX:(Q=e.scrollX)!==null&&Q!==void 0?Q:n.pageXOffset,scrollY:(P=e.scrollY)!==null&&P!==void 0?P:n.pageYOffset},h=new at(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),m=new Ty(C,h),g=(I=e.foreignObjectRendering)!==null&&I!==void 0?I:!1,w={allowTaint:(M=e.allowTaint)!==null&&M!==void 0?M:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},m.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new _u(m,v,w),u=p.clonedReferenceElement,u?[4,p.toIFrame(t,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=R.sent(),c=Co(u)||xv(u)?cf(u.ownerDocument):tn(m,u),a=c.width,i=c.height,s=c.left,r=c.top,o=xy(m,u,e.backgroundColor),l={canvas:e.canvas,backgroundColor:o,scale:(W=(K=e.scale)!==null&&K!==void 0?K:n.devicePixelRatio)!==null&&W!==void 0?W:1,x:((L=e.x)!==null&&L!==void 0?L:0)+s,y:((O=e.y)!==null&&O!==void 0?O:0)+r,width:(H=e.width)!==null&&H!==void 0?H:Math.ceil(a),height:(k=e.height)!==null&&k!==void 0?k:Math.ceil(i)},g?(m.logger.debug("Document cloned, using foreign object rendering"),_=new Sy(m,l),[4,_.render(u)]):[3,3];case 2:return d=R.sent(),[3,5];case 3:return m.logger.debug("Document cloned, element located at "+s+","+r+" with size "+a+"x"+i+" using computed rendering"),m.logger.debug("Starting DOM parsing"),B=au(m,u),o===B.styles.backgroundColor&&(B.styles.backgroundColor=lt.TRANSPARENT),m.logger.debug("Starting renderer for element at "+l.x+","+l.y+" with size "+l.width+"x"+l.height),_=new By(m,l),[4,_.render(B)];case 4:d=R.sent(),R.label=5;case 5:return(!((G=e.removeContainer)!==null&&G!==void 0)||G)&&(_u.destroy(f)||m.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),m.logger.debug("Finished rendering"),[2,d]}})})},xy=function(v,e,t){var n=e.ownerDocument,y=n.documentElement?mr(v,getComputedStyle(n.documentElement).backgroundColor):lt.TRANSPARENT,C=n.body?mr(v,getComputedStyle(n.body).backgroundColor):lt.TRANSPARENT,A=typeof t=="string"?mr(v,t):t===null?lt.TRANSPARENT:4294967295;return e===n.documentElement?vt(y)?vt(C)?A:C:y:A};const Xr=class Xr extends j.EngineObject{constructor(t,n){super(t,n);z(this,"_imageLabel",this.dv(new j.ESImageLabel(`${this.sceneObject.id}_ESImageLabel`)));z(this,"_hasClassDivAndPos",{});const y=n.viewer;if(!y){console.warn("viewer is undefined!");return}t.mainClass=this._imageLabel;const C=this._imageLabel;n.add(C),this.d(()=>n.delete(C));{const A=()=>{if(!y)return;if(!t.instanceClass)throw new Error("!sceneObject.instanceClass");const g=document.createElement("div"),w=this.dv(new t.instanceClass(g,t,n))._container;if(w.style.opacity=t.opacity.toString()??j.ESGeoDiv.defaults.opacity,w.style.position="fixed",w.style.zIndex="-1",w.style.top="0px",!document.body.contains(w)){document.body.appendChild(w);let u=w?w.querySelectorAll("*[class]"):[];for(let f=0;f<u.length;f++){const c=u[f];var p=c.getBoundingClientRect();this._hasClassDivAndPos[c.className]=[c.offsetLeft,c.offsetTop,c.offsetLeft+p.width,c.offsetTop+p.height]}}Iy(w,{backgroundColor:null,allowTaint:!0,useCORS:!0,width:w.offsetWidth,height:w.offsetHeight,scale:1}).then(u=>{document.body.contains(w)&&document.body.removeChild(w),C.url=u.toDataURL(),C.show=t.show}).catch(()=>{document.body.contains(w)&&document.body.removeChild(w)})},h=()=>{try{t.instanceClass?A():(C.url="",C.show=!1)}catch(g){console.error(g)}};h();const m=this.dv(V.createNextAnimateFrameEvent(t.instanceClassChanged,t.opacityChanged));this.d(m.don(h))}{const A=()=>{C.show=t.show};C.show=!1,this.ad(t.showChanged.don(A))}this.d(V.track([C,"anchor"],[t,"anchor"])),this.d(V.bind([C,"position"],[t,"position"])),this.d(V.bind([C,"rotation"],[t,"rotation"])),this.d(V.bind([C,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([C,"flyInParam"],[t,"flyInParam"])),this.d(V.bind([C,"allowPicking"],[t,"allowPicking"])),this.d(V.bind([C,"scale"],[t,"scale"])),this.d(V.track([C,"minVisibleDistance"],[t,"minVisibleDistance"])),this.d(V.track([C,"maxVisibleDistance"],[t,"maxVisibleDistance"])),this.ad(t.automaticLandingEvent.don(()=>{C.automaticLanding()})),this.d(C.pickedEvent.don(A=>{(t.allowPicking??!1)&&t.pickedEvent.emit(A)})),this.d(n.widgetEvent.don(A=>{if(A.objId!==this._imageLabel.id)return;const{type:h,add:m}=A;if(h==="leftClick"){const g=Object.keys(this._hasClassDivAndPos);for(let w=0;w<g.length;w++){const p=g[w];let u=this._hasClassDivAndPos[p];if(m&&m.mouseRelativePos&&m.mouseRelativePos[0]>=u[0]&&m.mouseRelativePos[0]<=u[2]&&m.mouseRelativePos[1]>=u[1]&&m.mouseRelativePos[1]<=u[3]){m.className=p;break}}}t.widgetEvent.emit({type:h,add:m})})),this.d(t.calcFlyToParamEvent.don(()=>{kt(y,C.id)})),this.d(t.calcFlyInParamEvent.don(()=>{const A=n.getCurrentCameraInfo();if(!A)return;const{position:h,rotation:m}=A;t.flyInParam={position:h,rotation:m,flyDuration:1}})),this.d(t.smoothMoveEvent.don((A,h)=>{YA(y,C.id,A,h)})),this.d(t.smoothMoveWithRotationEvent.don((A,h,m)=>{zA(y,C.id,A,h,m)})),this.d(t.smoothMoveOnGroundEvent.don((A,h,m,g)=>{JA(y,C.id,A,h,g,m)})),this.d(t.smoothMoveWithRotationOnGroundEvent.don((A,h,m,g,w)=>{XA(y,C.id,A,h,m,g,w)})),this.d(t.flyToEvent.don((A,h)=>{C.flyTo(A)})),this.d(t.flyInEvent.don(A=>{C.flyIn(A)}))}};z(Xr,"type",Xr.register("ESUeViewer",j.ESGeoDiv.type,Xr));let Po=Xr;const Yr=class Yr extends Le{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.flyToFeatureIndexEvent.don((y,C)=>{n.callUeFunc({f:"flyToFeatureIndex",p:{id:e.id,index:y,duration:C}})})),this.d(e.flyToFeatureEvent.don((y,C,A)=>{n.callUeFunc({f:"flyToFeature",p:{id:e.id,key:y,value:C,duration:A}})}))}};z(Yr,"type",Yr.register("ESUeViewer",j.ESGeoJson.type,Yr));let xo=Yr;const $r=class $r extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z($r,"type",$r.register("ESUeViewer",j.ESGeoLineString.type,$r));let Jn=$r;const Zr=class Zr extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Zr,"type",Zr.register("ESUeViewer",j.ESGeoRectangle.type,Zr));let Oo=Zr;const qr=class qr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(qr,"type",qr.register("ESUeViewer",j.ESGeoWater.type,qr));let Mo=qr;const Pt=class Pt extends de{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.setNodePositionEvent.don((y,C)=>{Va(n,e.id,y,C)})),this.d(e.setNodeRotationEvent.don((y,C)=>{Ga(n,e.id,y,C)})),this.d(e.setNodeScaleEvent.don((y,C)=>{ja(n,e.id,y,C)}))}};z(Pt,"forceUeUpdateProps",[...de.forceUeUpdateProps,"url"]),z(Pt,"propValFuncs",{...de.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e),czmMaximumScale:null,czmMinimumPixelSize:null,czmNativeScale:null,czmColor:null}),z(Pt,"type",Pt.register("ESUeViewer",j.ESGltfModel.type,Pt));let Ho=Pt;const eA=class eA extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(eA,"type",eA.register("ESUeViewer",j.ESHeightMeasurement.type,eA));let Lo=eA;const tA=class tA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=async(A,h,m,g)=>{const{viewer:w}=A;if(!w){console.error("AIMoveTo: ueViewer.viewer is undefined");return}const p=await w.callUeFunc({f:"AIMoveTo",p:{id:h,Destination:m,Time:g}});return p.error&&console.error("AIMoveTo:",p.error),p};this.d(e.aiMoveToEvent.don((A,h)=>{y(t,e.id,A,h)}));const C=async(A,h)=>{const{viewer:m}=A;if(!m){console.error("StopAIMove: ueViewer.viewer is undefined");return}const g=await m.callUeFunc({f:"StopAIMove",p:{id:h}});return g.error&&console.error("StopAIMove:",g.error),g};this.d(e.stopAIMoveEvent.don(()=>{C(t,e.id)}))}};z(tA,"type",tA.register("ESUeViewer",j.ESHuman.type,tA));let Ro=tA;const xt=class xt extends Ze{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.anchor=[.5,1]}};z(xt,"type",xt.register("ESUeViewer",j.ESImageLabel.type,xt)),z(xt,"forceUeUpdateProps",[...Ze.forceUeUpdateProps,"url"]),z(xt,"propValFuncs",{...Ze.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e)});let Do=xt;const rA=class rA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(rA,"type",rA.register("ESUeViewer",j.ESLevelRuntimeModel.type,rA));let ko=rA;const AA=class AA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(AA,"type",AA.register("ESUeViewer",j.ESLocalCircle.type,AA));let Ko=AA;const nA=class nA extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(nA,"type",nA.register("ESUeViewer",j.ESLocalPolygonZ.type,nA));let No=nA;const iA=class iA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(iA,"type",iA.register("ESUeViewer",j.ESLocalRectangle.type,iA));let Vo=iA;const oA=class oA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(oA,"type",oA.register("ESUeViewer",j.ESLocalSkyBox.type,oA));let Go=oA;const sA=class sA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(sA,"type",sA.register("ESUeViewer",j.ESLocationMeasurement.type,sA));let jo=sA;const aA=class aA extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(aA,"type",aA.register("ESUeViewer",j.ESPipeFence.type,aA));let Wo=aA;const cA=class cA extends Jn{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(cA,"type",cA.register("ESUeViewer",j.ESPipeline.type,cA));let zo=cA;const lA=class lA extends ZA{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.highlightFeatureEvent.don(y=>{const C=typeof y=="number"?y.toString():y;Da(n,e.id,C)})),this.d(e.highlightFeatureAndFlyToEvent.don((y,C,A,h)=>{const m=typeof y=="number"?y.toString():y;ka(n,e.id,m,h??1)})),this.d(e.setLayerVisibleEvent.don((y,C)=>{let A="";typeof C!="string"?A=JSON.stringify(C):A=C,Ka(n,e.id,A)})),this.d(e.setLayerColorEvent.don((y,C)=>{let A="";typeof C!="string"?A=JSON.stringify(C):A=C,Na(n,e.id,A)}))}};z(lA,"type",lA.register("ESUeViewer",j.ESPipeserTileset.type,lA));let Jo=lA;const uA=class uA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(uA,"type",uA.register("ESUeViewer",j.ESPit.type,uA));let Xo=uA;const dA=class dA extends Ze{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.ad(e.getInitialStyleEvent.don(async()=>{try{const y=await n.callUeFunc({f:"GetInitialStyle",p:{id:e.id}});y.error!=""&&console.error("getInitialStyleEvent:",y.error),e.initialStyle.value=structuredClone(y.re)}catch(y){console.error("getInitialStyleEvent:",y),e.initialStyle.value=void 0}}))}};z(dA,"type",dA.register("ESUeViewer",j.ESPoi2D.type,dA));let Yo=dA;const fA=class fA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(fA,"type",fA.register("ESUeViewer",j.ESPoi3D.type,fA));let $o=fA;const Ot=class Ot extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Ot,"type",Ot.register("ESUeViewer",j.ESPoiTileset.type,Ot)),z(Ot,"forceUeUpdateProps",[...Le.forceUeUpdateProps,"url"]),z(Ot,"propValFuncs",{...Le.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e)});let Zo=Ot;const hA=class hA extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(hA,"type",hA.register("ESUeViewer",j.ESPolygonFence.type,hA));let qo=hA;const pA=class pA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(pA,"type",pA.register("ESUeViewer",j.ESPolygonFlattenedPlane.type,pA));let es=pA;const gA=class gA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(gA,"type",gA.register("ESUeViewer",j.ESPolygonWithHole.type,gA));let ts=gA;const vA=class vA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(()=>{e.ids=[]}),this.d(e.highlightInner3DtilesetEvent.don(y=>{y.highlight=!0})),this.d(e.removeHighlightInner3DtilesetEvent.don(y=>{y.highlight=!1}));{const y=h=>{h=h.toLocaleLowerCase();let m=[255,255,255,1];if(h.startsWith("#")){if(h.length===4){let g=parseInt(h[1]+h[1],16),w=parseInt(h[2]+h[2],16),p=parseInt(h[3]+h[3],16);m=[g,w,p,1]}else if(h.length===7){let g=parseInt(h.substring(1,3),16),w=parseInt(h.substring(3,5),16),p=parseInt(h.substring(5,7),16);m=[g,w,p,1]}}else if(h.startsWith("rgba")){let g=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]),f=parseFloat(g[4]);m=[w,p,u,f]}}else if(h.startsWith("rgb")){let g=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]);m=[w,p,u,1]}}else console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");return[m[0]/255,m[1]/255,m[2]/255,m[3]]},C=()=>{const h=e.layerConfig;if(!h)return;const m=[];h.forEach(g=>{m.push({condition:[{field:"layer",op:"==",value:g.layer},{field:"dataset",op:"==",value:g.dataset}],color:y(g.value.color??"rgb(255,255,255)"),show:g.value.visible})}),e.setFeatureStyle(m)};C();const A=this.dv(V.createNextAnimateFrameEvent(e.layerConfigChanged));this.d(A.don(()=>{C()}))}}};z(vA,"type",vA.register("ESUeViewer",j.ESRtsTileset.type,vA));let rs=vA;const yA=class yA extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(e.addTreesEvent.don(y=>{j.addTreesCallFunc(t,e.id,y)})),this.d(e.removeAllTreesEvent.don(()=>{j.removeAllTreesCallFunc(t,e.id)})),this.d(e.updateTreeParamsEvent.don(y=>{j.updateTreeParamsCallFunc(t,e.id,y)})),this.d(e.cutDownTreesEvent.don((y,C)=>{j.cutDownTreesCallFunc(t,e.id,y,C)})),this.d(e.growthSimulationEvent.don((y,C,A)=>{j.growthSimulationCallFunc(t,e.id,y,C,A)}))}};z(yA,"type",yA.register("ESUeViewer",j.ESSeparateFoliage.type,yA));let As=yA;const mA=class mA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(mA,"type",mA.register("ESUeViewer",j.ESSubmergingAnalysis.type,mA));let ns=mA;const wA=class wA extends Ne{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{n.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.stopEvent.don(()=>{n.callUeFunc({f:"Stop",p:{id:e.id}})}))}};z(wA,"type",wA.register("ESUeViewer",j.ESSunshineAnalysis.type,wA));let is=wA;const BA=class BA extends Ne{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{n.callUeFunc({f:"Start",p:{id:e.id}})}))}};z(BA,"type",BA.register("ESUeViewer",j.ESSurfaceAreaMeasurement.type,BA));let os=BA;const CA=class CA extends Ze{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(CA,"type",CA.register("ESUeViewer",j.ESTextLabel.type,CA));let ss=CA;const qt=class qt extends Ze{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.callFunctionEvent.don((y,C)=>{ui(n,e.id,y,C)}))}};z(qt,"type",qt.register("ESUeViewer",j.ESUEWidget.type,qt)),z(qt,"propValFuncs",{...Ze.propValFuncs,info:e=>JSON.stringify(e??{})});let as=qt;const Hu=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"未搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是场景原有的,而是新建的,无法绑定";case 4:return"搜索到ActorTag对应的Actor是地形或3DTileset,无法绑定";default:return"未知错误"}},Oy=v=>{switch(v){case 0:return"创建成功";case 1:return"未找到对应的资源,无法创建";case 2:return"Id与场景中现有的ActorTag重复,创建后可能出现问题,创建失败";default:return"未知错误"}},bA=class bA extends j.EngineObject{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn(`${e.id} UeESUnrealActor viewer is undefined!`);return}this.d(()=>{ci(n,e.id)});const y=async()=>{g()||await n.callUeFunc({f:"update",p:{id:e.id,name:e.name,show:e.show,rotation:e.rotation,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,highlight:e.highlight,collision:e.collision,scale:e.scale,minVisibleDistance:e.minVisibleDistance,maxVisibleDistance:e.maxVisibleDistance}})},C=this.dv(V.createNextAnimateFrameEvent(e.showChanged,e.nameChanged,e.rotationChanged,e.flyToParamChanged,e.flyInParamChanged,e.highlightChanged,e.collisionChanged,e.scaleChanged,e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(C.don(y)),this.d(e.flushEvent.don(()=>C.flush()));let A,h;const m=async()=>{g()||(await n.callUeFunc({f:"update",p:{id:e.id,position:e.position}}),(t.debug??!1)&&console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`))},g=()=>!A&&!h?(console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`),!0):!1,w=async()=>{const{id:u}=e,f=await t.unBindActorByID(u);f&&f.error!==""&&console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${f.error}`),A=void 0;const c=await n.callUeFunc({f:"destroy",p:{id:u}});if(c&&c.error!==""){console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);return}h=void 0},p=this.dv(V.react({type:"ActorClass",actorClass:"default"}));{const u=this.dv(V.createNextAnimateFrameEvent(e.actorClassChanged,e.actorTagChanged)),f=async()=>{e.actorTag!==""?p.value={type:"ActorTag",actorTag:e.actorTag}:p.value={type:"ActorClass",actorClass:e.actorClass===""?"default":e.actorClass}};f(),this.d(u.don(f)),this.d(e.flushEvent.don(()=>u.flush()))}{const u=this.dv(V.createProcessingFromAsyncFunc(async c=>{if(await c.promise(w()),p.value.type==="ActorTag"){const{actorTag:a}=p.value;await c.promise(w());try{e.lastActorStatus="null";const i=await c.promise(t.bindActorByTag(e.id,a));if(!i)return;if(i.error!==""){console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${i.error}`);return}if(i.re.type===0)e.lastActorStatus="bound",A=a;else if(i.re.type===1)e.lastActorStatus="bound",A=a,console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${Hu(i.re.type)}`);else{A=void 0,console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${a}, ${Hu(i.re.type)}`);return}}catch(i){console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${a}, ${i}`);return}}else if(p.value.type==="ActorClass"){const{actorClass:a}=p.value;try{const i=await c.promise(t.createActorByClass(e.id,a));if(!i)return;if(i.error!==""){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${a}, ${i.error}`);return}if(i.re.type===0)e.lastActorStatus="created",h=a;else{console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${a},${Oy(i.re.type)}`);return}}catch(i){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${a}, ${JSON.stringify(i)}`);return}}await c.promise(y()),await c.promise(m())})),f=async()=>{u.restart()};f(),this.d(p.changed.don(f))}this.d(e.positionChanged.don(m)),this.d(e.callFunctionEvent.don((u,f)=>{g()||ui(n,e.id,u,f)})),this.d(e.smoothMoveEvent.don((u,f)=>{g()||YA(n,e.id,u,f)})),this.d(e.smoothMoveWithRotationEvent.don((u,f,c)=>{g()||zA(n,e.id,u,f,c)})),this.d(e.smoothMoveOnGroundEvent.don((u,f,c,a)=>{g()||JA(n,e.id,u,f,a,c)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((u,f,c,a,i)=>{g()||XA(n,e.id,u,f,c,a,i)})),this.d(e.automaticLandingEvent.don(u=>{if(g())return;const f=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(c=>{c!==null&&(e.position=[...f,c],e.collision=u)})})),this.d(e.flyToEvent.don(async(u,f)=>{if(g())return;const c=await Dt(n,e.id,u);let a="over";c===void 0?a="error":c.endType===0?a="over":c.endType===1&&(a="cancelled"),e.flyOverEvent.emit(f,a,t)})),this.d(e.calcFlyToParamEvent.don(()=>{g()||kt(n,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const u=await t.getCurrentCameraInfo();if(!u)return;const{position:f,rotation:c}=u;e.flyInParam={position:f,rotation:c,flyDuration:1}})),this.d(t.propChanged.don(u=>{g()||u.objId===e.id&&Object.keys(u.props).forEach(f=>{const c=u.props[f]===null?void 0:u.props[f];e[f]=c})}))}};z(bA,"type",bA.register("ESUeViewer",j.ESUnrealActor.type,bA));let cs=bA;const _A=class _A extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(_A,"type",_A.register("ESUeViewer",j.ESVideoFusion.type,_A));let ls=_A;const EA=class EA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(EA,"type",EA.register("ESUeViewer",j.ESViewShed.type,EA));let us=EA;const FA=class FA extends Re{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(FA,"type",FA.register("ESUeViewer",j.ESVisibilityAnalysis.type,FA));let ds=FA;const SA=class SA extends Ne{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{n.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{n.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(SA,"type",SA.register("ESUeViewer",j.ESVolumeMeasurement.type,SA));let fs=SA;const er=class er extends Ze{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(er,"type",er.register("ESUeViewer",j.ESWidget.type,er)),z(er,"propValFuncs",{...Ze.propValFuncs,info:e=>JSON.stringify(e??{})});let hs=er;const QA=class QA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.poi.actorTag=e.human.id,e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8],this.d(e.poiOffsetHeightChanged.don(()=>{e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8]})),this.d(()=>{e.poi.actorTag=""})}};z(QA,"type",QA.register("ESUeViewer",j.ESHumanPoi.type,QA));let ps=QA;j.ESSceneObject.context.getStrFromEnv(j.ESNavigator.defaults.imgUrl);const UA=class UA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),this.dispose(V.track([y,"show"],[e,"show"])),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){super(),this._subContainer=A;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g));{const u=async()=>{const f=await t.getCurrentCameraInfo(),c=f==null?void 0:f.position,i=[...f==null?void 0:f.rotation];i[0]=360,t.flyIn(c,i)};g.addEventListener("click",u),g.style.cursor="pointer",this.dispose(()=>g.removeEventListener("click",u))}{const u=()=>{g.style.width=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`,g.style.height=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`};u(),e.dispose(e.cssSizeChanged.disposableOn(u))}g.style.position="fixed";{const u=()=>{g.style.top=`${e.cssPosition?e.cssPosition[0]:j.ESNavigator.defaults.cssPosition[0]}px`,g.style.right=`${e.cssPosition?e.cssPosition[1]:j.ESNavigator.defaults.cssPosition[1]}px`};u(),e.dispose(e.cssPositionChanged.disposableOn(u))}g.style.transition=" right 0.4s linear",g.style.cursor="pointer";const w=document.createElement("div");g.appendChild(w),this.dispose(()=>g.removeChild(w)),w.style.width="100%",w.style.height="100%",w.style.position="relative";const p=document.createElement("img");w.appendChild(p),this.dispose(()=>w.removeChild(p)),p.style.width="100%",p.style.height="100%",p.style.border="none";{const u=()=>p.src=e.imgUrl;u(),e.dispose(e.imgUrlChanged.disposableOn(u))}{const u=()=>{const i=-t.getCurrentCameraInfo().rotation[0];p.style.transform=`rotate(${i}deg)`};let f;const c=async()=>{u(),e.show?(g.style.display="block",f=setInterval(()=>{u()},1e3)):(g.style.display="none",clearInterval(f))};this.dispose(e.showChanged.disposableOn(c)),c(),this.dispose(()=>clearInterval(f))}p.style.transformOrigin="50% 50%"}}}};z(UA,"type",UA.register("ESUeViewer",j.ESNavigator.type,UA));let gs=UA;const Mt=class Mt extends Re{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}{const y=()=>{let C=e.materialMode==="blue"?"multipleArrows":e.materialMode==="purple"?"singleArrow":e.materialMode;n.callUeFunc({f:"update",p:{id:e.id,materialMode:C}})};this.dispose(e.materialModeChanged.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}}};z(Mt,"type",Mt.register("ESUeViewer",j.ESPath.type,Mt)),z(Mt,"forceUeUpdateProps",[...Re.forceUeUpdateProps]),z(Mt,"propValFuncs",{...Re.propValFuncs,materialMode:null});let vs=Mt;async function My(v){navigator.clipboard.writeText(v).then(function(){console.log("复制成功")},function(e){console.log("复制失败")})}const TA=class TA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){if(super(),this._subContainer=A,!m||!(m instanceof st))return;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g)),g.style.width="100%",g.style.position="absolute",g.style.height=`${j.ESViewerStatusBar.defaults.height}px`,g.style.left="0",g.style.bottom="0",g.style.color="#fff",g.style.padding="0 20px 0 0",g.style.boxSizing="border-box",g.style.lineHeight=`${j.ESViewerStatusBar.defaults.height}px`,g.style.zIndex="100",g.style.alignContent="center",g.style.justifyContent="space-between";const w=document.createElement("span");g.appendChild(w),this.dispose(()=>g.removeChild(w));const p=document.createElement("span");w.appendChild(p),this.dispose(()=>w.removeChild(p));const u=document.createElement("span");w.appendChild(u),u.addEventListener("dblclick",function(){let c=u.innerHTML;c.startsWith("鼠标位置")&&(c=c.slice(5)),My(c)}),u.style.cursor="pointer",this.dispose(()=>w.removeChild(u));const f=document.createElement("span");g.appendChild(f),this.dispose(()=>g.removeChild(f));{const c=()=>{g.style.height=(e.height??j.ESViewerStatusBar.defaults.height)+"px",g.style.lineHeight=(e.height??j.ESViewerStatusBar.defaults.height)+"px"};this.dispose(e.heightChanged.disposableOn(c)),c()}{const c=()=>{g.style.fontSize=(e.fontSize??j.ESViewerStatusBar.defaults.fontSize)+"px"};this.dispose(e.fontSizeChanged.disposableOn(c)),c()}{const c=()=>{e.bgColor?g.style.background=`rgba(${e.bgColor[0]*255},${e.bgColor[1]*255},${e.bgColor[2]*255},${e.bgColor[3]})`:g.style.background=`rgba(${j.ESViewerStatusBar.defaults.bgColor[0]},${j.ESViewerStatusBar.defaults.bgColor[1]},${j.ESViewerStatusBar.defaults.bgColor[2]},${j.ESViewerStatusBar.defaults.bgColor[3]})`};this.dispose(e.bgColorChanged.disposableOn(c)),c()}m.getVersion().then(c=>{c&&(f.innerText=`Ue 版本 : ${c[0]} `)}).catch(c=>{console.log(c)});{const c=()=>{let s="",r="";s+=`帧率:${m.getFPS().toFixed(0)}FPS`,p.innerText=s;const o=t.getCurrentCameraInfo();s+=` 经度: ${o.position[0].toFixed(5)}° 纬度: ${o.position[1].toFixed(5)}° 高度: ${o.position[2].toFixed(2)}米 偏航角: ${o.rotation[0].toFixed(2)}° 俯仰角: ${o.rotation[1].toFixed(2)}° 翻滚角:${o.rotation[2].toFixed(2)}° `,p.innerText=s,t.pick().then(l=>{if(l){const{pickResult:d}=l;if(d&&d.position){const{position:B}=d;r+=`鼠标位置:${B[0].toFixed(5)}° ${B[1].toFixed(5)}° ${B[2].toFixed(2)}m`}else r+="暂时无法获取鼠标位置...";u.innerText=r}}).catch(l=>{console.log(l)})};let a;const i=async()=>{c(),e.show?(g.style.display="flex",a=setInterval(()=>{c()},1e3)):(g.style.display="none",clearInterval(a))};this.dispose(e.showChanged.disposableOn(i)),i(),this.dispose(()=>clearInterval(a))}}}}};z(TA,"type",TA.register("ESUeViewer",j.ESViewerStatusBar.type,TA));let ys=TA;const IA=class IA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(IA,"type",IA.register("ESUeViewer",j.ESGaussianSplatting.type,IA));let ms=IA;const PA=class PA extends _t{constructor(t,n){super(t,n);z(this,"_es3DTileset",this.dv(new j.ES3DTileset(`${this.sceneObject.id}_ES3DTileset`)));if(!n.viewer){console.warn("viewer is undefined!");return}t.mainClass=this._es3DTileset;{const C=this._es3DTileset;n.add(C),this.dispose(()=>n.delete(C)),this.d(V.track([C,"allowPicking"],[t,"allowPicking"])),this.d(V.track([C,"collision"],[t,"collision"])),this.d(V.bind([C,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([C,"flyToParam"],[t,"flyToParam"])),this.d(V.track([C,"url"],[t,"url"])),this.d(V.track([C,"actorTag"],[t,"actorTag"])),this.d(V.track([C,"materialMode"],[t,"materialMode"])),this.d(V.track([C,"highlight"],[t,"highlight"])),this.d(V.track([C,"maximumScreenSpaceError"],[t,"maximumScreenSpaceError"])),this.d(V.track([C,"highlightID"],[t,"highlightID"])),this.d(V.track([C,"highlightColor"],[t,"highlightColor"])),this.d(V.bind([C,"offset"],[t,"offset"])),this.d(V.bind([C,"rotation"],[t,"rotation"])),this.d(V.track([C,"czmImageBasedLightingFactor"],[t,"czmImageBasedLightingFactor"])),this.d(V.track([C,"czmLuminanceAtZenith"],[t,"czmLuminanceAtZenith"])),this.d(V.track([C,"czmMaximumMemoryUsage"],[t,"czmMaximumMemoryUsage"])),this.d(V.track([C,"czmClassificationType"],[t,"czmClassificationType"])),this.d(V.track([C,"czmStyleJson"],[t,"czmStyleJson"])),this.d(V.track([C,"czmBackFaceCulling"],[t,"czmBackFaceCulling"])),this.d(V.track([C,"czmDebugShowBoundingVolume"],[t,"czmDebugShowBoundingVolume"])),this.d(V.track([C,"czmDebugShowContentBoundingVolume"],[t,"czmDebugShowContentBoundingVolume"])),this.d(V.track([C,"colorBlendMode"],[t,"colorBlendMode"])),this.d(V.track([C,"cacheBytes"],[t,"cacheBytes"])),this.d(V.track([C,"clippingPlaneEnabled"],[t,"clippingPlaneEnabled"])),this.d(V.track([C,"unionClippingRegions"],[t,"unionClippingRegions"])),this.d(V.track([C,"clippingPlaneEdgeColor"],[t,"clippingPlaneEdgeColor"])),this.d(V.track([C,"clippingPlaneEdgeWidth"],[t,"clippingPlaneEdgeWidth"])),this.d(V.track([C,"materialParams"],[t,"materialParams"])),this.d(V.bind([C,"supportEdit"],[t,"supportEdit"])),this.d(V.bind([C,"clippingPlanesId"],[t,"clippingPlanesId"])),this.d(V.bind([C,"clippingPlaneIds"],[t,"clippingPlaneIds"])),this.d(V.bind([C,"flattenedPlaneId"],[t,"flattenedPlaneId"])),this.d(V.bind([C,"flattenedPlaneEnabled"],[t,"flattenedPlaneEnabled"])),this.d(V.bind([C,"clippingPlaneId"],[t,"clippingPlaneId"])),this.d(V.bind([C,"excavateId"],[t,"excavateId"]))}{const C=this._es3DTileset;this.d(t.refreshTilesetEvent.don(()=>{C.refreshTileset()})),this.d(t.highlightFeatureEvent.don((...A)=>{C.highlightFeature(...A)})),this.d(t.highlightFeatureAndFlyToEvent.don((...A)=>{C.highlightFeatureAndFlyTo(...A)})),this.d(t.setFeatureColorEvent.don((...A)=>{C.setFeatureColor(...A)})),this.d(t.setFeatureVisableEvent.don((...A)=>{C.setFeatureVisable(...A)})),this.d(t.resetFeatureStyleEvent.don((...A)=>{C.resetFeatureStyle(...A)})),this.d(t.flyInEvent.don((...A)=>{C.flyIn(A[0])})),this.d(t.flyToEvent.don((...A)=>{C.flyTo(A[0])})),this.d(t.calcFlyToParamEvent.don((...A)=>{C.calcFlyToParam(...A)})),this.d(t.calcFlyInParamEvent.don((...A)=>{C.calcFlyInParam(...A)}))}{const C=this._es3DTileset;this.d(C.tilesetReady.don(A=>{t.tilesetReady.emit(A)})),this.d(C.pickedEvent.don(A=>{t.pickedEvent.emit(new j.SceneObjectPickedInfo(t,A.childPickedInfo))}))}{const C=()=>{this.es3DTileset.show=t.show};C(),this.d(t.showChanged.don(()=>{C()}))}}get es3DTileset(){return this._es3DTileset}};z(PA,"type",PA.register("ESUeViewer",j.ESRtsFeatureEditing.type,PA));let ws=PA;const xA=class xA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(xA,"type",xA.register("ESUeViewer",j.ESMsTileset.type,xA));let Bs=xA;const OA=class OA extends Ne{constructor(e,t){super(e,t);const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}const y=()=>{n.callUeFunc({f:"update",p:{id:e.id,height:e.height??j.ESGeoExtrudedPolygon.defaults.height,extrudedHeight:e.extrudedHeight??j.ESGeoExtrudedPolygon.defaults.extrudedHeight,perPositionHeight:e.perPositionHeight??j.ESGeoExtrudedPolygon.defaults.perPositionHeight}})},C=this.disposeVar(V.createNextAnimateFrameEvent(e.heightChanged,e.extrudedHeightChanged,e.perPositionHeightChanged));this.dispose(C.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}};z(OA,"type",OA.register("ESUeViewer",j.ESGeoExtrudedPolygon.type,OA));let Cs=OA;const MA=class MA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(MA,"type",MA.register("ESUeViewer",j.ESStaticMesh.type,MA));let bs=MA;J.copyright=void 0;try{const v="@u-gis/ue",e="3.0.7-beta.1",t="2025-05-21T10:39:13.000Z",n="北京西部世界科技有限公司",y="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",C="117e212fa2bb7ff08f74ad36621c968d0c66a151",h=((Date.now()-1747823953e3)/36e5).toFixed(1),m=`%c🌏 ${v}%c ${e}.${C.slice(0,8)}.${t} (距今${h}个小时)
329
+ %c${y?y+`
330
+ `:""}当前网站正在使用${v},此软件版权归${n}所有
331
+ `;J.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","117e212fa2bb7ff08f74ad36621c968d0c66a151")},get info(){return m},get date(){return"2025-05-21T10:39:13.000Z"},get author(){return"suplyang"},get version(){return"3.0.7-beta.1"},get name(){return"@u-gis/ue"},get commitId(){return"117e212fa2bb7ff08f74ad36621c968d0c66a151"},print(g=!1){!g&&window._xe2_no_copy_print||console.info(this.info,`
332
+ font-size: 18px;
333
+ font-weight: 1000;
334
+ line-height: 1;
335
+ color: rgb(0, 120, 215);
336
+ padding-top: 20px;
337
+ padding-bottom: 10px;
338
+ `,`
339
+ font-size: 10px;
340
+ font-weight: 1000;
341
+ color: rgb(0, 120, 215);
342
+ `,`
343
+ font-size: 10px;
344
+ line-height: 1.5;
345
+ color: rgb(0, 120, 215);
346
+ padding-bottom: 2px;
347
+ padding-left: 35px;
348
+ `)}}),window.g_XE3CopyRights=window.g_XE3CopyRights||{},window.g_XE3CopyRights[v]=J.copyright,window.g_earthsdk_copyright_print=window.g_earthsdk_copyright_print??!0,window.g_earthsdk_copyright_print&&J.copyright.print()}catch{}return J.ESUeViewer=st,J.HighlightFeatureAndFlyToCallFunc=ka,J.HighlightFeatureCallFunc=Da,J.SetLayerColorCallFunc=Na,J.SetLayerVisibleCallFunc=Ka,J.UeCloudViewerBase=nr,J.UeES3DTileset=ZA,J.UeESAlarm=pi,J.UeESApertureEffect=gi,J.UeESAreaMeasurement=vi,J.UeESBlastParticleSystem=yi,J.UeESBoxClipping=mi,J.UeESCameraView=wi,J.UeESCameraVisibleRange=Bi,J.UeESCar=Ci,J.UeESClassification=bi,J.UeESClippingPlane=_i,J.UeESDataMesh=Ei,J.UeESDatasmithRuntimeModel=Fi,J.UeESDirectionMeasurement=Si,J.UeESDistanceMeasurement=Qi,J.UeESDynamicWater=Ui,J.UeESEntityCluster=Ti,J.UeESExcavate=Ii,J.UeESFireParticleSystem=Pi,J.UeESForestTileset=xi,J.UeESGaussianSplatting=ms,J.UeESGeoDiv=Po,J.UeESGeoExtrudedPolygon=Cs,J.UeESGeoJson=xo,J.UeESGeoLineString=Jn,J.UeESGeoPolygon=Ne,J.UeESGeoRectangle=Oo,J.UeESGeoVector=Re,J.UeESGeoWater=Mo,J.UeESGltfModel=Ho,J.UeESHeightMeasurement=Lo,J.UeESHuman=Ro,J.UeESHumanPoi=ps,J.UeESImageLabel=Do,J.UeESImageryLayer=fi,J.UeESLabel=Ze,J.UeESLevelRuntimeModel=ko,J.UeESLocalCircle=Ko,J.UeESLocalPolygon=qA,J.UeESLocalPolygonZ=No,J.UeESLocalRectangle=Vo,J.UeESLocalSkyBox=Go,J.UeESLocalVector=di,J.UeESLocalVector2D=$A,J.UeESLocationMeasurement=jo,J.UeESMsTileset=Bs,J.UeESNavigator=gs,J.UeESObjectWithLocation=de,J.UeESPath=vs,J.UeESPipeFence=Wo,J.UeESPipeline=zo,J.UeESPipeserTileset=Jo,J.UeESPit=Xo,J.UeESPoi2D=Yo,J.UeESPoi3D=$o,J.UeESPoiTileset=Zo,J.UeESPolygonFence=qo,J.UeESPolygonFlattenedPlane=es,J.UeESPolygonWithHole=ts,J.UeESRtsFeatureEditing=ws,J.UeESRtsTileset=rs,J.UeESSceneObject=_t,J.UeESSeparateFoliage=As,J.UeESStaticMesh=bs,J.UeESSubmergingAnalysis=ns,J.UeESSunshineAnalysis=is,J.UeESSurfaceAreaMeasurement=os,J.UeESTerrainLayer=hi,J.UeESTextLabel=ss,J.UeESUEWidget=as,J.UeESUnrealActor=cs,J.UeESVideoFusion=ls,J.UeESViewShed=us,J.UeESViewerStatusBar=ys,J.UeESVisibilityAnalysis=ds,J.UeESVisualObject=Le,J.UeESVolumeMeasurement=fs,J.UeESWidget=hs,J.UePickedInfo=Vd,J.bind3DTilesetByTagCallFunc=pc,J.bindActorByTagCallFunc=lc,J.bindImageryByTagCallFunc=yc,J.calcFlyToParamCallFunc=kt,J.callFunctionCallFunc=ui,J.captureCallFunc=Za,J.changeNavigationModeCallFunc=ot,J.createActorByClassCallFunc=hc,J.destroyCallFunc=ci,J.flyInCallFunc=Ar,J.flyInDefaultCameraCallFunc=Oa,J.flyToCallFunc=Dt,J.generateMemReportCallFunc=Ra,J.getAllSocketNamesByActorTagCallFunc=rc,J.getBoundSphereCallFunc=nc,J.getBoundSphereWithChildrenCallFunc=ic,J.getCameraRelativeHeightCallFunc=Cc,J.getFillMaterialParamInfoCallFunc=sc,J.getGlobalPropertyCallFunc=ac,J.getHeightByLonLatCallFunc=Ya,J.getHeightByLonLatsCallFunc=$a,J.getIdByComponentNameAndHitItemCallFunc=Bc,J.getLonLatAltToScreenPositionCallFunc=ec,J.getObjectByInfoCallFunc=cc,J.getStatusCallFunc=Fc,J.getStrokeMaterialParamInfoCallFunc=oc,J.getTilesetMaterialIDListCallFunc=Tc,J.getVersionCallFunc=Ac,J.highlightActorByTagCallFunc=_c,J.mountPakFiles=La,J.moveObjectsCallFunc=Uc,J.partialCaptureCallFunc=qa,J.pickCallFunc=Ja,J.pickPositionCallFunc=Xa,J.quitCallFunc=za,J.refreshTilesetCallFunc=xa,J.resetWithCurrentCameraCallFunc=li,J.restoreOriginalSceneCallFunc=uc,J.saveStringToFileCallFunc=bc,J.sendCustomMessageCallFunc=Ec,J.setGlobalPropertyCallFunc=Wa,J.setNodePositionCallFunc=Va,J.setNodeRotationCallFunc=Ga,J.setNodeScaleCallFunc=ja,J.smoothMoveCallFunc=YA,J.smoothMoveOnGroundCallFunc=JA,J.smoothMoveWithRotationCallFunc=zA,J.smoothMoveWithRotationOnGroundCallFunc=XA,J.startEditingCallFunc=Sc,J.startVoiceCallFunc=Ma,J.stopEditingCallFunc=Qc,J.stopVoiceCallFunc=Ha,J.uePositionToLonLatAltCallFunc=tc,J.unBind3DTilesetByIdCallFunc=vc,J.unBind3DTilesetByTagCallFunc=gc,J.unBindActorByIDCallFunc=dc,J.unBindActorByTagCallFunc=fc,J.unBindImageryByIdCallFunc=wc,J.unBindImageryByTagCallFunc=mc,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}),J}({},EarthSDK3);