@uptimizr/dashboard 0.4.5 → 0.4.7

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 (384) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +19 -5
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._tree.txt +2 -2
  5. package/out/_next/static/chunks/{3kalvwsf11-ss.js → 0-_j1khfoib6l.js} +119 -115
  6. package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 005bbq_px7lke.js} +2 -2
  7. package/out/_next/static/chunks/00fbhtmui-yxg.js +1 -0
  8. package/out/_next/static/chunks/017pn-pen381_.js +1 -0
  9. package/out/_next/static/chunks/01vov6inx1zzt.js +1 -0
  10. package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 02qk_wmkf9at-.js} +211 -211
  11. package/out/_next/static/chunks/03bd5plut08tg.js +1 -0
  12. package/out/_next/static/chunks/03dwfqmo73w_z.js +1 -0
  13. package/out/_next/static/chunks/03sn4419dam-h.js +5 -0
  14. package/out/_next/static/chunks/05ere0-228syf.js +1 -0
  15. package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 05h8u5lrypn5m.js} +1 -1
  16. package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
  17. package/out/_next/static/chunks/{3go-mst7n3udd.js → 05v-nubi896jg.js} +1 -1
  18. package/out/_next/static/chunks/05z79zh625ezu.js +1 -0
  19. package/out/_next/static/chunks/{1t2exh89lnazc.js → 060iult6f68_e.js} +504 -571
  20. package/out/_next/static/chunks/08lvtnv7b1cxp.js +1 -0
  21. package/out/_next/static/chunks/0_v2luu_qmeid.js +1 -0
  22. package/out/_next/static/chunks/0ai0zgbgjqb92.js +1 -0
  23. package/out/_next/static/chunks/0boov9mwycanf.js +1 -0
  24. package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 0btmk0wmekl02.js} +2 -2
  25. package/out/_next/static/chunks/0d8x8m2x6ca_m.js +1 -0
  26. package/out/_next/static/chunks/0dmrdrwtd093b.js +1 -0
  27. package/out/_next/static/chunks/0e1jfrmioeuws.js +1 -0
  28. package/out/_next/static/chunks/0e7nlxmneb2j_.js +1 -0
  29. package/out/_next/static/chunks/0es97pusfxupl.js +1 -0
  30. package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 0fd-0i1yt23kz.js} +1 -1
  31. package/out/_next/static/chunks/0fxdyvb1w23d1.js +1 -0
  32. package/out/_next/static/chunks/0fxhc24djjcgq.js +1 -0
  33. package/out/_next/static/chunks/0gf-ztg86zd80.js +1 -0
  34. package/out/_next/static/chunks/{380ivzcfb4o_3.js → 0grasqqf5dw7r.js} +2 -2
  35. package/out/_next/static/chunks/{0okbyggxe6mx5.js → 0hajwk2yd-rwr.js} +1 -1
  36. package/out/_next/static/chunks/0hk1wg7h4araz.js +1 -0
  37. package/out/_next/static/chunks/{1vmpltnr0cyos.js → 0j74ipw4fps-n.js} +1 -1
  38. package/out/_next/static/chunks/{03zip1uidm6x9.js → 0kj-vckdn7t5p.js} +1 -1
  39. package/out/_next/static/chunks/0lbs5xdyjuzuo.js +1 -0
  40. package/out/_next/static/chunks/0lep3_bqwfuin.js +1 -0
  41. package/out/_next/static/chunks/0mp0jh1gj7290.js +1 -0
  42. package/out/_next/static/chunks/0ngpoj2g5i4kz.js +1 -0
  43. package/out/_next/static/chunks/0nhljhguceh66.js +1 -0
  44. package/out/_next/static/chunks/0p6z73afb9dj2.js +1 -0
  45. package/out/_next/static/chunks/0p9zfmidzqkps.js +1 -0
  46. package/out/_next/static/chunks/0q75860p8u_ii.js +1 -0
  47. package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 0rracz73p38mo.js} +26 -23
  48. package/out/_next/static/chunks/{3z4suna4kq4j5.js → 0sw-8gxbg4x0l.js} +568 -569
  49. package/out/_next/static/chunks/0sx-6rf3eteqn.js +1 -0
  50. package/out/_next/static/chunks/0thw099xk3_0p.js +3 -0
  51. package/out/_next/static/chunks/0u85f0dhb4i8e.js +1 -0
  52. package/out/_next/static/chunks/0uk7kigzm4vi2.js +31 -0
  53. package/out/_next/static/chunks/0ulufxnsrou61.js +1 -0
  54. package/out/_next/static/chunks/0xa9dyg6ezzyd.js +2 -0
  55. package/out/_next/static/chunks/0xvrfvur0p534.js +1 -0
  56. package/out/_next/static/chunks/{35aagg46wp139.js → 0ybs1u66q26su.js} +1 -1
  57. package/out/_next/static/chunks/0ydfhk-p6zvm0.js +1 -0
  58. package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0z004fn14pbcu.js} +1 -1
  59. package/out/_next/static/chunks/{2z9mdtudj8crz.js → 0z9erbl3llr_b.js} +226 -224
  60. package/out/_next/static/chunks/0zcsxvcvog9ue.js +1 -0
  61. package/out/_next/static/chunks/0zqgq0lwtz9tn.js +1 -0
  62. package/out/_next/static/chunks/1-ogak5u00kwa.js +1 -0
  63. package/out/_next/static/chunks/{1ng-fqh2_n984.js → 10_5p5-xf2aoo.js} +1 -1
  64. package/out/_next/static/chunks/118qlrzdwpfmo.js +1 -0
  65. package/out/_next/static/chunks/11km5p4gd0ut4.js +1 -0
  66. package/out/_next/static/chunks/120rl4l29q9xs.js +1 -0
  67. package/out/_next/static/chunks/{1ho02fc091nj2.js → 129m5i93ltoym.js} +1 -1
  68. package/out/_next/static/chunks/12n73o884lyyl.js +1 -0
  69. package/out/_next/static/chunks/{3n-7bcmfbh299.js → 13zcn4lv0qj76.js} +11 -11
  70. package/out/_next/static/chunks/15jlgfcaeaki9.js +1 -0
  71. package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 15o4_2t-l3rj5.js} +1 -1
  72. package/out/_next/static/chunks/{00o9hr_3hd0r8.js → 175st2ogkg_1o.js} +1 -1
  73. package/out/_next/static/chunks/19rsodtu91ja_.js +1 -0
  74. package/out/_next/static/chunks/1a2ouhup611bz.js +1 -0
  75. package/out/_next/static/chunks/{1solqr18og2ot.js → 1by60_b14x-3o.js} +1 -1
  76. package/out/_next/static/chunks/1cyq7i39885sl.js +1 -0
  77. package/out/_next/static/chunks/1d9it6yocgt54.js +1 -0
  78. package/out/_next/static/chunks/1dp1s1t-y7gal.js +1 -0
  79. package/out/_next/static/chunks/1dr7gh6xgypl8.js +1 -0
  80. package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1dt30s_sp8415.js} +1 -1
  81. package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 1e8_jl2cxd3rp.js} +576 -576
  82. package/out/_next/static/chunks/1f1rek_fxk3of.js +1 -0
  83. package/out/_next/static/chunks/1f2mna0k5efeq.js +1 -0
  84. package/out/_next/static/chunks/1gfz3sxwkkg3d.js +1 -0
  85. package/out/_next/static/chunks/1gr35qeguuws0.js +1 -0
  86. package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 1gttu-n9am66k.js} +255 -253
  87. package/out/_next/static/chunks/1imi0xwi9hd99.js +1 -0
  88. package/out/_next/static/chunks/1ka5v5zu0cstt.js +1 -0
  89. package/out/_next/static/chunks/{17aahvhpls1l7.js → 1l_3oidssbhns.js} +298 -231
  90. package/out/_next/static/chunks/1m9zc5gm-327d.js +112 -0
  91. package/out/_next/static/chunks/1n9nhz-6azcp3.js +3 -0
  92. package/out/_next/static/chunks/1ncqwe81t_9_x.js +1 -0
  93. package/out/_next/static/chunks/1nix_lulkpklo.js +1 -0
  94. package/out/_next/static/chunks/{141tngxsk32hq.js → 1ntqovuz2c217.js} +1 -1
  95. package/out/_next/static/chunks/1pgs-98tfkq9_.js +1 -0
  96. package/out/_next/static/chunks/1q2z0aeopo8t8.js +1 -0
  97. package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1q4lkgxfnqnew.js} +1 -1
  98. package/out/_next/static/chunks/{2khh_pmm224k5.js → 1qg1l7t00nyib.js} +97 -300
  99. package/out/_next/static/chunks/{1qxhgauuomthl.js → 1rcdimhu0qhlu.js} +407 -407
  100. package/out/_next/static/chunks/1rlfg62jxqj3z.js +1 -0
  101. package/out/_next/static/chunks/1ses023uud001.js +1 -0
  102. package/out/_next/static/chunks/1t5oynmttpfsw.js +1 -0
  103. package/out/_next/static/chunks/{25gf6xn9u1c57.js → 1t9i20i5-f8ze.js} +1 -1
  104. package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 1tgj55b305g4h.js} +1 -1
  105. package/out/_next/static/chunks/{255knovck7pv2.js → 1u8snlm6a7uhi.js} +4 -4
  106. package/out/_next/static/chunks/{04_3ri5emyfcu.js → 1ug4k-1zhr63a.js} +1 -1
  107. package/out/_next/static/chunks/{3-_08i4_7yhno.js → 1uh9zgsy69g92.js} +1 -1
  108. package/out/_next/static/chunks/1vrpzlif-z_p0.js +1 -0
  109. package/out/_next/static/chunks/1vurgl6oz2qey.js +17 -0
  110. package/out/_next/static/chunks/1w-qc09n9ijtq.js +1 -0
  111. package/out/_next/static/chunks/1ycqxcht6x54p.js +1 -0
  112. package/out/_next/static/chunks/{2zyjw8g4tiu51.js → 1zj4307ugq0qz.js} +1 -1
  113. package/out/_next/static/chunks/{425epvuw3yy-n.js → 1zkd8v-qka--j.js} +169 -174
  114. package/out/_next/static/chunks/1zm52cjrfrq7c.js +1 -0
  115. package/out/_next/static/chunks/{267q_eg-c6f6m.js → 1zm6eo861i3c8.js} +1 -1
  116. package/out/_next/static/chunks/{1e_-_7biavwmb.js → 1zp9363yfhpom.js} +1 -1
  117. package/out/_next/static/chunks/1zt1xxovnjhkm.js +1 -0
  118. package/out/_next/static/chunks/2-3hk_db5fpok.js +1 -0
  119. package/out/_next/static/chunks/2-bv9a_0zgw1f.js +1 -0
  120. package/out/_next/static/chunks/209sxygecny37.js +1 -0
  121. package/out/_next/static/chunks/{1ccn725by19i1.js → 216uiih3_vdfd.js} +1 -1
  122. package/out/_next/static/chunks/21kfpd_bityxt.js +1 -0
  123. package/out/_next/static/chunks/22yqh0zlo_vwr.js +1 -0
  124. package/out/_next/static/chunks/24ecas0m9tao7.js +3 -0
  125. package/out/_next/static/chunks/24pq9210rng3f.js +1 -0
  126. package/out/_next/static/chunks/{0zf26k6juhlzo.js → 267prao6fyt22.js} +23 -20
  127. package/out/_next/static/chunks/26skkagvj1z96.js +1 -0
  128. package/out/_next/static/chunks/26y9sv8_-ykxf.js +1 -0
  129. package/out/_next/static/chunks/2701xfv_07wz_.js +1 -0
  130. package/out/_next/static/chunks/{1x99m91nt1m3b.js → 271333m8y3k0e.js} +1 -1
  131. package/out/_next/static/chunks/29rkmguzky-bp.js +1 -0
  132. package/out/_next/static/chunks/{077eo-0dhbxz-.js → 2a07so920b6aa.js} +1 -1
  133. package/out/_next/static/chunks/2a2oy8ryz2tsk.js +1 -0
  134. package/out/_next/static/chunks/2ao-3jzz7yw3p.js +532 -0
  135. package/out/_next/static/chunks/2apihn9ra2ufp.js +1 -0
  136. package/out/_next/static/chunks/2apnpj0-fs9ks.js +1 -0
  137. package/out/_next/static/chunks/2b481pitl4k85.js +1 -0
  138. package/out/_next/static/chunks/2bettxaqt3d2p.js +1 -0
  139. package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 2c721vfva711t.js} +1 -1
  140. package/out/_next/static/chunks/{442e2l3jzxd-_.js → 2d2kl_m64j9cb.js} +1 -1
  141. package/out/_next/static/chunks/2droqjmvmgj13.js +1 -0
  142. package/out/_next/static/chunks/2dxbvwbbgpzoq.js +1 -0
  143. package/out/_next/static/chunks/2eqbsut829r5l.js +1 -0
  144. package/out/_next/static/chunks/2f3_mzxjh3gso.js +1 -0
  145. package/out/_next/static/chunks/2fsde0jwi5qtt.js +1 -0
  146. package/out/_next/static/chunks/2h249uvhh2sij.js +114 -0
  147. package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2izok2otbk8-2.js} +505 -505
  148. package/out/_next/static/chunks/{0yvevihll7sz-.js → 2j120dkh7q3uf.js} +1 -1
  149. package/out/_next/static/chunks/2j2ynchpqh34-.js +1 -0
  150. package/out/_next/static/chunks/2kj6pzs_wap1v.js +1 -0
  151. package/out/_next/static/chunks/{2-p206i_ihx09.js → 2kok6zedeeltw.js} +1 -1
  152. package/out/_next/static/chunks/2lnj9jruy4nrv.js +1 -0
  153. package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 2lsvk7xcfkarc.js} +1 -1
  154. package/out/_next/static/chunks/2n-pveub8b_5t.js +1 -0
  155. package/out/_next/static/chunks/{00xc-0pj7on2s.js → 2n3xu_wbvtj7h.js} +29 -29
  156. package/out/_next/static/chunks/{1oljzgz5jistn.js → 2of8q0kaeqpf0.js} +1 -1
  157. package/out/_next/static/chunks/2ofwtw6p08sfz.js +1 -0
  158. package/out/_next/static/chunks/2phl5ta4iim7l.js +12 -0
  159. package/out/_next/static/chunks/2q6l-xdqzgmpf.js +1 -0
  160. package/out/_next/static/chunks/2q8yg63br2jc9.js +1 -0
  161. package/out/_next/static/chunks/2r5qgieqldcd9.js +1 -0
  162. package/out/_next/static/chunks/2r7y401cvjc1s.js +1 -0
  163. package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 2r96kyeehsji9.js} +1 -1
  164. package/out/_next/static/chunks/{3gyyjsot8mdav.js → 2rmc6ru7mc-kg.js} +1 -1
  165. package/out/_next/static/chunks/{1ephzzweysylq.js → 2s6kpclh6ie7o.js} +901 -973
  166. package/out/_next/static/chunks/{0vso09vdz38sr.js → 2sys9nj8lo3uk.js} +1 -1
  167. package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 2tc3e-iqv71y_.js} +1 -1
  168. package/out/_next/static/chunks/2uo6vm7mfgrbf.js +1 -0
  169. package/out/_next/static/chunks/2urx6fow8c8c9.js +505 -0
  170. package/out/_next/static/chunks/2w2k1gveljyb7.js +1 -0
  171. package/out/_next/static/chunks/{22rl_arnzs-ve.js → 2w99knknr5i8c.js} +1 -1
  172. package/out/_next/static/chunks/2w_ptlw-ad8-9.js +4 -0
  173. package/out/_next/static/chunks/2ws1s9d52ayv8.js +1 -0
  174. package/out/_next/static/chunks/2x7enks3ydgai.js +1 -0
  175. package/out/_next/static/chunks/{2e46-2ubc90do.js → 2y8i7_nxm4r05.js} +5 -5
  176. package/out/_next/static/chunks/2ydub0t01728d.js +1 -0
  177. package/out/_next/static/chunks/{309f81l5ucsb_.js → 2z_iab7ozohhq.js} +60 -60
  178. package/out/_next/static/chunks/3-m_vzabs1uez.js +1 -0
  179. package/out/_next/static/chunks/{0t89-lfct-7m6.js → 302qk2fjdrthp.js} +5 -5
  180. package/out/_next/static/chunks/30bhz7czzs4mf.js +1 -0
  181. package/out/_next/static/chunks/{0tn-9w46cwydp.js → 30n4y_uu8chbh.js} +515 -514
  182. package/out/_next/static/chunks/{2-hdejef-mpka.js → 32_c4mbb6j1l6.js} +372 -169
  183. package/out/_next/static/chunks/33hp-khdfohdq.js +1 -0
  184. package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 33i36o_l69sm5.js} +1 -1
  185. package/out/_next/static/chunks/3527r3jo5fj3i.js +1 -0
  186. package/out/_next/static/chunks/355dg8yaa94hr.js +1 -0
  187. package/out/_next/static/chunks/{11p92pnn5el0v.js → 35ntbr_c-yx44.js} +1 -1
  188. package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 35sne1llxnc-m.js} +57 -57
  189. package/out/_next/static/chunks/36enkx1skkv2-.js +4 -0
  190. package/out/_next/static/chunks/{3-x7522okdy-7.js → 3772oce1n3t_g.js} +1 -1
  191. package/out/_next/static/chunks/{1rb8wewjbdisv.js → 37cnbm5ft1mqf.js} +1 -1
  192. package/out/_next/static/chunks/38xdo3cifphut.js +1 -0
  193. package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 3_dgblylldcgb.js} +1 -1
  194. package/out/_next/static/chunks/3beawo-qwuk8k.js +1 -0
  195. package/out/_next/static/chunks/3cj_6sl9kr3e9.js +1 -0
  196. package/out/_next/static/chunks/3d-i_skta_wes.js +1 -0
  197. package/out/_next/static/chunks/3df_l2we755bb.js +1 -0
  198. package/out/_next/static/chunks/{43hwl25uke0l_.js → 3eve5y7fpzx2h.js} +1 -1
  199. package/out/_next/static/chunks/3ewgyb4y19w-3.js +1 -0
  200. package/out/_next/static/chunks/3f3789eh18_oy.js +1 -0
  201. package/out/_next/static/chunks/{1n_gxvu31aofy.js → 3f8qelpscqfym.js} +2 -2
  202. package/out/_next/static/chunks/3g3-e9m1en45q.js +1 -0
  203. package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 3h6akt2uu05ku.js} +29 -29
  204. package/out/_next/static/chunks/{3w4qettzp7khe.js → 3huu0tqmxwowu.js} +523 -522
  205. package/out/_next/static/chunks/3i239y-1hbkm-.js +1 -0
  206. package/out/_next/static/chunks/{1qsut_e3msg0l.js → 3ipx7xbxchsq9.js} +1 -1
  207. package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3j9xvdz55bi4p.js} +345 -345
  208. package/out/_next/static/chunks/3kp8qmhoi24oz.js +1 -0
  209. package/out/_next/static/chunks/3ksq69yq-40_r.js +1 -0
  210. package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3njwfothmmg7u.js} +3 -3
  211. package/out/_next/static/chunks/{0bj_310rugcn1.js → 3oqxl46ukaojj.js} +11 -11
  212. package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 3qn6r8-0u6dij.js} +352 -352
  213. package/out/_next/static/chunks/3qye1lytea2i8.js +1 -0
  214. package/out/_next/static/chunks/3rlp9yr75liz7.js +1 -0
  215. package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3sa_hlx3konc7.js} +1 -1
  216. package/out/_next/static/chunks/3tyo643l62h3m.js +1 -0
  217. package/out/_next/static/chunks/3tz2tpqa9uvwm.js +1 -0
  218. package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 3utpc-fc6_y0f.js} +1 -1
  219. package/out/_next/static/chunks/3v-0c2aj6c0on.js +1 -0
  220. package/out/_next/static/chunks/3v6nxa28rxngq.js +1 -0
  221. package/out/_next/static/chunks/{1og49_atcksim.js → 3vbamaoiuk9yj.js} +1 -1
  222. package/out/_next/static/chunks/3vv99btjc-mky.js +1 -0
  223. package/out/_next/static/chunks/{1nqojcig-0m3c.js → 3w59kt5ztyvoq.js} +1 -1
  224. package/out/_next/static/chunks/3x02lxdo28u9i.js +1 -0
  225. package/out/_next/static/chunks/3xl-op0hwxytg.js +272 -0
  226. package/out/_next/static/chunks/3ydnxyc4rvad_.js +1 -0
  227. package/out/_next/static/chunks/3ylg4gfetwgxw.js +1 -0
  228. package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 3zdtteq-r2fs5.js} +3 -3
  229. package/out/_next/static/chunks/3zkwt0gybqtgm.js +1 -0
  230. package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3zs7l4362msjd.js} +1 -1
  231. package/out/_next/static/chunks/40etabvml_71y.js +1 -0
  232. package/out/_next/static/chunks/417jkzz0slv9m.js +1 -0
  233. package/out/_next/static/chunks/41b5gpyqbj58m.js +338 -0
  234. package/out/_next/static/chunks/41u2-5jayyajf.js +22 -0
  235. package/out/_next/static/chunks/42gcpy51w7lk1.js +1 -0
  236. package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 42ymanq326mo7.js} +1 -1
  237. package/out/_next/static/chunks/{3w_umk1xtj6to.js → 43fp64xnfy646.js} +1 -1
  238. package/out/_next/static/chunks/43v4y2gu5z9_h.js +1 -0
  239. package/out/_next/static/chunks/44cer242u-f8v.js +1 -0
  240. package/out/_next/static/chunks/{1ozi46t8jajqh.js → 44zi0gl0a6a8w.js} +1 -1
  241. package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +1 -0
  242. package/out/_not-found/__next._full.txt +12 -12
  243. package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
  244. package/out/_not-found/__next._tree.txt +2 -2
  245. package/out/_not-found.html +1 -1
  246. package/out/_not-found.txt +12 -12
  247. package/out/index.html +1 -1
  248. package/out/index.txt +11 -11
  249. package/package.json +15 -15
  250. package/out/__next._head.txt +0 -6
  251. package/out/__next._index.txt +0 -5
  252. package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
  253. package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
  254. package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
  255. package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
  256. package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
  257. package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
  258. package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
  259. package/out/_next/static/chunks/04j9pexbmysdy.js +0 -1
  260. package/out/_next/static/chunks/055baac5e-c2o.js +0 -1
  261. package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
  262. package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
  263. package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
  264. package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
  265. package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
  266. package/out/_next/static/chunks/099ilz3dmm1jw.js +0 -1
  267. package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
  268. package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
  269. package/out/_next/static/chunks/0c5d3qn2mb3ew.js +0 -1
  270. package/out/_next/static/chunks/0dck67in84de0.js +0 -1
  271. package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
  272. package/out/_next/static/chunks/0dva036n8ab62.js +0 -1
  273. package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
  274. package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
  275. package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
  276. package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
  277. package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
  278. package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
  279. package/out/_next/static/chunks/0n-zml1gn0o1u.js +0 -1
  280. package/out/_next/static/chunks/0n92hec_jb_-_.js +0 -1
  281. package/out/_next/static/chunks/0pv2wirx45e1m.js +0 -1
  282. package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
  283. package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
  284. package/out/_next/static/chunks/0s84ekz_f9ngx.js +0 -1
  285. package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
  286. package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
  287. package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
  288. package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
  289. package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
  290. package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
  291. package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
  292. package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
  293. package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
  294. package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
  295. package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
  296. package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
  297. package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
  298. package/out/_next/static/chunks/18wa83g0qfh-b.js +0 -1
  299. package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
  300. package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
  301. package/out/_next/static/chunks/1__nujzr9e352.js +0 -3
  302. package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
  303. package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
  304. package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
  305. package/out/_next/static/chunks/1di5enkavl9vx.js +0 -4
  306. package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
  307. package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
  308. package/out/_next/static/chunks/1gnggc6370ji-.js +0 -1
  309. package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
  310. package/out/_next/static/chunks/1hsvckd0sgdgr.js +0 -1
  311. package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
  312. package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
  313. package/out/_next/static/chunks/1mrvp94tietcv.js +0 -1
  314. package/out/_next/static/chunks/1mvadj46owrck.js +0 -1
  315. package/out/_next/static/chunks/1nasz7q3tvb53.js +0 -1
  316. package/out/_next/static/chunks/1o3ggu95lfu6i.js +0 -1
  317. package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
  318. package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
  319. package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
  320. package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
  321. package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
  322. package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
  323. package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
  324. package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
  325. package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
  326. package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
  327. package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
  328. package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
  329. package/out/_next/static/chunks/2bm95r0011asw.js +0 -1
  330. package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
  331. package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
  332. package/out/_next/static/chunks/2c2dspoukng-5.js +0 -1
  333. package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
  334. package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
  335. package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
  336. package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
  337. package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
  338. package/out/_next/static/chunks/2ies66gmou203.js +0 -1
  339. package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
  340. package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
  341. package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
  342. package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
  343. package/out/_next/static/chunks/2o8k8x5zcepfy.js +0 -1
  344. package/out/_next/static/chunks/2pcdnd4nzcw4c.js +0 -1
  345. package/out/_next/static/chunks/2q0rz76kj6h5z.js +0 -1
  346. package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
  347. package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
  348. package/out/_next/static/chunks/2wi7y3sfqyqdo.js +0 -3
  349. package/out/_next/static/chunks/2ymtumj-hfrjo.js +0 -1
  350. package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
  351. package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
  352. package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
  353. package/out/_next/static/chunks/31ei992g8gqz9.js +0 -1
  354. package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
  355. package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
  356. package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
  357. package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
  358. package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
  359. package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
  360. package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
  361. package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
  362. package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
  363. package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
  364. package/out/_next/static/chunks/3k-gz8qf-mj-p.js +0 -1
  365. package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
  366. package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
  367. package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
  368. package/out/_next/static/chunks/3mvaub8qjdyuc.js +0 -1
  369. package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
  370. package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
  371. package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
  372. package/out/_next/static/chunks/3tdzweqszru4y.js +0 -1
  373. package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
  374. package/out/_next/static/chunks/3y_51bmdnc0ey.js +0 -1
  375. package/out/_next/static/chunks/3yr66ufoli71t.js +0 -1
  376. package/out/_next/static/chunks/41qxc142snm22.js +0 -1
  377. package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
  378. package/out/_next/static/chunks/turbopack-3r8yn0j92tqw_.js +0 -1
  379. package/out/_not-found/__next._head.txt +0 -6
  380. package/out/_not-found/__next._index.txt +0 -5
  381. package/out/_not-found/__next._not-found.txt +0 -5
  382. /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_buildManifest.js +0 -0
  383. /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_clientMiddlewareManifest.js +0 -0
  384. /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79428,e=>{"use strict";var t=e.i(72003),s=e.i(56145);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,r=!0){let i;if(!this.pickedMesh||r&&!this.pickedMesh.isVerticesDataPresent(s.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],h=t.TmpVectors.Vector3[1],o=t.TmpVectors.Vector3[2];if(r){let e=this.pickedMesh.getVerticesData(s.VertexBuffer.NormalKind),r=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);r=r.scale(this.bu),l=l.scale(this.bv),c=c.scale(1-this.bu-this.bv),i=new t.Vector3(r.x+l.x+c.x,r.y+l.y+c.y,r.z+l.z+c.z)}else{let e=this.pickedMesh.getVerticesData(s.VertexBuffer.PositionKind),r=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=r.subtract(l),p=c.subtract(l);i=t.Vector3.Cross(u,p)}let l=(e,s)=>{if(-1!==this.thinInstanceIndex){let r=e._thinInstanceDataStorage.matrixData,i=this.thinInstanceIndex<<4;if(r&&r.length>i){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(r,i,e),t.Vector3.TransformNormalToRef(s,e,s)}}let r=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(r),(r=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),r.invert(),r.transposeToRef(t.TmpVectors.Matrix[1]),r=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(s,r,s)};if(e&&l(this.pickedMesh,i),this.ray){let s=t.TmpVectors.Vector3[0].copyFrom(i);e||l(this.pickedMesh,s),t.Vector3.Dot(s,this.ray.direction)>0&&i.negateInPlace()}return i.normalize(),i}getTextureCoordinates(e=s.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let r=this.pickedMesh.getIndices();if(!r)return null;let i=this.pickedMesh.getVerticesData(e);if(!i)return null;let n=t.Vector2.FromArray(i,2*r[3*this.faceId]),a=t.Vector2.FromArray(i,2*r[3*this.faceId+1]),h=t.Vector2.FromArray(i,2*r[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),h=h.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+h.x,n.y+a.y+h.y)}}])},30958,e=>{"use strict";var t,s;(s=t||(t={}))[s.PointerMove=0]="PointerMove",s[s.PointerDown=1]="PointerDown",s[s.PointerUp=2]="PointerUp";class r{}r.DOM_DELTA_PIXEL=0,r.DOM_DELTA_LINE=1,r.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,r])},43003,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class s{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,s,"KeyboardInfoPre",0,class extends s{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},37405,e=>{"use strict";var t=e.i(72003);class s{}s.POINTERDOWN=1,s.POINTERUP=2,s.POINTERMOVE=4,s.POINTERWHEEL=8,s.POINTERPICK=16,s.POINTERTAP=32,s.POINTERDOUBLETAP=64;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,s,"PointerInfo",0,class extends r{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,s,r=null){super(e,t),this._pickInfo=s,this._inputManager=r}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends r{constructor(e,s,r,i){super(e,s),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(r,i)}}])},48390,e=>{"use strict";e.s(["EffectFallbacks",0,class{constructor(){this._defines={},this._currentRank=32,this._maxRank=-1,this._mesh=null}unBindMesh(){this._mesh=null}addFallback(e,t){this._defines[e]||(e<this._currentRank&&(this._currentRank=e),e>this._maxRank&&(this._maxRank=e),this._defines[e]=[]),this._defines[e].push(t)}addCPUSkinningFallback(e,t){this._mesh=t,e<this._currentRank&&(this._currentRank=e),e>this._maxRank&&(this._maxRank=e)}get hasMoreFallbacks(){return this._currentRank<=this._maxRank}reduce(e,t){if(this._mesh&&this._mesh.computeBonesUsingShaders&&this._mesh.numBoneInfluencers>0){this._mesh.computeBonesUsingShaders=!1,e=e.replace("#define NUM_BONE_INFLUENCERS "+this._mesh.numBoneInfluencers,"#define NUM_BONE_INFLUENCERS 0"),t._bonesComputationForcedToCPU=!0;let s=this._mesh.getScene();for(let e=0;e<s.meshes.length;e++){let r=s.meshes[e];if(!r.material){!this._mesh.material&&r.computeBonesUsingShaders&&r.numBoneInfluencers>0&&(r.computeBonesUsingShaders=!1);continue}if(r.computeBonesUsingShaders&&0!==r.numBoneInfluencers){if(r.material.getEffect()===t)r.computeBonesUsingShaders=!1;else if(r.subMeshes){for(let e of r.subMeshes)if(e.effect===t){r.computeBonesUsingShaders=!1;break}}}}}else{let t=this._defines[this._currentRank];if(t)for(let s=0;s<t.length;s++)e=e.replace("#define "+t[s],"");this._currentRank++}return e}}])},44351,e=>{"use strict";var t=e.i(72003),s=e.i(7361);class r extends s.Material{constructor(e,s,r=!0,i=!1){super(e,s,void 0,i),this._normalMatrix=new t.Matrix,this._storeEffectOnSubMeshes=r}getEffect(){return this._storeEffectOnSubMeshes?this._activeEffect:super.getEffect()}isReady(e,t){return!!e&&(!this._storeEffectOnSubMeshes||!e.subMeshes||0===e.subMeshes.length||this.isReadyForSubMesh(e,e.subMeshes[0],t))}_isReadyForSubMesh(e){let t=e.materialDefines;return!this.checkReadyOnEveryCall&&!!e.effect&&!!t&&t._renderId===this.getScene().getRenderId()}bindOnlyWorldMatrix(e){this._activeEffect.setMatrix("world",e)}bindOnlyNormalMatrix(e){this._activeEffect.setMatrix("normalMatrix",e)}bind(e,t){t&&this.bindForSubMesh(e,t,t.subMeshes[0])}_afterBind(e,t=null,s){super._afterBind(e,t,s),this.getScene()._cachedEffect=t,s?s._drawWrapper._forceRebindOnNextCall=!1:this._drawWrapper._forceRebindOnNextCall=!1}_mustRebind(e,t,s,r=1){return s._drawWrapper._forceRebindOnNextCall||e.isCachedMaterialInvalid(this,t,r)}dispose(e,t,s){this._activeEffect=void 0,super.dispose(e,t,s)}}e.s(["PushMaterial",0,r])},75839,e=>{"use strict";let t=new WeakMap;e.s(["BindVertexPullingUniforms",0,function(e,t){t.forEach((t,s)=>{let r=`vp_${s}_info`;e.setFloat4(r,t.offset,t.stride,t.type,+!!t.normalized)})},"PrepareVertexPullingUniforms",0,function(e){let s=e.getVertexBuffers();if(!s)return null;let r=t.get(e);if(r){let e=!1;for(let t in s)if(!r.has(t)){e=!0;break}if(!e)return r}else r=new Map,t.set(e,r);for(let e in s){let t=s[e];if(t){let s=t.byteOffset,i=t.byteStride,n=t.type,a=t.normalized;r.set(e,{offset:s,stride:i,type:n,normalized:a})}}return r}])},63833,e=>{"use strict";var t=e.i(1306);class s{static GetPlanes(e){let r=[];for(let e=0;e<6;e++)r.push(new t.Plane(0,0,0,0));return s.GetPlanesToRef(e,r),r}static GetNearPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[2],t.normal.y=s[7]+s[6],t.normal.z=s[11]+s[10],t.d=s[15]+s[14],t.normalize()}static GetFarPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[2],t.normal.y=s[7]-s[6],t.normal.z=s[11]-s[10],t.d=s[15]-s[14],t.normalize()}static GetLeftPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[0],t.normal.y=s[7]+s[4],t.normal.z=s[11]+s[8],t.d=s[15]+s[12],t.normalize()}static GetRightPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[0],t.normal.y=s[7]-s[4],t.normal.z=s[11]-s[8],t.d=s[15]-s[12],t.normalize()}static GetTopPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[1],t.normal.y=s[7]-s[5],t.normal.z=s[11]-s[9],t.d=s[15]-s[13],t.normalize()}static GetBottomPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[1],t.normal.y=s[7]+s[5],t.normal.z=s[11]+s[9],t.d=s[15]+s[13],t.normalize()}static GetPlanesToRef(e,t){s.GetNearPlaneToRef(e,t[0]),s.GetFarPlaneToRef(e,t[1]),s.GetLeftPlaneToRef(e,t[2]),s.GetRightPlaneToRef(e,t[3]),s.GetTopPlaneToRef(e,t[4]),s.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let s=0;s<6;s++)if(0>t[s].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,s])},39913,e=>{"use strict";var t=e.i(63391);class s{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=s.Enabled,this._lastSecValueCount++}addCount(e,t){s.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){s.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!s.Enabled)return;e&&this.fetchNewFrame();let r=t.PrecisionDate.Now;this._current=r-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}s.Enabled=!0,e.s(["PerfCounter",0,s])},86978,30565,e=>{"use strict";var t=e.i(56145),s=e.i(42704);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new s.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let s=0;s<e.length;s++){let r=e[s];r&&t.push(r)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let s=this._scene.activeCamera;return!!s&&!!(t=t||this._getActivePostProcesses(s._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(s,e,null!=t),!0)}directRender(e,t=null,s=!1,r=0,i=0,n=!1,a=e.length){let h=this._scene.getEngine();for(let o=0;o<a;o++){o<e.length-1?e[o+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?h.bindFramebuffer(t,r,void 0,void 0,s,i):n||h.restoreDefaultFramebuffer(),h._debugInsertMarker?.(`post process ${e[o].name} output`));let a=e[o],l=a.apply();l&&(a.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),h.bindBuffers(this._vertexBuffers,this._indexBuffer,l),h.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(l))}h.setDepthBuffer(!0),h.setDepthWrite(!0)}_finalizeFrame(e,t,s,r,i=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(r=r||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let h=0,o=r.length;h<o;h++){let l=r[h];if(h<o-1?l._outputTexture=r[h+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,s,void 0,void 0,i),l._outputTexture=t):(a.restoreDefaultFramebuffer(),l._outputTexture=null),a._debugInsertMarker?.(`post process ${r[h].name} output`)),e)break;let c=l.apply();c&&(l.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,c),a.drawElementsType(0,0,6),l.onAfterRenderObservable.notifyObservers(c))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],86978);var r=e.i(36598),i=e.i(72003);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,s=null,i=null,n=null){this.index=e,this._opaqueSubMeshes=new r.SmartArray(256),this._transparentSubMeshes=new r.SmartArray(256),this._alphaTestSubMeshes=new r.SmartArray(256),this._depthOnlySubMeshes=new r.SmartArray(256),this._particleSystems=new r.SmartArray(256),this._spriteManagers=new r.SmartArray(256),this._empty=!0,this._edgesRenderers=new r.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=s,this.alphaTestSortCompareFn=i,this.transparentSortCompareFn=n}render(e,t,s,r,i=!0,n=!0,a=!0,h=!0,o){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let l=this._scene.getEngine();i&&0!==this._depthOnlySubMeshes.length&&(l.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),l.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let c=l.getStencilBuffer();if(l.setStencilBuffer(!1),t&&this._renderSprites(),s&&this._renderParticles(r),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),h&&(o||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(l.setStencilBuffer(c),o)o(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);l.setAlphaMode(0)}if(l.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();l.setAlphaMode(0)}l.setStencilBuffer(c)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,s,r,a){let h,o=0,l=s?s.globalPosition:n._ZeroVector;if(r)for(;o<e.length;o++)(h=e.data[o])._alphaIndex=h.getMesh().alphaIndex,h._distanceToCamera=i.Vector3.Distance(h.getBoundingInfo().boundingSphere.centerWorld,l);let c=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&c.sort(t);let u=c[0].getMesh().getScene();for(o=0;o<c.length;o++)if(h=c[o],!u._activeMeshesFrozenButKeepClipping||h.isInFrustum(u._frustumPlanes)){if(r){let e=h.getMaterial();if(e&&e.needDepthPrePass&&!a){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),h.render(!1),t.setColorWrite(!0)}}h.render(r)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let s=e.getMesh(),r=t.getMesh();return s.material&&r.material?s.material.uniqueId-r.material.uniqueId:s.uniqueId-r.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),void 0===s&&(s=e.getMaterial()),null!=s&&(s.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):s.needAlphaTestingForMesh(t)?(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let s=0;s<this._particleSystems.length;s++){let r=this._particleSystems.data[s];if(0===(t&&t.layerMask&r.layerMask))continue;let i=r.emitter;i.position&&e&&-1===e.indexOf(i)||this._scene._activeParticles.addCount(r.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let s=this._spriteManagers.data[t];0!==(e&&e.layerMask&s.layerMask)&&s.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}n._ZeroVector=i.Vector3.Zero();class a{}class h{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new a,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,s,r,i=!0,n=!0,a=!0,o=!0,l){let c=this._renderingGroupInfo;if(c.scene=this._scene,c.camera=this._scene.activeCamera,c.renderingManager=this,this._scene.spriteManagers&&r)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=h.MIN_RENDERINGGROUPS;u<h.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===h.MIN_RENDERINGGROUPS;let p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(c.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(c,d),h.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let h of(p.render(e,r,s,t,i,n,a,o,l),this._scene._afterRenderingGroupDrawStage))h.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(c,d)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,s))}setRenderingOrder(e,t=null,s=null,r=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=s,this._customTransparentSortCompareFn[e]=r,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,s=!0,r=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:s,stencil:r}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}h.MAX_RENDERINGGROUPS=4,h.MIN_RENDERINGGROUPS=0,h.AUTOCLEAR=!0,e.s(["RenderingManager",0,h],30565)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57494,e=>{"use strict";var t=e.i(55080),r=e.i(85789),a=e.i(33169),o=e.i(6939),l=e.i(2596),n=e.i(99429);let i=!1;e.s(["RegisterAbstractEngineCubeTexture",0,function(){i||(i=!0,n.AbstractEngine.prototype._partialLoadFile=function(e,t,r,a,o=null){this._loadFile(e,e=>{r[t]=e,r._internalCount++,6===r._internalCount&&a(r)},void 0,void 0,!0,(e,t)=>{o&&e&&o(e.status+" "+e.statusText,t)})},n.AbstractEngine.prototype._cascadeLoadFiles=function(e,t,r,a=null){let o=[];o._internalCount=0;for(let e=0;e<6;e++)this._partialLoadFile(r[e],e,o,t,a)},n.AbstractEngine.prototype._cascadeLoadImgs=function(e,t,r,a,o=null,l){let n=[];n._internalCount=0;for(let i=0;i<6;i++)this._partialLoadImg(a[i],i,n,e,t,r,o,l)},n.AbstractEngine.prototype._partialLoadImg=function(e,t,r,l,n,i,s=null,f){let u=(0,o.RandomGUID)();(0,a.LoadImage)(e,e=>{r[t]=e,r._internalCount++,l&&l.removePendingData(u),6===r._internalCount&&i&&i(n,r)},(e,t)=>{l&&l.removePendingData(u),s&&s(e,t)},l?l.offlineProvider:null,f),l&&l.addPendingData(u)},n.AbstractEngine.prototype.createCubeTextureBase=function(e,a,o,n,i=null,s=null,f,u=null,c=!1,p=0,d=0,A=null,h=null,m=null,F=!1,y=null){let _,w,C=A||new t.InternalTexture(this,7);C.isCube=!0,C.url=e,C.generateMipMaps=!n,C._lodGenerationScale=p,C._lodGenerationOffset=d,C._useSRGBBuffer=!!F&&this._caps.supportSRGBBuffers&&(this.version>1||this.isWebGPU||!!n),C!==A&&(C.label=e.substring(0,60)),this._doNotHandleContextLost||(C._extension=u,C._files=o,C._buffer=y);let b=e;this._transformTextureUrl&&!A&&(e=this._transformTextureUrl(e));let g=u??((w=(_=e.split("?")[0]).lastIndexOf("."))>-1?_.substring(w).toLowerCase():""),B=(0,l._GetCompatibleTextureLoader)(g),G=(e,t)=>{C.dispose(),s?s(e,t):e&&r.Logger.Warn(e)},x=(t,l)=>{e===b?t&&G(t.status+" "+t.statusText,l):(r.Logger.Warn(`Failed to load ${e}, falling back to the ${b}`),this.createCubeTextureBase(b,a,o,!!n,i,G,f,u,c,p,d,C,h,m,F,y))};if(B)B.then(t=>{let r=e=>{h&&h(C,e),t.loadCubeData(e,C,c,i,(e,t)=>{G(e,t)})};y?r(y):o&&6===o.length?t.supportCascades?this._cascadeLoadFiles(a,e=>r(e.map(e=>new Uint8Array(e))),o,G):G("Textures type does not support cascades."):this._loadFile(e,e=>r(new Uint8Array(e)),void 0,a?a.offlineProvider||null:void 0,!0,x)});else{if(!o||0===o.length)throw Error("Cannot load cubemap because files were not defined, or the correct loader was not found.");this._cascadeLoadImgs(a,C,(e,t)=>{m&&m(e,t)},o,G)}return this._internalTexturesCache.push(C),C})}],57494)},28341,e=>{"use strict";var t=e.i(72003),r=e.i(46202),a=e.i(27952),o=e.i(26747),l=e.i(64073);class n{constructor(e,t,r,a){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=a}}class i{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let a=e.getSize().width,o=e._sphericalPolynomialTargetSize,l=o>0?this._NearestPow2Floor(o):0,n=!e.noMipmap&&e._texture?.generateMipMaps===!0,i=l>0&&l<a&&n,s=i?Math.max(0,Math.round(Math.log2(a/l))):0,f=i?Math.max(1,Math.floor(a/Math.pow(2,s))):a,u=e.readPixels(0,s,void 0,!1),c=e.readPixels(1,s,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,s,void 0,!1),r=e.readPixels(2,s,void 0,!1)):(t=e.readPixels(2,s,void 0,!1),r=e.readPixels(3,s,void 0,!1));let p=e.readPixels(4,s,void 0,!1),d=e.readPixels(5,s,void 0,!1),A=e.gammaSpace,h=l>0&&l<a&&!i;return new Promise(e=>{Promise.all([c,u,t,r,p,d]).then(([t,r,o,n,i,s])=>{let u=f;h&&(t=this._DownsampleFace(t,a,l,4),r=this._DownsampleFace(r,a,l,4),o=this._DownsampleFace(o,a,l,4),n=this._DownsampleFace(n,a,l,4),i=this._DownsampleFace(i,a,l,4),s=this._DownsampleFace(s,a,l,4),u=l);let c={size:u,right:r,left:t,up:o,down:n,front:i,back:s,format:5,type:+(t instanceof Float32Array),gammaSpace:A};e(this.ConvertCubeMapToSphericalPolynomial(c))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,a){let o=e instanceof Float32Array?e:Float32Array.from(e),l=r*r*a,n=new Float32Array(l),i=t/r,s=1/(i*i);for(let e=0;e<r;e++){let l=Math.floor(e*i),f=Math.floor((e+1)*i);for(let u=0;u<r;u++){let c=Math.floor(u*i),p=Math.floor((u+1)*i),d=(e*r+u)*a;for(let e=0;e<a;e++){let r=0;for(let n=l;n<f;n++)for(let l=c;l<p;l++)r+=o[(n*t+l)*a+e];n[d+e]=r*s}}}if(e instanceof Float32Array)return n;let f=new e.constructor(l);for(let e=0;e<l;e++)f[e]=n[e]+.5|0;return f}static ConvertCubeMapToSphericalPolynomial(e,t=0){let n=t>0?this._NearestPow2Floor(t):0;if(n>0&&e.size>n){let t=5===e.format?4:3,r={};for(let a of["right","left","up","down","front","back"])r[a]=this._DownsampleFace(e[a],e.size,n,t);e={...e,...r,size:n}}let i=new a.SphericalHarmonics,s=0,f=2/e.size,u=.5*f,c=u-1;for(let t=0;t<6;t++){let a=this._FileFaces[t],n=e[a.name],p=c,d=5===e.format?4:3;for(let t=0;t<e.size;t++){let A=c;for(let c=0;c<e.size;c++){let h=a.worldAxisForFileX.scale(A).add(a.worldAxisForFileY.scale(p)).add(a.worldAxisForNormal);h.normalize();let m=this._AreaElement(A-u,p-u)-this._AreaElement(A-u,p+u)-this._AreaElement(A+u,p-u)+this._AreaElement(A+u,p+u),F=n[t*e.size*d+c*d+0],y=n[t*e.size*d+c*d+1],_=n[t*e.size*d+c*d+2];isNaN(F)&&(F=0),isNaN(y)&&(y=0),isNaN(_)&&(_=0),0===e.type&&(F/=255,y/=255,_/=255),e.gammaSpace&&(F=Math.pow((0,r.Clamp)(F),o.ToLinearSpace),y=Math.pow((0,r.Clamp)(y),o.ToLinearSpace),_=Math.pow((0,r.Clamp)(_),o.ToLinearSpace));let w=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(F,y,_);if(e>w){let t=w/e;F*=t,y*=t,_*=t}}else F=(0,r.Clamp)(F,0,w),y=(0,r.Clamp)(y,0,w),_=(0,r.Clamp)(_,0,w);let C=new l.Color3(F,y,_);i.addLight(h,C,m),s+=m,A+=f}p+=f}}let p=4*Math.PI*6/6/s;return i.scaleInPlace(p),i.convertIncidentRadianceToIrradiance(),i.convertIrradianceToLambertianRadiance(),a.SphericalPolynomial.FromHarmonics(i)}}i._FileFaces=[new n("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new n("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new n("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new n("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new n("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new n("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],i.MAX_HDRI_VALUE=4096,i.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,i])},6668,e=>{"use strict";(0,e.i(57494).RegisterAbstractEngineCubeTexture)(),e.s([],11552),e.i(11552);var t=e.i(24928);e.s(["DDSTools",()=>t.DDSTools],6668)},24928,e=>{"use strict";var t=e.i(46202),r=e.i(85789),a=e.i(28341),o=e.i(66464);function l(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}let n=l("DXT1"),i=l("DXT3"),s=l("DXT5"),f=l("DX10");class u{static GetDDSInfo(e){let t=new Int32Array(e.buffer,e.byteOffset,31),r=new Int32Array(e.buffer,e.byteOffset,35),a=1;131072&t[2]&&(a=Math.max(1,t[7]));let o=t[21],l=o===f?r[32]:0,u=0;switch(o){case 113:u=2;break;case 116:u=1;break;case f:if(10===l){u=2;break}2===l&&(u=1)}return{width:t[4],height:t[3],mipmapCount:a,isFourCC:(4&t[20])==4,isRGB:(64&t[20])==64,isLuminance:(131072&t[20])==131072,isCube:(512&t[28])==512,isCompressed:o===n||o===i||o===s,dxgiFormat:l,textureType:u}}static _GetHalfFloatAsFloatRGBAArrayBuffer(e,t,r,a,l,n){let i=new Float32Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;i[f]=(0,o.FromHalfFloat)(s[a]),i[f+1]=(0,o.FromHalfFloat)(s[a+1]),i[f+2]=(0,o.FromHalfFloat)(s[a+2]),u.StoreLODInAlphaChannel?i[f+3]=n:i[f+3]=(0,o.FromHalfFloat)(s[a+3]),f+=4}return i}static _GetHalfFloatRGBAArrayBuffer(e,t,r,a,l,n){if(u.StoreLODInAlphaChannel){let i=new Uint16Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;i[f]=s[a],i[f+1]=s[a+1],i[f+2]=s[a+2],i[f+3]=(0,o.ToHalfFloat)(n),f+=4}return i}return new Uint16Array(l,r,a)}static _GetFloatRGBAArrayBuffer(e,t,r,a,o,l){if(u.StoreLODInAlphaChannel){let n=new Float32Array(a),i=new Float32Array(o,r),s=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;n[s]=i[a],n[s+1]=i[a+1],n[s+2]=i[a+2],n[s+3]=l,s+=4}return n}return new Float32Array(o,r,a)}static _GetFloatAsHalfFloatRGBAArrayBuffer(e,t,r,a,l,n){let i=new Uint16Array(a),s=new Float32Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++)i[f]=(0,o.ToHalfFloat)(s[f]),i[f+1]=(0,o.ToHalfFloat)(s[f+1]),i[f+2]=(0,o.ToHalfFloat)(s[f+2]),u.StoreLODInAlphaChannel?i[f+3]=(0,o.ToHalfFloat)(n):i[f+3]=(0,o.ToHalfFloat)(s[f+3]),f+=4;return i}static _GetFloatAsUIntRGBAArrayBuffer(e,r,a,o,l,n){let i=new Uint8Array(o),s=new Float32Array(l,a),f=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let o=(r+a*e)*4;i[f]=255*(0,t.Clamp)(s[o]),i[f+1]=255*(0,t.Clamp)(s[o+1]),i[f+2]=255*(0,t.Clamp)(s[o+2]),u.StoreLODInAlphaChannel?i[f+3]=n:i[f+3]=255*(0,t.Clamp)(s[o+3]),f+=4}return i}static _GetHalfFloatAsUIntRGBAArrayBuffer(e,r,a,l,n,i){let s=new Uint8Array(l),f=new Uint16Array(n,a),c=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let l=(r+a*e)*4;s[c]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l])),s[c+1]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+1])),s[c+2]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+2])),u.StoreLODInAlphaChannel?s[c+3]=i:s[c+3]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+3])),c+=4}return s}static _GetRGBAArrayBuffer(e,t,r,a,o,l,n,i,s){let f=new Uint8Array(a),u=new Uint8Array(o,r),c=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;f[c]=u[a+l],f[c+1]=u[a+n],f[c+2]=u[a+i],f[c+3]=u[a+s],c+=4}return f}static _ExtractLongWordOrder(e){return 0===e||255===e||-0x1000000===e?0:1+u._ExtractLongWordOrder(e>>8)}static _GetRGBArrayBuffer(e,t,r,a,o,l,n,i){let s=new Uint8Array(a),f=new Uint8Array(o,r),u=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*3;s[u]=f[a+l],s[u+1]=f[a+n],s[u+2]=f[a+i],u+=3}return s}static _GetLuminanceArrayBuffer(e,t,r,a,o){let l=new Uint8Array(a),n=new Uint8Array(o,r),i=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=t+r*e;l[i]=n[a],i++}return l}static UploadDDSLevels(e,t,o,l,c,p,d=-1,A,h=!0){let m,F,y,_=null;l.sphericalPolynomial&&(_=[]);let w=!!e.getCaps().s3tc;t.generateMipMaps=c;let C=new Int32Array(o.buffer,o.byteOffset,31),b,g,B,G=0,x,T=0,L=1;if(0x20534444!==C[0])return void r.Logger.Error("Invalid magic number in DDS header");if(!l.isFourCC&&!l.isRGB&&!l.isLuminance)return void r.Logger.Error("Unsupported format, must contain a FourCC, RGB or LUMINANCE code");if(l.isCompressed&&!w)return void r.Logger.Error("Compressed textures are not supported on this platform.");let D=C[22];x=C[1]+4;let R=!1;if(l.isFourCC)switch(b=C[21]){case n:L=8,T=33777;break;case i:L=16,T=33778;break;case s:L=16,T=33779;break;case 113:R=!0,D=64;break;case 116:R=!0,D=128;break;case f:{x+=20;let e=!1;switch(l.dxgiFormat){case 10:R=!0,D=64,e=!0;break;case 2:R=!0,D=128,e=!0;break;case 88:l.isRGB=!0,l.isFourCC=!1,D=32,e=!0}if(e)break}default:r.Logger.Error(["Unsupported FourCC code:",String.fromCharCode(255&b,b>>8&255,b>>16&255,b>>24&255)]);return}let M=u._ExtractLongWordOrder(C[23]),S=u._ExtractLongWordOrder(C[24]),P=u._ExtractLongWordOrder(C[25]),O=u._ExtractLongWordOrder(C[26]);R&&(T=e._getRGBABufferInternalSizedFormat(l.textureType)),F=1,131072&C[2]&&!1!==c&&(F=Math.max(1,C[7]));let U=A||0,v=e.getCaps();for(let r=U;r<p;r++){for(g=C[4],B=C[3],y=0;y<F;++y){if(-1===d||d===y){let a=-1===d?y:0;if(!l.isCompressed&&l.isFourCC){t.format=5,G=g*B*4;let l=null;if(e._badOS||e._badDesktopOS||!v.textureHalfFloat&&!v.textureFloat)128===D?(l=u._GetFloatAsUIntRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a),_&&0==a&&_.push(u._GetFloatRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a))):64===D&&(l=u._GetHalfFloatAsUIntRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a),_&&0==a&&_.push(u._GetHalfFloatAsFloatRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,a))),t.type=0;else{let e,r=v.textureFloat&&(h&&v.textureFloatLinearFiltering||!h),n=v.textureHalfFloat&&(h&&v.textureHalfFloatLinearFiltering||!h),i=(128===D||64===D&&!n)&&r?1:(64===D||128===D&&!r)&&n?2:0,s=null;if(128===D)switch(i){case 1:e=u._GetFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetFloatAsHalfFloatRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer;break;case 0:e=u._GetFloatAsUIntRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer}else switch(i){case 1:e=u._GetHalfFloatAsFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetHalfFloatRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer;break;case 0:e=u._GetHalfFloatAsUIntRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer}t.type=i,l=e(g,B,o.byteOffset+x,G,o.buffer,a),_&&0==a&&_.push(s?s(g,B,o.byteOffset+x,G,o.buffer,a):l)}l&&e._uploadDataToTextureDirectly(t,l,r,a)}else if(l.isRGB)t.type=0,24===D?(t.format=4,G=g*B*3,m=u._GetRGBArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,M,S,P)):(t.format=5,G=g*B*4,m=u._GetRGBAArrayBuffer(g,B,o.byteOffset+x,G,o.buffer,M,S,P,O)),e._uploadDataToTextureDirectly(t,m,r,a);else if(l.isLuminance){let l=e._getUnpackAlignement(),n=g;G=Math.floor((g+l-1)/l)*l*(B-1)+n,m=u._GetLuminanceArrayBuffer(g,B,o.byteOffset+x,G,o.buffer),t.format=1,t.type=0,e._uploadDataToTextureDirectly(t,m,r,a)}else G=Math.max(4,g)/4*Math.max(4,B)/4*L,m=new Uint8Array(o.buffer,o.byteOffset+x,G),t.type=0,e._uploadCompressedDataToTextureDirectly(t,T,g,B,m,r,a)}x+=D?g*B*(D/8):G,g*=.5,B*=.5,g=Math.max(1,g),B=Math.max(1,B)}if(void 0!==A)break}_&&_.length>0?l.sphericalPolynomial=a.CubeMapToSphericalPolynomialTools.ConvertCubeMapToSphericalPolynomial({size:C[4],right:_[0],left:_[1],up:_[2],down:_[3],front:_[4],back:_[5],format:5,type:1,gammaSpace:!1}):l.sphericalPolynomial=void 0}}u.StoreLODInAlphaChannel=!1,e.s(["DDSTools",0,u])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41876,e=>{"use strict";var t=e.i(95358),r=e.i(28341),i=e.i(79452);let s=!1;e.s(["_ENVTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,a,n,o,l){if(Array.isArray(e))return;let h=(0,t.GetEnvInfo)(e);if(h){a.width=h.width,a.height=h.width;try{s||(s=!0,i.BaseTexture.prototype._sphericalPolynomialTargetSize=0,i.BaseTexture.prototype.forceSphericalPolynomialsRecompute=function(){this._texture&&(this._texture._sphericalPolynomial=null,this._texture._sphericalPolynomialPromise=null,this._texture._sphericalPolynomialComputed=!1)},Object.defineProperty(i.BaseTexture.prototype,"sphericalPolynomial",{get:function(){if(this._texture){if(this._texture._sphericalPolynomial||this._texture._sphericalPolynomialComputed)return this._texture._sphericalPolynomial;this._texture.isReady&&(this._texture._sphericalPolynomialPromise||(this._texture._sphericalPolynomialPromise=r.CubeMapToSphericalPolynomialTools.ConvertCubeMapTextureToSphericalPolynomial(this),null===this._texture._sphericalPolynomialPromise?this._texture._sphericalPolynomialComputed=!0:this._texture._sphericalPolynomialPromise.then(e=>{this._texture._sphericalPolynomial=e,this._texture._sphericalPolynomialComputed=!0})))}return null},set:function(e){this._texture&&(this._texture._sphericalPolynomial=e)},enumerable:!0,configurable:!0})),(0,t.UploadEnvSpherical)(a,h),(0,t.UploadEnvLevelsAsync)(a,e,h).then(()=>{a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),o&&o()},e=>{l?.("Can not upload environment levels",e)})}catch(e){l?.("Can not upload environment file",e)}}else l&&l("Can not parse the environment file",null)}loadData(){throw".env not supported in 2d."}}],41876)},9977,e=>{"use strict";var t=e.i(32945);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,r=!0){this.effect=e,void 0!==t&&(this.defines=t),r&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let r=this.effect;e?r.dispose():t.TimingTools.SetImmediate(()=>{r.getEngine().onEndFrameObservable.addOnce(()=>{r.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},94810,e=>{"use strict";var t=e.i(56145),r=e.i(11296),i=e.i(42704),s=e.i(80592),a=e.i(9977);let n={positions:[1,1,-1,1,-1,-1,1,-1],indices:[0,1,2,0,2,3]};class o{static RegisterShaderCodeProcessing(e,t){t?o._CustomShaderCodeProcessing[e??""]=t:delete o._CustomShaderCodeProcessing[e??""]}static _GetShaderCodeProcessing(e){return o._CustomShaderCodeProcessing[e]??o._CustomShaderCodeProcessing[""]}get name(){return this.options.name}set name(e){this.options.name=e}isReady(){return this._drawWrapper.effect?.isReady()??!1}get drawWrapper(){return this._drawWrapper}get effect(){return this._drawWrapper.effect}set effect(e){this._drawWrapper.effect=e}constructor(e){this.alphaMode=0,this.onEffectCreatedObservable=new i.Observable(void 0,!0),this.onApplyObservable=new i.Observable,this._shadersLoaded=!1,this._webGPUReady=!1,this._importPromises=[],this.options={...e,name:e.name||"effectWrapper",engine:e.engine,uniforms:e.uniforms||e.uniformNames||[],uniformNames:void 0,samplers:e.samplers||e.samplerNames||[],samplerNames:void 0,attributeNames:e.attributeNames||["position"],uniformBuffers:e.uniformBuffers||[],defines:e.defines||"",useShaderStore:e.useShaderStore||!1,vertexUrl:e.vertexUrl||e.vertexShader||"postprocess",vertexShader:void 0,fragmentShader:e.fragmentShader||"pass",indexParameters:e.indexParameters,blockCompilation:e.blockCompilation||!1,shaderLanguage:e.shaderLanguage||0,onCompiled:e.onCompiled||void 0,extraInitializations:e.extraInitializations||void 0,extraInitializationsAsync:e.extraInitializationsAsync||void 0,useAsPostProcess:e.useAsPostProcess??!1,allowEmptySourceTexture:e.allowEmptySourceTexture??!1},this.options.uniformNames=this.options.uniforms,this.options.samplerNames=this.options.samplers,this.options.vertexShader=this.options.vertexUrl,this.options.useAsPostProcess&&(this.options.allowEmptySourceTexture||-1!==this.options.samplers.indexOf("textureSampler")||this.options.samplers.push("textureSampler"),-1===this.options.uniforms.indexOf("scale")&&this.options.uniforms.push("scale")),e.vertexUrl||e.vertexShader?this._shaderPath={vertexSource:this.options.vertexShader}:(this.options.useAsPostProcess||(this.options.uniforms.push("scale"),this.onApplyObservable.add(()=>{this.effect.setFloat2("scale",1,1)})),this._shaderPath={vertex:this.options.vertexShader}),this._shaderPath.fragmentSource=this.options.fragmentShader,this._shaderPath.spectorName=this.options.name,this.options.useShaderStore&&(this._shaderPath.fragment=this._shaderPath.fragmentSource,this._shaderPath.vertex||(this._shaderPath.vertex=this._shaderPath.vertexSource),delete this._shaderPath.fragmentSource,delete this._shaderPath.vertexSource),this.onApplyObservable.add(()=>{this.bind()}),this.options.useShaderStore||(this._onContextRestoredObserver=this.options.engine.onContextRestoredObservable.add(()=>{this.effect._pipelineContext=null,this.effect._prepareEffect()})),this._drawWrapper=new a.DrawWrapper(this.options.engine),this._webGPUReady=1===this.options.shaderLanguage;const t=Array.isArray(this.options.defines)?this.options.defines.join("\n"):this.options.defines;this._postConstructor(this.options.blockCompilation,t,this.options.extraInitializations)}_gatherImports(e=!1,t){}_postConstructor(t,r=null,i,s){this._importPromises.length=0,s&&this._importPromises.push(...s);let a=this.options.engine.isWebGPU&&!o.ForceGLSL;this._gatherImports(a,this._importPromises),this.options.useShaderStore&&"postprocess"===this._shaderPath.vertex&&this._importPromises.push(a&&this._webGPUReady?e.A(83572):e.A(19011)),void 0!==i&&i(a,this._importPromises),a&&this._webGPUReady&&(this.options.shaderLanguage=1),t||this.updateEffect(r)}updateEffect(e=null,t=null,r=null,i,a,n,l,h){let d,p=o._GetShaderCodeProcessing(this.name);if(p?.defineCustomBindings){let i=t?.slice()??[];i.push(...this.options.uniforms);let s=r?.slice()??[];s.push(...this.options.samplers),e=p.defineCustomBindings(this.name,e,i,s),t=i,r=s}this.options.defines=e||"";let u=this._shadersLoaded||0===this._importPromises.length?void 0:async()=>{await Promise.all(this._importPromises),this._shadersLoaded=!0};d=this.options.extraInitializationsAsync?async()=>{await u?.(),await this.options.extraInitializationsAsync()}:u,this.options.useShaderStore?this._drawWrapper.effect=this.options.engine.createEffect({vertex:l??this._shaderPath.vertex,fragment:h??this._shaderPath.fragment},{attributes:this.options.attributeNames,uniformsNames:t||this.options.uniforms,uniformBuffersNames:this.options.uniformBuffers,samplers:r||this.options.samplers,defines:null!==e?e:"",fallbacks:null,onCompiled:a??this.options.onCompiled,onError:n??null,indexParameters:i||this.options.indexParameters,processCodeAfterIncludes:p?.processCodeAfterIncludes?(e,t)=>p.processCodeAfterIncludes(this.name,e,t):null,processFinalCode:p?.processFinalCode?(e,t)=>p.processFinalCode(this.name,e,t):null,shaderLanguage:this.options.shaderLanguage,extraInitializationsAsync:d},this.options.engine):this._drawWrapper.effect=new s.Effect(this._shaderPath,this.options.attributeNames,t||this.options.uniforms,r||this.options.samplerNames,this.options.engine,e,void 0,a||this.options.onCompiled,void 0,void 0,void 0,this.options.shaderLanguage,d),this.onEffectCreatedObservable.notifyObservers(this._drawWrapper.effect)}bind(e=!1){this.options.useAsPostProcess&&!e&&(this.options.engine.setAlphaMode(this.alphaMode),this.drawWrapper.effect.setFloat2("scale",1,1)),o._GetShaderCodeProcessing(this.name)?.bindCustomBindings?.(this.name,this._drawWrapper.effect)}dispose(e=!1){this._onContextRestoredObserver&&(this.effect.getEngine().onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null),this.onEffectCreatedObservable.clear(),this._drawWrapper.dispose(!0)}}o.ForceGLSL=!1,o._CustomShaderCodeProcessing={},e.s(["EffectRenderer",0,class{constructor(e,i=n){this._fullscreenViewport=new r.Viewport(0,0,1,1);const s=i.positions??n.positions,a=i.indices??n.indices;this.engine=e,this._vertexBuffers={[t.VertexBuffer.PositionKind]:new t.VertexBuffer(e,s,t.VertexBuffer.PositionKind,!1,!1,2)},this._indexBuffer=e.createIndexBuffer(a),this._indexBufferLength=a.length,this._onContextRestoredObserver=e.onContextRestoredObservable.add(()=>{for(let t in this._indexBuffer=e.createIndexBuffer(a),this._vertexBuffers)this._vertexBuffers[t]._rebuild()})}setViewport(e=this._fullscreenViewport){this.engine.setViewport(e)}bindBuffers(e){this.engine.bindBuffers(this._vertexBuffers,this._indexBuffer,e)}applyEffectWrapper(e,t=!1,r=!1){this.engine.setState(!0),this.engine.depthCullingState.depthTest=t,this.engine.stencilState.stencilTest=r,this.engine.enableEffect(e.drawWrapper),this.bindBuffers(e.effect),e.onApplyObservable.notifyObservers({})}saveStates(){this._savedStateDepthTest=this.engine.depthCullingState.depthTest,this._savedStateStencilTest=this.engine.stencilState.stencilTest}restoreStates(){this.engine.depthCullingState.depthTest=this._savedStateDepthTest,this.engine.stencilState.stencilTest=this._savedStateStencilTest}draw(){this.engine.drawElementsType(0,0,this._indexBufferLength)}_isRenderTargetTexture(e){return void 0!==e.renderTarget}render(e,t=null){if(!e.effect.isReady())return;this.saveStates(),this.setViewport();let r=null===t?null:this._isRenderTargetTexture(t)?t.renderTarget:t;r&&this.engine.bindFramebuffer(r),this.applyEffectWrapper(e),this.draw(),r&&this.engine.unBindFramebuffer(r),this.restoreStates()}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),delete this._vertexBuffers[t.VertexBuffer.PositionKind]),this._indexBuffer&&this.engine._releaseBuffer(this._indexBuffer),this._onContextRestoredObserver&&(this.engine.onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null)}},"EffectWrapper",0,o])},11296,e=>{"use strict";e.s(["Viewport",0,class e{constructor(e,t,r,i){this.x=e,this.y=t,this.width=r,this.height=i}toGlobal(t,r){return new e(this.x*t,this.y*r,this.width*t,this.height*r)}toGlobalToRef(e,t,r){return r.x=this.x*e,r.y=this.y*t,r.width=this.width*e,r.height=this.height*t,this}clone(){return new e(this.x,this.y,this.width,this.height)}}])},28341,e=>{"use strict";var t=e.i(72003),r=e.i(46202),i=e.i(27952),s=e.i(26747),a=e.i(64073);class n{constructor(e,t,r,i){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=i}}class o{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let i=e.getSize().width,s=e._sphericalPolynomialTargetSize,a=s>0?this._NearestPow2Floor(s):0,n=!e.noMipmap&&e._texture?.generateMipMaps===!0,o=a>0&&a<i&&n,l=o?Math.max(0,Math.round(Math.log2(i/a))):0,h=o?Math.max(1,Math.floor(i/Math.pow(2,l))):i,d=e.readPixels(0,l,void 0,!1),p=e.readPixels(1,l,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,l,void 0,!1),r=e.readPixels(2,l,void 0,!1)):(t=e.readPixels(2,l,void 0,!1),r=e.readPixels(3,l,void 0,!1));let u=e.readPixels(4,l,void 0,!1),c=e.readPixels(5,l,void 0,!1),f=e.gammaSpace,m=a>0&&a<i&&!o;return new Promise(e=>{Promise.all([p,d,t,r,u,c]).then(([t,r,s,n,o,l])=>{let d=h;m&&(t=this._DownsampleFace(t,i,a,4),r=this._DownsampleFace(r,i,a,4),s=this._DownsampleFace(s,i,a,4),n=this._DownsampleFace(n,i,a,4),o=this._DownsampleFace(o,i,a,4),l=this._DownsampleFace(l,i,a,4),d=a);let p={size:d,right:r,left:t,up:s,down:n,front:o,back:l,format:5,type:+(t instanceof Float32Array),gammaSpace:f};e(this.ConvertCubeMapToSphericalPolynomial(p))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,i){let s=e instanceof Float32Array?e:Float32Array.from(e),a=r*r*i,n=new Float32Array(a),o=t/r,l=1/(o*o);for(let e=0;e<r;e++){let a=Math.floor(e*o),h=Math.floor((e+1)*o);for(let d=0;d<r;d++){let p=Math.floor(d*o),u=Math.floor((d+1)*o),c=(e*r+d)*i;for(let e=0;e<i;e++){let r=0;for(let n=a;n<h;n++)for(let a=p;a<u;a++)r+=s[(n*t+a)*i+e];n[c+e]=r*l}}}if(e instanceof Float32Array)return n;let h=new e.constructor(a);for(let e=0;e<a;e++)h[e]=n[e]+.5|0;return h}static ConvertCubeMapToSphericalPolynomial(e,t=0){let n=t>0?this._NearestPow2Floor(t):0;if(n>0&&e.size>n){let t=5===e.format?4:3,r={};for(let i of["right","left","up","down","front","back"])r[i]=this._DownsampleFace(e[i],e.size,n,t);e={...e,...r,size:n}}let o=new i.SphericalHarmonics,l=0,h=2/e.size,d=.5*h,p=d-1;for(let t=0;t<6;t++){let i=this._FileFaces[t],n=e[i.name],u=p,c=5===e.format?4:3;for(let t=0;t<e.size;t++){let f=p;for(let p=0;p<e.size;p++){let m=i.worldAxisForFileX.scale(f).add(i.worldAxisForFileY.scale(u)).add(i.worldAxisForNormal);m.normalize();let g=this._AreaElement(f-d,u-d)-this._AreaElement(f-d,u+d)-this._AreaElement(f+d,u-d)+this._AreaElement(f+d,u+d),_=n[t*e.size*c+p*c+0],x=n[t*e.size*c+p*c+1],y=n[t*e.size*c+p*c+2];isNaN(_)&&(_=0),isNaN(x)&&(x=0),isNaN(y)&&(y=0),0===e.type&&(_/=255,x/=255,y/=255),e.gammaSpace&&(_=Math.pow((0,r.Clamp)(_),s.ToLinearSpace),x=Math.pow((0,r.Clamp)(x),s.ToLinearSpace),y=Math.pow((0,r.Clamp)(y),s.ToLinearSpace));let w=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(_,x,y);if(e>w){let t=w/e;_*=t,x*=t,y*=t}}else _=(0,r.Clamp)(_,0,w),x=(0,r.Clamp)(x,0,w),y=(0,r.Clamp)(y,0,w);let v=new a.Color3(_,x,y);o.addLight(m,v,g),l+=g,f+=h}u+=h}}let u=4*Math.PI*6/6/l;return o.scaleInPlace(u),o.convertIncidentRadianceToIrradiance(),o.convertIrradianceToLambertianRadiance(),i.SphericalPolynomial.FromHarmonics(o)}}o._FileFaces=[new n("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new n("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new n("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new n("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new n("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new n("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],o.MAX_HDRI_VALUE=4096,o.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,o])},3739,e=>{"use strict";let t,r,i;var s,a=e.i(4112),n=e.i(94810),o=e.i(40379),l=e.i(46202),h=e.i(72986),d=e.i(85789),p=e.i(95708),u=e.i(91679);let c=null;async function f(){let t=h.EngineStore.LastCreatedEngine?.createCanvas(100,100)??new OffscreenCanvas(100,100);t instanceof OffscreenCanvas&&d.Logger.Warn("DumpData: OffscreenCanvas will be used for dumping data. This may result in lossy alpha values.");let{ThinEngine:r}=await e.A(46040);if(!r.IsSupported)throw Error("DumpData: No WebGL context available. Cannot dump data.");let i=new r(t,!1,{preserveDrawingBuffer:!0,depth:!1,stencil:!1,alpha:!0,premultipliedAlpha:!1,antialias:!1,failIfMajorPerformanceCaveat:!1});h.EngineStore.Instances.pop(),h.EngineStore.OnEnginesDisposedObservable.add(e=>{i&&e!==i&&!i.isDisposed&&0===h.EngineStore.Instances.length&&v()}),i.getCaps().parallelShaderCompile=void 0;let s=new n.EffectRenderer(i),{passPixelShader:a}=await e.A(78757),o=new n.EffectWrapper({engine:i,name:a.name,fragmentShader:a.shader,samplerNames:["textureSampler"]});return{canvas:t,dumpEngine:{engine:i,renderer:s,wrapper:o}}}async function m(){return c||(c=f()),await c}let g=(r=[],s=class{static async EncodeImageAsync(e,t,r,i,s,a){let n=await m(),l=n.dumpEngine;l.engine.setSize(t,r,!0);let h=l.engine.createRawTexture(e,t,r,5,!1,!s,1);return l.renderer.setViewport(),l.renderer.applyEffectWrapper(l.wrapper),l.wrapper.effect._bindTexture("textureSampler",h),l.renderer.draw(),h.dispose(),await new Promise((e,t)=>{o.Tools.ToBlob(n.canvas,r=>{r?e(r):t(Error("EncodeImageAsync: Failed to convert canvas to blob."))},i,a)})}},i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[u.nativeOverride],(0,a.__esDecorate)(s,null,t,{kind:"method",name:"EncodeImageAsync",static:!0,private:!1,access:{has:e=>"EncodeImageAsync"in e,get:e=>e.EncodeImageAsync},metadata:i},null,r),i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),(0,a.__runInitializers)(s,r),s),_=g.EncodeImageAsync;async function x(e,t,r,i,s="image/png",a,n){let o=new Uint8Array((await r.readPixels(0,0,e,t)).buffer);w(e,t,o,i,s,a,!0,void 0,n)}async function y(e,t,r,i="image/png",s,a=!1,n=!1,h){if(r instanceof Float32Array){let e=new Uint8Array(r.length),t=r.length;for(;t--;){let i=r[t];e[t]=Math.round(255*(0,l.Clamp)(i))}r=e}let u=await g.EncodeImageAsync(r,e,t,i,a,h);void 0!==s&&o.Tools.DownloadBlob(u,s),u.type!==i&&d.Logger.Warn(`DumpData: The requested mimeType '${i}' is not supported. The result has mimeType '${u.type}' instead.`);let c=await u.arrayBuffer();return n?c:`data:${i};base64,${(0,p.EncodeArrayBufferToBase64)(c)}`}function w(e,t,r,i,s="image/png",a,n=!1,o=!1,l){void 0!==a||i||(a=""),y(e,t,r,s,a,n,o,l).then(e=>{i&&i(e)})}function v(){c&&(c?.then(e=>{e.canvas instanceof HTMLCanvasElement&&e.canvas.remove(),e.dumpEngine&&(e.dumpEngine.engine.dispose(),e.dumpEngine.renderer.dispose(),e.dumpEngine.wrapper.dispose())}),c=null)}let b=!1;e.s(["Dispose",0,v,"DumpData",0,w,"DumpDataAsync",0,y,"DumpFramebuffer",0,x,"DumpTools",0,{DumpData:w,DumpDataAsync:y,DumpFramebuffer:x,Dispose:v},"EncodeImageAsync",0,_,"RegisterDumpTools",0,function(){b||(b=!0,o.Tools.DumpData=w,o.Tools.DumpDataAsync=y,o.Tools.DumpFramebuffer=x)}])},95358,e=>{"use strict";var t=e.i(92929),r=e.i(72003),i=e.i(46202),s=e.i(27952),a=e.i(55080),n=e.i(79452),o=(e.i(87710),e.i(33760)),l=e.i(85789),h=e.i(41339),d=e.i(3739),p=e.i(63615);let u="image/png",c=[134,22,135,150,246,214,150,54];function f(e){if(e.version>2)throw Error(`Unsupported babylon environment map version "${e.version}". Latest supported version is "2".`);return 2===e.version?e:e={...e,version:2,imageType:u}}async function m(e,t,r,i,s,a,n,o,l,h,d){return await new Promise((p,u)=>{if(r){let r=t.createTexture(null,!0,!0,null,1,null,e=>{u(e)},e);i?.onEffectCreatedObservable.addOnce(o=>{o.executeWhenCompiled(()=>{i.externalTextureSamplerBinding=!0,i.onApply=i=>{i._bindTexture("textureSampler",r),i.setFloat2("scale",1,t._features.needsInvertingBitmap&&e instanceof ImageBitmap?-1:1)},t.scenes.length&&(t.scenes[0].postProcessManager.directRender([i],h,!0,a,n),t.restoreDefaultFramebuffer(),r.dispose(),URL.revokeObjectURL(s),p())})})}else{if(t._uploadImageToTexture(d,e,a,n),o){let r=l[n];r&&t._uploadImageToTexture(r._texture,e,a,0)}p()}})}async function g(e,t,r=u){let i=e.getEngine();e.format=5,e.type=0,e.generateMipMaps=!0,e._cachedAnisotropicFilteringLevel=null,i.updateTextureSamplingMode(3,e),await x(e,t,!0,r),e.isReady=!0}async function _(e,t,r,i=u,s=null){let o=e.getEngine(),l=new a.InternalTexture(o,5),h=new n.BaseTexture(o,l);e._irradianceTexture=h,h._dominantDirection=s,l.isCube=!0,l.format=5,l.type=0,l.generateMipMaps=!0,l._cachedAnisotropicFilteringLevel=null,l.generateMipMaps=!0,l.width=r,l.height=r,o.updateTextureSamplingMode(3,l),await x(l,[t],!1,i),o.generateMipMapsForCubemap(l),l.isReady=!0}async function x(r,s,l,h=u){if(!(0,t.IsExponentOfTwo)(r.width))throw Error("Texture size must be a power of two");let d=(0,i.ILog2)(r.width)+1,c=r.getEngine(),f=!1,g=!1,_=null,y=null,w=null,v=c.getCaps();v.textureLOD?c._features.supportRenderAndCopyToLodForFloatTextures?v.textureHalfFloatRender&&v.textureHalfFloatLinearFiltering?(f=!0,r.type=2):v.textureFloatRender&&v.textureFloatLinearFiltering&&(f=!0,r.type=1):f=!1:(f=!1,g=l);let b=0;if(f)c.isWebGPU?(b=1,await e.A(1084)):await e.A(42032),_=new o.PostProcess("rgbdDecode","rgbdDecode",null,null,1,null,3,c,!1,void 0,r.type,void 0,null,!1,void 0,b),r._isRGBD=!1,r.invertY=!1,y=c.createRenderTargetCubeTexture(r.width,{generateDepthBuffer:!1,generateMipMaps:!0,generateStencilBuffer:!1,samplingMode:3,type:r.type,format:5});else if(r._isRGBD=!0,r.invertY=!0,g){w={};let e=r._lodGenerationScale,t=r._lodGenerationOffset;for(let i=0;i<3;i++){let s=(d-1)*e+t,o=Math.round(Math.min(Math.max(t+(s-t)*(1-i/2),0),s)),l=new a.InternalTexture(c,2);l.isCube=!0,l.invertY=!0,l.generateMipMaps=!1,c.updateTextureSamplingMode(2,l);let h=new n.BaseTexture(null);switch(h._isCube=!0,h._texture=l,w[o]=h,i){case 0:r._lodTextureLow=h;break;case 1:r._lodTextureMid=h;break;case 2:r._lodTextureHigh=h}}}let P=[];for(let e=0;e<s.length;e++)for(let t=0;t<6;t++){let i,a=s[e][t],n=new Blob([(0,p.GetBlobBufferSource)(a)],{type:h}),o=URL.createObjectURL(n);if(c._features.forceBitmapOverHTMLImageElement)i=c.createImageBitmap(n,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(async i=>await m(i,c,f,_,o,t,e,g,w,y,r));else{let s=new Image;s.src=o,i=new Promise((i,a)=>{s.onload=()=>{m(s,c,f,_,o,t,e,g,w,y,r).then(()=>i()).catch(e=>{a(e)})},s.onerror=e=>{a(e)}})}P.push(i)}if(await Promise.all(P),s.length<d){let e,t=Math.pow(2,d-1-s.length),i=t*t*4;switch(r.type){case 0:e=new Uint8Array(i);break;case 2:e=new Uint16Array(i);break;case 1:e=new Float32Array(i)}for(let t=s.length;t<d;t++)for(let i=0;i<6;i++)c._uploadArrayBufferViewToTexture(y?.texture||r,e,i,t)}if(y){let e=r._irradianceTexture;r._irradianceTexture=null,c._releaseTexture(r),y._swapAndDie(r),r._irradianceTexture=e}_&&_.dispose(),g&&(r._lodTextureHigh&&r._lodTextureHigh._texture&&(r._lodTextureHigh._texture.isReady=!0),r._lodTextureMid&&r._lodTextureMid._texture&&(r._lodTextureMid._texture.isReady=!0),r._lodTextureLow&&r._lodTextureLow._texture&&(r._lodTextureLow._texture.isReady=!0))}e.s(["GetEnvInfo",0,function(e){let t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=0;for(let e=0;e<c.length;e++)if(r.getUint8(i++)!==c[e])return l.Logger.Error("Not a babylon environment map"),null;let s="";for(;t=r.getUint8(i++);)s+=String.fromCharCode(t);let a=JSON.parse(s);return(a=f(a)).binaryDataPosition=i,a.specular&&(a.specular.lodGenerationScale=a.specular.lodGenerationScale||.8),a},"UploadEnvLevelsAsync",0,function(e,t,i){let s=(i=f(i)).specular;if(!s)return Promise.resolve([]);e._lodGenerationScale=s.lodGenerationScale;let a=[],n=function(e,t){let r=(t=f(t)).specular,i=Math.log2(t.width);if(i=Math.round(i)+1,r.mipmaps.length!==6*i)throw Error(`Unsupported specular mipmaps number "${r.mipmaps.length}"`);let s=Array(i);for(let a=0;a<i;a++){s[a]=Array(6);for(let i=0;i<6;i++){let n=r.mipmaps[6*a+i];s[a][i]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+n.position,n.length)}}return s}(t,i);a.push(g(e,n,i.imageType));let o=i.irradiance?.irradianceTexture;if(o){let s=function(e,t){t=f(t);let r=Array(6),i=t.irradiance?.irradianceTexture;if(i){if(6!==i.faces.length)throw Error(`Incorrect irradiance texture faces number "${i.faces.length}"`);for(let s=0;s<6;s++){let a=i.faces[s];r[s]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+a.position,a.length)}}return r}(t,i),n=null;i.irradiance?.irradianceTexture?.dominantDirection&&(n=r.Vector3.FromArray(i.irradiance.irradianceTexture.dominantDirection)),a.push(_(e,s,o.size,i.imageType,n))}return Promise.all(a)},"UploadEnvSpherical",0,function(e,t){let i=(t=f(t)).irradiance;if(!i)return;let a=new s.SphericalPolynomial;r.Vector3.FromArrayToRef(i.x,0,a.x),r.Vector3.FromArrayToRef(i.y,0,a.y),r.Vector3.FromArrayToRef(i.z,0,a.z),r.Vector3.FromArrayToRef(i.xx,0,a.xx),r.Vector3.FromArrayToRef(i.yy,0,a.yy),r.Vector3.FromArrayToRef(i.zz,0,a.zz),r.Vector3.FromArrayToRef(i.yz,0,a.yz),r.Vector3.FromArrayToRef(i.zx,0,a.zx),r.Vector3.FromArrayToRef(i.xy,0,a.xy),e._sphericalPolynomial=a},"_UpdateRGBDAsync",0,function(e,t,r,i,s){let a=g(e.getEngine().createRawCubeTexture(null,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression),t).then(()=>e);return e.onRebuildCallback=e=>({proxy:a,isReady:!0,isAsync:!0}),e._source=13,e._bufferViewArrayArray=t,e._lodGenerationScale=i,e._lodGenerationOffset=s,e._sphericalPolynomial=r,g(e,t).then(()=>(e.isReady=!0,e))}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56145,e=>{"use strict";var t=e.i(44744),i=e.i(85789),r=e.i(63615),s=e.i(5554);class a{get isDisposed(){return this._isDisposed}constructor(e,i,r,a=0,n=!1,f=!1,h=!1,u,_){this._isAlreadyOwned=!1,this._isDisposed=!1,(0,s.RegisterEngineDynamicBuffer)(),e&&e.getScene?this._engine=e.getScene().getEngine():this._engine=e,this._updatable=r,this._instanced=f,this._divisor=u||1,this._label=_,i instanceof t.DataBuffer?(this._data=null,this._buffer=i):(this._data=i,this._buffer=null),this.byteStride=h?a:a*Float32Array.BYTES_PER_ELEMENT,n||this.create()}createVertexBuffer(e,t,i,r,s,a=!1,f){let h=a?t:t*Float32Array.BYTES_PER_ELEMENT,u=r?a?r:r*Float32Array.BYTES_PER_ELEMENT:this.byteStride;return new n(this._engine,this,e,this._updatable,!0,u,void 0===s?this._instanced:s,h,i,void 0,void 0,!0,this._divisor||f)}isUpdatable(){return this._updatable}getData(){return this._data}getBuffer(){return this._buffer}getStrideSize(){return this.byteStride/Float32Array.BYTES_PER_ELEMENT}create(e=null){!e&&this._buffer||(e=e||this._data)&&(this._buffer?this._updatable&&(this._engine.updateDynamicVertexBuffer(this._buffer,e),this._data=e):this._updatable?(this._buffer=this._engine.createDynamicVertexBuffer(e,this._label),this._data=e):this._buffer=this._engine.createVertexBuffer(e,void 0,this._label))}_rebuild(){if(this._data)this._buffer=null,this.create(this._data);else if(this._buffer){if(this._buffer.capacity>0)return void(this._updatable?this._buffer=this._engine.createDynamicVertexBuffer(this._buffer.capacity,this._label):this._buffer=this._engine.createVertexBuffer(this._buffer.capacity,void 0,this._label));i.Logger.Warn(`Missing data for buffer "${this._label}" ${this._buffer?"(uniqueId: "+this._buffer.uniqueId+")":""}. Buffer reconstruction failed.`),this._buffer=null}}update(e){this.create(e)}updateDirectly(e,t,i,r=!1){this._buffer&&this._updatable&&(this._engine.updateDynamicVertexBuffer(this._buffer,e,r?t:t*Float32Array.BYTES_PER_ELEMENT,i?i*this.byteStride:void 0),0===t&&void 0===i?this._data=e:this._data=null)}_increaseReferences(){if(this._buffer){if(!this._isAlreadyOwned){this._isAlreadyOwned=!0;return}this._buffer.references++}}dispose(){this._buffer&&this._engine._releaseBuffer(this._buffer)&&(this._isDisposed=!0,this._data=null,this._buffer=null)}}class n{get isDisposed(){return this._isDisposed}get instanceDivisor(){return this._instanceDivisor}set instanceDivisor(e){let t=0!=e;this._instanceDivisor=e,t!==this._instanced&&(this._instanced=t,this._computeHashCode())}get _maxVerticesCount(){let e=this.getData();return e?Array.isArray(e)?e.length/(this.byteStride/4)-this.byteOffset/4:(e.byteLength-this.byteOffset)/this.byteStride:0}constructor(e,t,i,s,u,_,o,d,c,p,E=!1,l=!1,T=1,m=!1){let R;if(this._isDisposed=!1,this.engine=e,"object"==typeof s&&null!==s?(R=s.updatable??!1,u=s.postponeInternalCreation,_=s.stride,o=s.instanced,d=s.offset,c=s.size,p=s.type,E=s.normalized??!1,l=s.useBytes??!1,T=s.divisor??1,m=s.takeBufferOwnership??!1,this._label=s.label):R=!!s,t instanceof a?(this._buffer=t,this._ownsBuffer=m):(this._buffer=new a(e,t,R,_,u,o,l,T,this._label),this._ownsBuffer=!0),this.uniqueId=n._Counter++,this._kind=i,void 0===p){const e=this.getData();this.type=e?h(e):n.FLOAT}else this.type=p;const A=(0,r.GetTypeByteLength)(this.type);l?(this._size=c||(_?_/A:f(i)),this.byteStride=_||this._buffer.byteStride||this._size*A,this.byteOffset=d||0):(this._size=c||_||f(i),this.byteStride=_?_*A:this._buffer.byteStride||this._size*A,this.byteOffset=(d||0)*A),this.normalized=E,this._instanced=void 0!==o&&o,this._instanceDivisor=o?T:0,this._alignBuffer(),this._computeHashCode()}static _GetTypeHashIndex(e){switch(e){case n.BYTE:return 0;case n.UNSIGNED_BYTE:return 1;case n.SHORT:return 2;case n.UNSIGNED_SHORT:return 3;case n.INT:return 4;case n.UNSIGNED_INT:return 5;case n.FLOAT:return 6;case n.HALF_FLOAT:return 7;default:throw Error(`Invalid vertex buffer type '${e}'`)}}_computeHashCode(){this.hashCode=(0|n._GetTypeHashIndex(this.type))+(!!this.normalized<<3)+(this._size-1<<4)+(!!this._instanced<<6)+(this.byteStride<<12)}_rebuild(){this._buffer?._rebuild()}getKind(){return this._kind}isUpdatable(){return this._buffer.isUpdatable()}getData(){return this._buffer.getData()}getFloatData(e,t){let i=this.getData();return i?(0,r.GetFloatData)(i,this._size,this.type,this.byteOffset,this.byteStride,this.normalized,e,t):null}getBuffer(){return this._buffer.getBuffer()}getWrapperBuffer(){return this._buffer}getStrideSize(){return this.byteStride/(0,r.GetTypeByteLength)(this.type)}getOffset(){return this.byteOffset/(0,r.GetTypeByteLength)(this.type)}getSize(e=!1){return e?this._size*(0,r.GetTypeByteLength)(this.type):this._size}getIsInstanced(){return this._instanced}getInstanceDivisor(){return this._instanceDivisor}create(e){this._buffer.create(e),this._alignBuffer()}update(e){this._buffer.update(e),this._alignBuffer()}updateDirectly(e,t,i=!1){this._buffer.updateDirectly(e,t,void 0,i),this._alignBuffer()}dispose(){this._ownsBuffer&&this._buffer.dispose(),this._isDisposed=!0}forEach(e,t){(0,r.EnumerateFloatValues)(this._buffer.getData(),this.byteOffset,this.byteStride,this._size,this.type,e,this.normalized,(e,i)=>{for(let r=0;r<this._size;r++)t(e[r],i+r)})}_alignBuffer(){}}function f(e){switch(e){case n.UVKind:case n.UV2Kind:case n.UV3Kind:case n.UV4Kind:case n.UV5Kind:case n.UV6Kind:return 2;case n.NormalKind:case n.PositionKind:return 3;case n.ColorKind:case n.ColorInstanceKind:case n.MatricesIndicesKind:case n.MatricesIndicesExtraKind:case n.MatricesWeightsKind:case n.MatricesWeightsExtraKind:case n.TangentKind:return 4;default:throw Error("Invalid kind '"+e+"'")}}function h(e){if(e instanceof Int8Array)return n.BYTE;if(e instanceof Uint8Array)return n.UNSIGNED_BYTE;if(e instanceof Int16Array)return n.SHORT;if(e instanceof Uint16Array)return n.UNSIGNED_SHORT;if(e instanceof Int32Array)return n.INT;else if(e instanceof Uint32Array)return n.UNSIGNED_INT;else return n.FLOAT}function u(e){return(0,r.GetTypeByteLength)(e)}function _(e,t,i,s,a,n,f,h){(0,r.EnumerateFloatValues)(e,t,i,s,a,n,f,(e,t)=>{for(let i=0;i<s;i++)h(e[i],t+i)})}function o(e,t,i,s,a,n,f,h){return(0,r.GetFloatData)(e,t,i,s,a,n,f,h)}n._Counter=0,n.BYTE=5120,n.UNSIGNED_BYTE=5121,n.SHORT=5122,n.UNSIGNED_SHORT=5123,n.INT=5124,n.UNSIGNED_INT=5125,n.FLOAT=5126,n.HALF_FLOAT=5131,n.PositionKind="position",n.NormalKind="normal",n.TangentKind="tangent",n.UVKind="uv",n.UV2Kind="uv2",n.UV3Kind="uv3",n.UV4Kind="uv4",n.UV5Kind="uv5",n.UV6Kind="uv6",n.ColorKind="color",n.ColorInstanceKind="instanceColor",n.MatricesIndicesKind="matricesIndices",n.MatricesWeightsKind="matricesWeights",n.MatricesIndicesExtraKind="matricesIndicesExtra",n.MatricesWeightsExtraKind="matricesWeightsExtra";let d=!1;e.s(["Buffer",0,a,"RegisterVertexBuffer",0,function(){d||(d=!0,n.DeduceStride=f,n.GetDataType=h,n.GetTypeByteLength=u,n.ForEach=_,n.GetFloatData=o)},"VertexBuffer",0,n,"VertexBufferDeduceStride",0,f,"VertexBufferForEach",0,_,"VertexBufferGetTypeByteLength",0,u])},5554,e=>{"use strict";var t=e.i(76256);let i=!1;e.s(["RegisterEngineDynamicBuffer",0,function(){i||(i=!0,t.ThinEngine.prototype.updateDynamicIndexBuffer=function(e,t,i=0){let r;this._currentBoundBuffer[this._gl.ELEMENT_ARRAY_BUFFER]=null,this.bindIndexBuffer(e),r=e.is32Bits?t instanceof Uint32Array?t:new Uint32Array(t):t instanceof Uint16Array?t:new Uint16Array(t),this._gl.bufferData(this._gl.ELEMENT_ARRAY_BUFFER,r,this._gl.DYNAMIC_DRAW),this._resetIndexBufferBinding()},t.ThinEngine.prototype.updateDynamicVertexBuffer=function(e,t,i,r){this.bindArrayBuffer(e),void 0===i&&(i=0);let s=t.byteLength||t.length;void 0===r||r>=s&&0===i?t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,new Float32Array(t)):this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,t):t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,new Float32Array(t).subarray(0,r/4)):(t=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,r):new Uint8Array(t,0,r),this._gl.bufferSubData(this._gl.ARRAY_BUFFER,i,t)),this._resetVertexBufferBinding()})}])},2342,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},55080,e=>{"use strict";var t,i,r=e.i(42704);class s{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,i=1,r=1,s=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=i,this._cachedAnisotropicFilteringLevel=r,this.samplingMode=s,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=i||(i={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends s{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,i=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new r.Observable,this.onErrorObservable=new r.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,i||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,i=1){this._engine.updateTextureDimensions(this,e,t,i),this.width=e,this.height=t,this.depth=i,this.baseWidth=e,this.baseHeight=t,this.baseDepth=i,this._size=e*t*i}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let i=this._engine.getLoadedTexturesCache(),r=i.indexOf(this);-1!==r&&i.splice(r,1),-1===(r=i.indexOf(e))&&i.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],55080)},17972,e=>{"use strict";var t=e.i(80592),i=e.i(72003),r=e.i(49940),s=e.i(81127);let a=new i.Matrix,n=new i.Matrix,f=new i.Matrix,h={getScene:()=>void 0,eyeAtCamera:!0};function u(e,t,i){let r=i.asArray(),s=t.asArray();for(let e=0;e<16;e++)r[e]=s[e];return r[12]-=e.x,r[13]-=e.y,r[14]-=e.z,i.markAsUpdated(),i}function _(e,t,i){if(!h.eyeAtCamera)return(0,r.InvertMatrixToRef)(t,n),u(e,n,f),(0,r.InvertMatrixToRef)(f,i),i;let s=i.asArray(),a=t.asArray();for(let e=0;e<16;e++)s[e]=a[e];return s[12]=0,s[13]=0,s[14]=0,i.markAsUpdated(),i}function o(e,t,i,s){return(0,r.MultiplyMatricesToRef)(_(e,t,s),i,s),s}function d(e,t,i,s){return(0,r.InvertMatrixToRef)(i,n),(0,r.MultiplyMatricesToRef)(t,n,f),u(e,f,n),_(e,i,f),(0,r.MultiplyMatricesToRef)(n,f,s),s}function c(e,t,i,s,a,h){return(0,r.InvertMatrixToRef)(i,n),(0,r.MultiplyMatricesToRef)(t,n,f),u(e,f,n),o(e,s,a,f),(0,r.MultiplyMatricesToRef)(n,f,h),h}function p(e,t){let i=h.getScene();if(!i||a===t)return t;a.updateFlag=t.updateFlag;let r=i.floatingOriginOffset;switch(e){case"world":return u(r,t,a);case"view":return _(r,t,a);case"worldView":return d(r,t,i.getViewMatrix(),a);case"viewProjection":return o(r,i.getViewMatrix(),i.getProjectionMatrix(),a);case"worldViewProjection":return c(r,t,i.getTransformMatrix(),i.getViewMatrix(),i.getProjectionMatrix(),a);default:if(e.startsWith("u_")){let s=e.toLowerCase();if(s.startsWith("u_worldviewprojection"))return c(r,t,i.getTransformMatrix(),i.getViewMatrix(),i.getProjectionMatrix(),a);if(s.startsWith("u_viewprojection"))return o(r,i.getViewMatrix(),i.getProjectionMatrix(),a);if(s.startsWith("u_worldview"))return d(r,t,i.getViewMatrix(),a);if(s.startsWith("u_world"))return u(r,t,a);if(s.startsWith("u_view"))return _(r,t,a)}return t}}let E=s.UniformBuffer,l=t.Effect,T=E.prototype._updateMatrixForUniform,m=t.Effect.prototype.setMatrix;e.s(["FloatingOriginCurrentScene",0,h,"OverrideMatrixFunctions",0,function(){l.prototype._setMatrixOverride=m,l.prototype.setMatrix=function(e,t){return this._setMatrixOverride(e,p(e,t)),this},E.prototype._updateMatrixForUniformOverride=T,E.prototype._updateMatrixForUniform=function(e,t){this._updateMatrixForUniformOverride(e,p(e,t))}},"ResetMatrixFunctions",0,function(){t.Effect.prototype.setMatrix=m,l._setMatrixOverride=void 0,E.prototype._updateMatrixForUniform=T,E.prototype._updateMatrixForUniformOverride=void 0}])},81127,26801,e=>{"use strict";var t=e.i(85789),i=e.i(40379);class r{constructor(e,t,i=!1,r,s=!1,a){this._uniformNames=[],this._valueCache={},this._engine=e,this._noUBO=!e.supportsUniformBuffers||s,this._dynamic=i,this._name=r??"no-name",this._data=t||[],this._uniformLocations={},this._uniformSizes={},this._uniformArraySizes={},this._uniformLocationPointer=0,this._needSync=!1,this._trackUBOsInFrame=!1,(void 0===a&&this._engine._features.trackUbosInFrame||!0===a)&&(this._buffers=[],this._bufferIndex=-1,this._bufferUpdatedLastFrame=!1,this._createBufferOnWrite=!1,this._currentFrameId=0,this._trackUBOsInFrame=!0),this._noUBO?(this.updateMatrix3x3=this._updateMatrix3x3ForEffect,this.updateMatrix2x2=this._updateMatrix2x2ForEffect,this.updateFloat=this._updateFloatForEffect,this.updateFloat2=this._updateFloat2ForEffect,this.updateFloat3=this._updateFloat3ForEffect,this.updateFloat4=this._updateFloat4ForEffect,this.updateFloatArray=this._updateFloatArrayForEffect,this.updateArray=this._updateArrayForEffect,this.updateIntArray=this._updateIntArrayForEffect,this.updateUIntArray=this._updateUIntArrayForEffect,this.updateMatrix=this._updateMatrixForEffect,this.updateMatrices=this._updateMatricesForEffect,this.updateVector3=this._updateVector3ForEffect,this.updateVector4=this._updateVector4ForEffect,this.updateColor3=this._updateColor3ForEffect,this.updateColor4=this._updateColor4ForEffect,this.updateDirectColor4=this._updateDirectColor4ForEffect,this.updateInt=this._updateIntForEffect,this.updateInt2=this._updateInt2ForEffect,this.updateInt3=this._updateInt3ForEffect,this.updateInt4=this._updateInt4ForEffect,this.updateUInt=this._updateUIntForEffect,this.updateUInt2=this._updateUInt2ForEffect,this.updateUInt3=this._updateUInt3ForEffect,this.updateUInt4=this._updateUInt4ForEffect):(this._engine._uniformBuffers.push(this),this.updateMatrix3x3=this._updateMatrix3x3ForUniform,this.updateMatrix2x2=this._updateMatrix2x2ForUniform,this.updateFloat=this._updateFloatForUniform,this.updateFloat2=this._updateFloat2ForUniform,this.updateFloat3=this._updateFloat3ForUniform,this.updateFloat4=this._updateFloat4ForUniform,this.updateFloatArray=this._updateFloatArrayForUniform,this.updateArray=this._updateArrayForUniform,this.updateIntArray=this._updateIntArrayForUniform,this.updateUIntArray=this._updateUIntArrayForUniform,this.updateMatrix=this._updateMatrixForUniform,this.updateMatrices=this._updateMatricesForUniform,this.updateVector3=this._updateVector3ForUniform,this.updateVector4=this._updateVector4ForUniform,this.updateColor3=this._updateColor3ForUniform,this.updateColor4=this._updateColor4ForUniform,this.updateDirectColor4=this._updateDirectColor4ForUniform,this.updateInt=this._updateIntForUniform,this.updateInt2=this._updateInt2ForUniform,this.updateInt3=this._updateInt3ForUniform,this.updateInt4=this._updateInt4ForUniform,this.updateUInt=this._updateUIntForUniform,this.updateUInt2=this._updateUInt2ForUniform,this.updateUInt3=this._updateUInt3ForUniform,this.updateUInt4=this._updateUInt4ForUniform)}get useUbo(){return!this._noUBO}get isSync(){return!this._needSync}isDynamic(){return this._dynamic}getData(){return this._bufferData}getBuffer(){return this._buffer}getUniformNames(){return this._uniformNames}_fillAlignment(e){let t;if(t=e<=2?e:4,this._uniformLocationPointer%t!=0){let e=this._uniformLocationPointer;this._uniformLocationPointer+=t-this._uniformLocationPointer%t;let i=this._uniformLocationPointer-e;for(let e=0;e<i;e++)this._data.push(0)}}addUniform(e,t,i=0){let r;if((i>0&&"number"==typeof t&&(this._uniformArraySizes[e]={strideSize:t,arraySize:i}),void 0===this._uniformLocations[e])&&(this._uniformNames.push(e),!this._noUBO)){if(i>0){if(t instanceof Array)throw"addUniform should not be use with Array in UBO: "+e;if(this._fillAlignment(4),16==t)t*=i;else{let e=4-t;t=t*i+e*i}r=[];for(let e=0;e<t;e++)r.push(0)}else{if(t instanceof Array)t=(r=t).length;else{r=[];for(let e=0;e<t;e++)r.push(0)}this._fillAlignment(t)}this._uniformSizes[e]=t,this._uniformLocations[e]=this._uniformLocationPointer,this._uniformLocationPointer+=t;for(let e=0;e<t;e++)this._data.push(r[e]);this._needSync=!0}}addMatrix(e,t){this.addUniform(e,Array.prototype.slice.call(t.asArray()))}addFloat2(e,t,i){this.addUniform(e,[t,i])}addFloat3(e,t,i,r){this.addUniform(e,[t,i,r])}addColor3(e,t){let i=[t.r,t.g,t.b];this.addUniform(e,i)}addColor4(e,t,i){let r=[t.r,t.g,t.b,i];this.addUniform(e,r)}addVector3(e,t){let i=[t.x,t.y,t.z];this.addUniform(e,i)}addMatrix3x3(e){this.addUniform(e,12)}addMatrix2x2(e){this.addUniform(e,8)}create(){this._noUBO||this._buffer||(this._fillAlignment(4),this._bufferData=new Float32Array(this._data),this._rebuild(),this._needSync=!0)}_getNamesDebug(){let e=[],t=0;for(let i in this._uniformLocations)if(e.push(i),10==++t)break;return e.join(",")}_rebuild(){!this._noUBO&&this._bufferData&&(this._dynamic?this._buffer=this._engine.createDynamicUniformBuffer(this._bufferData,this._name+"_UniformList:"+this._getNamesDebug()):this._buffer=this._engine.createUniformBuffer(this._bufferData,this._name+"_UniformList:"+this._getNamesDebug()),this._trackUBOsInFrame&&(this._buffers.push([this._buffer,this._engine._features.checkUbosContentBeforeUpload?this._bufferData.slice():void 0]),this._bufferIndex=this._buffers.length-1,this._createBufferOnWrite=!1))}_rebuildAfterContextLost(){this._trackUBOsInFrame&&(this._buffers=[],this._currentFrameId=0),this._rebuild()}get _numBuffers(){return this._buffers.length}get _indexBuffer(){return this._bufferIndex}get name(){return this._name}set name(e){this._name=e}get currentEffect(){return this._currentEffect}_buffersEqual(e,t){for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}_copyBuffer(e,t){for(let i=0;i<e.length;++i)t[i]=e[i]}update(){if(!this._noUBO){if(this.bindUniformBuffer(),!this._buffer)return void this.create();if(!this._dynamic&&!this._needSync){this._createBufferOnWrite=this._trackUBOsInFrame;return}if(this._buffers&&this._buffers.length>1&&this._buffers[this._bufferIndex][1])if(this._buffersEqual(this._bufferData,this._buffers[this._bufferIndex][1])){this._needSync=!1,this._createBufferOnWrite=this._trackUBOsInFrame;return}else this._copyBuffer(this._bufferData,this._buffers[this._bufferIndex][1]);this._bufferUpdatedLastFrame=!0,this._engine.updateUniformBuffer(this._buffer,this._bufferData),this._needSync=!1,this._createBufferOnWrite=this._trackUBOsInFrame}}_createNewBuffer(){this._bufferIndex+1<this._buffers.length?(this._bufferIndex++,this._buffer=this._buffers[this._bufferIndex][0],this._createBufferOnWrite=!1,this._needSync=!0):this._rebuild()}_checkNewFrame(){this._trackUBOsInFrame&&this._currentFrameId!==this._engine.frameId&&(this._currentFrameId=this._engine.frameId,this._createBufferOnWrite=!1,this._buffers&&this._buffers.length>0?(1===this._buffers.length?this._needSync=!this._bufferUpdatedLastFrame:this._needSync=0!==this._bufferIndex,this._bufferIndex=0,this._buffer=this._buffers[this._bufferIndex][0]):this._bufferIndex=-1)}updateUniform(e,i,r){this._checkNewFrame();let s=this._uniformLocations[e];if(void 0===s){if(this._buffer)return void t.Logger.Error("Cannot add an uniform after UBO has been created. uniformName="+e);this.addUniform(e,r),s=this._uniformLocations[e]}if(this._buffer||this.create(),this._dynamic)for(let e=0;e<r;e++)this._bufferData[s+e]=i[e];else{let e=!1;for(let t=0;t<r;t++)(16!==r||this._engine._features.uniformBufferHardCheckMatrix)&&this._bufferData[s+t]===Math.fround(i[t])||(e=!0,this._createBufferOnWrite&&this._createNewBuffer(),this._bufferData[s+t]=i[t]);this._needSync=this._needSync||e}}updateUniformArray(e,r,s){this._checkNewFrame();let a=this._uniformLocations[e];if(void 0===a)return void t.Logger.Error("Cannot add an uniform Array dynamically. Please, add it using addUniform and make sure that uniform buffers are supported by the current engine.");this._buffer||this.create();let n=this._uniformArraySizes[e];if(this._dynamic)for(let e=0;e<s;e++)this._bufferData[a+e]=r[e];else{let e=!1,t=0,f=0;for(let h=0;h<s;h++)if(this._bufferData[a+4*f+t]!==i.Tools.FloatRound(r[h])&&(e=!0,this._createBufferOnWrite&&this._createNewBuffer(),this._bufferData[a+4*f+t]=r[h]),++t===n.strideSize){for(;t<4;t++)this._bufferData[a+4*f+t]=0;t=0,f++}this._needSync=this._needSync||e}}_cacheMatrix(e,t){this._checkNewFrame();let i=this._valueCache[e],r=t.updateFlag;return(void 0===i||i!==r)&&(this._valueCache[e]=r,!0)}_updateMatrix3x3ForUniform(e,t){for(let e=0;e<3;e++)r._TempBuffer[4*e]=t[3*e],r._TempBuffer[4*e+1]=t[3*e+1],r._TempBuffer[4*e+2]=t[3*e+2],r._TempBuffer[4*e+3]=0;this.updateUniform(e,r._TempBuffer,12)}_updateMatrix3x3ForEffect(e,t){this._currentEffect.setMatrix3x3(e,t)}_updateMatrix2x2ForEffect(e,t){this._currentEffect.setMatrix2x2(e,t)}_updateMatrix2x2ForUniform(e,t){for(let e=0;e<2;e++)r._TempBuffer[4*e]=t[2*e],r._TempBuffer[4*e+1]=t[2*e+1],r._TempBuffer[4*e+2]=0,r._TempBuffer[4*e+3]=0;this.updateUniform(e,r._TempBuffer,8)}_updateFloatForEffect(e,t,i=""){this._currentEffect.setFloat(e+i,t)}_updateFloatForUniform(e,t){r._TempBuffer[0]=t,this.updateUniform(e,r._TempBuffer,1)}_updateFloat2ForEffect(e,t,i,r=""){this._currentEffect.setFloat2(e+r,t,i)}_updateFloat2ForUniform(e,t,i){r._TempBuffer[0]=t,r._TempBuffer[1]=i,this.updateUniform(e,r._TempBuffer,2)}_updateFloat3ForEffect(e,t,i,r,s=""){this._currentEffect.setFloat3(e+s,t,i,r)}_updateFloat3ForUniform(e,t,i,s){r._TempBuffer[0]=t,r._TempBuffer[1]=i,r._TempBuffer[2]=s,this.updateUniform(e,r._TempBuffer,3)}_updateFloat4ForEffect(e,t,i,r,s,a=""){this._currentEffect.setFloat4(e+a,t,i,r,s)}_updateFloat4ForUniform(e,t,i,s,a){r._TempBuffer[0]=t,r._TempBuffer[1]=i,r._TempBuffer[2]=s,r._TempBuffer[3]=a,this.updateUniform(e,r._TempBuffer,4)}_updateFloatArrayForEffect(e,t,i=""){switch(this._uniformArraySizes[e]?.strideSize){case 2:this._currentEffect.setFloatArray2(e+i,t);break;case 3:this._currentEffect.setFloatArray3(e+i,t);break;case 4:this._currentEffect.setFloatArray4(e+i,t);break;default:this._currentEffect.setFloatArray(e+i,t)}}_updateFloatArrayForUniform(e,t){this.updateUniformArray(e,t,t.length)}_updateArrayForEffect(e,t){this._currentEffect.setArray(e,t)}_updateArrayForUniform(e,t){this.updateUniformArray(e,t,t.length)}_updateIntArrayForEffect(e,t){this._currentEffect.setIntArray(e,t)}_updateIntArrayForUniform(e,t){r._TempBufferInt32View.set(t),this.updateUniformArray(e,r._TempBuffer,t.length)}_updateUIntArrayForEffect(e,t){this._currentEffect.setUIntArray(e,t)}_updateUIntArrayForUniform(e,t){r._TempBufferUInt32View.set(t),this.updateUniformArray(e,r._TempBuffer,t.length)}_updateMatrixForEffect(e,t){this._currentEffect.setMatrix(e,t)}_updateMatrixForUniform(e,t){this._cacheMatrix(e,t)&&this.updateUniform(e,t.asArray(),16)}_updateMatricesForEffect(e,t){this._currentEffect.setMatrices(e,t)}_updateMatricesForUniform(e,t){this.updateUniform(e,t,t.length)}_updateVector3ForEffect(e,t){this._currentEffect.setVector3(e,t)}_updateVector3ForUniform(e,t){r._TempBuffer[0]=t.x,r._TempBuffer[1]=t.y,r._TempBuffer[2]=t.z,this.updateUniform(e,r._TempBuffer,3)}_updateVector4ForEffect(e,t){this._currentEffect.setVector4(e,t)}_updateVector4ForUniform(e,t){r._TempBuffer[0]=t.x,r._TempBuffer[1]=t.y,r._TempBuffer[2]=t.z,r._TempBuffer[3]=t.w,this.updateUniform(e,r._TempBuffer,4)}_updateColor3ForEffect(e,t,i=""){this._currentEffect.setColor3(e+i,t)}_updateColor3ForUniform(e,t){r._TempBuffer[0]=t.r,r._TempBuffer[1]=t.g,r._TempBuffer[2]=t.b,this.updateUniform(e,r._TempBuffer,3)}_updateColor4ForEffect(e,t,i,r=""){this._currentEffect.setColor4(e+r,t,i)}_updateDirectColor4ForEffect(e,t,i=""){this._currentEffect.setDirectColor4(e+i,t)}_updateColor4ForUniform(e,t,i){r._TempBuffer[0]=t.r,r._TempBuffer[1]=t.g,r._TempBuffer[2]=t.b,r._TempBuffer[3]=i,this.updateUniform(e,r._TempBuffer,4)}_updateDirectColor4ForUniform(e,t){r._TempBuffer[0]=t.r,r._TempBuffer[1]=t.g,r._TempBuffer[2]=t.b,r._TempBuffer[3]=t.a,this.updateUniform(e,r._TempBuffer,4)}_updateIntForEffect(e,t,i=""){this._currentEffect.setInt(e+i,t)}_updateIntForUniform(e,t){r._TempBufferInt32View[0]=t,this.updateUniform(e,r._TempBuffer,1)}_updateInt2ForEffect(e,t,i,r=""){this._currentEffect.setInt2(e+r,t,i)}_updateInt2ForUniform(e,t,i){r._TempBufferInt32View[0]=t,r._TempBufferInt32View[1]=i,this.updateUniform(e,r._TempBuffer,2)}_updateInt3ForEffect(e,t,i,r,s=""){this._currentEffect.setInt3(e+s,t,i,r)}_updateInt3ForUniform(e,t,i,s){r._TempBufferInt32View[0]=t,r._TempBufferInt32View[1]=i,r._TempBufferInt32View[2]=s,this.updateUniform(e,r._TempBuffer,3)}_updateInt4ForEffect(e,t,i,r,s,a=""){this._currentEffect.setInt4(e+a,t,i,r,s)}_updateInt4ForUniform(e,t,i,s,a){r._TempBufferInt32View[0]=t,r._TempBufferInt32View[1]=i,r._TempBufferInt32View[2]=s,r._TempBufferInt32View[3]=a,this.updateUniform(e,r._TempBuffer,4)}_updateUIntForEffect(e,t,i=""){this._currentEffect.setUInt(e+i,t)}_updateUIntForUniform(e,t){r._TempBufferUInt32View[0]=t,this.updateUniform(e,r._TempBuffer,1)}_updateUInt2ForEffect(e,t,i,r=""){this._currentEffect.setUInt2(e+r,t,i)}_updateUInt2ForUniform(e,t,i){r._TempBufferUInt32View[0]=t,r._TempBufferUInt32View[1]=i,this.updateUniform(e,r._TempBuffer,2)}_updateUInt3ForEffect(e,t,i,r,s=""){this._currentEffect.setUInt3(e+s,t,i,r)}_updateUInt3ForUniform(e,t,i,s){r._TempBufferUInt32View[0]=t,r._TempBufferUInt32View[1]=i,r._TempBufferUInt32View[2]=s,this.updateUniform(e,r._TempBuffer,3)}_updateUInt4ForEffect(e,t,i,r,s,a=""){this._currentEffect.setUInt4(e+a,t,i,r,s)}_updateUInt4ForUniform(e,t,i,s,a){r._TempBufferUInt32View[0]=t,r._TempBufferUInt32View[1]=i,r._TempBufferUInt32View[2]=s,r._TempBufferUInt32View[3]=a,this.updateUniform(e,r._TempBuffer,4)}setTexture(e,t){this._currentEffect.setTexture(e,t)}setTextureArray(e,t){this._currentEffect.setTextureArray(e,t)}bindTexture(e,t){this._currentEffect._bindTexture(e,t)}updateUniformDirectly(e,t){this.updateUniform(e,t,t.length),this.update()}bindToEffect(e,t){this._currentEffect=e,this._currentEffectName=t}bindUniformBuffer(){!this._noUBO&&this._buffer&&this._currentEffect&&this._currentEffect.bindUniformBuffer(this._buffer,this._currentEffectName)}unbindEffect(){this._currentEffect=void 0,this._currentEffectName=void 0}setDataBuffer(e){if(!this._buffers)return this._buffer===e;for(let t=0;t<this._buffers.length;++t)if(this._buffers[t][0]===e)return this._bufferIndex=t,this._buffer=e,this._createBufferOnWrite=!1,this._currentEffect=void 0,this._buffers.length>1&&this._buffers[t][1]&&this._bufferData.set(this._buffers[t][1]),this._valueCache={},this._currentFrameId=this._engine.frameId,!0;return!1}has(e){return void 0!==this._uniformLocations[e]}dispose(){if(this._noUBO)return;let e=this._engine._uniformBuffers,t=e.indexOf(this);if(-1!==t&&(e[t]=e[e.length-1],e.pop()),this._trackUBOsInFrame&&this._buffers)for(let e=0;e<this._buffers.length;++e){let t=this._buffers[e][0];this._engine._releaseBuffer(t)}else this._buffer&&this._engine._releaseBuffer(this._buffer)&&(this._buffer=null)}}r._MAX_UNIFORM_SIZE=256,r._TempBuffer=new Float32Array(r._MAX_UNIFORM_SIZE),r._TempBufferInt32View=new Int32Array(r._TempBuffer.buffer),r._TempBufferUInt32View=new Uint32Array(r._TempBuffer.buffer),e.s(["UniformBuffer",0,r],81127);class s{static CompareLightsPriority(e,t){return e.shadowEnabled!==t.shadowEnabled?!!t.shadowEnabled-!!e.shadowEnabled:t.renderPriority-e.renderPriority}}s.FALLOFF_DEFAULT=0,s.FALLOFF_PHYSICAL=1,s.FALLOFF_GLTF=2,s.FALLOFF_STANDARD=3,s.LIGHTMAP_DEFAULT=0,s.LIGHTMAP_SPECULAR=1,s.LIGHTMAP_SHADOWSONLY=2,s.INTENSITYMODE_AUTOMATIC=0,s.INTENSITYMODE_LUMINOUSPOWER=1,s.INTENSITYMODE_LUMINOUSINTENSITY=2,s.INTENSITYMODE_ILLUMINANCE=3,s.INTENSITYMODE_LUMINANCE=4,s.LIGHTTYPEID_POINTLIGHT=0,s.LIGHTTYPEID_DIRECTIONALLIGHT=1,s.LIGHTTYPEID_SPOTLIGHT=2,s.LIGHTTYPEID_HEMISPHERICLIGHT=3,s.LIGHTTYPEID_RECT_AREALIGHT=4,s.LIGHTTYPEID_CLUSTERED_CONTAINER=5,e.s(["LightConstants",0,s],26801)},17828,e=>{"use strict";class t{}t.NAME_EFFECTLAYER="EffectLayer",t.NAME_LAYER="Layer",t.NAME_LENSFLARESYSTEM="LensFlareSystem",t.NAME_BOUNDINGBOXRENDERER="BoundingBoxRenderer",t.NAME_PARTICLESYSTEM="ParticleSystem",t.NAME_GAMEPAD="Gamepad",t.NAME_SIMPLIFICATIONQUEUE="SimplificationQueue",t.NAME_GEOMETRYBUFFERRENDERER="GeometryBufferRenderer",t.NAME_PREPASSRENDERER="PrePassRenderer",t.NAME_DEPTHRENDERER="DepthRenderer",t.NAME_DEPTHPEELINGRENDERER="DepthPeelingRenderer",t.NAME_POSTPROCESSRENDERPIPELINEMANAGER="PostProcessRenderPipelineManager",t.NAME_SPRITE="Sprite",t.NAME_SUBSURFACE="SubSurface",t.NAME_OUTLINERENDERER="Outline",t.NAME_PROCEDURALTEXTURE="ProceduralTexture",t.NAME_SHADOWGENERATOR="ShadowGenerator",t.NAME_OCTREE="Octree",t.NAME_PHYSICSENGINE="PhysicsEngine",t.NAME_AUDIO="Audio",t.NAME_FLUIDRENDERER="FluidRenderer",t.NAME_IBLCDFGENERATOR="iblCDFGenerator",t.NAME_CLUSTEREDLIGHTING="ClusteredLighting",t.STEP_ISREADYFORMESH_EFFECTLAYER=0,t.STEP_ISREADYFORMESH_DEPTHRENDERER=1,t.STEP_BEFOREEVALUATEACTIVEMESH_BOUNDINGBOXRENDERER=0,t.STEP_EVALUATESUBMESH_BOUNDINGBOXRENDERER=0,t.STEP_PREACTIVEMESH_BOUNDINGBOXRENDERER=0,t.STEP_CAMERADRAWRENDERTARGET_EFFECTLAYER=1,t.STEP_BEFORECAMERADRAW_PREPASS=0,t.STEP_BEFORECAMERADRAW_EFFECTLAYER=1,t.STEP_BEFORECAMERADRAW_LAYER=2,t.STEP_BEFORERENDERTARGETDRAW_PREPASS=0,t.STEP_BEFORERENDERTARGETDRAW_LAYER=1,t.STEP_BEFORERENDERINGMESH_PREPASS=0,t.STEP_BEFORERENDERINGMESH_OUTLINE=1,t.STEP_AFTERRENDERINGMESH_PREPASS=0,t.STEP_AFTERRENDERINGMESH_OUTLINE=1,t.STEP_AFTERRENDERINGGROUPDRAW_EFFECTLAYER_DRAW=0,t.STEP_AFTERRENDERINGGROUPDRAW_BOUNDINGBOXRENDERER=1,t.STEP_BEFORECAMERAUPDATE_SIMPLIFICATIONQUEUE=0,t.STEP_BEFORECLEAR_PROCEDURALTEXTURE=0,t.STEP_BEFORECLEAR_PREPASS=1,t.STEP_BEFORERENDERTARGETCLEAR_PREPASS=0,t.STEP_AFTERRENDERTARGETDRAW_PREPASS=0,t.STEP_AFTERRENDERTARGETDRAW_LAYER=1,t.STEP_AFTERCAMERADRAW_PREPASS=0,t.STEP_AFTERCAMERADRAW_EFFECTLAYER=1,t.STEP_AFTERCAMERADRAW_LENSFLARESYSTEM=2,t.STEP_AFTERCAMERADRAW_EFFECTLAYER_DRAW=3,t.STEP_AFTERCAMERADRAW_LAYER=4,t.STEP_AFTERCAMERADRAW_FLUIDRENDERER=5,t.STEP_AFTERCAMERAPOSTPROCESS_LAYER=0,t.STEP_AFTERRENDERTARGETPOSTPROCESS_LAYER=0,t.STEP_AFTERRENDER_AUDIO=0,t.STEP_GATHERRENDERTARGETS_DEPTHRENDERER=0,t.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER=1,t.STEP_GATHERRENDERTARGETS_SHADOWGENERATOR=2,t.STEP_GATHERRENDERTARGETS_POSTPROCESSRENDERPIPELINEMANAGER=3,t.STEP_GATHERACTIVECAMERARENDERTARGETS_DEPTHRENDERER=0,t.STEP_GATHERACTIVECAMERARENDERTARGETS_FLUIDRENDERER=1,t.STEP_GATHERACTIVECAMERARENDERTARGETS_CLUSTEREDLIGHTING=2,t.STEP_POINTERMOVE_SPRITE=0,t.STEP_POINTERDOWN_SPRITE=0,t.STEP_POINTERUP_SPRITE=0;class i extends Array{constructor(e){super(...e)}static Create(){return Object.create(i.prototype)}registerStep(e,t,i){let r=0;for(;r<this.length&&!(e<this[r].index);r++);this.splice(r,0,{index:e,component:t,action:i.bind(t)})}clear(){this.length=0}}e.s(["SceneComponentConstants",0,t,"Stage",0,i])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46717,t=>{t.v(s=>Promise.all(["static/chunks/1tgj55b305g4h.js"].map(s=>t.l(s))).then(()=>s(21774)))},20954,t=>{t.v(s=>Promise.all(["static/chunks/302qk2fjdrthp.js"].map(s=>t.l(s))).then(()=>s(40735)))},10909,t=>{t.v(s=>Promise.all(["static/chunks/3h6akt2uu05ku.js"].map(s=>t.l(s))).then(()=>s(45840)))},76609,t=>{t.v(s=>Promise.all(["static/chunks/2y8i7_nxm4r05.js"].map(s=>t.l(s))).then(()=>s(7539)))},78526,t=>{t.v(s=>Promise.all(["static/chunks/2n3xu_wbvtj7h.js"].map(s=>t.l(s))).then(()=>s(3086)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47006,e=>{"use strict";var t=e.i(37096),r=e.i(97009),o=e.i(42035),a=e.i(75648),l=e.i(37472),s=e.i(17484),i=e.i(72003),n=e.i(5573),c=e.i(46202);function h(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}function p(e){let t,r=Math.abs(e.x),o=Math.abs(e.y),a=Math.abs(e.z);return t=r<=o&&r<=a?i.Vector3.RightReadOnly:o<=a?i.Vector3.UpReadOnly:i.Vector3.LeftHandedForwardReadOnly,i.Vector3.Cross(e,t).normalize()}let u=["xyz","xzy","yxz","yzx","zxy","zyx"];var y=e.i(99493);let w="cachedOperationAxis",F="cachedOperationAngle",m="cachedExecutionId";class B extends a.FlowGraphUnaryOperationBlock{constructor(e){super(r.RichTypeAny,r.RichTypeNumber,e=>this._polymorphicLength(e),"FlowGraphLengthBlock",e)}_polymorphicLength(e){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return e.length();default:throw Error(`Cannot compute length of value ${e}`)}}}class V extends s.FlowGraphCachedOperationBlock{constructor(e){super(r.RichTypeAny,e),this.a=this.registerDataInput("a",r.RichTypeAny)}_doOperation(e){return this._polymorphicNormalize(this.a.getValue(e))}_getInvalidOutputValue(e){let t=this.a.getValue(e);switch((0,n._GetClassNameOf)(t)){case"Vector2":return new i.Vector2(0,0);case"Vector4":return new i.Vector4(0,0,0,0);case"Quaternion":return new i.Quaternion(0,0,0,0);default:return new i.Vector3(0,0,0)}}_polymorphicNormalize(e){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":{let t=e.length();if(0===t||!Number.isFinite(t)){if(this.config?.nanOnZeroLength){let t=e.normalizeToNew();return t.setAll(NaN),t}return}return e.normalizeToNew()}default:throw Error(`Cannot normalize value ${e}`)}}getClassName(){return"FlowGraphNormalizeBlock"}}class g extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeAny,r.RichTypeAny,r.RichTypeNumber,(e,t)=>this._polymorphicDot(e,t),"FlowGraphDotBlock",e)}_polymorphicDot(e,t){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return e.dot(t);default:throw Error(`Cannot get dot product of ${e} and ${t}`)}}}class x extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeVector3,r.RichTypeVector3,(e,t)=>i.Vector3.Cross(e,t),"FlowGraphCrossBlock",e)}}class d extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector2,r.RichTypeNumber,r.RichTypeVector2,(e,t)=>e.rotate(t),"FlowGraphRotate2DBlock",e)}}class G extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeQuaternion,r.RichTypeVector3,(e,t)=>e.applyRotationQuaternion(t),"FlowGraphRotate3DBlock",e)}}function R(e,t){switch((0,n._GetClassNameOf)(e)){case"Vector2":case"Vector3":return t.transformVector(e);case"Vector4":return new i.Vector4(e.x*t.m[0]+e.y*t.m[4]+e.z*t.m[8]+e.w*t.m[12],e.x*t.m[1]+e.y*t.m[5]+e.z*t.m[9]+e.w*t.m[13],e.x*t.m[2]+e.y*t.m[6]+e.z*t.m[10]+e.w*t.m[14],e.x*t.m[3]+e.y*t.m[7]+e.z*t.m[11]+e.w*t.m[15]);default:throw Error(`Cannot transform value ${e}`)}}class k extends o.FlowGraphBinaryOperationBlock{constructor(e){const t=e?.vectorType||"Vector3",o="Vector2"===t?"Matrix2D":"Vector3"===t?"Matrix3D":"Matrix";super((0,r.getRichTypeByFlowGraphType)(t),(0,r.getRichTypeByFlowGraphType)(o),(0,r.getRichTypeByFlowGraphType)(t),R,"FlowGraphTransformVectorBlock",e)}}class T extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeMatrix,r.RichTypeVector3,(e,t)=>i.Vector3.TransformCoordinates(e,t),"FlowGraphTransformCoordinatesBlock",e)}}class C extends a.FlowGraphUnaryOperationBlock{constructor(e){super(r.RichTypeQuaternion,r.RichTypeQuaternion,e=>e.conjugate(),"FlowGraphConjugateBlock",e)}}class O extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeQuaternion,r.RichTypeQuaternion,r.RichTypeNumber,(e,t)=>2*Math.acos((0,c.Clamp)(e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w,-1,1)),"FlowGraphAngleBetweenBlock",e)}}class f extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeNumber,r.RichTypeQuaternion,(e,t)=>i.Quaternion.RotationAxis(e,t),"FlowGraphQuaternionFromAxisAngleBlock",e)}}class _ extends t.FlowGraphBlock{constructor(e){super(e),this.a=this.registerDataInput("a",r.RichTypeQuaternion),this.axis=this.registerDataOutput("axis",r.RichTypeVector3),this.angle=this.registerDataOutput("angle",r.RichTypeNumber),this.isValid=this.registerDataOutput("isValid",r.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,m,-1),r=e._getExecutionVariable(this,w,null),o=e._getExecutionVariable(this,F,null);if(null!=r&&null!=o&&t===e.executionId)this.axis.setValue(r,e),this.angle.setValue(o,e);else try{let{axis:t,angle:r}=this.a.getValue(e).toAxisAngle();e._setExecutionVariable(this,w,t),e._setExecutionVariable(this,F,r),e._setExecutionVariable(this,m,e.executionId),this.axis.setValue(t,e),this.angle.setValue(r,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}getClassName(){return"FlowGraphAxisAngleFromQuaternionBlock"}}class z extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeVector3,r.RichTypeQuaternion,(e,t)=>{let r;return function(e,t,r){let o=h(e,t);if(Number.isFinite(o)&&o>.999999)return r.copyFromFloats(0,0,0,1);if(Number.isFinite(o)&&o<-.999999){let t=p(e);return r.copyFromFloats(t.x,t.y,t.z,0)}let a=i.Vector3.Cross(e,t).normalize(),l=Math.sqrt(.5-.5*o);r.copyFromFloats(a.x*l,a.y*l,a.z*l,Math.sqrt(.5+.5*o))}(e,t,r=new i.Quaternion),r},"FlowGraphQuaternionFromDirectionsBlock",e)}}class A extends o.FlowGraphBinaryOperationBlock{constructor(e){super(r.RichTypeVector3,r.RichTypeVector3,r.RichTypeQuaternion,(e,t)=>{let r,o,a,l;return r=new i.Vector3(t.x,t.y,t.z),(o=i.Vector3.Cross(e,r)).lengthSquared()<1e-6*1e-6?o=p(r):o.normalize(),a=i.Vector3.Cross(r,o),l=i.Matrix.FromValues(o.x,o.y,o.z,0,a.x,a.y,a.z,0,r.x,r.y,r.z,0,0,0,0,1),i.Quaternion.FromRotationMatrix(l)},"FlowGraphQuaternionFromUpForwardBlock",e)}}class Q extends l.FlowGraphTernaryOperationBlock{constructor(e){super(r.RichTypeAny,r.RichTypeAny,r.RichTypeNumber,r.RichTypeAny,(e,t,r)=>this._polymorphicSlerp(e,t,r),"FlowGraphVectorSlerpBlock",e)}_polymorphicSlerp(e,t,r){switch((0,n._GetClassNameOf)(e)){case"Vector2":return function(e,t,r){let o=Math.sqrt(e.x*e.x+e.y*e.y),a=Math.sqrt(t.x*t.x+t.y*t.y);if(o<1e-6||a<1e-6)return new i.Vector2((1-r)*e.x+r*t.x,(1-r)*e.y+r*t.y);let l=e.x/o,s=e.y/o,n=t.x/a,h=t.y/a,p=Math.acos((0,c.Clamp)(l*n+s*h,-1,1));l*h-s*n<0&&(p=-p);let u=(1-r)*o+r*a,y=Math.cos(r*p),w=Math.sin(r*p);return new i.Vector2((l*y-s*w)*u,(l*w+s*y)*u)}(e,t,r);case"Vector3":return function(e,t,r){let o,a=e.length(),l=t.length(),s=()=>new i.Vector3((1-r)*e.x+r*t.x,(1-r)*e.y+r*t.y,(1-r)*e.z+r*t.z);if(a<1e-6||l<1e-6)return s();let n=new i.Vector3(e.x/a,e.y/a,e.z/a),u=new i.Vector3(t.x/l,t.y/l,t.z/l),y=h(n,u);if(y>.999999)return s();o=y<-.999999?p(n):i.Vector3.Cross(n,u).normalize();let w=r*Math.acos((0,c.Clamp)(y,-1,1)),F=i.Quaternion.RotationAxis(o,w);return n.applyRotationQuaternion(F).scaleInPlace((1-r)*a+r*l)}(e,t,r);default:throw Error(`Cannot slerp value ${e}`)}}}class N extends l.FlowGraphTernaryOperationBlock{constructor(e){super(r.RichTypeNumber,r.RichTypeNumber,r.RichTypeNumber,r.RichTypeQuaternion,(e,t,r)=>(function(e,t,r,o){let a=i.Quaternion.RotationAxis(i.Vector3.RightReadOnly,t),l=i.Quaternion.RotationAxis(i.Vector3.UpReadOnly,r),s=i.Quaternion.RotationAxis(i.Vector3.LeftHandedForwardReadOnly,o);switch(e){case"xyz":return a.multiplyInPlace(l).multiplyInPlace(s);case"xzy":return a.multiplyInPlace(s).multiplyInPlace(l);case"yzx":return l.multiplyInPlace(s).multiplyInPlace(a);case"zxy":return s.multiplyInPlace(a).multiplyInPlace(l);case"zyx":return s.multiplyInPlace(l).multiplyInPlace(a);default:return l.multiplyInPlace(a).multiplyInPlace(s)}})(this._order,e,t,r),"FlowGraphQuaternionFromAnglesBlock",e);const t=e?.order;this._order="string"==typeof t&&-1!==u.indexOf(t)?t:"yxz"}}let b=!1;function D(){b||(b=!0,(0,y.RegisterClass)("FlowGraphLengthBlock",B),(0,y.RegisterClass)("FlowGraphNormalizeBlock",V),(0,y.RegisterClass)("FlowGraphDotBlock",g),(0,y.RegisterClass)("FlowGraphCrossBlock",x),(0,y.RegisterClass)("FlowGraphRotate2DBlock",d),(0,y.RegisterClass)("FlowGraphRotate3DBlock",G),(0,y.RegisterClass)("FlowGraphTransformVectorBlock",k),(0,y.RegisterClass)("FlowGraphTransformCoordinatesBlock",T),(0,y.RegisterClass)("FlowGraphConjugateBlock",C),(0,y.RegisterClass)("FlowGraphAngleBetweenBlock",O),(0,y.RegisterClass)("FlowGraphQuaternionFromAxisAngleBlock",f),(0,y.RegisterClass)("FlowGraphAxisAngleFromQuaternionBlock",_),(0,y.RegisterClass)("FlowGraphQuaternionFromDirectionsBlock",z),(0,y.RegisterClass)("FlowGraphQuaternionFromUpForwardBlock",A),(0,y.RegisterClass)("FlowGraphQuaternionFromAnglesBlock",N),(0,y.RegisterClass)("FlowGraphVectorSlerpBlock",Q))}e.s(["FlowGraphAngleBetweenBlock",0,O,"FlowGraphAxisAngleFromQuaternionBlock",0,_,"FlowGraphConjugateBlock",0,C,"FlowGraphCrossBlock",0,x,"FlowGraphDotBlock",0,g,"FlowGraphLengthBlock",0,B,"FlowGraphNormalizeBlock",0,V,"FlowGraphQuaternionFromAnglesBlock",0,N,"FlowGraphQuaternionFromAxisAngleBlock",0,f,"FlowGraphQuaternionFromDirectionsBlock",0,z,"FlowGraphQuaternionFromUpForwardBlock",0,A,"FlowGraphRotate2DBlock",0,d,"FlowGraphRotate3DBlock",0,G,"FlowGraphTransformBlock",0,k,"FlowGraphTransformCoordinatesBlock",0,T,"FlowGraphVectorSlerpBlock",0,Q,"RegisterFlowGraphVectorMathBlocks",0,D],1247),D(),e.s([],26476),e.i(26476),e.i(1247),e.s(["FlowGraphAngleBetweenBlock",0,O,"FlowGraphAxisAngleFromQuaternionBlock",0,_,"FlowGraphConjugateBlock",0,C,"FlowGraphCrossBlock",0,x,"FlowGraphDotBlock",0,g,"FlowGraphLengthBlock",0,B,"FlowGraphNormalizeBlock",0,V,"FlowGraphQuaternionFromAnglesBlock",0,N,"FlowGraphQuaternionFromAxisAngleBlock",0,f,"FlowGraphQuaternionFromDirectionsBlock",0,z,"FlowGraphQuaternionFromUpForwardBlock",0,A,"FlowGraphRotate2DBlock",0,d,"FlowGraphRotate3DBlock",0,G,"FlowGraphTransformBlock",0,k,"FlowGraphTransformCoordinatesBlock",0,T,"FlowGraphVectorSlerpBlock",0,Q],47006)},42035,e=>{"use strict";var t=e.i(17484);class r extends t.FlowGraphCachedOperationBlock{constructor(e,t,r,o,a,l){super(r,l),this._operation=o,this._className=a,this.a=this.registerDataInput("a",e),this.b=this.registerDataInput("b",t)}_doOperation(e){let t=this.a.getValue(e),r=this.b.getValue(e);return this._operation(t,r)}getClassName(){return this._className}}e.s(["FlowGraphBinaryOperationBlock",0,r])},17484,e=>{"use strict";var t=e.i(37096),r=e.i(97009);let o="cachedOperationValue",a="cachedExecutionId";class l extends t.FlowGraphBlock{constructor(e,t){super(t),this._outputRichType=e,this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",r.RichTypeBoolean)}_getInvalidOutputValue(e){let t=this._outputRichType.defaultValue,r=t?.clone;return"function"==typeof r?r.call(t):t}_updateOutputs(e){let t=e._getExecutionVariable(this,a,-1),r=e._getExecutionVariable(this,o,null);if(null!=r&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(r,e);else try{let t=this._doOperation(e);if(null==t)return void this._setInvalid(e);e._setExecutionVariable(this,o,t),e._setExecutionVariable(this,a,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this._setInvalid(e)}}_setInvalid(e){this.isValid.setValue(!1,e),this.value.setValue(this._getInvalidOutputValue(e),e)}}e.s(["FlowGraphCachedOperationBlock",0,l])},37472,e=>{"use strict";var t=e.i(17484);class r extends t.FlowGraphCachedOperationBlock{constructor(e,t,r,o,a,l,s){super(o,s),this._operation=a,this._className=l,this.a=this.registerDataInput("a",e),this.b=this.registerDataInput("b",t),this.c=this.registerDataInput("c",r)}_doOperation(e){return this._operation(this.a.getValue(e),this.b.getValue(e),this.c.getValue(e))}getClassName(){return this._className}}e.s(["FlowGraphTernaryOperationBlock",0,r])},75648,e=>{"use strict";var t=e.i(17484);class r extends t.FlowGraphCachedOperationBlock{constructor(e,t,r,o,a){super(t,a),this._operation=r,this._className=o,this.a=this.registerDataInput("a",e)}_doOperation(e){return this._operation(this.a.getValue(e))}getClassName(){return this._className}}e.s(["FlowGraphUnaryOperationBlock",0,r])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72986,42704,t=>{"use strict";let r="u">typeof WeakRef;class e{constructor(t,r=!1,e,i){this.initialize(t,r,e,i)}initialize(t,r=!1,e,i){return this.mask=t,this.skipNextObservers=r,this.target=e,this.currentTarget=i,this}}class i{constructor(t,r,e=null){this.callback=t,this.mask=r,this.scope=e,this._willBeUnregistered=!1,this.unregisterOnNextCall=!1,this._remove=null}remove(t=!1){this._remove&&this._remove(t)}}class s{static FromPromise(t,r){let e=new s;return t.then(t=>{e.notifyObservers(t)}).catch(t=>{if(r)r.notifyObservers(t);else throw t}),e}get observers(){return this._observers}constructor(t,r=!1){this.notifyIfTriggered=r,this._observers=[],this._numObserversMarkedAsDeleted=0,this._hasNotified=!1,this._eventState=new e(0),t&&(this._onObserverAdded=t)}add(t,e=-1,s=!1,n=null,a=!1){if(!t)return null;let h=new i(t,e,n);h.unregisterOnNextCall=a,s?this._observers.unshift(h):this._observers.push(h),this._onObserverAdded&&this._onObserverAdded(h),this._hasNotified&&this.notifyIfTriggered&&void 0!==this._lastNotifiedValue&&this.notifyObserver(h,this._lastNotifiedValue);let o=r?new WeakRef(this):{deref:()=>this};return h._remove=(t=!1)=>{let r=o.deref();r&&(t?r.remove(h):r._remove(h))},h}addOnce(t){return this.add(t,void 0,void 0,void 0,!0)}remove(t){return!!t&&(t._remove=null,-1!==this._observers.indexOf(t)&&(this._deferUnregister(t),!0))}removeCallback(t,r){for(let e=0;e<this._observers.length;e++){let i=this._observers[e];if(!i._willBeUnregistered&&i.callback===t&&(!r||r===i.scope))return this._deferUnregister(i),!0}return!1}_deferUnregister(t){t._willBeUnregistered||(this._numObserversMarkedAsDeleted++,t.unregisterOnNextCall=!1,t._willBeUnregistered=!0,setTimeout(()=>{this._remove(t)},0))}_remove(t,r=!0){if(!t)return!1;let e=this._observers.indexOf(t);return -1!==e&&(r&&this._numObserversMarkedAsDeleted--,this._observers.splice(e,1),!0)}makeObserverTopPriority(t){this._remove(t,!1),this._observers.unshift(t)}makeObserverBottomPriority(t){this._remove(t,!1),this._observers.push(t)}notifyObservers(t,r=-1,e,i,s){if(this.notifyIfTriggered&&(this._hasNotified=!0,this._lastNotifiedValue=t),!this._observers.length)return!0;let n=this._eventState;for(let a of(n.mask=r,n.target=e,n.currentTarget=i,n.skipNextObservers=!1,n.lastReturnValue=t,n.userInfo=s,this._observers))if(!a._willBeUnregistered&&(a.mask&r&&(a.unregisterOnNextCall&&this._deferUnregister(a),a.scope?n.lastReturnValue=a.callback.apply(a.scope,[t,n]):n.lastReturnValue=a.callback(t,n)),n.skipNextObservers))return!1;return!0}notifyObserver(t,r,e=-1){if(this.notifyIfTriggered&&(this._hasNotified=!0,this._lastNotifiedValue=r),t._willBeUnregistered)return;let i=this._eventState;i.mask=e,i.skipNextObservers=!1,t.unregisterOnNextCall&&this._deferUnregister(t),t.callback(r,i)}hasObservers(){return this._observers.length-this._numObserversMarkedAsDeleted>0}clear(){for(;this._observers.length;){let t=this._observers.pop();t&&(t._remove=null)}this._onObserverAdded=null,this._numObserversMarkedAsDeleted=0,this.cleanLastNotifiedState()}cleanLastNotifiedState(){this._hasNotified=!1,this._lastNotifiedValue=void 0}clone(){let t=new s;return t._observers=this._observers.slice(0),t}hasSpecificMask(t=-1){for(let r of this._observers)if(r.mask&t||r.mask===t)return!0;return!1}}t.s(["Observable",0,s],42704);class n{static get LastCreatedEngine(){return 0===this.Instances.length?null:this.Instances[this.Instances.length-1]}static get LastCreatedScene(){return this._LastCreatedScene}}n.Instances=[],n.OnEnginesDisposedObservable=new s,n._LastCreatedScene=null,n.UseFallbackTexture=!0,n.FallbackTexture="",t.s(["EngineStore",0,n],72986)},32413,t=>{"use strict";class r{static SetMatrixPrecision(t){if(r.MatrixTrackPrecisionChange=!1,t&&!r.MatrixUse64Bits&&r.MatrixTrackedMatrices)for(let t=0;t<r.MatrixTrackedMatrices.length;++t){let e=r.MatrixTrackedMatrices[t],i=e._m;e._m=Array(16);for(let t=0;t<16;++t)e._m[t]=i[t]}r.MatrixUse64Bits=t,r.MatrixCurrentType=r.MatrixUse64Bits?Array:Float32Array,r.MatrixTrackedMatrices=null}}r.MatrixUse64Bits=!1,r.MatrixTrackPrecisionChange=!0,r.MatrixCurrentType=Float32Array,r.MatrixTrackedMatrices=[],t.s(["PerformanceConfigurator",0,r])},64073,t=>{"use strict";var r=t.i(27111),e=t.i(26747),i=t.i(46202),s=t.i(99493);function n(t){return Math.pow(t,e.ToLinearSpace)}function a(t){return t<=.04045?.0773993808*t:Math.pow(.947867299*(t+.055),2.4)}function h(t){return Math.pow(t,e.ToGammaSpace)}function o(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class l{constructor(t=0,r=0,e=0){this.r=t,this.g=r,this.b=e}toString(){return"{R: "+this.r+" G:"+this.g+" B:"+this.b+"}"}getClassName(){return"Color3"}getHashCode(){let t=255*this.r|0;return 397*(t=397*t^255*this.g)^255*this.b}toArray(t,r=0){return t[r]=this.r,t[r+1]=this.g,t[r+2]=this.b,this}fromArray(t,r=0){return l.FromArrayToRef(t,r,this),this}toColor4(t=1){return new u(this.r,this.g,this.b,t)}asArray(){return[this.r,this.g,this.b]}toLuminance(){return .3*this.r+.59*this.g+.11*this.b}multiply(t){return new l(this.r*t.r,this.g*t.g,this.b*t.b)}multiplyToRef(t,r){return r.r=this.r*t.r,r.g=this.g*t.g,r.b=this.b*t.b,r}multiplyInPlace(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyByFloats(t,r,e){return new l(this.r*t,this.g*r,this.b*e)}divide(t){throw ReferenceError("Can not divide a color")}divideToRef(t,r){throw ReferenceError("Can not divide a color")}divideInPlace(t){throw ReferenceError("Can not divide a color")}minimizeInPlace(t){return this.minimizeInPlaceFromFloats(t.r,t.g,t.b)}maximizeInPlace(t){return this.maximizeInPlaceFromFloats(t.r,t.g,t.b)}minimizeInPlaceFromFloats(t,r,e){return this.r=Math.min(t,this.r),this.g=Math.min(r,this.g),this.b=Math.min(e,this.b),this}maximizeInPlaceFromFloats(t,r,e){return this.r=Math.max(t,this.r),this.g=Math.max(r,this.g),this.b=Math.max(e,this.b),this}floorToRef(t){throw ReferenceError("Can not floor a color")}floor(){throw ReferenceError("Can not floor a color")}fractToRef(t){throw ReferenceError("Can not fract a color")}fract(){throw ReferenceError("Can not fract a color")}equals(t){return t&&this.r===t.r&&this.g===t.g&&this.b===t.b}equalsFloats(t,r,e){return this.equalsToFloats(t,r,e)}equalsToFloats(t,r,e){return this.r===t&&this.g===r&&this.b===e}equalsWithEpsilon(t,r=e.Epsilon){return(0,i.WithinEpsilon)(this.r,t.r,r)&&(0,i.WithinEpsilon)(this.g,t.g,r)&&(0,i.WithinEpsilon)(this.b,t.b,r)}negate(){throw ReferenceError("Can not negate a color")}negateInPlace(){throw ReferenceError("Can not negate a color")}negateToRef(t){throw ReferenceError("Can not negate a color")}scale(t){return new l(this.r*t,this.g*t,this.b*t)}scaleInPlace(t){return this.r*=t,this.g*=t,this.b*=t,this}scaleToRef(t,r){return r.r=this.r*t,r.g=this.g*t,r.b=this.b*t,r}scaleAndAddToRef(t,r){return r.r+=this.r*t,r.g+=this.g*t,r.b+=this.b*t,r}clampToRef(t=0,r=1,e){return e.r=(0,i.Clamp)(this.r,t,r),e.g=(0,i.Clamp)(this.g,t,r),e.b=(0,i.Clamp)(this.b,t,r),e}add(t){return new l(this.r+t.r,this.g+t.g,this.b+t.b)}addInPlace(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addInPlaceFromFloats(t,r,e){return this.r+=t,this.g+=r,this.b+=e,this}addToRef(t,r){return r.r=this.r+t.r,r.g=this.g+t.g,r.b=this.b+t.b,r}subtract(t){return new l(this.r-t.r,this.g-t.g,this.b-t.b)}subtractToRef(t,r){return r.r=this.r-t.r,r.g=this.g-t.g,r.b=this.b-t.b,r}subtractInPlace(t){return this.r-=t.r,this.g-=t.g,this.b-=t.b,this}subtractFromFloats(t,r,e){return new l(this.r-t,this.g-r,this.b-e)}subtractFromFloatsToRef(t,r,e,i){return i.r=this.r-t,i.g=this.g-r,i.b=this.b-e,i}clone(){return new l(this.r,this.g,this.b)}copyFrom(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copyFromFloats(t,r,e){return this.r=t,this.g=r,this.b=e,this}set(t,r,e){return this.copyFromFloats(t,r,e)}setAll(t){return this.r=this.g=this.b=t,this}toHexString(){let t=Math.round(255*this.r),r=Math.round(255*this.g),e=Math.round(255*this.b);return"#"+(0,i.ToHex)(t)+(0,i.ToHex)(r)+(0,i.ToHex)(e)}fromHexString(t){return"#"!==t.substring(0,1)||7!==t.length||(this.r=parseInt(t.substring(1,3),16)/255,this.g=parseInt(t.substring(3,5),16)/255,this.b=parseInt(t.substring(5,7),16)/255),this}toHSV(){return this.toHSVToRef(new l)}toHSVToRef(t){let r=this.r,e=this.g,i=this.b,s=Math.max(r,e,i),n=Math.min(r,e,i),a=0,h=0,o=s-n;return 0!==s&&(h=o/s),s!=n&&(s==r?(a=(e-i)/o,e<i&&(a+=6)):s==e?a=(i-r)/o+2:s==i&&(a=(r-e)/o+4),a*=60),t.r=a,t.g=h,t.b=s,t}toLinearSpace(t=!1){let r=new l;return this.toLinearSpaceToRef(r,t),r}toLinearSpaceToRef(t,r=!1){return r?(t.r=a(this.r),t.g=a(this.g),t.b=a(this.b)):(t.r=n(this.r),t.g=n(this.g),t.b=n(this.b)),this}toGammaSpace(t=!1){let r=new l;return this.toGammaSpaceToRef(r,t),r}toGammaSpaceToRef(t,r=!1){return r?(t.r=o(this.r),t.g=o(this.g),t.b=o(this.b)):(t.r=h(this.r),t.g=h(this.g),t.b=h(this.b)),this}static HSVtoRGBToRef(t,r,e,i){let s=e*r,n=t/60,a=s*(1-Math.abs(n%2-1)),h=0,o=0,l=0;n>=0&&n<=1?(h=s,o=a):n>=1&&n<=2?(h=a,o=s):n>=2&&n<=3?(o=s,l=a):n>=3&&n<=4?(o=a,l=s):n>=4&&n<=5?(h=a,l=s):n>=5&&n<=6&&(h=s,l=a);let u=e-s;return i.r=h+u,i.g=o+u,i.b=l+u,i}static FromHSV(t,r,e){let i=new l(0,0,0);return l.HSVtoRGBToRef(t,r,e,i),i}static FromHexString(t){return new l(0,0,0).fromHexString(t)}static FromArray(t,r=0){return new l(t[r],t[r+1],t[r+2])}static FromArrayToRef(t,r=0,e){e.r=t[r],e.g=t[r+1],e.b=t[r+2]}static FromInts(t,r,e){return new l(t/255,r/255,e/255)}static Lerp(t,r,e){let i=new l(0,0,0);return l.LerpToRef(t,r,e,i),i}static LerpToRef(t,r,e,i){i.r=t.r+(r.r-t.r)*e,i.g=t.g+(r.g-t.g)*e,i.b=t.b+(r.b-t.b)*e}static Hermite(t,r,e,i,s){let n=s*s,a=s*n,h=2*a-3*n+1,o=-2*a+3*n,u=a-2*n+s,c=a-n;return new l(t.r*h+e.r*o+r.r*u+i.r*c,t.g*h+e.g*o+r.g*u+i.g*c,t.b*h+e.b*o+r.b*u+i.b*c)}static Hermite1stDerivative(t,r,e,i,s){let n=l.Black();return this.Hermite1stDerivativeToRef(t,r,e,i,s,n),n}static Hermite1stDerivativeToRef(t,r,e,i,s,n){let a=s*s;n.r=(a-s)*6*t.r+(3*a-4*s+1)*r.r+(-a+s)*6*e.r+(3*a-2*s)*i.r,n.g=(a-s)*6*t.g+(3*a-4*s+1)*r.g+(-a+s)*6*e.g+(3*a-2*s)*i.g,n.b=(a-s)*6*t.b+(3*a-4*s+1)*r.b+(-a+s)*6*e.b+(3*a-2*s)*i.b}static Red(){return new l(1,0,0)}static Green(){return new l(0,1,0)}static Blue(){return new l(0,0,1)}static Black(){return new l(0,0,0)}static get BlackReadOnly(){return l._BlackReadOnly}static White(){return new l(1,1,1)}static Purple(){return new l(.5,0,.5)}static Magenta(){return new l(1,0,1)}static Yellow(){return new l(1,1,0)}static Gray(){return new l(.5,.5,.5)}static Teal(){return new l(0,1,1)}static Random(){return new l(Math.random(),Math.random(),Math.random())}}l._V8PerformanceHack=new l(.5,.5,.5),l._BlackReadOnly=l.Black();class u{constructor(t=0,r=0,e=0,i=1){this.r=t,this.g=r,this.b=e,this.a=i}asArray(){return[this.r,this.g,this.b,this.a]}toArray(t,r=0){return t[r]=this.r,t[r+1]=this.g,t[r+2]=this.b,t[r+3]=this.a,this}fromArray(t,r=0){return this.r=t[r],this.g=t[r+1],this.b=t[r+2],this.a=t[r+3],this}equals(t){return t&&this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}add(t){return new u(this.r+t.r,this.g+t.g,this.b+t.b,this.a+t.a)}addToRef(t,r){return r.r=this.r+t.r,r.g=this.g+t.g,r.b=this.b+t.b,r.a=this.a+t.a,r}addInPlace(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this.a+=t.a,this}addInPlaceFromFloats(t,r,e,i){return this.r+=t,this.g+=r,this.b+=e,this.a+=i,this}subtract(t){return new u(this.r-t.r,this.g-t.g,this.b-t.b,this.a-t.a)}subtractToRef(t,r){return r.r=this.r-t.r,r.g=this.g-t.g,r.b=this.b-t.b,r.a=this.a-t.a,r}subtractInPlace(t){return this.r-=t.r,this.g-=t.g,this.b-=t.b,this.a-=t.a,this}subtractFromFloats(t,r,e,i){return new u(this.r-t,this.g-r,this.b-e,this.a-i)}subtractFromFloatsToRef(t,r,e,i,s){return s.r=this.r-t,s.g=this.g-r,s.b=this.b-e,s.a=this.a-i,s}scale(t){return new u(this.r*t,this.g*t,this.b*t,this.a*t)}scaleInPlace(t){return this.r*=t,this.g*=t,this.b*=t,this.a*=t,this}scaleToRef(t,r){return r.r=this.r*t,r.g=this.g*t,r.b=this.b*t,r.a=this.a*t,r}scaleAndAddToRef(t,r){return r.r+=this.r*t,r.g+=this.g*t,r.b+=this.b*t,r.a+=this.a*t,r}clampToRef(t=0,r=1,e){return e.r=(0,i.Clamp)(this.r,t,r),e.g=(0,i.Clamp)(this.g,t,r),e.b=(0,i.Clamp)(this.b,t,r),e.a=(0,i.Clamp)(this.a,t,r),e}multiply(t){return new u(this.r*t.r,this.g*t.g,this.b*t.b,this.a*t.a)}multiplyToRef(t,r){return r.r=this.r*t.r,r.g=this.g*t.g,r.b=this.b*t.b,r.a=this.a*t.a,r}multiplyInPlace(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this.a*=t.a,this}multiplyByFloats(t,r,e,i){return new u(this.r*t,this.g*r,this.b*e,this.a*i)}divide(t){throw ReferenceError("Can not divide a color")}divideToRef(t,r){throw ReferenceError("Can not divide a color")}divideInPlace(t){throw ReferenceError("Can not divide a color")}minimizeInPlace(t){return this.r=Math.min(this.r,t.r),this.g=Math.min(this.g,t.g),this.b=Math.min(this.b,t.b),this.a=Math.min(this.a,t.a),this}maximizeInPlace(t){return this.r=Math.max(this.r,t.r),this.g=Math.max(this.g,t.g),this.b=Math.max(this.b,t.b),this.a=Math.max(this.a,t.a),this}minimizeInPlaceFromFloats(t,r,e,i){return this.r=Math.min(t,this.r),this.g=Math.min(r,this.g),this.b=Math.min(e,this.b),this.a=Math.min(i,this.a),this}maximizeInPlaceFromFloats(t,r,e,i){return this.r=Math.max(t,this.r),this.g=Math.max(r,this.g),this.b=Math.max(e,this.b),this.a=Math.max(i,this.a),this}floorToRef(t){throw ReferenceError("Can not floor a color")}floor(){throw ReferenceError("Can not floor a color")}fractToRef(t){throw ReferenceError("Can not fract a color")}fract(){throw ReferenceError("Can not fract a color")}negate(){throw ReferenceError("Can not negate a color")}negateInPlace(){throw ReferenceError("Can not negate a color")}negateToRef(t){throw ReferenceError("Can not negate a color")}equalsWithEpsilon(t,r=e.Epsilon){return(0,i.WithinEpsilon)(this.r,t.r,r)&&(0,i.WithinEpsilon)(this.g,t.g,r)&&(0,i.WithinEpsilon)(this.b,t.b,r)&&(0,i.WithinEpsilon)(this.a,t.a,r)}equalsToFloats(t,r,e,i){return this.r===t&&this.g===r&&this.b===e&&this.a===i}toString(){return"{R: "+this.r+" G:"+this.g+" B:"+this.b+" A:"+this.a+"}"}getClassName(){return"Color4"}getHashCode(){let t=255*this.r|0;return 397*(t=397*(t=397*t^255*this.g)^255*this.b)^255*this.a}clone(){return new u().copyFrom(this)}copyFrom(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this}copyFromFloats(t,r,e,i){return this.r=t,this.g=r,this.b=e,this.a=i,this}set(t,r,e,i){return this.copyFromFloats(t,r,e,i)}setAll(t){return this.r=this.g=this.b=this.a=t,this}toHexString(t=!1){let r=Math.round(255*this.r),e=Math.round(255*this.g),s=Math.round(255*this.b);if(t)return"#"+(0,i.ToHex)(r)+(0,i.ToHex)(e)+(0,i.ToHex)(s);let n=Math.round(255*this.a);return"#"+(0,i.ToHex)(r)+(0,i.ToHex)(e)+(0,i.ToHex)(s)+(0,i.ToHex)(n)}fromHexString(t){return"#"!==t.substring(0,1)||9!==t.length&&7!==t.length||(this.r=parseInt(t.substring(1,3),16)/255,this.g=parseInt(t.substring(3,5),16)/255,this.b=parseInt(t.substring(5,7),16)/255,9===t.length&&(this.a=parseInt(t.substring(7,9),16)/255)),this}toLinearSpace(t=!1){let r=new u;return this.toLinearSpaceToRef(r,t),r}toLinearSpaceToRef(t,r=!1){return r?(t.r=a(this.r),t.g=a(this.g),t.b=a(this.b)):(t.r=n(this.r),t.g=n(this.g),t.b=n(this.b)),t.a=this.a,this}toGammaSpace(t=!1){let r=new u;return this.toGammaSpaceToRef(r,t),r}toGammaSpaceToRef(t,r=!1){return r?(t.r=o(this.r),t.g=o(this.g),t.b=o(this.b)):(t.r=h(this.r),t.g=h(this.g),t.b=h(this.b)),t.a=this.a,this}static FromHexString(t){return"#"!==t.substring(0,1)||9!==t.length&&7!==t.length?new u(0,0,0,0):new u(0,0,0,1).fromHexString(t)}static Lerp(t,r,e){return u.LerpToRef(t,r,e,new u)}static LerpToRef(t,r,e,i){return i.r=t.r+(r.r-t.r)*e,i.g=t.g+(r.g-t.g)*e,i.b=t.b+(r.b-t.b)*e,i.a=t.a+(r.a-t.a)*e,i}static Hermite(t,r,e,i,s){let n=s*s,a=s*n,h=2*a-3*n+1,o=-2*a+3*n,l=a-2*n+s,c=a-n;return new u(t.r*h+e.r*o+r.r*l+i.r*c,t.g*h+e.g*o+r.g*l+i.g*c,t.b*h+e.b*o+r.b*l+i.b*c,t.a*h+e.a*o+r.a*l+i.a*c)}static Hermite1stDerivative(t,r,e,i,s){let n=new u;return this.Hermite1stDerivativeToRef(t,r,e,i,s,n),n}static Hermite1stDerivativeToRef(t,r,e,i,s,n){let a=s*s;n.r=(a-s)*6*t.r+(3*a-4*s+1)*r.r+(-a+s)*6*e.r+(3*a-2*s)*i.r,n.g=(a-s)*6*t.g+(3*a-4*s+1)*r.g+(-a+s)*6*e.g+(3*a-2*s)*i.g,n.b=(a-s)*6*t.b+(3*a-4*s+1)*r.b+(-a+s)*6*e.b+(3*a-2*s)*i.b,n.a=(a-s)*6*t.a+(3*a-4*s+1)*r.a+(-a+s)*6*e.a+(3*a-2*s)*i.a}static FromColor3(t,r=1){return new u(t.r,t.g,t.b,r)}static FromArray(t,r=0){return new u(t[r],t[r+1],t[r+2],t[r+3])}static FromArrayToRef(t,r=0,e){e.r=t[r],e.g=t[r+1],e.b=t[r+2],e.a=t[r+3]}static FromInts(t,r,e,i){return new u(t/255,r/255,e/255,i/255)}static CheckColors4(t,r){if(t.length===3*r){let r=[];for(let e=0;e<t.length;e+=3){let i=e/3*4;r[i]=t[e],r[i+1]=t[e+1],r[i+2]=t[e+2],r[i+3]=1}return r}return t}}u._V8PerformanceHack=new u(.5,.5,.5,.5);class c{}c.Color3=(0,r.BuildArray)(3,l.Black),c.Color4=(0,r.BuildArray)(3,()=>new u(0,0,0,0));let g=!1;t.s(["Color3",0,l,"Color4",0,u,"RegisterMathColor",0,function(){g||(g=!0,Object.defineProperties(l.prototype,{dimension:{value:[3]},rank:{value:1}}),Object.defineProperties(u.prototype,{dimension:{value:[4]},rank:{value:1}}),(0,s.RegisterClass)("BABYLON.Color3",l),(0,s.RegisterClass)("BABYLON.Color4",u))},"TmpColors",0,c])},46202,t=>{"use strict";function r(t,e=0,i=1){return Math.min(i,Math.max(e,t))}function e(t,r){return t-Math.floor(t/r)*r}function i(t,r){let i=e(r-t,360);return i>180&&(i-=360),i}function s(t,r,e){return Math.abs(r-t)<=e?r:t+Math.sign(r-t)*e}t.s(["Clamp",0,r,"DeltaAngle",0,i,"Denormalize",0,function(t,r,e){return t*(e-r)+r},"ExtractAsInt",0,function(t){return parseInt(t.toString().replace(/\W/g,""))},"Hermite",0,function(t,r,e,i,s){let n=s*s,a=s*n;return t*(2*a-3*n+1)+e*(-2*a+3*n)+r*(a-2*n+s)+i*(a-n)},"Hermite1stDerivative",0,function(t,r,e,i,s){let n=s*s;return(n-s)*6*t+(3*n-4*s+1)*r+(-n+s)*6*e+(3*n-2*s)*i},"HighestCommonFactor",0,function t(r,e){let i=r%e;return 0===i?e:t(e,i)},"ILog2",0,function(t){if(Math.log2)return Math.floor(Math.log2(t));if(t<0)return NaN;if(0===t)return-1/0;let r=0;if(t<1){for(;t<1;)r++,t*=2;r=-r}else if(t>1)for(;t>1;)r++,t=Math.floor(t/2);return r},"InverseLerp",0,function(t,e,i){return t!=e?r((i-t)/(e-t)):0},"Lerp",0,function(t,r,e){return t+(r-t)*e},"LerpAngle",0,function(t,i,s){let n=e(i-t,360);return n>180&&(n-=360),t+n*r(s)},"MoveTowards",0,s,"MoveTowardsAngle",0,function(t,r,e){let n,a=i(t,r);return-e<a&&a<e?n=r:(r=t+a,n=s(t,r,e)),n},"Normalize",0,function(t,r,e){return(t-r)/(e-r)},"NormalizeRadians",0,function(t){return t-2*Math.PI*Math.floor((t+Math.PI)/(2*Math.PI))},"OutsideRange",0,function(t,r,e,i=1401298e-51){return t<r-i||t>e+i},"PercentToRange",0,function(t,r,e){return(e-r)*t+r},"PingPong",0,function(t,r){let i=e(t,2*r);return r-Math.abs(i-r)},"RandomRange",0,function(t,r){return t===r?t:Math.random()*(r-t)+t},"RangeToPercent",0,function(t,r,e){return(t-r)/(e-r)},"Repeat",0,e,"SmoothStep",0,function(t,e,i){let s=r(i);return e*(s=-2*s*s*s+3*s*s)+t*(1-s)},"ToHex",0,function(t){let r=t.toString(16);return t<=15?("0"+r).toUpperCase():r.toUpperCase()},"WithinEpsilon",0,function(t,r,e=1401298e-51){return Math.abs(t-r)<=e}])},99493,t=>{"use strict";let r={};t.s(["GetClass",0,function(t){return r[t]},"RegisterClass",0,function(t,e){r[t]=e}])}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25508,e=>{"use strict";var a=e.i(37875),r=e.i(35017),i=e.i(36028),n=e.i(84327),f=e.i(2586),o=e.i(11868),t=e.i(30368),c=e.i(68300),l=e.i(83805),d=e.i(6761);let s="samplerFragmentAlternateDeclaration",E=`#ifdef _DEFINENAME_
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69721,e=>{"use strict";var a=e.i(2342),r=e.i(78642),i=e.i(42747),n=e.i(34218),f=e.i(25661),t=e.i(50326),o=e.i(77918),c=e.i(81917),l=e.i(3781),d=e.i(59994);let s="samplerFragmentAlternateDeclaration",E=`#ifdef _DEFINENAME_
2
2
  #if _DEFINENAME_DIRECTUV==1
3
3
  #define v_VARYINGNAME_UV vMainUV1
4
4
  #elif _DEFINENAME_DIRECTUV==2
@@ -15,7 +15,7 @@
15
15
  varying v_VARYINGNAME_UV: vec2f;
16
16
  #endif
17
17
  #endif
18
- `;a.ShaderStore.IncludesShadersStoreWGSL[s]||(a.ShaderStore.IncludesShadersStoreWGSL[s]=E);var S=e.i(23208);let R="pbrFragmentSamplersDeclaration",m=`#include<samplerFragmentDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_SAMPLERNAME_,albedo)
18
+ `;a.ShaderStore.IncludesShadersStoreWGSL[s]||(a.ShaderStore.IncludesShadersStoreWGSL[s]=E);var S=e.i(86441);let R="pbrFragmentSamplersDeclaration",m=`#include<samplerFragmentDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_SAMPLERNAME_,albedo)
19
19
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_WEIGHT,_VARYINGNAME_,BaseWeight,_SAMPLERNAME_,baseWeight)
20
20
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_DIFFUSE_ROUGHNESS,_VARYINGNAME_,BaseDiffuseRoughness,_SAMPLERNAME_,baseDiffuseRoughness)
21
21
  #include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)
@@ -78,7 +78,7 @@ var refractionLowSamplerSampler: sampler;var refractionLowSampler: texture_2d<f3
78
78
  #ifdef IBL_CDF_FILTERING
79
79
  var icdfSamplerSampler: sampler;var icdfSampler: texture_2d<f32>;
80
80
  #endif
81
- `;a.ShaderStore.IncludesShadersStoreWGSL[R]||(a.ShaderStore.IncludesShadersStoreWGSL[R]=m);var C=e.i(73081),u=e.i(4294),v=e.i(95676),I=e.i(11557),A=e.i(15535),p=e.i(73272),N=e.i(85038),O=e.i(62456),T=e.i(98408),L=e.i(40995),_=e.i(34458),M=e.i(17978),D=e.i(50273),F=e.i(36244),h=e.i(1497),g=e.i(44068),P=e.i(38129),U=e.i(96429),b=e.i(73142),y=e.i(41290),G=e.i(66857),B=e.i(51201),V=e.i(59575),W=e.i(18724),H=e.i(36963);let x="pbrBlockAlbedoOpacity",X=`struct albedoOpacityOutParams
81
+ `;a.ShaderStore.IncludesShadersStoreWGSL[R]||(a.ShaderStore.IncludesShadersStoreWGSL[R]=m);var C=e.i(8371),u=e.i(49338),v=e.i(67263),I=e.i(97039),A=e.i(76260),p=e.i(35551),N=e.i(57676),O=e.i(41316),T=e.i(48545),L=e.i(85754),_=e.i(71240),M=e.i(51760),D=e.i(30433),F=e.i(89861),h=e.i(21844),g=e.i(51052),P=e.i(80118),U=e.i(39383),b=e.i(3480),y=e.i(54023),G=e.i(76632),B=e.i(48596),V=e.i(50853),W=e.i(59200),H=e.i(77843),x=e.i(82714);let X="pbrBlockAlbedoOpacity",Y=`struct albedoOpacityOutParams
82
82
  {surfaceAlbedo: vec3f,
83
83
  alpha: f32};
84
84
  #define pbr_inline
@@ -157,7 +157,7 @@ alpha=1.0;
157
157
  #endif
158
158
  #endif
159
159
  outParams.surfaceAlbedo=surfaceAlbedo;outParams.alpha=alpha;return outParams;}
160
- `;a.ShaderStore.IncludesShadersStoreWGSL[x]||(a.ShaderStore.IncludesShadersStoreWGSL[x]=X);let Y="pbrBlockReflectivity",w=`struct reflectivityOutParams
160
+ `;a.ShaderStore.IncludesShadersStoreWGSL[X]||(a.ShaderStore.IncludesShadersStoreWGSL[X]=Y);let w="pbrBlockReflectivity",k=`struct reflectivityOutParams
161
161
  {microSurface: f32,
162
162
  roughness: f32,
163
163
  diffuseRoughness: f32,
@@ -317,7 +317,7 @@ microSurface=saturate(microSurface);var roughness: f32=1.-microSurface;var diffu
317
317
  diffuseRoughness*=baseDiffuseRoughnessTexture*baseDiffuseRoughnessInfos.y;
318
318
  #endif
319
319
  outParams.microSurface=microSurface;outParams.roughness=roughness;outParams.diffuseRoughness=diffuseRoughness;return outParams;}
320
- `;a.ShaderStore.IncludesShadersStoreWGSL[Y]||(a.ShaderStore.IncludesShadersStoreWGSL[Y]=w);let k="pbrBlockAmbientOcclusion",z=`struct ambientOcclusionOutParams
320
+ `;a.ShaderStore.IncludesShadersStoreWGSL[w]||(a.ShaderStore.IncludesShadersStoreWGSL[w]=k);let z="pbrBlockAmbientOcclusion",K=`struct ambientOcclusionOutParams
321
321
  {ambientOcclusionColor: vec3f,
322
322
  #if DEBUGMODE>0 && defined(AMBIENT)
323
323
  ambientOcclusionColorMap: vec3f
@@ -343,7 +343,7 @@ outParams.ambientOcclusionColorMap=ambientOcclusionColorMap;
343
343
  #endif
344
344
  #endif
345
345
  outParams.ambientOcclusionColor=ambientOcclusionColor;return outParams;}
346
- `;a.ShaderStore.IncludesShadersStoreWGSL[k]||(a.ShaderStore.IncludesShadersStoreWGSL[k]=z);let K="pbrBlockAlphaFresnel",q=`#ifdef ALPHAFRESNEL
346
+ `;a.ShaderStore.IncludesShadersStoreWGSL[z]||(a.ShaderStore.IncludesShadersStoreWGSL[z]=K);let q="pbrBlockAlphaFresnel",Z=`#ifdef ALPHAFRESNEL
347
347
  #if defined(ALPHATEST) || defined(ALPHABLEND)
348
348
  struct alphaFresnelOutParams
349
349
  {alpha: f32};fn faceforward(N: vec3<f32>,I: vec3<f32>,Nref: vec3<f32>)->vec3<f32> {return select(N,-N,dot(Nref,I)>0.0);}
@@ -370,7 +370,7 @@ outParams.alpha=1.0;
370
370
  return outParams;}
371
371
  #endif
372
372
  #endif
373
- `;a.ShaderStore.IncludesShadersStoreWGSL[K]||(a.ShaderStore.IncludesShadersStoreWGSL[K]=q);let Z="pbrBlockAnisotropic",J=`#ifdef ANISOTROPIC
373
+ `;a.ShaderStore.IncludesShadersStoreWGSL[q]||(a.ShaderStore.IncludesShadersStoreWGSL[q]=Z);let J="pbrBlockAnisotropic",Q=`#ifdef ANISOTROPIC
374
374
  struct anisotropicOutParams
375
375
  {anisotropy: f32,
376
376
  anisotropicTangent: vec3f,
@@ -407,7 +407,7 @@ anisotropyDirection=vec3f(mat2x2f(anisotropyDirection.x,anisotropyDirection.y,-a
407
407
  #endif
408
408
  var anisoTBN: mat3x3f= mat3x3f(normalize(TBN[0]),normalize(TBN[1]),normalize(TBN[2]));var anisotropicTangent: vec3f=normalize(anisoTBN*anisotropyDirection);var anisotropicBitangent: vec3f=normalize(cross(anisoTBN[2],anisotropicTangent));outParams.anisotropy=anisotropy;outParams.anisotropicTangent=anisotropicTangent;outParams.anisotropicBitangent=anisotropicBitangent;outParams.anisotropicNormal=getAnisotropicBentNormals(anisotropicTangent,anisotropicBitangent,normalW,viewDirectionW,anisotropy,roughness);return outParams;}
409
409
  #endif
410
- `;a.ShaderStore.IncludesShadersStoreWGSL[Z]||(a.ShaderStore.IncludesShadersStoreWGSL[Z]=J);let Q="pbrBlockReflection",j=`#ifdef REFLECTION
410
+ `;a.ShaderStore.IncludesShadersStoreWGSL[J]||(a.ShaderStore.IncludesShadersStoreWGSL[J]=Q);let j="pbrBlockReflection",$=`#ifdef REFLECTION
411
411
  struct reflectionOutParams
412
412
  {environmentRadiance: vec4f
413
413
  ,environmentIrradiance: vec3f
@@ -717,7 +717,7 @@ outParams.environmentRadiance=environmentRadiance;
717
717
  #endif
718
718
  outParams.environmentIrradiance=environmentIrradiance;outParams.reflectionCoords=reflectionCoords;return outParams;}
719
719
  #endif
720
- `;a.ShaderStore.IncludesShadersStoreWGSL[Q]||(a.ShaderStore.IncludesShadersStoreWGSL[Q]=j);let $="pbrBlockSheen",ee=`#ifdef SHEEN
720
+ `;a.ShaderStore.IncludesShadersStoreWGSL[j]||(a.ShaderStore.IncludesShadersStoreWGSL[j]=$);let ee="pbrBlockSheen",ea=`#ifdef SHEEN
721
721
  struct sheenOutParams
722
722
  {sheenIntensity: f32
723
723
  ,sheenColor: vec3f
@@ -903,7 +903,7 @@ outParams.sheenAlbedoScaling=1.0-sheenIntensity*max(max(sheenColor.r,sheenColor.
903
903
  #endif
904
904
  outParams.sheenIntensity=sheenIntensity;outParams.sheenColor=sheenColor;outParams.sheenRoughness=sheenRoughness;return outParams;}
905
905
  #endif
906
- `;a.ShaderStore.IncludesShadersStoreWGSL[$]||(a.ShaderStore.IncludesShadersStoreWGSL[$]=ee);let ea="pbrBlockClearcoat",er=`struct clearcoatOutParams
906
+ `;a.ShaderStore.IncludesShadersStoreWGSL[ee]||(a.ShaderStore.IncludesShadersStoreWGSL[ee]=ea);let er="pbrBlockClearcoat",ei=`struct clearcoatOutParams
907
907
  {specularEnvironmentR0: vec3f,
908
908
  conservationFactor: f32,
909
909
  clearCoatNormalW: vec3f,
@@ -1156,7 +1156,7 @@ outParams.energyConservationFactorClearCoat=getEnergyConservationFactor(outParam
1156
1156
  #endif
1157
1157
  return outParams;}
1158
1158
  #endif
1159
- `;a.ShaderStore.IncludesShadersStoreWGSL[ea]||(a.ShaderStore.IncludesShadersStoreWGSL[ea]=er);let ei="pbrBlockIridescence",en=`struct iridescenceOutParams
1159
+ `;a.ShaderStore.IncludesShadersStoreWGSL[er]||(a.ShaderStore.IncludesShadersStoreWGSL[er]=ei);let en="pbrBlockIridescence",ef=`struct iridescenceOutParams
1160
1160
  {iridescenceIntensity: f32,
1161
1161
  iridescenceIOR: f32,
1162
1162
  iridescenceThickness: f32,
@@ -1197,7 +1197,7 @@ topIor=mix(1.0,uniforms.vClearCoatRefractionParams.w-1.,clearCoatIntensity);view
1197
1197
  #endif
1198
1198
  var iridescenceFresnel: vec3f=evalIridescence(topIor,iridescenceIOR,viewAngle,iridescenceThickness,specularEnvironmentR0);outParams.specularEnvironmentR0=mix(specularEnvironmentR0,iridescenceFresnel,iridescenceIntensity);outParams.iridescenceIntensity=iridescenceIntensity;outParams.iridescenceThickness=iridescenceThickness;outParams.iridescenceIOR=iridescenceIOR;return outParams;}
1199
1199
  #endif
1200
- `;a.ShaderStore.IncludesShadersStoreWGSL[ei]||(a.ShaderStore.IncludesShadersStoreWGSL[ei]=en);let ef="pbrBlockSubSurface",eo=`struct subSurfaceOutParams
1200
+ `;a.ShaderStore.IncludesShadersStoreWGSL[en]||(a.ShaderStore.IncludesShadersStoreWGSL[en]=ef);let et="pbrBlockSubSurface",eo=`struct subSurfaceOutParams
1201
1201
  {specularEnvironmentReflectance: vec3f,
1202
1202
  #ifdef SS_REFRACTION
1203
1203
  finalRefraction: vec3f,
@@ -1619,7 +1619,7 @@ outParams.refractionIrradiance=refractionIrradiance;
1619
1619
  #endif
1620
1620
  return outParams;}
1621
1621
  #endif
1622
- `;a.ShaderStore.IncludesShadersStoreWGSL[ef]||(a.ShaderStore.IncludesShadersStoreWGSL[ef]=eo);var et=e.i(71990),ec=e.i(10467),el=e.i(26887);let ed="pbrBlockNormalFinal",es=`#if defined(FORCENORMALFORWARD) && defined(NORMAL)
1622
+ `;a.ShaderStore.IncludesShadersStoreWGSL[et]||(a.ShaderStore.IncludesShadersStoreWGSL[et]=eo);var ec=e.i(65513),el=e.i(81497),ed=e.i(52612);let es="pbrBlockNormalFinal",eE=`#if defined(FORCENORMALFORWARD) && defined(NORMAL)
1623
1623
  var faceNormal: vec3f=normalize(cross(dpdx(fragmentInputs.vPositionW),dpdy(fragmentInputs.vPositionW)))*scene.vEyePosition.w;
1624
1624
  #if defined(TWOSIDEDLIGHTING)
1625
1625
  faceNormal=select(-faceNormal,faceNormal,fragmentInputs.frontFacing);
@@ -1633,7 +1633,7 @@ normalW=select(normalW,-normalW,fragmentInputs.frontFacing);
1633
1633
  normalW=select(-normalW,normalW,fragmentInputs.frontFacing);
1634
1634
  #endif
1635
1635
  #endif
1636
- `;a.ShaderStore.IncludesShadersStoreWGSL[ed]||(a.ShaderStore.IncludesShadersStoreWGSL[ed]=es);var eE=e.i(27305);let eS="pbrBlockLightmapInit",eR=`#ifdef LIGHTMAP
1636
+ `;a.ShaderStore.IncludesShadersStoreWGSL[es]||(a.ShaderStore.IncludesShadersStoreWGSL[es]=eE);var eS=e.i(497);let eR="pbrBlockLightmapInit",em=`#ifdef LIGHTMAP
1637
1637
  var lightmapColor: vec4f=TEXRD(lightmapSampler,lightmapSamplerSampler,fragmentInputs.vLightmapUV+uvOffset);
1638
1638
  #ifdef RGBDLIGHTMAP
1639
1639
  lightmapColor=vec4f(fromRGBD(lightmapColor),lightmapColor.a);
@@ -1643,7 +1643,7 @@ lightmapColor=vec4f(toLinearSpaceVec3(lightmapColor.rgb),lightmapColor.a);
1643
1643
  #endif
1644
1644
  lightmapColor=vec4f(lightmapColor.rgb*uniforms.vLightmapInfos.y,lightmapColor.a);
1645
1645
  #endif
1646
- `;a.ShaderStore.IncludesShadersStoreWGSL[eS]||(a.ShaderStore.IncludesShadersStoreWGSL[eS]=eR);let em="pbrBlockGeometryInfo",eC=`var NdotVUnclamped: f32=dot(normalW,viewDirectionW);var NdotV: f32=absEps(NdotVUnclamped);var alphaG: f32=convertRoughnessToAverageSlope(roughness);var AARoughnessFactors: vec2f=getAARoughnessFactors(normalW.xyz);
1646
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eR]||(a.ShaderStore.IncludesShadersStoreWGSL[eR]=em);let eC="pbrBlockGeometryInfo",eu=`var NdotVUnclamped: f32=dot(normalW,viewDirectionW);var NdotV: f32=absEps(NdotVUnclamped);var alphaG: f32=convertRoughnessToAverageSlope(roughness);var AARoughnessFactors: vec2f=getAARoughnessFactors(normalW.xyz);
1647
1647
  #ifdef SPECULARAA
1648
1648
  alphaG+=AARoughnessFactors.y;
1649
1649
  #endif
@@ -1667,7 +1667,7 @@ var eho: f32=environmentHorizonOcclusion(-viewDirectionW,normalW,geometricNormal
1667
1667
  #endif
1668
1668
  #endif
1669
1669
  #endif
1670
- `;a.ShaderStore.IncludesShadersStoreWGSL[em]||(a.ShaderStore.IncludesShadersStoreWGSL[em]=eC);let eu="pbrBlockReflectance",ev=`#if defined(ENVIRONMENTBRDF) && !defined(REFLECTIONMAP_SKYBOX)
1670
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eC]||(a.ShaderStore.IncludesShadersStoreWGSL[eC]=eu);let ev="pbrBlockReflectance",eI=`#if defined(ENVIRONMENTBRDF) && !defined(REFLECTIONMAP_SKYBOX)
1671
1671
  var baseSpecularEnvironmentReflectance: vec3f=getReflectanceFromBRDFWithEnvLookup(vec3f(reflectanceF0),vec3f(reflectivityOut.reflectanceF90),environmentBrdf);
1672
1672
  #if (CONDUCTOR_SPECULAR_MODEL==CONDUCTOR_SPECULAR_MODEL_OPENPBR)
1673
1673
  let metalEnvironmentReflectance: vec3f=vec3f(reflectivityOut.specularWeight)*getF82Specular(NdotV,clearcoatOut.specularEnvironmentR0,reflectivityOut.colorReflectanceF90,reflectivityOut.roughness);let dielectricEnvironmentReflectance=getReflectanceFromBRDFWithEnvLookup(reflectivityOut.dielectricColorF0,reflectivityOut.colorReflectanceF90,environmentBrdf);var colorSpecularEnvironmentReflectance: vec3f=mix(dielectricEnvironmentReflectance,metalEnvironmentReflectance,reflectivityOut.metallic);
@@ -1693,7 +1693,7 @@ colorSpecularEnvironmentReflectance*=clearcoatOut.conservationFactor;
1693
1693
  colorSpecularEnvironmentReflectance*=clearcoatOut.absorption;
1694
1694
  #endif
1695
1695
  #endif
1696
- `;a.ShaderStore.IncludesShadersStoreWGSL[eu]||(a.ShaderStore.IncludesShadersStoreWGSL[eu]=ev);let eI="pbrBlockDirectLighting",eA=`var diffuseBase: vec3f=vec3f(0.,0.,0.);
1696
+ `;a.ShaderStore.IncludesShadersStoreWGSL[ev]||(a.ShaderStore.IncludesShadersStoreWGSL[ev]=eI);let eA="pbrBlockDirectLighting",ep=`var diffuseBase: vec3f=vec3f(0.,0.,0.);
1697
1697
  #ifdef SS_TRANSLUCENCY
1698
1698
  var diffuseTransmissionBase: vec3f=vec3f(0.,0.,0.);
1699
1699
  #endif
@@ -1714,7 +1714,7 @@ var aggShadow: f32=0.;var numLights: f32=0.;
1714
1714
  #if defined(CLEARCOAT) && defined(CLEARCOAT_TINT)
1715
1715
  var absorption: vec3f=vec3f(0.);
1716
1716
  #endif
1717
- `;a.ShaderStore.IncludesShadersStoreWGSL[eI]||(a.ShaderStore.IncludesShadersStoreWGSL[eI]=eA);var ep=e.i(31845);let eN="pbrBlockFinalLitComponents",eO=`aggShadow=aggShadow/numLights;
1717
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eA]||(a.ShaderStore.IncludesShadersStoreWGSL[eA]=ep);var eN=e.i(64300);let eO="pbrBlockFinalLitComponents",eT=`aggShadow=aggShadow/numLights;
1718
1718
  #if defined(ENVIRONMENTBRDF)
1719
1719
  #ifdef MS_BRDF_ENERGY_CONSERVATION
1720
1720
  var baseSpecularEnergyConservationFactor: vec3f=getEnergyConservationFactor(vec3f(reflectanceF0),environmentBrdf);var coloredEnergyConservationFactor: vec3f=getEnergyConservationFactor(clearcoatOut.specularEnvironmentR0,environmentBrdf);
@@ -1820,7 +1820,7 @@ luminanceOverAlpha+=getLuminance(finalClearCoatScaled);
1820
1820
  alpha=saturate(alpha+luminanceOverAlpha*luminanceOverAlpha);
1821
1821
  #endif
1822
1822
  #endif
1823
- `;a.ShaderStore.IncludesShadersStoreWGSL[eN]||(a.ShaderStore.IncludesShadersStoreWGSL[eN]=eO);let eT="pbrBlockFinalUnlitComponents",eL=`var finalDiffuse: vec3f=diffuseBase;finalDiffuse*=surfaceAlbedo;
1823
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eO]||(a.ShaderStore.IncludesShadersStoreWGSL[eO]=eT);let eL="pbrBlockFinalUnlitComponents",e_=`var finalDiffuse: vec3f=diffuseBase;finalDiffuse*=surfaceAlbedo;
1824
1824
  #if defined(SS_REFRACTION) && !defined(UNLIT) && !defined(LEGACY_SPECULAR_ENERGY_CONSERVATION)
1825
1825
  finalDiffuse*=subSurfaceOut.refractionOpacity;
1826
1826
  #endif
@@ -1844,7 +1844,7 @@ var ambientOcclusionForDirectDiffuse: vec3f=mix( vec3f(1.),aoOut.ambientOcclusio
1844
1844
  var ambientOcclusionForDirectDiffuse: vec3f=aoOut.ambientOcclusionColor;
1845
1845
  #endif
1846
1846
  finalAmbient*=aoOut.ambientOcclusionColor;finalDiffuse*=ambientOcclusionForDirectDiffuse;
1847
- `;a.ShaderStore.IncludesShadersStoreWGSL[eT]||(a.ShaderStore.IncludesShadersStoreWGSL[eT]=eL);let e_="pbrBlockFinalColorComposition",eM=`var finalColor: vec4f= vec4f(
1847
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eL]||(a.ShaderStore.IncludesShadersStoreWGSL[eL]=e_);let eM="pbrBlockFinalColorComposition",eD=`var finalColor: vec4f= vec4f(
1848
1848
  #ifndef UNLIT
1849
1849
  #ifdef REFLECTION
1850
1850
  finalIrradiance +
@@ -1886,7 +1886,7 @@ finalColor=vec4f(finalColor.rgb+lightmapColor.rgb,finalColor.a);
1886
1886
  finalColor=vec4f(finalColor.rgb+finalEmissive,finalColor.a);
1887
1887
  #define CUSTOM_FRAGMENT_BEFORE_FOG
1888
1888
  finalColor=max(finalColor,vec4f(0.0));
1889
- `;a.ShaderStore.IncludesShadersStoreWGSL[e_]||(a.ShaderStore.IncludesShadersStoreWGSL[e_]=eM);var eD=e.i(8760),eF=e.i(18510),eh=e.i(62403);let eg="pbrBlockPrePass",eP=`#if SCENE_MRT_COUNT>0
1889
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eM]||(a.ShaderStore.IncludesShadersStoreWGSL[eM]=eD);var eF=e.i(50785),eh=e.i(30597),eg=e.i(83268);let eP="pbrBlockPrePass",eU=`#if SCENE_MRT_COUNT>0
1890
1890
  var writeGeometryInfo: f32=select(0.0,1.0,finalColor.a>ALPHATESTVALUE);var fragData: array<vec4<f32>,SCENE_MRT_COUNT>;
1891
1891
  #ifdef PREPASS_POSITION
1892
1892
  fragData[PREPASS_POSITION_INDEX]= vec4f(fragmentInputs.vPositionW,writeGeometryInfo);
@@ -1992,7 +1992,7 @@ fragmentOutputs.fragData6=fragData[6];
1992
1992
  fragmentOutputs.fragData7=fragData[7];
1993
1993
  #endif
1994
1994
  #endif
1995
- `;a.ShaderStore.IncludesShadersStoreWGSL[eg]||(a.ShaderStore.IncludesShadersStoreWGSL[eg]=eP);var eU=e.i(10238),eb=e.i(19368);let ey="pbrPixelShader",eG=`#define PBR_FRAGMENT_SHADER
1995
+ `;a.ShaderStore.IncludesShadersStoreWGSL[eP]||(a.ShaderStore.IncludesShadersStoreWGSL[eP]=eU);var eb=e.i(94154),ey=e.i(78888);let eG="pbrPixelShader",eB=`#define PBR_FRAGMENT_SHADER
1996
1996
  #define CUSTOM_FRAGMENT_BEGIN
1997
1997
  #include<prePassDeclaration>[SCENE_MRT_COUNT]
1998
1998
  #include<oitDeclaration>
@@ -2082,7 +2082,9 @@ uniforms.vAlbedoColor
2082
2082
  #endif
2083
2083
  );var surfaceAlbedo: vec3f=albedoOpacityOut.surfaceAlbedo;var alpha: f32=albedoOpacityOut.alpha;
2084
2084
  #define CUSTOM_FRAGMENT_UPDATE_ALPHA
2085
+ #define DEPTHPREPASS_SKIP_EARLY_RETURN
2085
2086
  #include<depthPrePass>
2087
+ #ifndef DEPTHPREPASS
2086
2088
  #define CUSTOM_FRAGMENT_BEFORE_LIGHTS
2087
2089
  var aoOut: ambientOcclusionOutParams;
2088
2090
  #ifdef AMBIENT
@@ -2556,5 +2558,6 @@ if (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.f
2556
2558
  #endif
2557
2559
  #include<pbrDebug>
2558
2560
  #define CUSTOM_FRAGMENT_MAIN_END
2561
+ #endif
2559
2562
  }
2560
- `;for(let e of(a.ShaderStore.ShadersStoreWGSL[ey]||(a.ShaderStore.ShadersStoreWGSL[ey]=eG),[r.prePassDeclarationWGSL,i.oitDeclarationWGSL,n.sceneUboDeclarationWGSL,f.meshUboDeclarationWGSL,o.pbrUboDeclarationWGSL,t.mainUVVaryingDeclarationWGSL,c.pbrFragmentExtraDeclarationWGSL,l.lightUboDeclarationWGSL,d.samplerFragmentDeclarationWGSL,{name:s,shader:E},S.pbrFragmentReflectionDeclarationWGSL,{name:R,shader:m},C.imageProcessingDeclarationWGSL,u.clipPlaneFragmentDeclarationWGSL,v.logDepthDeclarationWGSL,I.fogFragmentDeclarationWGSL,A.textureRepetitionFunctionsWGSL,p.helperFunctionsWGSL,N.subSurfaceScatteringFunctionsWGSL,O.importanceSamplingWGSL,T.pbrHelperFunctionsWGSL,L.imageProcessingFunctionsWGSL,_.shadowsFragmentFunctionsWGSL,M.harmonicsFunctionsWGSL,D.ltcHelperFunctionsWGSL,F.pbrDirectLightingSetupFunctionsWGSL,h.pbrDirectLightingFalloffFunctionsWGSL,g.pbrBRDFFunctionsWGSL,P.hdrFilteringFunctionsWGSL,U.clusteredLightingFunctionsWGSL,b.pbrBlockReflectance0WGSL,y.pbrDirectLightingFunctionsWGSL,G.pbrIBLFunctionsWGSL,B.bumpFragmentMainFunctionsWGSL,V.bumpFragmentFunctionsWGSL,W.reflectionFunctionWGSL,H.decalFragmentWGSL,{name:x,shader:X},{name:Y,shader:w},{name:k,shader:z},{name:K,shader:q},{name:Z,shader:J},{name:Q,shader:j},{name:$,shader:ee},{name:ea,shader:er},{name:ei,shader:en},{name:ef,shader:eo},et.clipPlaneFragmentWGSL,ec.pbrBlockNormalGeometricWGSL,el.bumpFragmentWGSL,{name:ed,shader:es},eE.depthPrePassWGSL,{name:eS,shader:eR},{name:em,shader:eC},{name:eu,shader:ev},{name:eI,shader:eA},ep.lightFragmentWGSL,{name:eN,shader:eO},{name:eT,shader:eL},{name:e_,shader:eM},eD.logDepthFragmentWGSL,eF.fogFragmentWGSL,eh.pbrBlockImageProcessingWGSL,{name:eg,shader:eP},eU.oitFragmentWGSL,eb.pbrDebugWGSL]))a.ShaderStore.IncludesShadersStoreWGSL[e.name]||(a.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["pbrPixelShaderWGSL",0,{name:ey,shader:eG}],25508)}]);
2563
+ `;for(let e of(a.ShaderStore.ShadersStoreWGSL[eG]||(a.ShaderStore.ShadersStoreWGSL[eG]=eB),[r.prePassDeclarationWGSL,i.oitDeclarationWGSL,n.sceneUboDeclarationWGSL,f.meshUboDeclarationWGSL,t.pbrUboDeclarationWGSL,o.mainUVVaryingDeclarationWGSL,c.pbrFragmentExtraDeclarationWGSL,l.lightUboDeclarationWGSL,d.samplerFragmentDeclarationWGSL,{name:s,shader:E},S.pbrFragmentReflectionDeclarationWGSL,{name:R,shader:m},C.imageProcessingDeclarationWGSL,u.clipPlaneFragmentDeclarationWGSL,v.logDepthDeclarationWGSL,I.fogFragmentDeclarationWGSL,A.textureRepetitionFunctionsWGSL,p.helperFunctionsWGSL,N.subSurfaceScatteringFunctionsWGSL,O.importanceSamplingWGSL,T.pbrHelperFunctionsWGSL,L.imageProcessingFunctionsWGSL,_.shadowsFragmentFunctionsWGSL,M.harmonicsFunctionsWGSL,D.ltcHelperFunctionsWGSL,F.pbrDirectLightingSetupFunctionsWGSL,h.pbrDirectLightingFalloffFunctionsWGSL,g.pbrBRDFFunctionsWGSL,P.hdrFilteringFunctionsWGSL,U.clusteredLightingFunctionsWGSL,b.pbrBlockReflectance0WGSL,y.pbrClusteredLightingFunctionsWGSL,G.pbrDirectLightingFunctionsWGSL,B.pbrIBLFunctionsWGSL,V.bumpFragmentMainFunctionsWGSL,W.bumpFragmentFunctionsWGSL,H.reflectionFunctionWGSL,x.decalFragmentWGSL,{name:X,shader:Y},{name:w,shader:k},{name:z,shader:K},{name:q,shader:Z},{name:J,shader:Q},{name:j,shader:$},{name:ee,shader:ea},{name:er,shader:ei},{name:en,shader:ef},{name:et,shader:eo},ec.clipPlaneFragmentWGSL,el.pbrBlockNormalGeometricWGSL,ed.bumpFragmentWGSL,{name:es,shader:eE},eS.depthPrePassWGSL,{name:eR,shader:em},{name:eC,shader:eu},{name:ev,shader:eI},{name:eA,shader:ep},eN.lightFragmentWGSL,{name:eO,shader:eT},{name:eL,shader:e_},{name:eM,shader:eD},eF.logDepthFragmentWGSL,eh.fogFragmentWGSL,eg.pbrBlockImageProcessingWGSL,{name:eP,shader:eU},eb.oitFragmentWGSL,ey.pbrDebugWGSL]))a.ShaderStore.IncludesShadersStoreWGSL[e.name]||(a.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["pbrPixelShaderWGSL",0,{name:eG,shader:eB}],69721)}]);