@roomle/web-sdk 2.99.0 → 2.100.0

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 (281) hide show
  1. package/lib/Object3D-2abce9d8.nomodule.js +2 -0
  2. package/lib/Object3D-2abce9d8.nomodule.js.map +1 -0
  3. package/lib/Object3D-80e9d0f8.js +2 -0
  4. package/lib/Object3D-80e9d0f8.js.map +1 -0
  5. package/lib/SpotLightHelper-56c85cfb.nomodule.js +2 -0
  6. package/lib/SpotLightHelper-56c85cfb.nomodule.js.map +1 -0
  7. package/lib/SpotLightHelper-79188e47.js +2 -0
  8. package/lib/SpotLightHelper-79188e47.js.map +1 -0
  9. package/lib/{banana-for-scale-22ad6a20.nomodule.js → banana-for-scale-795d9c6c.nomodule.js} +2 -2
  10. package/lib/{banana-for-scale-22ad6a20.nomodule.js.map → banana-for-scale-795d9c6c.nomodule.js.map} +1 -1
  11. package/lib/{banana-for-scale-da4282fd.js → banana-for-scale-c5d8d13e.js} +2 -2
  12. package/lib/{banana-for-scale-da4282fd.js.map → banana-for-scale-c5d8d13e.js.map} +1 -1
  13. package/lib/camera-behaviour-ceced6f1.nomodule.js +2 -0
  14. package/lib/{camera-behaviour-90408ba5.nomodule.js.map → camera-behaviour-ceced6f1.nomodule.js.map} +1 -1
  15. package/lib/camera-behaviour-fe3f4008.js +2 -0
  16. package/lib/{camera-behaviour-2f2ffe82.js.map → camera-behaviour-fe3f4008.js.map} +1 -1
  17. package/lib/{component-dimensioning-a5e291d6.nomodule.js → component-dimensioning-5417ce83.nomodule.js} +2 -2
  18. package/lib/component-dimensioning-5417ce83.nomodule.js.map +1 -0
  19. package/lib/{component-dimensioning-ca877f31.js → component-dimensioning-b575bfa7.js} +2 -2
  20. package/lib/component-dimensioning-b575bfa7.js.map +1 -0
  21. package/lib/{component-raycast-helper-785b39cd.js → component-raycast-helper-8faecce8.js} +2 -2
  22. package/lib/component-raycast-helper-8faecce8.js.map +1 -0
  23. package/lib/{component-raycast-helper-40f9eb14.nomodule.js → component-raycast-helper-cde6065c.nomodule.js} +2 -2
  24. package/lib/component-raycast-helper-cde6065c.nomodule.js.map +1 -0
  25. package/lib/configurator-0ad4d1f9.nomodule.js +2 -0
  26. package/lib/configurator-0ad4d1f9.nomodule.js.map +1 -0
  27. package/lib/configurator-4565594d.js +2 -0
  28. package/lib/configurator-4565594d.js.map +1 -0
  29. package/lib/configurator-main-c79ddf0c.js +2 -0
  30. package/lib/configurator-main-c79ddf0c.js.map +1 -0
  31. package/lib/configurator-main.nomodule.js +1 -1
  32. package/lib/continuous-drawing-helper-6a23cf51.js +2 -0
  33. package/lib/continuous-drawing-helper-6a23cf51.js.map +1 -0
  34. package/lib/continuous-drawing-helper-70637238.nomodule.js +2 -0
  35. package/lib/continuous-drawing-helper-70637238.nomodule.js.map +1 -0
  36. package/lib/default-light-setting-755cfddc.js +2 -0
  37. package/lib/default-light-setting-755cfddc.js.map +1 -0
  38. package/lib/default-light-setting-e6087240.nomodule.js +2 -0
  39. package/lib/default-light-setting-e6087240.nomodule.js.map +1 -0
  40. package/lib/definitions/common-core/src/cameracontrol/camera-control-3d.d.ts +2 -1
  41. package/lib/definitions/common-core/src/cameracontrol/configurator-camera-behaviour.d.ts +1 -1
  42. package/lib/definitions/common-core/src/utils/common-utils.d.ts +1 -0
  43. package/lib/definitions/common-core/src/utils/init-data.d.ts +3 -0
  44. package/lib/definitions/common-core/src/utils/shims.d.ts +8 -3
  45. package/lib/definitions/common-core/src/webgl/image-renderer.d.ts +1 -0
  46. package/lib/definitions/common-core/src/webgl/roomle-webgl-renderer.d.ts +3 -0
  47. package/lib/definitions/common-core/src/webgl/scene-manager.d.ts +1 -0
  48. package/lib/definitions/packages/common-core/src/cameracontrol/camera-control-3d.d.ts +2 -1
  49. package/lib/definitions/packages/common-core/src/cameracontrol/configurator-camera-behaviour.d.ts +1 -1
  50. package/lib/definitions/packages/common-core/src/utils/common-utils.d.ts +1 -0
  51. package/lib/definitions/packages/common-core/src/utils/init-data.d.ts +3 -0
  52. package/lib/definitions/packages/common-core/src/utils/shims.d.ts +8 -3
  53. package/lib/definitions/packages/common-core/src/webgl/image-renderer.d.ts +1 -0
  54. package/lib/definitions/packages/common-core/src/webgl/roomle-webgl-renderer.d.ts +3 -0
  55. package/lib/definitions/packages/common-core/src/webgl/scene-manager.d.ts +1 -0
  56. package/lib/definitions/packages/planner-core/src/lights/ceiling-light.d.ts +19 -0
  57. package/lib/definitions/packages/planner-core/src/lights/lamp-light.d.ts +9 -0
  58. package/lib/definitions/packages/planner-core/src/lights/light-group.d.ts +11 -0
  59. package/lib/definitions/packages/planner-core/src/lights/rect-area-light.d.ts +7 -0
  60. package/lib/definitions/packages/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
  61. package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +10 -2
  62. package/lib/definitions/packages/planner-core/src/utils/{planner-scene-manager.d.ts → planner-scene-utils.d.ts} +5 -2
  63. package/lib/definitions/packages/planner-core/src/view-model/floor-plan-element-view-model.d.ts +1 -0
  64. package/lib/definitions/packages/planner-core/src/view-model/plan-view-model.d.ts +21 -0
  65. package/lib/definitions/packages/planner-core/src/webgl/planner-scene-manager.d.ts +3 -6
  66. package/lib/definitions/packages/typings/planner.d.ts +7 -1
  67. package/lib/definitions/planner-core/src/lights/ceiling-light.d.ts +19 -0
  68. package/lib/definitions/planner-core/src/lights/lamp-light.d.ts +9 -0
  69. package/lib/definitions/planner-core/src/lights/light-group.d.ts +11 -0
  70. package/lib/definitions/planner-core/src/lights/rect-area-light.d.ts +7 -0
  71. package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
  72. package/lib/definitions/planner-core/src/roomle-planner.d.ts +10 -2
  73. package/lib/definitions/planner-core/src/utils/{planner-scene-manager.d.ts → planner-scene-utils.d.ts} +5 -2
  74. package/lib/definitions/planner-core/src/view-model/floor-plan-element-view-model.d.ts +1 -0
  75. package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +21 -0
  76. package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +3 -6
  77. package/lib/definitions/typings/planner.d.ts +7 -1
  78. package/lib/dimensioning-helper-089673fa.nomodule.js +2 -0
  79. package/lib/dimensioning-helper-089673fa.nomodule.js.map +1 -0
  80. package/lib/dimensioning-helper-ba9dbb6f.js +2 -0
  81. package/lib/{dimensioning-helper-fb456f28.js.map → dimensioning-helper-ba9dbb6f.js.map} +1 -1
  82. package/lib/glb-viewer-232298a7.nomodule.js +2 -0
  83. package/lib/{glb-viewer-58aa56b3.nomodule.js.map → glb-viewer-232298a7.nomodule.js.map} +1 -1
  84. package/lib/glb-viewer-bc27fd7c.js +2 -0
  85. package/lib/{glb-viewer-d4c6c346.js.map → glb-viewer-bc27fd7c.js.map} +1 -1
  86. package/lib/{glb-viewer-camera-behaviour-1b347e77.nomodule.js → glb-viewer-camera-behaviour-b9f0adaa.nomodule.js} +2 -2
  87. package/lib/glb-viewer-camera-behaviour-b9f0adaa.nomodule.js.map +1 -0
  88. package/lib/{glb-viewer-camera-behaviour-24e823bc.js → glb-viewer-camera-behaviour-f8871d34.js} +2 -2
  89. package/lib/glb-viewer-camera-behaviour-f8871d34.js.map +1 -0
  90. package/lib/glb-viewer-main-058270a7.js +2 -0
  91. package/lib/glb-viewer-main-058270a7.js.map +1 -0
  92. package/lib/glb-viewer-main.nomodule.js +1 -1
  93. package/lib/{imos-ix-poc-export-helper-b7a91cdb.nomodule.js → imos-ix-poc-export-helper-29ce417b.nomodule.js} +2 -2
  94. package/lib/imos-ix-poc-export-helper-29ce417b.nomodule.js.map +1 -0
  95. package/lib/{imos-ix-poc-export-helper-7b16b54e.js → imos-ix-poc-export-helper-43b4c646.js} +2 -2
  96. package/lib/imos-ix-poc-export-helper-43b4c646.js.map +1 -0
  97. package/lib/legacy/Object3D-1f141c55.legacy.js +2 -0
  98. package/lib/legacy/Object3D-1f141c55.legacy.js.map +1 -0
  99. package/lib/legacy/SpotLightHelper-28698e83.legacy.js +2 -0
  100. package/lib/legacy/SpotLightHelper-28698e83.legacy.js.map +1 -0
  101. package/lib/legacy/TextGeometry-559f28ce.legacy.js +2 -0
  102. package/lib/legacy/{TextGeometry-778d127b.legacy.js.map → TextGeometry-559f28ce.legacy.js.map} +1 -1
  103. package/lib/legacy/{banana-for-scale-b274801d.legacy.js → banana-for-scale-8a3d4091.legacy.js} +2 -2
  104. package/lib/legacy/{banana-for-scale-b274801d.legacy.js.map → banana-for-scale-8a3d4091.legacy.js.map} +1 -1
  105. package/lib/legacy/budgeteer-measure.legacy.js +1 -1
  106. package/lib/legacy/camera-behaviour-363a4e78.legacy.js +2 -0
  107. package/lib/legacy/{camera-behaviour-b47dbdd3.legacy.js.map → camera-behaviour-363a4e78.legacy.js.map} +1 -1
  108. package/lib/legacy/{component-dimensioning-a3ba2ba6.legacy.js → component-dimensioning-f92c2840.legacy.js} +2 -2
  109. package/lib/legacy/component-dimensioning-f92c2840.legacy.js.map +1 -0
  110. package/lib/legacy/{component-raycast-helper-a5178cda.legacy.js → component-raycast-helper-91c67dd6.legacy.js} +2 -2
  111. package/lib/legacy/component-raycast-helper-91c67dd6.legacy.js.map +1 -0
  112. package/lib/legacy/configurator-bdb72223.legacy.js +2 -0
  113. package/lib/legacy/configurator-bdb72223.legacy.js.map +1 -0
  114. package/lib/legacy/configurator-main.legacy.js +1 -1
  115. package/lib/legacy/continuous-drawing-helper-e8db250c.legacy.js +2 -0
  116. package/lib/legacy/continuous-drawing-helper-e8db250c.legacy.js.map +1 -0
  117. package/lib/legacy/default-light-setting-07ced87c.legacy.js +2 -0
  118. package/lib/legacy/default-light-setting-07ced87c.legacy.js.map +1 -0
  119. package/lib/legacy/dimensioning-helper-bb3492c7.legacy.js +2 -0
  120. package/lib/legacy/dimensioning-helper-bb3492c7.legacy.js.map +1 -0
  121. package/lib/legacy/external-objects-01d5a216.legacy.js +2 -0
  122. package/lib/legacy/external-objects-01d5a216.legacy.js.map +1 -0
  123. package/lib/legacy/{glb-viewer-camera-behaviour-4be0da6a.legacy.js → glb-viewer-camera-behaviour-8a35f77c.legacy.js} +2 -2
  124. package/lib/legacy/glb-viewer-camera-behaviour-8a35f77c.legacy.js.map +1 -0
  125. package/lib/legacy/glb-viewer-d69f6cae.legacy.js +2 -0
  126. package/lib/legacy/{glb-viewer-d3854b02.legacy.js.map → glb-viewer-d69f6cae.legacy.js.map} +1 -1
  127. package/lib/legacy/glb-viewer-main.legacy.js +1 -1
  128. package/lib/legacy/{imos-ix-poc-export-helper-ee70d653.legacy.js → imos-ix-poc-export-helper-ca5160da.legacy.js} +2 -2
  129. package/lib/legacy/imos-ix-poc-export-helper-ca5160da.legacy.js.map +1 -0
  130. package/lib/legacy/{main-thread-to-worker-da6ad96a.legacy.js → main-thread-to-worker-32b45184.legacy.js} +3 -3
  131. package/lib/legacy/{main-thread-to-worker-da6ad96a.legacy.js.map → main-thread-to-worker-32b45184.legacy.js.map} +1 -1
  132. package/lib/legacy/material-viewer-770e3a93.legacy.js +2 -0
  133. package/lib/legacy/material-viewer-770e3a93.legacy.js.map +1 -0
  134. package/lib/legacy/material-viewer-main.legacy.js +1 -1
  135. package/lib/legacy/planner-53e1ae1f.legacy.js +2 -0
  136. package/lib/legacy/{planner-f0a71818.legacy.js.map → planner-53e1ae1f.legacy.js.map} +1 -1
  137. package/lib/legacy/planner-main.legacy.js +1 -1
  138. package/lib/legacy/query-params-helper-ad6b6b64.legacy.js +2 -0
  139. package/lib/legacy/query-params-helper-ad6b6b64.legacy.js.map +1 -0
  140. package/lib/legacy/roomle-configurator-2ab0523e.legacy.js +2 -0
  141. package/lib/legacy/roomle-configurator-2ab0523e.legacy.js.map +1 -0
  142. package/lib/legacy/roomle-dependency-injection-39798155.legacy.js +9 -0
  143. package/lib/legacy/{roomle-dependency-injection-058aa06f.legacy.js.map → roomle-dependency-injection-39798155.legacy.js.map} +1 -1
  144. package/lib/legacy/roomle-sdk.legacy.js +1 -1
  145. package/lib/legacy/{script-loader-9921991a.legacy.js → script-loader-6f4bb7db.legacy.js} +2 -2
  146. package/lib/legacy/script-loader-6f4bb7db.legacy.js.map +1 -0
  147. package/lib/legacy/static/ConfiguratorKernel-eb2b45aa8bdd5c73.wasm +0 -0
  148. package/lib/legacy/static/RoomleCore-a4df483fa6f93517.wasm +0 -0
  149. package/lib/legacy/static/RoomleToolsCore-9ea339d54e57756a.wasm +0 -0
  150. package/lib/legacy/{stats-helper-c7bf779b.legacy.js → stats-helper-e75d2585.legacy.js} +2 -2
  151. package/lib/legacy/stats-helper-e75d2585.legacy.js.map +1 -0
  152. package/lib/legacy/{tools-core-645fb16a.legacy.js → tools-core-c5e76ffc.legacy.js} +2 -2
  153. package/lib/legacy/tools-core-c5e76ffc.legacy.js.map +1 -0
  154. package/lib/material-viewer-a489d3c2.nomodule.js +2 -0
  155. package/lib/material-viewer-a489d3c2.nomodule.js.map +1 -0
  156. package/lib/material-viewer-f818f681.js +2 -0
  157. package/lib/material-viewer-f818f681.js.map +1 -0
  158. package/lib/material-viewer-main-a4985787.js +2 -0
  159. package/lib/material-viewer-main-a4985787.js.map +1 -0
  160. package/lib/material-viewer-main.nomodule.js +1 -1
  161. package/lib/planner-32c9b79e.nomodule.js +2 -0
  162. package/lib/{planner-cb1acb4d.nomodule.js.map → planner-32c9b79e.nomodule.js.map} +1 -1
  163. package/lib/planner-9b39cf77.js +2 -0
  164. package/lib/{planner-a30840a8.js.map → planner-9b39cf77.js.map} +1 -1
  165. package/lib/planner-main-32eac04d.js +2 -0
  166. package/lib/planner-main-32eac04d.js.map +1 -0
  167. package/lib/planner-main.nomodule.js +1 -1
  168. package/lib/roomle-configurator-2d336119.nomodule.js +2 -0
  169. package/lib/roomle-configurator-2d336119.nomodule.js.map +1 -0
  170. package/lib/roomle-configurator-3bf23b9e.js +2 -0
  171. package/lib/roomle-configurator-3bf23b9e.js.map +1 -0
  172. package/lib/{roomle-dependency-injection-8fd89dfe.js → roomle-dependency-injection-c52a0000.js} +3 -3
  173. package/lib/{roomle-dependency-injection-8fd89dfe.js.map → roomle-dependency-injection-c52a0000.js.map} +1 -1
  174. package/lib/roomle-dependency-injection-e789a72d.nomodule.js +9 -0
  175. package/lib/{roomle-dependency-injection-22befdc7.nomodule.js.map → roomle-dependency-injection-e789a72d.nomodule.js.map} +1 -1
  176. package/lib/{roomle-sdk-3f72ba15.js → roomle-sdk-b28548bd.js} +2 -2
  177. package/lib/roomle-sdk-b28548bd.js.map +1 -0
  178. package/lib/roomle-sdk.nomodule.js +1 -1
  179. package/lib/{script-loader-36a9dcdc.js → script-loader-524d3415.js} +2 -2
  180. package/lib/script-loader-524d3415.js.map +1 -0
  181. package/lib/{script-loader-8e8886dd.nomodule.js → script-loader-f57678af.nomodule.js} +2 -2
  182. package/lib/script-loader-f57678af.nomodule.js.map +1 -0
  183. package/lib/static/ConfiguratorKernel-eb2b45aa8bdd5c73.wasm +0 -0
  184. package/lib/static/RoomleCore-a4df483fa6f93517.wasm +0 -0
  185. package/lib/static/RoomleToolsCore-9ea339d54e57756a.wasm +0 -0
  186. package/lib/{stats-helper-b5614bb9.js → stats-helper-8557e89e.js} +2 -2
  187. package/lib/stats-helper-8557e89e.js.map +1 -0
  188. package/lib/{stats-helper-1a0748a7.nomodule.js → stats-helper-a6ed29fb.nomodule.js} +2 -2
  189. package/lib/stats-helper-a6ed29fb.nomodule.js.map +1 -0
  190. package/lib/{tools-core-43082fe5.js → tools-core-26ff177e.js} +2 -2
  191. package/lib/tools-core-26ff177e.js.map +1 -0
  192. package/lib/{tools-core-a5f68507.nomodule.js → tools-core-feefe6d1.nomodule.js} +2 -2
  193. package/lib/tools-core-feefe6d1.nomodule.js.map +1 -0
  194. package/package.json +2 -2
  195. package/lib/camera-behaviour-2f2ffe82.js +0 -2
  196. package/lib/camera-behaviour-90408ba5.nomodule.js +0 -2
  197. package/lib/component-dimensioning-a5e291d6.nomodule.js.map +0 -1
  198. package/lib/component-dimensioning-ca877f31.js.map +0 -1
  199. package/lib/component-raycast-helper-40f9eb14.nomodule.js.map +0 -1
  200. package/lib/component-raycast-helper-785b39cd.js.map +0 -1
  201. package/lib/configurator-2d025a93.nomodule.js +0 -2
  202. package/lib/configurator-2d025a93.nomodule.js.map +0 -1
  203. package/lib/configurator-3e5c27eb.js +0 -2
  204. package/lib/configurator-3e5c27eb.js.map +0 -1
  205. package/lib/configurator-main-f75e4553.js +0 -2
  206. package/lib/configurator-main-f75e4553.js.map +0 -1
  207. package/lib/continuous-drawing-helper-ae2fcdd3.js +0 -2
  208. package/lib/continuous-drawing-helper-ae2fcdd3.js.map +0 -1
  209. package/lib/continuous-drawing-helper-c71ae2ed.nomodule.js +0 -2
  210. package/lib/continuous-drawing-helper-c71ae2ed.nomodule.js.map +0 -1
  211. package/lib/default-light-setting-98201048.nomodule.js +0 -2
  212. package/lib/default-light-setting-98201048.nomodule.js.map +0 -1
  213. package/lib/default-light-setting-ba00bf2b.js +0 -2
  214. package/lib/default-light-setting-ba00bf2b.js.map +0 -1
  215. package/lib/dimensioning-helper-4d7e768a.nomodule.js +0 -2
  216. package/lib/dimensioning-helper-4d7e768a.nomodule.js.map +0 -1
  217. package/lib/dimensioning-helper-fb456f28.js +0 -2
  218. package/lib/glb-viewer-58aa56b3.nomodule.js +0 -2
  219. package/lib/glb-viewer-camera-behaviour-1b347e77.nomodule.js.map +0 -1
  220. package/lib/glb-viewer-camera-behaviour-24e823bc.js.map +0 -1
  221. package/lib/glb-viewer-d4c6c346.js +0 -2
  222. package/lib/glb-viewer-main-64179adf.js +0 -2
  223. package/lib/glb-viewer-main-64179adf.js.map +0 -1
  224. package/lib/imos-ix-poc-export-helper-7b16b54e.js.map +0 -1
  225. package/lib/imos-ix-poc-export-helper-b7a91cdb.nomodule.js.map +0 -1
  226. package/lib/legacy/TextGeometry-778d127b.legacy.js +0 -2
  227. package/lib/legacy/camera-behaviour-b47dbdd3.legacy.js +0 -2
  228. package/lib/legacy/component-dimensioning-a3ba2ba6.legacy.js.map +0 -1
  229. package/lib/legacy/component-raycast-helper-a5178cda.legacy.js.map +0 -1
  230. package/lib/legacy/configurator-002d161a.legacy.js +0 -2
  231. package/lib/legacy/configurator-002d161a.legacy.js.map +0 -1
  232. package/lib/legacy/continuous-drawing-helper-654d7604.legacy.js +0 -2
  233. package/lib/legacy/continuous-drawing-helper-654d7604.legacy.js.map +0 -1
  234. package/lib/legacy/default-light-setting-af961df8.legacy.js +0 -2
  235. package/lib/legacy/default-light-setting-af961df8.legacy.js.map +0 -1
  236. package/lib/legacy/dimensioning-helper-4baa9955.legacy.js +0 -2
  237. package/lib/legacy/dimensioning-helper-4baa9955.legacy.js.map +0 -1
  238. package/lib/legacy/external-objects-2fd4ef1a.legacy.js +0 -2
  239. package/lib/legacy/external-objects-2fd4ef1a.legacy.js.map +0 -1
  240. package/lib/legacy/glb-viewer-camera-behaviour-4be0da6a.legacy.js.map +0 -1
  241. package/lib/legacy/glb-viewer-d3854b02.legacy.js +0 -2
  242. package/lib/legacy/imos-ix-poc-export-helper-ee70d653.legacy.js.map +0 -1
  243. package/lib/legacy/material-viewer-117426bc.legacy.js +0 -2
  244. package/lib/legacy/material-viewer-117426bc.legacy.js.map +0 -1
  245. package/lib/legacy/planner-f0a71818.legacy.js +0 -2
  246. package/lib/legacy/query-params-helper-e3e05119.legacy.js +0 -2
  247. package/lib/legacy/query-params-helper-e3e05119.legacy.js.map +0 -1
  248. package/lib/legacy/roomle-configurator-6db65c94.legacy.js +0 -2
  249. package/lib/legacy/roomle-configurator-6db65c94.legacy.js.map +0 -1
  250. package/lib/legacy/roomle-dependency-injection-058aa06f.legacy.js +0 -9
  251. package/lib/legacy/script-loader-9921991a.legacy.js.map +0 -1
  252. package/lib/legacy/static/ConfiguratorKernel-e0b064b9d4228a3b.wasm +0 -0
  253. package/lib/legacy/static/RoomleCore-e599a6ccf3dd7c2a.wasm +0 -0
  254. package/lib/legacy/static/RoomleToolsCore-83af26798774f70c.wasm +0 -0
  255. package/lib/legacy/stats-helper-c7bf779b.legacy.js.map +0 -1
  256. package/lib/legacy/tools-core-645fb16a.legacy.js.map +0 -1
  257. package/lib/material-viewer-8c7e05be.nomodule.js +0 -2
  258. package/lib/material-viewer-8c7e05be.nomodule.js.map +0 -1
  259. package/lib/material-viewer-d211106c.js +0 -2
  260. package/lib/material-viewer-d211106c.js.map +0 -1
  261. package/lib/material-viewer-main-9668a68c.js +0 -2
  262. package/lib/material-viewer-main-9668a68c.js.map +0 -1
  263. package/lib/planner-a30840a8.js +0 -2
  264. package/lib/planner-cb1acb4d.nomodule.js +0 -2
  265. package/lib/planner-main-5c76b2c2.js +0 -2
  266. package/lib/planner-main-5c76b2c2.js.map +0 -1
  267. package/lib/roomle-configurator-a11055fd.nomodule.js +0 -2
  268. package/lib/roomle-configurator-a11055fd.nomodule.js.map +0 -1
  269. package/lib/roomle-configurator-ab3900ec.js +0 -2
  270. package/lib/roomle-configurator-ab3900ec.js.map +0 -1
  271. package/lib/roomle-dependency-injection-22befdc7.nomodule.js +0 -9
  272. package/lib/roomle-sdk-3f72ba15.js.map +0 -1
  273. package/lib/script-loader-36a9dcdc.js.map +0 -1
  274. package/lib/script-loader-8e8886dd.nomodule.js.map +0 -1
  275. package/lib/static/ConfiguratorKernel-e0b064b9d4228a3b.wasm +0 -0
  276. package/lib/static/RoomleCore-e599a6ccf3dd7c2a.wasm +0 -0
  277. package/lib/static/RoomleToolsCore-83af26798774f70c.wasm +0 -0
  278. package/lib/stats-helper-1a0748a7.nomodule.js.map +0 -1
  279. package/lib/stats-helper-b5614bb9.js.map +0 -1
  280. package/lib/tools-core-43082fe5.js.map +0 -1
  281. package/lib/tools-core-a5f68507.nomodule.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ System.register([],(function(t){return{execute:function(){t({c:h,h:function(t,s){return(t%s+s)%s},i:r,l:function(t,s,i){return(1-i)*t+i*s},r:function(t,s){switch(s.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}},s:function(t,s){switch(s.constructor){case Float32Array:return t;case Uint32Array:return Math.round(4294967295*t);case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int32Array:return Math.round(2147483647*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}}),t("F",0),t("j",1),t("A",100),t("k",204),t("m",205),t("n",3),t("q",1015),t("N",""),t("f","srgb"),t("L","srgb-linear"),t("e","linear"),t("g","srgb"),t("K",7680),t("o",519),t("p",35044);const s=t("W",2e3),i=t("a",2001),e=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];function r(){const t=4294967295*Math.random()|0,s=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(e[255&t]+e[t>>8&255]+e[t>>16&255]+e[t>>24&255]+"-"+e[255&s]+e[s>>8&255]+"-"+e[s>>16&15|64]+e[s>>24&255]+"-"+e[63&i|128]+e[i>>8&255]+"-"+e[i>>16&255]+e[i>>24&255]+e[255&r]+e[r>>8&255]+e[r>>16&255]+e[r>>24&255]).toLowerCase()}function h(t,s,i){return Math.max(s,Math.min(i,t))}t("D",Math.PI/180),t("R",180/Math.PI);class n{constructor(t=0,s=0,i=0,e=1){this.isQuaternion=!0,this._x=t,this._y=s,this._z=i,this._w=e}static slerpFlat(t,s,i,e,r,h,n){let a=i[e+0],o=i[e+1],l=i[e+2],u=i[e+3];const c=r[h+0],m=r[h+1],x=r[h+2],y=r[h+3];if(0===n)return t[s+0]=a,t[s+1]=o,t[s+2]=l,void(t[s+3]=u);if(1===n)return t[s+0]=c,t[s+1]=m,t[s+2]=x,void(t[s+3]=y);if(u!==y||a!==c||o!==m||l!==x){let t=1-n;const s=a*c+o*m+l*x+u*y,i=s>=0?1:-1,e=1-s*s;if(e>Number.EPSILON){const r=Math.sqrt(e),h=Math.atan2(r,s*i);t=Math.sin(t*h)/r,n=Math.sin(n*h)/r}const r=n*i;if(a=a*t+c*r,o=o*t+m*r,l=l*t+x*r,u=u*t+y*r,t===1-n){const t=1/Math.sqrt(a*a+o*o+l*l+u*u);a*=t,o*=t,l*=t,u*=t}}t[s]=a,t[s+1]=o,t[s+2]=l,t[s+3]=u}static multiplyQuaternionsFlat(t,s,i,e,r,h){const n=i[e],a=i[e+1],o=i[e+2],l=i[e+3],u=r[h],c=r[h+1],m=r[h+2],x=r[h+3];return t[s]=n*x+l*u+a*m-o*c,t[s+1]=a*x+l*c+o*u-n*m,t[s+2]=o*x+l*m+n*c-a*u,t[s+3]=l*x-n*u-a*c-o*m,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,s,i,e){return this._x=t,this._y=s,this._z=i,this._w=e,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,s=!0){const i=t._x,e=t._y,r=t._z,h=t._order,n=Math.cos,a=Math.sin,o=n(i/2),l=n(e/2),u=n(r/2),c=a(i/2),m=a(e/2),x=a(r/2);switch(h){case"XYZ":this._x=c*l*u+o*m*x,this._y=o*m*u-c*l*x,this._z=o*l*x+c*m*u,this._w=o*l*u-c*m*x;break;case"YXZ":this._x=c*l*u+o*m*x,this._y=o*m*u-c*l*x,this._z=o*l*x-c*m*u,this._w=o*l*u+c*m*x;break;case"ZXY":this._x=c*l*u-o*m*x,this._y=o*m*u+c*l*x,this._z=o*l*x+c*m*u,this._w=o*l*u-c*m*x;break;case"ZYX":this._x=c*l*u-o*m*x,this._y=o*m*u+c*l*x,this._z=o*l*x-c*m*u,this._w=o*l*u+c*m*x;break;case"YZX":this._x=c*l*u+o*m*x,this._y=o*m*u+c*l*x,this._z=o*l*x-c*m*u,this._w=o*l*u-c*m*x;break;case"XZY":this._x=c*l*u-o*m*x,this._y=o*m*u-c*l*x,this._z=o*l*x+c*m*u,this._w=o*l*u+c*m*x;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+h)}return!0===s&&this._onChangeCallback(),this}setFromAxisAngle(t,s){const i=s/2,e=Math.sin(i);return this._x=t.x*e,this._y=t.y*e,this._z=t.z*e,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const s=t.elements,i=s[0],e=s[4],r=s[8],h=s[1],n=s[5],a=s[9],o=s[2],l=s[6],u=s[10],c=i+n+u;if(c>0){const t=.5/Math.sqrt(c+1);this._w=.25/t,this._x=(l-a)*t,this._y=(r-o)*t,this._z=(h-e)*t}else if(i>n&&i>u){const t=2*Math.sqrt(1+i-n-u);this._w=(l-a)/t,this._x=.25*t,this._y=(e+h)/t,this._z=(r+o)/t}else if(n>u){const t=2*Math.sqrt(1+n-i-u);this._w=(r-o)/t,this._x=(e+h)/t,this._y=.25*t,this._z=(a+l)/t}else{const t=2*Math.sqrt(1+u-i-n);this._w=(h-e)/t,this._x=(r+o)/t,this._y=(a+l)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,s){let i=t.dot(s)+1;return i<Number.EPSILON?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*s.z-t.z*s.y,this._y=t.z*s.x-t.x*s.z,this._z=t.x*s.y-t.y*s.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(h(this.dot(t),-1,1)))}rotateTowards(t,s){const i=this.angleTo(t);if(0===i)return this;const e=Math.min(1,s/i);return this.slerp(t,e),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,s){const i=t._x,e=t._y,r=t._z,h=t._w,n=s._x,a=s._y,o=s._z,l=s._w;return this._x=i*l+h*n+e*o-r*a,this._y=e*l+h*a+r*n-i*o,this._z=r*l+h*o+i*a-e*n,this._w=h*l-i*n-e*a-r*o,this._onChangeCallback(),this}slerp(t,s){if(0===s)return this;if(1===s)return this.copy(t);const i=this._x,e=this._y,r=this._z,h=this._w;let n=h*t._w+i*t._x+e*t._y+r*t._z;if(n<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,n=-n):this.copy(t),n>=1)return this._w=h,this._x=i,this._y=e,this._z=r,this;const a=1-n*n;if(a<=Number.EPSILON){const t=1-s;return this._w=t*h+s*this._w,this._x=t*i+s*this._x,this._y=t*e+s*this._y,this._z=t*r+s*this._z,this.normalize(),this}const o=Math.sqrt(a),l=Math.atan2(o,n),u=Math.sin((1-s)*l)/o,c=Math.sin(s*l)/o;return this._w=h*u+this._w*c,this._x=i*u+this._x*c,this._y=e*u+this._y*c,this._z=r*u+this._z*c,this._onChangeCallback(),this}slerpQuaternions(t,s,i){return this.copy(t).slerp(s,i)}random(){const t=2*Math.PI*Math.random(),s=2*Math.PI*Math.random(),i=Math.random(),e=Math.sqrt(1-i),r=Math.sqrt(i);return this.set(e*Math.sin(t),e*Math.cos(t),r*Math.sin(s),r*Math.cos(s))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,s=0){return this._x=t[s],this._y=t[s+1],this._z=t[s+2],this._w=t[s+3],this._onChangeCallback(),this}toArray(t=[],s=0){return t[s]=this._x,t[s+1]=this._y,t[s+2]=this._z,t[s+3]=this._w,t}fromBufferAttribute(t,s){return this._x=t.getX(s),this._y=t.getY(s),this._z=t.getZ(s),this._w=t.getW(s),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class a{constructor(t=0,s=0,i=0){a.prototype.isVector3=!0,this.x=t,this.y=s,this.z=i}set(t,s,i){return void 0===i&&(i=this.z),this.x=t,this.y=s,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,s){switch(t){case 0:this.x=s;break;case 1:this.y=s;break;case 2:this.z=s;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,s){return this.x=t.x+s.x,this.y=t.y+s.y,this.z=t.z+s.z,this}addScaledVector(t,s){return this.x+=t.x*s,this.y+=t.y*s,this.z+=t.z*s,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,s){return this.x=t.x-s.x,this.y=t.y-s.y,this.z=t.z-s.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,s){return this.x=t.x*s.x,this.y=t.y*s.y,this.z=t.z*s.z,this}applyEuler(t){return this.applyQuaternion(l.setFromEuler(t))}applyAxisAngle(t,s){return this.applyQuaternion(l.setFromAxisAngle(t,s))}applyMatrix3(t){const s=this.x,i=this.y,e=this.z,r=t.elements;return this.x=r[0]*s+r[3]*i+r[6]*e,this.y=r[1]*s+r[4]*i+r[7]*e,this.z=r[2]*s+r[5]*i+r[8]*e,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const s=this.x,i=this.y,e=this.z,r=t.elements,h=1/(r[3]*s+r[7]*i+r[11]*e+r[15]);return this.x=(r[0]*s+r[4]*i+r[8]*e+r[12])*h,this.y=(r[1]*s+r[5]*i+r[9]*e+r[13])*h,this.z=(r[2]*s+r[6]*i+r[10]*e+r[14])*h,this}applyQuaternion(t){const s=this.x,i=this.y,e=this.z,r=t.x,h=t.y,n=t.z,a=t.w,o=2*(h*e-n*i),l=2*(n*s-r*e),u=2*(r*i-h*s);return this.x=s+a*o+h*u-n*l,this.y=i+a*l+n*o-r*u,this.z=e+a*u+r*l-h*o,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const s=this.x,i=this.y,e=this.z,r=t.elements;return this.x=r[0]*s+r[4]*i+r[8]*e,this.y=r[1]*s+r[5]*i+r[9]*e,this.z=r[2]*s+r[6]*i+r[10]*e,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,s){return this.x=h(this.x,t.x,s.x),this.y=h(this.y,t.y,s.y),this.z=h(this.z,t.z,s.z),this}clampScalar(t,s){return this.x=h(this.x,t,s),this.y=h(this.y,t,s),this.z=h(this.z,t,s),this}clampLength(t,s){const i=this.length();return this.divideScalar(i||1).multiplyScalar(h(i,t,s))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,s){return this.x+=(t.x-this.x)*s,this.y+=(t.y-this.y)*s,this.z+=(t.z-this.z)*s,this}lerpVectors(t,s,i){return this.x=t.x+(s.x-t.x)*i,this.y=t.y+(s.y-t.y)*i,this.z=t.z+(s.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,s){const i=t.x,e=t.y,r=t.z,h=s.x,n=s.y,a=s.z;return this.x=e*a-r*n,this.y=r*h-i*a,this.z=i*n-e*h,this}projectOnVector(t){const s=t.lengthSq();if(0===s)return this.set(0,0,0);const i=t.dot(this)/s;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return o.copy(this).projectOnVector(t),this.sub(o)}reflect(t){return this.sub(o.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const s=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===s)return Math.PI/2;const i=this.dot(t)/s;return Math.acos(h(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const s=this.x-t.x,i=this.y-t.y,e=this.z-t.z;return s*s+i*i+e*e}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,s,i){const e=Math.sin(s)*t;return this.x=e*Math.sin(i),this.y=Math.cos(s)*t,this.z=e*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,s,i){return this.x=t*Math.sin(s),this.y=i,this.z=t*Math.cos(s),this}setFromMatrixPosition(t){const s=t.elements;return this.x=s[12],this.y=s[13],this.z=s[14],this}setFromMatrixScale(t){const s=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),e=this.setFromMatrixColumn(t,2).length();return this.x=s,this.y=i,this.z=e,this}setFromMatrixColumn(t,s){return this.fromArray(t.elements,4*s)}setFromMatrix3Column(t,s){return this.fromArray(t.elements,3*s)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,s=0){return this.x=t[s],this.y=t[s+1],this.z=t[s+2],this}toArray(t=[],s=0){return t[s]=this.x,t[s+1]=this.y,t[s+2]=this.z,t}fromBufferAttribute(t,s){return this.x=t.getX(s),this.y=t.getY(s),this.z=t.getZ(s),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,s=2*Math.random()-1,i=Math.sqrt(1-s*s);return this.x=i*Math.cos(t),this.y=s,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}t("V",a);const o=new a,l=new n;class u{constructor(t,s,i,e,r,h,n,a,o,l,c,m,x,y,d,p){u.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==t&&this.set(t,s,i,e,r,h,n,a,o,l,c,m,x,y,d,p)}set(t,s,i,e,r,h,n,a,o,l,u,c,m,x,y,d){const p=this.elements;return p[0]=t,p[4]=s,p[8]=i,p[12]=e,p[1]=r,p[5]=h,p[9]=n,p[13]=a,p[2]=o,p[6]=l,p[10]=u,p[14]=c,p[3]=m,p[7]=x,p[11]=y,p[15]=d,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new u).fromArray(this.elements)}copy(t){const s=this.elements,i=t.elements;return s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=i[4],s[5]=i[5],s[6]=i[6],s[7]=i[7],s[8]=i[8],s[9]=i[9],s[10]=i[10],s[11]=i[11],s[12]=i[12],s[13]=i[13],s[14]=i[14],s[15]=i[15],this}copyPosition(t){const s=this.elements,i=t.elements;return s[12]=i[12],s[13]=i[13],s[14]=i[14],this}setFromMatrix3(t){const s=t.elements;return this.set(s[0],s[3],s[6],0,s[1],s[4],s[7],0,s[2],s[5],s[8],0,0,0,0,1),this}extractBasis(t,s,i){return t.setFromMatrixColumn(this,0),s.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,s,i){return this.set(t.x,s.x,i.x,0,t.y,s.y,i.y,0,t.z,s.z,i.z,0,0,0,0,1),this}extractRotation(t){const s=this.elements,i=t.elements,e=1/c.setFromMatrixColumn(t,0).length(),r=1/c.setFromMatrixColumn(t,1).length(),h=1/c.setFromMatrixColumn(t,2).length();return s[0]=i[0]*e,s[1]=i[1]*e,s[2]=i[2]*e,s[3]=0,s[4]=i[4]*r,s[5]=i[5]*r,s[6]=i[6]*r,s[7]=0,s[8]=i[8]*h,s[9]=i[9]*h,s[10]=i[10]*h,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,this}makeRotationFromEuler(t){const s=this.elements,i=t.x,e=t.y,r=t.z,h=Math.cos(i),n=Math.sin(i),a=Math.cos(e),o=Math.sin(e),l=Math.cos(r),u=Math.sin(r);if("XYZ"===t.order){const t=h*l,i=h*u,e=n*l,r=n*u;s[0]=a*l,s[4]=-a*u,s[8]=o,s[1]=i+e*o,s[5]=t-r*o,s[9]=-n*a,s[2]=r-t*o,s[6]=e+i*o,s[10]=h*a}else if("YXZ"===t.order){const t=a*l,i=a*u,e=o*l,r=o*u;s[0]=t+r*n,s[4]=e*n-i,s[8]=h*o,s[1]=h*u,s[5]=h*l,s[9]=-n,s[2]=i*n-e,s[6]=r+t*n,s[10]=h*a}else if("ZXY"===t.order){const t=a*l,i=a*u,e=o*l,r=o*u;s[0]=t-r*n,s[4]=-h*u,s[8]=e+i*n,s[1]=i+e*n,s[5]=h*l,s[9]=r-t*n,s[2]=-h*o,s[6]=n,s[10]=h*a}else if("ZYX"===t.order){const t=h*l,i=h*u,e=n*l,r=n*u;s[0]=a*l,s[4]=e*o-i,s[8]=t*o+r,s[1]=a*u,s[5]=r*o+t,s[9]=i*o-e,s[2]=-o,s[6]=n*a,s[10]=h*a}else if("YZX"===t.order){const t=h*a,i=h*o,e=n*a,r=n*o;s[0]=a*l,s[4]=r-t*u,s[8]=e*u+i,s[1]=u,s[5]=h*l,s[9]=-n*l,s[2]=-o*l,s[6]=i*u+e,s[10]=t-r*u}else if("XZY"===t.order){const t=h*a,i=h*o,e=n*a,r=n*o;s[0]=a*l,s[4]=-u,s[8]=o*l,s[1]=t*u+r,s[5]=h*l,s[9]=i*u-e,s[2]=e*u-i,s[6]=n*l,s[10]=r*u+t}return s[3]=0,s[7]=0,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,this}makeRotationFromQuaternion(t){return this.compose(x,t,y)}lookAt(t,s,i){const e=this.elements;return _.subVectors(t,s),0===_.lengthSq()&&(_.z=1),_.normalize(),d.crossVectors(i,_),0===d.lengthSq()&&(1===Math.abs(i.z)?_.x+=1e-4:_.z+=1e-4,_.normalize(),d.crossVectors(i,_)),d.normalize(),p.crossVectors(_,d),e[0]=d.x,e[4]=p.x,e[8]=_.x,e[1]=d.y,e[5]=p.y,e[9]=_.y,e[2]=d.z,e[6]=p.z,e[10]=_.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,s){const i=t.elements,e=s.elements,r=this.elements,h=i[0],n=i[4],a=i[8],o=i[12],l=i[1],u=i[5],c=i[9],m=i[13],x=i[2],y=i[6],d=i[10],p=i[14],_=i[3],M=i[7],z=i[11],g=i[15],b=e[0],f=e[4],w=e[8],A=e[12],S=e[1],k=e[5],C=e[9],v=e[13],F=e[2],E=e[6],O=e[10],q=e[14],T=e[3],P=e[7],W=e[11],B=e[15];return r[0]=h*b+n*S+a*F+o*T,r[4]=h*f+n*k+a*E+o*P,r[8]=h*w+n*C+a*O+o*W,r[12]=h*A+n*v+a*q+o*B,r[1]=l*b+u*S+c*F+m*T,r[5]=l*f+u*k+c*E+m*P,r[9]=l*w+u*C+c*O+m*W,r[13]=l*A+u*v+c*q+m*B,r[2]=x*b+y*S+d*F+p*T,r[6]=x*f+y*k+d*E+p*P,r[10]=x*w+y*C+d*O+p*W,r[14]=x*A+y*v+d*q+p*B,r[3]=_*b+M*S+z*F+g*T,r[7]=_*f+M*k+z*E+g*P,r[11]=_*w+M*C+z*O+g*W,r[15]=_*A+M*v+z*q+g*B,this}multiplyScalar(t){const s=this.elements;return s[0]*=t,s[4]*=t,s[8]*=t,s[12]*=t,s[1]*=t,s[5]*=t,s[9]*=t,s[13]*=t,s[2]*=t,s[6]*=t,s[10]*=t,s[14]*=t,s[3]*=t,s[7]*=t,s[11]*=t,s[15]*=t,this}determinant(){const t=this.elements,s=t[0],i=t[4],e=t[8],r=t[12],h=t[1],n=t[5],a=t[9],o=t[13],l=t[2],u=t[6],c=t[10],m=t[14];return t[3]*(+r*a*u-e*o*u-r*n*c+i*o*c+e*n*m-i*a*m)+t[7]*(+s*a*m-s*o*c+r*h*c-e*h*m+e*o*l-r*a*l)+t[11]*(+s*o*u-s*n*m-r*h*u+i*h*m+r*n*l-i*o*l)+t[15]*(-e*n*l-s*a*u+s*n*c+e*h*u-i*h*c+i*a*l)}transpose(){const t=this.elements;let s;return s=t[1],t[1]=t[4],t[4]=s,s=t[2],t[2]=t[8],t[8]=s,s=t[6],t[6]=t[9],t[9]=s,s=t[3],t[3]=t[12],t[12]=s,s=t[7],t[7]=t[13],t[13]=s,s=t[11],t[11]=t[14],t[14]=s,this}setPosition(t,s,i){const e=this.elements;return t.isVector3?(e[12]=t.x,e[13]=t.y,e[14]=t.z):(e[12]=t,e[13]=s,e[14]=i),this}invert(){const t=this.elements,s=t[0],i=t[1],e=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],l=t[8],u=t[9],c=t[10],m=t[11],x=t[12],y=t[13],d=t[14],p=t[15],_=u*d*o-y*c*o+y*a*m-n*d*m-u*a*p+n*c*p,M=x*c*o-l*d*o-x*a*m+h*d*m+l*a*p-h*c*p,z=l*y*o-x*u*o+x*n*m-h*y*m-l*n*p+h*u*p,g=x*u*a-l*y*a-x*n*c+h*y*c+l*n*d-h*u*d,b=s*_+i*M+e*z+r*g;if(0===b)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const f=1/b;return t[0]=_*f,t[1]=(y*c*r-u*d*r-y*e*m+i*d*m+u*e*p-i*c*p)*f,t[2]=(n*d*r-y*a*r+y*e*o-i*d*o-n*e*p+i*a*p)*f,t[3]=(u*a*r-n*c*r-u*e*o+i*c*o+n*e*m-i*a*m)*f,t[4]=M*f,t[5]=(l*d*r-x*c*r+x*e*m-s*d*m-l*e*p+s*c*p)*f,t[6]=(x*a*r-h*d*r-x*e*o+s*d*o+h*e*p-s*a*p)*f,t[7]=(h*c*r-l*a*r+l*e*o-s*c*o-h*e*m+s*a*m)*f,t[8]=z*f,t[9]=(x*u*r-l*y*r-x*i*m+s*y*m+l*i*p-s*u*p)*f,t[10]=(h*y*r-x*n*r+x*i*o-s*y*o-h*i*p+s*n*p)*f,t[11]=(l*n*r-h*u*r-l*i*o+s*u*o+h*i*m-s*n*m)*f,t[12]=g*f,t[13]=(l*y*e-x*u*e+x*i*c-s*y*c-l*i*d+s*u*d)*f,t[14]=(x*n*e-h*y*e-x*i*a+s*y*a+h*i*d-s*n*d)*f,t[15]=(h*u*e-l*n*e+l*i*a-s*u*a-h*i*c+s*n*c)*f,this}scale(t){const s=this.elements,i=t.x,e=t.y,r=t.z;return s[0]*=i,s[4]*=e,s[8]*=r,s[1]*=i,s[5]*=e,s[9]*=r,s[2]*=i,s[6]*=e,s[10]*=r,s[3]*=i,s[7]*=e,s[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,s=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],e=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(s,i,e))}makeTranslation(t,s,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,s,0,0,1,i,0,0,0,1),this}makeRotationX(t){const s=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,s,-i,0,0,i,s,0,0,0,0,1),this}makeRotationY(t){const s=Math.cos(t),i=Math.sin(t);return this.set(s,0,i,0,0,1,0,0,-i,0,s,0,0,0,0,1),this}makeRotationZ(t){const s=Math.cos(t),i=Math.sin(t);return this.set(s,-i,0,0,i,s,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,s){const i=Math.cos(s),e=Math.sin(s),r=1-i,h=t.x,n=t.y,a=t.z,o=r*h,l=r*n;return this.set(o*h+i,o*n-e*a,o*a+e*n,0,o*n+e*a,l*n+i,l*a-e*h,0,o*a-e*n,l*a+e*h,r*a*a+i,0,0,0,0,1),this}makeScale(t,s,i){return this.set(t,0,0,0,0,s,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,s,i,e,r,h){return this.set(1,i,r,0,t,1,h,0,s,e,1,0,0,0,0,1),this}compose(t,s,i){const e=this.elements,r=s._x,h=s._y,n=s._z,a=s._w,o=r+r,l=h+h,u=n+n,c=r*o,m=r*l,x=r*u,y=h*l,d=h*u,p=n*u,_=a*o,M=a*l,z=a*u,g=i.x,b=i.y,f=i.z;return e[0]=(1-(y+p))*g,e[1]=(m+z)*g,e[2]=(x-M)*g,e[3]=0,e[4]=(m-z)*b,e[5]=(1-(c+p))*b,e[6]=(d+_)*b,e[7]=0,e[8]=(x+M)*f,e[9]=(d-_)*f,e[10]=(1-(c+y))*f,e[11]=0,e[12]=t.x,e[13]=t.y,e[14]=t.z,e[15]=1,this}decompose(t,s,i){const e=this.elements;let r=c.set(e[0],e[1],e[2]).length();const h=c.set(e[4],e[5],e[6]).length(),n=c.set(e[8],e[9],e[10]).length();this.determinant()<0&&(r=-r),t.x=e[12],t.y=e[13],t.z=e[14],m.copy(this);const a=1/r,o=1/h,l=1/n;return m.elements[0]*=a,m.elements[1]*=a,m.elements[2]*=a,m.elements[4]*=o,m.elements[5]*=o,m.elements[6]*=o,m.elements[8]*=l,m.elements[9]*=l,m.elements[10]*=l,s.setFromRotationMatrix(m),i.x=r,i.y=h,i.z=n,this}makePerspective(t,e,r,h,n,a,o=s){const l=this.elements,u=2*n/(e-t),c=2*n/(r-h),m=(e+t)/(e-t),x=(r+h)/(r-h);let y,d;if(o===s)y=-(a+n)/(a-n),d=-2*a*n/(a-n);else{if(o!==i)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);y=-a/(a-n),d=-a*n/(a-n)}return l[0]=u,l[4]=0,l[8]=m,l[12]=0,l[1]=0,l[5]=c,l[9]=x,l[13]=0,l[2]=0,l[6]=0,l[10]=y,l[14]=d,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,e,r,h,n,a,o=s){const l=this.elements,u=1/(e-t),c=1/(r-h),m=1/(a-n),x=(e+t)*u,y=(r+h)*c;let d,p;if(o===s)d=(a+n)*m,p=-2*m;else{if(o!==i)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);d=n*m,p=-1*m}return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-x,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-y,l[2]=0,l[6]=0,l[10]=p,l[14]=-d,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){const s=this.elements,i=t.elements;for(let t=0;t<16;t++)if(s[t]!==i[t])return!1;return!0}fromArray(t,s=0){for(let i=0;i<16;i++)this.elements[i]=t[i+s];return this}toArray(t=[],s=0){const i=this.elements;return t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2],t[s+3]=i[3],t[s+4]=i[4],t[s+5]=i[5],t[s+6]=i[6],t[s+7]=i[7],t[s+8]=i[8],t[s+9]=i[9],t[s+10]=i[10],t[s+11]=i[11],t[s+12]=i[12],t[s+13]=i[13],t[s+14]=i[14],t[s+15]=i[15],t}}t("d",u);const c=new a,m=new u,x=new a(0,0,0),y=new a(1,1,1),d=new a,p=new a,_=new a;class M{constructor(t=0,s=0){M.prototype.isVector2=!0,this.x=t,this.y=s}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,s){return this.x=t,this.y=s,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,s){switch(t){case 0:this.x=s;break;case 1:this.y=s;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,s){return this.x=t.x+s.x,this.y=t.y+s.y,this}addScaledVector(t,s){return this.x+=t.x*s,this.y+=t.y*s,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,s){return this.x=t.x-s.x,this.y=t.y-s.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const s=this.x,i=this.y,e=t.elements;return this.x=e[0]*s+e[3]*i+e[6],this.y=e[1]*s+e[4]*i+e[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,s){return this.x=h(this.x,t.x,s.x),this.y=h(this.y,t.y,s.y),this}clampScalar(t,s){return this.x=h(this.x,t,s),this.y=h(this.y,t,s),this}clampLength(t,s){const i=this.length();return this.divideScalar(i||1).multiplyScalar(h(i,t,s))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const s=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===s)return Math.PI/2;const i=this.dot(t)/s;return Math.acos(h(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const s=this.x-t.x,i=this.y-t.y;return s*s+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,s){return this.x+=(t.x-this.x)*s,this.y+=(t.y-this.y)*s,this}lerpVectors(t,s,i){return this.x=t.x+(s.x-t.x)*i,this.y=t.y+(s.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,s=0){return this.x=t[s],this.y=t[s+1],this}toArray(t=[],s=0){return t[s]=this.x,t[s+1]=this.y,t}fromBufferAttribute(t,s){return this.x=t.getX(s),this.y=t.getY(s),this}rotateAround(t,s){const i=Math.cos(s),e=Math.sin(s),r=this.x-t.x,h=this.y-t.y;return this.x=r*i-h*e+t.x,this.y=r*e+h*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}t("b",M);class z{constructor(t=new a(1/0,1/0,1/0),s=new a(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=s}set(t,s){return this.min.copy(t),this.max.copy(s),this}setFromArray(t){this.makeEmpty();for(let s=0,i=t.length;s<i;s+=3)this.expandByPoint(b.fromArray(t,s));return this}setFromBufferAttribute(t){this.makeEmpty();for(let s=0,i=t.count;s<i;s++)this.expandByPoint(b.fromBufferAttribute(t,s));return this}setFromPoints(t){this.makeEmpty();for(let s=0,i=t.length;s<i;s++)this.expandByPoint(t[s]);return this}setFromCenterAndSize(t,s){const i=b.copy(s).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}setFromObject(t,s=!1){return this.makeEmpty(),this.expandByObject(t,s)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,s=!1){t.updateWorldMatrix(!1,!1);const i=t.geometry;if(void 0!==i){const e=i.getAttribute("position");if(!0===s&&void 0!==e&&!0!==t.isInstancedMesh)for(let s=0,i=e.count;s<i;s++)!0===t.isMesh?t.getVertexPosition(s,b):b.fromBufferAttribute(e,s),b.applyMatrix4(t.matrixWorld),this.expandByPoint(b);else void 0!==t.boundingBox?(null===t.boundingBox&&t.computeBoundingBox(),f.copy(t.boundingBox)):(null===i.boundingBox&&i.computeBoundingBox(),f.copy(i.boundingBox)),f.applyMatrix4(t.matrixWorld),this.union(f)}const e=t.children;for(let t=0,i=e.length;t<i;t++)this.expandByObject(e[t],s);return this}containsPoint(t){return t.x>=this.min.x&&t.x<=this.max.x&&t.y>=this.min.y&&t.y<=this.max.y&&t.z>=this.min.z&&t.z<=this.max.z}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,s){return s.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return t.max.x>=this.min.x&&t.min.x<=this.max.x&&t.max.y>=this.min.y&&t.min.y<=this.max.y&&t.max.z>=this.min.z&&t.min.z<=this.max.z}intersectsSphere(t){return this.clampPoint(t.center,b),b.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let s,i;return t.normal.x>0?(s=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(s=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(s+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(s+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(s+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(s+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),s<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(F),E.subVectors(this.max,F),w.subVectors(t.a,F),A.subVectors(t.b,F),S.subVectors(t.c,F),k.subVectors(A,w),C.subVectors(S,A),v.subVectors(w,S);let s=[0,-k.z,k.y,0,-C.z,C.y,0,-v.z,v.y,k.z,0,-k.x,C.z,0,-C.x,v.z,0,-v.x,-k.y,k.x,0,-C.y,C.x,0,-v.y,v.x,0];return!!T(s,w,A,S,E)&&(s=[1,0,0,0,1,0,0,0,1],!!T(s,w,A,S,E)&&(O.crossVectors(k,C),s=[O.x,O.y,O.z],T(s,w,A,S,E)))}clampPoint(t,s){return s.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,b).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(b).length()),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(g[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),g[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),g[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),g[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),g[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),g[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),g[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),g[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(g)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}t("B",z);const g=[new a,new a,new a,new a,new a,new a,new a,new a],b=new a,f=new z,w=new a,A=new a,S=new a,k=new a,C=new a,v=new a,F=new a,E=new a,O=new a,q=new a;function T(t,s,i,e,r){for(let h=0,n=t.length-3;h<=n;h+=3){q.fromArray(t,h);const n=r.x*Math.abs(q.x)+r.y*Math.abs(q.y)+r.z*Math.abs(q.z),a=s.dot(q),o=i.dot(q),l=e.dot(q);if(Math.max(-Math.max(a,o,l),Math.min(a,o,l))>n)return!1}return!0}const P=new z,W=new a,B=new a;t("S",class{constructor(t=new a,s=-1){this.isSphere=!0,this.center=t,this.radius=s}set(t,s){return this.center.copy(t),this.radius=s,this}setFromPoints(t,s){const i=this.center;void 0!==s?i.copy(s):P.setFromPoints(t).getCenter(i);let e=0;for(let s=0,r=t.length;s<r;s++)e=Math.max(e,i.distanceToSquared(t[s]));return this.radius=Math.sqrt(e),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const s=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=s*s}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,s){const i=this.center.distanceToSquared(t);return s.copy(t),i>this.radius*this.radius&&(s.sub(this.center).normalize(),s.multiplyScalar(this.radius).add(this.center)),s}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;W.subVectors(t,this.center);const s=W.lengthSq();if(s>this.radius*this.radius){const t=Math.sqrt(s),i=.5*(t-this.radius);this.center.addScaledVector(W,i/t),this.radius+=i}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(B.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(W.copy(t.center).add(B)),this.expandByPoint(W.copy(t.center).sub(B))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}});class R{constructor(t,s,i,e,r,h,n,a,o){R.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==t&&this.set(t,s,i,e,r,h,n,a,o)}set(t,s,i,e,r,h,n,a,o){const l=this.elements;return l[0]=t,l[1]=e,l[2]=n,l[3]=s,l[4]=r,l[5]=a,l[6]=i,l[7]=h,l[8]=o,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const s=this.elements,i=t.elements;return s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=i[4],s[5]=i[5],s[6]=i[6],s[7]=i[7],s[8]=i[8],this}extractBasis(t,s,i){return t.setFromMatrix3Column(this,0),s.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const s=t.elements;return this.set(s[0],s[4],s[8],s[1],s[5],s[9],s[2],s[6],s[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,s){const i=t.elements,e=s.elements,r=this.elements,h=i[0],n=i[3],a=i[6],o=i[1],l=i[4],u=i[7],c=i[2],m=i[5],x=i[8],y=e[0],d=e[3],p=e[6],_=e[1],M=e[4],z=e[7],g=e[2],b=e[5],f=e[8];return r[0]=h*y+n*_+a*g,r[3]=h*d+n*M+a*b,r[6]=h*p+n*z+a*f,r[1]=o*y+l*_+u*g,r[4]=o*d+l*M+u*b,r[7]=o*p+l*z+u*f,r[2]=c*y+m*_+x*g,r[5]=c*d+m*M+x*b,r[8]=c*p+m*z+x*f,this}multiplyScalar(t){const s=this.elements;return s[0]*=t,s[3]*=t,s[6]*=t,s[1]*=t,s[4]*=t,s[7]*=t,s[2]*=t,s[5]*=t,s[8]*=t,this}determinant(){const t=this.elements,s=t[0],i=t[1],e=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],l=t[8];return s*h*l-s*n*o-i*r*l+i*n*a+e*r*o-e*h*a}invert(){const t=this.elements,s=t[0],i=t[1],e=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],l=t[8],u=l*h-n*o,c=n*a-l*r,m=o*r-h*a,x=s*u+i*c+e*m;if(0===x)return this.set(0,0,0,0,0,0,0,0,0);const y=1/x;return t[0]=u*y,t[1]=(e*o-l*i)*y,t[2]=(n*i-e*h)*y,t[3]=c*y,t[4]=(l*s-e*a)*y,t[5]=(e*r-n*s)*y,t[6]=m*y,t[7]=(i*a-o*s)*y,t[8]=(h*s-i*r)*y,this}transpose(){let t;const s=this.elements;return t=s[1],s[1]=s[3],s[3]=t,t=s[2],s[2]=s[6],s[6]=t,t=s[5],s[5]=s[7],s[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const s=this.elements;return t[0]=s[0],t[1]=s[3],t[2]=s[6],t[3]=s[1],t[4]=s[4],t[5]=s[7],t[6]=s[2],t[7]=s[5],t[8]=s[8],this}setUvTransform(t,s,i,e,r,h,n){const a=Math.cos(r),o=Math.sin(r);return this.set(i*a,i*o,-i*(a*h+o*n)+h+t,-e*o,e*a,-e*(-o*h+a*n)+n+s,0,0,1),this}scale(t,s){return this.premultiply(V.makeScale(t,s)),this}rotate(t){return this.premultiply(V.makeRotation(-t)),this}translate(t,s){return this.premultiply(V.makeTranslation(t,s)),this}makeTranslation(t,s){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,s,0,0,1),this}makeRotation(t){const s=Math.cos(t),i=Math.sin(t);return this.set(s,-i,0,i,s,0,0,0,1),this}makeScale(t,s){return this.set(t,0,0,0,s,0,0,0,1),this}equals(t){const s=this.elements,i=t.elements;for(let t=0;t<9;t++)if(s[t]!==i[t])return!1;return!0}fromArray(t,s=0){for(let i=0;i<9;i++)this.elements[i]=t[i+s];return this}toArray(t=[],s=0){const i=this.elements;return t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2],t[s+3]=i[3],t[s+4]=i[4],t[s+5]=i[5],t[s+6]=i[6],t[s+7]=i[7],t[s+8]=i[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}t("M",R);const V=new R;class U{addEventListener(t,s){void 0===this._listeners&&(this._listeners={});const i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(s)&&i[t].push(s)}hasEventListener(t,s){const i=this._listeners;return void 0!==i&&void 0!==i[t]&&-1!==i[t].indexOf(s)}removeEventListener(t,s){const i=this._listeners;if(void 0===i)return;const e=i[t];if(void 0!==e){const t=e.indexOf(s);-1!==t&&e.splice(t,1)}}dispatchEvent(t){const s=this._listeners;if(void 0===s)return;const i=s[t.type];if(void 0!==i){t.target=this;const s=i.slice(0);for(let i=0,e=s.length;i<e;i++)s[i].call(this,t);t.target=null}}}t("E",U);const I=new u,j=new n;class D{constructor(t=0,s=0,i=0,e=D.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=s,this._z=i,this._order=e}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,s,i,e=this._order){return this._x=t,this._y=s,this._z=i,this._order=e,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,s=this._order,i=!0){const e=t.elements,r=e[0],n=e[4],a=e[8],o=e[1],l=e[5],u=e[9],c=e[2],m=e[6],x=e[10];switch(s){case"XYZ":this._y=Math.asin(h(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,x),this._z=Math.atan2(-n,r)):(this._x=Math.atan2(m,l),this._z=0);break;case"YXZ":this._x=Math.asin(-h(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,x),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-c,r),this._z=0);break;case"ZXY":this._x=Math.asin(h(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-c,x),this._z=Math.atan2(-n,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-h(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(m,x),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-n,l));break;case"YZX":this._z=Math.asin(h(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-c,r)):(this._x=0,this._y=Math.atan2(a,x));break;case"XZY":this._z=Math.asin(-h(n,-1,1)),Math.abs(n)<.9999999?(this._x=Math.atan2(m,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,x),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+s)}return this._order=s,!0===i&&this._onChangeCallback(),this}setFromQuaternion(t,s,i){return I.makeRotationFromQuaternion(t),this.setFromRotationMatrix(I,s,i)}setFromVector3(t,s=this._order){return this.set(t.x,t.y,t.z,s)}reorder(t){return j.setFromEuler(this),this.setFromQuaternion(j,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],s=0){return t[s]=this._x,t[s+1]=this._y,t[s+2]=this._z,t[s+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}D.DEFAULT_ORDER="XYZ";class X{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!=(this.mask&t.mask)}isEnabled(t){return 0!=(this.mask&(1<<t|0))}}let N=0;const L=new a,Y=new n,Z=new u,Q=new a,J=new a,H=new a,K=new n,G=new a(1,0,0),$=new a(0,1,0),tt=new a(0,0,1),st={type:"added"},it={type:"removed"},et={type:"childadded",child:null},rt={type:"childremoved",child:null};class ht extends U{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:N++}),this.uuid=r(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=ht.DEFAULT_UP.clone();const t=new a,s=new D,i=new n,e=new a(1,1,1);s._onChange((function(){i.setFromEuler(s,!1)})),i._onChange((function(){s.setFromQuaternion(i,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:s},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:e},modelViewMatrix:{value:new u},normalMatrix:{value:new R}}),this.matrix=new u,this.matrixWorld=new u,this.matrixAutoUpdate=ht.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=ht.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new X,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,s){this.quaternion.setFromAxisAngle(t,s)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,s){return Y.setFromAxisAngle(t,s),this.quaternion.multiply(Y),this}rotateOnWorldAxis(t,s){return Y.setFromAxisAngle(t,s),this.quaternion.premultiply(Y),this}rotateX(t){return this.rotateOnAxis(G,t)}rotateY(t){return this.rotateOnAxis($,t)}rotateZ(t){return this.rotateOnAxis(tt,t)}translateOnAxis(t,s){return L.copy(t).applyQuaternion(this.quaternion),this.position.add(L.multiplyScalar(s)),this}translateX(t){return this.translateOnAxis(G,t)}translateY(t){return this.translateOnAxis($,t)}translateZ(t){return this.translateOnAxis(tt,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Z.copy(this.matrixWorld).invert())}lookAt(t,s,i){t.isVector3?Q.copy(t):Q.set(t,s,i);const e=this.parent;this.updateWorldMatrix(!0,!1),J.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Z.lookAt(J,Q,this.up):Z.lookAt(Q,J,this.up),this.quaternion.setFromRotationMatrix(Z),e&&(Z.extractRotation(e.matrixWorld),Y.setFromRotationMatrix(Z),this.quaternion.premultiply(Y.invert()))}add(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(st),et.child=t,this.dispatchEvent(et),et.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const s=this.children.indexOf(t);return-1!==s&&(t.parent=null,this.children.splice(s,1),t.dispatchEvent(it),rt.child=t,this.dispatchEvent(rt),rt.child=null),this}removeFromParent(){const t=this.parent;return null!==t&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),Z.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),Z.multiply(t.parent.matrixWorld)),t.applyMatrix4(Z),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(st),et.child=t,this.dispatchEvent(et),et.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,s){if(this[t]===s)return this;for(let i=0,e=this.children.length;i<e;i++){const e=this.children[i].getObjectByProperty(t,s);if(void 0!==e)return e}}getObjectsByProperty(t,s,i=[]){this[t]===s&&i.push(this);const e=this.children;for(let r=0,h=e.length;r<h;r++)e[r].getObjectsByProperty(t,s,i);return i}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(J,t,H),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(J,K,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const s=this.matrixWorld.elements;return t.set(s[8],s[9],s[10]).normalize()}raycast(){}traverse(t){t(this);const s=this.children;for(let i=0,e=s.length;i<e;i++)s[i].traverse(t)}traverseVisible(t){if(!1===this.visible)return;t(this);const s=this.children;for(let i=0,e=s.length;i<e;i++)s[i].traverseVisible(t)}traverseAncestors(t){const s=this.parent;null!==s&&(t(s),s.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,t=!0);const s=this.children;for(let i=0,e=s.length;i<e;i++)s[i].updateMatrixWorld(t)}updateWorldMatrix(t,s){const i=this.parent;if(!0===t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),!0===s){const t=this.children;for(let s=0,i=t.length;s<i;s++)t[s].updateWorldMatrix(!1,!0)}}toJSON(t){const s=void 0===t||"string"==typeof t,i={};s&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const e={};function r(s,i){return void 0===s[i.uuid]&&(s[i.uuid]=i.toJSON(t)),i.uuid}if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),!0===this.castShadow&&(e.castShadow=!0),!0===this.receiveShadow&&(e.receiveShadow=!0),!1===this.visible&&(e.visible=!1),!1===this.frustumCulled&&(e.frustumCulled=!1),0!==this.renderOrder&&(e.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(e.userData=this.userData),e.layers=this.layers.mask,e.matrix=this.matrix.toArray(),e.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(e.matrixAutoUpdate=!1),this.isInstancedMesh&&(e.type="InstancedMesh",e.count=this.count,e.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(e.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(e.type="BatchedMesh",e.perObjectFrustumCulled=this.perObjectFrustumCulled,e.sortObjects=this.sortObjects,e.drawRanges=this._drawRanges,e.reservedRanges=this._reservedRanges,e.visibility=this._visibility,e.active=this._active,e.bounds=this._bounds.map(t=>({boxInitialized:t.boxInitialized,boxMin:t.box.min.toArray(),boxMax:t.box.max.toArray(),sphereInitialized:t.sphereInitialized,sphereRadius:t.sphere.radius,sphereCenter:t.sphere.center.toArray()})),e.maxInstanceCount=this._maxInstanceCount,e.maxVertexCount=this._maxVertexCount,e.maxIndexCount=this._maxIndexCount,e.geometryInitialized=this._geometryInitialized,e.geometryCount=this._geometryCount,e.matricesTexture=this._matricesTexture.toJSON(t),null!==this._colorsTexture&&(e.colorsTexture=this._colorsTexture.toJSON(t)),null!==this.boundingSphere&&(e.boundingSphere={center:e.boundingSphere.center.toArray(),radius:e.boundingSphere.radius}),null!==this.boundingBox&&(e.boundingBox={min:e.boundingBox.min.toArray(),max:e.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?e.background=this.background.toJSON():this.background.isTexture&&(e.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(e.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){e.geometry=r(t.geometries,this.geometry);const s=this.geometry.parameters;if(void 0!==s&&void 0!==s.shapes){const i=s.shapes;if(Array.isArray(i))for(let s=0,e=i.length;s<e;s++){const e=i[s];r(t.shapes,e)}else r(t.shapes,i)}}if(this.isSkinnedMesh&&(e.bindMode=this.bindMode,e.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(t.skeletons,this.skeleton),e.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const s=[];for(let i=0,e=this.material.length;i<e;i++)s.push(r(t.materials,this.material[i]));e.material=s}else e.material=r(t.materials,this.material);if(this.children.length>0){e.children=[];for(let s=0;s<this.children.length;s++)e.children.push(this.children[s].toJSON(t).object)}if(this.animations.length>0){e.animations=[];for(let s=0;s<this.animations.length;s++){const i=this.animations[s];e.animations.push(r(t.animations,i))}}if(s){const s=h(t.geometries),e=h(t.materials),r=h(t.textures),n=h(t.images),a=h(t.shapes),o=h(t.skeletons),l=h(t.animations),u=h(t.nodes);s.length>0&&(i.geometries=s),e.length>0&&(i.materials=e),r.length>0&&(i.textures=r),n.length>0&&(i.images=n),a.length>0&&(i.shapes=a),o.length>0&&(i.skeletons=o),l.length>0&&(i.animations=l),u.length>0&&(i.nodes=u)}return i.object=e,i;function h(t){const s=[];for(const i in t){const e=t[i];delete e.metadata,s.push(e)}return s}}clone(t){return(new this.constructor).copy(this,t)}copy(t,s=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),!0===s)for(let s=0;s<t.children.length;s++){const i=t.children[s];this.add(i.clone())}return this}}t("O",ht),ht.DEFAULT_UP=new a(0,1,0),ht.DEFAULT_MATRIX_AUTO_UPDATE=!0,ht.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0}}}));
2
+ //# sourceMappingURL=Object3D-2abce9d8.nomodule.js.map