@kolkrabbi/design-editor 0.1.0 → 0.2.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 (250) hide show
  1. package/README.md +3 -1
  2. package/dist/BufferResource-CKQMSOM4.js +265 -0
  3. package/dist/CanvasPool-ilDNHrRx.js +30 -0
  4. package/dist/CanvasRenderer-CDbc3nH9.js +3396 -0
  5. package/dist/Geometry-D3fkwmax.js +3724 -0
  6. package/dist/{OrbitControls-BAhLQ5d8.js → OrbitControls-CE3qSrHQ.js} +10260 -9043
  7. package/dist/RenderTargetSystem-umK0aqrs.js +2394 -0
  8. package/dist/WebGLRenderer-DVKPZbKc.js +2145 -0
  9. package/dist/WebGPURenderer-DHSBocAL.js +1656 -0
  10. package/dist/browserAll-CJ593myQ.js +983 -0
  11. package/dist/canvasUtils-CXoNqK7T.js +168 -0
  12. package/dist/defaultFilter.vert-C9efGgir.js +888 -0
  13. package/dist/design-editor.css +2 -2
  14. package/dist/design-editor.js +40809 -26749
  15. package/dist/getTextureBatchBindGroup-ChWkOJ3t.js +19 -0
  16. package/dist/{host-IfZgcJFg.js → host-6EhdLf5-.js} +506 -559
  17. package/dist/{host-Cidlc8xP.js → host-DPFYZP9I.js} +134 -88
  18. package/dist/init-4Y6mtayI.js +441 -0
  19. package/dist/phase-D3rwI6OO.js +1719 -0
  20. package/dist/pipeline-DfTD40M-.js +4825 -0
  21. package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
  22. package/dist/src-zDOFeQWX.js +4314 -0
  23. package/dist/webworkerAll-wTH3MKcZ.js +2 -0
  24. package/package.json +26 -21
  25. package/dist/favicon/favicon.svg +0 -12
  26. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Black.woff2 +0 -0
  27. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BlackItalic.woff2 +0 -0
  28. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Bold.woff2 +0 -0
  29. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BoldItalic.woff2 +0 -0
  30. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlack.woff2 +0 -0
  31. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlackItalic.woff2 +0 -0
  32. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBold.woff2 +0 -0
  33. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBoldItalic.woff2 +0 -0
  34. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDark.woff2 +0 -0
  35. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDarkItalic.woff2 +0 -0
  36. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFine.woff2 +0 -0
  37. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFineItalic.woff2 +0 -0
  38. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLight.woff2 +0 -0
  39. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLightItalic.woff2 +0 -0
  40. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMedium.woff2 +0 -0
  41. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMediumItalic.woff2 +0 -0
  42. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegular.woff2 +0 -0
  43. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegularItalic.woff2 +0 -0
  44. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Dark.woff2 +0 -0
  45. package/dist/fonts/Right-Grotesk/PPRightGrotesk-DarkItalic.woff2 +0 -0
  46. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Fine.woff2 +0 -0
  47. package/dist/fonts/Right-Grotesk/PPRightGrotesk-FineItalic.woff2 +0 -0
  48. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Light.woff2 +0 -0
  49. package/dist/fonts/Right-Grotesk/PPRightGrotesk-LightItalic.woff2 +0 -0
  50. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Medium.woff2 +0 -0
  51. package/dist/fonts/Right-Grotesk/PPRightGrotesk-MediumItalic.woff2 +0 -0
  52. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlack.woff2 +0 -0
  53. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlackItalic.woff2 +0 -0
  54. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBold.woff2 +0 -0
  55. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBoldItalic.woff2 +0 -0
  56. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDark.woff2 +0 -0
  57. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDarkItalic.woff2 +0 -0
  58. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFine.woff2 +0 -0
  59. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFineItalic.woff2 +0 -0
  60. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLight.woff2 +0 -0
  61. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLightItalic.woff2 +0 -0
  62. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMedium.woff2 +0 -0
  63. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMediumItalic.woff2 +0 -0
  64. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegular.woff2 +0 -0
  65. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegularItalic.woff2 +0 -0
  66. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Regular.woff2 +0 -0
  67. package/dist/fonts/Right-Grotesk/PPRightGrotesk-RegularItalic.woff2 +0 -0
  68. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlack.woff2 +0 -0
  69. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlackItalic.woff2 +0 -0
  70. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBold.woff2 +0 -0
  71. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBoldItalic.woff2 +0 -0
  72. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDark.woff2 +0 -0
  73. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDarkItalic.woff2 +0 -0
  74. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFine.woff2 +0 -0
  75. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFineItalic.woff2 +0 -0
  76. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLight.woff2 +0 -0
  77. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLightItalic.woff2 +0 -0
  78. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMedium.woff2 +0 -0
  79. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMediumItalic.woff2 +0 -0
  80. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegular.woff2 +0 -0
  81. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegularItalic.woff2 +0 -0
  82. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlack.woff2 +0 -0
  83. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlackItalic.woff2 +0 -0
  84. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBold.woff2 +0 -0
  85. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBoldItalic.woff2 +0 -0
  86. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDark.woff2 +0 -0
  87. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDarkItalic.woff2 +0 -0
  88. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFine.woff2 +0 -0
  89. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFineItalic.woff2 +0 -0
  90. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLight.woff2 +0 -0
  91. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLightItalic.woff2 +0 -0
  92. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMedium.woff2 +0 -0
  93. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMediumItalic.woff2 +0 -0
  94. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegular.woff2 +0 -0
  95. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegularItalic.woff2 +0 -0
  96. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlack.woff2 +0 -0
  97. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlackItalic.woff2 +0 -0
  98. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBold.woff2 +0 -0
  99. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBoldItalic.woff2 +0 -0
  100. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDark.woff2 +0 -0
  101. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDarkItalic.woff2 +0 -0
  102. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFine.woff2 +0 -0
  103. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFineItalic.woff2 +0 -0
  104. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLight.woff2 +0 -0
  105. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLightItalic.woff2 +0 -0
  106. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMedium.woff2 +0 -0
  107. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMediumItalic.woff2 +0 -0
  108. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegular.woff2 +0 -0
  109. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegularItalic.woff2 +0 -0
  110. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlack.woff2 +0 -0
  111. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlackItalic.woff2 +0 -0
  112. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBold.woff2 +0 -0
  113. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBoldItalic.woff2 +0 -0
  114. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDark.woff2 +0 -0
  115. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDarkItalic.woff2 +0 -0
  116. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFine.woff2 +0 -0
  117. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFineItalic.woff2 +0 -0
  118. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLight.woff2 +0 -0
  119. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLightItalic.woff2 +0 -0
  120. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMedium.woff2 +0 -0
  121. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMediumItalic.woff2 +0 -0
  122. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegular.woff2 +0 -0
  123. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegularItalic.woff2 +0 -0
  124. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Bold.woff2 +0 -0
  125. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-BoldItalic.woff2 +0 -0
  126. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Dark.woff2 +0 -0
  127. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Fine.woff2 +0 -0
  128. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-FineItalic.woff2 +0 -0
  129. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Light.woff2 +0 -0
  130. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Medium.woff2 +0 -0
  131. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Regular.woff2 +0 -0
  132. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-RegularItalic.woff2 +0 -0
  133. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLight.woff2 +0 -0
  134. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLightItalic.woff2 +0 -0
  135. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMedium.woff2 +0 -0
  136. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMediumItalic.woff2 +0 -0
  137. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-Regular.woff2 +0 -0
  138. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-RegularItalic.woff2 +0 -0
  139. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBold.woff2 +0 -0
  140. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBoldItalic.woff2 +0 -0
  141. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLight.woff2 +0 -0
  142. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLightItalic.woff2 +0 -0
  143. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBold.woff2 +0 -0
  144. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBoldItalic.woff2 +0 -0
  145. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Black.ttf +0 -0
  146. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BlackItalic.ttf +0 -0
  147. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Bold.ttf +0 -0
  148. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BoldItalic.ttf +0 -0
  149. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlack.ttf +0 -0
  150. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlackItalic.ttf +0 -0
  151. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBold.ttf +0 -0
  152. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBoldItalic.ttf +0 -0
  153. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDark.ttf +0 -0
  154. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDarkItalic.ttf +0 -0
  155. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFine.ttf +0 -0
  156. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFineItalic.ttf +0 -0
  157. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLight.ttf +0 -0
  158. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLightItalic.ttf +0 -0
  159. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMedium.ttf +0 -0
  160. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMediumItalic.ttf +0 -0
  161. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegular.ttf +0 -0
  162. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegularItalic.ttf +0 -0
  163. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Dark.ttf +0 -0
  164. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-DarkItalic.ttf +0 -0
  165. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Fine.ttf +0 -0
  166. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-FineItalic.ttf +0 -0
  167. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Light.ttf +0 -0
  168. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-LightItalic.ttf +0 -0
  169. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Medium.ttf +0 -0
  170. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-MediumItalic.ttf +0 -0
  171. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlack.ttf +0 -0
  172. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlackItalic.ttf +0 -0
  173. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBold.ttf +0 -0
  174. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBoldItalic.ttf +0 -0
  175. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDark.ttf +0 -0
  176. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDarkItalic.ttf +0 -0
  177. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFine.ttf +0 -0
  178. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFineItalic.ttf +0 -0
  179. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLight.ttf +0 -0
  180. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLightItalic.ttf +0 -0
  181. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMedium.ttf +0 -0
  182. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMediumItalic.ttf +0 -0
  183. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegular.ttf +0 -0
  184. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegularItalic.ttf +0 -0
  185. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Regular.ttf +0 -0
  186. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-RegularItalic.ttf +0 -0
  187. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlack.ttf +0 -0
  188. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlackItalic.ttf +0 -0
  189. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBold.ttf +0 -0
  190. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBoldItalic.ttf +0 -0
  191. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDark.ttf +0 -0
  192. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDarkItalic.ttf +0 -0
  193. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFine.ttf +0 -0
  194. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFineItalic.ttf +0 -0
  195. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLight.ttf +0 -0
  196. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLightItalic.ttf +0 -0
  197. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMedium.ttf +0 -0
  198. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMediumItalic.ttf +0 -0
  199. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegular.ttf +0 -0
  200. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegularItalic.ttf +0 -0
  201. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlack.ttf +0 -0
  202. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlackItalic.ttf +0 -0
  203. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBold.ttf +0 -0
  204. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBoldItalic.ttf +0 -0
  205. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDark.ttf +0 -0
  206. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDarkItalic.ttf +0 -0
  207. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFine.ttf +0 -0
  208. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFineItalic.ttf +0 -0
  209. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLight.ttf +0 -0
  210. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLightItalic.ttf +0 -0
  211. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMedium.ttf +0 -0
  212. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMediumItalic.ttf +0 -0
  213. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegular.ttf +0 -0
  214. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegularItalic.ttf +0 -0
  215. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlack.ttf +0 -0
  216. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlackItalic.ttf +0 -0
  217. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBold.ttf +0 -0
  218. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBoldItalic.ttf +0 -0
  219. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDark.ttf +0 -0
  220. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDarkItalic.ttf +0 -0
  221. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFine.ttf +0 -0
  222. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFineItalic.ttf +0 -0
  223. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLight.ttf +0 -0
  224. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLightItalic.ttf +0 -0
  225. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMedium.ttf +0 -0
  226. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMediumItalic.ttf +0 -0
  227. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegular.ttf +0 -0
  228. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegularItalic.ttf +0 -0
  229. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlack.ttf +0 -0
  230. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlackItalic.ttf +0 -0
  231. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBold.ttf +0 -0
  232. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBoldItalic.ttf +0 -0
  233. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDark.ttf +0 -0
  234. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDarkItalic.ttf +0 -0
  235. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFine.ttf +0 -0
  236. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFineItalic.ttf +0 -0
  237. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLight.ttf +0 -0
  238. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLightItalic.ttf +0 -0
  239. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMedium.ttf +0 -0
  240. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMediumItalic.ttf +0 -0
  241. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegular.ttf +0 -0
  242. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegularItalic.ttf +0 -0
  243. package/dist/fonts/TG/TGGullhamrarVF.ttf +0 -0
  244. package/dist/fonts/TG/TGMalromurRomanVF.ttf +0 -0
  245. package/dist/fonts/TG/TGRotVF.ttf +0 -0
  246. package/dist/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  247. package/dist/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2 +0 -0
  248. package/dist/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  249. package/dist/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  250. package/dist/meshPalettes-BJODHYrY.js +0 -892
@@ -0,0 +1,983 @@
1
+ import { $ as e, K as t, U as n, b as r, it as i, nt as a, rt as o, x as s, y as c } from "./Geometry-D3fkwmax.js";
2
+ import "./defaultFilter.vert-C9efGgir.js";
3
+ import "./init-4Y6mtayI.js";
4
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/dom/CanvasObserver.mjs
5
+ var l = class {
6
+ constructor(e) {
7
+ this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
8
+ if (!this._canvas) return;
9
+ let e = this._canvas.getBoundingClientRect(), t = this._canvas.width, n = this._canvas.height, r = e.width / t * this._renderer.resolution, i = e.height / n * this._renderer.resolution, a = `translate(${e.left}px, ${e.top}px) scale(${r}, ${i})`;
10
+ a !== this._lastTransform && (this._domElement.style.transform = a, this._lastTransform = a);
11
+ }, this._domElement = e.domElement, this._renderer = e.renderer, !(globalThis.OffscreenCanvas && this._renderer.canvas instanceof OffscreenCanvas) && (this._canvas = this._renderer.canvas, this._attachObserver());
12
+ }
13
+ get canvas() {
14
+ return this._canvas;
15
+ }
16
+ ensureAttached() {
17
+ !this._domElement.parentNode && this._canvas.parentNode && (this._canvas.parentNode.appendChild(this._domElement), this.updateTranslation());
18
+ }
19
+ _attachObserver() {
20
+ "ResizeObserver" in globalThis ? (this._observer &&= (this._observer.disconnect(), null), this._observer = new ResizeObserver((e) => {
21
+ for (let t of e) {
22
+ if (t.target !== this._canvas) continue;
23
+ let e = this.canvas.width, n = this.canvas.height, r = t.contentRect.width / e * this._renderer.resolution, i = t.contentRect.height / n * this._renderer.resolution;
24
+ (this._lastScaleX !== r || this._lastScaleY !== i) && (this.updateTranslation(), this._lastScaleX = r, this._lastScaleY = i);
25
+ }
26
+ }), this._observer.observe(this._canvas)) : this._tickerAttached || c.shared.add(this.updateTranslation, this, r.HIGH);
27
+ }
28
+ destroy() {
29
+ this._observer ? (this._observer.disconnect(), this._observer = null) : this._tickerAttached && c.shared.remove(this.updateTranslation), this._domElement = null, this._renderer = null, this._canvas = null, this._tickerAttached = !1, this._lastTransform = "", this._lastScaleX = null, this._lastScaleY = null;
30
+ }
31
+ }, u = class t {
32
+ constructor(n) {
33
+ this.bubbles = !0, this.cancelBubble = !0, this.cancelable = !1, this.composed = !1, this.defaultPrevented = !1, this.eventPhase = t.prototype.NONE, this.propagationStopped = !1, this.propagationImmediatelyStopped = !1, this.layer = new e(), this.page = new e(), this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.manager = n;
34
+ }
35
+ get layerX() {
36
+ return this.layer.x;
37
+ }
38
+ get layerY() {
39
+ return this.layer.y;
40
+ }
41
+ get pageX() {
42
+ return this.page.x;
43
+ }
44
+ get pageY() {
45
+ return this.page.y;
46
+ }
47
+ get data() {
48
+ return this;
49
+ }
50
+ composedPath() {
51
+ return this.manager && (!this.path || this.path[this.path.length - 1] !== this.target) && (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.path;
52
+ }
53
+ initEvent(e, t, n) {
54
+ throw Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
55
+ }
56
+ initUIEvent(e, t, n, r, i) {
57
+ throw Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
58
+ }
59
+ preventDefault() {
60
+ this.nativeEvent instanceof Event && this.nativeEvent.cancelable && this.nativeEvent.preventDefault(), this.defaultPrevented = !0;
61
+ }
62
+ stopImmediatePropagation() {
63
+ this.propagationImmediatelyStopped = !0;
64
+ }
65
+ stopPropagation() {
66
+ this.propagationStopped = !0;
67
+ }
68
+ }, d = /iPhone/i, f = /iPod/i, p = /iPad/i, m = /\biOS-universal(?:.+)Mac\b/i, h = /\bAndroid(?:.+)Mobile\b/i, g = /Android/i, _ = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, v = /Silk/i, y = /Windows Phone/i, b = /\bWindows(?:.+)ARM\b/i, x = /BlackBerry/i, S = /BB10/i, C = /Opera Mini/i, w = /\b(CriOS|Chrome)(?:.+)Mobile/i, T = /Mobile(?:.+)Firefox\b/i, E = function(e) {
69
+ return e !== void 0 && e.platform === "MacIntel" && typeof e.maxTouchPoints == "number" && e.maxTouchPoints > 1 && typeof MSStream > "u";
70
+ };
71
+ function D(e) {
72
+ return function(t) {
73
+ return t.test(e);
74
+ };
75
+ }
76
+ function O(e) {
77
+ var t = {
78
+ userAgent: "",
79
+ platform: "",
80
+ maxTouchPoints: 0
81
+ };
82
+ !e && typeof navigator < "u" ? t = {
83
+ userAgent: navigator.userAgent,
84
+ platform: navigator.platform,
85
+ maxTouchPoints: navigator.maxTouchPoints || 0
86
+ } : typeof e == "string" ? t.userAgent = e : e && e.userAgent && (t = {
87
+ userAgent: e.userAgent,
88
+ platform: e.platform,
89
+ maxTouchPoints: e.maxTouchPoints || 0
90
+ });
91
+ var n = t.userAgent, r = n.split("[FBAN");
92
+ r[1] !== void 0 && (n = r[0]), r = n.split("Twitter"), r[1] !== void 0 && (n = r[0]);
93
+ var i = D(n), a = {
94
+ apple: {
95
+ phone: i(d) && !i(y),
96
+ ipod: i(f),
97
+ tablet: !i(d) && (i(p) || E(t)) && !i(y),
98
+ universal: i(m),
99
+ device: (i(d) || i(f) || i(p) || i(m) || E(t)) && !i(y)
100
+ },
101
+ amazon: {
102
+ phone: i(_),
103
+ tablet: !i(_) && i(v),
104
+ device: i(_) || i(v)
105
+ },
106
+ android: {
107
+ phone: !i(y) && i(_) || !i(y) && i(h),
108
+ tablet: !i(y) && !i(_) && !i(h) && (i(v) || i(g)),
109
+ device: !i(y) && (i(_) || i(v) || i(h) || i(g)) || i(/\bokhttp\b/i)
110
+ },
111
+ windows: {
112
+ phone: i(y),
113
+ tablet: i(b),
114
+ device: i(y) || i(b)
115
+ },
116
+ other: {
117
+ blackberry: i(x),
118
+ blackberry10: i(S),
119
+ opera: i(C),
120
+ firefox: i(T),
121
+ chrome: i(w),
122
+ device: i(x) || i(S) || i(C) || i(T) || i(w)
123
+ },
124
+ any: !1,
125
+ phone: !1,
126
+ tablet: !1
127
+ };
128
+ return a.any = a.apple.device || a.android.device || a.windows.device || a.other.device, a.phone = a.apple.phone || a.android.phone || a.windows.phone, a.tablet = a.apple.tablet || a.android.tablet || a.windows.tablet, a;
129
+ }
130
+ //#endregion
131
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/browser/isMobile.mjs
132
+ var k = (O.default ?? O)(globalThis.navigator), A = 9, j = 100, M = 0, N = 0, P = 2, F = 1, I = -1e3, L = -1e3, R = 2, z = class e {
133
+ constructor(e, t = k) {
134
+ this._mobileInfo = t, this.debug = !1, this._activateOnTab = !0, this._deactivateOnMouseMove = !0, this._isActive = !1, this._isMobileAccessibility = !1, this._div = null, this._pools = {}, this._renderId = 0, this._children = [], this._androidUpdateCount = 0, this._androidUpdateFrequency = 500, this._isRunningTests = !1, this._boundOnKeyDown = this._onKeyDown.bind(this), this._boundOnMouseMove = this._onMouseMove.bind(this), this._hookDiv = null, (t.tablet || t.phone) && this._createTouchHook(), this._renderer = e;
135
+ }
136
+ get isActive() {
137
+ return this._isActive;
138
+ }
139
+ get isMobileAccessibility() {
140
+ return this._isMobileAccessibility;
141
+ }
142
+ get hookDiv() {
143
+ return this._hookDiv;
144
+ }
145
+ get div() {
146
+ return this._div;
147
+ }
148
+ _createTouchHook() {
149
+ let e = document.createElement("button");
150
+ e.style.width = `${F}px`, e.style.height = `${F}px`, e.style.position = "absolute", e.style.top = `${I}px`, e.style.left = `${L}px`, e.style.zIndex = R.toString(), e.style.backgroundColor = "#FF0000", e.title = "select to enable accessibility for this content", e.addEventListener("focus", () => {
151
+ this._isMobileAccessibility = !0, this._activate(), this._destroyTouchHook();
152
+ }), document.body.appendChild(e), this._hookDiv = e;
153
+ }
154
+ _destroyTouchHook() {
155
+ this._hookDiv &&= (document.body.removeChild(this._hookDiv), null);
156
+ }
157
+ _activate() {
158
+ if (this._isActive) return;
159
+ this._isActive = !0, this._div || (this._div = document.createElement("div"), this._div.style.position = "absolute", this._div.style.top = `${M}px`, this._div.style.left = `${N}px`, this._div.style.pointerEvents = "none", this._div.style.zIndex = P.toString(), this._canvasObserver = new l({
160
+ domElement: this._div,
161
+ renderer: this._renderer
162
+ })), this._activateOnTab && globalThis.addEventListener("keydown", this._boundOnKeyDown, !1), this._deactivateOnMouseMove && globalThis.document.addEventListener("mousemove", this._boundOnMouseMove, !0);
163
+ let e = this._renderer.view.canvas;
164
+ if (e.parentNode) this._canvasObserver.ensureAttached(), this._initAccessibilitySetup();
165
+ else {
166
+ let t = new MutationObserver(() => {
167
+ e.parentNode && (t.disconnect(), this._canvasObserver.ensureAttached(), this._initAccessibilitySetup());
168
+ });
169
+ t.observe(document.body, {
170
+ childList: !0,
171
+ subtree: !0
172
+ });
173
+ }
174
+ }
175
+ _initAccessibilitySetup() {
176
+ this._renderer.runners.postrender.add(this), this._renderer.lastObjectRendered && this._updateAccessibleObjects(this._renderer.lastObjectRendered);
177
+ }
178
+ _deactivate() {
179
+ if (!(!this._isActive || this._isMobileAccessibility)) {
180
+ this._isActive = !1, globalThis.document.removeEventListener("mousemove", this._boundOnMouseMove, !0), this._activateOnTab && globalThis.addEventListener("keydown", this._boundOnKeyDown, !1), this._renderer.runners.postrender.remove(this);
181
+ for (let e of this._children) e._accessibleDiv?.parentNode && (e._accessibleDiv.parentNode.removeChild(e._accessibleDiv), e._accessibleDiv = null), e._accessibleActive = !1;
182
+ for (let e in this._pools) this._pools[e].forEach((e) => {
183
+ e.parentNode && e.parentNode.removeChild(e);
184
+ }), delete this._pools[e];
185
+ this._div?.parentNode && this._div.parentNode.removeChild(this._div), this._pools = {}, this._children = [];
186
+ }
187
+ }
188
+ _updateAccessibleObjects(e) {
189
+ if (!e.visible || !e.accessibleChildren) return;
190
+ e.accessible && (e._accessibleActive || this._addChild(e), e._renderId = this._renderId);
191
+ let t = e.children;
192
+ if (t) for (let e = 0; e < t.length; e++) this._updateAccessibleObjects(t[e]);
193
+ }
194
+ init(t) {
195
+ let n = { accessibilityOptions: {
196
+ ...e.defaultOptions,
197
+ ...t?.accessibilityOptions || {}
198
+ } };
199
+ this.debug = n.accessibilityOptions.debug, this._activateOnTab = n.accessibilityOptions.activateOnTab, this._deactivateOnMouseMove = n.accessibilityOptions.deactivateOnMouseMove, n.accessibilityOptions.enabledByDefault && this._activate(), this._renderer.runners.postrender.remove(this);
200
+ }
201
+ postrender() {
202
+ let e = performance.now();
203
+ if (this._mobileInfo.android.device && e < this._androidUpdateCount || (this._androidUpdateCount = e + this._androidUpdateFrequency, (!this._renderer.renderingToScreen || !this._renderer.view.canvas) && !this._isRunningTests)) return;
204
+ let t = /* @__PURE__ */ new Set();
205
+ if (this._renderer.lastObjectRendered) {
206
+ this._updateAccessibleObjects(this._renderer.lastObjectRendered);
207
+ for (let e of this._children) e._renderId === this._renderId && t.add(this._children.indexOf(e));
208
+ }
209
+ for (let e = this._children.length - 1; e >= 0; e--) {
210
+ let r = this._children[e];
211
+ t.has(e) || (r._accessibleDiv && r._accessibleDiv.parentNode && (r._accessibleDiv.parentNode.removeChild(r._accessibleDiv), this._getPool(r.accessibleType).push(r._accessibleDiv), r._accessibleDiv = null), r._accessibleActive = !1, n(this._children, e, 1));
212
+ }
213
+ this._renderer.renderingToScreen && this._canvasObserver.ensureAttached();
214
+ for (let e = 0; e < this._children.length; e++) {
215
+ let t = this._children[e];
216
+ if (!t._accessibleActive || !t._accessibleDiv) continue;
217
+ let n = t._accessibleDiv, r = t.hitArea || t.getBounds().rectangle;
218
+ if (t.hitArea) {
219
+ let e = t.worldTransform;
220
+ n.style.left = `${e.tx + r.x * e.a}px`, n.style.top = `${e.ty + r.y * e.d}px`, n.style.width = `${r.width * e.a}px`, n.style.height = `${r.height * e.d}px`;
221
+ } else this._capHitArea(r), n.style.left = `${r.x}px`, n.style.top = `${r.y}px`, n.style.width = `${r.width}px`, n.style.height = `${r.height}px`;
222
+ }
223
+ this._renderId++;
224
+ }
225
+ _updateDebugHTML(e) {
226
+ e.innerHTML = `type: ${e.type}</br> title : ${e.title}</br> tabIndex: ${e.tabIndex}`;
227
+ }
228
+ _capHitArea(e) {
229
+ e.x < 0 && (e.width += e.x, e.x = 0), e.y < 0 && (e.height += e.y, e.y = 0);
230
+ let { width: t, height: n } = this._renderer;
231
+ e.x + e.width > t && (e.width = t - e.x), e.y + e.height > n && (e.height = n - e.y);
232
+ }
233
+ _addChild(e) {
234
+ let t = this._getPool(e.accessibleType).pop();
235
+ t ? (t.innerHTML = "", t.removeAttribute("title"), t.removeAttribute("aria-label"), t.tabIndex = 0) : (e.accessibleType === "button" ? t = document.createElement("button") : (t = document.createElement(e.accessibleType), t.style.cssText = "\n color: transparent;\n pointer-events: none;\n padding: 0;\n margin: 0;\n border: 0;\n outline: 0;\n background: transparent;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n ", e.accessibleText && (t.innerText = e.accessibleText)), t.style.width = `${j}px`, t.style.height = `${j}px`, t.style.backgroundColor = this.debug ? "rgba(255,255,255,0.5)" : "transparent", t.style.position = "absolute", t.style.zIndex = P.toString(), t.style.borderStyle = "none", navigator.userAgent.toLowerCase().includes("chrome") ? t.setAttribute("aria-live", "off") : t.setAttribute("aria-live", "polite"), navigator.userAgent.match(/rv:.*Gecko\//) ? t.setAttribute("aria-relevant", "additions") : t.setAttribute("aria-relevant", "text"), t.addEventListener("click", this._onClick.bind(this)), t.addEventListener("focus", this._onFocus.bind(this)), t.addEventListener("focusout", this._onFocusOut.bind(this))), t.style.pointerEvents = e.accessiblePointerEvents, t.type = e.accessibleType, e.accessibleTitle && e.accessibleTitle !== null ? t.title = e.accessibleTitle : (!e.accessibleHint || e.accessibleHint === null) && (t.title = `container ${e.tabIndex}`), e.accessibleHint && e.accessibleHint !== null && t.setAttribute("aria-label", e.accessibleHint), e.interactive ? t.tabIndex = e.tabIndex : t.tabIndex = 0, this.debug && this._updateDebugHTML(t), e._accessibleActive = !0, e._accessibleDiv = t, t.container = e, this._children.push(e), this._div.appendChild(e._accessibleDiv);
236
+ }
237
+ _dispatchEvent(e, t) {
238
+ let { container: n } = e.target, r = this._renderer.events.rootBoundary, i = Object.assign(new u(r), { target: n });
239
+ r.rootTarget = this._renderer.lastObjectRendered, t.forEach((e) => r.dispatchEvent(i, e));
240
+ }
241
+ _onClick(e) {
242
+ this._dispatchEvent(e, [
243
+ "click",
244
+ "pointertap",
245
+ "tap"
246
+ ]);
247
+ }
248
+ _onFocus(e) {
249
+ e.target.getAttribute("aria-live") || e.target.setAttribute("aria-live", "assertive"), this._dispatchEvent(e, ["mouseover"]);
250
+ }
251
+ _onFocusOut(e) {
252
+ e.target.getAttribute("aria-live") || e.target.setAttribute("aria-live", "polite"), this._dispatchEvent(e, ["mouseout"]);
253
+ }
254
+ _onKeyDown(e) {
255
+ e.keyCode !== A || !this._activateOnTab || this._activate();
256
+ }
257
+ _onMouseMove(e) {
258
+ (e.movementX !== 0 || e.movementY !== 0) && this._deactivate();
259
+ }
260
+ destroy() {
261
+ this._deactivate(), this._destroyTouchHook(), this._canvasObserver?.destroy(), this._canvasObserver = null, this._div = null, this._pools = null, this._children = null, this._renderer = null, this._hookDiv = null, globalThis.removeEventListener("keydown", this._boundOnKeyDown), this._boundOnKeyDown = null, globalThis.document.removeEventListener("mousemove", this._boundOnMouseMove, !0), this._boundOnMouseMove = null;
262
+ }
263
+ setAccessibilityEnabled(e) {
264
+ e ? this._activate() : this._deactivate();
265
+ }
266
+ _getPool(e) {
267
+ return this._pools[e] || (this._pools[e] = []), this._pools[e];
268
+ }
269
+ };
270
+ z.extension = {
271
+ type: [o.WebGLSystem, o.WebGPUSystem],
272
+ name: "accessibility"
273
+ }, z.defaultOptions = {
274
+ enabledByDefault: !1,
275
+ debug: !1,
276
+ activateOnTab: !0,
277
+ deactivateOnMouseMove: !0
278
+ };
279
+ var B = z;
280
+ i.add(B), i.mixin(s, {
281
+ accessible: !1,
282
+ accessibleTitle: null,
283
+ accessibleHint: null,
284
+ tabIndex: 0,
285
+ accessibleType: "button",
286
+ accessibleText: null,
287
+ accessiblePointerEvents: "auto",
288
+ accessibleChildren: !0,
289
+ _accessibleActive: !1,
290
+ _accessibleDiv: null,
291
+ _renderId: -1
292
+ });
293
+ //#endregion
294
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/dom/DOMPipe.mjs
295
+ var V = class {
296
+ constructor(e) {
297
+ this._attachedDomElements = [], this._renderer = e, this._renderer.runners.postrender.add(this), this._renderer.runners.init.add(this), this._domElement = document.createElement("div"), this._domElement.style.position = "absolute", this._domElement.style.top = "0", this._domElement.style.left = "0", this._domElement.style.pointerEvents = "none", this._domElement.style.zIndex = "1000";
298
+ }
299
+ init() {
300
+ this._canvasObserver = new l({
301
+ domElement: this._domElement,
302
+ renderer: this._renderer
303
+ });
304
+ }
305
+ addRenderable(e, t) {
306
+ this._attachedDomElements.includes(e) || this._attachedDomElements.push(e);
307
+ }
308
+ updateRenderable(e) {}
309
+ validateRenderable(e) {
310
+ return !0;
311
+ }
312
+ postrender() {
313
+ let e = this._attachedDomElements;
314
+ if (e.length === 0) {
315
+ this._domElement.remove();
316
+ return;
317
+ }
318
+ this._canvasObserver.ensureAttached();
319
+ for (let t = 0; t < e.length; t++) {
320
+ let n = e[t], r = n.element;
321
+ if (!n.parent || n.globalDisplayStatus < 7) r?.remove(), e.splice(t, 1), t--;
322
+ else {
323
+ this._domElement.contains(r) || (r.style.position = "absolute", r.style.pointerEvents = "auto", this._domElement.appendChild(r));
324
+ let e = n.worldTransform, t = n._anchor, i = n.width * t.x, a = n.height * t.y;
325
+ r.style.transformOrigin = `${i}px ${a}px`, r.style.transform = `matrix(${e.a}, ${e.b}, ${e.c}, ${e.d}, ${e.tx - i}, ${e.ty - a})`, r.style.opacity = n.groupAlpha.toString();
326
+ }
327
+ }
328
+ }
329
+ destroy() {
330
+ this._renderer.runners.postrender.remove(this);
331
+ for (let e = 0; e < this._attachedDomElements.length; e++) this._attachedDomElements[e].element?.remove();
332
+ this._attachedDomElements.length = 0, this._domElement.remove(), this._canvasObserver.destroy(), this._renderer = null;
333
+ }
334
+ };
335
+ //#endregion
336
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/dom/init.mjs
337
+ V.extension = {
338
+ type: [
339
+ o.WebGLPipes,
340
+ o.WebGPUPipes,
341
+ o.CanvasPipes
342
+ ],
343
+ name: "dom"
344
+ }, i.add(V);
345
+ var H = new class {
346
+ constructor() {
347
+ this.interactionFrequency = 10, this._deltaTime = 0, this._didMove = !1, this._tickerAdded = !1, this._pauseUpdate = !0;
348
+ }
349
+ init(e) {
350
+ this.removeTickerListener(), this.events = e, this.interactionFrequency = 10, this._deltaTime = 0, this._didMove = !1, this._tickerAdded = !1, this._pauseUpdate = !0;
351
+ }
352
+ get pauseUpdate() {
353
+ return this._pauseUpdate;
354
+ }
355
+ set pauseUpdate(e) {
356
+ this._pauseUpdate = e;
357
+ }
358
+ addTickerListener() {
359
+ this._tickerAdded || !this.domElement || (c.system.add(this._tickerUpdate, this, r.INTERACTION), this._tickerAdded = !0);
360
+ }
361
+ removeTickerListener() {
362
+ this._tickerAdded &&= (c.system.remove(this._tickerUpdate, this), !1);
363
+ }
364
+ pointerMoved() {
365
+ this._didMove = !0;
366
+ }
367
+ _update() {
368
+ if (!this.domElement || this._pauseUpdate) return;
369
+ if (this._didMove) {
370
+ this._didMove = !1;
371
+ return;
372
+ }
373
+ let e = this.events._rootPointerEvent;
374
+ this.events.supportsTouchEvents && e.pointerType === "touch" || globalThis.document.dispatchEvent(this.events.supportsPointerEvents ? new PointerEvent("pointermove", {
375
+ clientX: e.clientX,
376
+ clientY: e.clientY,
377
+ pointerType: e.pointerType,
378
+ pointerId: e.pointerId
379
+ }) : new MouseEvent("mousemove", {
380
+ clientX: e.clientX,
381
+ clientY: e.clientY
382
+ }));
383
+ }
384
+ _tickerUpdate(e) {
385
+ this._deltaTime += e.deltaTime, !(this._deltaTime < this.interactionFrequency) && (this._deltaTime = 0, this._update());
386
+ }
387
+ destroy() {
388
+ this.removeTickerListener(), this.events = null, this.domElement = null, this._deltaTime = 0, this._didMove = !1, this._tickerAdded = !1, this._pauseUpdate = !0;
389
+ }
390
+ }(), U = class extends u {
391
+ constructor() {
392
+ super(...arguments), this.client = new e(), this.movement = new e(), this.offset = new e(), this.global = new e(), this.screen = new e();
393
+ }
394
+ get clientX() {
395
+ return this.client.x;
396
+ }
397
+ get clientY() {
398
+ return this.client.y;
399
+ }
400
+ get x() {
401
+ return this.clientX;
402
+ }
403
+ get y() {
404
+ return this.clientY;
405
+ }
406
+ get movementX() {
407
+ return this.movement.x;
408
+ }
409
+ get movementY() {
410
+ return this.movement.y;
411
+ }
412
+ get offsetX() {
413
+ return this.offset.x;
414
+ }
415
+ get offsetY() {
416
+ return this.offset.y;
417
+ }
418
+ get globalX() {
419
+ return this.global.x;
420
+ }
421
+ get globalY() {
422
+ return this.global.y;
423
+ }
424
+ get screenX() {
425
+ return this.screen.x;
426
+ }
427
+ get screenY() {
428
+ return this.screen.y;
429
+ }
430
+ getLocalPosition(e, t, n) {
431
+ return e.worldTransform.applyInverse(n || this.global, t);
432
+ }
433
+ getModifierState(e) {
434
+ return "getModifierState" in this.nativeEvent && this.nativeEvent.getModifierState(e);
435
+ }
436
+ initMouseEvent(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m) {
437
+ throw Error("Method not implemented.");
438
+ }
439
+ }, W = class extends U {
440
+ constructor() {
441
+ super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1;
442
+ }
443
+ getCoalescedEvents() {
444
+ return this.type === "pointermove" || this.type === "mousemove" || this.type === "touchmove" ? [this] : [];
445
+ }
446
+ getPredictedEvents() {
447
+ throw Error("getPredictedEvents is not supported!");
448
+ }
449
+ }, G = class extends U {
450
+ constructor() {
451
+ super(...arguments), this.DOM_DELTA_PIXEL = 0, this.DOM_DELTA_LINE = 1, this.DOM_DELTA_PAGE = 2;
452
+ }
453
+ };
454
+ G.DOM_DELTA_PIXEL = 0, G.DOM_DELTA_LINE = 1, G.DOM_DELTA_PAGE = 2;
455
+ //#endregion
456
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/events/EventBoundary.mjs
457
+ var K = 2048, q = new e(), J = new e(), Y = class {
458
+ constructor(e) {
459
+ this.dispatch = new a(), this.moveOnAll = !1, this.enableGlobalMoveEvents = !0, this.mappingState = { trackingData: {} }, this.eventPool = /* @__PURE__ */ new Map(), this._allInteractiveElements = [], this._hitElements = [], this._isPointerMoveEvent = !1, this.rootTarget = e, this.hitPruneFn = this.hitPruneFn.bind(this), this.hitTestFn = this.hitTestFn.bind(this), this.mapPointerDown = this.mapPointerDown.bind(this), this.mapPointerMove = this.mapPointerMove.bind(this), this.mapPointerOut = this.mapPointerOut.bind(this), this.mapPointerOver = this.mapPointerOver.bind(this), this.mapPointerUp = this.mapPointerUp.bind(this), this.mapPointerUpOutside = this.mapPointerUpOutside.bind(this), this.mapWheel = this.mapWheel.bind(this), this.mappingTable = {}, this.addEventMapping("pointerdown", this.mapPointerDown), this.addEventMapping("pointermove", this.mapPointerMove), this.addEventMapping("pointerout", this.mapPointerOut), this.addEventMapping("pointerleave", this.mapPointerOut), this.addEventMapping("pointerover", this.mapPointerOver), this.addEventMapping("pointerup", this.mapPointerUp), this.addEventMapping("pointerupoutside", this.mapPointerUpOutside), this.addEventMapping("wheel", this.mapWheel);
460
+ }
461
+ addEventMapping(e, t) {
462
+ this.mappingTable[e] || (this.mappingTable[e] = []), this.mappingTable[e].push({
463
+ fn: t,
464
+ priority: 0
465
+ }), this.mappingTable[e].sort((e, t) => e.priority - t.priority);
466
+ }
467
+ dispatchEvent(e, t) {
468
+ e.propagationStopped = !1, e.propagationImmediatelyStopped = !1, this.propagate(e, t), this.dispatch.emit(t || e.type, e);
469
+ }
470
+ mapEvent(e) {
471
+ if (!this.rootTarget) return;
472
+ let n = this.mappingTable[e.type];
473
+ if (n) for (let t = 0, r = n.length; t < r; t++) n[t].fn(e);
474
+ else t(`[EventBoundary]: Event mapping not defined for ${e.type}`);
475
+ }
476
+ hitTest(e, t) {
477
+ H.pauseUpdate = !0;
478
+ let n = this._isPointerMoveEvent && this.enableGlobalMoveEvents ? "hitTestMoveRecursive" : "hitTestRecursive", r = this[n](this.rootTarget, this.rootTarget.eventMode, q.set(e, t), this.hitTestFn, this.hitPruneFn);
479
+ return r && r[0];
480
+ }
481
+ propagate(e, t) {
482
+ if (!e.target) return;
483
+ let n = e.composedPath();
484
+ e.eventPhase = e.CAPTURING_PHASE;
485
+ for (let r = 0, i = n.length - 1; r < i; r++) if (e.currentTarget = n[r], this.notifyTarget(e, t), e.propagationStopped || e.propagationImmediatelyStopped) return;
486
+ if (e.eventPhase = e.AT_TARGET, e.currentTarget = e.target, this.notifyTarget(e, t), !(e.propagationStopped || e.propagationImmediatelyStopped)) {
487
+ e.eventPhase = e.BUBBLING_PHASE;
488
+ for (let r = n.length - 2; r >= 0; r--) if (e.currentTarget = n[r], this.notifyTarget(e, t), e.propagationStopped || e.propagationImmediatelyStopped) return;
489
+ }
490
+ }
491
+ all(e, t, n = this._allInteractiveElements) {
492
+ if (n.length === 0) return;
493
+ e.eventPhase = e.BUBBLING_PHASE;
494
+ let r = Array.isArray(t) ? t : [t];
495
+ for (let t = n.length - 1; t >= 0; t--) r.forEach((r) => {
496
+ e.currentTarget = n[t], this.notifyTarget(e, r);
497
+ });
498
+ }
499
+ propagationPath(e) {
500
+ let t = [e];
501
+ for (let n = 0; n < K && e !== this.rootTarget && e.parent; n++) {
502
+ if (!e.parent) throw Error("Cannot find propagation path to disconnected target");
503
+ t.push(e.parent), e = e.parent;
504
+ }
505
+ return t.reverse(), t;
506
+ }
507
+ hitTestMoveRecursive(e, t, n, r, i, a = !1) {
508
+ let o = !1;
509
+ if (this._interactivePrune(e)) return null;
510
+ if ((e.eventMode === "dynamic" || t === "dynamic") && (H.pauseUpdate = !1), e.interactiveChildren && e.children) {
511
+ let s = e.children;
512
+ for (let c = s.length - 1; c >= 0; c--) {
513
+ let l = s[c], u = this.hitTestMoveRecursive(l, this._isInteractive(t) ? t : l.eventMode, n, r, i, a || i(e, n));
514
+ if (u) {
515
+ if (u.length > 0 && !u[u.length - 1].parent) continue;
516
+ let t = e.isInteractive();
517
+ (u.length > 0 || t) && (t && this._allInteractiveElements.push(e), u.push(e)), this._hitElements.length === 0 && (this._hitElements = u), o = !0;
518
+ }
519
+ }
520
+ }
521
+ let s = this._isInteractive(t), c = e.isInteractive();
522
+ return c && c && this._allInteractiveElements.push(e), a || this._hitElements.length > 0 ? null : o ? this._hitElements : s && !i(e, n) && r(e, n) ? c ? [e] : [] : null;
523
+ }
524
+ hitTestRecursive(e, t, n, r, i) {
525
+ if (this._interactivePrune(e) || i(e, n)) return null;
526
+ if ((e.eventMode === "dynamic" || t === "dynamic") && (H.pauseUpdate = !1), e.interactiveChildren && e.children) {
527
+ let a = e.children, o = n;
528
+ for (let n = a.length - 1; n >= 0; n--) {
529
+ let s = a[n], c = this.hitTestRecursive(s, this._isInteractive(t) ? t : s.eventMode, o, r, i);
530
+ if (c) {
531
+ if (c.length > 0 && !c[c.length - 1].parent) continue;
532
+ let t = e.isInteractive();
533
+ return (c.length > 0 || t) && c.push(e), c;
534
+ }
535
+ }
536
+ }
537
+ let a = this._isInteractive(t), o = e.isInteractive();
538
+ return a && r(e, n) ? o ? [e] : [] : null;
539
+ }
540
+ _isInteractive(e) {
541
+ return e === "static" || e === "dynamic";
542
+ }
543
+ _interactivePrune(e) {
544
+ return !e || !e.visible || !e.renderable || !e.measurable || e.eventMode === "none" || e.eventMode === "passive" && !e.interactiveChildren;
545
+ }
546
+ hitPruneFn(e, t) {
547
+ if (e.hitArea && (e.worldTransform.applyInverse(t, J), !e.hitArea.contains(J.x, J.y))) return !0;
548
+ if (e.effects && e.effects.length) for (let n = 0; n < e.effects.length; n++) {
549
+ let r = e.effects[n];
550
+ if (r.containsPoint && !r.containsPoint(t, this.hitTestFn)) return !0;
551
+ }
552
+ return !1;
553
+ }
554
+ hitTestFn(e, t) {
555
+ return e.hitArea ? !0 : e?.containsPoint ? (e.worldTransform.applyInverse(t, J), e.containsPoint(J)) : !1;
556
+ }
557
+ notifyTarget(e, t) {
558
+ if (!e.currentTarget.isInteractive()) return;
559
+ t ??= e.type;
560
+ let n = `on${t}`;
561
+ e.currentTarget[n]?.(e);
562
+ let r = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? `${t}capture` : t;
563
+ this._notifyListeners(e, r), e.eventPhase === e.AT_TARGET && this._notifyListeners(e, t);
564
+ }
565
+ mapPointerDown(e) {
566
+ if (!(e instanceof W)) {
567
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
568
+ return;
569
+ }
570
+ let n = this.createPointerEvent(e);
571
+ if (this.dispatchEvent(n, "pointerdown"), n.pointerType === "touch") this.dispatchEvent(n, "touchstart");
572
+ else if (n.pointerType === "mouse" || n.pointerType === "pen") {
573
+ let e = n.button === 2;
574
+ this.dispatchEvent(n, e ? "rightdown" : "mousedown");
575
+ }
576
+ let r = this.trackingData(e.pointerId);
577
+ r.pressTargetsByButton[e.button] = n.composedPath(), this.freeEvent(n);
578
+ }
579
+ mapPointerMove(e) {
580
+ if (!(e instanceof W)) {
581
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
582
+ return;
583
+ }
584
+ this._allInteractiveElements.length = 0, this._hitElements.length = 0, this._isPointerMoveEvent = !0;
585
+ let n = this.createPointerEvent(e);
586
+ this._isPointerMoveEvent = !1;
587
+ let r = n.pointerType === "mouse" || n.pointerType === "pen", i = this.trackingData(e.pointerId), a = this.findMountedTarget(i.overTargets);
588
+ if (i.overTargets?.length > 0 && a !== n.target) {
589
+ let t = e.type === "mousemove" ? "mouseout" : "pointerout", i = this.createPointerEvent(e, t, a);
590
+ if (this.dispatchEvent(i, "pointerout"), r && this.dispatchEvent(i, "mouseout"), !n.composedPath().includes(a)) {
591
+ let t = this.createPointerEvent(e, "pointerleave", a);
592
+ for (t.eventPhase = t.AT_TARGET; t.target && !n.composedPath().includes(t.target);) t.currentTarget = t.target, this.notifyTarget(t), r && this.notifyTarget(t, "mouseleave"), t.target = t.target.parent;
593
+ this.freeEvent(t);
594
+ }
595
+ this.freeEvent(i);
596
+ }
597
+ if (a !== n.target) {
598
+ let t = e.type === "mousemove" ? "mouseover" : "pointerover", i = this.clonePointerEvent(n, t);
599
+ this.dispatchEvent(i, "pointerover"), r && this.dispatchEvent(i, "mouseover");
600
+ let o = a?.parent;
601
+ for (; o && o !== this.rootTarget.parent && o !== n.target;) o = o.parent;
602
+ if (!o || o === this.rootTarget.parent) {
603
+ let e = this.clonePointerEvent(n, "pointerenter");
604
+ for (e.eventPhase = e.AT_TARGET; e.target && e.target !== a && e.target !== this.rootTarget.parent;) e.currentTarget = e.target, this.notifyTarget(e), r && this.notifyTarget(e, "mouseenter"), e.target = e.target.parent;
605
+ this.freeEvent(e);
606
+ }
607
+ this.freeEvent(i);
608
+ }
609
+ let o = [], s = this.enableGlobalMoveEvents ?? !0;
610
+ this.moveOnAll ? o.push("pointermove") : this.dispatchEvent(n, "pointermove"), s && o.push("globalpointermove"), n.pointerType === "touch" && (this.moveOnAll ? o.splice(1, 0, "touchmove") : this.dispatchEvent(n, "touchmove"), s && o.push("globaltouchmove")), r && (this.moveOnAll ? o.splice(1, 0, "mousemove") : this.dispatchEvent(n, "mousemove"), s && o.push("globalmousemove"), this.cursor = n.target?.cursor), o.length > 0 && this.all(n, o), this._allInteractiveElements.length = 0, this._hitElements.length = 0, i.overTargets = n.composedPath(), this.freeEvent(n);
611
+ }
612
+ mapPointerOver(e) {
613
+ if (!(e instanceof W)) {
614
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
615
+ return;
616
+ }
617
+ let n = this.trackingData(e.pointerId), r = this.createPointerEvent(e), i = r.pointerType === "mouse" || r.pointerType === "pen";
618
+ this.dispatchEvent(r, "pointerover"), i && this.dispatchEvent(r, "mouseover"), r.pointerType === "mouse" && (this.cursor = r.target?.cursor);
619
+ let a = this.clonePointerEvent(r, "pointerenter");
620
+ for (a.eventPhase = a.AT_TARGET; a.target && a.target !== this.rootTarget.parent;) a.currentTarget = a.target, this.notifyTarget(a), i && this.notifyTarget(a, "mouseenter"), a.target = a.target.parent;
621
+ n.overTargets = r.composedPath(), this.freeEvent(r), this.freeEvent(a);
622
+ }
623
+ mapPointerOut(e) {
624
+ if (!(e instanceof W)) {
625
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
626
+ return;
627
+ }
628
+ let n = this.trackingData(e.pointerId);
629
+ if (n.overTargets) {
630
+ let t = e.pointerType === "mouse" || e.pointerType === "pen", r = this.findMountedTarget(n.overTargets), i = this.createPointerEvent(e, "pointerout", r);
631
+ this.dispatchEvent(i), t && this.dispatchEvent(i, "mouseout");
632
+ let a = this.createPointerEvent(e, "pointerleave", r);
633
+ for (a.eventPhase = a.AT_TARGET; a.target && a.target !== this.rootTarget.parent;) a.currentTarget = a.target, this.notifyTarget(a), t && this.notifyTarget(a, "mouseleave"), a.target = a.target.parent;
634
+ n.overTargets = null, this.freeEvent(i), this.freeEvent(a);
635
+ }
636
+ this.cursor = null;
637
+ }
638
+ mapPointerUp(e) {
639
+ if (!(e instanceof W)) {
640
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
641
+ return;
642
+ }
643
+ let n = performance.now(), r = this.createPointerEvent(e);
644
+ if (this.dispatchEvent(r, "pointerup"), r.pointerType === "touch") this.dispatchEvent(r, "touchend");
645
+ else if (r.pointerType === "mouse" || r.pointerType === "pen") {
646
+ let e = r.button === 2;
647
+ this.dispatchEvent(r, e ? "rightup" : "mouseup");
648
+ }
649
+ let i = this.trackingData(e.pointerId), a = this.findMountedTarget(i.pressTargetsByButton[e.button]), o = a;
650
+ if (a && !r.composedPath().includes(a)) {
651
+ let t = a;
652
+ for (; t && !r.composedPath().includes(t);) {
653
+ if (r.currentTarget = t, this.notifyTarget(r, "pointerupoutside"), r.pointerType === "touch") this.notifyTarget(r, "touchendoutside");
654
+ else if (r.pointerType === "mouse" || r.pointerType === "pen") {
655
+ let e = r.button === 2;
656
+ this.notifyTarget(r, e ? "rightupoutside" : "mouseupoutside");
657
+ }
658
+ t = t.parent;
659
+ }
660
+ delete i.pressTargetsByButton[e.button], o = t;
661
+ }
662
+ if (o) {
663
+ let t = this.clonePointerEvent(r, "click");
664
+ t.target = o, t.path = null, i.clicksByButton[e.button] || (i.clicksByButton[e.button] = {
665
+ clickCount: 0,
666
+ target: t.target,
667
+ timeStamp: n
668
+ });
669
+ let a = i.clicksByButton[e.button];
670
+ if (a.target === t.target && n - a.timeStamp < 200 ? ++a.clickCount : a.clickCount = 1, a.target = t.target, a.timeStamp = n, t.detail = a.clickCount, t.pointerType === "mouse") {
671
+ let e = t.button === 2;
672
+ this.dispatchEvent(t, e ? "rightclick" : "click");
673
+ } else t.pointerType === "touch" && this.dispatchEvent(t, "tap");
674
+ this.dispatchEvent(t, "pointertap"), this.freeEvent(t);
675
+ }
676
+ this.freeEvent(r);
677
+ }
678
+ mapPointerUpOutside(e) {
679
+ if (!(e instanceof W)) {
680
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
681
+ return;
682
+ }
683
+ let n = this.trackingData(e.pointerId), r = this.findMountedTarget(n.pressTargetsByButton[e.button]), i = this.createPointerEvent(e);
684
+ if (r) {
685
+ let t = r;
686
+ for (; t;) i.currentTarget = t, this.notifyTarget(i, "pointerupoutside"), i.pointerType === "touch" ? this.notifyTarget(i, "touchendoutside") : (i.pointerType === "mouse" || i.pointerType === "pen") && this.notifyTarget(i, i.button === 2 ? "rightupoutside" : "mouseupoutside"), t = t.parent;
687
+ delete n.pressTargetsByButton[e.button];
688
+ }
689
+ this.freeEvent(i);
690
+ }
691
+ mapWheel(e) {
692
+ if (!(e instanceof G)) {
693
+ t("EventBoundary cannot map a non-wheel event as a wheel event");
694
+ return;
695
+ }
696
+ let n = this.createWheelEvent(e);
697
+ this.dispatchEvent(n), this.freeEvent(n);
698
+ }
699
+ findMountedTarget(e) {
700
+ if (!e) return null;
701
+ let t = e[0];
702
+ for (let n = 1; n < e.length && e[n].parent === t; n++) t = e[n];
703
+ return t;
704
+ }
705
+ createPointerEvent(e, t, n) {
706
+ let r = this.allocateEvent(W);
707
+ return this.copyPointerData(e, r), this.copyMouseData(e, r), this.copyData(e, r), r.nativeEvent = e.nativeEvent, r.originalEvent = e, r.target = n ?? this.hitTest(r.global.x, r.global.y) ?? this._hitElements[0], typeof t == "string" && (r.type = t), r;
708
+ }
709
+ createWheelEvent(e) {
710
+ let t = this.allocateEvent(G);
711
+ return this.copyWheelData(e, t), this.copyMouseData(e, t), this.copyData(e, t), t.nativeEvent = e.nativeEvent, t.originalEvent = e, t.target = this.hitTest(t.global.x, t.global.y), t;
712
+ }
713
+ clonePointerEvent(e, t) {
714
+ let n = this.allocateEvent(W);
715
+ return n.nativeEvent = e.nativeEvent, n.originalEvent = e.originalEvent, this.copyPointerData(e, n), this.copyMouseData(e, n), this.copyData(e, n), n.target = e.target, n.path = e.composedPath().slice(), n.type = t ?? n.type, n;
716
+ }
717
+ copyWheelData(e, t) {
718
+ t.deltaMode = e.deltaMode, t.deltaX = e.deltaX, t.deltaY = e.deltaY, t.deltaZ = e.deltaZ;
719
+ }
720
+ copyPointerData(e, t) {
721
+ e instanceof W && t instanceof W && (t.pointerId = e.pointerId, t.width = e.width, t.height = e.height, t.isPrimary = e.isPrimary, t.pointerType = e.pointerType, t.pressure = e.pressure, t.tangentialPressure = e.tangentialPressure, t.tiltX = e.tiltX, t.tiltY = e.tiltY, t.twist = e.twist);
722
+ }
723
+ copyMouseData(e, t) {
724
+ e instanceof U && t instanceof U && (t.altKey = e.altKey, t.button = e.button, t.buttons = e.buttons, t.client.copyFrom(e.client), t.ctrlKey = e.ctrlKey, t.metaKey = e.metaKey, t.movement.copyFrom(e.movement), t.screen.copyFrom(e.screen), t.shiftKey = e.shiftKey, t.global.copyFrom(e.global));
725
+ }
726
+ copyData(e, t) {
727
+ t.isTrusted = e.isTrusted, t.srcElement = e.srcElement, t.timeStamp = performance.now(), t.type = e.type, t.detail = e.detail, t.view = e.view, t.which = e.which, t.layer.copyFrom(e.layer), t.page.copyFrom(e.page);
728
+ }
729
+ trackingData(e) {
730
+ return this.mappingState.trackingData[e] || (this.mappingState.trackingData[e] = {
731
+ pressTargetsByButton: {},
732
+ clicksByButton: {},
733
+ overTarget: null
734
+ }), this.mappingState.trackingData[e];
735
+ }
736
+ allocateEvent(e) {
737
+ this.eventPool.has(e) || this.eventPool.set(e, []);
738
+ let t = this.eventPool.get(e).pop() || new e(this);
739
+ return t.eventPhase = t.NONE, t.currentTarget = null, t.defaultPrevented = !1, t.path = null, t.target = null, t;
740
+ }
741
+ freeEvent(e) {
742
+ if (e.manager !== this) throw Error("It is illegal to free an event not managed by this EventBoundary!");
743
+ let t = e.constructor;
744
+ this.eventPool.has(t) || this.eventPool.set(t, []), this.eventPool.get(t).push(e);
745
+ }
746
+ _notifyListeners(e, t) {
747
+ let n = e.currentTarget._events[t];
748
+ if (n) {
749
+ if ("fn" in n) n.once && e.currentTarget.removeListener(t, n.fn, void 0, !0), n.fn.call(n.context, e);
750
+ else for (let r = 0, i = n.length; r < i && !e.propagationImmediatelyStopped; r++) n[r].once && e.currentTarget.removeListener(t, n[r].fn, void 0, !0), n[r].fn.call(n[r].context, e);
751
+ }
752
+ }
753
+ }, X = 1, Z = {
754
+ touchstart: "pointerdown",
755
+ touchend: "pointerup",
756
+ touchendoutside: "pointerupoutside",
757
+ touchmove: "pointermove",
758
+ touchcancel: "pointercancel"
759
+ }, Q = class e {
760
+ constructor(t) {
761
+ this.supportsTouchEvents = "ontouchstart" in globalThis, this.supportsPointerEvents = !!globalThis.PointerEvent, this.domElement = null, this.resolution = 1, this.renderer = t, this.rootBoundary = new Y(null), H.init(this), this.autoPreventDefault = !0, this._eventsAdded = !1, this._rootPointerEvent = new W(null), this._rootWheelEvent = new G(null), this.cursorStyles = {
762
+ default: "inherit",
763
+ pointer: "pointer"
764
+ }, this.features = new Proxy({ ...e.defaultEventFeatures }, { set: (e, t, n) => (t === "globalMove" && (this.rootBoundary.enableGlobalMoveEvents = n), e[t] = n, !0) }), this._onPointerDown = this._onPointerDown.bind(this), this._onPointerMove = this._onPointerMove.bind(this), this._onPointerUp = this._onPointerUp.bind(this), this._onPointerOverOut = this._onPointerOverOut.bind(this), this.onWheel = this.onWheel.bind(this);
765
+ }
766
+ static get defaultEventMode() {
767
+ return this._defaultEventMode;
768
+ }
769
+ init(t) {
770
+ let { canvas: n, resolution: r } = this.renderer;
771
+ this.setTargetElement(n), this.resolution = r, e._defaultEventMode = t.eventMode ?? "passive", Object.assign(this.features, t.eventFeatures ?? {}), this.rootBoundary.enableGlobalMoveEvents = this.features.globalMove;
772
+ }
773
+ resolutionChange(e) {
774
+ this.resolution = e;
775
+ }
776
+ destroy() {
777
+ H.destroy(), this.setTargetElement(null), this.renderer = null, this._currentCursor = null;
778
+ }
779
+ setCursor(e) {
780
+ e ||= "default";
781
+ let t = !0;
782
+ if (globalThis.OffscreenCanvas && this.domElement instanceof OffscreenCanvas && (t = !1), this._currentCursor === e) return;
783
+ this._currentCursor = e;
784
+ let n = this.cursorStyles[e];
785
+ if (n) switch (typeof n) {
786
+ case "string":
787
+ t && (this.domElement.style.cursor = n);
788
+ break;
789
+ case "function":
790
+ n(e);
791
+ break;
792
+ case "object": t && Object.assign(this.domElement.style, n);
793
+ }
794
+ else t && typeof e == "string" && !Object.prototype.hasOwnProperty.call(this.cursorStyles, e) && (this.domElement.style.cursor = e);
795
+ }
796
+ get pointer() {
797
+ return this._rootPointerEvent;
798
+ }
799
+ _onPointerDown(e) {
800
+ if (!this.features.click) return;
801
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
802
+ let t = this._normalizeToPointerData(e);
803
+ this.autoPreventDefault && t[0].isNormalized && (e.cancelable || !("cancelable" in e)) && e.preventDefault();
804
+ for (let e = 0, n = t.length; e < n; e++) {
805
+ let n = t[e], r = this._bootstrapEvent(this._rootPointerEvent, n);
806
+ this.rootBoundary.mapEvent(r);
807
+ }
808
+ this.setCursor(this.rootBoundary.cursor);
809
+ }
810
+ _onPointerMove(e) {
811
+ if (!this.features.move) return;
812
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered, H.pointerMoved();
813
+ let t = this._normalizeToPointerData(e);
814
+ for (let e = 0, n = t.length; e < n; e++) {
815
+ let n = this._bootstrapEvent(this._rootPointerEvent, t[e]);
816
+ this.rootBoundary.mapEvent(n);
817
+ }
818
+ this.setCursor(this.rootBoundary.cursor);
819
+ }
820
+ _onPointerUp(e) {
821
+ if (!this.features.click) return;
822
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
823
+ let t = e.target;
824
+ e.composedPath && e.composedPath().length > 0 && (t = e.composedPath()[0]);
825
+ let n = t === this.domElement ? "" : "outside", r = this._normalizeToPointerData(e);
826
+ for (let e = 0, t = r.length; e < t; e++) {
827
+ let t = this._bootstrapEvent(this._rootPointerEvent, r[e]);
828
+ t.type += n, this.rootBoundary.mapEvent(t);
829
+ }
830
+ this.setCursor(this.rootBoundary.cursor);
831
+ }
832
+ _onPointerOverOut(e) {
833
+ if (!this.features.click) return;
834
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
835
+ let t = this._normalizeToPointerData(e);
836
+ for (let e = 0, n = t.length; e < n; e++) {
837
+ let n = this._bootstrapEvent(this._rootPointerEvent, t[e]);
838
+ this.rootBoundary.mapEvent(n);
839
+ }
840
+ this.setCursor(this.rootBoundary.cursor);
841
+ }
842
+ onWheel(e) {
843
+ if (!this.features.wheel) return;
844
+ let t = this.normalizeWheelEvent(e);
845
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered, this.rootBoundary.mapEvent(t);
846
+ }
847
+ setTargetElement(e) {
848
+ this._removeEvents(), this.domElement = e, H.domElement = e, this._addEvents();
849
+ }
850
+ _addEvents() {
851
+ if (this._eventsAdded || !this.domElement) return;
852
+ H.addTickerListener();
853
+ let e = this.domElement.style;
854
+ e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "none", e.msTouchAction = "none") : this.supportsPointerEvents && (e.touchAction = "none")), this.supportsPointerEvents ? (globalThis.document.addEventListener("pointermove", this._onPointerMove, !0), this.domElement.addEventListener("pointerdown", this._onPointerDown, !0), this.domElement.addEventListener("pointerleave", this._onPointerOverOut, !0), this.domElement.addEventListener("pointerover", this._onPointerOverOut, !0), globalThis.addEventListener("pointerup", this._onPointerUp, !0)) : (globalThis.document.addEventListener("mousemove", this._onPointerMove, !0), this.domElement.addEventListener("mousedown", this._onPointerDown, !0), this.domElement.addEventListener("mouseout", this._onPointerOverOut, !0), this.domElement.addEventListener("mouseover", this._onPointerOverOut, !0), globalThis.addEventListener("mouseup", this._onPointerUp, !0), this.supportsTouchEvents && (this.domElement.addEventListener("touchstart", this._onPointerDown, !0), this.domElement.addEventListener("touchend", this._onPointerUp, !0), this.domElement.addEventListener("touchmove", this._onPointerMove, !0))), this.domElement.addEventListener("wheel", this.onWheel, {
855
+ passive: !0,
856
+ capture: !0
857
+ }), this._eventsAdded = !0;
858
+ }
859
+ _removeEvents() {
860
+ if (!this._eventsAdded || !this.domElement) return;
861
+ H.removeTickerListener();
862
+ let e = this.domElement.style;
863
+ e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "", e.msTouchAction = "") : this.supportsPointerEvents && (e.touchAction = "")), this.supportsPointerEvents ? (globalThis.document.removeEventListener("pointermove", this._onPointerMove, !0), this.domElement.removeEventListener("pointerdown", this._onPointerDown, !0), this.domElement.removeEventListener("pointerleave", this._onPointerOverOut, !0), this.domElement.removeEventListener("pointerover", this._onPointerOverOut, !0), globalThis.removeEventListener("pointerup", this._onPointerUp, !0)) : (globalThis.document.removeEventListener("mousemove", this._onPointerMove, !0), this.domElement.removeEventListener("mousedown", this._onPointerDown, !0), this.domElement.removeEventListener("mouseout", this._onPointerOverOut, !0), this.domElement.removeEventListener("mouseover", this._onPointerOverOut, !0), globalThis.removeEventListener("mouseup", this._onPointerUp, !0), this.supportsTouchEvents && (this.domElement.removeEventListener("touchstart", this._onPointerDown, !0), this.domElement.removeEventListener("touchend", this._onPointerUp, !0), this.domElement.removeEventListener("touchmove", this._onPointerMove, !0))), this.domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this._eventsAdded = !1;
864
+ }
865
+ mapPositionToPoint(e, t, n) {
866
+ let r = this.domElement.isConnected ? this.domElement.getBoundingClientRect() : {
867
+ x: 0,
868
+ y: 0,
869
+ width: this.domElement.width,
870
+ height: this.domElement.height,
871
+ left: 0,
872
+ top: 0
873
+ }, i = 1 / this.resolution;
874
+ e.x = (t - r.left) * (this.domElement.width / r.width) * i, e.y = (n - r.top) * (this.domElement.height / r.height) * i;
875
+ }
876
+ _normalizeToPointerData(e) {
877
+ let t = [];
878
+ if (this.supportsTouchEvents && e instanceof TouchEvent) for (let n = 0, r = e.changedTouches.length; n < r; n++) {
879
+ let r = e.changedTouches[n];
880
+ r.button === void 0 && (r.button = 0), r.buttons === void 0 && (r.buttons = 1), r.isPrimary === void 0 && (r.isPrimary = e.touches.length === 1 && e.type === "touchstart"), r.width === void 0 && (r.width = r.radiusX || 1), r.height === void 0 && (r.height = r.radiusY || 1), r.tiltX === void 0 && (r.tiltX = 0), r.tiltY === void 0 && (r.tiltY = 0), r.pointerType === void 0 && (r.pointerType = "touch"), r.pointerId === void 0 && (r.pointerId = r.identifier || 0), r.pressure === void 0 && (r.pressure = r.force || .5), r.twist === void 0 && (r.twist = 0), r.tangentialPressure === void 0 && (r.tangentialPressure = 0), r.layerX === void 0 && (r.layerX = r.offsetX = r.clientX), r.layerY === void 0 && (r.layerY = r.offsetY = r.clientY), r.isNormalized = !0, r.type = e.type, r.altKey ??= e.altKey, r.ctrlKey ??= e.ctrlKey, r.metaKey ??= e.metaKey, r.shiftKey ??= e.shiftKey, t.push(r);
881
+ }
882
+ else if (!globalThis.MouseEvent || e instanceof MouseEvent && (!this.supportsPointerEvents || !(e instanceof globalThis.PointerEvent))) {
883
+ let n = e;
884
+ n.isPrimary === void 0 && (n.isPrimary = !0), n.width === void 0 && (n.width = 1), n.height === void 0 && (n.height = 1), n.tiltX === void 0 && (n.tiltX = 0), n.tiltY === void 0 && (n.tiltY = 0), n.pointerType === void 0 && (n.pointerType = "mouse"), n.pointerId === void 0 && (n.pointerId = X), n.pressure === void 0 && (n.pressure = .5), n.twist === void 0 && (n.twist = 0), n.tangentialPressure === void 0 && (n.tangentialPressure = 0), n.isNormalized = !0, t.push(n);
885
+ } else t.push(e);
886
+ return t;
887
+ }
888
+ normalizeWheelEvent(e) {
889
+ let t = this._rootWheelEvent;
890
+ return this._transferMouseData(t, e), t.deltaX = e.deltaX, t.deltaY = e.deltaY, t.deltaZ = e.deltaZ, t.deltaMode = e.deltaMode, this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.copyFrom(t.screen), t.offset.copyFrom(t.screen), t.nativeEvent = e, t.type = e.type, t;
891
+ }
892
+ _bootstrapEvent(e, t) {
893
+ return e.originalEvent = null, e.nativeEvent = t, e.pointerId = t.pointerId, e.width = t.width, e.height = t.height, e.isPrimary = t.isPrimary, e.pointerType = t.pointerType, e.pressure = t.pressure, e.tangentialPressure = t.tangentialPressure, e.tiltX = t.tiltX, e.tiltY = t.tiltY, e.twist = t.twist, this._transferMouseData(e, t), this.mapPositionToPoint(e.screen, t.clientX, t.clientY), e.global.copyFrom(e.screen), e.offset.copyFrom(e.screen), e.isTrusted = t.isTrusted, e.type === "pointerleave" && (e.type = "pointerout"), e.type.startsWith("mouse") && (e.type = e.type.replace("mouse", "pointer")), e.type.startsWith("touch") && (e.type = Z[e.type] || e.type), e;
894
+ }
895
+ _transferMouseData(e, t) {
896
+ e.isTrusted = t.isTrusted, e.srcElement = t.srcElement, e.timeStamp = performance.now(), e.type = t.type, e.altKey = t.altKey, e.button = t.button, e.buttons = t.buttons, e.client.x = t.clientX, e.client.y = t.clientY, e.ctrlKey = t.ctrlKey, e.metaKey = t.metaKey, e.movement.x = t.movementX, e.movement.y = t.movementY, e.page.x = t.pageX, e.page.y = t.pageY, e.relatedTarget = null, e.shiftKey = t.shiftKey;
897
+ }
898
+ };
899
+ Q.extension = {
900
+ name: "events",
901
+ type: [
902
+ o.WebGLSystem,
903
+ o.CanvasSystem,
904
+ o.WebGPUSystem
905
+ ],
906
+ priority: -1
907
+ }, Q.defaultEventFeatures = {
908
+ move: !0,
909
+ globalMove: !0,
910
+ click: !0,
911
+ wheel: !0
912
+ };
913
+ var $ = Q;
914
+ i.add($), i.mixin(s, {
915
+ onclick: null,
916
+ onmousedown: null,
917
+ onmouseenter: null,
918
+ onmouseleave: null,
919
+ onmousemove: null,
920
+ onglobalmousemove: null,
921
+ onmouseout: null,
922
+ onmouseover: null,
923
+ onmouseup: null,
924
+ onmouseupoutside: null,
925
+ onpointercancel: null,
926
+ onpointerdown: null,
927
+ onpointerenter: null,
928
+ onpointerleave: null,
929
+ onpointermove: null,
930
+ onglobalpointermove: null,
931
+ onpointerout: null,
932
+ onpointerover: null,
933
+ onpointertap: null,
934
+ onpointerup: null,
935
+ onpointerupoutside: null,
936
+ onrightclick: null,
937
+ onrightdown: null,
938
+ onrightup: null,
939
+ onrightupoutside: null,
940
+ ontap: null,
941
+ ontouchcancel: null,
942
+ ontouchend: null,
943
+ ontouchendoutside: null,
944
+ ontouchmove: null,
945
+ onglobaltouchmove: null,
946
+ ontouchstart: null,
947
+ onwheel: null,
948
+ get interactive() {
949
+ return this.eventMode === "dynamic" || this.eventMode === "static";
950
+ },
951
+ set interactive(e) {
952
+ this.eventMode = e ? "static" : "passive";
953
+ },
954
+ _internalEventMode: void 0,
955
+ get eventMode() {
956
+ return this._internalEventMode ?? $.defaultEventMode;
957
+ },
958
+ set eventMode(e) {
959
+ this._internalEventMode = e;
960
+ },
961
+ isInteractive() {
962
+ return this.eventMode === "static" || this.eventMode === "dynamic";
963
+ },
964
+ interactiveChildren: !0,
965
+ hitArea: null,
966
+ addEventListener(e, t, n) {
967
+ let r = typeof n == "boolean" && n || typeof n == "object" && n.capture, i = typeof n == "object" ? n.signal : void 0, a = typeof n == "object" && n.once === !0, o = typeof t == "function" ? void 0 : t;
968
+ e = r ? `${e}capture` : e;
969
+ let s = typeof t == "function" ? t : t.handleEvent, c = this;
970
+ i && i.addEventListener("abort", () => {
971
+ c.off(e, s, o);
972
+ }), a ? c.once(e, s, o) : c.on(e, s, o);
973
+ },
974
+ removeEventListener(e, t, n) {
975
+ let r = typeof n == "boolean" && n || typeof n == "object" && n.capture, i = typeof t == "function" ? void 0 : t;
976
+ e = r ? `${e}capture` : e, t = typeof t == "function" ? t : t.handleEvent, this.off(e, t, i);
977
+ },
978
+ dispatchEvent(e) {
979
+ if (!(e instanceof u)) throw Error("Container cannot propagate events outside of the Federated Events API");
980
+ return e.defaultPrevented = !1, e.path = null, e.target = this, e.manager.dispatchEvent(e), !e.defaultPrevented;
981
+ }
982
+ });
983
+ //#endregion