@kolkrabbi/design-editor 0.1.0 → 0.3.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 (252) hide show
  1. package/README.md +42 -25
  2. package/dist/BufferResource-BfLgK37S.js +273 -0
  3. package/dist/CanvasPool-YNSF8hsR.js +30 -0
  4. package/dist/CanvasRenderer-Bl0rlqNq.js +2 -0
  5. package/dist/FederatedEventTarget-BJgROaRQ.js +975 -0
  6. package/dist/FilterSystem-BUrPNXx-.js +1323 -0
  7. package/dist/Geometry-C5s5KpWq.js +3805 -0
  8. package/dist/{OrbitControls-BAhLQ5d8.js → OrbitControls-Cql8Rn2i.js} +10305 -9058
  9. package/dist/RenderTargetSystem-oFwWv5IW.js +2889 -0
  10. package/dist/WebGLRenderer-CXxpVIx3.js +2 -0
  11. package/dist/WebGPURenderer-BwLEUYBa.js +2 -0
  12. package/dist/browserAll-CAzdTUbR.js +6 -0
  13. package/dist/canvasUtils-BoNfkAod.js +168 -0
  14. package/dist/chunk-3b4jIN3o.js +13 -0
  15. package/dist/design-editor.css +2 -2
  16. package/dist/design-editor.js +52017 -38760
  17. package/dist/getTextureBatchBindGroup-CNWhZRbV.js +19 -0
  18. package/dist/{host-IfZgcJFg.js → host-CVR9RL_W.js} +505 -556
  19. package/dist/{host-Cidlc8xP.js → host-be1CWhN1.js} +133 -85
  20. package/dist/init-jApIMi04.js +4 -0
  21. package/dist/phase-t_DhU5Nm.js +1719 -0
  22. package/dist/pipeline-CMpuPUaX.js +11995 -0
  23. package/dist/src-QwKcYKfv.js +4315 -0
  24. package/dist/webworkerAll-DEZhpG90.js +2 -0
  25. package/package.json +42 -31
  26. package/LICENSE +0 -21
  27. package/dist/favicon/favicon.svg +0 -12
  28. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Black.woff2 +0 -0
  29. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BlackItalic.woff2 +0 -0
  30. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Bold.woff2 +0 -0
  31. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BoldItalic.woff2 +0 -0
  32. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlack.woff2 +0 -0
  33. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlackItalic.woff2 +0 -0
  34. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBold.woff2 +0 -0
  35. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBoldItalic.woff2 +0 -0
  36. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDark.woff2 +0 -0
  37. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDarkItalic.woff2 +0 -0
  38. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFine.woff2 +0 -0
  39. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFineItalic.woff2 +0 -0
  40. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLight.woff2 +0 -0
  41. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLightItalic.woff2 +0 -0
  42. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMedium.woff2 +0 -0
  43. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMediumItalic.woff2 +0 -0
  44. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegular.woff2 +0 -0
  45. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegularItalic.woff2 +0 -0
  46. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Dark.woff2 +0 -0
  47. package/dist/fonts/Right-Grotesk/PPRightGrotesk-DarkItalic.woff2 +0 -0
  48. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Fine.woff2 +0 -0
  49. package/dist/fonts/Right-Grotesk/PPRightGrotesk-FineItalic.woff2 +0 -0
  50. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Light.woff2 +0 -0
  51. package/dist/fonts/Right-Grotesk/PPRightGrotesk-LightItalic.woff2 +0 -0
  52. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Medium.woff2 +0 -0
  53. package/dist/fonts/Right-Grotesk/PPRightGrotesk-MediumItalic.woff2 +0 -0
  54. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlack.woff2 +0 -0
  55. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlackItalic.woff2 +0 -0
  56. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBold.woff2 +0 -0
  57. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBoldItalic.woff2 +0 -0
  58. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDark.woff2 +0 -0
  59. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDarkItalic.woff2 +0 -0
  60. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFine.woff2 +0 -0
  61. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFineItalic.woff2 +0 -0
  62. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLight.woff2 +0 -0
  63. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLightItalic.woff2 +0 -0
  64. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMedium.woff2 +0 -0
  65. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMediumItalic.woff2 +0 -0
  66. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegular.woff2 +0 -0
  67. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegularItalic.woff2 +0 -0
  68. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Regular.woff2 +0 -0
  69. package/dist/fonts/Right-Grotesk/PPRightGrotesk-RegularItalic.woff2 +0 -0
  70. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlack.woff2 +0 -0
  71. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlackItalic.woff2 +0 -0
  72. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBold.woff2 +0 -0
  73. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBoldItalic.woff2 +0 -0
  74. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDark.woff2 +0 -0
  75. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDarkItalic.woff2 +0 -0
  76. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFine.woff2 +0 -0
  77. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFineItalic.woff2 +0 -0
  78. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLight.woff2 +0 -0
  79. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLightItalic.woff2 +0 -0
  80. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMedium.woff2 +0 -0
  81. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMediumItalic.woff2 +0 -0
  82. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegular.woff2 +0 -0
  83. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegularItalic.woff2 +0 -0
  84. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlack.woff2 +0 -0
  85. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlackItalic.woff2 +0 -0
  86. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBold.woff2 +0 -0
  87. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBoldItalic.woff2 +0 -0
  88. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDark.woff2 +0 -0
  89. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDarkItalic.woff2 +0 -0
  90. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFine.woff2 +0 -0
  91. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFineItalic.woff2 +0 -0
  92. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLight.woff2 +0 -0
  93. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLightItalic.woff2 +0 -0
  94. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMedium.woff2 +0 -0
  95. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMediumItalic.woff2 +0 -0
  96. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegular.woff2 +0 -0
  97. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegularItalic.woff2 +0 -0
  98. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlack.woff2 +0 -0
  99. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlackItalic.woff2 +0 -0
  100. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBold.woff2 +0 -0
  101. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBoldItalic.woff2 +0 -0
  102. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDark.woff2 +0 -0
  103. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDarkItalic.woff2 +0 -0
  104. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFine.woff2 +0 -0
  105. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFineItalic.woff2 +0 -0
  106. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLight.woff2 +0 -0
  107. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLightItalic.woff2 +0 -0
  108. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMedium.woff2 +0 -0
  109. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMediumItalic.woff2 +0 -0
  110. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegular.woff2 +0 -0
  111. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegularItalic.woff2 +0 -0
  112. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlack.woff2 +0 -0
  113. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlackItalic.woff2 +0 -0
  114. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBold.woff2 +0 -0
  115. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBoldItalic.woff2 +0 -0
  116. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDark.woff2 +0 -0
  117. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDarkItalic.woff2 +0 -0
  118. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFine.woff2 +0 -0
  119. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFineItalic.woff2 +0 -0
  120. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLight.woff2 +0 -0
  121. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLightItalic.woff2 +0 -0
  122. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMedium.woff2 +0 -0
  123. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMediumItalic.woff2 +0 -0
  124. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegular.woff2 +0 -0
  125. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegularItalic.woff2 +0 -0
  126. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Bold.woff2 +0 -0
  127. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-BoldItalic.woff2 +0 -0
  128. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Dark.woff2 +0 -0
  129. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Fine.woff2 +0 -0
  130. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-FineItalic.woff2 +0 -0
  131. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Light.woff2 +0 -0
  132. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Medium.woff2 +0 -0
  133. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Regular.woff2 +0 -0
  134. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-RegularItalic.woff2 +0 -0
  135. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLight.woff2 +0 -0
  136. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLightItalic.woff2 +0 -0
  137. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMedium.woff2 +0 -0
  138. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMediumItalic.woff2 +0 -0
  139. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-Regular.woff2 +0 -0
  140. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-RegularItalic.woff2 +0 -0
  141. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBold.woff2 +0 -0
  142. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBoldItalic.woff2 +0 -0
  143. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLight.woff2 +0 -0
  144. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLightItalic.woff2 +0 -0
  145. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBold.woff2 +0 -0
  146. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBoldItalic.woff2 +0 -0
  147. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Black.ttf +0 -0
  148. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BlackItalic.ttf +0 -0
  149. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Bold.ttf +0 -0
  150. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BoldItalic.ttf +0 -0
  151. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlack.ttf +0 -0
  152. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlackItalic.ttf +0 -0
  153. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBold.ttf +0 -0
  154. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBoldItalic.ttf +0 -0
  155. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDark.ttf +0 -0
  156. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDarkItalic.ttf +0 -0
  157. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFine.ttf +0 -0
  158. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFineItalic.ttf +0 -0
  159. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLight.ttf +0 -0
  160. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLightItalic.ttf +0 -0
  161. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMedium.ttf +0 -0
  162. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMediumItalic.ttf +0 -0
  163. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegular.ttf +0 -0
  164. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegularItalic.ttf +0 -0
  165. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Dark.ttf +0 -0
  166. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-DarkItalic.ttf +0 -0
  167. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Fine.ttf +0 -0
  168. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-FineItalic.ttf +0 -0
  169. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Light.ttf +0 -0
  170. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-LightItalic.ttf +0 -0
  171. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Medium.ttf +0 -0
  172. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-MediumItalic.ttf +0 -0
  173. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlack.ttf +0 -0
  174. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlackItalic.ttf +0 -0
  175. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBold.ttf +0 -0
  176. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBoldItalic.ttf +0 -0
  177. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDark.ttf +0 -0
  178. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDarkItalic.ttf +0 -0
  179. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFine.ttf +0 -0
  180. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFineItalic.ttf +0 -0
  181. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLight.ttf +0 -0
  182. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLightItalic.ttf +0 -0
  183. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMedium.ttf +0 -0
  184. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMediumItalic.ttf +0 -0
  185. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegular.ttf +0 -0
  186. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegularItalic.ttf +0 -0
  187. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Regular.ttf +0 -0
  188. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-RegularItalic.ttf +0 -0
  189. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlack.ttf +0 -0
  190. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlackItalic.ttf +0 -0
  191. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBold.ttf +0 -0
  192. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBoldItalic.ttf +0 -0
  193. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDark.ttf +0 -0
  194. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDarkItalic.ttf +0 -0
  195. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFine.ttf +0 -0
  196. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFineItalic.ttf +0 -0
  197. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLight.ttf +0 -0
  198. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLightItalic.ttf +0 -0
  199. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMedium.ttf +0 -0
  200. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMediumItalic.ttf +0 -0
  201. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegular.ttf +0 -0
  202. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegularItalic.ttf +0 -0
  203. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlack.ttf +0 -0
  204. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlackItalic.ttf +0 -0
  205. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBold.ttf +0 -0
  206. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBoldItalic.ttf +0 -0
  207. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDark.ttf +0 -0
  208. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDarkItalic.ttf +0 -0
  209. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFine.ttf +0 -0
  210. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFineItalic.ttf +0 -0
  211. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLight.ttf +0 -0
  212. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLightItalic.ttf +0 -0
  213. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMedium.ttf +0 -0
  214. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMediumItalic.ttf +0 -0
  215. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegular.ttf +0 -0
  216. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegularItalic.ttf +0 -0
  217. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlack.ttf +0 -0
  218. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlackItalic.ttf +0 -0
  219. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBold.ttf +0 -0
  220. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBoldItalic.ttf +0 -0
  221. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDark.ttf +0 -0
  222. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDarkItalic.ttf +0 -0
  223. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFine.ttf +0 -0
  224. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFineItalic.ttf +0 -0
  225. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLight.ttf +0 -0
  226. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLightItalic.ttf +0 -0
  227. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMedium.ttf +0 -0
  228. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMediumItalic.ttf +0 -0
  229. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegular.ttf +0 -0
  230. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegularItalic.ttf +0 -0
  231. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlack.ttf +0 -0
  232. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlackItalic.ttf +0 -0
  233. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBold.ttf +0 -0
  234. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBoldItalic.ttf +0 -0
  235. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDark.ttf +0 -0
  236. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDarkItalic.ttf +0 -0
  237. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFine.ttf +0 -0
  238. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFineItalic.ttf +0 -0
  239. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLight.ttf +0 -0
  240. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLightItalic.ttf +0 -0
  241. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMedium.ttf +0 -0
  242. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMediumItalic.ttf +0 -0
  243. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegular.ttf +0 -0
  244. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegularItalic.ttf +0 -0
  245. package/dist/fonts/TG/TGGullhamrarVF.ttf +0 -0
  246. package/dist/fonts/TG/TGMalromurRomanVF.ttf +0 -0
  247. package/dist/fonts/TG/TGRotVF.ttf +0 -0
  248. package/dist/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  249. package/dist/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2 +0 -0
  250. package/dist/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  251. package/dist/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  252. package/dist/meshPalettes-BJODHYrY.js +0 -892
@@ -0,0 +1,3805 @@
1
+ import { n as e, t } from "./chunk-3b4jIN3o.js";
2
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/extensions/Extensions.mjs
3
+ var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "webgl-pipes", e.WebGLPipesAdaptor = "webgl-pipes-adaptor", e.WebGLSystem = "webgl-system", e.WebGPUPipes = "webgpu-pipes", e.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", e.WebGPUSystem = "webgpu-system", e.CanvasSystem = "canvas-system", e.CanvasPipesAdaptor = "canvas-pipes-adaptor", e.CanvasPipes = "canvas-pipes", e.Asset = "asset", e.LoadParser = "load-parser", e.ResolveParser = "resolve-parser", e.CacheParser = "cache-parser", e.DetectionParser = "detection-parser", e.MaskEffect = "mask-effect", e.BlendMode = "blend-mode", e.TextureSource = "texture-source", e.TextureUploaderWebGL = "texture-uploader-webgl", e.TextureUploaderWebGPU = "texture-uploader-webgpu", e.Environment = "environment", e.ShapeBuilder = "shape-builder", e.Batcher = "batcher", e))(n || {}), r = (e) => {
4
+ if (typeof e == "function" || typeof e == "object" && e.extension) {
5
+ if (!e.extension) throw Error("Extension class must have an extension object");
6
+ e = {
7
+ ...typeof e.extension == "object" ? e.extension : { type: e.extension },
8
+ ref: e
9
+ };
10
+ }
11
+ if (typeof e == "object") e = { ...e };
12
+ else throw Error("Invalid extension type");
13
+ return typeof e.type == "string" && (e.type = [e.type]), e;
14
+ }, i = (e, t) => r(e).priority ?? t, a = {
15
+ _addHandlers: {},
16
+ _removeHandlers: {},
17
+ _queue: {},
18
+ remove(...e) {
19
+ return e.map(r).forEach((e) => {
20
+ e.type.forEach((t) => this._removeHandlers[t]?.(e));
21
+ }), this;
22
+ },
23
+ add(...e) {
24
+ return e.map(r).forEach((e) => {
25
+ e.type.forEach((t) => {
26
+ let n = this._addHandlers, r = this._queue;
27
+ n[t] ? n[t]?.(e) : (r[t] = r[t] || [], r[t]?.push(e));
28
+ });
29
+ }), this;
30
+ },
31
+ handle(e, t, n) {
32
+ let r = this._addHandlers, i = this._removeHandlers;
33
+ if (r[e] || i[e]) throw Error(`Extension type ${e} already has a handler`);
34
+ r[e] = t, i[e] = n;
35
+ let a = this._queue;
36
+ return a[e] && (a[e]?.forEach((e) => t(e)), delete a[e]), this;
37
+ },
38
+ handleByMap(e, t) {
39
+ return this.handle(e, (e) => {
40
+ e.name && (t[e.name] = e.ref);
41
+ }, (e) => {
42
+ e.name && delete t[e.name];
43
+ });
44
+ },
45
+ handleByNamedList(e, t, n = -1) {
46
+ return this.handle(e, (e) => {
47
+ t.findIndex((t) => t.name === e.name) >= 0 || (t.push({
48
+ name: e.name,
49
+ value: e.ref
50
+ }), t.sort((e, t) => i(t.value, n) - i(e.value, n)));
51
+ }, (e) => {
52
+ let n = t.findIndex((t) => t.name === e.name);
53
+ n !== -1 && t.splice(n, 1);
54
+ });
55
+ },
56
+ handleByList(e, t, n = -1) {
57
+ return this.handle(e, (e) => {
58
+ t.includes(e.ref) || (t.push(e.ref), t.sort((e, t) => i(t, n) - i(e, n)));
59
+ }, (e) => {
60
+ let n = t.indexOf(e.ref);
61
+ n !== -1 && t.splice(n, 1);
62
+ });
63
+ },
64
+ mixin(e, ...t) {
65
+ for (let n of t) Object.defineProperties(e.prototype, Object.getOwnPropertyDescriptors(n));
66
+ }
67
+ }, o = (/* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
68
+ var n = Object.prototype.hasOwnProperty, r = "~";
69
+ function i() {}
70
+ Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
71
+ function a(e, t, n) {
72
+ this.fn = e, this.context = t, this.once = n || !1;
73
+ }
74
+ function o(e, t, n, i, o) {
75
+ if (typeof n != "function") throw TypeError("The listener must be a function");
76
+ var s = new a(n, i || e, o), c = r ? r + t : t;
77
+ return e._events[c] ? e._events[c].fn ? e._events[c] = [e._events[c], s] : e._events[c].push(s) : (e._events[c] = s, e._eventsCount++), e;
78
+ }
79
+ function s(e, t) {
80
+ --e._eventsCount === 0 ? e._events = new i() : delete e._events[t];
81
+ }
82
+ function c() {
83
+ this._events = new i(), this._eventsCount = 0;
84
+ }
85
+ c.prototype.eventNames = function() {
86
+ var e = [], t, i;
87
+ if (this._eventsCount === 0) return e;
88
+ for (i in t = this._events) n.call(t, i) && e.push(r ? i.slice(1) : i);
89
+ return Object.getOwnPropertySymbols ? e.concat(Object.getOwnPropertySymbols(t)) : e;
90
+ }, c.prototype.listeners = function(e) {
91
+ var t = r ? r + e : e, n = this._events[t];
92
+ if (!n) return [];
93
+ if (n.fn) return [n.fn];
94
+ for (var i = 0, a = n.length, o = Array(a); i < a; i++) o[i] = n[i].fn;
95
+ return o;
96
+ }, c.prototype.listenerCount = function(e) {
97
+ var t = r ? r + e : e, n = this._events[t];
98
+ return n ? n.fn ? 1 : n.length : 0;
99
+ }, c.prototype.emit = function(e, t, n, i, a, o) {
100
+ var s = r ? r + e : e;
101
+ if (!this._events[s]) return !1;
102
+ var c = this._events[s], l = arguments.length, u, d;
103
+ if (c.fn) {
104
+ switch (c.once && this.removeListener(e, c.fn, void 0, !0), l) {
105
+ case 1: return c.fn.call(c.context), !0;
106
+ case 2: return c.fn.call(c.context, t), !0;
107
+ case 3: return c.fn.call(c.context, t, n), !0;
108
+ case 4: return c.fn.call(c.context, t, n, i), !0;
109
+ case 5: return c.fn.call(c.context, t, n, i, a), !0;
110
+ case 6: return c.fn.call(c.context, t, n, i, a, o), !0;
111
+ }
112
+ for (d = 1, u = Array(l - 1); d < l; d++) u[d - 1] = arguments[d];
113
+ c.fn.apply(c.context, u);
114
+ } else {
115
+ var f = c.length, p;
116
+ for (d = 0; d < f; d++) switch (c[d].once && this.removeListener(e, c[d].fn, void 0, !0), l) {
117
+ case 1:
118
+ c[d].fn.call(c[d].context);
119
+ break;
120
+ case 2:
121
+ c[d].fn.call(c[d].context, t);
122
+ break;
123
+ case 3:
124
+ c[d].fn.call(c[d].context, t, n);
125
+ break;
126
+ case 4:
127
+ c[d].fn.call(c[d].context, t, n, i);
128
+ break;
129
+ default:
130
+ if (!u) for (p = 1, u = Array(l - 1); p < l; p++) u[p - 1] = arguments[p];
131
+ c[d].fn.apply(c[d].context, u);
132
+ }
133
+ }
134
+ return !0;
135
+ }, c.prototype.on = function(e, t, n) {
136
+ return o(this, e, t, n, !1);
137
+ }, c.prototype.once = function(e, t, n) {
138
+ return o(this, e, t, n, !0);
139
+ }, c.prototype.removeListener = function(e, t, n, i) {
140
+ var a = r ? r + e : e;
141
+ if (!this._events[a]) return this;
142
+ if (!t) return s(this, a), this;
143
+ var o = this._events[a];
144
+ if (o.fn) o.fn === t && (!i || o.once) && (!n || o.context === n) && s(this, a);
145
+ else {
146
+ for (var c = 0, l = [], u = o.length; c < u; c++) (o[c].fn !== t || i && !o[c].once || n && o[c].context !== n) && l.push(o[c]);
147
+ l.length ? this._events[a] = l.length === 1 ? l[0] : l : s(this, a);
148
+ }
149
+ return this;
150
+ }, c.prototype.removeAllListeners = function(e) {
151
+ var t;
152
+ return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
153
+ }, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
154
+ })))(), 1)).default, s = {
155
+ grad: .9,
156
+ turn: 360,
157
+ rad: 360 / (2 * Math.PI)
158
+ }, c = function(e) {
159
+ return typeof e == "string" ? e.length > 0 : typeof e == "number";
160
+ }, l = function(e, t, n) {
161
+ return t === void 0 && (t = 0), n === void 0 && (n = 10 ** t), Math.round(n * e) / n + 0;
162
+ }, u = function(e, t, n) {
163
+ return t === void 0 && (t = 0), n === void 0 && (n = 1), e > n ? n : e > t ? e : t;
164
+ }, d = function(e) {
165
+ return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
166
+ }, f = function(e) {
167
+ return {
168
+ r: u(e.r, 0, 255),
169
+ g: u(e.g, 0, 255),
170
+ b: u(e.b, 0, 255),
171
+ a: u(e.a)
172
+ };
173
+ }, p = function(e) {
174
+ return {
175
+ r: l(e.r),
176
+ g: l(e.g),
177
+ b: l(e.b),
178
+ a: l(e.a, 3)
179
+ };
180
+ }, m = /^#([0-9a-f]{3,8})$/i, h = function(e) {
181
+ var t = e.toString(16);
182
+ return t.length < 2 ? "0" + t : t;
183
+ }, g = function(e) {
184
+ var t = e.r, n = e.g, r = e.b, i = e.a, a = Math.max(t, n, r), o = a - Math.min(t, n, r), s = o ? a === t ? (n - r) / o : a === n ? 2 + (r - t) / o : 4 + (t - n) / o : 0;
185
+ return {
186
+ h: 60 * (s < 0 ? s + 6 : s),
187
+ s: a ? o / a * 100 : 0,
188
+ v: a / 255 * 100,
189
+ a: i
190
+ };
191
+ }, _ = function(e) {
192
+ var t = e.h, n = e.s, r = e.v, i = e.a;
193
+ t = t / 360 * 6, n /= 100, r /= 100;
194
+ var a = Math.floor(t), o = r * (1 - n), s = r * (1 - (t - a) * n), c = r * (1 - (1 - t + a) * n), l = a % 6;
195
+ return {
196
+ r: 255 * [
197
+ r,
198
+ s,
199
+ o,
200
+ o,
201
+ c,
202
+ r
203
+ ][l],
204
+ g: 255 * [
205
+ c,
206
+ r,
207
+ r,
208
+ s,
209
+ o,
210
+ o
211
+ ][l],
212
+ b: 255 * [
213
+ o,
214
+ o,
215
+ c,
216
+ r,
217
+ r,
218
+ s
219
+ ][l],
220
+ a: i
221
+ };
222
+ }, v = function(e) {
223
+ return {
224
+ h: d(e.h),
225
+ s: u(e.s, 0, 100),
226
+ l: u(e.l, 0, 100),
227
+ a: u(e.a)
228
+ };
229
+ }, y = function(e) {
230
+ return {
231
+ h: l(e.h),
232
+ s: l(e.s),
233
+ l: l(e.l),
234
+ a: l(e.a, 3)
235
+ };
236
+ }, b = function(e) {
237
+ return _((n = (t = e).s, {
238
+ h: t.h,
239
+ s: (n *= ((r = t.l) < 50 ? r : 100 - r) / 100) > 0 ? 2 * n / (r + n) * 100 : 0,
240
+ v: r + n,
241
+ a: t.a
242
+ }));
243
+ var t, n, r;
244
+ }, x = function(e) {
245
+ return {
246
+ h: (t = g(e)).h,
247
+ s: (i = (200 - (n = t.s)) * (r = t.v) / 100) > 0 && i < 200 ? n * r / 100 / (i <= 100 ? i : 200 - i) * 100 : 0,
248
+ l: i / 2,
249
+ a: t.a
250
+ };
251
+ var t, n, r, i;
252
+ }, ee = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, te = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ne = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, re = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ie = {
253
+ string: [
254
+ [function(e) {
255
+ var t = m.exec(e);
256
+ return t ? (e = t[1]).length <= 4 ? {
257
+ r: parseInt(e[0] + e[0], 16),
258
+ g: parseInt(e[1] + e[1], 16),
259
+ b: parseInt(e[2] + e[2], 16),
260
+ a: e.length === 4 ? l(parseInt(e[3] + e[3], 16) / 255, 2) : 1
261
+ } : e.length === 6 || e.length === 8 ? {
262
+ r: parseInt(e.substr(0, 2), 16),
263
+ g: parseInt(e.substr(2, 2), 16),
264
+ b: parseInt(e.substr(4, 2), 16),
265
+ a: e.length === 8 ? l(parseInt(e.substr(6, 2), 16) / 255, 2) : 1
266
+ } : null : null;
267
+ }, "hex"],
268
+ [function(e) {
269
+ var t = ne.exec(e) || re.exec(e);
270
+ return t ? t[2] !== t[4] || t[4] !== t[6] ? null : f({
271
+ r: Number(t[1]) / (t[2] ? 100 / 255 : 1),
272
+ g: Number(t[3]) / (t[4] ? 100 / 255 : 1),
273
+ b: Number(t[5]) / (t[6] ? 100 / 255 : 1),
274
+ a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1)
275
+ }) : null;
276
+ }, "rgb"],
277
+ [function(e) {
278
+ var t = ee.exec(e) || te.exec(e);
279
+ if (!t) return null;
280
+ var n, r;
281
+ return b(v({
282
+ h: (n = t[1], r = t[2], r === void 0 && (r = "deg"), Number(n) * (s[r] || 1)),
283
+ s: Number(t[3]),
284
+ l: Number(t[4]),
285
+ a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1)
286
+ }));
287
+ }, "hsl"]
288
+ ],
289
+ object: [
290
+ [function(e) {
291
+ var t = e.r, n = e.g, r = e.b, i = e.a, a = i === void 0 ? 1 : i;
292
+ return c(t) && c(n) && c(r) ? f({
293
+ r: Number(t),
294
+ g: Number(n),
295
+ b: Number(r),
296
+ a: Number(a)
297
+ }) : null;
298
+ }, "rgb"],
299
+ [function(e) {
300
+ var t = e.h, n = e.s, r = e.l, i = e.a, a = i === void 0 ? 1 : i;
301
+ return !c(t) || !c(n) || !c(r) ? null : b(v({
302
+ h: Number(t),
303
+ s: Number(n),
304
+ l: Number(r),
305
+ a: Number(a)
306
+ }));
307
+ }, "hsl"],
308
+ [function(e) {
309
+ var t = e.h, n = e.s, r = e.v, i = e.a, a = i === void 0 ? 1 : i;
310
+ return !c(t) || !c(n) || !c(r) ? null : _(function(e) {
311
+ return {
312
+ h: d(e.h),
313
+ s: u(e.s, 0, 100),
314
+ v: u(e.v, 0, 100),
315
+ a: u(e.a)
316
+ };
317
+ }({
318
+ h: Number(t),
319
+ s: Number(n),
320
+ v: Number(r),
321
+ a: Number(a)
322
+ }));
323
+ }, "hsv"]
324
+ ]
325
+ }, ae = function(e, t) {
326
+ for (var n = 0; n < t.length; n++) {
327
+ var r = t[n][0](e);
328
+ if (r) return [r, t[n][1]];
329
+ }
330
+ return [null, void 0];
331
+ }, oe = function(e) {
332
+ return typeof e == "string" ? ae(e.trim(), ie.string) : typeof e == "object" && e ? ae(e, ie.object) : [null, void 0];
333
+ }, se = function(e, t) {
334
+ var n = x(e);
335
+ return {
336
+ h: n.h,
337
+ s: u(n.s + 100 * t, 0, 100),
338
+ l: n.l,
339
+ a: n.a
340
+ };
341
+ }, ce = function(e) {
342
+ return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
343
+ }, le = function(e, t) {
344
+ var n = x(e);
345
+ return {
346
+ h: n.h,
347
+ s: n.s,
348
+ l: u(n.l + 100 * t, 0, 100),
349
+ a: n.a
350
+ };
351
+ }, ue = function() {
352
+ function e(e) {
353
+ this.parsed = oe(e)[0], this.rgba = this.parsed || {
354
+ r: 0,
355
+ g: 0,
356
+ b: 0,
357
+ a: 1
358
+ };
359
+ }
360
+ return e.prototype.isValid = function() {
361
+ return this.parsed !== null;
362
+ }, e.prototype.brightness = function() {
363
+ return l(ce(this.rgba), 2);
364
+ }, e.prototype.isDark = function() {
365
+ return ce(this.rgba) < .5;
366
+ }, e.prototype.isLight = function() {
367
+ return ce(this.rgba) >= .5;
368
+ }, e.prototype.toHex = function() {
369
+ return e = p(this.rgba), t = e.r, n = e.g, r = e.b, a = (i = e.a) < 1 ? h(l(255 * i)) : "", "#" + h(t) + h(n) + h(r) + a;
370
+ var e, t, n, r, i, a;
371
+ }, e.prototype.toRgb = function() {
372
+ return p(this.rgba);
373
+ }, e.prototype.toRgbString = function() {
374
+ return e = p(this.rgba), t = e.r, n = e.g, r = e.b, (i = e.a) < 1 ? "rgba(" + t + ", " + n + ", " + r + ", " + i + ")" : "rgb(" + t + ", " + n + ", " + r + ")";
375
+ var e, t, n, r, i;
376
+ }, e.prototype.toHsl = function() {
377
+ return y(x(this.rgba));
378
+ }, e.prototype.toHslString = function() {
379
+ return e = y(x(this.rgba)), t = e.h, n = e.s, r = e.l, (i = e.a) < 1 ? "hsla(" + t + ", " + n + "%, " + r + "%, " + i + ")" : "hsl(" + t + ", " + n + "%, " + r + "%)";
380
+ var e, t, n, r, i;
381
+ }, e.prototype.toHsv = function() {
382
+ return e = g(this.rgba), {
383
+ h: l(e.h),
384
+ s: l(e.s),
385
+ v: l(e.v),
386
+ a: l(e.a, 3)
387
+ };
388
+ var e;
389
+ }, e.prototype.invert = function() {
390
+ return S({
391
+ r: 255 - (e = this.rgba).r,
392
+ g: 255 - e.g,
393
+ b: 255 - e.b,
394
+ a: e.a
395
+ });
396
+ var e;
397
+ }, e.prototype.saturate = function(e) {
398
+ return e === void 0 && (e = .1), S(se(this.rgba, e));
399
+ }, e.prototype.desaturate = function(e) {
400
+ return e === void 0 && (e = .1), S(se(this.rgba, -e));
401
+ }, e.prototype.grayscale = function() {
402
+ return S(se(this.rgba, -1));
403
+ }, e.prototype.lighten = function(e) {
404
+ return e === void 0 && (e = .1), S(le(this.rgba, e));
405
+ }, e.prototype.darken = function(e) {
406
+ return e === void 0 && (e = .1), S(le(this.rgba, -e));
407
+ }, e.prototype.rotate = function(e) {
408
+ return e === void 0 && (e = 15), this.hue(this.hue() + e);
409
+ }, e.prototype.alpha = function(e) {
410
+ return typeof e == "number" ? S({
411
+ r: (t = this.rgba).r,
412
+ g: t.g,
413
+ b: t.b,
414
+ a: e
415
+ }) : l(this.rgba.a, 3);
416
+ var t;
417
+ }, e.prototype.hue = function(e) {
418
+ var t = x(this.rgba);
419
+ return typeof e == "number" ? S({
420
+ h: e,
421
+ s: t.s,
422
+ l: t.l,
423
+ a: t.a
424
+ }) : l(t.h);
425
+ }, e.prototype.isEqual = function(e) {
426
+ return this.toHex() === S(e).toHex();
427
+ }, e;
428
+ }(), S = function(e) {
429
+ return e instanceof ue ? e : new ue(e);
430
+ }, de = [], fe = function(e) {
431
+ e.forEach(function(e) {
432
+ de.indexOf(e) < 0 && (e(ue, ie), de.push(e));
433
+ });
434
+ };
435
+ //#endregion
436
+ //#region ../../node_modules/.pnpm/@pixi+colord@2.9.6/node_modules/@pixi/colord/plugins/names.mjs
437
+ function pe(e, t) {
438
+ var n = {
439
+ white: "#ffffff",
440
+ bisque: "#ffe4c4",
441
+ blue: "#0000ff",
442
+ cadetblue: "#5f9ea0",
443
+ chartreuse: "#7fff00",
444
+ chocolate: "#d2691e",
445
+ coral: "#ff7f50",
446
+ antiquewhite: "#faebd7",
447
+ aqua: "#00ffff",
448
+ azure: "#f0ffff",
449
+ whitesmoke: "#f5f5f5",
450
+ papayawhip: "#ffefd5",
451
+ plum: "#dda0dd",
452
+ blanchedalmond: "#ffebcd",
453
+ black: "#000000",
454
+ gold: "#ffd700",
455
+ goldenrod: "#daa520",
456
+ gainsboro: "#dcdcdc",
457
+ cornsilk: "#fff8dc",
458
+ cornflowerblue: "#6495ed",
459
+ burlywood: "#deb887",
460
+ aquamarine: "#7fffd4",
461
+ beige: "#f5f5dc",
462
+ crimson: "#dc143c",
463
+ cyan: "#00ffff",
464
+ darkblue: "#00008b",
465
+ darkcyan: "#008b8b",
466
+ darkgoldenrod: "#b8860b",
467
+ darkkhaki: "#bdb76b",
468
+ darkgray: "#a9a9a9",
469
+ darkgreen: "#006400",
470
+ darkgrey: "#a9a9a9",
471
+ peachpuff: "#ffdab9",
472
+ darkmagenta: "#8b008b",
473
+ darkred: "#8b0000",
474
+ darkorchid: "#9932cc",
475
+ darkorange: "#ff8c00",
476
+ darkslateblue: "#483d8b",
477
+ gray: "#808080",
478
+ darkslategray: "#2f4f4f",
479
+ darkslategrey: "#2f4f4f",
480
+ deeppink: "#ff1493",
481
+ deepskyblue: "#00bfff",
482
+ wheat: "#f5deb3",
483
+ firebrick: "#b22222",
484
+ floralwhite: "#fffaf0",
485
+ ghostwhite: "#f8f8ff",
486
+ darkviolet: "#9400d3",
487
+ magenta: "#ff00ff",
488
+ green: "#008000",
489
+ dodgerblue: "#1e90ff",
490
+ grey: "#808080",
491
+ honeydew: "#f0fff0",
492
+ hotpink: "#ff69b4",
493
+ blueviolet: "#8a2be2",
494
+ forestgreen: "#228b22",
495
+ lawngreen: "#7cfc00",
496
+ indianred: "#cd5c5c",
497
+ indigo: "#4b0082",
498
+ fuchsia: "#ff00ff",
499
+ brown: "#a52a2a",
500
+ maroon: "#800000",
501
+ mediumblue: "#0000cd",
502
+ lightcoral: "#f08080",
503
+ darkturquoise: "#00ced1",
504
+ lightcyan: "#e0ffff",
505
+ ivory: "#fffff0",
506
+ lightyellow: "#ffffe0",
507
+ lightsalmon: "#ffa07a",
508
+ lightseagreen: "#20b2aa",
509
+ linen: "#faf0e6",
510
+ mediumaquamarine: "#66cdaa",
511
+ lemonchiffon: "#fffacd",
512
+ lime: "#00ff00",
513
+ khaki: "#f0e68c",
514
+ mediumseagreen: "#3cb371",
515
+ limegreen: "#32cd32",
516
+ mediumspringgreen: "#00fa9a",
517
+ lightskyblue: "#87cefa",
518
+ lightblue: "#add8e6",
519
+ midnightblue: "#191970",
520
+ lightpink: "#ffb6c1",
521
+ mistyrose: "#ffe4e1",
522
+ moccasin: "#ffe4b5",
523
+ mintcream: "#f5fffa",
524
+ lightslategray: "#778899",
525
+ lightslategrey: "#778899",
526
+ navajowhite: "#ffdead",
527
+ navy: "#000080",
528
+ mediumvioletred: "#c71585",
529
+ powderblue: "#b0e0e6",
530
+ palegoldenrod: "#eee8aa",
531
+ oldlace: "#fdf5e6",
532
+ paleturquoise: "#afeeee",
533
+ mediumturquoise: "#48d1cc",
534
+ mediumorchid: "#ba55d3",
535
+ rebeccapurple: "#663399",
536
+ lightsteelblue: "#b0c4de",
537
+ mediumslateblue: "#7b68ee",
538
+ thistle: "#d8bfd8",
539
+ tan: "#d2b48c",
540
+ orchid: "#da70d6",
541
+ mediumpurple: "#9370db",
542
+ purple: "#800080",
543
+ pink: "#ffc0cb",
544
+ skyblue: "#87ceeb",
545
+ springgreen: "#00ff7f",
546
+ palegreen: "#98fb98",
547
+ red: "#ff0000",
548
+ yellow: "#ffff00",
549
+ slateblue: "#6a5acd",
550
+ lavenderblush: "#fff0f5",
551
+ peru: "#cd853f",
552
+ palevioletred: "#db7093",
553
+ violet: "#ee82ee",
554
+ teal: "#008080",
555
+ slategray: "#708090",
556
+ slategrey: "#708090",
557
+ aliceblue: "#f0f8ff",
558
+ darkseagreen: "#8fbc8f",
559
+ darkolivegreen: "#556b2f",
560
+ greenyellow: "#adff2f",
561
+ seagreen: "#2e8b57",
562
+ seashell: "#fff5ee",
563
+ tomato: "#ff6347",
564
+ silver: "#c0c0c0",
565
+ sienna: "#a0522d",
566
+ lavender: "#e6e6fa",
567
+ lightgreen: "#90ee90",
568
+ orange: "#ffa500",
569
+ orangered: "#ff4500",
570
+ steelblue: "#4682b4",
571
+ royalblue: "#4169e1",
572
+ turquoise: "#40e0d0",
573
+ yellowgreen: "#9acd32",
574
+ salmon: "#fa8072",
575
+ saddlebrown: "#8b4513",
576
+ sandybrown: "#f4a460",
577
+ rosybrown: "#bc8f8f",
578
+ darksalmon: "#e9967a",
579
+ lightgoldenrodyellow: "#fafad2",
580
+ snow: "#fffafa",
581
+ lightgrey: "#d3d3d3",
582
+ lightgray: "#d3d3d3",
583
+ dimgray: "#696969",
584
+ dimgrey: "#696969",
585
+ olivedrab: "#6b8e23",
586
+ olive: "#808000"
587
+ }, r = {};
588
+ for (var i in n) r[n[i]] = i;
589
+ var a = {};
590
+ e.prototype.toName = function(t) {
591
+ if (!(this.rgba.a || this.rgba.r || this.rgba.g || this.rgba.b)) return "transparent";
592
+ var i, o, s = r[this.toHex()];
593
+ if (s) return s;
594
+ if (t?.closest) {
595
+ var c = this.toRgb(), l = Infinity, u = "black";
596
+ if (!a.length) for (var d in n) a[d] = new e(n[d]).toRgb();
597
+ for (var f in n) {
598
+ var p = (i = c, o = a[f], (i.r - o.r) ** 2 + (i.g - o.g) ** 2 + (i.b - o.b) ** 2);
599
+ p < l && (l = p, u = f);
600
+ }
601
+ return u;
602
+ }
603
+ }, t.string.push([function(t) {
604
+ var r = t.toLowerCase(), i = r === "transparent" ? "#0000" : n[r];
605
+ return i ? new e(i).toRgb() : null;
606
+ }, "name"]);
607
+ }
608
+ //#endregion
609
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/color/Color.mjs
610
+ fe([pe]);
611
+ var C = class e {
612
+ constructor(e = 16777215) {
613
+ this._value = null, this._components = new Float32Array(4), this._components.fill(1), this._int = 16777215, this.value = e;
614
+ }
615
+ get red() {
616
+ return this._components[0];
617
+ }
618
+ get green() {
619
+ return this._components[1];
620
+ }
621
+ get blue() {
622
+ return this._components[2];
623
+ }
624
+ get alpha() {
625
+ return this._components[3];
626
+ }
627
+ setValue(e) {
628
+ return this.value = e, this;
629
+ }
630
+ set value(t) {
631
+ if (t instanceof e) this._value = this._cloneSource(t._value), this._int = t._int, this._components.set(t._components);
632
+ else if (t === null) throw Error("Cannot set Color#value to null");
633
+ else (this._value === null || !this._isSourceEqual(this._value, t)) && (this._value = this._cloneSource(t), this._normalize(this._value));
634
+ }
635
+ get value() {
636
+ return this._value;
637
+ }
638
+ _cloneSource(e) {
639
+ return typeof e == "string" || typeof e == "number" || e instanceof Number || e === null ? e : Array.isArray(e) || ArrayBuffer.isView(e) ? e.slice(0) : typeof e == "object" && e ? { ...e } : e;
640
+ }
641
+ _isSourceEqual(e, t) {
642
+ let n = typeof e;
643
+ if (n !== typeof t) return !1;
644
+ if (n === "number" || n === "string" || e instanceof Number) return e === t;
645
+ if (Array.isArray(e) && Array.isArray(t) || ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) return e.length === t.length ? e.every((e, n) => e === t[n]) : !1;
646
+ if (e !== null && t !== null) {
647
+ let n = Object.keys(e), r = Object.keys(t);
648
+ return n.length === r.length ? n.every((n) => e[n] === t[n]) : !1;
649
+ }
650
+ return e === t;
651
+ }
652
+ toRgba() {
653
+ let [e, t, n, r] = this._components;
654
+ return {
655
+ r: e,
656
+ g: t,
657
+ b: n,
658
+ a: r
659
+ };
660
+ }
661
+ toRgb() {
662
+ let [e, t, n] = this._components;
663
+ return {
664
+ r: e,
665
+ g: t,
666
+ b: n
667
+ };
668
+ }
669
+ toRgbaString() {
670
+ let [e, t, n] = this.toUint8RgbArray();
671
+ return `rgba(${e},${t},${n},${this.alpha})`;
672
+ }
673
+ toUint8RgbArray(e) {
674
+ let [t, n, r] = this._components;
675
+ return this._arrayRgb ||= [], e ||= this._arrayRgb, e[0] = Math.round(t * 255), e[1] = Math.round(n * 255), e[2] = Math.round(r * 255), e;
676
+ }
677
+ toArray(e) {
678
+ this._arrayRgba ||= [], e ||= this._arrayRgba;
679
+ let [t, n, r, i] = this._components;
680
+ return e[0] = t, e[1] = n, e[2] = r, e[3] = i, e;
681
+ }
682
+ toRgbArray(e) {
683
+ this._arrayRgb ||= [], e ||= this._arrayRgb;
684
+ let [t, n, r] = this._components;
685
+ return e[0] = t, e[1] = n, e[2] = r, e;
686
+ }
687
+ toNumber() {
688
+ return this._int;
689
+ }
690
+ toBgrNumber() {
691
+ let [e, t, n] = this.toUint8RgbArray();
692
+ return (n << 16) + (t << 8) + e;
693
+ }
694
+ toLittleEndianNumber() {
695
+ let e = this._int;
696
+ return (e >> 16) + (e & 65280) + ((e & 255) << 16);
697
+ }
698
+ multiply(t) {
699
+ let [n, r, i, a] = e._temp.setValue(t)._components;
700
+ return this._components[0] *= n, this._components[1] *= r, this._components[2] *= i, this._components[3] *= a, this._refreshInt(), this._value = null, this;
701
+ }
702
+ premultiply(e, t = !0) {
703
+ return t && (this._components[0] *= e, this._components[1] *= e, this._components[2] *= e), this._components[3] = e, this._refreshInt(), this._value = null, this;
704
+ }
705
+ toPremultiplied(e, t = !0) {
706
+ if (e === 1) return (255 << 24) + this._int;
707
+ if (e === 0) return t ? 0 : this._int;
708
+ let n = this._int >> 16 & 255, r = this._int >> 8 & 255, i = this._int & 255;
709
+ return t && (n = n * e + .5 | 0, r = r * e + .5 | 0, i = i * e + .5 | 0), (e * 255 << 24) + (n << 16) + (r << 8) + i;
710
+ }
711
+ toHex() {
712
+ let e = this._int.toString(16);
713
+ return `#${"000000".substring(0, 6 - e.length) + e}`;
714
+ }
715
+ toHexa() {
716
+ let e = Math.round(this._components[3] * 255).toString(16);
717
+ return this.toHex() + "00".substring(0, 2 - e.length) + e;
718
+ }
719
+ setAlpha(e) {
720
+ return this._components[3] = this._clamp(e), this._value = null, this;
721
+ }
722
+ _normalize(t) {
723
+ let n, r, i, a;
724
+ if ((typeof t == "number" || t instanceof Number) && t >= 0 && t <= 16777215) {
725
+ let e = t;
726
+ n = (e >> 16 & 255) / 255, r = (e >> 8 & 255) / 255, i = (e & 255) / 255, a = 1;
727
+ } else if ((Array.isArray(t) || t instanceof Float32Array) && t.length >= 3 && t.length <= 4) t = this._clamp(t), [n, r, i, a = 1] = t;
728
+ else if ((t instanceof Uint8Array || t instanceof Uint8ClampedArray) && t.length >= 3 && t.length <= 4) t = this._clamp(t, 0, 255), [n, r, i, a = 255] = t, n /= 255, r /= 255, i /= 255, a /= 255;
729
+ else if (typeof t == "string" || typeof t == "object") {
730
+ if (typeof t == "string") {
731
+ let n = e.HEX_PATTERN.exec(t);
732
+ n && (t = `#${n[2]}`);
733
+ }
734
+ let o = S(t);
735
+ o.isValid() && ({r: n, g: r, b: i, a} = o.rgba, n /= 255, r /= 255, i /= 255);
736
+ }
737
+ if (n !== void 0) this._components[0] = n, this._components[1] = r, this._components[2] = i, this._components[3] = a, this._refreshInt();
738
+ else throw Error(`Unable to convert color ${t}`);
739
+ }
740
+ _refreshInt() {
741
+ this._clamp(this._components);
742
+ let [e, t, n] = this._components;
743
+ this._int = (e * 255 << 16) + (t * 255 << 8) + (n * 255 | 0);
744
+ }
745
+ _clamp(e, t = 0, n = 1) {
746
+ return typeof e == "number" ? Math.min(Math.max(e, t), n) : (e.forEach((r, i) => {
747
+ e[i] = Math.min(Math.max(r, t), n);
748
+ }), e);
749
+ }
750
+ static isColorLike(t) {
751
+ return typeof t == "number" || typeof t == "string" || t instanceof Number || t instanceof e || Array.isArray(t) || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Float32Array || t.r !== void 0 && t.g !== void 0 && t.b !== void 0 || t.r !== void 0 && t.g !== void 0 && t.b !== void 0 && t.a !== void 0 || t.h !== void 0 && t.s !== void 0 && t.l !== void 0 || t.h !== void 0 && t.s !== void 0 && t.l !== void 0 && t.a !== void 0 || t.h !== void 0 && t.s !== void 0 && t.v !== void 0 || t.h !== void 0 && t.s !== void 0 && t.v !== void 0 && t.a !== void 0;
752
+ }
753
+ };
754
+ C.shared = new C(), C._temp = new C(), C.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
755
+ var me = C, he = {
756
+ cullArea: null,
757
+ cullable: !1,
758
+ cullableChildren: !0
759
+ }, ge = Math.PI * 2, _e = 180 / Math.PI, ve = Math.PI / 180, w = class e {
760
+ constructor(e = 0, t = 0) {
761
+ this.x = 0, this.y = 0, this.x = e, this.y = t;
762
+ }
763
+ clone() {
764
+ return new e(this.x, this.y);
765
+ }
766
+ copyFrom(e) {
767
+ return this.set(e.x, e.y), this;
768
+ }
769
+ copyTo(e) {
770
+ return e.set(this.x, this.y), e;
771
+ }
772
+ equals(e) {
773
+ return e.x === this.x && e.y === this.y;
774
+ }
775
+ set(e = 0, t = e) {
776
+ return this.x = e, this.y = t, this;
777
+ }
778
+ toString() {
779
+ return `[pixi.js/math:Point x=${this.x} y=${this.y}]`;
780
+ }
781
+ static get shared() {
782
+ return ye.x = 0, ye.y = 0, ye;
783
+ }
784
+ }, ye = new w(), T = class e {
785
+ constructor(e = 1, t = 0, n = 0, r = 1, i = 0, a = 0) {
786
+ this.array = null, this.a = e, this.b = t, this.c = n, this.d = r, this.tx = i, this.ty = a;
787
+ }
788
+ fromArray(e) {
789
+ this.a = e[0], this.b = e[1], this.c = e[3], this.d = e[4], this.tx = e[2], this.ty = e[5];
790
+ }
791
+ set(e, t, n, r, i, a) {
792
+ return this.a = e, this.b = t, this.c = n, this.d = r, this.tx = i, this.ty = a, this;
793
+ }
794
+ toArray(e, t) {
795
+ this.array ||= new Float32Array(9);
796
+ let n = t || this.array;
797
+ return e ? (n[0] = this.a, n[1] = this.b, n[2] = 0, n[3] = this.c, n[4] = this.d, n[5] = 0, n[6] = this.tx, n[7] = this.ty, n[8] = 1) : (n[0] = this.a, n[1] = this.c, n[2] = this.tx, n[3] = this.b, n[4] = this.d, n[5] = this.ty, n[6] = 0, n[7] = 0, n[8] = 1), n;
798
+ }
799
+ apply(e, t) {
800
+ t ||= new w();
801
+ let n = e.x, r = e.y;
802
+ return t.x = this.a * n + this.c * r + this.tx, t.y = this.b * n + this.d * r + this.ty, t;
803
+ }
804
+ applyInverse(e, t) {
805
+ t ||= new w();
806
+ let n = this.a, r = this.b, i = this.c, a = this.d, o = this.tx, s = this.ty, c = 1 / (n * a + i * -r), l = e.x, u = e.y;
807
+ return t.x = a * c * l + -i * c * u + (s * i - o * a) * c, t.y = n * c * u + -r * c * l + (-s * n + o * r) * c, t;
808
+ }
809
+ translate(e, t) {
810
+ return this.tx += e, this.ty += t, this;
811
+ }
812
+ scale(e, t) {
813
+ return this.a *= e, this.d *= t, this.c *= e, this.b *= t, this.tx *= e, this.ty *= t, this;
814
+ }
815
+ rotate(e) {
816
+ let t = Math.cos(e), n = Math.sin(e), r = this.a, i = this.c, a = this.tx;
817
+ return this.a = r * t - this.b * n, this.b = r * n + this.b * t, this.c = i * t - this.d * n, this.d = i * n + this.d * t, this.tx = a * t - this.ty * n, this.ty = a * n + this.ty * t, this;
818
+ }
819
+ append(e) {
820
+ let t = this.a, n = this.b, r = this.c, i = this.d;
821
+ return this.a = e.a * t + e.b * r, this.b = e.a * n + e.b * i, this.c = e.c * t + e.d * r, this.d = e.c * n + e.d * i, this.tx = e.tx * t + e.ty * r + this.tx, this.ty = e.tx * n + e.ty * i + this.ty, this;
822
+ }
823
+ appendFrom(e, t) {
824
+ let n = e.a, r = e.b, i = e.c, a = e.d, o = e.tx, s = e.ty, c = t.a, l = t.b, u = t.c, d = t.d;
825
+ return this.a = n * c + r * u, this.b = n * l + r * d, this.c = i * c + a * u, this.d = i * l + a * d, this.tx = o * c + s * u + t.tx, this.ty = o * l + s * d + t.ty, this;
826
+ }
827
+ setTransform(e, t, n, r, i, a, o, s, c) {
828
+ return this.a = Math.cos(o + c) * i, this.b = Math.sin(o + c) * i, this.c = -Math.sin(o - s) * a, this.d = Math.cos(o - s) * a, this.tx = e - (n * this.a + r * this.c), this.ty = t - (n * this.b + r * this.d), this;
829
+ }
830
+ prepend(e) {
831
+ let t = this.tx;
832
+ if (e.a !== 1 || e.b !== 0 || e.c !== 0 || e.d !== 1) {
833
+ let t = this.a, n = this.c;
834
+ this.a = t * e.a + this.b * e.c, this.b = t * e.b + this.b * e.d, this.c = n * e.a + this.d * e.c, this.d = n * e.b + this.d * e.d;
835
+ }
836
+ return this.tx = t * e.a + this.ty * e.c + e.tx, this.ty = t * e.b + this.ty * e.d + e.ty, this;
837
+ }
838
+ decompose(e) {
839
+ let t = this.a, n = this.b, r = this.c, i = this.d, a = e.pivot, o = -Math.atan2(-r, i), s = Math.atan2(n, t), c = Math.abs(o + s);
840
+ return c < 1e-5 || Math.abs(ge - c) < 1e-5 ? (e.rotation = s, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = s), e.scale.x = Math.sqrt(t * t + n * n), e.scale.y = Math.sqrt(r * r + i * i), e.position.x = this.tx + (a.x * t + a.y * r), e.position.y = this.ty + (a.x * n + a.y * i), e;
841
+ }
842
+ invert() {
843
+ let e = this.a, t = this.b, n = this.c, r = this.d, i = this.tx, a = e * r - t * n;
844
+ return this.a = r / a, this.b = -t / a, this.c = -n / a, this.d = e / a, this.tx = (n * this.ty - r * i) / a, this.ty = -(e * this.ty - t * i) / a, this;
845
+ }
846
+ isIdentity() {
847
+ return this.a === 1 && this.b === 0 && this.c === 0 && this.d === 1 && this.tx === 0 && this.ty === 0;
848
+ }
849
+ identity() {
850
+ return this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.tx = 0, this.ty = 0, this;
851
+ }
852
+ clone() {
853
+ let t = new e();
854
+ return t.a = this.a, t.b = this.b, t.c = this.c, t.d = this.d, t.tx = this.tx, t.ty = this.ty, t;
855
+ }
856
+ copyTo(e) {
857
+ return e.a = this.a, e.b = this.b, e.c = this.c, e.d = this.d, e.tx = this.tx, e.ty = this.ty, e;
858
+ }
859
+ copyFrom(e) {
860
+ return this.a = e.a, this.b = e.b, this.c = e.c, this.d = e.d, this.tx = e.tx, this.ty = e.ty, this;
861
+ }
862
+ equals(e) {
863
+ return e.a === this.a && e.b === this.b && e.c === this.c && e.d === this.d && e.tx === this.tx && e.ty === this.ty;
864
+ }
865
+ toString() {
866
+ return `[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`;
867
+ }
868
+ static get IDENTITY() {
869
+ return xe.identity();
870
+ }
871
+ static get shared() {
872
+ return be.identity();
873
+ }
874
+ }, be = new T(), xe = new T(), E = class e {
875
+ constructor(e, t, n) {
876
+ this._x = t || 0, this._y = n || 0, this._observer = e;
877
+ }
878
+ clone(t) {
879
+ return new e(t ?? this._observer, this._x, this._y);
880
+ }
881
+ set(e = 0, t = e) {
882
+ return (this._x !== e || this._y !== t) && (this._x = e, this._y = t, this._observer._onUpdate(this)), this;
883
+ }
884
+ copyFrom(e) {
885
+ return (this._x !== e.x || this._y !== e.y) && (this._x = e.x, this._y = e.y, this._observer._onUpdate(this)), this;
886
+ }
887
+ copyTo(e) {
888
+ return e.set(this._x, this._y), e;
889
+ }
890
+ equals(e) {
891
+ return e.x === this._x && e.y === this._y;
892
+ }
893
+ toString() {
894
+ return `[pixi.js/math:ObservablePoint x=${this._x} y=${this._y} scope=${this._observer}]`;
895
+ }
896
+ get x() {
897
+ return this._x;
898
+ }
899
+ set x(e) {
900
+ this._x !== e && (this._x = e, this._observer._onUpdate(this));
901
+ }
902
+ get y() {
903
+ return this._y;
904
+ }
905
+ set y(e) {
906
+ this._y !== e && (this._y = e, this._observer._onUpdate(this));
907
+ }
908
+ }, Se = { default: -1 };
909
+ function D(e = "default") {
910
+ return Se[e] === void 0 && (Se[e] = -1), ++Se[e];
911
+ }
912
+ //#endregion
913
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/logging/deprecation.mjs
914
+ var Ce = /* @__PURE__ */ new Set(), O = "8.0.0", we = "8.3.4", k = {
915
+ quiet: !1,
916
+ noColor: !1
917
+ }, A = ((e, t, n = 3) => {
918
+ if (k.quiet || Ce.has(t)) return;
919
+ let r = (/* @__PURE__ */ Error()).stack, i = `${t}
920
+ Deprecated since v${e}`, a = typeof console.groupCollapsed == "function" && !k.noColor;
921
+ r === void 0 ? console.warn("PixiJS Deprecation Warning: ", i) : (r = r.split("\n").splice(n).join("\n"), a ? (console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s", "color:#614108;background:#fffbe6", "font-weight:normal;color:#614108;background:#fffbe6", i), console.warn(r), console.groupEnd()) : (console.warn("PixiJS Deprecation Warning: ", i), console.warn(r))), Ce.add(t);
922
+ });
923
+ Object.defineProperties(A, {
924
+ quiet: {
925
+ get: () => k.quiet,
926
+ set: (e) => {
927
+ k.quiet = e;
928
+ },
929
+ enumerable: !0,
930
+ configurable: !1
931
+ },
932
+ noColor: {
933
+ get: () => k.noColor,
934
+ set: (e) => {
935
+ k.noColor = e;
936
+ },
937
+ enumerable: !0,
938
+ configurable: !1
939
+ }
940
+ });
941
+ //#endregion
942
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/logging/warn.mjs
943
+ var Te = 0, Ee = 500;
944
+ function j(...e) {
945
+ Te !== Ee && (Te++, Te === Ee ? console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.") : console.warn("PixiJS Warning: ", ...e));
946
+ }
947
+ //#endregion
948
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/pool/GlobalResourceRegistry.mjs
949
+ var De = {
950
+ _registeredResources: /* @__PURE__ */ new Set(),
951
+ register(e) {
952
+ this._registeredResources.add(e);
953
+ },
954
+ unregister(e) {
955
+ this._registeredResources.delete(e);
956
+ },
957
+ release() {
958
+ this._registeredResources.forEach((e) => e.clear());
959
+ },
960
+ get registeredCount() {
961
+ return this._registeredResources.size;
962
+ },
963
+ isRegistered(e) {
964
+ return this._registeredResources.has(e);
965
+ },
966
+ reset() {
967
+ this._registeredResources.clear();
968
+ }
969
+ }, Oe = class {
970
+ constructor(e, t) {
971
+ this._pool = [], this._count = 0, this._index = 0, this._classType = e, t && this.prepopulate(t);
972
+ }
973
+ prepopulate(e) {
974
+ for (let t = 0; t < e; t++) this._pool[this._index++] = new this._classType();
975
+ this._count += e;
976
+ }
977
+ get(e) {
978
+ let t;
979
+ return this._index > 0 ? t = this._pool[--this._index] : (t = new this._classType(), this._count++), t.init?.(e), t;
980
+ }
981
+ return(e) {
982
+ e.reset?.(), this._pool[this._index++] = e;
983
+ }
984
+ get totalSize() {
985
+ return this._count;
986
+ }
987
+ get totalFree() {
988
+ return this._index;
989
+ }
990
+ get totalUsed() {
991
+ return this._count - this._index;
992
+ }
993
+ clear() {
994
+ if (this._pool.length > 0 && this._pool[0].destroy) for (let e = 0; e < this._index; e++) this._pool[e].destroy();
995
+ this._pool.length = 0, this._count = 0, this._index = 0;
996
+ }
997
+ }, M = new class {
998
+ constructor() {
999
+ this._poolsByClass = /* @__PURE__ */ new Map();
1000
+ }
1001
+ prepopulate(e, t) {
1002
+ this.getPool(e).prepopulate(t);
1003
+ }
1004
+ get(e, t) {
1005
+ return this.getPool(e).get(t);
1006
+ }
1007
+ return(e) {
1008
+ this.getPool(e.constructor).return(e);
1009
+ }
1010
+ getPool(e) {
1011
+ return this._poolsByClass.has(e) || this._poolsByClass.set(e, new Oe(e)), this._poolsByClass.get(e);
1012
+ }
1013
+ stats() {
1014
+ let e = {};
1015
+ return this._poolsByClass.forEach((t) => {
1016
+ let n = e[t._classType.name] ? t._classType.name + t._classType.ID : t._classType.name;
1017
+ e[n] = {
1018
+ free: t.totalFree,
1019
+ used: t.totalUsed,
1020
+ size: t.totalSize
1021
+ };
1022
+ }), e;
1023
+ }
1024
+ clear() {
1025
+ this._poolsByClass.forEach((e) => e.clear()), this._poolsByClass.clear();
1026
+ }
1027
+ }();
1028
+ De.register(M);
1029
+ //#endregion
1030
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.mjs
1031
+ var ke = {
1032
+ get isCachedAsTexture() {
1033
+ return !!this.renderGroup?.isCachedAsTexture;
1034
+ },
1035
+ cacheAsTexture(e) {
1036
+ typeof e == "boolean" && e === !1 ? this.disableRenderGroup() : (this.enableRenderGroup(), this.renderGroup.enableCacheAsTexture(e === !0 ? {} : e));
1037
+ },
1038
+ updateCacheTexture() {
1039
+ this.renderGroup?.updateCacheTexture();
1040
+ },
1041
+ get cacheAsBitmap() {
1042
+ return this.isCachedAsTexture;
1043
+ },
1044
+ set cacheAsBitmap(e) {
1045
+ A("v8.6.0", "cacheAsBitmap is deprecated, use cacheAsTexture instead."), this.cacheAsTexture(e);
1046
+ }
1047
+ };
1048
+ //#endregion
1049
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/removeItems.mjs
1050
+ function Ae(e, t, n) {
1051
+ let r = e.length, i;
1052
+ if (t >= r || n === 0) return;
1053
+ n = t + n > r ? r - t : n;
1054
+ let a = r - n;
1055
+ for (i = t; i < a; ++i) e[i] = e[i + n];
1056
+ e.length = a;
1057
+ }
1058
+ //#endregion
1059
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.mjs
1060
+ var je = {
1061
+ allowChildren: !0,
1062
+ removeChildren(e = 0, t) {
1063
+ let n = t ?? this.children.length, r = n - e, i = [];
1064
+ if (r > 0 && r <= n) {
1065
+ for (let t = n - 1; t >= e; t--) {
1066
+ let e = this.children[t];
1067
+ e && (i.push(e), e.parent = null);
1068
+ }
1069
+ Ae(this.children, e, n);
1070
+ let t = this.renderGroup || this.parentRenderGroup;
1071
+ t && t.removeChildren(i);
1072
+ for (let e = 0; e < i.length; ++e) {
1073
+ let t = i[e];
1074
+ t.parentRenderLayer?.detach(t), this.emit("childRemoved", t, this, e), i[e].emit("removed", this);
1075
+ }
1076
+ return i.length > 0 && this._didViewChangeTick++, i;
1077
+ } else if (r === 0 && this.children.length === 0) return i;
1078
+ throw RangeError("removeChildren: numeric values are outside the acceptable range.");
1079
+ },
1080
+ removeChildAt(e) {
1081
+ let t = this.getChildAt(e);
1082
+ return this.removeChild(t);
1083
+ },
1084
+ getChildAt(e) {
1085
+ if (e < 0 || e >= this.children.length) throw Error(`getChildAt: Index (${e}) does not exist.`);
1086
+ return this.children[e];
1087
+ },
1088
+ setChildIndex(e, t) {
1089
+ if (t < 0 || t >= this.children.length) throw Error(`The index ${t} supplied is out of bounds ${this.children.length}`);
1090
+ this.getChildIndex(e), this.addChildAt(e, t);
1091
+ },
1092
+ getChildIndex(e) {
1093
+ let t = this.children.indexOf(e);
1094
+ if (t === -1) throw Error("The supplied Container must be a child of the caller");
1095
+ return t;
1096
+ },
1097
+ addChildAt(e, t) {
1098
+ this.allowChildren || A(O, "addChildAt: Only Containers will be allowed to add children in v8.0.0");
1099
+ let { children: n } = this;
1100
+ if (t < 0 || t > n.length) throw Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${n.length}`);
1101
+ let r = e.parent === this;
1102
+ if (e.parent) {
1103
+ let n = e.parent.children.indexOf(e);
1104
+ if (r) {
1105
+ if (n === t) return e;
1106
+ e.parent.children.splice(n, 1);
1107
+ } else e.removeFromParent();
1108
+ }
1109
+ t === n.length ? n.push(e) : n.splice(t, 0, e);
1110
+ let i = this.renderGroup || this.parentRenderGroup;
1111
+ return this.sortableChildren && (this.sortDirty = !0), r ? (i && (i.structureDidChange = !0), e) : (e.parent = this, e.didChange = !0, e._updateFlags = 15, i && i.addChild(e), this.emit("childAdded", e, this, t), e.emit("added", this), e);
1112
+ },
1113
+ swapChildren(e, t) {
1114
+ if (e === t) return;
1115
+ let n = this.getChildIndex(e), r = this.getChildIndex(t);
1116
+ this.children[n] = t, this.children[r] = e;
1117
+ let i = this.renderGroup || this.parentRenderGroup;
1118
+ i && (i.structureDidChange = !0), this._didContainerChangeTick++;
1119
+ },
1120
+ removeFromParent() {
1121
+ this.parent?.removeChild(this);
1122
+ },
1123
+ reparentChild(...e) {
1124
+ return e.length === 1 ? this.reparentChildAt(e[0], this.children.length) : (e.forEach((e) => this.reparentChildAt(e, this.children.length)), e[0]);
1125
+ },
1126
+ reparentChildAt(e, t) {
1127
+ if (e.parent === this) return this.setChildIndex(e, t), e;
1128
+ let n = e.worldTransform.clone();
1129
+ e.removeFromParent(), this.addChildAt(e, t);
1130
+ let r = this.worldTransform.clone();
1131
+ return r.invert(), n.prepend(r), e.setFromMatrix(n), e;
1132
+ },
1133
+ replaceChild(e, t) {
1134
+ e.updateLocalTransform(), this.addChildAt(t, this.getChildIndex(e)), t.setFromMatrix(e.localTransform), t.updateLocalTransform(), this.removeChild(e);
1135
+ }
1136
+ }, Me = {
1137
+ collectRenderables(e, t, n) {
1138
+ this.parentRenderLayer && this.parentRenderLayer !== n || this.globalDisplayStatus < 7 || !this.includeInBuild || (this.sortableChildren && this.sortChildren(), this.isSimple ? this.collectRenderablesSimple(e, t, n) : this.renderGroup ? t.renderPipes.renderGroup.addRenderGroup(this.renderGroup, e) : this.collectRenderablesWithEffects(e, t, n));
1139
+ },
1140
+ collectRenderablesSimple(e, t, n) {
1141
+ let r = this.children, i = r.length;
1142
+ for (let a = 0; a < i; a++) r[a].collectRenderables(e, t, n);
1143
+ },
1144
+ collectRenderablesWithEffects(e, t, n) {
1145
+ let { renderPipes: r } = t;
1146
+ for (let t = 0; t < this.effects.length; t++) {
1147
+ let n = this.effects[t];
1148
+ r[n.pipe].push(n, this, e);
1149
+ }
1150
+ this.collectRenderablesSimple(e, t, n);
1151
+ for (let t = this.effects.length - 1; t >= 0; t--) {
1152
+ let n = this.effects[t];
1153
+ r[n.pipe].pop(n, this, e);
1154
+ }
1155
+ }
1156
+ }, Ne = class {
1157
+ constructor() {
1158
+ this.pipe = "filter", this.priority = 1;
1159
+ }
1160
+ destroy() {
1161
+ for (let e = 0; e < this.filters.length; e++) this.filters[e].destroy();
1162
+ this.filters = null, this.filterArea = null;
1163
+ }
1164
+ }, Pe = new class {
1165
+ constructor() {
1166
+ this._effectClasses = [], this._tests = [], this._initialized = !1;
1167
+ }
1168
+ init() {
1169
+ this._initialized || (this._initialized = !0, this._effectClasses.forEach((e) => {
1170
+ this.add({
1171
+ test: e.test,
1172
+ maskClass: e
1173
+ });
1174
+ }));
1175
+ }
1176
+ add(e) {
1177
+ this._tests.push(e);
1178
+ }
1179
+ getMaskEffect(e) {
1180
+ this._initialized || this.init();
1181
+ for (let t = 0; t < this._tests.length; t++) {
1182
+ let n = this._tests[t];
1183
+ if (n.test(e)) return M.get(n.maskClass, e);
1184
+ }
1185
+ return e;
1186
+ }
1187
+ returnMaskEffect(e) {
1188
+ M.return(e);
1189
+ }
1190
+ }();
1191
+ a.handleByList(n.MaskEffect, Pe._effectClasses);
1192
+ //#endregion
1193
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.mjs
1194
+ var Fe = {
1195
+ _maskEffect: null,
1196
+ _maskOptions: {
1197
+ inverse: !1,
1198
+ channel: "red"
1199
+ },
1200
+ _filterEffect: null,
1201
+ effects: [],
1202
+ _markStructureAsChanged() {
1203
+ let e = this.renderGroup || this.parentRenderGroup;
1204
+ e && (e.structureDidChange = !0);
1205
+ },
1206
+ addEffect(e) {
1207
+ this.effects.indexOf(e) === -1 && (this.effects.push(e), this.effects.sort((e, t) => e.priority - t.priority), this._markStructureAsChanged(), this._updateIsSimple());
1208
+ },
1209
+ removeEffect(e) {
1210
+ let t = this.effects.indexOf(e);
1211
+ t !== -1 && (this.effects.splice(t, 1), this._markStructureAsChanged(), this._updateIsSimple());
1212
+ },
1213
+ set mask(e) {
1214
+ let t = this._maskEffect;
1215
+ t?.mask !== e && (t && (this.removeEffect(t), Pe.returnMaskEffect(t), this._maskEffect = null), e != null && (this._maskEffect = Pe.getMaskEffect(e), this.addEffect(this._maskEffect)));
1216
+ },
1217
+ get mask() {
1218
+ return this._maskEffect?.mask;
1219
+ },
1220
+ setMask(e) {
1221
+ this._maskOptions = {
1222
+ ...this._maskOptions,
1223
+ ...e
1224
+ }, e.mask && (this.mask = e.mask), this._markStructureAsChanged();
1225
+ },
1226
+ set filters(e) {
1227
+ !Array.isArray(e) && e && (e = [e]);
1228
+ let t = this._filterEffect ||= new Ne();
1229
+ e = e;
1230
+ let n = e?.length > 0, r = n !== t.filters?.length > 0;
1231
+ e = Array.isArray(e) ? e.slice(0) : e, t.filters = Object.freeze(e), r && (n ? this.addEffect(t) : (this.removeEffect(t), t.filters = e ?? null));
1232
+ },
1233
+ get filters() {
1234
+ return this._filterEffect?.filters;
1235
+ },
1236
+ set filterArea(e) {
1237
+ this._filterEffect ||= new Ne(), this._filterEffect.filterArea = e;
1238
+ },
1239
+ get filterArea() {
1240
+ return this._filterEffect?.filterArea;
1241
+ }
1242
+ }, Ie = {
1243
+ label: null,
1244
+ get name() {
1245
+ return A(O, "Container.name property has been removed, use Container.label instead"), this.label;
1246
+ },
1247
+ set name(e) {
1248
+ A(O, "Container.name property has been removed, use Container.label instead"), this.label = e;
1249
+ },
1250
+ getChildByName(e, t = !1) {
1251
+ return this.getChildByLabel(e, t);
1252
+ },
1253
+ getChildByLabel(e, t = !1) {
1254
+ let n = this.children;
1255
+ for (let t = 0; t < n.length; t++) {
1256
+ let r = n[t];
1257
+ if (r.label === e || e instanceof RegExp && e.test(r.label)) return r;
1258
+ }
1259
+ if (t) for (let t = 0; t < n.length; t++) {
1260
+ let r = n[t].getChildByLabel(e, !0);
1261
+ if (r) return r;
1262
+ }
1263
+ return null;
1264
+ },
1265
+ getChildrenByLabel(e, t = !1, n = []) {
1266
+ let r = this.children;
1267
+ for (let t = 0; t < r.length; t++) {
1268
+ let i = r[t];
1269
+ (i.label === e || e instanceof RegExp && e.test(i.label)) && n.push(i);
1270
+ }
1271
+ if (t) for (let t = 0; t < r.length; t++) r[t].getChildrenByLabel(e, !0, n);
1272
+ return n;
1273
+ }
1274
+ }, Le = [
1275
+ new w(),
1276
+ new w(),
1277
+ new w(),
1278
+ new w()
1279
+ ], Re = class e {
1280
+ constructor(e = 0, t = 0, n = 0, r = 0) {
1281
+ this.type = "rectangle", this.x = Number(e), this.y = Number(t), this.width = Number(n), this.height = Number(r);
1282
+ }
1283
+ get left() {
1284
+ return this.x;
1285
+ }
1286
+ get right() {
1287
+ return this.x + this.width;
1288
+ }
1289
+ get top() {
1290
+ return this.y;
1291
+ }
1292
+ get bottom() {
1293
+ return this.y + this.height;
1294
+ }
1295
+ isEmpty() {
1296
+ return this.left === this.right || this.top === this.bottom;
1297
+ }
1298
+ static get EMPTY() {
1299
+ return new e(0, 0, 0, 0);
1300
+ }
1301
+ clone() {
1302
+ return new e(this.x, this.y, this.width, this.height);
1303
+ }
1304
+ copyFromBounds(e) {
1305
+ return this.x = e.minX, this.y = e.minY, this.width = e.maxX - e.minX, this.height = e.maxY - e.minY, this;
1306
+ }
1307
+ copyFrom(e) {
1308
+ return this.x = e.x, this.y = e.y, this.width = e.width, this.height = e.height, this;
1309
+ }
1310
+ copyTo(e) {
1311
+ return e.copyFrom(this), e;
1312
+ }
1313
+ contains(e, t) {
1314
+ return this.width <= 0 || this.height <= 0 ? !1 : e >= this.x && e < this.x + this.width && t >= this.y && t < this.y + this.height;
1315
+ }
1316
+ strokeContains(e, t, n, r = .5) {
1317
+ let { width: i, height: a } = this;
1318
+ if (i <= 0 || a <= 0) return !1;
1319
+ let o = this.x, s = this.y, c = n * (1 - r), l = n - c, u = o - c, d = o + i + c, f = s - c, p = s + a + c, m = o + l, h = o + i - l, g = s + l, _ = s + a - l;
1320
+ return e >= u && e <= d && t >= f && t <= p && !(e > m && e < h && t > g && t < _);
1321
+ }
1322
+ intersects(e, t) {
1323
+ if (!t) {
1324
+ let t = this.x < e.x ? e.x : this.x;
1325
+ if ((this.right > e.right ? e.right : this.right) <= t) return !1;
1326
+ let n = this.y < e.y ? e.y : this.y;
1327
+ return (this.bottom > e.bottom ? e.bottom : this.bottom) > n;
1328
+ }
1329
+ let n = this.left, r = this.right, i = this.top, a = this.bottom;
1330
+ if (r <= n || a <= i) return !1;
1331
+ let o = Le[0].set(e.left, e.top), s = Le[1].set(e.left, e.bottom), c = Le[2].set(e.right, e.top), l = Le[3].set(e.right, e.bottom);
1332
+ if (c.x <= o.x || s.y <= o.y) return !1;
1333
+ let u = Math.sign(t.a * t.d - t.b * t.c);
1334
+ if (u === 0 || (t.apply(o, o), t.apply(s, s), t.apply(c, c), t.apply(l, l), Math.max(o.x, s.x, c.x, l.x) <= n || Math.min(o.x, s.x, c.x, l.x) >= r || Math.max(o.y, s.y, c.y, l.y) <= i || Math.min(o.y, s.y, c.y, l.y) >= a)) return !1;
1335
+ let d = u * (s.y - o.y), f = u * (o.x - s.x), p = d * n + f * i, m = d * r + f * i, h = d * n + f * a, g = d * r + f * a;
1336
+ if (Math.max(p, m, h, g) <= d * o.x + f * o.y || Math.min(p, m, h, g) >= d * l.x + f * l.y) return !1;
1337
+ let _ = u * (o.y - c.y), v = u * (c.x - o.x), y = _ * n + v * i, b = _ * r + v * i, x = _ * n + v * a, ee = _ * r + v * a;
1338
+ return !(Math.max(y, b, x, ee) <= _ * o.x + v * o.y || Math.min(y, b, x, ee) >= _ * l.x + v * l.y);
1339
+ }
1340
+ pad(e = 0, t = e) {
1341
+ return this.x -= e, this.y -= t, this.width += e * 2, this.height += t * 2, this;
1342
+ }
1343
+ fit(e) {
1344
+ let t = Math.max(this.x, e.x), n = Math.min(this.x + this.width, e.x + e.width), r = Math.max(this.y, e.y), i = Math.min(this.y + this.height, e.y + e.height);
1345
+ return this.x = t, this.width = Math.max(n - t, 0), this.y = r, this.height = Math.max(i - r, 0), this;
1346
+ }
1347
+ ceil(e = 1, t = .001) {
1348
+ let n = Math.ceil((this.x + this.width - t) * e) / e, r = Math.ceil((this.y + this.height - t) * e) / e;
1349
+ return this.x = Math.floor((this.x + t) * e) / e, this.y = Math.floor((this.y + t) * e) / e, this.width = n - this.x, this.height = r - this.y, this;
1350
+ }
1351
+ scale(e, t = e) {
1352
+ return this.x *= e, this.y *= t, this.width *= e, this.height *= t, this;
1353
+ }
1354
+ enlarge(e) {
1355
+ let t = Math.min(this.x, e.x), n = Math.max(this.x + this.width, e.x + e.width), r = Math.min(this.y, e.y), i = Math.max(this.y + this.height, e.y + e.height);
1356
+ return this.x = t, this.width = n - t, this.y = r, this.height = i - r, this;
1357
+ }
1358
+ getBounds(t) {
1359
+ return t ||= new e(), t.copyFrom(this), t;
1360
+ }
1361
+ containsRect(e) {
1362
+ if (this.width <= 0 || this.height <= 0) return !1;
1363
+ let t = e.x, n = e.y, r = e.x + e.width, i = e.y + e.height;
1364
+ return t >= this.x && t < this.x + this.width && n >= this.y && n < this.y + this.height && r >= this.x && r <= this.x + this.width && i >= this.y && i <= this.y + this.height;
1365
+ }
1366
+ set(e, t, n, r) {
1367
+ return this.x = e, this.y = t, this.width = n, this.height = r, this;
1368
+ }
1369
+ toString() {
1370
+ return `[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
1371
+ }
1372
+ }, ze = new T(), N = class e {
1373
+ constructor(e = Infinity, t = Infinity, n = -Infinity, r = -Infinity) {
1374
+ this.minX = Infinity, this.minY = Infinity, this.maxX = -Infinity, this.maxY = -Infinity, this.matrix = ze, this.minX = e, this.minY = t, this.maxX = n, this.maxY = r;
1375
+ }
1376
+ isEmpty() {
1377
+ return this.minX > this.maxX || this.minY > this.maxY;
1378
+ }
1379
+ get rectangle() {
1380
+ this._rectangle ||= new Re();
1381
+ let e = this._rectangle;
1382
+ return this.minX > this.maxX || this.minY > this.maxY ? (e.x = 0, e.y = 0, e.width = 0, e.height = 0) : e.copyFromBounds(this), e;
1383
+ }
1384
+ clear() {
1385
+ return this.minX = Infinity, this.minY = Infinity, this.maxX = -Infinity, this.maxY = -Infinity, this.matrix = ze, this;
1386
+ }
1387
+ set(e, t, n, r) {
1388
+ this.minX = e, this.minY = t, this.maxX = n, this.maxY = r;
1389
+ }
1390
+ addFrame(e, t, n, r, i) {
1391
+ i ||= this.matrix;
1392
+ let a = i.a, o = i.b, s = i.c, c = i.d, l = i.tx, u = i.ty, d = this.minX, f = this.minY, p = this.maxX, m = this.maxY, h = a * e + s * t + l, g = o * e + c * t + u;
1393
+ h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), h = a * n + s * t + l, g = o * n + c * t + u, h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), h = a * e + s * r + l, g = o * e + c * r + u, h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), h = a * n + s * r + l, g = o * n + c * r + u, h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), this.minX = d, this.minY = f, this.maxX = p, this.maxY = m;
1394
+ }
1395
+ addRect(e, t) {
1396
+ this.addFrame(e.x, e.y, e.x + e.width, e.y + e.height, t);
1397
+ }
1398
+ addBounds(e, t) {
1399
+ this.addFrame(e.minX, e.minY, e.maxX, e.maxY, t);
1400
+ }
1401
+ addBoundsMask(e) {
1402
+ this.minX = this.minX > e.minX ? this.minX : e.minX, this.minY = this.minY > e.minY ? this.minY : e.minY, this.maxX = this.maxX < e.maxX ? this.maxX : e.maxX, this.maxY = this.maxY < e.maxY ? this.maxY : e.maxY;
1403
+ }
1404
+ applyMatrix(e) {
1405
+ let t = this.minX, n = this.minY, r = this.maxX, i = this.maxY, { a, b: o, c: s, d: c, tx: l, ty: u } = e, d = a * t + s * n + l, f = o * t + c * n + u;
1406
+ this.minX = d, this.minY = f, this.maxX = d, this.maxY = f, d = a * r + s * n + l, f = o * r + c * n + u, this.minX = d < this.minX ? d : this.minX, this.minY = f < this.minY ? f : this.minY, this.maxX = d > this.maxX ? d : this.maxX, this.maxY = f > this.maxY ? f : this.maxY, d = a * t + s * i + l, f = o * t + c * i + u, this.minX = d < this.minX ? d : this.minX, this.minY = f < this.minY ? f : this.minY, this.maxX = d > this.maxX ? d : this.maxX, this.maxY = f > this.maxY ? f : this.maxY, d = a * r + s * i + l, f = o * r + c * i + u, this.minX = d < this.minX ? d : this.minX, this.minY = f < this.minY ? f : this.minY, this.maxX = d > this.maxX ? d : this.maxX, this.maxY = f > this.maxY ? f : this.maxY;
1407
+ }
1408
+ fit(e) {
1409
+ return this.minX < e.left && (this.minX = e.left), this.maxX > e.right && (this.maxX = e.right), this.minY < e.top && (this.minY = e.top), this.maxY > e.bottom && (this.maxY = e.bottom), this;
1410
+ }
1411
+ fitBounds(e, t, n, r) {
1412
+ return this.minX < e && (this.minX = e), this.maxX > t && (this.maxX = t), this.minY < n && (this.minY = n), this.maxY > r && (this.maxY = r), this;
1413
+ }
1414
+ pad(e, t = e) {
1415
+ return this.minX -= e, this.maxX += e, this.minY -= t, this.maxY += t, this;
1416
+ }
1417
+ ceil() {
1418
+ return this.minX = Math.floor(this.minX), this.minY = Math.floor(this.minY), this.maxX = Math.ceil(this.maxX), this.maxY = Math.ceil(this.maxY), this;
1419
+ }
1420
+ clone() {
1421
+ return new e(this.minX, this.minY, this.maxX, this.maxY);
1422
+ }
1423
+ scale(e, t = e) {
1424
+ return this.minX *= e, this.minY *= t, this.maxX *= e, this.maxY *= t, this;
1425
+ }
1426
+ get x() {
1427
+ return this.minX;
1428
+ }
1429
+ set x(e) {
1430
+ let t = this.maxX - this.minX;
1431
+ this.minX = e, this.maxX = e + t;
1432
+ }
1433
+ get y() {
1434
+ return this.minY;
1435
+ }
1436
+ set y(e) {
1437
+ let t = this.maxY - this.minY;
1438
+ this.minY = e, this.maxY = e + t;
1439
+ }
1440
+ get width() {
1441
+ return this.maxX - this.minX;
1442
+ }
1443
+ set width(e) {
1444
+ this.maxX = this.minX + e;
1445
+ }
1446
+ get height() {
1447
+ return this.maxY - this.minY;
1448
+ }
1449
+ set height(e) {
1450
+ this.maxY = this.minY + e;
1451
+ }
1452
+ get left() {
1453
+ return this.minX;
1454
+ }
1455
+ get right() {
1456
+ return this.maxX;
1457
+ }
1458
+ get top() {
1459
+ return this.minY;
1460
+ }
1461
+ get bottom() {
1462
+ return this.maxY;
1463
+ }
1464
+ get isPositive() {
1465
+ return this.maxX - this.minX > 0 && this.maxY - this.minY > 0;
1466
+ }
1467
+ get isValid() {
1468
+ return this.minX + this.minY !== Infinity;
1469
+ }
1470
+ addVertexData(e, t, n, r) {
1471
+ let i = this.minX, a = this.minY, o = this.maxX, s = this.maxY;
1472
+ r ||= this.matrix;
1473
+ let c = r.a, l = r.b, u = r.c, d = r.d, f = r.tx, p = r.ty;
1474
+ for (let r = t; r < n; r += 2) {
1475
+ let t = e[r], n = e[r + 1], m = c * t + u * n + f, h = l * t + d * n + p;
1476
+ i = m < i ? m : i, a = h < a ? h : a, o = m > o ? m : o, s = h > s ? h : s;
1477
+ }
1478
+ this.minX = i, this.minY = a, this.maxX = o, this.maxY = s;
1479
+ }
1480
+ containsPoint(e, t) {
1481
+ return this.minX <= e && this.minY <= t && this.maxX >= e && this.maxY >= t;
1482
+ }
1483
+ toString() {
1484
+ return `[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`;
1485
+ }
1486
+ copyFrom(e) {
1487
+ return this.minX = e.minX, this.minY = e.minY, this.maxX = e.maxX, this.maxY = e.maxY, this;
1488
+ }
1489
+ }, P = M.getPool(T), F = M.getPool(N), Be = new T(), Ve = {
1490
+ getFastGlobalBounds(e, t) {
1491
+ t ||= new N(), t.clear(), this._getGlobalBoundsRecursive(!!e, t, this.parentRenderLayer), t.isValid || t.set(0, 0, 0, 0);
1492
+ let n = this.renderGroup || this.parentRenderGroup;
1493
+ return t.applyMatrix(n.worldTransform), t;
1494
+ },
1495
+ _getGlobalBoundsRecursive(e, t, n) {
1496
+ let r = t;
1497
+ if (e && this.parentRenderLayer && this.parentRenderLayer !== n || this.localDisplayStatus !== 7 || !this.measurable) return;
1498
+ let i = !!this.effects.length;
1499
+ if ((this.renderGroup || i) && (r = F.get().clear()), this.boundsArea) t.addRect(this.boundsArea, this.worldTransform);
1500
+ else {
1501
+ if (this.renderPipeId) {
1502
+ let e = this.bounds;
1503
+ r.addFrame(e.minX, e.minY, e.maxX, e.maxY, this.groupTransform);
1504
+ }
1505
+ let t = this.children;
1506
+ for (let i = 0; i < t.length; i++) t[i]._getGlobalBoundsRecursive(e, r, n);
1507
+ }
1508
+ if (i) {
1509
+ let e = !1, n = this.renderGroup || this.parentRenderGroup;
1510
+ for (let t = 0; t < this.effects.length; t++) this.effects[t].addBounds && (e || (e = !0, r.applyMatrix(n.worldTransform)), this.effects[t].addBounds(r, !0));
1511
+ e && r.applyMatrix(n.worldTransform.copyTo(Be).invert()), t.addBounds(r), F.return(r);
1512
+ } else this.renderGroup && (t.addBounds(r, this.relativeGroupTransform), F.return(r));
1513
+ }
1514
+ };
1515
+ //#endregion
1516
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/bounds/getGlobalBounds.mjs
1517
+ function He(e, t, n) {
1518
+ n.clear();
1519
+ let r, i;
1520
+ return e.parent ? t ? r = e.parent.worldTransform : (i = P.get().identity(), r = We(e, i)) : r = T.IDENTITY, Ue(e, n, r, t), i && P.return(i), n.isValid || n.set(0, 0, 0, 0), n;
1521
+ }
1522
+ function Ue(e, t, n, r) {
1523
+ if (!e.visible || !e.measurable) return;
1524
+ let i;
1525
+ r ? i = e.worldTransform : (e.updateLocalTransform(), i = P.get(), i.appendFrom(e.localTransform, n));
1526
+ let a = t, o = !!e.effects.length;
1527
+ if (o && (t = F.get().clear()), e.boundsArea) t.addRect(e.boundsArea, i);
1528
+ else {
1529
+ let n = e.bounds;
1530
+ n && !n.isEmpty() && (t.matrix = i, t.addBounds(n));
1531
+ for (let n = 0; n < e.children.length; n++) Ue(e.children[n], t, i, r);
1532
+ }
1533
+ if (o) {
1534
+ for (let n = 0; n < e.effects.length; n++) e.effects[n].addBounds?.(t);
1535
+ a.addBounds(t, T.IDENTITY), F.return(t);
1536
+ }
1537
+ r || P.return(i);
1538
+ }
1539
+ function We(e, t) {
1540
+ let n = e.parent;
1541
+ return n && (We(n, t), n.updateLocalTransform(), t.append(n.localTransform)), t;
1542
+ }
1543
+ //#endregion
1544
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/multiplyHexColors.mjs
1545
+ function Ge(e, t) {
1546
+ if (e === 16777215 || !t) return t;
1547
+ if (t === 16777215 || !e) return e;
1548
+ let n = e >> 16 & 255, r = e >> 8 & 255, i = e & 255, a = t >> 16 & 255, o = t >> 8 & 255, s = t & 255, c = n * a / 255 | 0, l = r * o / 255 | 0, u = i * s / 255 | 0;
1549
+ return (c << 16) + (l << 8) + u;
1550
+ }
1551
+ //#endregion
1552
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/multiplyColors.mjs
1553
+ var Ke = 16777215;
1554
+ function qe(e, t) {
1555
+ return e === Ke ? t : t === Ke ? e : Ge(e, t);
1556
+ }
1557
+ //#endregion
1558
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.mjs
1559
+ function I(e) {
1560
+ return ((e & 255) << 16) + (e & 65280) + (e >> 16 & 255);
1561
+ }
1562
+ var Je = {
1563
+ getGlobalAlpha(e) {
1564
+ if (e) return this.renderGroup ? this.renderGroup.worldAlpha : this.parentRenderGroup ? this.parentRenderGroup.worldAlpha * this.alpha : this.alpha;
1565
+ let t = this.alpha, n = this.parent;
1566
+ for (; n;) t *= n.alpha, n = n.parent;
1567
+ return t;
1568
+ },
1569
+ getGlobalTransform(e = new T(), t) {
1570
+ if (t) return e.copyFrom(this.worldTransform);
1571
+ this.updateLocalTransform();
1572
+ let n = We(this, P.get().identity());
1573
+ return e.appendFrom(this.localTransform, n), P.return(n), e;
1574
+ },
1575
+ getGlobalTint(e) {
1576
+ if (e) return this.renderGroup ? I(this.renderGroup.worldColor) : this.parentRenderGroup ? I(qe(this.localColor, this.parentRenderGroup.worldColor)) : this.tint;
1577
+ let t = this.localColor, n = this.parent;
1578
+ for (; n;) t = qe(t, n.localColor), n = n.parent;
1579
+ return I(t);
1580
+ }
1581
+ };
1582
+ //#endregion
1583
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/bounds/getLocalBounds.mjs
1584
+ function Ye(e, t, n) {
1585
+ return t.clear(), n ||= T.IDENTITY, Xe(e, t, n, e, !0), t.isValid || t.set(0, 0, 0, 0), t;
1586
+ }
1587
+ function Xe(e, t, n, r, i) {
1588
+ let a;
1589
+ if (i) a = P.get(), a = n.copyTo(a);
1590
+ else {
1591
+ if (!e.visible || !e.measurable) return;
1592
+ e.updateLocalTransform();
1593
+ let t = e.localTransform;
1594
+ a = P.get(), a.appendFrom(t, n);
1595
+ }
1596
+ let o = t, s = !!e.effects.length;
1597
+ if (s && (t = F.get().clear()), e.boundsArea) t.addRect(e.boundsArea, a);
1598
+ else {
1599
+ e.renderPipeId && (t.matrix = a, t.addBounds(e.bounds));
1600
+ let n = e.children;
1601
+ for (let e = 0; e < n.length; e++) Xe(n[e], t, a, r, !1);
1602
+ }
1603
+ if (s) {
1604
+ for (let n = 0; n < e.effects.length; n++) e.effects[n].addLocalBounds?.(t, r);
1605
+ o.addBounds(t, T.IDENTITY), F.return(t);
1606
+ }
1607
+ P.return(a);
1608
+ }
1609
+ //#endregion
1610
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/checkChildrenDidChange.mjs
1611
+ function Ze(e, t) {
1612
+ let n = e.children;
1613
+ for (let e = 0; e < n.length; e++) {
1614
+ let r = n[e], i = r.uid, a = (r._didViewChangeTick & 65535) << 16 | r._didContainerChangeTick & 65535, o = t.index;
1615
+ (t.data[o] !== i || t.data[o + 1] !== a) && (t.data[t.index] = i, t.data[t.index + 1] = a, t.didChange = !0), t.index = o + 2, r.children.length && Ze(r, t);
1616
+ }
1617
+ return t.didChange;
1618
+ }
1619
+ //#endregion
1620
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.mjs
1621
+ var Qe = new T(), $e = {
1622
+ _localBoundsCacheId: -1,
1623
+ _localBoundsCacheData: null,
1624
+ _setWidth(e, t) {
1625
+ let n = Math.sign(this.scale.x) || 1;
1626
+ t === 0 ? this.scale.x = n : this.scale.x = e / t * n;
1627
+ },
1628
+ _setHeight(e, t) {
1629
+ let n = Math.sign(this.scale.y) || 1;
1630
+ t === 0 ? this.scale.y = n : this.scale.y = e / t * n;
1631
+ },
1632
+ getLocalBounds() {
1633
+ this._localBoundsCacheData ||= {
1634
+ data: [],
1635
+ index: 1,
1636
+ didChange: !1,
1637
+ localBounds: new N()
1638
+ };
1639
+ let e = this._localBoundsCacheData;
1640
+ return e.index = 1, e.didChange = !1, e.data[0] !== this._didViewChangeTick && (e.didChange = !0, e.data[0] = this._didViewChangeTick), Ze(this, e), e.didChange && Ye(this, e.localBounds, Qe), e.localBounds;
1641
+ },
1642
+ getBounds(e, t) {
1643
+ return He(this, e, t || new N());
1644
+ }
1645
+ }, et = {
1646
+ _onRender: null,
1647
+ set onRender(e) {
1648
+ let t = this.renderGroup || this.parentRenderGroup;
1649
+ if (!e) {
1650
+ this._onRender && t?.removeOnRender(this), this._onRender = null;
1651
+ return;
1652
+ }
1653
+ this._onRender || t?.addOnRender(this), this._onRender = e;
1654
+ },
1655
+ get onRender() {
1656
+ return this._onRender;
1657
+ }
1658
+ }, tt = {
1659
+ _zIndex: 0,
1660
+ sortDirty: !1,
1661
+ sortableChildren: !1,
1662
+ get zIndex() {
1663
+ return this._zIndex;
1664
+ },
1665
+ set zIndex(e) {
1666
+ this._zIndex !== e && (this._zIndex = e, this.depthOfChildModified());
1667
+ },
1668
+ depthOfChildModified() {
1669
+ this.parent && (this.parent.sortableChildren = !0, this.parent.sortDirty = !0), this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0);
1670
+ },
1671
+ sortChildren() {
1672
+ this.sortDirty && (this.sortDirty = !1, this.children.sort(nt));
1673
+ }
1674
+ };
1675
+ function nt(e, t) {
1676
+ return e._zIndex - t._zIndex;
1677
+ }
1678
+ //#endregion
1679
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.mjs
1680
+ var rt = {
1681
+ getGlobalPosition(e = new w(), t = !1) {
1682
+ return this.parent ? this.parent.toGlobal(this._position, e, t) : (e.x = this._position.x, e.y = this._position.y), e;
1683
+ },
1684
+ toGlobal(e, t, n = !1) {
1685
+ let r = this.getGlobalTransform(P.get(), n);
1686
+ return t = r.apply(e, t), P.return(r), t;
1687
+ },
1688
+ toLocal(e, t, n, r) {
1689
+ t && (e = t.toGlobal(e, n, r));
1690
+ let i = this.getGlobalTransform(P.get(), r);
1691
+ return n = i.applyInverse(e, n), P.return(i), n;
1692
+ }
1693
+ }, it = class {
1694
+ constructor() {
1695
+ this.uid = D("instructionSet"), this.instructions = [], this.instructionSize = 0, this.renderables = [], this.gcTick = 0;
1696
+ }
1697
+ reset() {
1698
+ this.instructionSize = 0;
1699
+ }
1700
+ destroy() {
1701
+ this.instructions.length = 0, this.renderables.length = 0, this.renderPipes = null, this.gcTick = 0;
1702
+ }
1703
+ add(e) {
1704
+ this.instructions[this.instructionSize++] = e;
1705
+ }
1706
+ log() {
1707
+ this.instructions.length = this.instructionSize, console.table(this.instructions, ["type", "action"]);
1708
+ }
1709
+ };
1710
+ //#endregion
1711
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/maths/misc/pow2.mjs
1712
+ function at(e) {
1713
+ return e += +(e === 0), --e, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e + 1;
1714
+ }
1715
+ function ot(e) {
1716
+ return !(e & e - 1) && !!e;
1717
+ }
1718
+ //#endregion
1719
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/definedProps.mjs
1720
+ function st(e) {
1721
+ let t = {};
1722
+ for (let n in e) e[n] !== void 0 && (t[n] = e[n]);
1723
+ return t;
1724
+ }
1725
+ //#endregion
1726
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureStyle.mjs
1727
+ var ct = /* @__PURE__ */ Object.create(null);
1728
+ function lt(e) {
1729
+ let t = ct[e];
1730
+ return t === void 0 && (ct[e] = D("resource")), t;
1731
+ }
1732
+ var ut = class e extends o {
1733
+ constructor(t = {}) {
1734
+ super(), this._resourceType = "textureSampler", this._touched = 0, this._maxAnisotropy = 1, this.destroyed = !1, t = {
1735
+ ...e.defaultOptions,
1736
+ ...t
1737
+ }, this.addressMode = t.addressMode, this.addressModeU = t.addressModeU ?? this.addressModeU, this.addressModeV = t.addressModeV ?? this.addressModeV, this.addressModeW = t.addressModeW ?? this.addressModeW, this.scaleMode = t.scaleMode, this.magFilter = t.magFilter ?? this.magFilter, this.minFilter = t.minFilter ?? this.minFilter, this.mipmapFilter = t.mipmapFilter ?? this.mipmapFilter, this.lodMinClamp = t.lodMinClamp, this.lodMaxClamp = t.lodMaxClamp, this.compare = t.compare, this.maxAnisotropy = t.maxAnisotropy ?? 1;
1738
+ }
1739
+ set addressMode(e) {
1740
+ this.addressModeU = e, this.addressModeV = e, this.addressModeW = e;
1741
+ }
1742
+ get addressMode() {
1743
+ return this.addressModeU;
1744
+ }
1745
+ set wrapMode(e) {
1746
+ A(O, "TextureStyle.wrapMode is now TextureStyle.addressMode"), this.addressMode = e;
1747
+ }
1748
+ get wrapMode() {
1749
+ return this.addressMode;
1750
+ }
1751
+ set scaleMode(e) {
1752
+ this.magFilter = e, this.minFilter = e, this.mipmapFilter = e;
1753
+ }
1754
+ get scaleMode() {
1755
+ return this.magFilter;
1756
+ }
1757
+ set maxAnisotropy(e) {
1758
+ this._maxAnisotropy = Math.min(e, 16), this._maxAnisotropy > 1 && (this.scaleMode = "linear");
1759
+ }
1760
+ get maxAnisotropy() {
1761
+ return this._maxAnisotropy;
1762
+ }
1763
+ get _resourceId() {
1764
+ return this._sharedResourceId || this._generateResourceId();
1765
+ }
1766
+ update() {
1767
+ this._sharedResourceId = null, this.emit("change", this);
1768
+ }
1769
+ _generateResourceId() {
1770
+ let e = `${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;
1771
+ return this._sharedResourceId = lt(e), this._resourceId;
1772
+ }
1773
+ destroy() {
1774
+ this.destroyed = !0, this.emit("destroy", this), this.emit("change", this), this.removeAllListeners();
1775
+ }
1776
+ };
1777
+ ut.defaultOptions = {
1778
+ addressMode: "clamp-to-edge",
1779
+ scaleMode: "linear"
1780
+ };
1781
+ var dt = ut, ft = class e extends o {
1782
+ constructor(t = {}) {
1783
+ super(), this.options = t, this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.uid = D("textureSource"), this._resourceType = "textureSource", this._resourceId = D("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.viewDimension = "2d", this.arrayLayerCount = 1, this._ownsStyle = !1, this.antialias = !1, this.transient = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = {
1784
+ ...e.defaultOptions,
1785
+ ...t
1786
+ }, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, t.width ? this.pixelWidth = t.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, t.height ? this.pixelHeight = t.height * this._resolution : this.pixelHeight = this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.viewDimension = t.viewDimension ?? t.dimensions, this.arrayLayerCount = t.arrayLayerCount, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.transient = t.transient ?? !1, this.alphaMode = t.alphaMode, this.style = new dt(st(t)), this._ownsStyle = !0, this.destroyed = !1, this._refreshPOT();
1787
+ }
1788
+ get source() {
1789
+ return this;
1790
+ }
1791
+ get style() {
1792
+ return this._style;
1793
+ }
1794
+ set style(e) {
1795
+ this.style !== e && (this._ownsStyle = !1, this._style?.off("change", this._onStyleChange, this), this._style = e, this._style?.on("change", this._onStyleChange, this), this._onStyleChange());
1796
+ }
1797
+ set maxAnisotropy(e) {
1798
+ this._style.maxAnisotropy = e;
1799
+ }
1800
+ get maxAnisotropy() {
1801
+ return this._style.maxAnisotropy;
1802
+ }
1803
+ get addressMode() {
1804
+ return this._style.addressMode;
1805
+ }
1806
+ set addressMode(e) {
1807
+ this._style.addressMode = e;
1808
+ }
1809
+ get repeatMode() {
1810
+ return this._style.addressMode;
1811
+ }
1812
+ set repeatMode(e) {
1813
+ this._style.addressMode = e;
1814
+ }
1815
+ get magFilter() {
1816
+ return this._style.magFilter;
1817
+ }
1818
+ set magFilter(e) {
1819
+ this._style.magFilter = e;
1820
+ }
1821
+ get minFilter() {
1822
+ return this._style.minFilter;
1823
+ }
1824
+ set minFilter(e) {
1825
+ this._style.minFilter = e;
1826
+ }
1827
+ get mipmapFilter() {
1828
+ return this._style.mipmapFilter;
1829
+ }
1830
+ set mipmapFilter(e) {
1831
+ this._style.mipmapFilter = e;
1832
+ }
1833
+ get lodMinClamp() {
1834
+ return this._style.lodMinClamp;
1835
+ }
1836
+ set lodMinClamp(e) {
1837
+ this._style.lodMinClamp = e;
1838
+ }
1839
+ get lodMaxClamp() {
1840
+ return this._style.lodMaxClamp;
1841
+ }
1842
+ set lodMaxClamp(e) {
1843
+ this._style.lodMaxClamp = e;
1844
+ }
1845
+ _onStyleChange() {
1846
+ this.emit("styleChange", this);
1847
+ }
1848
+ update() {
1849
+ if (this.resource) {
1850
+ let e = this._resolution;
1851
+ if (this.resize(this.resourceWidth / e, this.resourceHeight / e)) return;
1852
+ }
1853
+ this.emit("update", this);
1854
+ }
1855
+ destroy() {
1856
+ this.destroyed = !0, this.unload(), this.emit("destroy", this), this._style &&= (this._ownsStyle && this._style.destroy(), null), this.uploadMethodId = null, this.resource = null, this.removeAllListeners();
1857
+ }
1858
+ unload() {
1859
+ this._resourceId = D("resource"), this.emit("change", this), this.emit("unload", this);
1860
+ for (let e in this._gpuData) this._gpuData[e]?.destroy?.();
1861
+ this._gpuData = /* @__PURE__ */ Object.create(null);
1862
+ }
1863
+ get resourceWidth() {
1864
+ let { resource: e } = this;
1865
+ return e.naturalWidth || e.videoWidth || e.displayWidth || e.width;
1866
+ }
1867
+ get resourceHeight() {
1868
+ let { resource: e } = this;
1869
+ return e.naturalHeight || e.videoHeight || e.displayHeight || e.height;
1870
+ }
1871
+ get resolution() {
1872
+ return this._resolution;
1873
+ }
1874
+ set resolution(e) {
1875
+ this._resolution !== e && (this._resolution = e, this.width = this.pixelWidth / e, this.height = this.pixelHeight / e);
1876
+ }
1877
+ resize(e, t, n) {
1878
+ n ||= this._resolution, e ||= this.width, t ||= this.height;
1879
+ let r = Math.round(e * n), i = Math.round(t * n);
1880
+ return this.width = r / n, this.height = i / n, this._resolution = n, this.pixelWidth === r && this.pixelHeight === i ? !1 : (this._refreshPOT(), this.pixelWidth = r, this.pixelHeight = i, this.emit("resize", this), this._resourceId = D("resource"), this.emit("change", this), !0);
1881
+ }
1882
+ updateMipmaps() {
1883
+ this.autoGenerateMipmaps && this.mipLevelCount > 1 && this.emit("updateMipmaps", this);
1884
+ }
1885
+ set wrapMode(e) {
1886
+ this._style.wrapMode = e;
1887
+ }
1888
+ get wrapMode() {
1889
+ return this._style.wrapMode;
1890
+ }
1891
+ set scaleMode(e) {
1892
+ this._style.scaleMode = e;
1893
+ }
1894
+ get scaleMode() {
1895
+ return this._style.scaleMode;
1896
+ }
1897
+ _refreshPOT() {
1898
+ this.isPowerOfTwo = ot(this.pixelWidth) && ot(this.pixelHeight);
1899
+ }
1900
+ static test(e) {
1901
+ throw Error("Unimplemented");
1902
+ }
1903
+ };
1904
+ ft.defaultOptions = {
1905
+ resolution: 1,
1906
+ format: "bgra8unorm",
1907
+ alphaMode: "premultiply-alpha-on-upload",
1908
+ dimensions: "2d",
1909
+ viewDimension: "2d",
1910
+ arrayLayerCount: 1,
1911
+ mipLevelCount: 1,
1912
+ autoGenerateMipmaps: !1,
1913
+ sampleCount: 1,
1914
+ antialias: !1,
1915
+ autoGarbageCollect: !1
1916
+ };
1917
+ var L = ft, R = [
1918
+ 1,
1919
+ 1,
1920
+ 0,
1921
+ -1,
1922
+ -1,
1923
+ -1,
1924
+ 0,
1925
+ 1,
1926
+ 1,
1927
+ 1,
1928
+ 0,
1929
+ -1,
1930
+ -1,
1931
+ -1,
1932
+ 0,
1933
+ 1
1934
+ ], z = [
1935
+ 0,
1936
+ 1,
1937
+ 1,
1938
+ 1,
1939
+ 0,
1940
+ -1,
1941
+ -1,
1942
+ -1,
1943
+ 0,
1944
+ 1,
1945
+ 1,
1946
+ 1,
1947
+ 0,
1948
+ -1,
1949
+ -1,
1950
+ -1
1951
+ ], B = [
1952
+ 0,
1953
+ -1,
1954
+ -1,
1955
+ -1,
1956
+ 0,
1957
+ 1,
1958
+ 1,
1959
+ 1,
1960
+ 0,
1961
+ 1,
1962
+ 1,
1963
+ 1,
1964
+ 0,
1965
+ -1,
1966
+ -1,
1967
+ -1
1968
+ ], V = [
1969
+ 1,
1970
+ 1,
1971
+ 0,
1972
+ -1,
1973
+ -1,
1974
+ -1,
1975
+ 0,
1976
+ 1,
1977
+ -1,
1978
+ -1,
1979
+ 0,
1980
+ 1,
1981
+ 1,
1982
+ 1,
1983
+ 0,
1984
+ -1
1985
+ ], pt = [], mt = [], H = Math.sign;
1986
+ function ht() {
1987
+ for (let e = 0; e < 16; e++) {
1988
+ let t = [];
1989
+ pt.push(t);
1990
+ for (let n = 0; n < 16; n++) {
1991
+ let r = H(R[e] * R[n] + B[e] * z[n]), i = H(z[e] * R[n] + V[e] * z[n]), a = H(R[e] * B[n] + B[e] * V[n]), o = H(z[e] * B[n] + V[e] * V[n]);
1992
+ for (let e = 0; e < 16; e++) if (R[e] === r && z[e] === i && B[e] === a && V[e] === o) {
1993
+ t.push(e);
1994
+ break;
1995
+ }
1996
+ }
1997
+ }
1998
+ for (let e = 0; e < 16; e++) {
1999
+ let t = new T();
2000
+ t.set(R[e], z[e], B[e], V[e], 0, 0), mt.push(t);
2001
+ }
2002
+ }
2003
+ ht();
2004
+ var U = {
2005
+ E: 0,
2006
+ SE: 1,
2007
+ S: 2,
2008
+ SW: 3,
2009
+ W: 4,
2010
+ NW: 5,
2011
+ N: 6,
2012
+ NE: 7,
2013
+ MIRROR_VERTICAL: 8,
2014
+ MAIN_DIAGONAL: 10,
2015
+ MIRROR_HORIZONTAL: 12,
2016
+ REVERSE_DIAGONAL: 14,
2017
+ uX: (e) => R[e],
2018
+ uY: (e) => z[e],
2019
+ vX: (e) => B[e],
2020
+ vY: (e) => V[e],
2021
+ inv: (e) => e & 8 ? e & 15 : -e & 7,
2022
+ add: (e, t) => pt[e][t],
2023
+ sub: (e, t) => pt[e][U.inv(t)],
2024
+ rotate180: (e) => e ^ 4,
2025
+ isVertical: (e) => (e & 3) == 2,
2026
+ byDirection: (e, t) => Math.abs(e) * 2 <= Math.abs(t) ? t >= 0 ? U.S : U.N : Math.abs(t) * 2 <= Math.abs(e) ? e > 0 ? U.E : U.W : t > 0 ? e > 0 ? U.SE : U.SW : e > 0 ? U.NE : U.NW,
2027
+ matrixAppendRotationInv: (e, t, n = 0, r = 0, i = 0, a = 0) => {
2028
+ let o = mt[U.inv(t)], s = o.a, c = o.b, l = o.c, u = o.d, d = n - Math.min(0, s * i, l * a, s * i + l * a), f = r - Math.min(0, c * i, u * a, c * i + u * a), p = e.a, m = e.b, h = e.c, g = e.d;
2029
+ e.a = s * p + c * h, e.b = s * m + c * g, e.c = l * p + u * h, e.d = l * m + u * g, e.tx = d * p + f * h + e.tx, e.ty = d * m + f * g + e.ty;
2030
+ },
2031
+ transformRectCoords: (e, t, n, r) => {
2032
+ let { x: i, y: a, width: o, height: s } = e, { x: c, y: l, width: u, height: d } = t;
2033
+ return n === U.E ? (r.set(i + c, a + l, o, s), r) : n === U.S ? r.set(u - a - s + c, i + l, s, o) : n === U.W ? r.set(u - i - o + c, d - a - s + l, o, s) : n === U.N ? r.set(a + c, d - i - o + l, s, o) : r.set(i + c, a + l, o, s);
2034
+ }
2035
+ }, gt = () => {}, _t = class extends L {
2036
+ constructor(e) {
2037
+ let t = e.resource || new Float32Array(e.width * e.height * 4), n = e.format;
2038
+ n ||= t instanceof Float32Array ? "rgba32float" : t instanceof Int32Array || t instanceof Uint32Array ? "rgba32uint" : t instanceof Int16Array || t instanceof Uint16Array ? "rgba16uint" : (t instanceof Int8Array, "bgra8unorm"), super({
2039
+ ...e,
2040
+ resource: t,
2041
+ format: n
2042
+ }), this.uploadMethodId = "buffer";
2043
+ }
2044
+ static test(e) {
2045
+ return e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array;
2046
+ }
2047
+ };
2048
+ _t.extension = n.TextureSource;
2049
+ //#endregion
2050
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureMatrix.mjs
2051
+ var vt = new T(), yt = class {
2052
+ constructor(e, t) {
2053
+ this.mapCoord = new T(), this.uClampFrame = new Float32Array(4), this.uClampOffset = new Float32Array(2), this._updateID = 0, this.clampOffset = 0, t === void 0 ? this.clampMargin = e.width < 10 ? 0 : .5 : this.clampMargin = t, this.isSimple = !1, this.texture = e;
2054
+ }
2055
+ get texture() {
2056
+ return this._texture;
2057
+ }
2058
+ set texture(e) {
2059
+ this._texture !== e && (this._texture?.removeListener("update", this.update, this), this._texture = e, this._texture.addListener("update", this.update, this)), this.update();
2060
+ }
2061
+ destroy() {
2062
+ this._texture?.removeListener("update", this.update, this), this._texture = null;
2063
+ }
2064
+ multiplyUvs(e, t) {
2065
+ t === void 0 && (t = e);
2066
+ let n = this.mapCoord;
2067
+ for (let r = 0; r < e.length; r += 2) {
2068
+ let i = e[r], a = e[r + 1];
2069
+ t[r] = i * n.a + a * n.c + n.tx, t[r + 1] = i * n.b + a * n.d + n.ty;
2070
+ }
2071
+ return t;
2072
+ }
2073
+ update() {
2074
+ let e = this._texture;
2075
+ this._updateID++;
2076
+ let t = e.uvs;
2077
+ this.mapCoord.set(t.x1 - t.x0, t.y1 - t.y0, t.x3 - t.x0, t.y3 - t.y0, t.x0, t.y0);
2078
+ let n = e.orig, r = e.trim;
2079
+ r && (vt.set(n.width / r.width, 0, 0, n.height / r.height, -r.x / r.width, -r.y / r.height), this.mapCoord.append(vt));
2080
+ let i = e.source, a = this.uClampFrame, o = this.clampMargin / i._resolution, s = this.clampOffset / i._resolution;
2081
+ return a[0] = (e.frame.x + o + s) / i.width, a[1] = (e.frame.y + o + s) / i.height, a[2] = (e.frame.x + e.frame.width - o + s) / i.width, a[3] = (e.frame.y + e.frame.height - o + s) / i.height, this.uClampOffset[0] = this.clampOffset / i.pixelWidth, this.uClampOffset[1] = this.clampOffset / i.pixelHeight, this.isSimple = e.frame.width === i.width && e.frame.height === i.height && e.rotate === 0, !0;
2082
+ }
2083
+ }, W = class extends o {
2084
+ constructor({ source: e, label: t, frame: n, orig: r, trim: i, defaultAnchor: a, defaultBorders: o, rotate: s, dynamic: c } = {}) {
2085
+ if (super(), this.uid = D("texture"), this.uvs = {
2086
+ x0: 0,
2087
+ y0: 0,
2088
+ x1: 0,
2089
+ y1: 0,
2090
+ x2: 0,
2091
+ y2: 0,
2092
+ x3: 0,
2093
+ y3: 0
2094
+ }, this.frame = new Re(), this.noFrame = !1, this.dynamic = !1, this.isTexture = !0, this.label = t, this.source = e?.source ?? new L(), this.noFrame = !n, n) this.frame.copyFrom(n);
2095
+ else {
2096
+ let { width: e, height: t } = this._source;
2097
+ this.frame.width = e, this.frame.height = t;
2098
+ }
2099
+ this.orig = r || this.frame, this.trim = i, this.rotate = s ?? 0, this.defaultAnchor = a, this.defaultBorders = o, this.destroyed = !1, this.dynamic = c || !1, this.updateUvs();
2100
+ }
2101
+ set source(e) {
2102
+ this._source && this._source.off("resize", this.update, this), this._source = e, e.on("resize", this.update, this), this.emit("update", this);
2103
+ }
2104
+ get source() {
2105
+ return this._source;
2106
+ }
2107
+ get textureMatrix() {
2108
+ return this._textureMatrix ||= new yt(this), this._textureMatrix;
2109
+ }
2110
+ get width() {
2111
+ return this.orig.width;
2112
+ }
2113
+ get height() {
2114
+ return this.orig.height;
2115
+ }
2116
+ updateUvs() {
2117
+ let { uvs: e, frame: t } = this, { width: n, height: r } = this._source, i = t.x / n, a = t.y / r, o = t.width / n, s = t.height / r, c = this.rotate;
2118
+ if (c) {
2119
+ let t = o / 2, n = s / 2, r = i + t, l = a + n;
2120
+ c = U.add(c, U.NW), e.x0 = r + t * U.uX(c), e.y0 = l + n * U.uY(c), c = U.add(c, 2), e.x1 = r + t * U.uX(c), e.y1 = l + n * U.uY(c), c = U.add(c, 2), e.x2 = r + t * U.uX(c), e.y2 = l + n * U.uY(c), c = U.add(c, 2), e.x3 = r + t * U.uX(c), e.y3 = l + n * U.uY(c);
2121
+ } else e.x0 = i, e.y0 = a, e.x1 = i + o, e.y1 = a, e.x2 = i + o, e.y2 = a + s, e.x3 = i, e.y3 = a + s;
2122
+ }
2123
+ destroy(e = !1) {
2124
+ this._source && (this._source.off("resize", this.update, this), e && (this._source.destroy(), this._source = null)), this._textureMatrix = null, this.destroyed = !0, this.emit("destroy", this), this.removeAllListeners();
2125
+ }
2126
+ update() {
2127
+ this.noFrame && (this.frame.width = this._source.width, this.frame.height = this._source.height), this.updateUvs(), this.emit("update", this);
2128
+ }
2129
+ get baseTexture() {
2130
+ return A(O, "Texture.baseTexture is now Texture.source"), this._source;
2131
+ }
2132
+ };
2133
+ W.EMPTY = new W({
2134
+ label: "EMPTY",
2135
+ source: new L({ label: "EMPTY" })
2136
+ }), W.EMPTY.destroy = gt, W.WHITE = new W({
2137
+ source: new _t({
2138
+ resource: new Uint8Array([
2139
+ 255,
2140
+ 255,
2141
+ 255,
2142
+ 255
2143
+ ]),
2144
+ width: 1,
2145
+ height: 1,
2146
+ alphaMode: "premultiply-alpha-on-upload",
2147
+ label: "WHITE"
2148
+ }),
2149
+ label: "WHITE"
2150
+ }), W.WHITE.destroy = gt;
2151
+ //#endregion
2152
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TexturePool.mjs
2153
+ var bt = 0, xt = new class {
2154
+ constructor(e) {
2155
+ this._poolKeyHash = /* @__PURE__ */ Object.create(null), this._texturePool = {}, this.textureOptions = e || {}, this.enableFullScreen = !1, this.textureStyle = new dt(this.textureOptions);
2156
+ }
2157
+ createTexture(e, t, n, r) {
2158
+ return new W({
2159
+ source: new L({
2160
+ ...this.textureOptions,
2161
+ width: e,
2162
+ height: t,
2163
+ resolution: 1,
2164
+ antialias: n,
2165
+ autoGarbageCollect: !1,
2166
+ autoGenerateMipmaps: r
2167
+ }),
2168
+ label: `texturePool_${bt++}`
2169
+ });
2170
+ }
2171
+ getOptimalTexture(e, t, n = 1, r, i = !1) {
2172
+ let a = Math.ceil(e * n - 1e-6), o = Math.ceil(t * n - 1e-6);
2173
+ a = at(a), o = at(o);
2174
+ let s = +!!r, c = +!!i, l = (a << 17) + (o << 2) + (c << 1) + s;
2175
+ this._texturePool[l] || (this._texturePool[l] = []);
2176
+ let u = this._texturePool[l].pop();
2177
+ return u ||= this.createTexture(a, o, r, i), u.source._resolution = n, u.source.width = a / n, u.source.height = o / n, u.source.pixelWidth = a, u.source.pixelHeight = o, u.frame.x = 0, u.frame.y = 0, u.frame.width = e, u.frame.height = t, u.updateUvs(), this._poolKeyHash[u.uid] = l, u;
2178
+ }
2179
+ getSameSizeTexture(e, t = !1) {
2180
+ let n = e.source;
2181
+ return this.getOptimalTexture(e.width, e.height, n._resolution, t);
2182
+ }
2183
+ returnTexture(e, t = !1) {
2184
+ let n = this._poolKeyHash[e.uid];
2185
+ t && (e.source.style = this.textureStyle), this._texturePool[n].push(e);
2186
+ }
2187
+ clear(e) {
2188
+ if (e = e !== !1, e) for (let e in this._texturePool) {
2189
+ let t = this._texturePool[e];
2190
+ if (t) for (let e = 0; e < t.length; e++) t[e].destroy(!0);
2191
+ }
2192
+ this._texturePool = {};
2193
+ }
2194
+ }();
2195
+ De.register(xt);
2196
+ //#endregion
2197
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/RenderGroup.mjs
2198
+ var St = class {
2199
+ constructor() {
2200
+ this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new T(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = {
2201
+ list: [],
2202
+ index: 0
2203
+ }, this.structureDidChange = !0, this.instructionSet = new it(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
2204
+ }
2205
+ init(e) {
2206
+ this.root = e, e._onRender && this.addOnRender(e), e.didChange = !0;
2207
+ let t = e.children;
2208
+ for (let e = 0; e < t.length; e++) {
2209
+ let n = t[e];
2210
+ n._updateFlags = 15, this.addChild(n);
2211
+ }
2212
+ }
2213
+ enableCacheAsTexture(e = {}) {
2214
+ this.textureOptions = e, this.isCachedAsTexture = !0, this.textureNeedsUpdate = !0;
2215
+ }
2216
+ disableCacheAsTexture() {
2217
+ this.isCachedAsTexture = !1, this.texture &&= (xt.returnTexture(this.texture, !0), null);
2218
+ }
2219
+ updateCacheTexture() {
2220
+ this.textureNeedsUpdate = !0;
2221
+ let e = this._parentCacheAsTextureRenderGroup;
2222
+ e && !e.textureNeedsUpdate && e.updateCacheTexture();
2223
+ }
2224
+ reset() {
2225
+ this.renderGroupChildren.length = 0;
2226
+ for (let e in this.childrenToUpdate) {
2227
+ let t = this.childrenToUpdate[e];
2228
+ t.list.fill(null), t.index = 0;
2229
+ }
2230
+ this.childrenRenderablesToUpdate.index = 0, this.childrenRenderablesToUpdate.list.fill(null), this.root = null, this.updateTick = 0, this.structureDidChange = !0, this._onRenderContainers.length = 0, this.renderGroupParent = null, this.disableCacheAsTexture();
2231
+ }
2232
+ get localTransform() {
2233
+ return this.root.localTransform;
2234
+ }
2235
+ addRenderGroupChild(e) {
2236
+ e.renderGroupParent && e.renderGroupParent._removeRenderGroupChild(e), e.renderGroupParent = this, this.renderGroupChildren.push(e);
2237
+ }
2238
+ _removeRenderGroupChild(e) {
2239
+ let t = this.renderGroupChildren.indexOf(e);
2240
+ t > -1 && this.renderGroupChildren.splice(t, 1), e.renderGroupParent = null;
2241
+ }
2242
+ addChild(e) {
2243
+ if (this.structureDidChange = !0, e.parentRenderGroup = this, e.updateTick = -1, e.parent === this.root ? e.relativeRenderGroupDepth = 1 : e.relativeRenderGroupDepth = e.parent.relativeRenderGroupDepth + 1, e.didChange = !0, this.onChildUpdate(e), e.renderGroup) {
2244
+ this.addRenderGroupChild(e.renderGroup);
2245
+ return;
2246
+ }
2247
+ e._onRender && this.addOnRender(e);
2248
+ let t = e.children;
2249
+ for (let e = 0; e < t.length; e++) this.addChild(t[e]);
2250
+ }
2251
+ removeChild(e) {
2252
+ if (this.structureDidChange = !0, e._onRender && (e.renderGroup || this.removeOnRender(e)), e.parentRenderGroup = null, e.renderGroup) {
2253
+ this._removeRenderGroupChild(e.renderGroup);
2254
+ return;
2255
+ }
2256
+ let t = e.children;
2257
+ for (let e = 0; e < t.length; e++) this.removeChild(t[e]);
2258
+ }
2259
+ removeChildren(e) {
2260
+ for (let t = 0; t < e.length; t++) this.removeChild(e[t]);
2261
+ }
2262
+ onChildUpdate(e) {
2263
+ let t = this.childrenToUpdate[e.relativeRenderGroupDepth];
2264
+ t ||= this.childrenToUpdate[e.relativeRenderGroupDepth] = {
2265
+ index: 0,
2266
+ list: []
2267
+ }, t.list[t.index++] = e;
2268
+ }
2269
+ updateRenderable(e) {
2270
+ e.globalDisplayStatus < 7 || (this.instructionSet.renderPipes[e.renderPipeId].updateRenderable(e), e.didViewUpdate = !1);
2271
+ }
2272
+ onChildViewUpdate(e) {
2273
+ this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++] = e;
2274
+ }
2275
+ get isRenderable() {
2276
+ return this.root.localDisplayStatus === 7 && this.worldAlpha > 0;
2277
+ }
2278
+ addOnRender(e) {
2279
+ this._onRenderContainers.indexOf(e) === -1 && this._onRenderContainers.push(e);
2280
+ }
2281
+ removeOnRender(e) {
2282
+ let t = this._onRenderContainers.indexOf(e);
2283
+ t !== -1 && this._onRenderContainers.splice(t, 1);
2284
+ }
2285
+ runOnRender(e) {
2286
+ for (let t = 0; t < this._onRenderContainers.length; t++) this._onRenderContainers[t]._onRender(e);
2287
+ }
2288
+ destroy() {
2289
+ this.disableCacheAsTexture(), this.renderGroupParent = null, this.root = null, this.childrenRenderablesToUpdate = null, this.childrenToUpdate = null, this.renderGroupChildren = null, this._onRenderContainers = null, this.instructionSet = null;
2290
+ }
2291
+ getChildren(e = []) {
2292
+ let t = this.root.children;
2293
+ for (let n = 0; n < t.length; n++) this._getChildren(t[n], e);
2294
+ return e;
2295
+ }
2296
+ _getChildren(e, t = []) {
2297
+ if (t.push(e), e.renderGroup) return t;
2298
+ let n = e.children;
2299
+ for (let e = 0; e < n.length; e++) this._getChildren(n[e], t);
2300
+ return t;
2301
+ }
2302
+ invalidateMatrices() {
2303
+ this._matrixDirty = 7;
2304
+ }
2305
+ get inverseWorldTransform() {
2306
+ return this._matrixDirty & 1 ? (this._matrixDirty &= -2, this._inverseWorldTransform ||= new T(), this._inverseWorldTransform.copyFrom(this.worldTransform).invert()) : this._inverseWorldTransform;
2307
+ }
2308
+ get textureOffsetInverseTransform() {
2309
+ return this._matrixDirty & 2 ? (this._matrixDirty &= -3, this._textureOffsetInverseTransform ||= new T(), this._textureOffsetInverseTransform.copyFrom(this.inverseWorldTransform).translate(-this._textureBounds.x, -this._textureBounds.y)) : this._textureOffsetInverseTransform;
2310
+ }
2311
+ get inverseParentTextureTransform() {
2312
+ if (!(this._matrixDirty & 4)) return this._inverseParentTextureTransform;
2313
+ this._matrixDirty &= -5;
2314
+ let e = this._parentCacheAsTextureRenderGroup;
2315
+ return e ? (this._inverseParentTextureTransform ||= new T(), this._inverseParentTextureTransform.copyFrom(this.worldTransform).prepend(e.inverseWorldTransform).translate(-e._textureBounds.x, -e._textureBounds.y)) : this.worldTransform;
2316
+ }
2317
+ get cacheToLocalTransform() {
2318
+ return this.isCachedAsTexture ? this.textureOffsetInverseTransform : this._parentCacheAsTextureRenderGroup ? this._parentCacheAsTextureRenderGroup.textureOffsetInverseTransform : null;
2319
+ }
2320
+ };
2321
+ //#endregion
2322
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/assignWithIgnore.mjs
2323
+ function Ct(e, t, n = {}) {
2324
+ for (let r in t) !n[r] && t[r] !== void 0 && (e[r] = t[r]);
2325
+ }
2326
+ //#endregion
2327
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/Container.mjs
2328
+ var wt = new E(null), G = new E(null), Tt = new E(null, 1, 1), K = new E(null), Et = class e extends o {
2329
+ constructor(e = {}) {
2330
+ super(), this.uid = D("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new T(), this.relativeGroupTransform = new T(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new E(this, 0, 0), this._scale = Tt, this._pivot = G, this._origin = K, this._skew = wt, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didContainerChangeTick = 0, this._didViewChangeTick = 0, this._didLocalTransformChangeId = -1, this.effects = [], Ct(this, e, {
2331
+ children: !0,
2332
+ parent: !0,
2333
+ effects: !0
2334
+ }), e.children?.forEach((e) => this.addChild(e)), e.parent?.addChild(this);
2335
+ }
2336
+ static mixin(t) {
2337
+ A("8.8.0", "Container.mixin is deprecated, please use extensions.mixin instead."), a.mixin(e, t);
2338
+ }
2339
+ set _didChangeId(e) {
2340
+ this._didViewChangeTick = e >> 12 & 4095, this._didContainerChangeTick = e & 4095;
2341
+ }
2342
+ get _didChangeId() {
2343
+ return this._didContainerChangeTick & 4095 | (this._didViewChangeTick & 4095) << 12;
2344
+ }
2345
+ addChild(...e) {
2346
+ if (this.allowChildren || A(O, "addChild: Only Containers will be allowed to add children in v8.0.0"), e.length > 1) {
2347
+ for (let t = 0; t < e.length; t++) this.addChild(e[t]);
2348
+ return e[0];
2349
+ }
2350
+ let t = e[0], n = this.renderGroup || this.parentRenderGroup;
2351
+ return t.parent === this ? (this.children.splice(this.children.indexOf(t), 1), this.children.push(t), n && (n.structureDidChange = !0), t) : (t.parent && t.parent.removeChild(t), this.children.push(t), this.sortableChildren && (this.sortDirty = !0), t.parent = this, t.didChange = !0, t._updateFlags = 15, n && n.addChild(t), this.emit("childAdded", t, this, this.children.length - 1), t.emit("added", this), this._didViewChangeTick++, t._zIndex !== 0 && t.depthOfChildModified(), t);
2352
+ }
2353
+ removeChild(...e) {
2354
+ if (e.length > 1) {
2355
+ for (let t = 0; t < e.length; t++) this.removeChild(e[t]);
2356
+ return e[0];
2357
+ }
2358
+ let t = e[0], n = this.children.indexOf(t);
2359
+ return n > -1 && (this._didViewChangeTick++, this.children.splice(n, 1), this.renderGroup ? this.renderGroup.removeChild(t) : this.parentRenderGroup && this.parentRenderGroup.removeChild(t), t.parentRenderLayer && t.parentRenderLayer.detach(t), t.parent = null, this.emit("childRemoved", t, this, n), t.emit("removed", this)), t;
2360
+ }
2361
+ _onUpdate(e) {
2362
+ e && e === this._skew && this._updateSkew(), this._didContainerChangeTick++, !this.didChange && (this.didChange = !0, this.parentRenderGroup && this.parentRenderGroup.onChildUpdate(this));
2363
+ }
2364
+ set isRenderGroup(e) {
2365
+ !!this.renderGroup !== e && (e ? this.enableRenderGroup() : this.disableRenderGroup());
2366
+ }
2367
+ get isRenderGroup() {
2368
+ return !!this.renderGroup;
2369
+ }
2370
+ enableRenderGroup() {
2371
+ if (this.renderGroup) return;
2372
+ let e = this.parentRenderGroup;
2373
+ e?.removeChild(this), this.renderGroup = M.get(St, this), this.groupTransform = T.IDENTITY, e?.addChild(this), this._updateIsSimple();
2374
+ }
2375
+ disableRenderGroup() {
2376
+ if (!this.renderGroup) return;
2377
+ let e = this.parentRenderGroup;
2378
+ e?.removeChild(this), M.return(this.renderGroup), this.renderGroup = null, this.groupTransform = this.relativeGroupTransform, e?.addChild(this), this._updateIsSimple();
2379
+ }
2380
+ _updateIsSimple() {
2381
+ this.isSimple = !this.renderGroup && this.effects.length === 0;
2382
+ }
2383
+ get worldTransform() {
2384
+ return this._worldTransform ||= new T(), this.renderGroup ? this._worldTransform.copyFrom(this.renderGroup.worldTransform) : this.parentRenderGroup && this._worldTransform.appendFrom(this.relativeGroupTransform, this.parentRenderGroup.worldTransform), this._worldTransform;
2385
+ }
2386
+ get x() {
2387
+ return this._position.x;
2388
+ }
2389
+ set x(e) {
2390
+ this._position.x = e;
2391
+ }
2392
+ get y() {
2393
+ return this._position.y;
2394
+ }
2395
+ set y(e) {
2396
+ this._position.y = e;
2397
+ }
2398
+ get position() {
2399
+ return this._position;
2400
+ }
2401
+ set position(e) {
2402
+ this._position.copyFrom(e);
2403
+ }
2404
+ get rotation() {
2405
+ return this._rotation;
2406
+ }
2407
+ set rotation(e) {
2408
+ this._rotation !== e && (this._rotation = e, this._onUpdate(this._skew));
2409
+ }
2410
+ get angle() {
2411
+ return this.rotation * _e;
2412
+ }
2413
+ set angle(e) {
2414
+ this.rotation = e * ve;
2415
+ }
2416
+ get pivot() {
2417
+ return this._pivot === G && (this._pivot = new E(this, 0, 0)), this._pivot;
2418
+ }
2419
+ set pivot(e) {
2420
+ this._pivot === G && (this._pivot = new E(this, 0, 0), this._origin !== K && j("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")), typeof e == "number" ? this._pivot.set(e) : this._pivot.copyFrom(e);
2421
+ }
2422
+ get skew() {
2423
+ return this._skew === wt && (this._skew = new E(this, 0, 0)), this._skew;
2424
+ }
2425
+ set skew(e) {
2426
+ this._skew === wt && (this._skew = new E(this, 0, 0)), this._skew.copyFrom(e);
2427
+ }
2428
+ get scale() {
2429
+ return this._scale === Tt && (this._scale = new E(this, 1, 1)), this._scale;
2430
+ }
2431
+ set scale(e) {
2432
+ this._scale === Tt && (this._scale = new E(this, 0, 0)), typeof e == "string" && (e = parseFloat(e)), typeof e == "number" ? this._scale.set(e) : this._scale.copyFrom(e);
2433
+ }
2434
+ get origin() {
2435
+ return this._origin === K && (this._origin = new E(this, 0, 0)), this._origin;
2436
+ }
2437
+ set origin(e) {
2438
+ this._origin === K && (this._origin = new E(this, 0, 0), this._pivot !== G && j("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")), typeof e == "number" ? this._origin.set(e) : this._origin.copyFrom(e);
2439
+ }
2440
+ get width() {
2441
+ return Math.abs(this.scale.x * this.getLocalBounds().width);
2442
+ }
2443
+ set width(e) {
2444
+ let t = this.getLocalBounds().width;
2445
+ this._setWidth(e, t);
2446
+ }
2447
+ get height() {
2448
+ return Math.abs(this.scale.y * this.getLocalBounds().height);
2449
+ }
2450
+ set height(e) {
2451
+ let t = this.getLocalBounds().height;
2452
+ this._setHeight(e, t);
2453
+ }
2454
+ getSize(e) {
2455
+ e ||= {};
2456
+ let t = this.getLocalBounds();
2457
+ return e.width = Math.abs(this.scale.x * t.width), e.height = Math.abs(this.scale.y * t.height), e;
2458
+ }
2459
+ setSize(e, t) {
2460
+ let n = this.getLocalBounds();
2461
+ typeof e == "object" ? (t = e.height ?? e.width, e = e.width) : t ??= e, e !== void 0 && this._setWidth(e, n.width), t !== void 0 && this._setHeight(t, n.height);
2462
+ }
2463
+ _updateSkew() {
2464
+ let e = this._rotation, t = this._skew;
2465
+ this._cx = Math.cos(e + t._y), this._sx = Math.sin(e + t._y), this._cy = -Math.sin(e - t._x), this._sy = Math.cos(e - t._x);
2466
+ }
2467
+ updateTransform(e) {
2468
+ return this.position.set(typeof e.x == "number" ? e.x : this.position.x, typeof e.y == "number" ? e.y : this.position.y), this.scale.set(typeof e.scaleX == "number" ? e.scaleX : this.scale.x, typeof e.scaleY == "number" ? e.scaleY : this.scale.y), this.rotation = typeof e.rotation == "number" ? e.rotation : this.rotation, this.skew.set(typeof e.skewX == "number" ? e.skewX : this.skew.x, typeof e.skewY == "number" ? e.skewY : this.skew.y), this.pivot.set(typeof e.pivotX == "number" ? e.pivotX : this.pivot.x, typeof e.pivotY == "number" ? e.pivotY : this.pivot.y), this.origin.set(typeof e.originX == "number" ? e.originX : this.origin.x, typeof e.originY == "number" ? e.originY : this.origin.y), this;
2469
+ }
2470
+ setFromMatrix(e) {
2471
+ e.decompose(this);
2472
+ }
2473
+ updateLocalTransform() {
2474
+ let e = this._didContainerChangeTick;
2475
+ if (this._didLocalTransformChangeId === e) return;
2476
+ this._didLocalTransformChangeId = e;
2477
+ let t = this.localTransform, n = this._scale, r = this._pivot, i = this._origin, a = this._position, o = n._x, s = n._y, c = r._x, l = r._y, u = -i._x, d = -i._y;
2478
+ t.a = this._cx * o, t.b = this._sx * o, t.c = this._cy * s, t.d = this._sy * s, t.tx = a._x - (c * t.a + l * t.c) + (u * t.a + d * t.c) - u, t.ty = a._y - (c * t.b + l * t.d) + (u * t.b + d * t.d) - d;
2479
+ }
2480
+ set alpha(e) {
2481
+ e !== this.localAlpha && (this.localAlpha = e, this._updateFlags |= 1, this._onUpdate());
2482
+ }
2483
+ get alpha() {
2484
+ return this.localAlpha;
2485
+ }
2486
+ set tint(e) {
2487
+ let t = me.shared.setValue(e ?? 16777215).toBgrNumber();
2488
+ t !== this.localColor && (this.localColor = t, this._updateFlags |= 1, this._onUpdate());
2489
+ }
2490
+ get tint() {
2491
+ return I(this.localColor);
2492
+ }
2493
+ set blendMode(e) {
2494
+ this.localBlendMode !== e && (this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._updateFlags |= 2, this.localBlendMode = e, this._onUpdate());
2495
+ }
2496
+ get blendMode() {
2497
+ return this.localBlendMode;
2498
+ }
2499
+ get visible() {
2500
+ return !!(this.localDisplayStatus & 2);
2501
+ }
2502
+ set visible(e) {
2503
+ let t = e ? 2 : 0;
2504
+ (this.localDisplayStatus & 2) !== t && (this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._updateFlags |= 4, this.localDisplayStatus ^= 2, this._onUpdate(), this.emit("visibleChanged", e));
2505
+ }
2506
+ get culled() {
2507
+ return !(this.localDisplayStatus & 4);
2508
+ }
2509
+ set culled(e) {
2510
+ let t = e ? 0 : 4;
2511
+ (this.localDisplayStatus & 4) !== t && (this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._updateFlags |= 4, this.localDisplayStatus ^= 4, this._onUpdate());
2512
+ }
2513
+ get renderable() {
2514
+ return !!(this.localDisplayStatus & 1);
2515
+ }
2516
+ set renderable(e) {
2517
+ let t = +!!e;
2518
+ (this.localDisplayStatus & 1) !== t && (this._updateFlags |= 4, this.localDisplayStatus ^= 1, this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._onUpdate());
2519
+ }
2520
+ get isRenderable() {
2521
+ return this.localDisplayStatus === 7 && this.groupAlpha > 0;
2522
+ }
2523
+ destroy(e = !1) {
2524
+ if (this.destroyed) return;
2525
+ this.destroyed = !0;
2526
+ let t;
2527
+ if (this.children.length && (t = this.removeChildren(0, this.children.length)), this.removeFromParent(), this.parent = null, this._maskEffect = null, this._filterEffect = null, this.effects = null, this._position = null, this._scale = null, this._pivot = null, this._origin = null, this._skew = null, this.emit("destroyed", this), this.removeAllListeners(), (typeof e == "boolean" ? e : e?.children) && t) for (let n = 0; n < t.length; ++n) t[n].destroy(e);
2528
+ this.renderGroup?.destroy(), this.renderGroup = null;
2529
+ }
2530
+ };
2531
+ a.mixin(Et, je, Ve, rt, et, $e, Fe, Ie, tt, he, ke, Je, Me);
2532
+ //#endregion
2533
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/ticker/const.mjs
2534
+ var q = /* @__PURE__ */ ((e) => (e[e.INTERACTION = 50] = "INTERACTION", e[e.HIGH = 25] = "HIGH", e[e.NORMAL = 0] = "NORMAL", e[e.LOW = -25] = "LOW", e[e.UTILITY = -50] = "UTILITY", e))(q || {}), Dt = class {
2535
+ constructor(e, t = null, n = 0, r = !1) {
2536
+ this.next = null, this.previous = null, this._destroyed = !1, this._fn = e, this._context = t, this.priority = n, this._once = r;
2537
+ }
2538
+ match(e, t = null) {
2539
+ return this._fn === e && this._context === t;
2540
+ }
2541
+ emit(e) {
2542
+ this._fn && (this._context ? this._fn.call(this._context, e) : this._fn(e));
2543
+ let t = this.next;
2544
+ return this._once && this.destroy(!0), this._destroyed && (this.next = null), t;
2545
+ }
2546
+ connect(e) {
2547
+ this.previous = e, e.next && (e.next.previous = this), this.next = e.next, e.next = this;
2548
+ }
2549
+ destroy(e = !1) {
2550
+ this._destroyed = !0, this._fn = null, this._context = null, this.previous && (this.previous.next = this.next), this.next && (this.next.previous = this.previous);
2551
+ let t = this.next;
2552
+ return this.next = e ? null : t, this.previous = null, t;
2553
+ }
2554
+ }, Ot = class e {
2555
+ constructor() {
2556
+ this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new Dt(null, null, Infinity), this.deltaMS = 1 / e.targetFPMS, this.elapsedMS = 1 / e.targetFPMS, this._tick = (e) => {
2557
+ this._requestId = null, this.started && (this.update(e), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
2558
+ };
2559
+ }
2560
+ _requestIfNeeded() {
2561
+ this._requestId === null && this._head.next && (this.lastTime = performance.now(), this._lastFrame = this.lastTime, this._requestId = requestAnimationFrame(this._tick));
2562
+ }
2563
+ _cancelIfNeeded() {
2564
+ this._requestId !== null && (cancelAnimationFrame(this._requestId), this._requestId = null);
2565
+ }
2566
+ _startIfPossible() {
2567
+ this.started ? this._requestIfNeeded() : this.autoStart && this.start();
2568
+ }
2569
+ add(e, t, n = q.NORMAL) {
2570
+ return this._addListener(new Dt(e, t, n));
2571
+ }
2572
+ addOnce(e, t, n = q.NORMAL) {
2573
+ return this._addListener(new Dt(e, t, n, !0));
2574
+ }
2575
+ _addListener(e) {
2576
+ let t = this._head.next, n = this._head;
2577
+ if (!t) e.connect(n);
2578
+ else {
2579
+ for (; t;) {
2580
+ if (e.priority > t.priority) {
2581
+ e.connect(n);
2582
+ break;
2583
+ }
2584
+ n = t, t = t.next;
2585
+ }
2586
+ e.previous || e.connect(n);
2587
+ }
2588
+ return this._startIfPossible(), this;
2589
+ }
2590
+ remove(e, t) {
2591
+ let n = this._head.next;
2592
+ for (; n;) n = n.match(e, t) ? n.destroy() : n.next;
2593
+ return this._head.next || this._cancelIfNeeded(), this;
2594
+ }
2595
+ get count() {
2596
+ if (!this._head) return 0;
2597
+ let e = 0, t = this._head;
2598
+ for (; t = t.next;) e++;
2599
+ return e;
2600
+ }
2601
+ start() {
2602
+ this.started || (this.started = !0, this._requestIfNeeded());
2603
+ }
2604
+ stop() {
2605
+ this.started && (this.started = !1, this._cancelIfNeeded());
2606
+ }
2607
+ destroy() {
2608
+ if (!this._protected) {
2609
+ this.stop();
2610
+ let e = this._head.next;
2611
+ for (; e;) e = e.destroy(!0);
2612
+ this._head.destroy(), this._head = null;
2613
+ }
2614
+ }
2615
+ update(t = performance.now()) {
2616
+ let n;
2617
+ if (t > this.lastTime) {
2618
+ if (n = this.elapsedMS = t - this.lastTime, n > this._maxElapsedMS && (n = this._maxElapsedMS), n *= this.speed, this._minElapsedMS) {
2619
+ let e = t - this._lastFrame | 0;
2620
+ if (e < this._minElapsedMS) return;
2621
+ this._lastFrame = t - e % this._minElapsedMS;
2622
+ }
2623
+ this.deltaMS = n, this.deltaTime = this.deltaMS * e.targetFPMS;
2624
+ let r = this._head, i = r.next;
2625
+ for (; i;) i = i.emit(this);
2626
+ r.next || this._cancelIfNeeded();
2627
+ } else this.deltaTime = this.deltaMS = this.elapsedMS = 0;
2628
+ this.lastTime = t;
2629
+ }
2630
+ get FPS() {
2631
+ return 1e3 / this.elapsedMS;
2632
+ }
2633
+ get minFPS() {
2634
+ return 1e3 / this._maxElapsedMS;
2635
+ }
2636
+ set minFPS(t) {
2637
+ let n = Math.min(Math.max(0, t) / 1e3, e.targetFPMS);
2638
+ this._maxElapsedMS = 1 / n, this._minElapsedMS && t > this.maxFPS && (this.maxFPS = t);
2639
+ }
2640
+ get maxFPS() {
2641
+ return this._minElapsedMS ? Math.round(1e3 / this._minElapsedMS) : 0;
2642
+ }
2643
+ set maxFPS(e) {
2644
+ e === 0 ? this._minElapsedMS = 0 : (e < this.minFPS && (this.minFPS = e), this._minElapsedMS = 1 / (e / 1e3));
2645
+ }
2646
+ static get shared() {
2647
+ if (!e._shared) {
2648
+ let t = e._shared = new e();
2649
+ t.autoStart = !0, t._protected = !0;
2650
+ }
2651
+ return e._shared;
2652
+ }
2653
+ static get system() {
2654
+ if (!e._system) {
2655
+ let t = e._system = new e();
2656
+ t.autoStart = !0, t._protected = !0;
2657
+ }
2658
+ return e._system;
2659
+ }
2660
+ };
2661
+ Ot.targetFPMS = .06;
2662
+ var kt = Ot, At = class extends Et {
2663
+ constructor(e) {
2664
+ super(e), this.canBundle = !0, this.allowChildren = !1, this._roundPixels = 0, this._lastUsed = -1, this._gpuData = /* @__PURE__ */ Object.create(null), this.autoGarbageCollect = !0, this._gcLastUsed = -1, this._bounds = new N(0, 1, 0, 0), this._boundsDirty = !0, this.autoGarbageCollect = e.autoGarbageCollect ?? !0;
2665
+ }
2666
+ get bounds() {
2667
+ return this._boundsDirty ? (this.updateBounds(), this._boundsDirty = !1, this._bounds) : this._bounds;
2668
+ }
2669
+ get roundPixels() {
2670
+ return !!this._roundPixels;
2671
+ }
2672
+ set roundPixels(e) {
2673
+ this._roundPixels = +!!e;
2674
+ }
2675
+ containsPoint(e) {
2676
+ let t = this.bounds, { x: n, y: r } = e;
2677
+ return n >= t.minX && n <= t.maxX && r >= t.minY && r <= t.maxY;
2678
+ }
2679
+ onViewUpdate() {
2680
+ if (this._didViewChangeTick++, this._boundsDirty = !0, this.didViewUpdate) return;
2681
+ this.didViewUpdate = !0;
2682
+ let e = this.renderGroup || this.parentRenderGroup;
2683
+ e && e.onChildViewUpdate(this);
2684
+ }
2685
+ unload() {
2686
+ this.emit("unload", this);
2687
+ for (let e in this._gpuData) this._gpuData[e]?.destroy();
2688
+ this._gpuData = /* @__PURE__ */ Object.create(null), this.onViewUpdate();
2689
+ }
2690
+ destroy(e) {
2691
+ this.unload(), super.destroy(e), this._bounds = null;
2692
+ }
2693
+ collectRenderablesSimple(e, t, n) {
2694
+ let { renderPipes: r } = t;
2695
+ r.blendMode.pushBlendMode(this, this.groupBlendMode, e);
2696
+ let i = r[this.renderPipeId];
2697
+ i?.addRenderable && i.addRenderable(this, e), this.didViewUpdate = !1;
2698
+ let a = this.children, o = a.length;
2699
+ for (let r = 0; r < o; r++) a[r].collectRenderables(e, t, n);
2700
+ r.blendMode.popBlendMode(e);
2701
+ }
2702
+ }, jt = {
2703
+ createCanvas: (e, t) => {
2704
+ let n = document.createElement("canvas");
2705
+ return n.width = e, n.height = t, n;
2706
+ },
2707
+ createImage: () => new Image(),
2708
+ getCanvasRenderingContext2D: () => CanvasRenderingContext2D,
2709
+ getWebGLRenderingContext: () => WebGLRenderingContext,
2710
+ getNavigator: () => navigator,
2711
+ getBaseUrl: () => document.baseURI ?? window.location.href,
2712
+ getFontFaceSet: () => document.fonts,
2713
+ fetch: (e, t) => fetch(e, t),
2714
+ parseXML: (e) => new DOMParser().parseFromString(e, "text/xml")
2715
+ }, Mt = {
2716
+ get() {
2717
+ return jt;
2718
+ },
2719
+ set(e) {
2720
+ jt = e;
2721
+ }
2722
+ };
2723
+ //#endregion
2724
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/updateQuadBounds.mjs
2725
+ function Nt(e, t, n) {
2726
+ let { width: r, height: i } = n.orig, a = n.trim;
2727
+ if (a) {
2728
+ let n = a.width, o = a.height;
2729
+ e.minX = a.x - t._x * r, e.maxX = e.minX + n, e.minY = a.y - t._y * i, e.maxY = e.minY + o;
2730
+ } else e.minX = -t._x * r, e.maxX = e.minX + r, e.minY = -t._y * i, e.maxY = e.minY + i;
2731
+ }
2732
+ //#endregion
2733
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/sprite/Sprite.mjs
2734
+ var Pt = class e extends At {
2735
+ constructor(e = W.EMPTY) {
2736
+ e instanceof W && (e = { texture: e });
2737
+ let { texture: t = W.EMPTY, anchor: n, roundPixels: r, width: i, height: a, ...o } = e;
2738
+ super({
2739
+ label: "Sprite",
2740
+ ...o
2741
+ }), this.renderPipeId = "sprite", this.batched = !0, this._visualBounds = {
2742
+ minX: 0,
2743
+ maxX: 1,
2744
+ minY: 0,
2745
+ maxY: 0
2746
+ }, this._anchor = new E({ _onUpdate: () => {
2747
+ this.onViewUpdate();
2748
+ } }), n ? this.anchor = n : t.defaultAnchor && (this.anchor = t.defaultAnchor), this.texture = t, this.allowChildren = !1, this.roundPixels = r ?? !1, i !== void 0 && (this.width = i), a !== void 0 && (this.height = a);
2749
+ }
2750
+ static from(t, n = !1) {
2751
+ return t instanceof W ? new e(t) : new e(W.from(t, n));
2752
+ }
2753
+ set texture(e) {
2754
+ e ||= W.EMPTY;
2755
+ let t = this._texture;
2756
+ t !== e && (t && t.dynamic && t.off("update", this.onViewUpdate, this), e.dynamic && e.on("update", this.onViewUpdate, this), this._texture = e, this._width && this._setWidth(this._width, this._texture.orig.width), this._height && this._setHeight(this._height, this._texture.orig.height), this.onViewUpdate());
2757
+ }
2758
+ get texture() {
2759
+ return this._texture;
2760
+ }
2761
+ get visualBounds() {
2762
+ return Nt(this._visualBounds, this._anchor, this._texture), this._visualBounds;
2763
+ }
2764
+ get sourceBounds() {
2765
+ return A("8.6.1", "Sprite.sourceBounds is deprecated, use visualBounds instead."), this.visualBounds;
2766
+ }
2767
+ updateBounds() {
2768
+ let e = this._anchor, t = this._texture, n = this._bounds, { width: r, height: i } = t.orig;
2769
+ n.minX = -e._x * r, n.maxX = n.minX + r, n.minY = -e._y * i, n.maxY = n.minY + i;
2770
+ }
2771
+ destroy(e = !1) {
2772
+ if (super.destroy(e), typeof e == "boolean" ? e : e?.texture) {
2773
+ let t = typeof e == "boolean" ? e : e?.textureSource;
2774
+ this._texture.destroy(t);
2775
+ }
2776
+ this._texture = null, this._visualBounds = null, this._bounds = null, this._anchor = null;
2777
+ }
2778
+ get anchor() {
2779
+ return this._anchor;
2780
+ }
2781
+ set anchor(e) {
2782
+ typeof e == "number" ? this._anchor.set(e) : this._anchor.copyFrom(e);
2783
+ }
2784
+ get width() {
2785
+ return Math.abs(this.scale.x) * this._texture.orig.width;
2786
+ }
2787
+ set width(e) {
2788
+ this._setWidth(e, this._texture.orig.width), this._width = e;
2789
+ }
2790
+ get height() {
2791
+ return Math.abs(this.scale.y) * this._texture.orig.height;
2792
+ }
2793
+ set height(e) {
2794
+ this._setHeight(e, this._texture.orig.height), this._height = e;
2795
+ }
2796
+ getSize(e) {
2797
+ return e ||= {}, e.width = Math.abs(this.scale.x) * this._texture.orig.width, e.height = Math.abs(this.scale.y) * this._texture.orig.height, e;
2798
+ }
2799
+ setSize(e, t) {
2800
+ typeof e == "object" ? (t = e.height ?? e.width, e = e.width) : t ??= e, e !== void 0 && this._setWidth(e, this._texture.orig.width), t !== void 0 && this._setHeight(t, this._texture.orig.height);
2801
+ }
2802
+ }, Ft = class extends L {
2803
+ constructor(e) {
2804
+ e.resource ||= Mt.get().createCanvas(), e.width || (e.width = e.resource.width, e.autoDensity || (e.width /= e.resolution)), e.height || (e.height = e.resource.height, e.autoDensity || (e.height /= e.resolution)), super(e), this.uploadMethodId = "image", this.autoDensity = e.autoDensity, this.resizeCanvas(), this.transparent = !!e.transparent;
2805
+ }
2806
+ resizeCanvas() {
2807
+ this.autoDensity && "style" in this.resource && (this.resource.style.width = `${this.width}px`, this.resource.style.height = `${this.height}px`), (this.resource.width !== this.pixelWidth || this.resource.height !== this.pixelHeight) && (this.resource.width = this.pixelWidth, this.resource.height = this.pixelHeight);
2808
+ }
2809
+ resize(e = this.width, t = this.height, n = this._resolution) {
2810
+ let r = super.resize(e, t, n);
2811
+ return r && this.resizeCanvas(), r;
2812
+ }
2813
+ static test(e) {
2814
+ return globalThis.HTMLCanvasElement && e instanceof HTMLCanvasElement || globalThis.OffscreenCanvas && e instanceof OffscreenCanvas;
2815
+ }
2816
+ get context2D() {
2817
+ return this._context2D ||= this.resource.getContext("2d");
2818
+ }
2819
+ };
2820
+ Ft.extension = n.TextureSource;
2821
+ //#endregion
2822
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/utils/createIdFromString.mjs
2823
+ var It = /* @__PURE__ */ Object.create(null), Lt = /* @__PURE__ */ Object.create(null);
2824
+ function J(e, t) {
2825
+ let n = Lt[e];
2826
+ return n === void 0 && (It[t] === void 0 && (It[t] = 1), Lt[e] = n = It[t]++), n;
2827
+ }
2828
+ //#endregion
2829
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getTestContext.mjs
2830
+ var Y;
2831
+ function Rt() {
2832
+ return (!Y || Y?.isContextLost()) && (Y = Mt.get().createCanvas().getContext("webgl", {})), Y;
2833
+ }
2834
+ //#endregion
2835
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getMaxFragmentPrecision.mjs
2836
+ var zt;
2837
+ function Bt() {
2838
+ if (!zt) {
2839
+ zt = "mediump";
2840
+ let e = Rt();
2841
+ e && e.getShaderPrecisionFormat && (zt = e.getShaderPrecisionFormat(e.FRAGMENT_SHADER, e.HIGH_FLOAT).precision ? "highp" : "mediump");
2842
+ }
2843
+ return zt;
2844
+ }
2845
+ //#endregion
2846
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/addProgramDefines.mjs
2847
+ function Vt(e, t, n) {
2848
+ return t ? e : n ? (e = e.replace("out vec4 finalColor;", ""), `
2849
+
2850
+ #ifdef GL_ES // This checks if it is WebGL1
2851
+ #define in varying
2852
+ #define finalColor gl_FragColor
2853
+ #define texture texture2D
2854
+ #endif
2855
+ ${e}
2856
+ `) : `
2857
+
2858
+ #ifdef GL_ES // This checks if it is WebGL1
2859
+ #define in attribute
2860
+ #define out varying
2861
+ #endif
2862
+ ${e}
2863
+ `;
2864
+ }
2865
+ //#endregion
2866
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/ensurePrecision.mjs
2867
+ function Ht(e, t, n) {
2868
+ let r = n ? t.maxSupportedFragmentPrecision : t.maxSupportedVertexPrecision;
2869
+ if (e.substring(0, 9) !== "precision") {
2870
+ let i = n ? t.requestedFragmentPrecision : t.requestedVertexPrecision;
2871
+ return i === "highp" && r !== "highp" && (i = "mediump"), `precision ${i} float;
2872
+ ${e}`;
2873
+ } else if (r !== "highp" && e.substring(0, 15) === "precision highp") return e.replace("precision highp", "precision mediump");
2874
+ return e;
2875
+ }
2876
+ //#endregion
2877
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/insertVersion.mjs
2878
+ function Ut(e, t) {
2879
+ return t ? `#version 300 es
2880
+ ${e}` : e;
2881
+ }
2882
+ //#endregion
2883
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/setProgramName.mjs
2884
+ var Wt = {}, Gt = {};
2885
+ function Kt(e, { name: t = "pixi-program" }, n = !0) {
2886
+ t = t.replace(/\s+/g, "-"), t += n ? "-fragment" : "-vertex";
2887
+ let r = n ? Wt : Gt;
2888
+ return r[t] ? (r[t]++, t += `-${r[t]}`) : r[t] = 1, e.indexOf("#define SHADER_NAME") === -1 ? `${`#define SHADER_NAME ${t}`}
2889
+ ${e}` : e;
2890
+ }
2891
+ //#endregion
2892
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/stripVersion.mjs
2893
+ function qt(e, t) {
2894
+ return t ? e.replace("#version 300 es", "") : e;
2895
+ }
2896
+ //#endregion
2897
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlProgram.mjs
2898
+ var Jt = {
2899
+ stripVersion: qt,
2900
+ ensurePrecision: Ht,
2901
+ addProgramDefines: Vt,
2902
+ setProgramName: Kt,
2903
+ insertVersion: Ut
2904
+ }, X = /* @__PURE__ */ Object.create(null), Yt = class e {
2905
+ constructor(t) {
2906
+ t = {
2907
+ ...e.defaultOptions,
2908
+ ...t
2909
+ };
2910
+ let n = t.fragment.indexOf("#version 300 es") !== -1, r = {
2911
+ stripVersion: n,
2912
+ ensurePrecision: {
2913
+ requestedFragmentPrecision: t.preferredFragmentPrecision,
2914
+ requestedVertexPrecision: t.preferredVertexPrecision,
2915
+ maxSupportedVertexPrecision: "highp",
2916
+ maxSupportedFragmentPrecision: Bt()
2917
+ },
2918
+ setProgramName: { name: t.name },
2919
+ addProgramDefines: n,
2920
+ insertVersion: n
2921
+ }, i = t.fragment, a = t.vertex;
2922
+ Object.keys(Jt).forEach((e) => {
2923
+ let t = r[e];
2924
+ i = Jt[e](i, t, !0), a = Jt[e](a, t, !1);
2925
+ }), this.fragment = i, this.vertex = a, this.transformFeedbackVaryings = t.transformFeedbackVaryings, this._key = J(`${this.vertex}:${this.fragment}`, "gl-program");
2926
+ }
2927
+ destroy() {
2928
+ this.fragment = null, this.vertex = null, this._attributeData = null, this._uniformData = null, this._uniformBlockData = null, this.transformFeedbackVaryings = null, X[this._cacheKey] = null;
2929
+ }
2930
+ static from(t) {
2931
+ let n = `${t.vertex}:${t.fragment}`;
2932
+ return X[n] || (X[n] = new e(t), X[n]._cacheKey = n), X[n];
2933
+ }
2934
+ };
2935
+ Yt.defaultOptions = {
2936
+ preferredVertexPrecision: "highp",
2937
+ preferredFragmentPrecision: "mediump"
2938
+ };
2939
+ var Xt = Yt, Zt = {
2940
+ uint8x2: {
2941
+ size: 2,
2942
+ stride: 2,
2943
+ normalised: !1
2944
+ },
2945
+ uint8x4: {
2946
+ size: 4,
2947
+ stride: 4,
2948
+ normalised: !1
2949
+ },
2950
+ sint8x2: {
2951
+ size: 2,
2952
+ stride: 2,
2953
+ normalised: !1
2954
+ },
2955
+ sint8x4: {
2956
+ size: 4,
2957
+ stride: 4,
2958
+ normalised: !1
2959
+ },
2960
+ unorm8x2: {
2961
+ size: 2,
2962
+ stride: 2,
2963
+ normalised: !0
2964
+ },
2965
+ unorm8x4: {
2966
+ size: 4,
2967
+ stride: 4,
2968
+ normalised: !0
2969
+ },
2970
+ snorm8x2: {
2971
+ size: 2,
2972
+ stride: 2,
2973
+ normalised: !0
2974
+ },
2975
+ snorm8x4: {
2976
+ size: 4,
2977
+ stride: 4,
2978
+ normalised: !0
2979
+ },
2980
+ uint16x2: {
2981
+ size: 2,
2982
+ stride: 4,
2983
+ normalised: !1
2984
+ },
2985
+ uint16x4: {
2986
+ size: 4,
2987
+ stride: 8,
2988
+ normalised: !1
2989
+ },
2990
+ sint16x2: {
2991
+ size: 2,
2992
+ stride: 4,
2993
+ normalised: !1
2994
+ },
2995
+ sint16x4: {
2996
+ size: 4,
2997
+ stride: 8,
2998
+ normalised: !1
2999
+ },
3000
+ unorm16x2: {
3001
+ size: 2,
3002
+ stride: 4,
3003
+ normalised: !0
3004
+ },
3005
+ unorm16x4: {
3006
+ size: 4,
3007
+ stride: 8,
3008
+ normalised: !0
3009
+ },
3010
+ snorm16x2: {
3011
+ size: 2,
3012
+ stride: 4,
3013
+ normalised: !0
3014
+ },
3015
+ snorm16x4: {
3016
+ size: 4,
3017
+ stride: 8,
3018
+ normalised: !0
3019
+ },
3020
+ float16x2: {
3021
+ size: 2,
3022
+ stride: 4,
3023
+ normalised: !1
3024
+ },
3025
+ float16x4: {
3026
+ size: 4,
3027
+ stride: 8,
3028
+ normalised: !1
3029
+ },
3030
+ float32: {
3031
+ size: 1,
3032
+ stride: 4,
3033
+ normalised: !1
3034
+ },
3035
+ float32x2: {
3036
+ size: 2,
3037
+ stride: 8,
3038
+ normalised: !1
3039
+ },
3040
+ float32x3: {
3041
+ size: 3,
3042
+ stride: 12,
3043
+ normalised: !1
3044
+ },
3045
+ float32x4: {
3046
+ size: 4,
3047
+ stride: 16,
3048
+ normalised: !1
3049
+ },
3050
+ uint32: {
3051
+ size: 1,
3052
+ stride: 4,
3053
+ normalised: !1
3054
+ },
3055
+ uint32x2: {
3056
+ size: 2,
3057
+ stride: 8,
3058
+ normalised: !1
3059
+ },
3060
+ uint32x3: {
3061
+ size: 3,
3062
+ stride: 12,
3063
+ normalised: !1
3064
+ },
3065
+ uint32x4: {
3066
+ size: 4,
3067
+ stride: 16,
3068
+ normalised: !1
3069
+ },
3070
+ sint32: {
3071
+ size: 1,
3072
+ stride: 4,
3073
+ normalised: !1
3074
+ },
3075
+ sint32x2: {
3076
+ size: 2,
3077
+ stride: 8,
3078
+ normalised: !1
3079
+ },
3080
+ sint32x3: {
3081
+ size: 3,
3082
+ stride: 12,
3083
+ normalised: !1
3084
+ },
3085
+ sint32x4: {
3086
+ size: 4,
3087
+ stride: 16,
3088
+ normalised: !1
3089
+ }
3090
+ };
3091
+ function Qt(e) {
3092
+ return Zt[e] ?? Zt.float32;
3093
+ }
3094
+ //#endregion
3095
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractAttributesFromGpuProgram.mjs
3096
+ var $t = {
3097
+ f32: "float32",
3098
+ "vec2<f32>": "float32x2",
3099
+ "vec3<f32>": "float32x3",
3100
+ "vec4<f32>": "float32x4",
3101
+ vec2f: "float32x2",
3102
+ vec3f: "float32x3",
3103
+ vec4f: "float32x4",
3104
+ i32: "sint32",
3105
+ "vec2<i32>": "sint32x2",
3106
+ "vec3<i32>": "sint32x3",
3107
+ "vec4<i32>": "sint32x4",
3108
+ vec2i: "sint32x2",
3109
+ vec3i: "sint32x3",
3110
+ vec4i: "sint32x4",
3111
+ u32: "uint32",
3112
+ "vec2<u32>": "uint32x2",
3113
+ "vec3<u32>": "uint32x3",
3114
+ "vec4<u32>": "uint32x4",
3115
+ vec2u: "uint32x2",
3116
+ vec3u: "uint32x3",
3117
+ vec4u: "uint32x4",
3118
+ bool: "uint32",
3119
+ "vec2<bool>": "uint32x2",
3120
+ "vec3<bool>": "uint32x3",
3121
+ "vec4<bool>": "uint32x4"
3122
+ }, en = /@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|\)|$)/g;
3123
+ function tn(e, t) {
3124
+ let n;
3125
+ for (; (n = en.exec(e)) !== null;) {
3126
+ let e = $t[n[3]] ?? "float32";
3127
+ t[n[2]] = {
3128
+ location: parseInt(n[1], 10),
3129
+ format: e,
3130
+ stride: Qt(e).stride,
3131
+ offset: 0,
3132
+ instance: !1,
3133
+ start: 0
3134
+ };
3135
+ }
3136
+ en.lastIndex = 0;
3137
+ }
3138
+ function nn(e) {
3139
+ return e.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
3140
+ }
3141
+ function rn({ source: e, entryPoint: t }) {
3142
+ let n = {}, r = nn(e), i = r.indexOf(`fn ${t}(`);
3143
+ if (i === -1) return n;
3144
+ let a = r.indexOf("->", i);
3145
+ if (a === -1) return n;
3146
+ let o = r.substring(i, a);
3147
+ if (tn(o, n), Object.keys(n).length === 0) {
3148
+ let e = o.match(/\(\s*\w+\s*:\s*(\w+)/);
3149
+ if (e) {
3150
+ let t = e[1], i = RegExp(`struct\\s+${t}\\s*\\{([^}]+)\\}`, "s"), a = r.match(i);
3151
+ a && tn(a[1], n);
3152
+ }
3153
+ }
3154
+ return n;
3155
+ }
3156
+ //#endregion
3157
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractStructAndGroups.mjs
3158
+ function an(e) {
3159
+ let t = /(^|[^/])@(group|binding)\(\d+\)[^;]+;/g, n = /@group\((\d+)\)/, r = /@binding\((\d+)\)/, i = /var(<[^>]+>)? (\w+)/, a = /:\s*([\w<>]+)/, o = /struct\s+(\w+)\s*{([^}]+)}/g, s = /(\w+)\s*:\s*([\w\<\>]+)/g, c = /struct\s+(\w+)/, l = e.match(t)?.map((e) => {
3160
+ let t = e.match(i), o = t?.[1] ?? "", s;
3161
+ return o === "<uniform>" ? s = "uniform" : o.startsWith("<storage") && (s = "storage"), {
3162
+ group: parseInt(e.match(n)[1], 10),
3163
+ binding: parseInt(e.match(r)[1], 10),
3164
+ name: t[2],
3165
+ accessMode: s,
3166
+ type: e.match(a)[1]
3167
+ };
3168
+ });
3169
+ return l ? {
3170
+ groups: l,
3171
+ structs: e.match(o)?.map((e) => {
3172
+ let t = e.match(c)[1], n = e.match(s).reduce((e, t) => {
3173
+ let [n, r] = t.split(":");
3174
+ return e[n.trim()] = r.trim(), e;
3175
+ }, {});
3176
+ return n ? {
3177
+ name: t,
3178
+ members: n
3179
+ } : null;
3180
+ }).filter(({ name: e }) => l.some((t) => t.type === e || t.type.includes(`<${e}>`))) ?? []
3181
+ } : {
3182
+ groups: [],
3183
+ structs: []
3184
+ };
3185
+ }
3186
+ //#endregion
3187
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/const.mjs
3188
+ var Z = /* @__PURE__ */ ((e) => (e[e.VERTEX = 1] = "VERTEX", e[e.FRAGMENT = 2] = "FRAGMENT", e[e.COMPUTE = 4] = "COMPUTE", e))(Z || {});
3189
+ //#endregion
3190
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateGpuLayoutGroups.mjs
3191
+ function on({ groups: e }) {
3192
+ let t = [];
3193
+ for (let n = 0; n < e.length; n++) {
3194
+ let r = e[n];
3195
+ t[r.group] || (t[r.group] = []), r.accessMode === "uniform" ? t[r.group].push({
3196
+ binding: r.binding,
3197
+ visibility: Z.VERTEX | Z.FRAGMENT,
3198
+ buffer: { type: "uniform" }
3199
+ }) : r.accessMode === "storage" ? t[r.group].push({
3200
+ binding: r.binding,
3201
+ visibility: Z.VERTEX | Z.FRAGMENT,
3202
+ buffer: { type: "read-only-storage" }
3203
+ }) : r.type === "sampler" ? t[r.group].push({
3204
+ binding: r.binding,
3205
+ visibility: Z.VERTEX | Z.FRAGMENT,
3206
+ sampler: { type: "filtering" }
3207
+ }) : r.type === "sampler_comparison" ? t[r.group].push({
3208
+ binding: r.binding,
3209
+ visibility: Z.VERTEX | Z.FRAGMENT,
3210
+ sampler: { type: "comparison" }
3211
+ }) : r.type === "texture_2d" || r.type.startsWith("texture_2d<") ? t[r.group].push({
3212
+ binding: r.binding,
3213
+ visibility: Z.VERTEX | Z.FRAGMENT,
3214
+ texture: {
3215
+ sampleType: "float",
3216
+ viewDimension: "2d",
3217
+ multisampled: !1
3218
+ }
3219
+ }) : r.type === "texture_depth_2d" ? t[r.group].push({
3220
+ binding: r.binding,
3221
+ visibility: Z.VERTEX | Z.FRAGMENT,
3222
+ texture: {
3223
+ sampleType: "depth",
3224
+ viewDimension: "2d",
3225
+ multisampled: !1
3226
+ }
3227
+ }) : r.type === "texture_depth_2d_array" ? t[r.group].push({
3228
+ binding: r.binding,
3229
+ visibility: Z.VERTEX | Z.FRAGMENT,
3230
+ texture: {
3231
+ sampleType: "depth",
3232
+ viewDimension: "2d-array",
3233
+ multisampled: !1
3234
+ }
3235
+ }) : r.type === "texture_2d_array" || r.type.startsWith("texture_2d_array<") ? t[r.group].push({
3236
+ binding: r.binding,
3237
+ visibility: Z.VERTEX | Z.FRAGMENT,
3238
+ texture: {
3239
+ sampleType: "float",
3240
+ viewDimension: "2d-array",
3241
+ multisampled: !1
3242
+ }
3243
+ }) : (r.type === "texture_cube" || r.type.startsWith("texture_cube<")) && t[r.group].push({
3244
+ binding: r.binding,
3245
+ visibility: Z.VERTEX | Z.FRAGMENT,
3246
+ texture: {
3247
+ sampleType: "float",
3248
+ viewDimension: "cube",
3249
+ multisampled: !1
3250
+ }
3251
+ });
3252
+ }
3253
+ for (let e = 0; e < t.length; e++) t[e] || (t[e] = []);
3254
+ return t;
3255
+ }
3256
+ //#endregion
3257
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateLayoutHash.mjs
3258
+ function sn({ groups: e }) {
3259
+ let t = [];
3260
+ for (let n = 0; n < e.length; n++) {
3261
+ let r = e[n];
3262
+ t[r.group] || (t[r.group] = {}), t[r.group][r.name] = r.binding;
3263
+ }
3264
+ return t;
3265
+ }
3266
+ //#endregion
3267
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/removeStructAndGroupDuplicates.mjs
3268
+ function cn(e, t) {
3269
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
3270
+ return {
3271
+ structs: [...e.structs, ...t.structs].filter((e) => n.has(e.name) ? !1 : (n.add(e.name), !0)),
3272
+ groups: [...e.groups, ...t.groups].filter((e) => {
3273
+ let t = `${e.name}-${e.binding}`;
3274
+ return r.has(t) ? !1 : (r.add(t), !0);
3275
+ })
3276
+ };
3277
+ }
3278
+ //#endregion
3279
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/GpuProgram.mjs
3280
+ var Q = /* @__PURE__ */ Object.create(null), ln = class e {
3281
+ constructor(e) {
3282
+ this._layoutKey = 0, this._attributeLocationsKey = 0;
3283
+ let { fragment: t, vertex: n, layout: r, gpuLayout: i, name: a } = e;
3284
+ if (this.name = a, this.fragment = t, this.vertex = n, t.source === n.source) {
3285
+ let e = an(t.source);
3286
+ this.structsAndGroups = e;
3287
+ } else {
3288
+ let e = an(n.source), r = an(t.source);
3289
+ this.structsAndGroups = cn(e, r);
3290
+ }
3291
+ this.layout = r ?? sn(this.structsAndGroups), this.gpuLayout = i ?? on(this.structsAndGroups), this.autoAssignGlobalUniforms = this.layout[0]?.globalUniforms !== void 0, this.autoAssignLocalUniforms = this.layout[1]?.localUniforms !== void 0, this._generateProgramKey();
3292
+ }
3293
+ _generateProgramKey() {
3294
+ let { vertex: e, fragment: t } = this, n = e.source + t.source + e.entryPoint + t.entryPoint;
3295
+ this._layoutKey = J(n, "program");
3296
+ }
3297
+ get attributeData() {
3298
+ return this._attributeData ??= rn(this.vertex), this._attributeData;
3299
+ }
3300
+ destroy() {
3301
+ this.gpuLayout = null, this.layout = null, this.structsAndGroups = null, this.fragment = null, this.vertex = null, Q[this._cacheKey] = null;
3302
+ }
3303
+ static from(t) {
3304
+ let n = `${t.vertex.source}:${t.fragment.source}:${t.fragment.entryPoint}:${t.vertex.entryPoint}`;
3305
+ return Q[n] || (Q[n] = new e(t), Q[n]._cacheKey = n), Q[n];
3306
+ }
3307
+ }, un = class {
3308
+ constructor(e) {
3309
+ this.resources = /* @__PURE__ */ Object.create(null), this._dirty = !0;
3310
+ let t = 0;
3311
+ for (let n in e) {
3312
+ let r = e[n];
3313
+ this.setResource(r, t++);
3314
+ }
3315
+ }
3316
+ get _key() {
3317
+ if (this._dirty) {
3318
+ this._dirty = !1;
3319
+ let e = [], t = 0;
3320
+ for (let n in this.resources) e[t++] = this.resources[n] ? this.resources[n]._resourceId : -1;
3321
+ this._keyValue = e.join("|");
3322
+ }
3323
+ return this._keyValue;
3324
+ }
3325
+ setResource(e, t) {
3326
+ let n = this.resources[t];
3327
+ e !== n && (n && n.off?.("change", this.onResourceChange, this), e.on?.("change", this.onResourceChange, this), this.resources[t] = e, this._dirty = !0);
3328
+ }
3329
+ getResource(e) {
3330
+ return this.resources[e];
3331
+ }
3332
+ _touch(e, t) {
3333
+ let n = this.resources;
3334
+ for (let r in n) {
3335
+ let i = n[r];
3336
+ i && (i._gcLastUsed = e, i._touched = t);
3337
+ }
3338
+ }
3339
+ destroy() {
3340
+ let e = this.resources;
3341
+ for (let t in e) e[t]?.off?.("change", this.onResourceChange, this);
3342
+ this.resources = null;
3343
+ }
3344
+ onResourceChange(e) {
3345
+ if (this._dirty = !0, e.destroyed) {
3346
+ let t = this.resources;
3347
+ for (let n in t) t[n] === e && (t[n] = null);
3348
+ j(`[BindGroup] a '${e._resourceType}' was destroyed while still bound to a shader. Remove it from the shader before destroying it.`);
3349
+ }
3350
+ }
3351
+ }, dn = /* @__PURE__ */ ((e) => (e[e.WEBGL = 1] = "WEBGL", e[e.WEBGPU = 2] = "WEBGPU", e[e.CANVAS = 4] = "CANVAS", e[e.BOTH = 3] = "BOTH", e))(dn || {}), fn = class e {
3352
+ constructor(e) {
3353
+ this.data = { ...e };
3354
+ let t = Object.keys(e).sort().map((t) => `${t}:${e[t]}`).join("|");
3355
+ this.id = J(t, "shader-overrides");
3356
+ }
3357
+ static from(t) {
3358
+ return t instanceof e ? t : new e(t);
3359
+ }
3360
+ }, pn = [
3361
+ "f32",
3362
+ "i32",
3363
+ "u32",
3364
+ "vec2<f32>",
3365
+ "vec3<f32>",
3366
+ "vec4<f32>",
3367
+ "mat2x2<f32>",
3368
+ "mat3x3<f32>",
3369
+ "mat4x4<f32>",
3370
+ "mat3x2<f32>",
3371
+ "mat4x2<f32>",
3372
+ "mat2x3<f32>",
3373
+ "mat4x3<f32>",
3374
+ "mat2x4<f32>",
3375
+ "mat3x4<f32>",
3376
+ "vec2<i32>",
3377
+ "vec3<i32>",
3378
+ "vec4<i32>",
3379
+ "vec2<u32>",
3380
+ "vec3<u32>",
3381
+ "vec4<u32>"
3382
+ ], mn = pn.reduce((e, t) => (e[t] = !0, e), {});
3383
+ //#endregion
3384
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/getDefaultUniformValue.mjs
3385
+ function hn(e, t) {
3386
+ switch (e) {
3387
+ case "f32": return 0;
3388
+ case "vec2<f32>": return new Float32Array(2 * t);
3389
+ case "vec3<f32>": return new Float32Array(3 * t);
3390
+ case "vec4<f32>": return new Float32Array(4 * t);
3391
+ case "mat2x2<f32>": return new Float32Array([
3392
+ 1,
3393
+ 0,
3394
+ 0,
3395
+ 1
3396
+ ]);
3397
+ case "mat3x3<f32>": return new Float32Array([
3398
+ 1,
3399
+ 0,
3400
+ 0,
3401
+ 0,
3402
+ 1,
3403
+ 0,
3404
+ 0,
3405
+ 0,
3406
+ 1
3407
+ ]);
3408
+ case "mat4x4<f32>": return new Float32Array([
3409
+ 1,
3410
+ 0,
3411
+ 0,
3412
+ 0,
3413
+ 0,
3414
+ 1,
3415
+ 0,
3416
+ 0,
3417
+ 0,
3418
+ 0,
3419
+ 1,
3420
+ 0,
3421
+ 0,
3422
+ 0,
3423
+ 0,
3424
+ 1
3425
+ ]);
3426
+ }
3427
+ return null;
3428
+ }
3429
+ //#endregion
3430
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/UniformGroup.mjs
3431
+ var gn = class e extends o {
3432
+ constructor(t, n) {
3433
+ super(), this._touched = 0, this.uid = D("uniform"), this._resourceType = "uniformGroup", this._resourceId = D("resource"), this.isUniformGroup = !0, this._dirtyId = 0, this.destroyed = !1, n = {
3434
+ ...e.defaultOptions,
3435
+ ...n
3436
+ }, this.uniformStructures = t;
3437
+ let r = {};
3438
+ for (let e in t) {
3439
+ let n = t[e];
3440
+ if (n.name = e, n.size = n.size ?? 1, !mn[n.type]) {
3441
+ let e = n.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);
3442
+ if (e) {
3443
+ let [, t, r] = e;
3444
+ throw Error(`Uniform type ${n.type} is not supported. Use type: '${t}', size: ${r} instead.`);
3445
+ }
3446
+ throw Error(`Uniform type ${n.type} is not supported. Supported uniform types are: ${pn.join(", ")}`);
3447
+ }
3448
+ n.value ??= hn(n.type, n.size), r[e] = n.value;
3449
+ }
3450
+ this.uniforms = r, this._dirtyId = 1, this.ubo = n.ubo, this.isStatic = n.isStatic, this._signature = J(Object.keys(r).map((e) => `${e}-${t[e].type}`).join("-"), "uniform-group");
3451
+ }
3452
+ get buffer() {
3453
+ return this._buffer;
3454
+ }
3455
+ set buffer(e) {
3456
+ this._buffer !== e && (this._buffer?.off("change", this.onBufferChange, this), this._buffer = e, e?.on("change", this.onBufferChange, this));
3457
+ }
3458
+ get _gcLastUsed() {
3459
+ return this._buffer?._gcLastUsed ?? -1;
3460
+ }
3461
+ set _gcLastUsed(e) {
3462
+ this._buffer && (this._buffer._gcLastUsed = e);
3463
+ }
3464
+ onBufferChange() {
3465
+ this._resourceId = D("resource"), this.emit("change", this);
3466
+ }
3467
+ update() {
3468
+ this._dirtyId++;
3469
+ }
3470
+ };
3471
+ gn.defaultOptions = {
3472
+ ubo: !1,
3473
+ isStatic: !1
3474
+ };
3475
+ var _n = gn, vn = class e extends o {
3476
+ constructor(e) {
3477
+ super(), this.uid = D("shader"), this._uniformBindMap = /* @__PURE__ */ Object.create(null), this._ownedBindGroups = [], this._destroyed = !1;
3478
+ let { gpuProgram: t, glProgram: n, groups: r, resources: i, compatibleRenderers: a, groupMap: o, overrides: s } = e;
3479
+ this._overrides = s ? fn.from(s) : null, this.gpuProgram = t, this.glProgram = n, a === void 0 && (a = 0, t && (a |= dn.WEBGPU), n && (a |= dn.WEBGL)), this.compatibleRenderers = a;
3480
+ let c = {};
3481
+ if (o) for (let e in o) for (let t in o[e]) {
3482
+ let n = o[e][t];
3483
+ c[n] = {
3484
+ group: e,
3485
+ binding: t,
3486
+ name: n
3487
+ };
3488
+ }
3489
+ if (!i && !r && (i = {}), i && r) throw Error("[Shader] Cannot have both resources and groups");
3490
+ if (!t && r && !o) throw Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");
3491
+ if (t && r && !o) {
3492
+ let e = t.structsAndGroups.groups;
3493
+ o = {}, e.forEach((e) => {
3494
+ o[e.group] = o[e.group] || {}, o[e.group][e.binding] = e.name, c[e.name] = e;
3495
+ });
3496
+ } else if (i) {
3497
+ r = {}, o ||= {}, t && t.structsAndGroups.groups.forEach((e) => {
3498
+ o[e.group] = o[e.group] || {}, o[e.group][e.binding] = e.name, c[e.name] = e;
3499
+ });
3500
+ let e = 0;
3501
+ for (let a in i) c[a] || (t && !n && j(`[Shader] the resource '${a}' matches no binding in the WGSL source \u2014 is the name correct?`), r[99] || (r[99] = new un(), this._ownedBindGroups.push(r[99])), c[a] = {
3502
+ group: 99,
3503
+ binding: e,
3504
+ name: a
3505
+ }, o[99] = o[99] || {}, o[99][e] = a, e++);
3506
+ for (let e in i) {
3507
+ let t = e, n = i[e];
3508
+ !n.source && !n._resourceType && (n = new _n(n));
3509
+ let a = c[t];
3510
+ a && (r[a.group] || (r[a.group] = new un(), this._ownedBindGroups.push(r[a.group])), r[a.group].setResource(n, a.binding));
3511
+ }
3512
+ }
3513
+ this.groups = r, this._uniformBindMap = o, this.resources = this._buildResourceAccessor(r, c);
3514
+ }
3515
+ addResource(e, t, n) {
3516
+ var r, i;
3517
+ (r = this._uniformBindMap)[t] || (r[t] = {}), (i = this._uniformBindMap[t])[n] || (i[n] = e), this.groups[t] || (this.groups[t] = new un(), this._ownedBindGroups.push(this.groups[t]));
3518
+ }
3519
+ _buildResourceAccessor(e, t) {
3520
+ let n = {};
3521
+ for (let r in t) {
3522
+ let i = t[r];
3523
+ Object.defineProperty(n, i.name, {
3524
+ get() {
3525
+ return e[i.group].getResource(i.binding);
3526
+ },
3527
+ set(t) {
3528
+ e[i.group].setResource(t, i.binding);
3529
+ }
3530
+ });
3531
+ }
3532
+ return n;
3533
+ }
3534
+ destroy(e = !1) {
3535
+ this._destroyed || (this._destroyed = !0, this.emit("destroy", this), e && (this.gpuProgram?.destroy(), this.glProgram?.destroy()), this.gpuProgram = null, this.glProgram = null, this.removeAllListeners(), this._uniformBindMap = null, this._ownedBindGroups.forEach((e) => {
3536
+ e.destroy();
3537
+ }), this._ownedBindGroups = null, this.resources = null, this.groups = null, this._overrides = null);
3538
+ }
3539
+ static from(t) {
3540
+ let { gpu: n, gl: r, ...i } = t, a, o;
3541
+ return n && (a = ln.from(n)), r && (o = Xt.from(r)), new e({
3542
+ gpuProgram: a,
3543
+ glProgram: o,
3544
+ ...i
3545
+ });
3546
+ }
3547
+ }, yn = {
3548
+ normal: 0,
3549
+ add: 1,
3550
+ multiply: 2,
3551
+ screen: 3,
3552
+ overlay: 4,
3553
+ erase: 5,
3554
+ "normal-npm": 6,
3555
+ "add-npm": 7,
3556
+ "screen-npm": 8,
3557
+ min: 9,
3558
+ max: 10
3559
+ }, bn = {
3560
+ BLEND: 0,
3561
+ OFFSET: 1,
3562
+ CULLING: 2,
3563
+ DEPTH_TEST: 3,
3564
+ WINDING: 4,
3565
+ DEPTH_MASK: 5
3566
+ }, { BLEND: xn, OFFSET: Sn, CULLING: Cn, DEPTH_TEST: wn, WINDING: Tn, DEPTH_MASK: En } = bn, Dn = class e {
3567
+ constructor() {
3568
+ this.data = 0, this.blendMode = "normal", this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
3569
+ }
3570
+ get blend() {
3571
+ return !!(this.data & 1 << xn);
3572
+ }
3573
+ set blend(e) {
3574
+ !!(this.data & 1 << xn) !== e && (this.data ^= 1 << xn);
3575
+ }
3576
+ get offsets() {
3577
+ return !!(this.data & 1 << Sn);
3578
+ }
3579
+ set offsets(e) {
3580
+ !!(this.data & 1 << Sn) !== e && (this.data ^= 1 << Sn);
3581
+ }
3582
+ set cullMode(e) {
3583
+ if (e === "none") {
3584
+ this.culling = !1;
3585
+ return;
3586
+ }
3587
+ this.culling = !0, this.clockwiseFrontFace = e === "front";
3588
+ }
3589
+ get cullMode() {
3590
+ return this.culling ? this.clockwiseFrontFace ? "front" : "back" : "none";
3591
+ }
3592
+ get culling() {
3593
+ return !!(this.data & 1 << Cn);
3594
+ }
3595
+ set culling(e) {
3596
+ !!(this.data & 1 << Cn) !== e && (this.data ^= 1 << Cn);
3597
+ }
3598
+ get depthTest() {
3599
+ return !!(this.data & 1 << wn);
3600
+ }
3601
+ set depthTest(e) {
3602
+ !!(this.data & 1 << wn) !== e && (this.data ^= 1 << wn);
3603
+ }
3604
+ get depthMask() {
3605
+ return !!(this.data & 1 << En);
3606
+ }
3607
+ set depthMask(e) {
3608
+ !!(this.data & 1 << En) !== e && (this.data ^= 1 << En);
3609
+ }
3610
+ get clockwiseFrontFace() {
3611
+ return !!(this.data & 1 << Tn);
3612
+ }
3613
+ set clockwiseFrontFace(e) {
3614
+ !!(this.data & 1 << Tn) !== e && (this.data ^= 1 << Tn);
3615
+ }
3616
+ get blendMode() {
3617
+ return this._blendMode;
3618
+ }
3619
+ set blendMode(e) {
3620
+ this.blend = e !== "none", this._blendMode = e, this._blendModeId = yn[e] || 0;
3621
+ }
3622
+ get polygonOffset() {
3623
+ return this._polygonOffset;
3624
+ }
3625
+ set polygonOffset(e) {
3626
+ this.offsets = !!e, this._polygonOffset = e;
3627
+ }
3628
+ toString() {
3629
+ return `[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`;
3630
+ }
3631
+ static for2d() {
3632
+ let t = new e();
3633
+ return t.depthTest = !1, t.depthMask = !1, t.blend = !0, t;
3634
+ }
3635
+ };
3636
+ Dn.default2d = Dn.for2d();
3637
+ var On = Dn, kn = class e extends vn {
3638
+ constructor(t) {
3639
+ t = {
3640
+ ...e.defaultOptions,
3641
+ ...t
3642
+ }, super(t), this.enabled = !0, this._state = On.for2d(), this.blendMode = t.blendMode, this.padding = t.padding, typeof t.antialias == "boolean" ? this.antialias = t.antialias ? "on" : "off" : this.antialias = t.antialias, this.resolution = t.resolution, this.blendRequired = t.blendRequired, this.clipToViewport = t.clipToViewport, this.addResource("uTexture", 0, 1), t.blendRequired && this.addResource("uBackTexture", 0, 3);
3643
+ }
3644
+ apply(e, t, n, r) {
3645
+ e.applyFilter(this, t, n, r);
3646
+ }
3647
+ get blendMode() {
3648
+ return this._state.blendMode;
3649
+ }
3650
+ set blendMode(e) {
3651
+ this._state.blendMode = e;
3652
+ }
3653
+ static from(t) {
3654
+ let { gpu: n, gl: r, ...i } = t, a, o;
3655
+ return n && (a = ln.from(n)), r && (o = Xt.from(r)), new e({
3656
+ gpuProgram: a,
3657
+ glProgram: o,
3658
+ ...i
3659
+ });
3660
+ }
3661
+ };
3662
+ kn.defaultOptions = {
3663
+ blendMode: "normal",
3664
+ resolution: 1,
3665
+ padding: 0,
3666
+ antialias: "off",
3667
+ blendRequired: !1,
3668
+ clipToViewport: !0
3669
+ };
3670
+ var An = kn, $ = /* @__PURE__ */ ((e) => (e[e.MAP_READ = 1] = "MAP_READ", e[e.MAP_WRITE = 2] = "MAP_WRITE", e[e.COPY_SRC = 4] = "COPY_SRC", e[e.COPY_DST = 8] = "COPY_DST", e[e.INDEX = 16] = "INDEX", e[e.VERTEX = 32] = "VERTEX", e[e.UNIFORM = 64] = "UNIFORM", e[e.STORAGE = 128] = "STORAGE", e[e.INDIRECT = 256] = "INDIRECT", e[e.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", e[e.STATIC = 1024] = "STATIC", e))($ || {}), jn = class extends o {
3671
+ constructor(e) {
3672
+ let { data: t, size: n } = e, { usage: r, label: i, shrinkToFit: a } = e;
3673
+ super(), this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.autoGarbageCollect = !0, this.uid = D("buffer"), this._resourceType = "buffer", this._resourceId = D("resource"), this._touched = 0, this._updateID = 1, this._updateOffset = 0, this._dataInt32 = null, this.shrinkToFit = !0, this.destroyed = !1, t instanceof Array && (t = new Float32Array(t)), this._data = t, n ??= t?.byteLength;
3674
+ let o = !!t;
3675
+ this.descriptor = {
3676
+ size: n,
3677
+ usage: r,
3678
+ mappedAtCreation: o,
3679
+ label: i
3680
+ }, this.shrinkToFit = a ?? !0;
3681
+ }
3682
+ get data() {
3683
+ return this._data;
3684
+ }
3685
+ set data(e) {
3686
+ this.setDataWithSize(e, e.length, !0);
3687
+ }
3688
+ get dataInt32() {
3689
+ return this._dataInt32 ||= new Int32Array(this.data.buffer), this._dataInt32;
3690
+ }
3691
+ get static() {
3692
+ return !!(this.descriptor.usage & $.STATIC);
3693
+ }
3694
+ set static(e) {
3695
+ e ? this.descriptor.usage |= $.STATIC : this.descriptor.usage &= ~$.STATIC;
3696
+ }
3697
+ setDataWithSize(e, t, n) {
3698
+ if (this._updateID++, this._updateSize = t * e.BYTES_PER_ELEMENT, this._updateOffset = 0, this._data === e) {
3699
+ n && this.emit("update", this);
3700
+ return;
3701
+ }
3702
+ let r = this._data;
3703
+ if (this._data = e, this._dataInt32 = null, !r || r.length !== e.length) {
3704
+ !this.shrinkToFit && r && e.byteLength < r.byteLength ? n && this.emit("update", this) : (this.descriptor.size = e.byteLength, this._resourceId = D("resource"), this.emit("change", this));
3705
+ return;
3706
+ }
3707
+ n && this.emit("update", this);
3708
+ }
3709
+ update(e, t) {
3710
+ this._updateSize = e ?? this._updateSize, this._updateOffset = t || 0, this._updateID++, this.emit("update", this);
3711
+ }
3712
+ unload() {
3713
+ this.emit("unload", this);
3714
+ for (let e in this._gpuData) this._gpuData[e]?.destroy();
3715
+ this._gpuData = /* @__PURE__ */ Object.create(null), this.destroyed || (this._resourceId = D("resource"), this.emit("change", this));
3716
+ }
3717
+ destroy() {
3718
+ this.destroyed = !0, this.unload(), this.emit("destroy", this), this.emit("change", this), this._data = null, this.descriptor = null, this.removeAllListeners();
3719
+ }
3720
+ };
3721
+ //#endregion
3722
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/ensureIsBuffer.mjs
3723
+ function Mn(e, t) {
3724
+ if (!(e instanceof jn)) {
3725
+ let n = t ? $.INDEX : $.VERTEX;
3726
+ e instanceof Array && (t ? (e = new Uint32Array(e), n = $.INDEX | $.COPY_DST) : (e = new Float32Array(e), n = $.VERTEX | $.COPY_DST)), e = new jn({
3727
+ data: e,
3728
+ label: t ? "index-mesh-buffer" : "vertex-mesh-buffer",
3729
+ usage: n
3730
+ });
3731
+ }
3732
+ return e;
3733
+ }
3734
+ //#endregion
3735
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getGeometryBounds.mjs
3736
+ function Nn(e, t, n) {
3737
+ let r = e.getAttribute(t);
3738
+ if (!r) return n.minX = 0, n.minY = 0, n.maxX = 0, n.maxY = 0, n;
3739
+ let i = r.buffer.data, a = Infinity, o = Infinity, s = -Infinity, c = -Infinity, l = i.BYTES_PER_ELEMENT, u = (r.offset || 0) / l, d = (r.stride || 8) / l;
3740
+ for (let e = u; e < i.length; e += d) {
3741
+ let t = i[e], n = i[e + 1];
3742
+ t > s && (s = t), n > c && (c = n), t < a && (a = t), n < o && (o = n);
3743
+ }
3744
+ return n.minX = a, n.minY = o, n.maxX = s, n.maxY = c, n;
3745
+ }
3746
+ //#endregion
3747
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/Geometry.mjs
3748
+ function Pn(e) {
3749
+ return (e instanceof jn || Array.isArray(e) || e.BYTES_PER_ELEMENT) && (e = { buffer: e }), e.buffer = Mn(e.buffer, !1), e;
3750
+ }
3751
+ var Fn = class extends o {
3752
+ constructor(e = {}) {
3753
+ super(), this._gpuData = /* @__PURE__ */ Object.create(null), this.autoGarbageCollect = !0, this._gcLastUsed = -1, this.uid = D("geometry"), this._layoutKey = 0, this.instanceCount = 1, this._bounds = new N(), this._boundsDirty = !0, this._vertexCount = 0, this._vertexCountDirty = !0;
3754
+ let { attributes: t, indexBuffer: n, topology: r } = e;
3755
+ if (this.buffers = [], this.attributes = {}, t) for (let e in t) this.addAttribute(e, t[e]);
3756
+ this.instanceCount = e.instanceCount ?? 1, n && this.addIndex(n), this.topology = r || "triangle-list";
3757
+ }
3758
+ onBufferUpdate() {
3759
+ this._boundsDirty = !0, this._vertexCountDirty = !0, this.emit("update", this);
3760
+ }
3761
+ getAttribute(e) {
3762
+ return this.attributes[e];
3763
+ }
3764
+ getIndex() {
3765
+ return this.indexBuffer;
3766
+ }
3767
+ getBuffer(e) {
3768
+ return this.getAttribute(e).buffer;
3769
+ }
3770
+ get vertexCount() {
3771
+ if (!this._vertexCountDirty) return this._vertexCount;
3772
+ this._vertexCountDirty = !1;
3773
+ let e = this.attributes;
3774
+ for (let t in e) {
3775
+ let n = e[t];
3776
+ if (n.instance) continue;
3777
+ let r = n.buffer;
3778
+ return this._vertexCount = r.data.length / (n.stride / 4 || n.size), this._vertexCount;
3779
+ }
3780
+ return this._vertexCount = 0, 0;
3781
+ }
3782
+ getSize() {
3783
+ return A("8.20.0", "Geometry.getSize is deprecated, please use Geometry.vertexCount instead."), this.vertexCount;
3784
+ }
3785
+ addAttribute(e, t) {
3786
+ let n = Pn(t);
3787
+ this.buffers.indexOf(n.buffer) === -1 && (this.buffers.push(n.buffer), n.buffer.on("update", this.onBufferUpdate, this), n.buffer.on("change", this.onBufferUpdate, this)), this.attributes[e] = n, this._vertexCountDirty = !0;
3788
+ }
3789
+ addIndex(e) {
3790
+ this.indexBuffer = Mn(e, !0), this.buffers.push(this.indexBuffer);
3791
+ }
3792
+ get bounds() {
3793
+ return this._boundsDirty ? (this._boundsDirty = !1, Nn(this, "aPosition", this._bounds)) : this._bounds;
3794
+ }
3795
+ unload() {
3796
+ this.emit("unload", this);
3797
+ for (let e in this._gpuData) this._gpuData[e]?.destroy();
3798
+ this._gpuData = /* @__PURE__ */ Object.create(null);
3799
+ }
3800
+ destroy(e = !1) {
3801
+ this.emit("destroy", this), this.removeAllListeners(), e && this.buffers.forEach((e) => e.destroy()), this.unload(), this.attributes = null, this.buffers = null, this.indexBuffer = null, this._bounds = null;
3802
+ }
3803
+ };
3804
+ //#endregion
3805
+ export { E as $, L as A, F as B, Et as C, yt as D, W as E, Ye as F, Ae as G, N as H, I, j as J, M as K, qe as L, st as M, at as N, _t as O, it as P, D as Q, Ge as R, q as S, xt as T, Re as U, P as V, Ne as W, O as X, A as Y, we as Z, Ft as _, bn as a, n as at, At as b, _n as c, un as d, T as et, ln as f, J as g, Rt as h, An as i, o as it, dt as j, U as k, fn as l, Xt as m, jn as n, ve as nt, On as o, a as ot, Qt as p, De as q, $ as r, me as rt, vn as s, Fn as t, w as tt, dn as u, Pt as v, St as w, kt as x, Mt as y, He as z };