@uptimizr/dashboard 0.3.0 → 0.3.2

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 (360) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +4 -4
  6. package/out/__next._tree.txt +2 -2
  7. package/out/_next/static/chunks/0-29qf-q72olu.js +1 -0
  8. package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
  9. package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
  10. package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
  11. package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
  12. package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
  13. package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
  14. package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
  15. package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
  16. package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
  17. package/out/_next/static/chunks/06m_64ysu9kn0.js +1 -0
  18. package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
  19. package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
  20. package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
  21. package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
  22. package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
  23. package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
  24. package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
  25. package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
  26. package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
  27. package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
  28. package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
  29. package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
  30. package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
  31. package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
  32. package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
  33. package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
  34. package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
  35. package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
  36. package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
  37. package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
  38. package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
  39. package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
  40. package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
  41. package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
  42. package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
  43. package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
  44. package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
  45. package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
  46. package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
  47. package/out/_next/static/chunks/0msckddycfy76.js +1 -0
  48. package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
  49. package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
  50. package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
  51. package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
  52. package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
  53. package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
  54. package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
  55. package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
  56. package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
  57. package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
  58. package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
  59. package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
  60. package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
  61. package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
  62. package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
  63. package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
  64. package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
  65. package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
  66. package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
  67. package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
  68. package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
  69. package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
  70. package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
  71. package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
  72. package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
  73. package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
  74. package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
  75. package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
  76. package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
  77. package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
  78. package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
  79. package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
  80. package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
  81. package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
  82. package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
  83. package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
  84. package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
  85. package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
  86. package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
  87. package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
  88. package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
  89. package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
  90. package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
  91. package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
  92. package/out/_next/static/chunks/1fa265388524p.js +1 -0
  93. package/out/_next/static/chunks/1fruncg3k-3pu.js +3 -0
  94. package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
  95. package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
  96. package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
  97. package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
  98. package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
  99. package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
  100. package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
  101. package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
  102. package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
  103. package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
  104. package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
  105. package/out/_next/static/chunks/1par9m038tiov.js +1 -0
  106. package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
  107. package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
  108. package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
  109. package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
  110. package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
  111. package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
  112. package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
  113. package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
  114. package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
  115. package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
  116. package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
  117. package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
  118. package/out/_next/static/chunks/224_scesvd739.js +1 -0
  119. package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
  120. package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
  121. package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
  122. package/out/_next/static/chunks/24cqjhy669845.js +1 -0
  123. package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
  124. package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
  125. package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
  126. package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
  127. package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
  128. package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
  129. package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
  130. package/out/_next/static/chunks/2_hgfg-cjqw1-.js +1 -0
  131. package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
  132. package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
  133. package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
  134. package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
  135. package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
  136. package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
  137. package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
  138. package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
  139. package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
  140. package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
  141. package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
  142. package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
  143. package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
  144. package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
  145. package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
  146. package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
  147. package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
  148. package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
  149. package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
  150. package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
  151. package/out/_next/static/chunks/2ktxjmx03u9l3.js +1 -0
  152. package/out/_next/static/chunks/2kw33jl_i9o5j.css +3 -0
  153. package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
  154. package/out/_next/static/chunks/{42k2-4_2hrg6u.js → 2mleh3pbge181.js} +1 -1
  155. package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
  156. package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
  157. package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
  158. package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
  159. package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
  160. package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
  161. package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
  162. package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
  163. package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
  164. package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
  165. package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
  166. package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
  167. package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
  168. package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
  169. package/out/_next/static/chunks/30363ptka3vzy.js +1 -0
  170. package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
  171. package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
  172. package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
  173. package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
  174. package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
  175. package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
  176. package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
  177. package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
  178. package/out/_next/static/chunks/39ojyykom0z2r.js +1 -0
  179. package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
  180. package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
  181. package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
  182. package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
  183. package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
  184. package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
  185. package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
  186. package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
  187. package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
  188. package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
  189. package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
  190. package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
  191. package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
  192. package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
  193. package/out/_next/static/chunks/3jha6wlqw8459.js +1 -0
  194. package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
  195. package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
  196. package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
  197. package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
  198. package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
  199. package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
  200. package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
  201. package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
  202. package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
  203. package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
  204. package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
  205. package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
  206. package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
  207. package/out/_next/static/chunks/3wqs57qehored.js +1 -0
  208. package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
  209. package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
  210. package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
  211. package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
  212. package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
  213. package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
  214. package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
  215. package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
  216. package/out/_not-found/__next._full.txt +9 -9
  217. package/out/_not-found/__next._head.txt +4 -4
  218. package/out/_not-found/__next._index.txt +4 -4
  219. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  220. package/out/_not-found/__next._not-found.txt +3 -3
  221. package/out/_not-found/__next._tree.txt +2 -2
  222. package/out/_not-found.html +1 -1
  223. package/out/_not-found.txt +9 -9
  224. package/out/index.html +1 -1
  225. package/out/index.txt +11 -11
  226. package/package.json +8 -8
  227. package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
  228. package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
  229. package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
  230. package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
  231. package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
  232. package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
  233. package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
  234. package/out/_next/static/chunks/0927l-ygd5c8d.js +0 -1
  235. package/out/_next/static/chunks/09510356f0lad.js +0 -1
  236. package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
  237. package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
  238. package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
  239. package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
  240. package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
  241. package/out/_next/static/chunks/0g_v2zswo4l6f.js +0 -1
  242. package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
  243. package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
  244. package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
  245. package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
  246. package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
  247. package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
  248. package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
  249. package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
  250. package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
  251. package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
  252. package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
  253. package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
  254. package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
  255. package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
  256. package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
  257. package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
  258. package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
  259. package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
  260. package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
  261. package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
  262. package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
  263. package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
  264. package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
  265. package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
  266. package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
  267. package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
  268. package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
  269. package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
  270. package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
  271. package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
  272. package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
  273. package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
  274. package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
  275. package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
  276. package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
  277. package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
  278. package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
  279. package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
  280. package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
  281. package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
  282. package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
  283. package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
  284. package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
  285. package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
  286. package/out/_next/static/chunks/1tta1a064979p.js +0 -1
  287. package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
  288. package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
  289. package/out/_next/static/chunks/1vuq3dos1406d.css +0 -3
  290. package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
  291. package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
  292. package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
  293. package/out/_next/static/chunks/2-qo2o1_fmpy-.js +0 -3
  294. package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
  295. package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
  296. package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
  297. package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
  298. package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
  299. package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
  300. package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
  301. package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
  302. package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
  303. package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
  304. package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
  305. package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
  306. package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
  307. package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
  308. package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
  309. package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
  310. package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
  311. package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
  312. package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
  313. package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
  314. package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
  315. package/out/_next/static/chunks/2r3ct6se2qn8z.js +0 -1
  316. package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
  317. package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
  318. package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
  319. package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
  320. package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
  321. package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
  322. package/out/_next/static/chunks/2x-00glogc485.js +0 -1
  323. package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
  324. package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
  325. package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
  326. package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
  327. package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
  328. package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
  329. package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
  330. package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
  331. package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
  332. package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
  333. package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
  334. package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
  335. package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
  336. package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
  337. package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
  338. package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
  339. package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
  340. package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
  341. package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
  342. package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
  343. package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
  344. package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
  345. package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
  346. package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
  347. package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
  348. package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
  349. package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
  350. package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
  351. package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
  352. package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
  353. package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
  354. package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
  355. package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
  356. package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
  357. package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
  358. /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_buildManifest.js +0 -0
  359. /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_clientMiddlewareManifest.js +0 -0
  360. /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9866,23015,e=>{"use strict";var t=e.i(10272),i=e.i(37143),r=e.i(45707),s=e.i(66749),a=e.i(70653),o=e.i(35407),n=e.i(18131),l=e.i(89748),u=e.i(46862),h=e.i(23507),d=e.i(44702),p=e.i(22369),T=e.i(33457),_=e.i(31278),f=e.i(86206),c=e.i(92040),m=e.i(12033),E=e.i(97001),x=e.i(80871),A=e.i(44451),P=e.i(80737),R=e.i(37882),g=e.i(5436),S=e.i(77052),I=e.i(75405);let F={effect:null,subMesh:null};class b extends(0,R.PrepassDefinesMixin)((0,P.UVDefinesMixin)(d.MaterialDefines)){}class M extends(0,l.ImageProcessingDefinesMixin)(b){constructor(e){super(e),this.DIFFUSE=!1,this.DIFFUSEDIRECTUV=0,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.AMBIENT=!1,this.AMBIENTDIRECTUV=0,this.OPACITY=!1,this.OPACITYDIRECTUV=0,this.OPACITYRGB=!1,this.REFLECTION=!1,this.EMISSIVE=!1,this.EMISSIVEDIRECTUV=0,this.SPECULAR=!1,this.SPECULARDIRECTUV=0,this.BUMP=!1,this.BUMPDIRECTUV=0,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.SPECULAROVERALPHA=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHAFROMDIFFUSE=!1,this.POINTSIZE=!1,this.FOG=!1,this.SPECULARTERM=!1,this.DIFFUSEFRESNEL=!1,this.OPACITYFRESNEL=!1,this.REFLECTIONFRESNEL=!1,this.REFRACTIONFRESNEL=!1,this.EMISSIVEFRESNEL=!1,this.FRESNEL=!1,this.NORMAL=!1,this.TANGENT=!1,this.VERTEXCOLOR=!1,this.VERTEXALPHA=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.GLOSSINESS=!1,this.ROUGHNESS=!1,this.EMISSIVEASILLUMINATION=!1,this.LINKEMISSIVEWITHDIFFUSE=!1,this.REFLECTIONFRESNELFROMSPECULAR=!1,this.LIGHTMAP=!1,this.LIGHTMAPDIRECTUV=0,this.OBJECTSPACE_NORMALMAP=!1,this.USELIGHTMAPASSHADOWMAP=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFRACTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.INVERTCUBICMAP=!1,this.LOGARITHMICDEPTH=!1,this.REFRACTION=!1,this.REFRACTIONMAP_3D=!1,this.REFLECTIONOVERALPHA=!1,this.TWOSIDEDLIGHTING=!1,this.SHADOWFLOAT=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.NONUNIFORMSCALING=!1,this.PREMULTIPLYALPHA=!1,this.ALPHATEST_AFTERALLALPHACOMPUTATIONS=!1,this.ALPHABLEND=!0,this.RGBDLIGHTMAP=!1,this.RGBDREFLECTION=!1,this.RGBDREFRACTION=!1,this.MULTIVIEW=!1,this.ORDER_INDEPENDENT_TRANSPARENCY=!1,this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.IS_REFLECTION_LINEAR=!1,this.IS_REFRACTION_LINEAR=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.rebuild()}}class v extends(0,g.ImageProcessingMixin)(p.PushMaterial){}class C extends v{get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(e,t,i=!1){super(e,t,void 0,i||C.ForceGLSL),this._diffuseTexture=null,this._ambientTexture=null,this._opacityTexture=null,this._reflectionTexture=null,this._emissiveTexture=null,this._specularTexture=null,this._bumpTexture=null,this._lightmapTexture=null,this._refractionTexture=null,this.ambientColor=new a.Color3(0,0,0),this.diffuseColor=new a.Color3(1,1,1),this.specularColor=new a.Color3(1,1,1),this.emissiveColor=new a.Color3(0,0,0),this.specularPower=64,this._useAlphaFromDiffuseTexture=!1,this._useEmissiveAsIllumination=!1,this._linkEmissiveWithDiffuse=!1,this._useSpecularOverAlpha=!1,this._useReflectionOverAlpha=!1,this._disableLighting=!1,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this._roughness=0,this.indexOfRefraction=.98,this.invertRefractionY=!0,this.alphaCutOff=.4,this._useLightmapAsShadowmap=!1,this._useReflectionFresnelFromSpecular=!1,this._useGlossinessFromSpecularMapAlpha=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._applyDecalMapAfterDetailMap=!1,this._shadersLoaded=!1,this._vertexPullingMetadata=null,this._renderTargets=new r.SmartArray(16),this._globalAmbientColor=new a.Color3(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new f.DetailMapConfiguration(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new n.PrePassConfiguration,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),C.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),C.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return!!C.ReflectionTextureEnabled&&!!this._reflectionTexture&&!!this._reflectionTexture.isRenderTarget||!!C.RefractionTextureEnabled&&!!this._refractionTexture&&!!this._refractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}getClassName(){return"StandardMaterial"}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:!this._disableAlphaBlending&&(this.alpha<1||null!=this._opacityTexture||this._shouldUseAlphaFromDiffuseTexture()||this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled)}needAlphaTesting(){return this._hasTransparencyMode?this._transparencyModeIsTest:this._hasAlphaChannel()&&(null==this._transparencyMode||this._transparencyMode===h.Material.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==h.Material.MATERIAL_OPAQUE}_hasAlphaChannel(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha||null!=this._opacityTexture}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(t,i,r=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let s=i._drawWrapper;if(s.effect&&this.isFrozen&&s._wasPreviouslyReady&&s._wasPreviouslyUsingInstances===r)return!0;i.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),i.materialDefines=new M(this._eventInfo.defineNames));let a=this.getScene(),l=i.materialDefines;if(this._isReadyForSubMesh(i))return!0;let h=a.getEngine();if(l._needNormals=(0,E.PrepareDefinesForLights)(a,t,l,!0,this._maxSimultaneousLights,this._disableLighting),!(0,E.AreLightsTexturesReady)(a,t,this._maxSimultaneousLights,this._disableLighting))return!1;(0,E.PrepareDefinesForMultiview)(a,l);let d=this.needAlphaBlendingForMesh(t)&&this.getScene().useOrderIndependentTransparency;if((0,E.PrepareDefinesForPrePass)(a,l,this.canRenderToMRT&&!d),(0,E.PrepareDefinesForOIT)(a,l,d),A.MaterialHelperGeometryRendering.PrepareDefines(h.currentRenderPassId,t,l),l._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,l._needUVs=!1;for(let e=1;e<=6;++e)l["MAINUV"+e]=!1;if(a.texturesEnabled){if(l.DIFFUSEDIRECTUV=0,l.BUMPDIRECTUV=0,l.AMBIENTDIRECTUV=0,l.OPACITYDIRECTUV=0,l.EMISSIVEDIRECTUV=0,l.SPECULARDIRECTUV=0,l.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&C.DiffuseTextureEnabled)if(!this._diffuseTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._diffuseTexture,l,"DIFFUSE");else l.DIFFUSE=!1;if(this._ambientTexture&&C.AmbientTextureEnabled)if(!this._ambientTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._ambientTexture,l,"AMBIENT");else l.AMBIENT=!1;if(this._opacityTexture&&C.OpacityTextureEnabled)if(!this._opacityTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._opacityTexture,l,"OPACITY"),l.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else l.OPACITY=!1;if(this._reflectionTexture&&C.ReflectionTextureEnabled?(l.ROUGHNESS=this._roughness>0,l.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(l.ROUGHNESS=!1,l.REFLECTIONOVERALPHA=!1),!(0,E.PrepareDefinesForIBL)(a,this._reflectionTexture,l))return!1;if(this._emissiveTexture&&C.EmissiveTextureEnabled)if(!this._emissiveTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._emissiveTexture,l,"EMISSIVE");else l.EMISSIVE=!1;if(this._lightmapTexture&&C.LightmapTextureEnabled)if(!this._lightmapTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._lightmapTexture,l,"LIGHTMAP"),l.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,l.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else l.LIGHTMAP=!1;if(this._specularTexture&&C.SpecularTextureEnabled)if(!this._specularTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._specularTexture,l,"SPECULAR"),l.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else l.SPECULAR=!1;if(a.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&C.BumpTextureEnabled){if(!this._bumpTexture.isReady())return!1;(0,E.PrepareDefinesForMergedUV)(this._bumpTexture,l,"BUMP"),l.PARALLAX=this._useParallax,l.PARALLAX_RHS=a.useRightHandedSystem,l.PARALLAXOCCLUSION=this._useParallaxOcclusion,l.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else l.BUMP=!1,l.PARALLAX=!1,l.PARALLAX_RHS=!1,l.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&C.RefractionTextureEnabled)if(!this._refractionTexture.isReadyOrNotBlocking())return!1;else l._needUVs=!0,l.REFRACTION=!0,l.REFRACTIONMAP_3D=this._refractionTexture.isCube,l.RGBDREFRACTION=this._refractionTexture.isRGBD,l.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else l.REFRACTION=!1;l.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else l.DIFFUSE=!1,l.AMBIENT=!1,l.OPACITY=!1,l.REFLECTION=!1,l.EMISSIVE=!1,l.LIGHTMAP=!1,l.BUMP=!1,l.REFRACTION=!1;l.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),l.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,l.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,l.SPECULAROVERALPHA=this._useSpecularOverAlpha,l.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,l.ALPHATEST_AFTERALLALPHACOMPUTATIONS=null!==this.transparencyMode,l.ALPHABLEND=null===this.transparencyMode||this.needAlphaBlendingForMesh(t),l.TEXTURE_REPETITION_MODE=h.version>1||h.isWebGPU?this.textureRepetitionMode:0}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=l,this._eventInfo.subMesh=i,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(l._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(l),l.IS_REFLECTION_LINEAR=null!=this.reflectionTexture&&!this.reflectionTexture.gammaSpace,l.IS_REFRACTION_LINEAR=null!=this.refractionTexture&&!this.refractionTexture.gammaSpace}if(l._areFresnelDirty&&(C.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(l.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,l.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,l.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,l.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,l.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,l.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,l._needNormals=!0,l.FRESNEL=!0):l.FRESNEL=!1),l.AREALIGHTUSED||l.CLUSTLIGHT_BATCH){for(let e=0;e<t.lightSources.length;e++)if(!t.lightSources[e]._isReady())return!1}(0,E.PrepareDefinesForMisc)(t,a,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(t),l,this._applyDecalMapAfterDetailMap,this._useVertexPulling,i.getRenderingMesh(),this._isVertexOutputInvariant),(0,E.PrepareDefinesForFrameBoundValues)(a,h,this,l,r,null,i.getRenderingMesh().hasThinInstances),this._eventInfo.defines=l,this._eventInfo.mesh=t,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,E.PrepareDefinesForAttributes)(t,l,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let p=!1;if(l.isDirty){let r=l._areLightsDisposed;l.markAsProcessed();let s=new _.EffectFallbacks;l.REFLECTION&&s.addFallback(0,"REFLECTION"),l.SPECULAR&&s.addFallback(0,"SPECULAR"),l.BUMP&&s.addFallback(0,"BUMP"),l.PARALLAX&&s.addFallback(1,"PARALLAX"),l.PARALLAX_RHS&&s.addFallback(1,"PARALLAX_RHS"),l.PARALLAXOCCLUSION&&s.addFallback(0,"PARALLAXOCCLUSION"),l.SPECULAROVERALPHA&&s.addFallback(0,"SPECULAROVERALPHA"),l.FOG&&s.addFallback(1,"FOG"),l.POINTSIZE&&s.addFallback(0,"POINTSIZE"),l.LOGARITHMICDEPTH&&s.addFallback(0,"LOGARITHMICDEPTH"),(0,E.HandleFallbacksForShadows)(l,s,this._maxSimultaneousLights),l.SPECULARTERM&&s.addFallback(0,"SPECULARTERM"),l.DIFFUSEFRESNEL&&s.addFallback(1,"DIFFUSEFRESNEL"),l.OPACITYFRESNEL&&s.addFallback(2,"OPACITYFRESNEL"),l.REFLECTIONFRESNEL&&s.addFallback(3,"REFLECTIONFRESNEL"),l.EMISSIVEFRESNEL&&s.addFallback(4,"EMISSIVEFRESNEL"),l.FRESNEL&&s.addFallback(4,"FRESNEL"),l.MULTIVIEW&&s.addFallback(0,"MULTIVIEW");let d=[o.VertexBuffer.PositionKind];l.NORMAL&&d.push(o.VertexBuffer.NormalKind),l.TANGENT&&d.push(o.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)l["UV"+e]&&d.push(`uv${1===e?"":e}`);l.VERTEXCOLOR&&d.push(o.VertexBuffer.ColorKind),(0,E.PrepareAttributesForBones)(d,t,l,s),(0,E.PrepareAttributesForInstances)(d,l),(0,E.PrepareAttributesForMorphTargets)(d,t,l),(0,E.PrepareAttributesForBakedVertexAnimation)(d,t,l);let T="default",f=["world","view","viewProjection","vEyePosition","vLightsType","vAmbientColor","vDiffuseColor","vSpecularColor","vEmissiveColor","visibility","vFogInfos","vFogColor","pointSize","vDiffuseInfos","vAmbientInfos","vOpacityInfos","vEmissiveInfos","vSpecularInfos","vBumpInfos","vLightmapInfos","vRefractionInfos","mBones","diffuseMatrix","ambientMatrix","opacityMatrix","emissiveMatrix","specularMatrix","bumpMatrix","normalMatrix","lightmapMatrix","refractionMatrix","diffuseLeftColor","diffuseRightColor","opacityParts","reflectionLeftColor","reflectionRightColor","emissiveLeftColor","emissiveRightColor","refractionLeftColor","refractionRightColor","vRefractionPosition","vRefractionSize","logarithmicDepthConstant","vTangentSpaceParams","alphaCutOff","boneTextureInfo","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams"],x=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];(0,E.PrepareUniformsAndSamplersForIBL)(f,x,!1);let P=["Material","Scene","Mesh"],R={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:l.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=s,this._eventInfo.fallbackRank=0,this._eventInfo.defines=l,this._eventInfo.uniforms=f,this._eventInfo.attributes=d,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=P,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=R,this._callbackPluginEventGeneric(128,this._eventInfo),A.MaterialHelperGeometryRendering.AddUniformsAndSamplers(f,x),n.PrePassConfiguration.AddUniforms(f),n.PrePassConfiguration.AddSamplers(x),u.ImageProcessingConfiguration&&(u.ImageProcessingConfiguration.PrepareUniforms(f,l),u.ImageProcessingConfiguration.PrepareSamplers(x,l)),(0,E.PrepareUniformsAndSamplersList)({uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:l,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage}),(0,c.AddClipPlaneUniforms)(f),this._useVertexPulling){let e=i.getRenderingMesh(),t=e?.geometry;t&&(this._vertexPullingMetadata=(0,m.PrepareVertexPullingUniforms)(t),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{f.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;let g={};this.customShaderNameResolve&&(T=this.customShaderNameResolve(T,f,P,x,l,d,g));let S=l.toString(),I=i.effect,b=a.getEngine().createEffect(T,{attributes:d,uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:S,fallbacks:s,onCompiled:this.onCompiled,onError:this.onError,indexParameters:R,processFinalCode:g.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:l.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this._shaderLanguage?await Promise.all([e.A(22649),e.A(39487)]):await Promise.all([e.A(60020),e.A(66183)]),this._shadersLoaded=!0}},h);if(this._eventInfo.customCode=void 0,b)if(this._onEffectCreatedObservable&&(F.effect=b,F.subMesh=i,this._onEffectCreatedObservable.notifyObservers(F)),this.allowShaderHotSwapping&&I&&!b.isReady()){if(l.markAsUnprocessed(),p=this.isFrozen,r)return l._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),i.setEffect(b,l,this._materialContext)}return!!i.effect&&!!i.effect.isReady()&&(l._renderId=a.getRenderId(),s._wasPreviouslyReady=!p,s._wasPreviouslyUsingInstances=r,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("diffuseLeftColor",4),e.addUniform("diffuseRightColor",4),e.addUniform("opacityParts",4),e.addUniform("reflectionLeftColor",4),e.addUniform("reflectionRightColor",4),e.addUniform("refractionLeftColor",4),e.addUniform("refractionRightColor",4),e.addUniform("emissiveLeftColor",4),e.addUniform("emissiveRightColor",4),e.addUniform("vDiffuseInfos",2),e.addUniform("vAmbientInfos",2),e.addUniform("vOpacityInfos",2),e.addUniform("vEmissiveInfos",2),e.addUniform("vLightmapInfos",2),e.addUniform("vSpecularInfos",2),e.addUniform("vBumpInfos",3),e.addUniform("diffuseMatrix",16),e.addUniform("ambientMatrix",16),e.addUniform("opacityMatrix",16),e.addUniform("emissiveMatrix",16),e.addUniform("lightmapMatrix",16),e.addUniform("specularMatrix",16),e.addUniform("bumpMatrix",16),e.addUniform("vTangentSpaceParams",2),e.addUniform("pointSize",1),e.addUniform("alphaCutOff",1),e.addUniform("refractionMatrix",16),e.addUniform("vRefractionInfos",4),e.addUniform("vRefractionPosition",3),e.addUniform("vRefractionSize",3),e.addUniform("vSpecularColor",4),e.addUniform("vEmissiveColor",3),e.addUniform("vDiffuseColor",4),e.addUniform("vAmbientColor",3),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),(0,E.PrepareUniformLayoutForIBL)(e,!1,!0),super.buildUniformLayout()}bindForSubMesh(e,t,i){let r=this.getScene(),o=i.materialDefines;if(!o)return;let n=i.effect;if(!n)return;this._activeEffect=n,t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e),this._uniformBuffer.bindToEffect(n,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,r,t,e,this.isFrozen),A.MaterialHelperGeometryRendering.Bind(r.getEngine().currentRenderPassId,this._activeEffect,t,e,this);let l=r.activeCamera;l?this._uniformBuffer.updateFloat4("cameraInfo",l.minZ,l.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let u=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",u[0],u[1],u[2],u[3]),this._eventInfo.subMesh=i,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),o.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let h=this._mustRebind(r,n,i,t.visibility),d=r.getEngine()._features.needToAlwaysBindUniformBuffers;(0,E.BindBonesParameters)(t,n),this._vertexPullingMetadata&&(0,m.BindVertexPullingUniforms)(n,this._vertexPullingMetadata);let p=this._uniformBuffer;if(h){if(this.bindViewProjection(n),!p.useUbo||!this.isFrozen||!p.isSync||i._drawWrapper._forceRebindOnNextCall){if(C.FresnelEnabled&&o.FRESNEL){if(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(p.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),p.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled){let e=a.TmpColors.Color3[0];e.set(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),p.updateColor4("opacityParts",e,this.opacityFresnelParameters.power)}this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(p.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),p.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(p.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),p.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(p.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),p.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))}if(r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&(p.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),(0,E.BindTextureMatrix)(this._diffuseTexture,p,"diffuse")),this._ambientTexture&&C.AmbientTextureEnabled&&(p.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),(0,E.BindTextureMatrix)(this._ambientTexture,p,"ambient")),this._opacityTexture&&C.OpacityTextureEnabled&&(p.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),(0,E.BindTextureMatrix)(this._opacityTexture,p,"opacity")),this._hasAlphaChannel()&&p.updateFloat("alphaCutOff",this.alphaCutOff),(0,E.BindIBLParameters)(r,o,p,a.Color3.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),this._reflectionTexture&&C.ReflectionTextureEnabled||p.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&C.EmissiveTextureEnabled&&(p.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),(0,E.BindTextureMatrix)(this._emissiveTexture,p,"emissive")),this._lightmapTexture&&C.LightmapTextureEnabled&&(p.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),(0,E.BindTextureMatrix)(this._lightmapTexture,p,"lightmap")),this._specularTexture&&C.SpecularTextureEnabled&&(p.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),(0,E.BindTextureMatrix)(this._specularTexture,p,"specular")),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&(p.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),(0,E.BindTextureMatrix)(this._bumpTexture,p,"bump"),r._mirroredCameraPosition?p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&C.RefractionTextureEnabled)){let e=1;if(!this._refractionTexture.isCube&&(p.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(e=this._refractionTexture.depth)),p.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,e,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){let e=this._refractionTexture;p.updateVector3("vRefractionPosition",e.boundingBoxPosition),p.updateVector3("vRefractionSize",e.boundingBoxSize)}}this.pointsCloud&&p.updateFloat("pointSize",this.pointSize),p.updateColor4("vSpecularColor",this.specularColor,this.specularPower),p.updateColor3("vEmissiveColor",C.EmissiveTextureEnabled?this.emissiveColor:a.Color3.BlackReadOnly),p.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),r.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),p.updateColor3("vAmbientColor",this._globalAmbientColor)}r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&n.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&C.AmbientTextureEnabled&&n.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&C.OpacityTextureEnabled&&n.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&C.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?n.setTexture("reflectionCubeSampler",this._reflectionTexture):n.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&C.EmissiveTextureEnabled&&n.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&C.LightmapTextureEnabled&&n.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&C.SpecularTextureEnabled&&n.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&n.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&C.RefractionTextureEnabled&&(this._refractionTexture.isCube?n.setTexture("refractionCubeSampler",this._refractionTexture):n.setTexture("refraction2DSampler",this._refractionTexture))),this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(n),this._eventInfo.subMesh=i,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,c.BindClipPlane)(n,this,r),this.bindEyePosition(n)}else d&&(this._needToBindSceneUbo=!0);(h||!this.isFrozen||d)&&r.lightsEnabled&&!this._disableLighting&&(0,E.BindLights)(r,t,n,o,this._maxSimultaneousLights),(h||!this.isFrozen)&&((r.fogEnabled&&t.applyFog&&r.fogMode!==s.Scene.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||t.receiveShadows||o.PREPASS||o.CLUSTLIGHT_BATCH)&&this.bindView(n),(0,E.BindFogParameters)(r,t,n),o.NUM_MORPH_INFLUENCERS&&(0,E.BindMorphTargetParameters)(t,n),o.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(n,o.INSTANCES),this.useLogarithmicDepth&&(0,E.BindLogDepth)(o,n,r),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(t,this._activeEffect,i),p.update()}getAnimatables(){let e=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&e.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&e.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&e.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&e.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&e.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&e.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&e.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&e.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&e.push(this._refractionTexture),e}getActiveTextures(){let e=super.getActiveTextures();return this._diffuseTexture&&e.push(this._diffuseTexture),this._ambientTexture&&e.push(this._ambientTexture),this._opacityTexture&&e.push(this._opacityTexture),this._reflectionTexture&&e.push(this._reflectionTexture),this._emissiveTexture&&e.push(this._emissiveTexture),this._specularTexture&&e.push(this._specularTexture),this._bumpTexture&&e.push(this._bumpTexture),this._lightmapTexture&&e.push(this._lightmapTexture),this._refractionTexture&&e.push(this._refractionTexture),e}hasTexture(e){return!!super.hasTexture(e)||this._diffuseTexture===e||this._ambientTexture===e||this._opacityTexture===e||this._reflectionTexture===e||this._emissiveTexture===e||this._specularTexture===e||this._bumpTexture===e||this._lightmapTexture===e||this._refractionTexture===e||!1}dispose(e,t){t&&(this._diffuseTexture?.dispose(),this._ambientTexture?.dispose(),this._opacityTexture?.dispose(),this._reflectionTexture?.dispose(),this._emissiveTexture?.dispose(),this._specularTexture?.dispose(),this._bumpTexture?.dispose(),this._lightmapTexture?.dispose(),this._refractionTexture?.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}clone(e,t=!0,i=""){let r=x.SerializationHelper.Clone(()=>new C(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return r.name=e,r.id=e,this.stencil.copyTo(r.stencil),this._clonePlugins(r,i),r}static Parse(e,t,i){let r=x.SerializationHelper.Parse(()=>new C(e.name,t),e,t,i);return e.stencil&&r.stencil.parse(e.stencil,t,i),h.Material._ParsePlugins(e,r,t,i),r}static get DiffuseTextureEnabled(){return T.MaterialFlags.DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){T.MaterialFlags.DiffuseTextureEnabled=e}static get DetailTextureEnabled(){return T.MaterialFlags.DetailTextureEnabled}static set DetailTextureEnabled(e){T.MaterialFlags.DetailTextureEnabled=e}static get AmbientTextureEnabled(){return T.MaterialFlags.AmbientTextureEnabled}static set AmbientTextureEnabled(e){T.MaterialFlags.AmbientTextureEnabled=e}static get OpacityTextureEnabled(){return T.MaterialFlags.OpacityTextureEnabled}static set OpacityTextureEnabled(e){T.MaterialFlags.OpacityTextureEnabled=e}static get ReflectionTextureEnabled(){return T.MaterialFlags.ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){T.MaterialFlags.ReflectionTextureEnabled=e}static get EmissiveTextureEnabled(){return T.MaterialFlags.EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){T.MaterialFlags.EmissiveTextureEnabled=e}static get SpecularTextureEnabled(){return T.MaterialFlags.SpecularTextureEnabled}static set SpecularTextureEnabled(e){T.MaterialFlags.SpecularTextureEnabled=e}static get BumpTextureEnabled(){return T.MaterialFlags.BumpTextureEnabled}static set BumpTextureEnabled(e){T.MaterialFlags.BumpTextureEnabled=e}static get LightmapTextureEnabled(){return T.MaterialFlags.LightmapTextureEnabled}static set LightmapTextureEnabled(e){T.MaterialFlags.LightmapTextureEnabled=e}static get RefractionTextureEnabled(){return T.MaterialFlags.RefractionTextureEnabled}static set RefractionTextureEnabled(e){T.MaterialFlags.RefractionTextureEnabled=e}static get ColorGradingTextureEnabled(){return T.MaterialFlags.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){T.MaterialFlags.ColorGradingTextureEnabled=e}static get FresnelEnabled(){return T.MaterialFlags.FresnelEnabled}static set FresnelEnabled(e){T.MaterialFlags.FresnelEnabled=e}}C.ForceGLSL=!1,(0,t.__decorate)([(0,i.serializeAsTexture)("diffuseTexture")],C.prototype,"_diffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"diffuseTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("ambientTexture")],C.prototype,"_ambientTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"ambientTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("opacityTexture")],C.prototype,"_opacityTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"opacityTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("reflectionTexture")],C.prototype,"_reflectionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"reflectionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("emissiveTexture")],C.prototype,"_emissiveTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"emissiveTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("specularTexture")],C.prototype,"_specularTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"specularTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("bumpTexture")],C.prototype,"_bumpTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"bumpTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("lightmapTexture")],C.prototype,"_lightmapTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"lightmapTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("refractionTexture")],C.prototype,"_refractionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"refractionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("ambient")],C.prototype,"ambientColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("diffuse")],C.prototype,"diffuseColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("specular")],C.prototype,"specularColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("emissive")],C.prototype,"emissiveColor",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"specularPower",void 0),(0,t.__decorate)([(0,i.serialize)("useAlphaFromDiffuseTexture")],C.prototype,"_useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.serialize)("useEmissiveAsIllumination")],C.prototype,"_useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.serialize)("linkEmissiveWithDiffuse")],C.prototype,"_linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.serialize)("useSpecularOverAlpha")],C.prototype,"_useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionOverAlpha")],C.prototype,"_useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("disableLighting")],C.prototype,"_disableLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,i.serialize)("useObjectSpaceNormalMap")],C.prototype,"_useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.serialize)("useParallax")],C.prototype,"_useParallax",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallax",void 0),(0,t.__decorate)([(0,i.serialize)("useParallaxOcclusion")],C.prototype,"_useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,i.serialize)("roughness")],C.prototype,"_roughness",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"roughness",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"indexOfRefraction",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"invertRefractionY",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,i.serialize)("useLightmapAsShadowmap")],C.prototype,"_useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("diffuseFresnelParameters")],C.prototype,"_diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("opacityFresnelParameters")],C.prototype,"_opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelAndMiscDirty")],C.prototype,"opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("reflectionFresnelParameters")],C.prototype,"_reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("refractionFresnelParameters")],C.prototype,"_refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("emissiveFresnelParameters")],C.prototype,"_emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionFresnelFromSpecular")],C.prototype,"_useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.serialize)("useGlossinessFromSpecularMapAlpha")],C.prototype,"_useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("maxSimultaneousLights")],C.prototype,"_maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapX")],C.prototype,"_invertNormalMapX",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapY")],C.prototype,"_invertNormalMapY",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,i.serialize)("twoSidedLighting")],C.prototype,"_twoSidedLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,i.serialize)("applyDecalMapAfterDetailMap")],C.prototype,"_applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsMiscDirty")],C.prototype,"applyDecalMapAfterDetailMap",void 0);let L=!1;function y(){L||(L=!0,(0,S.RegisterClass)("BABYLON.StandardMaterial",C),s.Scene.DefaultMaterialFactory=e=>new C("default material",e))}Object.getOwnPropertyDescriptor(C.prototype,"decalMap")||Object.defineProperty(C.prototype,"decalMap",(0,I._MissingSideEffectProperty)("StandardMaterial","decalMap")),e.s(["RegisterStandardMaterial",0,y,"StandardMaterial",0,C,"StandardMaterialDefines",0,M],23015),y(),e.s([],9866)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84520,35004,e=>{"use strict";var t=e.i(16147),i=e.i(40220),r=e.i(95294),s=e.i(56770),a=e.i(75053),o=e.i(65703),n=e.i(68069),l=e.i(57970),u=e.i(66052),h=e.i(52344),d=e.i(90551),p=e.i(93565),T=e.i(47044),_=e.i(20193),f=e.i(96066),c=e.i(4760),m=e.i(69858),E=e.i(72014),x=e.i(95397),A=e.i(48004),P=e.i(33987),R=e.i(88955),g=e.i(75613),S=e.i(48477),I=e.i(54670);let F={effect:null,subMesh:null};class b extends(0,R.PrepassDefinesMixin)((0,P.UVDefinesMixin)(d.MaterialDefines)){}class M extends(0,l.ImageProcessingDefinesMixin)(b){constructor(e){super(e),this.DIFFUSE=!1,this.DIFFUSEDIRECTUV=0,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.AMBIENT=!1,this.AMBIENTDIRECTUV=0,this.OPACITY=!1,this.OPACITYDIRECTUV=0,this.OPACITYRGB=!1,this.REFLECTION=!1,this.EMISSIVE=!1,this.EMISSIVEDIRECTUV=0,this.SPECULAR=!1,this.SPECULARDIRECTUV=0,this.BUMP=!1,this.BUMPDIRECTUV=0,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.SPECULAROVERALPHA=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHAFROMDIFFUSE=!1,this.POINTSIZE=!1,this.FOG=!1,this.SPECULARTERM=!1,this.DIFFUSEFRESNEL=!1,this.OPACITYFRESNEL=!1,this.REFLECTIONFRESNEL=!1,this.REFRACTIONFRESNEL=!1,this.EMISSIVEFRESNEL=!1,this.FRESNEL=!1,this.NORMAL=!1,this.TANGENT=!1,this.VERTEXCOLOR=!1,this.VERTEXALPHA=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.GLOSSINESS=!1,this.ROUGHNESS=!1,this.EMISSIVEASILLUMINATION=!1,this.LINKEMISSIVEWITHDIFFUSE=!1,this.REFLECTIONFRESNELFROMSPECULAR=!1,this.LIGHTMAP=!1,this.LIGHTMAPDIRECTUV=0,this.OBJECTSPACE_NORMALMAP=!1,this.USELIGHTMAPASSHADOWMAP=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFRACTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.INVERTCUBICMAP=!1,this.LOGARITHMICDEPTH=!1,this.REFRACTION=!1,this.REFRACTIONMAP_3D=!1,this.REFLECTIONOVERALPHA=!1,this.TWOSIDEDLIGHTING=!1,this.SHADOWFLOAT=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.NONUNIFORMSCALING=!1,this.PREMULTIPLYALPHA=!1,this.ALPHATEST_AFTERALLALPHACOMPUTATIONS=!1,this.ALPHABLEND=!0,this.RGBDLIGHTMAP=!1,this.RGBDREFLECTION=!1,this.RGBDREFRACTION=!1,this.MULTIVIEW=!1,this.ORDER_INDEPENDENT_TRANSPARENCY=!1,this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.IS_REFLECTION_LINEAR=!1,this.IS_REFRACTION_LINEAR=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.rebuild()}}class v extends(0,g.ImageProcessingMixin)(p.PushMaterial){}class C extends v{get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(e,t,i=!1){super(e,t,void 0,i||C.ForceGLSL),this._diffuseTexture=null,this._ambientTexture=null,this._opacityTexture=null,this._reflectionTexture=null,this._emissiveTexture=null,this._specularTexture=null,this._bumpTexture=null,this._lightmapTexture=null,this._refractionTexture=null,this.ambientColor=new a.Color3(0,0,0),this.diffuseColor=new a.Color3(1,1,1),this.specularColor=new a.Color3(1,1,1),this.emissiveColor=new a.Color3(0,0,0),this.specularPower=64,this._useAlphaFromDiffuseTexture=!1,this._useEmissiveAsIllumination=!1,this._linkEmissiveWithDiffuse=!1,this._useSpecularOverAlpha=!1,this._useReflectionOverAlpha=!1,this._disableLighting=!1,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this._roughness=0,this.indexOfRefraction=.98,this.invertRefractionY=!0,this.alphaCutOff=.4,this._useLightmapAsShadowmap=!1,this._useReflectionFresnelFromSpecular=!1,this._useGlossinessFromSpecularMapAlpha=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._applyDecalMapAfterDetailMap=!1,this._shadersLoaded=!1,this._vertexPullingMetadata=null,this._renderTargets=new r.SmartArray(16),this._globalAmbientColor=new a.Color3(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new f.DetailMapConfiguration(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new n.PrePassConfiguration,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),C.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),C.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return!!C.ReflectionTextureEnabled&&!!this._reflectionTexture&&!!this._reflectionTexture.isRenderTarget||!!C.RefractionTextureEnabled&&!!this._refractionTexture&&!!this._refractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}getClassName(){return"StandardMaterial"}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:!this._disableAlphaBlending&&(this.alpha<1||null!=this._opacityTexture||this._shouldUseAlphaFromDiffuseTexture()||this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled)}needAlphaTesting(){return this._hasTransparencyMode?this._transparencyModeIsTest:this._hasAlphaChannel()&&(null==this._transparencyMode||this._transparencyMode===h.Material.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==h.Material.MATERIAL_OPAQUE}_hasAlphaChannel(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha||null!=this._opacityTexture}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(t,i,r=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let s=i._drawWrapper;if(s.effect&&this.isFrozen&&s._wasPreviouslyReady&&s._wasPreviouslyUsingInstances===r)return!0;i.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),i.materialDefines=new M(this._eventInfo.defineNames));let a=this.getScene(),l=i.materialDefines;if(this._isReadyForSubMesh(i))return!0;let h=a.getEngine();if(l._needNormals=(0,E.PrepareDefinesForLights)(a,t,l,!0,this._maxSimultaneousLights,this._disableLighting),!(0,E.AreLightsTexturesReady)(a,t,this._maxSimultaneousLights,this._disableLighting))return!1;(0,E.PrepareDefinesForMultiview)(a,l);let d=this.needAlphaBlendingForMesh(t)&&this.getScene().useOrderIndependentTransparency;if((0,E.PrepareDefinesForPrePass)(a,l,this.canRenderToMRT&&!d),(0,E.PrepareDefinesForOIT)(a,l,d),A.MaterialHelperGeometryRendering.PrepareDefines(h.currentRenderPassId,t,l),l._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,l._needUVs=!1;for(let e=1;e<=6;++e)l["MAINUV"+e]=!1;if(a.texturesEnabled){if(l.DIFFUSEDIRECTUV=0,l.BUMPDIRECTUV=0,l.AMBIENTDIRECTUV=0,l.OPACITYDIRECTUV=0,l.EMISSIVEDIRECTUV=0,l.SPECULARDIRECTUV=0,l.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&C.DiffuseTextureEnabled)if(!this._diffuseTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._diffuseTexture,l,"DIFFUSE");else l.DIFFUSE=!1;if(this._ambientTexture&&C.AmbientTextureEnabled)if(!this._ambientTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._ambientTexture,l,"AMBIENT");else l.AMBIENT=!1;if(this._opacityTexture&&C.OpacityTextureEnabled)if(!this._opacityTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._opacityTexture,l,"OPACITY"),l.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else l.OPACITY=!1;if(this._reflectionTexture&&C.ReflectionTextureEnabled?(l.ROUGHNESS=this._roughness>0,l.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(l.ROUGHNESS=!1,l.REFLECTIONOVERALPHA=!1),!(0,E.PrepareDefinesForIBL)(a,this._reflectionTexture,l))return!1;if(this._emissiveTexture&&C.EmissiveTextureEnabled)if(!this._emissiveTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._emissiveTexture,l,"EMISSIVE");else l.EMISSIVE=!1;if(this._lightmapTexture&&C.LightmapTextureEnabled)if(!this._lightmapTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._lightmapTexture,l,"LIGHTMAP"),l.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,l.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else l.LIGHTMAP=!1;if(this._specularTexture&&C.SpecularTextureEnabled)if(!this._specularTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._specularTexture,l,"SPECULAR"),l.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else l.SPECULAR=!1;if(a.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&C.BumpTextureEnabled){if(!this._bumpTexture.isReady())return!1;(0,E.PrepareDefinesForMergedUV)(this._bumpTexture,l,"BUMP"),l.PARALLAX=this._useParallax,l.PARALLAX_RHS=a.useRightHandedSystem,l.PARALLAXOCCLUSION=this._useParallaxOcclusion,l.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else l.BUMP=!1,l.PARALLAX=!1,l.PARALLAX_RHS=!1,l.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&C.RefractionTextureEnabled)if(!this._refractionTexture.isReadyOrNotBlocking())return!1;else l._needUVs=!0,l.REFRACTION=!0,l.REFRACTIONMAP_3D=this._refractionTexture.isCube,l.RGBDREFRACTION=this._refractionTexture.isRGBD,l.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else l.REFRACTION=!1;l.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else l.DIFFUSE=!1,l.AMBIENT=!1,l.OPACITY=!1,l.REFLECTION=!1,l.EMISSIVE=!1,l.LIGHTMAP=!1,l.BUMP=!1,l.REFRACTION=!1;l.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),l.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,l.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,l.SPECULAROVERALPHA=this._useSpecularOverAlpha,l.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,l.ALPHATEST_AFTERALLALPHACOMPUTATIONS=null!==this.transparencyMode,l.ALPHABLEND=null===this.transparencyMode||this.needAlphaBlendingForMesh(t),l.TEXTURE_REPETITION_MODE=h.version>1||h.isWebGPU?this.textureRepetitionMode:0}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=l,this._eventInfo.subMesh=i,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(l._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(l),l.IS_REFLECTION_LINEAR=null!=this.reflectionTexture&&!this.reflectionTexture.gammaSpace,l.IS_REFRACTION_LINEAR=null!=this.refractionTexture&&!this.refractionTexture.gammaSpace}if(l._areFresnelDirty&&(C.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(l.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,l.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,l.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,l.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,l.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,l.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,l._needNormals=!0,l.FRESNEL=!0):l.FRESNEL=!1),l.AREALIGHTUSED||l.CLUSTLIGHT_BATCH){for(let e=0;e<t.lightSources.length;e++)if(!t.lightSources[e]._isReady())return!1}(0,E.PrepareDefinesForMisc)(t,a,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(t),l,this._applyDecalMapAfterDetailMap,this._useVertexPulling,i.getRenderingMesh(),this._isVertexOutputInvariant),(0,E.PrepareDefinesForFrameBoundValues)(a,h,this,l,r,null,i.getRenderingMesh().hasThinInstances),this._eventInfo.defines=l,this._eventInfo.mesh=t,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,E.PrepareDefinesForAttributes)(t,l,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let p=!1;if(l.isDirty){let r=l._areLightsDisposed;l.markAsProcessed();let s=new _.EffectFallbacks;l.REFLECTION&&s.addFallback(0,"REFLECTION"),l.SPECULAR&&s.addFallback(0,"SPECULAR"),l.BUMP&&s.addFallback(0,"BUMP"),l.PARALLAX&&s.addFallback(1,"PARALLAX"),l.PARALLAX_RHS&&s.addFallback(1,"PARALLAX_RHS"),l.PARALLAXOCCLUSION&&s.addFallback(0,"PARALLAXOCCLUSION"),l.SPECULAROVERALPHA&&s.addFallback(0,"SPECULAROVERALPHA"),l.FOG&&s.addFallback(1,"FOG"),l.POINTSIZE&&s.addFallback(0,"POINTSIZE"),l.LOGARITHMICDEPTH&&s.addFallback(0,"LOGARITHMICDEPTH"),(0,E.HandleFallbacksForShadows)(l,s,this._maxSimultaneousLights),l.SPECULARTERM&&s.addFallback(0,"SPECULARTERM"),l.DIFFUSEFRESNEL&&s.addFallback(1,"DIFFUSEFRESNEL"),l.OPACITYFRESNEL&&s.addFallback(2,"OPACITYFRESNEL"),l.REFLECTIONFRESNEL&&s.addFallback(3,"REFLECTIONFRESNEL"),l.EMISSIVEFRESNEL&&s.addFallback(4,"EMISSIVEFRESNEL"),l.FRESNEL&&s.addFallback(4,"FRESNEL"),l.MULTIVIEW&&s.addFallback(0,"MULTIVIEW");let d=[o.VertexBuffer.PositionKind];l.NORMAL&&d.push(o.VertexBuffer.NormalKind),l.TANGENT&&d.push(o.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)l["UV"+e]&&d.push(`uv${1===e?"":e}`);l.VERTEXCOLOR&&d.push(o.VertexBuffer.ColorKind),(0,E.PrepareAttributesForBones)(d,t,l,s),(0,E.PrepareAttributesForInstances)(d,l),(0,E.PrepareAttributesForMorphTargets)(d,t,l),(0,E.PrepareAttributesForBakedVertexAnimation)(d,t,l);let T="default",f=["world","view","viewProjection","vEyePosition","vLightsType","vAmbientColor","vDiffuseColor","vSpecularColor","vEmissiveColor","visibility","vFogInfos","vFogColor","pointSize","vDiffuseInfos","vAmbientInfos","vOpacityInfos","vEmissiveInfos","vSpecularInfos","vBumpInfos","vLightmapInfos","vRefractionInfos","mBones","diffuseMatrix","ambientMatrix","opacityMatrix","emissiveMatrix","specularMatrix","bumpMatrix","normalMatrix","lightmapMatrix","refractionMatrix","diffuseLeftColor","diffuseRightColor","opacityParts","reflectionLeftColor","reflectionRightColor","emissiveLeftColor","emissiveRightColor","refractionLeftColor","refractionRightColor","vRefractionPosition","vRefractionSize","logarithmicDepthConstant","vTangentSpaceParams","alphaCutOff","boneTextureInfo","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams"],x=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];(0,E.PrepareUniformsAndSamplersForIBL)(f,x,!1);let P=["Material","Scene","Mesh"],R={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:l.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=s,this._eventInfo.fallbackRank=0,this._eventInfo.defines=l,this._eventInfo.uniforms=f,this._eventInfo.attributes=d,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=P,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=R,this._callbackPluginEventGeneric(128,this._eventInfo),A.MaterialHelperGeometryRendering.AddUniformsAndSamplers(f,x),n.PrePassConfiguration.AddUniforms(f),n.PrePassConfiguration.AddSamplers(x),u.ImageProcessingConfiguration&&(u.ImageProcessingConfiguration.PrepareUniforms(f,l),u.ImageProcessingConfiguration.PrepareSamplers(x,l)),(0,E.PrepareUniformsAndSamplersList)({uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:l,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage}),(0,c.AddClipPlaneUniforms)(f),this._useVertexPulling){let e=i.getRenderingMesh(),t=e?.geometry;t&&(this._vertexPullingMetadata=(0,m.PrepareVertexPullingUniforms)(t),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{f.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;let g={};this.customShaderNameResolve&&(T=this.customShaderNameResolve(T,f,P,x,l,d,g));let S=l.toString(),I=i.effect,b=a.getEngine().createEffect(T,{attributes:d,uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:S,fallbacks:s,onCompiled:this.onCompiled,onError:this.onError,indexParameters:R,processFinalCode:g.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:l.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this._shaderLanguage?await Promise.all([e.A(95693),e.A(21288)]):await Promise.all([e.A(34554),e.A(7399)]),this._shadersLoaded=!0}},h);if(this._eventInfo.customCode=void 0,b)if(this._onEffectCreatedObservable&&(F.effect=b,F.subMesh=i,this._onEffectCreatedObservable.notifyObservers(F)),this.allowShaderHotSwapping&&I&&!b.isReady()){if(l.markAsUnprocessed(),p=this.isFrozen,r)return l._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),i.setEffect(b,l,this._materialContext)}return!!i.effect&&!!i.effect.isReady()&&(l._renderId=a.getRenderId(),s._wasPreviouslyReady=!p,s._wasPreviouslyUsingInstances=r,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("diffuseLeftColor",4),e.addUniform("diffuseRightColor",4),e.addUniform("opacityParts",4),e.addUniform("reflectionLeftColor",4),e.addUniform("reflectionRightColor",4),e.addUniform("refractionLeftColor",4),e.addUniform("refractionRightColor",4),e.addUniform("emissiveLeftColor",4),e.addUniform("emissiveRightColor",4),e.addUniform("vDiffuseInfos",2),e.addUniform("vAmbientInfos",2),e.addUniform("vOpacityInfos",2),e.addUniform("vEmissiveInfos",2),e.addUniform("vLightmapInfos",2),e.addUniform("vSpecularInfos",2),e.addUniform("vBumpInfos",3),e.addUniform("diffuseMatrix",16),e.addUniform("ambientMatrix",16),e.addUniform("opacityMatrix",16),e.addUniform("emissiveMatrix",16),e.addUniform("lightmapMatrix",16),e.addUniform("specularMatrix",16),e.addUniform("bumpMatrix",16),e.addUniform("vTangentSpaceParams",2),e.addUniform("pointSize",1),e.addUniform("alphaCutOff",1),e.addUniform("refractionMatrix",16),e.addUniform("vRefractionInfos",4),e.addUniform("vRefractionPosition",3),e.addUniform("vRefractionSize",3),e.addUniform("vSpecularColor",4),e.addUniform("vEmissiveColor",3),e.addUniform("vDiffuseColor",4),e.addUniform("vAmbientColor",3),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),(0,E.PrepareUniformLayoutForIBL)(e,!1,!0),super.buildUniformLayout()}bindForSubMesh(e,t,i){let r=this.getScene(),o=i.materialDefines;if(!o)return;let n=i.effect;if(!n)return;this._activeEffect=n,t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e),this._uniformBuffer.bindToEffect(n,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,r,t,e,this.isFrozen),A.MaterialHelperGeometryRendering.Bind(r.getEngine().currentRenderPassId,this._activeEffect,t,e,this);let l=r.activeCamera;l?this._uniformBuffer.updateFloat4("cameraInfo",l.minZ,l.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let u=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",u[0],u[1],u[2],u[3]),this._eventInfo.subMesh=i,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),o.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let h=this._mustRebind(r,n,i,t.visibility),d=r.getEngine()._features.needToAlwaysBindUniformBuffers;(0,E.BindBonesParameters)(t,n),this._vertexPullingMetadata&&(0,m.BindVertexPullingUniforms)(n,this._vertexPullingMetadata);let p=this._uniformBuffer;if(h){if(this.bindViewProjection(n),!p.useUbo||!this.isFrozen||!p.isSync||i._drawWrapper._forceRebindOnNextCall){if(C.FresnelEnabled&&o.FRESNEL){if(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(p.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),p.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled){let e=a.TmpColors.Color3[0];e.set(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),p.updateColor4("opacityParts",e,this.opacityFresnelParameters.power)}this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(p.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),p.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(p.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),p.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(p.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),p.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))}if(r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&(p.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),(0,E.BindTextureMatrix)(this._diffuseTexture,p,"diffuse")),this._ambientTexture&&C.AmbientTextureEnabled&&(p.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),(0,E.BindTextureMatrix)(this._ambientTexture,p,"ambient")),this._opacityTexture&&C.OpacityTextureEnabled&&(p.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),(0,E.BindTextureMatrix)(this._opacityTexture,p,"opacity")),this._hasAlphaChannel()&&p.updateFloat("alphaCutOff",this.alphaCutOff),(0,E.BindIBLParameters)(r,o,p,a.Color3.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),this._reflectionTexture&&C.ReflectionTextureEnabled||p.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&C.EmissiveTextureEnabled&&(p.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),(0,E.BindTextureMatrix)(this._emissiveTexture,p,"emissive")),this._lightmapTexture&&C.LightmapTextureEnabled&&(p.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),(0,E.BindTextureMatrix)(this._lightmapTexture,p,"lightmap")),this._specularTexture&&C.SpecularTextureEnabled&&(p.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),(0,E.BindTextureMatrix)(this._specularTexture,p,"specular")),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&(p.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),(0,E.BindTextureMatrix)(this._bumpTexture,p,"bump"),r._mirroredCameraPosition?p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&C.RefractionTextureEnabled)){let e=1;if(!this._refractionTexture.isCube&&(p.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(e=this._refractionTexture.depth)),p.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,e,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){let e=this._refractionTexture;p.updateVector3("vRefractionPosition",e.boundingBoxPosition),p.updateVector3("vRefractionSize",e.boundingBoxSize)}}this.pointsCloud&&p.updateFloat("pointSize",this.pointSize),p.updateColor4("vSpecularColor",this.specularColor,this.specularPower),p.updateColor3("vEmissiveColor",C.EmissiveTextureEnabled?this.emissiveColor:a.Color3.BlackReadOnly),p.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),r.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),p.updateColor3("vAmbientColor",this._globalAmbientColor)}r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&n.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&C.AmbientTextureEnabled&&n.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&C.OpacityTextureEnabled&&n.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&C.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?n.setTexture("reflectionCubeSampler",this._reflectionTexture):n.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&C.EmissiveTextureEnabled&&n.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&C.LightmapTextureEnabled&&n.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&C.SpecularTextureEnabled&&n.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&n.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&C.RefractionTextureEnabled&&(this._refractionTexture.isCube?n.setTexture("refractionCubeSampler",this._refractionTexture):n.setTexture("refraction2DSampler",this._refractionTexture))),this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(n),this._eventInfo.subMesh=i,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,c.BindClipPlane)(n,this,r),this.bindEyePosition(n)}else d&&(this._needToBindSceneUbo=!0);(h||!this.isFrozen||d)&&r.lightsEnabled&&!this._disableLighting&&(0,E.BindLights)(r,t,n,o,this._maxSimultaneousLights),(h||!this.isFrozen)&&((r.fogEnabled&&t.applyFog&&r.fogMode!==s.Scene.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||t.receiveShadows||o.PREPASS||o.CLUSTLIGHT_BATCH)&&this.bindView(n),(0,E.BindFogParameters)(r,t,n),o.NUM_MORPH_INFLUENCERS&&(0,E.BindMorphTargetParameters)(t,n),o.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(n,o.INSTANCES),this.useLogarithmicDepth&&(0,E.BindLogDepth)(o,n,r),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(t,this._activeEffect,i),p.update()}getAnimatables(){let e=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&e.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&e.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&e.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&e.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&e.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&e.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&e.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&e.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&e.push(this._refractionTexture),e}getActiveTextures(){let e=super.getActiveTextures();return this._diffuseTexture&&e.push(this._diffuseTexture),this._ambientTexture&&e.push(this._ambientTexture),this._opacityTexture&&e.push(this._opacityTexture),this._reflectionTexture&&e.push(this._reflectionTexture),this._emissiveTexture&&e.push(this._emissiveTexture),this._specularTexture&&e.push(this._specularTexture),this._bumpTexture&&e.push(this._bumpTexture),this._lightmapTexture&&e.push(this._lightmapTexture),this._refractionTexture&&e.push(this._refractionTexture),e}hasTexture(e){return!!super.hasTexture(e)||this._diffuseTexture===e||this._ambientTexture===e||this._opacityTexture===e||this._reflectionTexture===e||this._emissiveTexture===e||this._specularTexture===e||this._bumpTexture===e||this._lightmapTexture===e||this._refractionTexture===e||!1}dispose(e,t){t&&(this._diffuseTexture?.dispose(),this._ambientTexture?.dispose(),this._opacityTexture?.dispose(),this._reflectionTexture?.dispose(),this._emissiveTexture?.dispose(),this._specularTexture?.dispose(),this._bumpTexture?.dispose(),this._lightmapTexture?.dispose(),this._refractionTexture?.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}clone(e,t=!0,i=""){let r=x.SerializationHelper.Clone(()=>new C(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return r.name=e,r.id=e,this.stencil.copyTo(r.stencil),this._clonePlugins(r,i),r}static Parse(e,t,i){let r=x.SerializationHelper.Parse(()=>new C(e.name,t),e,t,i);return e.stencil&&r.stencil.parse(e.stencil,t,i),h.Material._ParsePlugins(e,r,t,i),r}static get DiffuseTextureEnabled(){return T.MaterialFlags.DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){T.MaterialFlags.DiffuseTextureEnabled=e}static get DetailTextureEnabled(){return T.MaterialFlags.DetailTextureEnabled}static set DetailTextureEnabled(e){T.MaterialFlags.DetailTextureEnabled=e}static get AmbientTextureEnabled(){return T.MaterialFlags.AmbientTextureEnabled}static set AmbientTextureEnabled(e){T.MaterialFlags.AmbientTextureEnabled=e}static get OpacityTextureEnabled(){return T.MaterialFlags.OpacityTextureEnabled}static set OpacityTextureEnabled(e){T.MaterialFlags.OpacityTextureEnabled=e}static get ReflectionTextureEnabled(){return T.MaterialFlags.ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){T.MaterialFlags.ReflectionTextureEnabled=e}static get EmissiveTextureEnabled(){return T.MaterialFlags.EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){T.MaterialFlags.EmissiveTextureEnabled=e}static get SpecularTextureEnabled(){return T.MaterialFlags.SpecularTextureEnabled}static set SpecularTextureEnabled(e){T.MaterialFlags.SpecularTextureEnabled=e}static get BumpTextureEnabled(){return T.MaterialFlags.BumpTextureEnabled}static set BumpTextureEnabled(e){T.MaterialFlags.BumpTextureEnabled=e}static get LightmapTextureEnabled(){return T.MaterialFlags.LightmapTextureEnabled}static set LightmapTextureEnabled(e){T.MaterialFlags.LightmapTextureEnabled=e}static get RefractionTextureEnabled(){return T.MaterialFlags.RefractionTextureEnabled}static set RefractionTextureEnabled(e){T.MaterialFlags.RefractionTextureEnabled=e}static get ColorGradingTextureEnabled(){return T.MaterialFlags.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){T.MaterialFlags.ColorGradingTextureEnabled=e}static get FresnelEnabled(){return T.MaterialFlags.FresnelEnabled}static set FresnelEnabled(e){T.MaterialFlags.FresnelEnabled=e}}C.ForceGLSL=!1,(0,t.__decorate)([(0,i.serializeAsTexture)("diffuseTexture")],C.prototype,"_diffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"diffuseTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("ambientTexture")],C.prototype,"_ambientTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"ambientTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("opacityTexture")],C.prototype,"_opacityTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"opacityTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("reflectionTexture")],C.prototype,"_reflectionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"reflectionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("emissiveTexture")],C.prototype,"_emissiveTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"emissiveTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("specularTexture")],C.prototype,"_specularTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"specularTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("bumpTexture")],C.prototype,"_bumpTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"bumpTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("lightmapTexture")],C.prototype,"_lightmapTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"lightmapTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("refractionTexture")],C.prototype,"_refractionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"refractionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("ambient")],C.prototype,"ambientColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("diffuse")],C.prototype,"diffuseColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("specular")],C.prototype,"specularColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("emissive")],C.prototype,"emissiveColor",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"specularPower",void 0),(0,t.__decorate)([(0,i.serialize)("useAlphaFromDiffuseTexture")],C.prototype,"_useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.serialize)("useEmissiveAsIllumination")],C.prototype,"_useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.serialize)("linkEmissiveWithDiffuse")],C.prototype,"_linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.serialize)("useSpecularOverAlpha")],C.prototype,"_useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionOverAlpha")],C.prototype,"_useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("disableLighting")],C.prototype,"_disableLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,i.serialize)("useObjectSpaceNormalMap")],C.prototype,"_useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.serialize)("useParallax")],C.prototype,"_useParallax",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallax",void 0),(0,t.__decorate)([(0,i.serialize)("useParallaxOcclusion")],C.prototype,"_useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,i.serialize)("roughness")],C.prototype,"_roughness",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"roughness",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"indexOfRefraction",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"invertRefractionY",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,i.serialize)("useLightmapAsShadowmap")],C.prototype,"_useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("diffuseFresnelParameters")],C.prototype,"_diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("opacityFresnelParameters")],C.prototype,"_opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelAndMiscDirty")],C.prototype,"opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("reflectionFresnelParameters")],C.prototype,"_reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("refractionFresnelParameters")],C.prototype,"_refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("emissiveFresnelParameters")],C.prototype,"_emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionFresnelFromSpecular")],C.prototype,"_useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.serialize)("useGlossinessFromSpecularMapAlpha")],C.prototype,"_useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("maxSimultaneousLights")],C.prototype,"_maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapX")],C.prototype,"_invertNormalMapX",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapY")],C.prototype,"_invertNormalMapY",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,i.serialize)("twoSidedLighting")],C.prototype,"_twoSidedLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,i.serialize)("applyDecalMapAfterDetailMap")],C.prototype,"_applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsMiscDirty")],C.prototype,"applyDecalMapAfterDetailMap",void 0);let L=!1;function y(){L||(L=!0,(0,S.RegisterClass)("BABYLON.StandardMaterial",C),s.Scene.DefaultMaterialFactory=e=>new C("default material",e))}Object.getOwnPropertyDescriptor(C.prototype,"decalMap")||Object.defineProperty(C.prototype,"decalMap",(0,I._MissingSideEffectProperty)("StandardMaterial","decalMap")),e.s(["RegisterStandardMaterial",0,y,"StandardMaterial",0,C,"StandardMaterialDefines",0,M],35004),y(),e.s([],84520)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54361,t=>{"use strict";class e{constructor(t,e){this.width=t,this.height=e}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let t=0|this.width;return 397*t^this.height}copyFrom(t){this.width=t.width,this.height=t.height}copyFromFloats(t,e){return this.width=t,this.height=e,this}set(t,e){return this.copyFromFloats(t,e)}multiplyByFloats(t,i){return new e(this.width*t,this.height*i)}clone(){return new e(this.width,this.height)}equals(t){return!!t&&this.width===t.width&&this.height===t.height}get surface(){return this.width*this.height}static Zero(){return new e(0,0)}add(t){return new e(this.width+t.width,this.height+t.height)}subtract(t){return new e(this.width-t.width,this.height-t.height)}scale(t){return new e(this.width*t,this.height*t)}static Lerp(t,i,s){return new e(t.width+(i.width-t.width)*s,t.height+(i.height-t.height)*s)}}t.s(["Size",0,e])},65002,t=>{"use strict";var e=t.i(96265);class i{constructor(t,i,s,r){this.normal=new e.Vector3(t,i,s),this.d=r}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let t=this.normal.getHashCode();return 397*t^this.d}normalize(){let t=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),e=0;return 0!==t&&(e=1/t),this.normal.x*=e,this.normal.y*=e,this.normal.z*=e,this.d*=e,this}transform(t){let e=i._TmpMatrix;t.invertToRef(e);let s=e.m,r=this.normal.x,n=this.normal.y,o=this.normal.z,a=this.d;return new i(r*s[0]+n*s[1]+o*s[2]+a*s[3],r*s[4]+n*s[5]+o*s[6]+a*s[7],r*s[8]+n*s[9]+o*s[10]+a*s[11],r*s[12]+n*s[13]+o*s[14]+a*s[15])}dotCoordinate(t){return this.normal.x*t.x+this.normal.y*t.y+this.normal.z*t.z+this.d}copyFromPoints(t,e,i){let s,r=e.x-t.x,n=e.y-t.y,o=e.z-t.z,a=i.x-t.x,h=i.y-t.y,l=i.z-t.z,c=n*l-o*h,u=o*a-r*l,m=r*h-n*a,_=Math.sqrt(c*c+u*u+m*m);return s=0!==_?1/_:0,this.normal.x=c*s,this.normal.y=u*s,this.normal.z=m*s,this.d=-(this.normal.x*t.x+this.normal.y*t.y+this.normal.z*t.z),this}isFrontFacingTo(t,i){return e.Vector3.Dot(this.normal,t)<=i}signedDistanceTo(t){return e.Vector3.Dot(t,this.normal)+this.d}static FromArray(t){return new i(t[0],t[1],t[2],t[3])}static FromPoints(t,e,s){let r=new i(0,0,0,0);return r.copyFromPoints(t,e,s),r}static FromPositionAndNormal(t,e){let s=new i(0,0,0,0);return this.FromPositionAndNormalToRef(t,e,s)}static FromPositionAndNormalToRef(t,e,i){return i.normal.copyFrom(e),i.normal.normalize(),i.d=-t.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(t,i,s){let r=-(i.x*t.x+i.y*t.y+i.z*t.z);return e.Vector3.Dot(s,i)+r}}i._TmpMatrix=e.Matrix.Identity(),t.s(["Plane",0,i])},85531,t=>{"use strict";var e=t.i(65002);class i{static GetPlanes(t){let s=[];for(let t=0;t<6;t++)s.push(new e.Plane(0,0,0,0));return i.GetPlanesToRef(t,s),s}static GetNearPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[2],e.normal.y=i[7]+i[6],e.normal.z=i[11]+i[10],e.d=i[15]+i[14],e.normalize()}static GetFarPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[2],e.normal.y=i[7]-i[6],e.normal.z=i[11]-i[10],e.d=i[15]-i[14],e.normalize()}static GetLeftPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[0],e.normal.y=i[7]+i[4],e.normal.z=i[11]+i[8],e.d=i[15]+i[12],e.normalize()}static GetRightPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[0],e.normal.y=i[7]-i[4],e.normal.z=i[11]-i[8],e.d=i[15]-i[12],e.normalize()}static GetTopPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[1],e.normal.y=i[7]-i[5],e.normal.z=i[11]-i[9],e.d=i[15]-i[13],e.normalize()}static GetBottomPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[1],e.normal.y=i[7]+i[5],e.normal.z=i[11]+i[9],e.d=i[15]+i[13],e.normalize()}static GetPlanesToRef(t,e){i.GetNearPlaneToRef(t,e[0]),i.GetFarPlaneToRef(t,e[1]),i.GetLeftPlaneToRef(t,e[2]),i.GetRightPlaneToRef(t,e[3]),i.GetTopPlaneToRef(t,e[4]),i.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let i=0;i<6;i++)if(0>e[i].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,i])},25348,t=>{"use strict";class e{constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}toGlobal(t,i){return new e(this.x*t,this.y*i,this.width*t,this.height*i)}toGlobalToRef(t,e,i){return i.x=this.x*t,i.y=this.y*e,i.width=this.width*t,i.height=this.height*e,this}clone(){return new e(this.x,this.y,this.width,this.height)}}t.s(["Viewport",0,e])},70247,t=>{"use strict";var e,i,s,r,n=t.i(96265);(e=s||(s={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class o{}o.X=new n.Vector3(1,0,0),o.Y=new n.Vector3(0,1,0),o.Z=new n.Vector3(0,0,1),(i=r||(r={}))[i.X=0]="X",i[i.Y=1]="Y",i[i.Z=2]="Z",t.s(["Axis",0,o,"Coordinate",0,r,"Space",0,s])},75991,t=>{"use strict";var e,i,s=t.i(46703),r=t.i(96265),n=t.i(89030);(e=i||(i={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class o{constructor(t){this._radians=t,this._radians<0&&(this._radians+=2*Math.PI)}degrees(){return 180*this._radians/Math.PI}radians(){return this._radians}static BetweenTwoPoints(t,e){let i=e.subtract(t);return new o(Math.atan2(i.y,i.x))}static BetweenTwoVectors(t,e){let i=t.lengthSquared()*e.lengthSquared();if(0===i)return new o(Math.PI/2);i=Math.sqrt(i);let r=t.dot(e)/i;return new o(Math.acos(r=(0,s.Clamp)(r,-1,1)))}static FromRadians(t){return new o(t)}static FromDegrees(t){return new o(t*Math.PI/180)}}class a{constructor(t,e,i){this.startPoint=t,this.midPoint=e,this.endPoint=i;const s=Math.pow(e.x,2)+Math.pow(e.y,2),n=(Math.pow(t.x,2)+Math.pow(t.y,2)-s)/2,a=(s-Math.pow(i.x,2)-Math.pow(i.y,2))/2,h=(t.x-e.x)*(e.y-i.y)-(e.x-i.x)*(t.y-e.y);this.centerPoint=new r.Vector2((n*(e.y-i.y)-a*(t.y-e.y))/h,((t.x-e.x)*a-(e.x-i.x)*n)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=o.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let c=o.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),u=o.BetweenTwoPoints(this.centerPoint,this.endPoint).degrees();c-l>180&&(c-=360),c-l<-180&&(c+=360),u-c>180&&(u-=360),u-c<-180&&(u+=360),this.orientation=c-l<0?0:1,this.angle=o.FromDegrees(0===this.orientation?l-u:u-l)}}class h{constructor(t,e){this._points=[],this._length=0,this.closed=!1,this._points.push(new r.Vector2(t,e))}addLineTo(t,e){if(this.closed)return this;let i=new r.Vector2(t,e),s=this._points[this._points.length-1];return this._points.push(i),this._length+=i.subtract(s).length(),this}addArcTo(t,e,i,s,n=36){if(this.closed)return this;let o=new a(this._points[this._points.length-1],new r.Vector2(t,e),new r.Vector2(i,s)),h=o.angle.radians()/n;0===o.orientation&&(h*=-1);let l=o.startAngle.radians()+h;for(let t=0;t<n;t++){let t=Math.cos(l)*o.radius+o.centerPoint.x,e=Math.sin(l)*o.radius+o.centerPoint.y;this.addLineTo(t,e),l+=h}return this}addQuadraticCurveTo(t,e,i,s,r=36){if(this.closed)return this;let n=(t,e,i,s)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*s,o=this._points[this._points.length-1];for(let a=0;a<=r;a++){let h=a/r,l=n(h,o.x,t,i),c=n(h,o.y,e,s);this.addLineTo(l,c)}return this}addBezierCurveTo(t,e,i,s,r,n,o=36){if(this.closed)return this;let a=(t,e,i,s,r)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*s+t*t*t*r,h=this._points[this._points.length-1];for(let l=0;l<=o;l++){let c=l/o,u=a(c,h.x,t,i,r),m=a(c,h.y,e,s,n);this.addLineTo(u,m)}return this}isPointInside(t){let e=!1,i=this._points.length;for(let s=i-1,r=0;r<i;s=r++){let i=this._points[s],n=this._points[r],o=n.x-i.x,a=n.y-i.y;if(Math.abs(a)>Number.EPSILON){if(a<0&&(i=this._points[r],o=-o,n=this._points[s],a=-a),t.y<i.y||t.y>n.y)continue;if(t.y===i.y&&t.x===i.x)return!0;{let s=a*(t.x-i.x)-o*(t.y-i.y);if(0===s)return!0;if(s<0)continue;e=!e}}else{if(t.y!==i.y)continue;if(n.x<=t.x&&t.x<=i.x||i.x<=t.x&&t.x<=n.x)return!0}}return e}close(){return this.closed=!0,this}length(){let t=this._length;if(this.closed){let e=this._points[this._points.length-1];t+=this._points[0].subtract(e).length()}return t}area(){let t=this._points.length,e=0;for(let i=t-1,s=0;s<t;i=s++)e+=this._points[i].x*this._points[s].y-this._points[s].x*this._points[i].y;return .5*e}getPoints(){return this._points}getPointAtLengthPosition(t){if(t<0||t>1)return r.Vector2.Zero();let e=t*this.length(),i=0;for(let t=0;t<this._points.length;t++){let s=(t+1)%this._points.length,n=this._points[t],o=this._points[s].subtract(n),a=o.length()+i;if(e>=i&&e<=a){let t=o.normalize(),s=e-i;return new r.Vector2(n.x+t.x*s,n.y+t.y*s)}i=a}return r.Vector2.Zero()}static StartingAt(t,e){return new h(t,e)}}class l{constructor(t,e=null,i,s=!1){this.path=t,this._curve=[],this._distances=[],this._tangents=[],this._normals=[],this._binormals=[],this._pointAtData={id:0,point:r.Vector3.Zero(),previousPointArrayIndex:0,position:0,subPosition:0,interpolateReady:!1,interpolationMatrix:r.Matrix.Identity()};for(let e=0;e<t.length;e++)this._curve[e]=t[e].clone();this._raw=i||!1,this._alignTangentsWithPath=s,this._compute(e,s)}getCurve(){return this._curve}getPoints(){return this._curve}length(){return this._distances[this._distances.length-1]}getTangents(){return this._tangents}getNormals(){return this._normals}getBinormals(){return this._binormals}getDistances(){return this._distances}getPointAt(t){return this._updatePointAtData(t).point}getTangentAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.Forward(),this._pointAtData.interpolationMatrix):this._tangents[this._pointAtData.previousPointArrayIndex]}getNormalAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.Right(),this._pointAtData.interpolationMatrix):this._normals[this._pointAtData.previousPointArrayIndex]}getBinormalAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.UpReadOnly,this._pointAtData.interpolationMatrix):this._binormals[this._pointAtData.previousPointArrayIndex]}getDistanceAt(t){return this.length()*t}getPreviousPointIndexAt(t){return this._updatePointAtData(t),this._pointAtData.previousPointArrayIndex}getSubPositionAt(t){return this._updatePointAtData(t),this._pointAtData.subPosition}getClosestPositionTo(t){let e=Number.MAX_VALUE,i=0;for(let s=0;s<this._curve.length-1;s++){let n=this._curve[s+0],o=this._curve[s+1].subtract(n).normalize(),a=this._distances[s+1]-this._distances[s+0],h=Math.min(Math.max(r.Vector3.Dot(o,t.subtract(n).normalize()),0)*r.Vector3.Distance(n,t)/a,1),l=r.Vector3.Distance(n.add(o.scale(h*a)),t);l<e&&(e=l,i=(this._distances[s+0]+a*h)/this.length())}return i}slice(t=0,e=1){if(t<0&&(t=1- -1*t%1),e<0&&(e=1- -1*e%1),t>e){let i=t;t=e,e=i}let i=this.getCurve(),s=this.getPointAt(t),r=this.getPreviousPointIndexAt(t),n=this.getPointAt(e),o=this.getPreviousPointIndexAt(e)+1,a=[];return 0!==t&&(r++,a.push(s)),a.push(...i.slice(r,o)),(1!==e||1===t)&&a.push(n),new l(a,this.getNormalAt(t),this._raw,this._alignTangentsWithPath)}update(t,e=null,i=!1){for(let e=0;e<t.length;e++)this._curve[e].x=t[e].x,this._curve[e].y=t[e].y,this._curve[e].z=t[e].z;return this._compute(e,i),this}_compute(t,e=!1){let i,s,n,o,a,h=this._curve.length;if(h<2)return;this._tangents[0]=this._getFirstNonNullVector(0),this._raw||this._tangents[0].normalize(),this._tangents[h-1]=this._curve[h-1].subtract(this._curve[h-2]),this._raw||this._tangents[h-1].normalize();let l=this._tangents[0],c=this._normalVector(l,t);this._normals[0]=c,this._raw||this._normals[0].normalize(),this._binormals[0]=r.Vector3.Cross(l,this._normals[0]),this._raw||this._binormals[0].normalize(),this._distances[0]=0;for(let t=1;t<h;t++)i=this._getLastNonNullVector(t),t<h-1&&(s=this._getFirstNonNullVector(t),this._tangents[t]=e?s:i.add(s),this._tangents[t].normalize()),this._distances[t]=this._distances[t-1]+this._curve[t].subtract(this._curve[t-1]).length(),n=this._tangents[t],a=this._binormals[t-1],this._normals[t]=r.Vector3.Cross(a,n),this._raw||(0===this._normals[t].length()?(o=this._normals[t-1],this._normals[t]=o.clone()):this._normals[t].normalize()),this._binormals[t]=r.Vector3.Cross(n,this._normals[t]),this._raw||this._binormals[t].normalize();this._pointAtData.id=NaN}_getFirstNonNullVector(t){let e=1,i=this._curve[t+e].subtract(this._curve[t]);for(;0===i.length()&&t+e+1<this._curve.length;)e++,i=this._curve[t+e].subtract(this._curve[t]);return i}_getLastNonNullVector(t){let e=1,i=this._curve[t].subtract(this._curve[t-e]);for(;0===i.length()&&t>e+1;)e++,i=this._curve[t].subtract(this._curve[t-e]);return i}_normalVector(t,e){let i,o=t.length();if(0===o&&(o=1),null==e){let e;e=(0,s.WithinEpsilon)(Math.abs(t.y)/o,1,n.Epsilon)?(0,s.WithinEpsilon)(Math.abs(t.x)/o,1,n.Epsilon)?(0,s.WithinEpsilon)(Math.abs(t.z)/o,1,n.Epsilon)?r.Vector3.Zero():new r.Vector3(0,0,1):new r.Vector3(1,0,0):new r.Vector3(0,-1,0),i=r.Vector3.Cross(t,e)}else i=r.Vector3.Cross(t,e),r.Vector3.CrossToRef(i,t,i);return i.normalize(),i}_updatePointAtData(t,e=!1){let i;if(this._pointAtData.id===t)return this._pointAtData.interpolateReady||this._updateInterpolationMatrix(),this._pointAtData;this._pointAtData.id=t;let s=this.getPoints();if(t<=0)return this._setPointAtData(0,0,s[0],0,e);if(t>=1)return this._setPointAtData(1,1,s[s.length-1],s.length-1,e);let n=s[0],o=0,a=t*this.length();for(let h=1;h<s.length;h++){i=s[h];let l=r.Vector3.Distance(n,i);if((o+=l)===a)return this._setPointAtData(t,1,i,h,e);if(o>a){let s=(o-a)/l,r=n.subtract(i),c=i.add(r.scaleInPlace(s));return this._setPointAtData(t,1-s,c,h-1,e)}n=i}return this._pointAtData}_setPointAtData(t,e,i,s,r){return this._pointAtData.point=i,this._pointAtData.position=t,this._pointAtData.subPosition=e,this._pointAtData.previousPointArrayIndex=s,this._pointAtData.interpolateReady=r,r&&this._updateInterpolationMatrix(),this._pointAtData}_updateInterpolationMatrix(){this._pointAtData.interpolationMatrix=r.Matrix.Identity();let t=this._pointAtData.previousPointArrayIndex;if(t!==this._tangents.length-1){let e=t+1,i=this._tangents[t].clone(),s=this._normals[t].clone(),n=this._binormals[t].clone(),o=this._tangents[e].clone(),a=this._normals[e].clone(),h=this._binormals[e].clone(),l=r.Quaternion.RotationQuaternionFromAxis(s,n,i),c=r.Quaternion.RotationQuaternionFromAxis(a,h,o);r.Quaternion.Slerp(l,c,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}class c{static CreateQuadraticBezier(t,e,i,s){s=s>2?s:3;let n=[],o=(t,e,i,s)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*s;for(let a=0;a<=s;a++)n.push(new r.Vector3(o(a/s,t.x,e.x,i.x),o(a/s,t.y,e.y,i.y),o(a/s,t.z,e.z,i.z)));return new c(n)}static CreateCubicBezier(t,e,i,s,n){n=n>3?n:4;let o=[],a=(t,e,i,s,r)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*s+t*t*t*r;for(let h=0;h<=n;h++)o.push(new r.Vector3(a(h/n,t.x,e.x,i.x,s.x),a(h/n,t.y,e.y,i.y,s.y),a(h/n,t.z,e.z,i.z,s.z)));return new c(o)}static CreateHermiteSpline(t,e,i,s,n){let o=[],a=1/n;for(let h=0;h<=n;h++)o.push(r.Vector3.Hermite(t,e,i,s,h*a));return new c(o)}static CreateCatmullRomSpline(t,e,i){let s=[],n=1/e,o=0;if(i){let i=t.length;for(let a=0;a<i;a++){o=0;for(let h=0;h<e;h++)s.push(r.Vector3.CatmullRom(t[a%i],t[(a+1)%i],t[(a+2)%i],t[(a+3)%i],o)),o+=n}s.push(s[0])}else{let i=[];i.push(t[0].clone()),i.push(...t),i.push(t[t.length-1].clone());let a=0;for(;a<i.length-3;a++){o=0;for(let t=0;t<e;t++)s.push(r.Vector3.CatmullRom(i[a],i[a+1],i[a+2],i[a+3],o)),o+=n}a--,s.push(r.Vector3.CatmullRom(i[a],i[a+1],i[a+2],i[a+3],o))}return new c(s)}static ArcThru3Points(t,e,i,s=32,n=!1,o=!1){let a=[],h=e.subtract(t),l=i.subtract(e),u=t.subtract(i),m=r.Vector3.Cross(h,l),_=m.length();if(_<1e-8)return new c(a);let p=h.lengthSquared(),d=l.lengthSquared(),g=u.lengthSquared(),P=m.lengthSquared(),x=.5*h.length()*l.length()*u.length()/_,w=r.Vector3.Dot(h,u),y=r.Vector3.Dot(h,l),A=r.Vector3.Dot(l,u),f=t.scale(-.5*d*w/P).add(e.scale(-.5*g*y/P)).add(i.scale(-.5*p*A/P)),V=t.subtract(f).normalize(),z=r.Vector3.Cross(m,V).normalize();if(o){let e=2*Math.PI/s;for(let t=0;t<=2*Math.PI;t+=e)a.push(f.add(V.scale(x*Math.cos(t)).add(z.scale(x*Math.sin(t)))));a.push(t)}else{let e,r=1/s,o=0;do e=f.add(V.scale(x*Math.cos(o)).add(z.scale(x*Math.sin(o)))),a.push(e),o+=r;while(!e.equalsWithEpsilon(i,x*r*1.1))a.push(i),n&&a.push(t)}return new c(a)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(t){let e=this._points[this._points.length-1],i=this._points.slice(),s=t.getPoints();for(let t=1;t<s.length;t++)i.push(s[t].subtract(s[0]).add(e));return new c(i)}_computeLength(t){let e=0;for(let i=1;i<t.length;i++)e+=t[i].subtract(t[i-1]).length();return e}}t.s(["Angle",0,o,"Arc2",0,a,"BezierCurve",0,class{static Interpolate(t,e,i,s,r){if(0===t)return 0;let n=1-3*s+3*e,o=3*s-6*e,a=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,i=e*h*n+o*e+a*h,s=1/(3*n*e+2*o*h+a);h-=(i-t)*s,h=Math.min(1,Math.max(0,h))}return 3*Math.pow(1-h,2)*h*i+3*(1-h)*Math.pow(h,2)*r+Math.pow(h,3)}},"Curve3",0,c,"Orientation",0,i,"Path2",0,h,"Path3D",0,l])},62566,t=>{"use strict";t.s([],18531),t.i(18531);var e=t.i(70247),i=t.i(70653),s=t.i(89030),r=t.i(85531),n=t.i(75991),o=t.i(65002),a=t.i(54361),h=t.i(96265);class l{constructor(t=h.Vector3.Zero(),e=h.Vector3.Up()){this.position=t,this.normal=e}clone(){return new l(this.position.clone(),this.normal.clone())}}class c{constructor(t=h.Vector3.Zero(),e=h.Vector3.Up(),i=h.Vector2.Zero()){this.position=t,this.normal=e,this.uv=i}clone(){return new c(this.position.clone(),this.normal.clone(),this.uv.clone())}}t.s(["PositionNormalTextureVertex",0,c,"PositionNormalVertex",0,l],59169),t.i(59169);var u=t.i(25348);t.s(["Angle",()=>n.Angle,"Arc2",()=>n.Arc2,"Axis",()=>e.Axis,"BezierCurve",()=>n.BezierCurve,"Color3",()=>i.Color3,"Color4",()=>i.Color4,"Coordinate",()=>e.Coordinate,"Curve3",()=>n.Curve3,"Epsilon",()=>s.Epsilon,"Frustum",()=>r.Frustum,"Matrix",()=>h.Matrix,"Orientation",()=>n.Orientation,"PHI",()=>s.PHI,"Path2",()=>n.Path2,"Path3D",()=>n.Path3D,"Plane",()=>o.Plane,"PositionNormalTextureVertex",0,c,"PositionNormalVertex",0,l,"Quaternion",()=>h.Quaternion,"RegisterMathColor",()=>i.RegisterMathColor,"RegisterMathVector",()=>h.RegisterMathVector,"Size",()=>a.Size,"Space",()=>e.Space,"TmpColors",()=>i.TmpColors,"TmpVectors",()=>h.TmpVectors,"ToGammaSpace",()=>s.ToGammaSpace,"ToLinearSpace",()=>s.ToLinearSpace,"Vector2",()=>h.Vector2,"Vector3",()=>h.Vector3,"Vector4",()=>h.Vector4,"Viewport",()=>u.Viewport],62566)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95180,t=>{"use strict";class e{constructor(t,e){this.width=t,this.height=e}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let t=0|this.width;return 397*t^this.height}copyFrom(t){this.width=t.width,this.height=t.height}copyFromFloats(t,e){return this.width=t,this.height=e,this}set(t,e){return this.copyFromFloats(t,e)}multiplyByFloats(t,i){return new e(this.width*t,this.height*i)}clone(){return new e(this.width,this.height)}equals(t){return!!t&&this.width===t.width&&this.height===t.height}get surface(){return this.width*this.height}static Zero(){return new e(0,0)}add(t){return new e(this.width+t.width,this.height+t.height)}subtract(t){return new e(this.width-t.width,this.height-t.height)}scale(t){return new e(this.width*t,this.height*t)}static Lerp(t,i,s){return new e(t.width+(i.width-t.width)*s,t.height+(i.height-t.height)*s)}}t.s(["Size",0,e])},38677,t=>{"use strict";var e=t.i(10534);class i{constructor(t,i,s,r){this.normal=new e.Vector3(t,i,s),this.d=r}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let t=this.normal.getHashCode();return 397*t^this.d}normalize(){let t=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),e=0;return 0!==t&&(e=1/t),this.normal.x*=e,this.normal.y*=e,this.normal.z*=e,this.d*=e,this}transform(t){let e=i._TmpMatrix;t.invertToRef(e);let s=e.m,r=this.normal.x,n=this.normal.y,o=this.normal.z,a=this.d;return new i(r*s[0]+n*s[1]+o*s[2]+a*s[3],r*s[4]+n*s[5]+o*s[6]+a*s[7],r*s[8]+n*s[9]+o*s[10]+a*s[11],r*s[12]+n*s[13]+o*s[14]+a*s[15])}dotCoordinate(t){return this.normal.x*t.x+this.normal.y*t.y+this.normal.z*t.z+this.d}copyFromPoints(t,e,i){let s,r=e.x-t.x,n=e.y-t.y,o=e.z-t.z,a=i.x-t.x,h=i.y-t.y,l=i.z-t.z,c=n*l-o*h,u=o*a-r*l,m=r*h-n*a,_=Math.sqrt(c*c+u*u+m*m);return s=0!==_?1/_:0,this.normal.x=c*s,this.normal.y=u*s,this.normal.z=m*s,this.d=-(this.normal.x*t.x+this.normal.y*t.y+this.normal.z*t.z),this}isFrontFacingTo(t,i){return e.Vector3.Dot(this.normal,t)<=i}signedDistanceTo(t){return e.Vector3.Dot(t,this.normal)+this.d}static FromArray(t){return new i(t[0],t[1],t[2],t[3])}static FromPoints(t,e,s){let r=new i(0,0,0,0);return r.copyFromPoints(t,e,s),r}static FromPositionAndNormal(t,e){let s=new i(0,0,0,0);return this.FromPositionAndNormalToRef(t,e,s)}static FromPositionAndNormalToRef(t,e,i){return i.normal.copyFrom(e),i.normal.normalize(),i.d=-t.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(t,i,s){let r=-(i.x*t.x+i.y*t.y+i.z*t.z);return e.Vector3.Dot(s,i)+r}}i._TmpMatrix=e.Matrix.Identity(),t.s(["Plane",0,i])},16475,t=>{"use strict";var e=t.i(38677);class i{static GetPlanes(t){let s=[];for(let t=0;t<6;t++)s.push(new e.Plane(0,0,0,0));return i.GetPlanesToRef(t,s),s}static GetNearPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[2],e.normal.y=i[7]+i[6],e.normal.z=i[11]+i[10],e.d=i[15]+i[14],e.normalize()}static GetFarPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[2],e.normal.y=i[7]-i[6],e.normal.z=i[11]-i[10],e.d=i[15]-i[14],e.normalize()}static GetLeftPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[0],e.normal.y=i[7]+i[4],e.normal.z=i[11]+i[8],e.d=i[15]+i[12],e.normalize()}static GetRightPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[0],e.normal.y=i[7]-i[4],e.normal.z=i[11]-i[8],e.d=i[15]-i[12],e.normalize()}static GetTopPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[1],e.normal.y=i[7]-i[5],e.normal.z=i[11]-i[9],e.d=i[15]-i[13],e.normalize()}static GetBottomPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[1],e.normal.y=i[7]+i[5],e.normal.z=i[11]+i[9],e.d=i[15]+i[13],e.normalize()}static GetPlanesToRef(t,e){i.GetNearPlaneToRef(t,e[0]),i.GetFarPlaneToRef(t,e[1]),i.GetLeftPlaneToRef(t,e[2]),i.GetRightPlaneToRef(t,e[3]),i.GetTopPlaneToRef(t,e[4]),i.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let i=0;i<6;i++)if(0>e[i].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,i])},10952,t=>{"use strict";class e{constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}toGlobal(t,i){return new e(this.x*t,this.y*i,this.width*t,this.height*i)}toGlobalToRef(t,e,i){return i.x=this.x*t,i.y=this.y*e,i.width=this.width*t,i.height=this.height*e,this}clone(){return new e(this.x,this.y,this.width,this.height)}}t.s(["Viewport",0,e])},91095,t=>{"use strict";var e,i,s,r,n=t.i(10534);(e=s||(s={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class o{}o.X=new n.Vector3(1,0,0),o.Y=new n.Vector3(0,1,0),o.Z=new n.Vector3(0,0,1),(i=r||(r={}))[i.X=0]="X",i[i.Y=1]="Y",i[i.Z=2]="Z",t.s(["Axis",0,o,"Coordinate",0,r,"Space",0,s])},42473,t=>{"use strict";var e,i,s=t.i(35270),r=t.i(10534),n=t.i(26722);(e=i||(i={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class o{constructor(t){this._radians=t,this._radians<0&&(this._radians+=2*Math.PI)}degrees(){return 180*this._radians/Math.PI}radians(){return this._radians}static BetweenTwoPoints(t,e){let i=e.subtract(t);return new o(Math.atan2(i.y,i.x))}static BetweenTwoVectors(t,e){let i=t.lengthSquared()*e.lengthSquared();if(0===i)return new o(Math.PI/2);i=Math.sqrt(i);let r=t.dot(e)/i;return new o(Math.acos(r=(0,s.Clamp)(r,-1,1)))}static FromRadians(t){return new o(t)}static FromDegrees(t){return new o(t*Math.PI/180)}}class a{constructor(t,e,i){this.startPoint=t,this.midPoint=e,this.endPoint=i;const s=Math.pow(e.x,2)+Math.pow(e.y,2),n=(Math.pow(t.x,2)+Math.pow(t.y,2)-s)/2,a=(s-Math.pow(i.x,2)-Math.pow(i.y,2))/2,h=(t.x-e.x)*(e.y-i.y)-(e.x-i.x)*(t.y-e.y);this.centerPoint=new r.Vector2((n*(e.y-i.y)-a*(t.y-e.y))/h,((t.x-e.x)*a-(e.x-i.x)*n)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=o.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let c=o.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),u=o.BetweenTwoPoints(this.centerPoint,this.endPoint).degrees();c-l>180&&(c-=360),c-l<-180&&(c+=360),u-c>180&&(u-=360),u-c<-180&&(u+=360),this.orientation=c-l<0?0:1,this.angle=o.FromDegrees(0===this.orientation?l-u:u-l)}}class h{constructor(t,e){this._points=[],this._length=0,this.closed=!1,this._points.push(new r.Vector2(t,e))}addLineTo(t,e){if(this.closed)return this;let i=new r.Vector2(t,e),s=this._points[this._points.length-1];return this._points.push(i),this._length+=i.subtract(s).length(),this}addArcTo(t,e,i,s,n=36){if(this.closed)return this;let o=new a(this._points[this._points.length-1],new r.Vector2(t,e),new r.Vector2(i,s)),h=o.angle.radians()/n;0===o.orientation&&(h*=-1);let l=o.startAngle.radians()+h;for(let t=0;t<n;t++){let t=Math.cos(l)*o.radius+o.centerPoint.x,e=Math.sin(l)*o.radius+o.centerPoint.y;this.addLineTo(t,e),l+=h}return this}addQuadraticCurveTo(t,e,i,s,r=36){if(this.closed)return this;let n=(t,e,i,s)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*s,o=this._points[this._points.length-1];for(let a=0;a<=r;a++){let h=a/r,l=n(h,o.x,t,i),c=n(h,o.y,e,s);this.addLineTo(l,c)}return this}addBezierCurveTo(t,e,i,s,r,n,o=36){if(this.closed)return this;let a=(t,e,i,s,r)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*s+t*t*t*r,h=this._points[this._points.length-1];for(let l=0;l<=o;l++){let c=l/o,u=a(c,h.x,t,i,r),m=a(c,h.y,e,s,n);this.addLineTo(u,m)}return this}isPointInside(t){let e=!1,i=this._points.length;for(let s=i-1,r=0;r<i;s=r++){let i=this._points[s],n=this._points[r],o=n.x-i.x,a=n.y-i.y;if(Math.abs(a)>Number.EPSILON){if(a<0&&(i=this._points[r],o=-o,n=this._points[s],a=-a),t.y<i.y||t.y>n.y)continue;if(t.y===i.y&&t.x===i.x)return!0;{let s=a*(t.x-i.x)-o*(t.y-i.y);if(0===s)return!0;if(s<0)continue;e=!e}}else{if(t.y!==i.y)continue;if(n.x<=t.x&&t.x<=i.x||i.x<=t.x&&t.x<=n.x)return!0}}return e}close(){return this.closed=!0,this}length(){let t=this._length;if(this.closed){let e=this._points[this._points.length-1];t+=this._points[0].subtract(e).length()}return t}area(){let t=this._points.length,e=0;for(let i=t-1,s=0;s<t;i=s++)e+=this._points[i].x*this._points[s].y-this._points[s].x*this._points[i].y;return .5*e}getPoints(){return this._points}getPointAtLengthPosition(t){if(t<0||t>1)return r.Vector2.Zero();let e=t*this.length(),i=0;for(let t=0;t<this._points.length;t++){let s=(t+1)%this._points.length,n=this._points[t],o=this._points[s].subtract(n),a=o.length()+i;if(e>=i&&e<=a){let t=o.normalize(),s=e-i;return new r.Vector2(n.x+t.x*s,n.y+t.y*s)}i=a}return r.Vector2.Zero()}static StartingAt(t,e){return new h(t,e)}}class l{constructor(t,e=null,i,s=!1){this.path=t,this._curve=[],this._distances=[],this._tangents=[],this._normals=[],this._binormals=[],this._pointAtData={id:0,point:r.Vector3.Zero(),previousPointArrayIndex:0,position:0,subPosition:0,interpolateReady:!1,interpolationMatrix:r.Matrix.Identity()};for(let e=0;e<t.length;e++)this._curve[e]=t[e].clone();this._raw=i||!1,this._alignTangentsWithPath=s,this._compute(e,s)}getCurve(){return this._curve}getPoints(){return this._curve}length(){return this._distances[this._distances.length-1]}getTangents(){return this._tangents}getNormals(){return this._normals}getBinormals(){return this._binormals}getDistances(){return this._distances}getPointAt(t){return this._updatePointAtData(t).point}getTangentAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.Forward(),this._pointAtData.interpolationMatrix):this._tangents[this._pointAtData.previousPointArrayIndex]}getNormalAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.Right(),this._pointAtData.interpolationMatrix):this._normals[this._pointAtData.previousPointArrayIndex]}getBinormalAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.UpReadOnly,this._pointAtData.interpolationMatrix):this._binormals[this._pointAtData.previousPointArrayIndex]}getDistanceAt(t){return this.length()*t}getPreviousPointIndexAt(t){return this._updatePointAtData(t),this._pointAtData.previousPointArrayIndex}getSubPositionAt(t){return this._updatePointAtData(t),this._pointAtData.subPosition}getClosestPositionTo(t){let e=Number.MAX_VALUE,i=0;for(let s=0;s<this._curve.length-1;s++){let n=this._curve[s+0],o=this._curve[s+1].subtract(n).normalize(),a=this._distances[s+1]-this._distances[s+0],h=Math.min(Math.max(r.Vector3.Dot(o,t.subtract(n).normalize()),0)*r.Vector3.Distance(n,t)/a,1),l=r.Vector3.Distance(n.add(o.scale(h*a)),t);l<e&&(e=l,i=(this._distances[s+0]+a*h)/this.length())}return i}slice(t=0,e=1){if(t<0&&(t=1- -1*t%1),e<0&&(e=1- -1*e%1),t>e){let i=t;t=e,e=i}let i=this.getCurve(),s=this.getPointAt(t),r=this.getPreviousPointIndexAt(t),n=this.getPointAt(e),o=this.getPreviousPointIndexAt(e)+1,a=[];return 0!==t&&(r++,a.push(s)),a.push(...i.slice(r,o)),(1!==e||1===t)&&a.push(n),new l(a,this.getNormalAt(t),this._raw,this._alignTangentsWithPath)}update(t,e=null,i=!1){for(let e=0;e<t.length;e++)this._curve[e].x=t[e].x,this._curve[e].y=t[e].y,this._curve[e].z=t[e].z;return this._compute(e,i),this}_compute(t,e=!1){let i,s,n,o,a,h=this._curve.length;if(h<2)return;this._tangents[0]=this._getFirstNonNullVector(0),this._raw||this._tangents[0].normalize(),this._tangents[h-1]=this._curve[h-1].subtract(this._curve[h-2]),this._raw||this._tangents[h-1].normalize();let l=this._tangents[0],c=this._normalVector(l,t);this._normals[0]=c,this._raw||this._normals[0].normalize(),this._binormals[0]=r.Vector3.Cross(l,this._normals[0]),this._raw||this._binormals[0].normalize(),this._distances[0]=0;for(let t=1;t<h;t++)i=this._getLastNonNullVector(t),t<h-1&&(s=this._getFirstNonNullVector(t),this._tangents[t]=e?s:i.add(s),this._tangents[t].normalize()),this._distances[t]=this._distances[t-1]+this._curve[t].subtract(this._curve[t-1]).length(),n=this._tangents[t],a=this._binormals[t-1],this._normals[t]=r.Vector3.Cross(a,n),this._raw||(0===this._normals[t].length()?(o=this._normals[t-1],this._normals[t]=o.clone()):this._normals[t].normalize()),this._binormals[t]=r.Vector3.Cross(n,this._normals[t]),this._raw||this._binormals[t].normalize();this._pointAtData.id=NaN}_getFirstNonNullVector(t){let e=1,i=this._curve[t+e].subtract(this._curve[t]);for(;0===i.length()&&t+e+1<this._curve.length;)e++,i=this._curve[t+e].subtract(this._curve[t]);return i}_getLastNonNullVector(t){let e=1,i=this._curve[t].subtract(this._curve[t-e]);for(;0===i.length()&&t>e+1;)e++,i=this._curve[t].subtract(this._curve[t-e]);return i}_normalVector(t,e){let i,o=t.length();if(0===o&&(o=1),null==e){let e;e=(0,s.WithinEpsilon)(Math.abs(t.y)/o,1,n.Epsilon)?(0,s.WithinEpsilon)(Math.abs(t.x)/o,1,n.Epsilon)?(0,s.WithinEpsilon)(Math.abs(t.z)/o,1,n.Epsilon)?r.Vector3.Zero():new r.Vector3(0,0,1):new r.Vector3(1,0,0):new r.Vector3(0,-1,0),i=r.Vector3.Cross(t,e)}else i=r.Vector3.Cross(t,e),r.Vector3.CrossToRef(i,t,i);return i.normalize(),i}_updatePointAtData(t,e=!1){let i;if(this._pointAtData.id===t)return this._pointAtData.interpolateReady||this._updateInterpolationMatrix(),this._pointAtData;this._pointAtData.id=t;let s=this.getPoints();if(t<=0)return this._setPointAtData(0,0,s[0],0,e);if(t>=1)return this._setPointAtData(1,1,s[s.length-1],s.length-1,e);let n=s[0],o=0,a=t*this.length();for(let h=1;h<s.length;h++){i=s[h];let l=r.Vector3.Distance(n,i);if((o+=l)===a)return this._setPointAtData(t,1,i,h,e);if(o>a){let s=(o-a)/l,r=n.subtract(i),c=i.add(r.scaleInPlace(s));return this._setPointAtData(t,1-s,c,h-1,e)}n=i}return this._pointAtData}_setPointAtData(t,e,i,s,r){return this._pointAtData.point=i,this._pointAtData.position=t,this._pointAtData.subPosition=e,this._pointAtData.previousPointArrayIndex=s,this._pointAtData.interpolateReady=r,r&&this._updateInterpolationMatrix(),this._pointAtData}_updateInterpolationMatrix(){this._pointAtData.interpolationMatrix=r.Matrix.Identity();let t=this._pointAtData.previousPointArrayIndex;if(t!==this._tangents.length-1){let e=t+1,i=this._tangents[t].clone(),s=this._normals[t].clone(),n=this._binormals[t].clone(),o=this._tangents[e].clone(),a=this._normals[e].clone(),h=this._binormals[e].clone(),l=r.Quaternion.RotationQuaternionFromAxis(s,n,i),c=r.Quaternion.RotationQuaternionFromAxis(a,h,o);r.Quaternion.Slerp(l,c,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}class c{static CreateQuadraticBezier(t,e,i,s){s=s>2?s:3;let n=[],o=(t,e,i,s)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*s;for(let a=0;a<=s;a++)n.push(new r.Vector3(o(a/s,t.x,e.x,i.x),o(a/s,t.y,e.y,i.y),o(a/s,t.z,e.z,i.z)));return new c(n)}static CreateCubicBezier(t,e,i,s,n){n=n>3?n:4;let o=[],a=(t,e,i,s,r)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*s+t*t*t*r;for(let h=0;h<=n;h++)o.push(new r.Vector3(a(h/n,t.x,e.x,i.x,s.x),a(h/n,t.y,e.y,i.y,s.y),a(h/n,t.z,e.z,i.z,s.z)));return new c(o)}static CreateHermiteSpline(t,e,i,s,n){let o=[],a=1/n;for(let h=0;h<=n;h++)o.push(r.Vector3.Hermite(t,e,i,s,h*a));return new c(o)}static CreateCatmullRomSpline(t,e,i){let s=[],n=1/e,o=0;if(i){let i=t.length;for(let a=0;a<i;a++){o=0;for(let h=0;h<e;h++)s.push(r.Vector3.CatmullRom(t[a%i],t[(a+1)%i],t[(a+2)%i],t[(a+3)%i],o)),o+=n}s.push(s[0])}else{let i=[];i.push(t[0].clone()),i.push(...t),i.push(t[t.length-1].clone());let a=0;for(;a<i.length-3;a++){o=0;for(let t=0;t<e;t++)s.push(r.Vector3.CatmullRom(i[a],i[a+1],i[a+2],i[a+3],o)),o+=n}a--,s.push(r.Vector3.CatmullRom(i[a],i[a+1],i[a+2],i[a+3],o))}return new c(s)}static ArcThru3Points(t,e,i,s=32,n=!1,o=!1){let a=[],h=e.subtract(t),l=i.subtract(e),u=t.subtract(i),m=r.Vector3.Cross(h,l),_=m.length();if(_<1e-8)return new c(a);let p=h.lengthSquared(),d=l.lengthSquared(),g=u.lengthSquared(),P=m.lengthSquared(),x=.5*h.length()*l.length()*u.length()/_,w=r.Vector3.Dot(h,u),y=r.Vector3.Dot(h,l),A=r.Vector3.Dot(l,u),f=t.scale(-.5*d*w/P).add(e.scale(-.5*g*y/P)).add(i.scale(-.5*p*A/P)),V=t.subtract(f).normalize(),z=r.Vector3.Cross(m,V).normalize();if(o){let e=2*Math.PI/s;for(let t=0;t<=2*Math.PI;t+=e)a.push(f.add(V.scale(x*Math.cos(t)).add(z.scale(x*Math.sin(t)))));a.push(t)}else{let e,r=1/s,o=0;do e=f.add(V.scale(x*Math.cos(o)).add(z.scale(x*Math.sin(o)))),a.push(e),o+=r;while(!e.equalsWithEpsilon(i,x*r*1.1))a.push(i),n&&a.push(t)}return new c(a)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(t){let e=this._points[this._points.length-1],i=this._points.slice(),s=t.getPoints();for(let t=1;t<s.length;t++)i.push(s[t].subtract(s[0]).add(e));return new c(i)}_computeLength(t){let e=0;for(let i=1;i<t.length;i++)e+=t[i].subtract(t[i-1]).length();return e}}t.s(["Angle",0,o,"Arc2",0,a,"BezierCurve",0,class{static Interpolate(t,e,i,s,r){if(0===t)return 0;let n=1-3*s+3*e,o=3*s-6*e,a=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,i=e*h*n+o*e+a*h,s=1/(3*n*e+2*o*h+a);h-=(i-t)*s,h=Math.min(1,Math.max(0,h))}return 3*Math.pow(1-h,2)*h*i+3*(1-h)*Math.pow(h,2)*r+Math.pow(h,3)}},"Curve3",0,c,"Orientation",0,i,"Path2",0,h,"Path3D",0,l])},23235,t=>{"use strict";t.s([],13413),t.i(13413);var e=t.i(91095),i=t.i(75053),s=t.i(26722),r=t.i(16475),n=t.i(42473),o=t.i(38677),a=t.i(95180),h=t.i(10534);class l{constructor(t=h.Vector3.Zero(),e=h.Vector3.Up()){this.position=t,this.normal=e}clone(){return new l(this.position.clone(),this.normal.clone())}}class c{constructor(t=h.Vector3.Zero(),e=h.Vector3.Up(),i=h.Vector2.Zero()){this.position=t,this.normal=e,this.uv=i}clone(){return new c(this.position.clone(),this.normal.clone(),this.uv.clone())}}t.s(["PositionNormalTextureVertex",0,c,"PositionNormalVertex",0,l],84620),t.i(84620);var u=t.i(10952);t.s(["Angle",()=>n.Angle,"Arc2",()=>n.Arc2,"Axis",()=>e.Axis,"BezierCurve",()=>n.BezierCurve,"Color3",()=>i.Color3,"Color4",()=>i.Color4,"Coordinate",()=>e.Coordinate,"Curve3",()=>n.Curve3,"Epsilon",()=>s.Epsilon,"Frustum",()=>r.Frustum,"Matrix",()=>h.Matrix,"Orientation",()=>n.Orientation,"PHI",()=>s.PHI,"Path2",()=>n.Path2,"Path3D",()=>n.Path3D,"Plane",()=>o.Plane,"PositionNormalTextureVertex",0,c,"PositionNormalVertex",0,l,"Quaternion",()=>h.Quaternion,"RegisterMathColor",()=>i.RegisterMathColor,"RegisterMathVector",()=>h.RegisterMathVector,"Size",()=>a.Size,"Space",()=>e.Space,"TmpColors",()=>i.TmpColors,"TmpVectors",()=>h.TmpVectors,"ToGammaSpace",()=>s.ToGammaSpace,"ToLinearSpace",()=>s.ToLinearSpace,"Vector2",()=>h.Vector2,"Vector3",()=>h.Vector3,"Vector4",()=>h.Vector4,"Viewport",()=>u.Viewport],23235)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31507,e=>{"use strict";var r=e.i(12423);let o="lodCubePixelShader",t=`precision highp float;const float GammaEncodePowerApprox=1.0/2.2;varying vec2 vUV;uniform samplerCube textureSampler;uniform float lod;uniform int gamma;void main(void)
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78529,e=>{"use strict";var r=e.i(1719);let o="lodCubePixelShader",t=`precision highp float;const float GammaEncodePowerApprox=1.0/2.2;varying vec2 vUV;uniform samplerCube textureSampler;uniform float lod;uniform int gamma;void main(void)
2
2
  {vec2 uv=vUV*2.0-1.0;
3
3
  #ifdef POSITIVEX
4
4
  gl_FragColor=textureCube(textureSampler,vec3(1.001,uv.y,uv.x),lod);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83464,e=>{"use strict";class t{static _CheckLimit(e,r){let s=t._LogLimitOutputs[e];return s?s.current++:(s={limit:r,current:1},t._LogLimitOutputs[e]=s),s.current<=s.limit}static _GenerateLimitMessage(e,r=1){let s=t._LogLimitOutputs[e];if(!s||!t.MessageLimitReached)return;let a=this._Levels[r];s.current===s.limit&&t[a.name](t.MessageLimitReached.replace(/%LIMIT%/g,""+s.limit).replace(/%TYPE%/g,a.name??""))}static _AddLogEntry(e){t._LogCache=e+t._LogCache,t.OnNewCacheEntry&&t.OnNewCacheEntry(e)}static _FormatMessage(e){let t=e=>e<10?"0"+e:""+e,r=new Date;return"["+t(r.getHours())+":"+t(r.getMinutes())+":"+t(r.getSeconds())+"]: "+e}static _LogDisabled(e,t){}static _LogEnabled(e=1,r,s){let a=Array.isArray(r)?r[0]:r;if(void 0!==s&&!t._CheckLimit(a,s))return;let n=t._FormatMessage(a),o=this._Levels[e],i=Array.isArray(r)?r.slice(1):[];o.logFunc&&o.logFunc("BJS - "+n,...i);let l=`<div style='color:${o.color}'>${n}</div><br>`;t._AddLogEntry(l),t._GenerateLimitMessage(a,e)}static get LogCache(){return t._LogCache}static ClearLogCache(){t._LogCache="",t._LogLimitOutputs={},t.errorsCount=0}static set LogLevels(e){for(let r of(t.Log=t._LogDisabled,t.Warn=t._LogDisabled,t.Error=t._LogDisabled,[t.MessageLogLevel,t.WarningLogLevel,t.ErrorLogLevel]))(e&r)===r&&(t[this._Levels[r].name]=t._LogEnabled.bind(t,r))}}t.NoneLogLevel=0,t.MessageLogLevel=1,t.WarningLogLevel=2,t.ErrorLogLevel=4,t.AllLogLevel=7,t.MessageLimitReached="Too many %TYPE%s (%LIMIT%), no more %TYPE%s will be reported for this message.",t._LogCache="",t._LogLimitOutputs={},t._Levels=[{},{color:"white",logFunc:console.log,name:"Log"},{color:"orange",logFunc:console.warn,name:"Warn"},{},{color:"red",logFunc:console.error,name:"Error"}],t.errorsCount=0,t.Log=t._LogEnabled.bind(t,t.MessageLogLevel),t.Warn=t._LogEnabled.bind(t,t.WarningLogLevel),t.Error=t._LogEnabled.bind(t,t.ErrorLogLevel),e.s(["Logger",0,t])},53477,e=>{"use strict";e.s(["RandomGUID",0,function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}])},75865,e=>{"use strict";e.s(["GetDOMTextContent",0,function(e){let t="",r=e.firstChild;for(;r;)3===r.nodeType&&(t+=r.textContent),r=r.nextSibling;return t},"IsDocumentAvailable",0,function(){return"u">typeof document},"IsNavigatorAvailable",0,function(){return"u">typeof navigator},"IsWindowObjectExist",0,function(){return"u">typeof window}])},72491,e=>{"use strict";class t{constructor(){this._xhr="u">typeof _native&&_native.XMLHttpRequest?new _native.XMLHttpRequest:new XMLHttpRequest,this._requestURL=""}static get IsCustomRequestAvailable(){return Object.keys(t.CustomRequestHeaders).length>0||t.CustomRequestModifiers.length>0}static _CleanUrl(e){return e=(e=e.replace("file:http:","http:")).replace("file:https:","https:")}static _ShouldSkipRequestModifications(e){return t.SkipRequestModificationForBabylonCDN&&(e.includes("preview.babylonjs.com")||e.includes("cdn.babylonjs.com"))}static _CollectCustomizations(e,r={}){let s={...r};if(t._ShouldSkipRequestModifications(e))return{url:e,headers:s};for(let e in t.CustomRequestHeaders){let r=t.CustomRequestHeaders[e];r&&(s[e]=r)}let a={setRequestHeader:(e,t)=>{s[e]=t}};for(let r of t.CustomRequestModifiers){if(t._ShouldSkipRequestModifications(e))break;let s=r(a,e);"string"==typeof s&&(e=s)}return{url:e,headers:s}}static async FetchAsync(e,r={}){let s=r.method??"GET";if("u">typeof fetch){let{url:a,headers:n}=t._CollectCustomizations(t._CleanUrl(e),r.headers??{});return await fetch(a,{method:s,headers:n,body:r.body??void 0})}return await new Promise((a,n)=>{let o=new t;o.responseType="arraybuffer",o.addEventListener("readystatechange",()=>{if(4===o.readyState)if(o.status>=200&&o.status<300){let e="u">typeof Headers?new Headers:void 0,t=o.getResponseHeader("Content-Type");t&&e&&e.set("Content-Type",t),"u">typeof Response?a(new Response(o.response,{status:o.status,statusText:o.statusText,headers:e})):a({ok:!0,status:o.status,statusText:o.statusText,headers:{get:e=>o.getResponseHeader(e)},arrayBuffer:async()=>await Promise.resolve(o.response)})}else n(Error(`HTTP ${o.status} loading '${o.requestURL}': ${o.statusText}`))}),o.open(s,e,r.headers),o.send(r.body??null)})}get requestURL(){return this._requestURL}get onprogress(){return this._xhr.onprogress}set onprogress(e){this._xhr.onprogress=e}get readyState(){return this._xhr.readyState}get status(){return this._xhr.status}get statusText(){return this._xhr.statusText}get response(){return this._xhr.response}get responseURL(){return this._xhr.responseURL}get responseText(){return this._xhr.responseText}get responseType(){return this._xhr.responseType}set responseType(e){this._xhr.responseType=e}get timeout(){return this._xhr.timeout}set timeout(e){this._xhr.timeout=e}addEventListener(e,t,r){this._xhr.addEventListener(e,t,r)}removeEventListener(e,t,r){this._xhr.removeEventListener(e,t,r)}abort(){this._xhr.abort()}send(e){this._xhr.send(e)}open(e,r,s){let{url:a,headers:n}=t._CollectCustomizations(r,s);for(let r in this._requestURL=t._CleanUrl(a),this._xhr.open(e,this._requestURL,!0),n)this._xhr.setRequestHeader(r,n[r])}setRequestHeader(e,t){this._xhr.setRequestHeader(e,t)}getResponseHeader(e){return this._xhr.getResponseHeader(e)}}t.CustomRequestHeaders={},t.CustomRequestModifiers=[],t.SkipRequestModificationForBabylonCDN=!0,e.s(["WebRequest",0,t])},37890,e=>{"use strict";let t=null;function r(){if(t)return t;let e=new ArrayBuffer(4),r=new Float32Array(e),s=new Uint32Array(e),a=new Uint32Array(512),n=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-24?(a[e]=0,a[256|e]=32768,n[e]=24,n[256|e]=24):t<-14?(a[e]=1024>>-t-14,a[256|e]=1024>>-t-14|32768,n[e]=-t-1,n[256|e]=-t-1):t<=15?(a[e]=t+15<<10,a[256|e]=t+15<<10|32768,n[e]=13,n[256|e]=13):t<128?(a[e]=31744,a[256|e]=64512,n[e]=24,n[256|e]=24):(a[e]=31744,a[256|e]=64512,n[e]=13,n[256|e]=13)}let o=new Uint32Array(2048),i=new Uint32Array(64),l=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,r=0;for(;(8388608&t)==0;)t<<=1,r-=8388608;t&=-8388609,r+=0x38800000,o[e]=t|r}for(let e=1024;e<2048;++e)o[e]=0x38000000+(e-1024<<13);for(let e=1;e<31;++e)i[e]=e<<23;i[31]=0x47800000,i[32]=0x80000000;for(let e=33;e<63;++e)i[e]=0x80000000+(e-32<<23);i[63]=0xc7800000;for(let e=1;e<64;++e)32!==e&&(l[e]=1024);return t={floatView:r,uint32View:s,baseTable:a,shiftTable:n,mantissaTable:o,exponentTable:i,offsetTable:l}}e.s(["FromHalfFloat",0,function(e){let t=r();return t.uint32View[0]=t.mantissaTable[t.offsetTable[e>>10]+(1023&e)]+t.exponentTable[e>>10],t.floatView[0]},"MaxHalfFloat",0,65504,"ToHalfFloat",0,function(e){let t=r();t.floatView[0]=e;let s=t.uint32View[0],a=s>>23&511;return t.baseTable[a]+((8388607&s)>>t.shiftTable[a])}])},59767,25440,65771,e=>{"use strict";class t{}t.FilesToLoad={},e.s(["FilesInputStore",0,t],59767),e.s(["RetryStrategy",0,class{static ExponentialBackoff(e=3,t=500){return(r,s,a)=>0!==s.status||a>=e||-1!==r.indexOf("file:")?-1:Math.pow(2,a)*t}}],25440);class r extends Error{}r._setPrototypeOf=Object.setPrototypeOf||((e,t)=>(e.__proto__=t,e));class s extends r{constructor(e,t,a){super(e),this.errorCode=t,this.innerError=a,this.name="RuntimeError",r._setPrototypeOf(this,s.prototype)}}e.s(["BaseError",0,r,"ErrorCodes",0,{MeshInvalidPositionsError:0,UnsupportedTextureError:1e3,GLTFLoaderUnexpectedMagicError:2e3,SceneLoaderError:3e3,LoadFileError:4e3,RequestFileError:4001,ReadFileError:4002},"RuntimeError",0,s],65771)},61023,e=>{"use strict";let t=e=>atob(e);e.s(["Decode",0,e=>{if("u">typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let r=0;r<e.byteLength;r++)t+=String.fromCharCode(e[r]);return t},"DecodeBase64ToBinary",0,e=>"function"==typeof Uint8Array.fromBase64?Uint8Array.fromBase64(e).buffer:function(e){let r=t(e),s=r.length,a=new Uint8Array(new ArrayBuffer(s));for(let e=0;e<s;e++)a[e]=r.charCodeAt(e);return a.buffer}(e),"DecodeBase64ToString",0,t,"EncodeArrayBufferToBase64",0,e=>{let t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e);return"function"==typeof t.toBase64?t.toBase64():function(e){let t,r,s,a,n,o,i,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(;c<e.length;)t=e[c++],r=c<e.length?e[c++]:NaN,s=c<e.length?e[c++]:NaN,a=t>>2,n=(3&t)<<4|r>>4,o=(15&r)<<2|s>>6,i=63&s,isNaN(r)?o=i=64:isNaN(s)&&(i=64),u+=l.charAt(a)+l.charAt(n)+l.charAt(o)+l.charAt(i);return u}(t)}])},4775,e=>{"use strict";let t=[];function r(e,t,r){try{if(e())return t(),!0}catch(e){return r?.(e),!0}return!1}e.s(["TimingTools",0,class{static SetImmediate(e){0===t.length&&setTimeout(()=>{let e=t;for(let r of(t=[],e))r()},1),t.push(e)}},"_RetryWithInterval",0,(e,t,s,a=16,n=3e4,o=!0,i)=>{if(o&&r(e,t,s))return null;let l=setInterval(()=>{r(e,t,s)?clearInterval(l):(n-=a)<0&&(clearInterval(l),s?.(Error("Operation timed out after maximum retries. "+(i||"")),!0))},a);return()=>clearInterval(l)}])},5512,e=>{"use strict";var t=e.i(83464),r=e.i(37890);function s(e){switch(e){case 5120:case 5121:return 1;case 5122:case 5123:case 5131:return 2;case 5124:case 5125:case 5126:return 4;default:throw Error(`Invalid type '${e}'`)}}function a(e){switch(e){case 5120:return Int8Array;case 5121:return Uint8Array;case 5122:return Int16Array;case 5123:case 5131:return Uint16Array;case 5124:return Int32Array;case 5125:return Uint32Array;case 5126:return Float32Array;default:throw Error(`Invalid component type '${e}'`)}}function n(e,t,a,n,o,i,l,u){let c=Array(n),f=Array(n);if(e instanceof Array){let r=t/4,s=a/4;for(let t=0;t<i;t+=n){for(let t=0;t<n;t++)c[t]=f[t]=e[r+t];u(f,t);for(let t=0;t<n;t++)c[t]!==f[t]&&(e[r+t]=f[t]);r+=s}}else{let d=ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e),g=s(o);for(let e=0;e<i;e+=n){for(let e=0,s=t;e<n;e++,s+=g)c[e]=f[e]=function(e,t,s,a){switch(t){case 5120:{let t=e.getInt8(s);return a&&(t=Math.max(t/127,-1)),t}case 5121:{let t=e.getUint8(s);return a&&(t/=255),t}case 5122:{let t=e.getInt16(s,!0);return a&&(t=Math.max(t/32767,-1)),t}case 5123:{let t=e.getUint16(s,!0);return a&&(t/=65535),t}case 5131:return(0,r.FromHalfFloat)(e.getUint16(s,!0));case 5124:return e.getInt32(s,!0);case 5125:return e.getUint32(s,!0);case 5126:return e.getFloat32(s,!0);default:throw Error(`Invalid component type ${t}`)}}(d,o,s,l);u(f,e);for(let e=0,s=t;e<n;e++,s+=g)c[e]!==f[e]&&function(e,t,s,a,n){switch(t){case 5120:a&&(n=Math.round(127*n)),e.setInt8(s,n);break;case 5121:a&&(n=Math.round(255*n)),e.setUint8(s,n);break;case 5122:a&&(n=Math.round(32767*n)),e.setInt16(s,n,!0);break;case 5123:a&&(n=Math.round(65535*n)),e.setUint16(s,n,!0);break;case 5131:e.setUint16(s,(0,r.ToHalfFloat)(n),!0);break;case 5124:e.setInt32(s,n,!0);break;case 5125:e.setUint32(s,n,!0);break;case 5126:e.setFloat32(s,n,!0);break;default:throw Error(`Invalid component type ${t}`)}}(d,o,s,l,f[e]);t+=a}}}e.s(["CopyFloatData",0,function(e,r,a,o,i,l,u,c){let f=r*s(a),d=u*r;if(c.length!==d)throw Error("Output length is not valid");if(5126!==a||i!==f)return void n(e,o,i,r,a,d,l,(e,t)=>{for(let s=0;s<r;s++)c[t+s]=e[s]});if(e instanceof Array){let t=o/4;c.set(e,t)}else if(ArrayBuffer.isView(e)){let r=e.byteOffset+o;if((3&r)!=0){t.Logger.Warn("Float array must be aligned to 4-bytes border"),c.set(new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)));return}let s=new Float32Array(e.buffer,r,d);c.set(s)}else{let t=new Float32Array(e,o,d);c.set(t)}},"EnumerateFloatValues",0,n,"GetBlobBufferSource",0,function(e){let t=e.buffer;if(t instanceof ArrayBuffer)return e;let r=new ArrayBuffer(e.byteLength);return new Uint8Array(r).set(new Uint8Array(t,e.byteOffset,e.byteLength)),r},"GetFloatData",0,function(e,r,a,o,i,l,u,c){let f=r*s(a),d=u*r;if(5126!==a||i!==f){let t=new Float32Array(d);return n(e,o,i,r,a,d,l,(e,s)=>{for(let a=0;a<r;a++)t[s+a]=e[a]}),t}if(!(e instanceof Array||e instanceof Float32Array)||0!==o||e.length!==d)if(e instanceof Array){let t=o/4;return e.slice(t,t+d)}else{if(!ArrayBuffer.isView(e))return new Float32Array(e,o,d);let r=e.byteOffset+o;return((3&r)!=0&&(t.Logger.Warn("Float array must be aligned to 4-bytes border"),c=!0),c)?new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)):new Float32Array(e.buffer,r,d)}return c?e.slice():e},"GetTypeByteLength",0,s,"GetTypedArrayConstructor",0,a,"GetTypedArrayData",0,function(e,r,o,i,l,u,c){let f,d=s(o),g=a(o),p=u*r;if(Array.isArray(e)){if((3&i)!=0||(3&l)!=0)throw Error("byteOffset and byteStride must be a multiple of 4 for number[] data.");let t=i/4,s=l/4;if(t+(u-1)*s+r>e.length)throw Error("Last accessed index is out of bounds.");if(s<r)throw Error("Data stride cannot be smaller than the component size.");if(s!==r){let t=new g(p);return n(e,i,l,r,o,p,!1,(e,s)=>{for(let a=0;a<r;a++)t[s+a]=e[a]}),t}return new g(e.slice(t,t+p))}let y=i;if(ArrayBuffer.isView(e)?(f=e.buffer,y+=e.byteOffset):f=e,y+(u-1)*l+r*d>f.byteLength)throw Error("Last accessed byte is out of bounds.");let h=r*d;if(l<h)throw Error("Byte stride cannot be smaller than the component's byte size.");if(l!==h){let e=new g(p),t=new Uint8Array(f,y),s=new Uint8Array(e.buffer),a=r*d;for(let e=0,r=0,n=0;e<u;e++,r+=l,n+=a)s.set(t.subarray(r,r+a),n);return e}return(1!==d&&(y&d-1)!=0&&(t.Logger.Warn("Array must be aligned to border of element size. Data will be copied."),c=!0),c)?new g(f.slice(y,y+p*d)):new g(f,y,p)}])},25746,e=>{"use strict";var t=e.i(72491),r=e.i(75865),s=e.i(57554),a=e.i(59767),n=e.i(25440),o=e.i(65771),i=e.i(61023),l=e.i(47867),u=e.i(83464),c=e.i(4775),f=e.i(5512);let d=new RegExp(/^data:([^,]+\/[^,]+)?;base64,/i);class g extends o.RuntimeError{constructor(e,r){super(e,o.ErrorCodes.LoadFileError),this.name="LoadFileError",o.BaseError._setPrototypeOf(this,g.prototype),r instanceof t.WebRequest?this.request=r:this.file=r}}class p extends o.RuntimeError{constructor(e,t){super(e,o.ErrorCodes.RequestFileError),this.request=t,this.name="RequestFileError",o.BaseError._setPrototypeOf(this,p.prototype)}}class y extends o.RuntimeError{constructor(e,t){super(e,o.ErrorCodes.ReadFileError),this.file=t,this.name="ReadFileError",o.BaseError._setPrototypeOf(this,y.prototype)}}let h={DefaultRetryStrategy:n.RetryStrategy.ExponentialBackoff(),BaseUrl:"",CorsBehavior:"anonymous",PreprocessUrl:e=>e,ScriptBaseUrl:"",ScriptPreprocessUrl:e=>e,CleanUrl:e=>e=e.replace(/#/gm,"%23")},b=(e,t)=>{if((!e||0!==e.indexOf("data:"))&&h.CorsBehavior)if("string"==typeof h.CorsBehavior||h.CorsBehavior instanceof String)t.crossOrigin=h.CorsBehavior;else{let r=h.CorsBehavior(e);r&&(t.crossOrigin=r)}},m=(e,t,r,a,n)=>{let o=new FileReader,i={onCompleteObservable:new s.Observable,abort:()=>o.abort()};return o.onloadend=()=>i.onCompleteObservable.notifyObservers(i),n&&(o.onerror=()=>{n(new y(`Unable to read ${e.name}`,e))}),o.onload=e=>{t(e.target.result)},r&&(o.onprogress=r),a?o.readAsArrayBuffer(e):o.readAsText(e),i},L=(e,t,r,n,o,i,l)=>{if(e.name)return m(e,t,r,o,i?e=>{i(void 0,e)}:void 0);if(-1!==e.indexOf("file:")){let s=decodeURIComponent(e.substring(5).toLowerCase());0===s.indexOf("./")&&(s=s.substring(2));let n=a.FilesInputStore.FilesToLoad[s];if(n)return m(n,t,r,o,i?e=>i(void 0,new g(e.message,e.file)):void 0)}let{match:f,type:d}=T(e);if(f){let r={onCompleteObservable:new s.Observable,abort:()=>()=>{}};try{let r=o?x(e):_(e);t(r,void 0,d)}catch(e){i?i(void 0,e):u.Logger.Error(e.message||"Failed to parse the Data URL")}return c.TimingTools.SetImmediate(()=>{r.onCompleteObservable.notifyObservers(r)}),r}return v(e,(e,r)=>{t(e,r?.responseURL,r?.getResponseHeader("content-type"))},r,n,o,i?e=>{i(e.request,new g(e.message,e.request))}:void 0,l)},v=(e,a,n,o,i,c,f)=>{null!==o&&(o??(o=l.EngineStore.LastCreatedScene?.offlineProvider)),e=h.CleanUrl(e),e=h.PreprocessUrl(e);let d=h.BaseUrl+e,g=!1,y={onCompleteObservable:new s.Observable,abort:()=>g=!0},b=()=>{let e,s=new t.WebRequest,o=null,l=()=>{s&&(n&&s.removeEventListener("progress",n),e&&s.removeEventListener("readystatechange",e),s.removeEventListener("loadend",b))},b=()=>{l(),y.onCompleteObservable.notifyObservers(y),y.onCompleteObservable.clear(),n=void 0,e=null,b=null,c=void 0,f=void 0,a=void 0};y.abort=()=>{g=!0,b&&b(),s&&s.readyState!==(XMLHttpRequest.DONE||4)&&s.abort(),null!==o&&(clearTimeout(o),o=null),s=null};let m=e=>{let t=e.message||"Unknown error";c&&s?c(new p(t,s)):u.Logger.Error(t)},L=u=>{if(s){if(s.open("GET",d),f)try{f(s)}catch(e){m(e);return}i&&(s.responseType="arraybuffer"),n&&s.addEventListener("progress",n),b&&s.addEventListener("loadend",b),e=()=>{if(!g&&s&&s.readyState===(XMLHttpRequest.DONE||4)){if(e&&s.removeEventListener("readystatechange",e),s.status>=200&&s.status<300||0===s.status&&(!(0,r.IsWindowObjectExist)()||w())){let e=i?s.response:s.responseText;if(null!==e){try{a&&a(e,s)}catch(e){m(e)}return}}let n=h.DefaultRetryStrategy;if(n){let e=n(d,s,u);if(-1!==e){l(),s=new t.WebRequest,o=setTimeout(()=>L(u+1),e);return}}let f=new p("Error status: "+s.status+" "+s.statusText+" - Unable to load "+d,s);c&&c(f)}},s.addEventListener("readystatechange",e),s.send()}};L(0)};if(o&&o.enableSceneOffline&&!e.startsWith("blob:")){let t=e=>{e&&e.status>400?c&&c(e):b()};o.open(()=>{o&&o.loadFile(h.BaseUrl+e,e=>{!g&&a&&a(e),y.onCompleteObservable.notifyObservers(y)},n?e=>{!g&&n&&n(e)}:void 0,t,i)},t)}else b();return y},w=()=>"u">typeof location&&"file:"===location.protocol,T=e=>{let t=d.exec(e);return null===t||0===t.length?{match:!1,type:""}:{match:!0,type:t[0].replace("data:","").replace(";base64,","")}};function x(e){return(0,i.DecodeBase64ToBinary)(e.split(",")[1])}let _=e=>(0,i.DecodeBase64ToString)(e.split(",")[1]);e.s(["DecodeBase64UrlToBinary",0,x,"FileToolsOptions",0,h,"GetMimeType",0,e=>{let{match:t,type:r}=T(e);if(t)return r||void 0;let s=e.lastIndexOf(".");switch(e.substring(s+1).toLowerCase()){case"glb":return"model/gltf-binary";case"bin":return"application/octet-stream";case"gltf":return"model/gltf+json";case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"webp":return"image/webp";case"ktx":return"image/ktx";case"ktx2":return"image/ktx2";case"avif":return"image/avif";default:return}},"IsBase64DataUrl",0,e=>d.test(e),"LoadFile",0,L,"LoadFileError",0,g,"LoadImage",0,(e,r,s,n,o="",u,c=l.EngineStore.LastCreatedEngine)=>{let d;if("u"<typeof HTMLImageElement&&!c?._features.forceBitmapOverHTMLImageElement)return s("LoadImage is only supported in web or BabylonNative environments."),null;let g=!1;if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))if("u">typeof Blob&&"u">typeof URL){let t;t=e instanceof ArrayBuffer?e:(0,f.GetBlobBufferSource)(e),d=URL.createObjectURL(new Blob([t],{type:o})),g=!0}else d=`data:${o};base64,`+(0,i.EncodeArrayBufferToBase64)(e);else e instanceof Blob?(d=URL.createObjectURL(e),g=!0):(d=h.CleanUrl(e),d=h.PreprocessUrl(d));let p=t=>{if(s){let r=d||e.toString();s(`Error while trying to load image: ${0===r.indexOf("http")||r.length<=128?r:r.slice(0,128)+"..."}`,t)}};if(c?._features.forceBitmapOverHTMLImageElement)return L(d,t=>{c.createImageBitmap(new Blob([t],{type:o}),{premultiplyAlpha:"none",colorSpaceConversion:"none",...u}).then(e=>{r(e),g&&URL.revokeObjectURL(d)}).catch(t=>{s&&s("Error while trying to load image: "+e,t)})},void 0,n||void 0,!0,(e,t)=>{p(t)}),null;let y=new Image;!1;b(d,y);let m=[],v=()=>{for(let e of m)e.target.removeEventListener(e.name,e.handler);m.length=0};for(let e of(m.push({target:y,name:"load",handler:()=>{v(),r(y),g&&y.src&&URL.revokeObjectURL(y.src)}}),m.push({target:y,name:"error",handler:e=>{v(),p(e),g&&y.src&&URL.revokeObjectURL(y.src)}}),m.push({target:document,name:"securitypolicyviolation",handler:e=>{if(e.blockedURI!==y.src||"report"===e.disposition)return;v();let t=Error(`CSP violation of policy ${e.effectiveDirective} ${e.blockedURI}. Current policy is ${e.originalPolicy}`);l.EngineStore.UseFallbackTexture=!1,p(t),g&&y.src&&URL.revokeObjectURL(y.src),y.src=""}}),m))e.target.addEventListener(e.name,e.handler);let w="blob:"===d.substring(0,5),T="data:"===d.substring(0,5),x=()=>{w||T||!t.WebRequest.IsCustomRequestAvailable?y.src=d:L(d,(e,t,r)=>{let s=new Blob([e],{type:!o&&r?r:o}),a=URL.createObjectURL(s);g=!0,y.src=a},void 0,n||void 0,!0,(e,t)=>{p(t)})};if(!w&&!T&&n&&n.enableTexturesOffline)n.open(()=>{n&&n.loadImage(d,y)},x);else{if(-1!==d.indexOf("file:")){let e=decodeURIComponent(d.substring(5).toLowerCase());if(a.FilesInputStore.FilesToLoad[e]&&"u">typeof URL){try{let t;try{t=URL.createObjectURL(a.FilesInputStore.FilesToLoad[e])}catch(r){t=URL.createObjectURL(a.FilesInputStore.FilesToLoad[e])}y.src=t,g=!0}catch(e){y.src=""}return y}}x()}return y},"ReadFile",0,m,"RequestFile",0,v,"SetCorsBehavior",0,b])},85240,e=>{"use strict";var t=e.i(75865);e.s(["PrecisionDate",0,class{static get Now(){return(0,t.IsWindowObjectExist)()&&window.performance&&window.performance.now?window.performance.now():Date.now()}}])},65679,e=>{"use strict";function t(e){let t=r(e),a=s(e);return t-e>e-a?a:t}function r(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function s(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)-(e>>1)}e.s(["FloorPOT",0,s,"GetExponentOfTwo",0,function(e,a,n=2){let o;switch(n){case 1:o=s(e);break;case 2:o=t(e);break;default:o=r(e)}return Math.min(o,a)},"IsExponentOfTwo",0,function(e){let t=1;do t*=2;while(t<e)return t===e},"Mix",0,function(e,t,r){return e*(1-r)+t*r},"NearestPOT",0,t])},58279,e=>{"use strict";var t=e.i(83464),r=e.i(48477);class s{static Instantiate(e){if(this.RegisteredExternalClasses&&this.RegisteredExternalClasses[e])return this.RegisteredExternalClasses[e];let s=(0,r.GetClass)(e);if(s)return s;t.Logger.Warn(e+" not found, you may have missed an import.");let a=e.split("."),n="u">typeof window?window:"u">typeof globalThis?globalThis:this;for(let e=0,t=a.length;e<t;e++)n=n[a[e]];return"function"!=typeof n?null:n}}s.RegisteredExternalClasses={},e.s(["InstantiationTools",0,s])},16147,68853,40220,e=>{"use strict";e.s(["__decorate",0,function(e,t,r,s){var a,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,s);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(o=(n<3?a(o):n>3?a(t,r,o):a(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o}],16147);let t={},r={};function s(e){let t=e.getClassName();return r[t]||(r[t]={}),r[t]}function a(e,t){return(r,a)=>{let n=s(r);n[a]||(n[a]={type:e,sourceName:t})}}function n(e,t,r,s){let a=r.value;r.value=(...r)=>{let n=a;if("u">typeof _native&&_native[t]){let e=_native[t];n=s?(...t)=>s(...t)?e(...t):a(...t):e}return e[t]=n,n(...r)}}e.s(["GetDirectStore",0,s,"GetMergedStore",0,function(e){let s=e.getClassName();if(t[s])return t[s];t[s]={};let a=t[s],n=e,o=s;for(;o;){let e,t=r[o];for(let e in t)a[e]=t[e];let s=!1;do{if(!(e=Object.getPrototypeOf(n)).getClassName){s=!0;break}if(e.getClassName()!==o)break;n=e}while(e)if(s)break;o=e.getClassName(),n=e}return a}],68853),n.filter=function(e){return(t,r,s)=>n(t,r,s,e)},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(r,s)=>{Object.defineProperty(r,t||"",{get:function(){return this[s].value},set:function(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,r[e].apply(this))},enumerable:!0,configurable:!0})}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(r,s)=>{let a=t||"_"+s;Object.defineProperty(r,s,{get:function(){return this[a]},set:function(t){"function"==typeof this[a]?.equals&&this[a].equals(t)||this[a]!==t&&(this[a]=t,r[e].apply(this))},enumerable:!0,configurable:!0})}}(e,t)},"nativeOverride",0,n,"serialize",0,function(e){return a(0,e)},"serializeAsColor3",0,function(e){return a(2,e)},"serializeAsColor4",0,function(e){return a(8,e)},"serializeAsColorCurves",0,function(e){return a(7,e)},"serializeAsFresnelParameters",0,function(e){return a(3,e)},"serializeAsImageProcessingConfiguration",0,function(e){return a(9,e)},"serializeAsMatrix",0,function(e){return a(12,e)},"serializeAsMeshReference",0,function(e){return a(6,e)},"serializeAsQuaternion",0,function(e){return a(10,e)},"serializeAsTexture",0,function(e){return a(1,e)},"serializeAsVector2",0,function(e){return a(4,e)},"serializeAsVector3",0,function(e){return a(5,e)}],40220)},95397,55250,e=>{"use strict";var t=e.i(54670);class r{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),r._HandleParenthesisContent(e,t))):r._HandleParenthesisContent(e,t))||"false"!==e&&r.Eval(e,t)}static _HandleParenthesisContent(e,t){let s;t=t||(e=>"true"===e);let a=e.split("||");for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let n=r._SimplifyNegation(a[e].trim()),o=n.split("&&");if(o.length>1)for(let e=0;e<o.length;++e){let a=r._SimplifyNegation(o[e].trim());if(!(s="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a)){n="false";break}}if(s||"true"===n){s=!0;break}s="true"!==n&&"false"!==n?"!"===n[0]?!t(n.substring(1)):t(n):"true"===n}return s?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class s{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>s.HasTags(e),e.addTags=t=>s.AddTagsTo(e,t),e.removeTags=t=>s.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>s.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let r in e._tags)Object.prototype.hasOwnProperty.call(e._tags,r)&&!0===e._tags[r]&&t.push(r);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let r of t.split(" "))s._AddTagTo(e,r)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(s.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!s.HasTags(e))return;let r=t.split(" ");for(let t in r)s._RemoveTagFrom(e,r[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?s.HasTags(e):r.Eval(t,t=>s.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,s],55250);var a=e.i(75053),n=e.i(10534),o=e.i(68853);let i=function(e,t,r,a={}){let n=e();s&&s.HasTags(t)&&s.AddTagsTo(n,s.GetTags(t,!0));let i=(0,o.GetMergedStore)(n),u={};for(let e in i){let s=i[e],o=t[e],c=s.type;if(null!=o&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(c){case 0:case 6:case 9:case 11:"function"==typeof o.slice?n[e]=o.slice():n[e]=o;break;case 1:a.cloneTexturesOnlyOnce&&u[o.uniqueId]?n[e]=u[o.uniqueId]:(n[e]=r||o.isRenderTarget?o:o.clone(),u[o.uniqueId]=n[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:n[e]=r?o:o.clone()}}return n};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let r=0;r<e.animations.length;r++){let s=e.animations[r];t.animations.push(s.serialize())}}}static Serialize(e,t){t||(t={}),s&&(t.tags=s.GetTags(e));let r=(0,o.GetMergedStore)(e);for(let s in r){let a=r[s],n=a.sourceName||s,o=a.type,i=e[s];if(null!=i&&("uniqueId"!==s||l.AllowLoadingUniqueId))switch(o){case 0:Array.isArray(i)?t[n]=i.slice():t[n]=i;break;case 1:case 3:case 7:case 9:t[n]=i.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:t[n]=i.asArray();break;case 6:case 11:t[n]=i.id}}return t}static ParseProperties(e,t,r,s){s||(s="");let i=(0,o.GetMergedStore)(t);for(let o in i){let u=i[o],c=e[u.sourceName||o],f=u.type;if(null!=c&&("uniqueId"!==o||l.AllowLoadingUniqueId))switch(f){case 0:t[o]=c;break;case 1:r&&(t[o]=l._TextureParser(c,r,s));break;case 2:t[o]=a.Color3.FromArray(c);break;case 3:t[o]=l._FresnelParametersParser(c);break;case 4:t[o]=n.Vector2.FromArray(c);break;case 5:t[o]=n.Vector3.FromArray(c);break;case 6:r&&(t[o]=r.getLastMeshById(c));break;case 7:t[o]=l._ColorCurvesParser(c);break;case 8:t[o]=a.Color4.FromArray(c);break;case 9:t[o]=l._ImageProcessingConfigurationParser(c);break;case 10:t[o]=n.Quaternion.FromArray(c);break;case 11:r&&(t[o]=r.getCameraById(c));break;case 12:t[o]=n.Matrix.FromArray(c)}}}static Parse(e,t,r,a=null){let n=e();return s&&s.AddTagsTo(n,t.tags),l.ParseProperties(t,n,r,a),n}static Clone(e,t,r={}){return i(e,t,!1,r)}static Instanciate(e,t){return i(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,r,s)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],95397)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84673,e=>{"use strict";var r=e.i(12423),t=e.i(19640),a=e.i(22548),i=e.i(60106),o=e.i(50008),n=e.i(40664),f=e.i(39780),s=e.i(6320),l=e.i(14640),c=e.i(67367),_=e.i(90780);let m="openpbrFragmentSamplersDeclaration",d=`#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_COLOR,_VARYINGNAME_,BaseColor,_SAMPLERNAME_,baseColor)
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70011,e=>{"use strict";var r=e.i(1719),t=e.i(78828),a=e.i(95727),i=e.i(95611),o=e.i(96024),n=e.i(24099),f=e.i(58834),s=e.i(16555),l=e.i(86589),c=e.i(81845),_=e.i(62329);let m="openpbrFragmentSamplersDeclaration",d=`#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_COLOR,_VARYINGNAME_,BaseColor,_SAMPLERNAME_,baseColor)
2
2
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_WEIGHT,_VARYINGNAME_,BaseWeight,_SAMPLERNAME_,baseWeight)
3
3
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_DIFFUSE_ROUGHNESS,_VARYINGNAME_,BaseDiffuseRoughness,_SAMPLERNAME_,baseDiffuseRoughness)
4
4
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_METALNESS,_VARYINGNAME_,BaseMetalness,_SAMPLERNAME_,baseMetalness)
@@ -50,7 +50,7 @@ var blueNoiseSamplerSampler: sampler;var blueNoiseSampler: texture_2d<f32>;
50
50
  #ifdef IBL_CDF_FILTERING
51
51
  var icdfSamplerSampler: sampler;var icdfSampler: texture_2d<f32>;
52
52
  #endif
53
- `;r.ShaderStore.IncludesShadersStoreWGSL[m]||(r.ShaderStore.IncludesShadersStoreWGSL[m]=d);var u=e.i(61059),g=e.i(35182),p=e.i(54758),v=e.i(25626),S=e.i(69488),E=e.i(4357),h=e.i(95538),I=e.i(90507),R=e.i(62424),b=e.i(30733),T=e.i(60315),N=e.i(99452),A=e.i(42420),L=e.i(42221),F=e.i(48373),D=e.i(61202),O=e.i(69075),C=e.i(87850),P=e.i(62026),G=e.i(28285),x=e.i(82518);let M="openpbrNormalMapFragmentMainFunctions",y=`#if defined(GEOMETRY_NORMAL) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ) || defined(DETAIL)
53
+ `;r.ShaderStore.IncludesShadersStoreWGSL[m]||(r.ShaderStore.IncludesShadersStoreWGSL[m]=d);var u=e.i(36971),g=e.i(92091),p=e.i(23681),v=e.i(86205),S=e.i(79181),E=e.i(70882),h=e.i(13001),I=e.i(43639),R=e.i(1397),b=e.i(50532),T=e.i(11213),N=e.i(2720),A=e.i(81006),L=e.i(80442),F=e.i(53554),D=e.i(8067),O=e.i(20503),C=e.i(69914),P=e.i(30997),G=e.i(44953),x=e.i(39345);let M="openpbrNormalMapFragmentMainFunctions",y=`#if defined(GEOMETRY_NORMAL) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ) || defined(DETAIL)
54
54
  #if defined(TANGENT) && defined(NORMAL)
55
55
  varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
56
56
  #endif
@@ -123,7 +123,7 @@ return -texCoordOffset;
123
123
  #endif
124
124
  }
125
125
  #endif
126
- `;r.ShaderStore.IncludesShadersStoreWGSL[W]||(r.ShaderStore.IncludesShadersStoreWGSL[W]=z);var w=e.i(23356),U=e.i(30420);let X="openpbrConductorReflectance",H=`#define pbr_inline
126
+ `;r.ShaderStore.IncludesShadersStoreWGSL[W]||(r.ShaderStore.IncludesShadersStoreWGSL[W]=z);var w=e.i(53373),U=e.i(1216);let X="openpbrConductorReflectance",H=`#define pbr_inline
127
127
  fn conductorReflectance(baseColor: vec3f,specularColor: vec3f,specularWeight: f32)->ReflectanceParams
128
128
  {var outParams: ReflectanceParams;
129
129
  #if (CONDUCTOR_SPECULAR_MODEL==CONDUCTOR_SPECULAR_MODEL_OPENPBR)
@@ -133,7 +133,7 @@ outParams.coloredF0=baseColor;outParams.coloredF90=vec3f(1.0f);
133
133
  #endif
134
134
  outParams.F0=1.0f;outParams.F90=1.0f;return outParams;}`;r.ShaderStore.IncludesShadersStoreWGSL[X]||(r.ShaderStore.IncludesShadersStoreWGSL[X]=H);let V="openpbrAmbientOcclusionFunctions",B=`fn compute_specular_occlusion(n_dot_v: f32,metallic: f32,ambient_occlusion: f32,roughness: f32)->f32
135
135
  {let specular_occlusion: f32=saturate(pow(n_dot_v+ambient_occlusion,exp2(-16.0*roughness-1.0))-1.0+ambient_occlusion);return mix(specular_occlusion,1.0,metallic*square(1.0-roughness));}
136
- `;r.ShaderStore.IncludesShadersStoreWGSL[V]||(r.ShaderStore.IncludesShadersStoreWGSL[V]=B);var k=e.i(22389),Y=e.i(63189);let Z="openpbrVolumeFunctions",j=`struct OpenPBRHomogeneousVolume {extinction_coeff: vec3f,
136
+ `;r.ShaderStore.IncludesShadersStoreWGSL[V]||(r.ShaderStore.IncludesShadersStoreWGSL[V]=B);var k=e.i(49284),Y=e.i(42793);let Z="openpbrVolumeFunctions",j=`struct OpenPBRHomogeneousVolume {extinction_coeff: vec3f,
137
137
  ss_albedo: vec3f,
138
138
  multi_scatter_color: vec3f,
139
139
  absorption_coeff: vec3f,
@@ -190,7 +190,7 @@ let filter_samples_scale: f32=samples_scale(pixels_to_projective(overscan_size_i
190
190
  return vec3f(select(unconvolved_irradiance.r,irradiance_sum.r/weight_sum.r,weight_sum.r>=1e-5f),
191
191
  select(unconvolved_irradiance.g,irradiance_sum.g/weight_sum.g,weight_sum.g>=1e-5f),
192
192
  select(unconvolved_irradiance.b,irradiance_sum.b/weight_sum.b,weight_sum.b>=1e-5f));}
193
- `;r.ShaderStore.IncludesShadersStoreWGSL[Z]||(r.ShaderStore.IncludesShadersStoreWGSL[Z]=j);var q=e.i(63406),K=e.i(74698);let Q="openpbrNormalMapFragment",J=`var uvOffset: vec2f= vec2f(0.0,0.0);
193
+ `;r.ShaderStore.IncludesShadersStoreWGSL[Z]||(r.ShaderStore.IncludesShadersStoreWGSL[Z]=j);var q=e.i(40422),K=e.i(17517);let Q="openpbrNormalMapFragment",J=`var uvOffset: vec2f= vec2f(0.0,0.0);
194
194
  #if defined(GEOMETRY_NORMAL) || defined(GEOMETRY_COAT_NORMAL) || defined(PARALLAX) || defined(DETAIL)
195
195
  #ifdef NORMALXYSCALE
196
196
  var normalScale: f32=1.0;
@@ -384,7 +384,7 @@ let detailRoughness: f32=mix(0.5f,detailColor.b,vDetailInfos.w);let loLerp: f32=
384
384
  #ifdef USE_GLTF_STYLE_ANISOTROPY
385
385
  let baseAlpha: f32=specular_roughness*specular_roughness;let roughnessT: f32=mix(baseAlpha,1.0f,specular_roughness_anisotropy*specular_roughness_anisotropy);let roughnessB: f32=baseAlpha;specular_roughness_anisotropy=1.0f-roughnessB/max(roughnessT,0.00001f);specular_roughness=sqrt(roughnessT/sqrt(2.0f/(1.0f+(1.0f-specular_roughness_anisotropy)*(1.0f-specular_roughness_anisotropy))));
386
386
  #endif
387
- `;r.ShaderStore.IncludesShadersStoreWGSL[er]||(r.ShaderStore.IncludesShadersStoreWGSL[er]=et);var ea=e.i(4558),ei=e.i(80899);let eo="openpbrCoatLayerData",en=`var coat_weight: f32=0.0f;var coat_color: vec3f=vec3f(1.0f);var coat_roughness: f32=0.0f;var coat_roughness_anisotropy: f32=0.0f;var coat_ior: f32=1.6f;var coat_darkening: f32=1.0f;var geometry_coat_tangent: vec2f=vec2f(1.0f,0.0f);
387
+ `;r.ShaderStore.IncludesShadersStoreWGSL[er]||(r.ShaderStore.IncludesShadersStoreWGSL[er]=et);var ea=e.i(63028),ei=e.i(56880);let eo="openpbrCoatLayerData",en=`var coat_weight: f32=0.0f;var coat_color: vec3f=vec3f(1.0f);var coat_roughness: f32=0.0f;var coat_roughness_anisotropy: f32=0.0f;var coat_ior: f32=1.6f;var coat_darkening: f32=1.0f;var geometry_coat_tangent: vec2f=vec2f(1.0f,0.0f);
388
388
  #ifdef COAT_WEIGHT
389
389
  var coatWeightFromTexture: vec4f=TEXRD(coatWeightSampler,coatWeightSamplerSampler,fragmentInputs.vCoatWeightUV+uvOffset);
390
390
  #endif
@@ -486,7 +486,7 @@ fuzz_roughness*=fuzzRoughnessFromTexture.r;
486
486
  #ifdef AMBIENT_OCCLUSION
487
487
  var ambientOcclusionFromTexture: vec3f=TEXRD(ambientOcclusionSampler,ambientOcclusionSamplerSampler,fragmentInputs.vAmbientOcclusionUV+uvOffset).rgb;ambient_occlusion=vec3f(ambientOcclusionFromTexture.r*uniforms.vAmbientOcclusionInfos.y+(1.0f-uniforms.vAmbientOcclusionInfos.y));
488
488
  #endif
489
- `;r.ShaderStore.IncludesShadersStoreWGSL[e_]||(r.ShaderStore.IncludesShadersStoreWGSL[e_]=em);var ed=e.i(31329);let eu="openpbrBackgroundTransmission",eg=`var slab_translucent_background: vec4f=vec4f(0.,0.,0.,1.);
489
+ `;r.ShaderStore.IncludesShadersStoreWGSL[e_]||(r.ShaderStore.IncludesShadersStoreWGSL[e_]=em);var ed=e.i(1002);let eu="openpbrBackgroundTransmission",eg=`var slab_translucent_background: vec4f=vec4f(0.,0.,0.,1.);
490
490
  #ifdef REFRACTED_BACKGROUND
491
491
  {let refractionLOD: f32=min(transmission_roughness,0.8)*uniforms.vBackgroundRefractionInfos.x;let lodTexelSize: f32=pow(2.0f,refractionLOD-uniforms.vBackgroundRefractionInfos.x);
492
492
  #ifdef DISPERSION
@@ -1034,7 +1034,7 @@ total_direct_diffuse+=slab_diffuse;
1034
1034
  #endif
1035
1035
  let material_dielectric_base: vec3f=mix(slab_diffuse*base_color.rgb,slab_translucent,surface_translucency_weight);let material_dielectric_gloss: vec3f=material_dielectric_base*(1.0f-specularFresnel)+slab_glossy*specularColoredFresnel;let material_base_substrate: vec3f=mix(material_dielectric_gloss,slab_metal,base_metalness);let material_coated_base: vec3f=layer(material_base_substrate,slab_coat,coatFresnel,coatAbsorption,vec3f(1.0f));material_surface_direct+=layer(material_coated_base,slab_fuzz,fuzzFresnel*fuzz_weight,vec3f(1.0f),fuzz_color);}
1036
1036
  #endif
1037
- `;r.ShaderStore.IncludesShadersStoreWGSL[eh]||(r.ShaderStore.IncludesShadersStoreWGSL[eh]=eI);var eR=e.i(23009),eb=e.i(31213),eT=e.i(52640);let eN="openpbrBlockPrePass",eA=`#if SCENE_MRT_COUNT>0
1037
+ `;r.ShaderStore.IncludesShadersStoreWGSL[eh]||(r.ShaderStore.IncludesShadersStoreWGSL[eh]=eI);var eR=e.i(88495),eb=e.i(10292),eT=e.i(15202);let eN="openpbrBlockPrePass",eA=`#if SCENE_MRT_COUNT>0
1038
1038
  var writeGeometryInfo: f32=select(0.0,1.0,finalColor.a>ALPHATESTVALUE);var fragData: array<vec4<f32>,SCENE_MRT_COUNT>;
1039
1039
  #ifdef PREPASS_POSITION
1040
1040
  fragData[PREPASS_POSITION_INDEX]= vec4f(fragmentInputs.vPositionW,writeGeometryInfo);
@@ -1124,7 +1124,7 @@ fragmentOutputs.fragData6=fragData[6];
1124
1124
  fragmentOutputs.fragData7=fragData[7];
1125
1125
  #endif
1126
1126
  #endif
1127
- `;r.ShaderStore.IncludesShadersStoreWGSL[eN]||(r.ShaderStore.IncludesShadersStoreWGSL[eN]=eA);var eL=e.i(4818),eF=e.i(87693);let eD="openpbrPixelShader",eO=`#define OPENPBR_FRAGMENT_SHADER
1127
+ `;r.ShaderStore.IncludesShadersStoreWGSL[eN]||(r.ShaderStore.IncludesShadersStoreWGSL[eN]=eA);var eL=e.i(80196),eF=e.i(99505);let eD="openpbrPixelShader",eO=`#define OPENPBR_FRAGMENT_SHADER
1128
1128
  #define CUSTOM_FRAGMENT_BEGIN
1129
1129
  #include<prePassDeclaration>[SCENE_MRT_COUNT]
1130
1130
  #include<oitDeclaration>
@@ -1349,4 +1349,4 @@ if (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.f
1349
1349
  #include<pbrDebug>
1350
1350
  #define CUSTOM_FRAGMENT_MAIN_END
1351
1351
  }
1352
- `;for(let e of(r.ShaderStore.ShadersStoreWGSL[eD]||(r.ShaderStore.ShadersStoreWGSL[eD]=eO),[t.prePassDeclarationWGSL,a.oitDeclarationWGSL,i.sceneUboDeclarationWGSL,o.meshUboDeclarationWGSL,n.openpbrUboDeclarationWGSL,f.mainUVVaryingDeclarationWGSL,s.pbrFragmentExtraDeclarationWGSL,l.lightUboDeclarationWGSL,c.samplerFragmentDeclarationWGSL,_.pbrFragmentReflectionDeclarationWGSL,{name:m,shader:d},u.imageProcessingDeclarationWGSL,g.clipPlaneFragmentDeclarationWGSL,p.logDepthDeclarationWGSL,v.fogFragmentDeclarationWGSL,S.textureRepetitionFunctionsWGSL,E.helperFunctionsWGSL,h.subSurfaceScatteringFunctionsWGSL,I.importanceSamplingWGSL,R.pbrHelperFunctionsWGSL,b.imageProcessingFunctionsWGSL,T.shadowsFragmentFunctionsWGSL,N.harmonicsFunctionsWGSL,A.ltcHelperFunctionsWGSL,L.pbrDirectLightingSetupFunctionsWGSL,F.pbrDirectLightingFalloffFunctionsWGSL,D.pbrBRDFFunctionsWGSL,O.hdrFilteringFunctionsWGSL,C.clusteredLightingFunctionsWGSL,P.pbrBlockReflectance0WGSL,G.pbrDirectLightingFunctionsWGSL,x.pbrIBLFunctionsWGSL,{name:M,shader:y},{name:W,shader:z},w.reflectionFunctionWGSL,U.openpbrDielectricReflectanceWGSL,{name:X,shader:H},{name:V,shader:B},k.openpbrGeometryInfoWGSL,Y.openpbrIblFunctionsWGSL,{name:Z,shader:j},q.clipPlaneFragmentWGSL,K.pbrBlockNormalGeometricWGSL,{name:Q,shader:J},{name:$,shader:ee},{name:er,shader:et},ea.openpbrTransmissionLayerDataWGSL,ei.openpbrSubsurfaceLayerDataWGSL,{name:eo,shader:en},{name:ef,shader:es},{name:el,shader:ec},{name:e_,shader:em},ed.depthPrePassWGSL,{name:eu,shader:eg},{name:ep,shader:ev},{name:eS,shader:eE},{name:eh,shader:eI},eR.logDepthFragmentWGSL,eb.fogFragmentWGSL,eT.pbrBlockImageProcessingWGSL,{name:eN,shader:eA},eL.oitFragmentWGSL,eF.pbrDebugWGSL]))r.ShaderStore.IncludesShadersStoreWGSL[e.name]||(r.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["openpbrPixelShaderWGSL",0,{name:eD,shader:eO}],84673)}]);
1352
+ `;for(let e of(r.ShaderStore.ShadersStoreWGSL[eD]||(r.ShaderStore.ShadersStoreWGSL[eD]=eO),[t.prePassDeclarationWGSL,a.oitDeclarationWGSL,i.sceneUboDeclarationWGSL,o.meshUboDeclarationWGSL,n.openpbrUboDeclarationWGSL,f.mainUVVaryingDeclarationWGSL,s.pbrFragmentExtraDeclarationWGSL,l.lightUboDeclarationWGSL,c.samplerFragmentDeclarationWGSL,_.pbrFragmentReflectionDeclarationWGSL,{name:m,shader:d},u.imageProcessingDeclarationWGSL,g.clipPlaneFragmentDeclarationWGSL,p.logDepthDeclarationWGSL,v.fogFragmentDeclarationWGSL,S.textureRepetitionFunctionsWGSL,E.helperFunctionsWGSL,h.subSurfaceScatteringFunctionsWGSL,I.importanceSamplingWGSL,R.pbrHelperFunctionsWGSL,b.imageProcessingFunctionsWGSL,T.shadowsFragmentFunctionsWGSL,N.harmonicsFunctionsWGSL,A.ltcHelperFunctionsWGSL,L.pbrDirectLightingSetupFunctionsWGSL,F.pbrDirectLightingFalloffFunctionsWGSL,D.pbrBRDFFunctionsWGSL,O.hdrFilteringFunctionsWGSL,C.clusteredLightingFunctionsWGSL,P.pbrBlockReflectance0WGSL,G.pbrDirectLightingFunctionsWGSL,x.pbrIBLFunctionsWGSL,{name:M,shader:y},{name:W,shader:z},w.reflectionFunctionWGSL,U.openpbrDielectricReflectanceWGSL,{name:X,shader:H},{name:V,shader:B},k.openpbrGeometryInfoWGSL,Y.openpbrIblFunctionsWGSL,{name:Z,shader:j},q.clipPlaneFragmentWGSL,K.pbrBlockNormalGeometricWGSL,{name:Q,shader:J},{name:$,shader:ee},{name:er,shader:et},ea.openpbrTransmissionLayerDataWGSL,ei.openpbrSubsurfaceLayerDataWGSL,{name:eo,shader:en},{name:ef,shader:es},{name:el,shader:ec},{name:e_,shader:em},ed.depthPrePassWGSL,{name:eu,shader:eg},{name:ep,shader:ev},{name:eS,shader:eE},{name:eh,shader:eI},eR.logDepthFragmentWGSL,eb.fogFragmentWGSL,eT.pbrBlockImageProcessingWGSL,{name:eN,shader:eA},eL.oitFragmentWGSL,eF.pbrDebugWGSL]))r.ShaderStore.IncludesShadersStoreWGSL[e.name]||(r.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["openpbrPixelShaderWGSL",0,{name:eD,shader:eO}],70011)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35182,63406,e=>{"use strict";var f=e.i(12423);let n="clipPlaneFragmentDeclaration",i=`#ifdef CLIPPLANE
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,92091,40422,e=>{"use strict";var f=e.i(1719);let n="clipPlaneFragmentDeclaration",i=`#ifdef CLIPPLANE
2
2
  varying fClipDistance: f32;
3
3
  #endif
4
4
  #ifdef CLIPPLANE2
@@ -16,7 +16,7 @@ varying fClipDistance5: f32;
16
16
  #ifdef CLIPPLANE6
17
17
  varying fClipDistance6: f32;
18
18
  #endif
19
- `;f.ShaderStore.IncludesShadersStoreWGSL[n]||(f.ShaderStore.IncludesShadersStoreWGSL[n]=i),e.s(["clipPlaneFragmentDeclarationWGSL",0,{name:n,shader:i}],35182);let r="clipPlaneFragment",o=`#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
19
+ `;f.ShaderStore.IncludesShadersStoreWGSL[n]||(f.ShaderStore.IncludesShadersStoreWGSL[n]=i),e.s(["clipPlaneFragmentDeclarationWGSL",0,{name:n,shader:i}],92091);let r="clipPlaneFragment",o=`#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
20
20
  if (false) {}
21
21
  #endif
22
22
  #ifdef CLIPPLANE
@@ -43,7 +43,7 @@ else if (fragmentInputs.fClipDistance5>0.0)
43
43
  else if (fragmentInputs.fClipDistance6>0.0)
44
44
  {discard;}
45
45
  #endif
46
- `;f.ShaderStore.IncludesShadersStoreWGSL[r]||(f.ShaderStore.IncludesShadersStoreWGSL[r]=o),e.s(["clipPlaneFragmentWGSL",0,{name:r,shader:o}],63406)},25626,31213,e=>{"use strict";var f=e.i(12423);let n="fogFragmentDeclaration",i=`#ifdef FOG
46
+ `;f.ShaderStore.IncludesShadersStoreWGSL[r]||(f.ShaderStore.IncludesShadersStoreWGSL[r]=o),e.s(["clipPlaneFragmentWGSL",0,{name:r,shader:o}],40422)},86205,10292,e=>{"use strict";var f=e.i(1719);let n="fogFragmentDeclaration",i=`#ifdef FOG
47
47
  #define FOGMODE_NONE 0.
48
48
  #define FOGMODE_EXP 1.
49
49
  #define FOGMODE_EXP2 2.
@@ -57,14 +57,14 @@ else if (FOGMODE_EXP2==uniforms.vFogInfos.x)
57
57
  {fogCoeff=1.0/pow(E,fogDistance*fogDistance*fogDensity*fogDensity);}
58
58
  return clamp(fogCoeff,0.0,1.0);}
59
59
  #endif
60
- `;f.ShaderStore.IncludesShadersStoreWGSL[n]||(f.ShaderStore.IncludesShadersStoreWGSL[n]=i),e.s(["fogFragmentDeclarationWGSL",0,{name:n,shader:i}],25626);let r="fogFragment",o=`#ifdef FOG
60
+ `;f.ShaderStore.IncludesShadersStoreWGSL[n]||(f.ShaderStore.IncludesShadersStoreWGSL[n]=i),e.s(["fogFragmentDeclarationWGSL",0,{name:n,shader:i}],86205);let r="fogFragment",o=`#ifdef FOG
61
61
  var fog: f32=CalcFogFactor();
62
62
  #ifdef PBR
63
63
  fog=toLinearSpace(fog);
64
64
  #endif
65
65
  color= vec4f(mix(uniforms.vFogColor,color.rgb,fog),color.a);
66
66
  #endif
67
- `;f.ShaderStore.IncludesShadersStoreWGSL[r]||(f.ShaderStore.IncludesShadersStoreWGSL[r]=o),e.s(["fogFragmentWGSL",0,{name:r,shader:o}],31213)},51075,e=>{"use strict";var f=e.i(12423),n=e.i(35182),i=e.i(25626),r=e.i(63406),o=e.i(31213);let a="colorPixelShader",t=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
67
+ `;f.ShaderStore.IncludesShadersStoreWGSL[r]||(f.ShaderStore.IncludesShadersStoreWGSL[r]=o),e.s(["fogFragmentWGSL",0,{name:r,shader:o}],10292)},57491,e=>{"use strict";var f=e.i(1719),n=e.i(92091),i=e.i(86205),r=e.i(40422),o=e.i(10292);let a="colorPixelShader",t=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
68
68
  #define VERTEXCOLOR
69
69
  varying vColor: vec4f;
70
70
  #else
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4357,e=>{"use strict";var r=e.i(12423);let t="helperFunctions",a=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70882,e=>{"use strict";var r=e.i(1719);let t="helperFunctions",a=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
2
2
  const LinearEncodePowerApprox: f32=2.2;const GammaEncodePowerApprox: f32=1.0/LinearEncodePowerApprox;const LuminanceEncodeApprox: vec3f=vec3f(0.2126,0.7152,0.0722);const Epsilon:f32=0.0000001;fn square(x: f32)->f32 {return x*x;}
3
3
  fn saturate(x: f32)->f32 {return clamp(x,0.0,1.0);}
4
4
  fn saturateVec3(x: vec3f)->vec3f {return clamp(x,vec3f(),vec3f(1.0));}
@@ -84,7 +84,7 @@ fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
84
84
  fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
85
85
  fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
86
86
  uint2float(rstate*2447445414u));}
87
- `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=a),e.s(["helperFunctionsWGSL",0,{name:t,shader:a}])},7295,e=>{"use strict";var r=e.i(12423),t=e.i(4357);let a="rgbdEncodePixelShader",c=`varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_2d<f32>;
87
+ `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=a),e.s(["helperFunctionsWGSL",0,{name:t,shader:a}])},79789,e=>{"use strict";var r=e.i(1719),t=e.i(70882);let a="rgbdEncodePixelShader",c=`varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_2d<f32>;
88
88
  #include<helperFunctions>
89
89
  #define CUSTOM_FRAGMENT_DEFINITIONS
90
90
  @fragment