@uptimizr/dashboard 0.4.6 → 0.4.8

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 (388) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +19 -5
  3. package/out/__next._full.txt +10 -10
  4. package/out/__next._tree.txt +1 -1
  5. package/out/_next/static/chunks/{3cp5nmtwxq4gr.js → 0-6mdj5wxsfid.js} +1 -1
  6. package/out/_next/static/chunks/{2clevl_9ayd0x.js → 0-qthfqvm1jyj.js} +1 -1
  7. package/out/_next/static/chunks/01viyuclp2gm9.js +1 -0
  8. package/out/_next/static/chunks/02aym4t2hgo5c.js +1 -0
  9. package/out/_next/static/chunks/{1fervgvgv10r-.js → 02ic9b5ejugow.js} +1 -1
  10. package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
  11. package/out/_next/static/chunks/{3zv5kyos9vtmm.js → 03pjr-ivdicng.js} +1 -1
  12. package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
  13. package/out/_next/static/chunks/{3-yhe6rcsjh88.js → 06dzkwetqis-5.js} +1 -1
  14. package/out/_next/static/chunks/{2mjjo0yj-4ro4.js → 06kvanz5-fo52.js} +1 -1
  15. package/out/_next/static/chunks/{28i3wgvgn_at1.js → 07y8ke_iy59dn.js} +1 -1
  16. package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
  17. package/out/_next/static/chunks/{0cmyc-uvk93kl.js → 09khmdgez3t0a.js} +74 -74
  18. package/out/_next/static/chunks/{2x-7kbwq8tl-o.js → 0_dca4876jshu.js} +196 -196
  19. package/out/_next/static/chunks/0axcgnl5qzr6e.js +1 -0
  20. package/out/_next/static/chunks/0ay4fjomijs3n.js +1 -0
  21. package/out/_next/static/chunks/0c7fy79wlccat.js +1 -0
  22. package/out/_next/static/chunks/0cqe4-l3imct3.js +1 -0
  23. package/out/_next/static/chunks/0cssvelju788j.js +1 -0
  24. package/out/_next/static/chunks/{2-_a-v1xeo5hb.js → 0ctain5xq2wsd.js} +116 -115
  25. package/out/_next/static/chunks/{3yk0hzfq5rcs6.js → 0df-dr3otg_4w.js} +1 -1
  26. package/out/_next/static/chunks/{0i9wa8hjd-5tc.js → 0endw997j7ao9.js} +1 -1
  27. package/out/_next/static/chunks/0ev_pbit1v_qg.js +1 -0
  28. package/out/_next/static/chunks/0eyw9oiwipywb.js +1 -0
  29. package/out/_next/static/chunks/0fkzbuo1tex4u.js +1 -0
  30. package/out/_next/static/chunks/0govas0u0t4w3.js +1 -0
  31. package/out/_next/static/chunks/{287hakn2ijupp.js → 0guzhnususp3-.js} +2 -2
  32. package/out/_next/static/chunks/0h7bq_ysu17q7.js +3 -0
  33. package/out/_next/static/chunks/0hneh_3xzlo28.js +1 -0
  34. package/out/_next/static/chunks/0iaqwme19z_0s.js +1 -0
  35. package/out/_next/static/chunks/0ibmar10xndpn.js +1 -0
  36. package/out/_next/static/chunks/0ii8mqoteppgh.js +11 -0
  37. package/out/_next/static/chunks/{3ioxfi3bvznhh.js → 0ip6v64di_l6x.js} +1 -1
  38. package/out/_next/static/chunks/{184pz6z3dflfm.js → 0ixymgjgz3grn.js} +20 -20
  39. package/out/_next/static/chunks/0kuah8g7lt5ox.js +1 -0
  40. package/out/_next/static/chunks/0l3k4j19vxm17.js +1 -0
  41. package/out/_next/static/chunks/0l6hg0ohwh9-m.js +1 -0
  42. package/out/_next/static/chunks/0m4um4ylhlfan.js +1 -0
  43. package/out/_next/static/chunks/0mj837d4h0ddq.js +1 -0
  44. package/out/_next/static/chunks/0nyn-f4905o91.js +1 -0
  45. package/out/_next/static/chunks/0og6i9rsgkuif.js +1 -0
  46. package/out/_next/static/chunks/0os1x-fxzgnxs.js +1 -0
  47. package/out/_next/static/chunks/0otnra7mp0hog.js +1 -0
  48. package/out/_next/static/chunks/{3p03l0z65c8vc.js → 0oyf2xzv8ofkk.js} +253 -253
  49. package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
  50. package/out/_next/static/chunks/{0yd4_xh476fjn.js → 0rl4ddh2vgxyl.js} +97 -97
  51. package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
  52. package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
  53. package/out/_next/static/chunks/{36pz_ews7u0xb.js → 0te4g160_rb5d.js} +1 -1
  54. package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
  55. package/out/_next/static/chunks/{2kk_vvmr2xm3d.js → 0uvn0op2mlr2u.js} +12 -12
  56. package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
  57. package/out/_next/static/chunks/{0r-x702_jvhud.js → 0w7c30w07uct2.js} +12 -12
  58. package/out/_next/static/chunks/0wm38z3u2133a.js +1 -0
  59. package/out/_next/static/chunks/0y7yk5al7_p8q.js +4 -0
  60. package/out/_next/static/chunks/0ycr0gi6fn6bt.js +1 -0
  61. package/out/_next/static/chunks/0ywvahq9t0tki.js +1 -0
  62. package/out/_next/static/chunks/0zh6nslagkby-.js +1 -0
  63. package/out/_next/static/chunks/{3twr9ds68-9us.js → 0zo8xa0nej3ex.js} +1 -1
  64. package/out/_next/static/chunks/{1lu7rjfvxj8yj.js → 0zsir95gpf3xw.js} +1 -1
  65. package/out/_next/static/chunks/{1j4c0nvdo5q68.js → 0zu6ryyj0ig-j.js} +1 -1
  66. package/out/_next/static/chunks/{1bv-jzy_2jiqs.js → 1-jv8k10q_1uw.js} +1 -1
  67. package/out/_next/static/chunks/{0xx7_7y5jdlh4.js → 1-s5ioie9a94e.js} +1 -1
  68. package/out/_next/static/chunks/{27z7j17kcrty_.js → 1-yos1h0qws5e.js} +11 -11
  69. package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
  70. package/out/_next/static/chunks/{2xe4bgir5l-9b.js → 10pae4gb9i929.js} +504 -504
  71. package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
  72. package/out/_next/static/chunks/{2mrkv0z2i74pv.js → 147s8i_lktp4_.js} +2 -2
  73. package/out/_next/static/chunks/{3nwaovnpiyrt8.js → 14tgo5xt_3j4w.js} +3 -3
  74. package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
  75. package/out/_next/static/chunks/{2b5nt7yn-pq3a.js → 16d6n9e77rqti.js} +1 -1
  76. package/out/_next/static/chunks/{3nr48h9zwum-3.js → 16f3d5dv83rsr.js} +1 -1
  77. package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
  78. package/out/_next/static/chunks/{2117sv2qzo6yq.js → 16rfr165nbha0.js} +1 -1
  79. package/out/_next/static/chunks/16sl51pvzo4tf.js +1 -0
  80. package/out/_next/static/chunks/1760s-32qpwgg.js +1 -0
  81. package/out/_next/static/chunks/{3rj-5v0j_2-_2.js → 18kq07c5xy_4g.js} +4 -4
  82. package/out/_next/static/chunks/{2wgh5i70bzelt.js → 190tbzt861ao3.js} +392 -392
  83. package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
  84. package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
  85. package/out/_next/static/chunks/{2_lw4d7t-xcqi.js → 1_kikmeubh0wq.js} +523 -522
  86. package/out/_next/static/chunks/1ay3z6agelsvz.js +1 -0
  87. package/out/_next/static/chunks/1b-fi3bfmpe31.js +1 -0
  88. package/out/_next/static/chunks/1bae3tqv53x9_.js +1 -0
  89. package/out/_next/static/chunks/{2s4fzgzkwjluu.js → 1bf421g4peccx.js} +2 -2
  90. package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
  91. package/out/_next/static/chunks/{3vtmucpx25o7q.js → 1ddt0ot7kl8vq.js} +584 -584
  92. package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
  93. package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
  94. package/out/_next/static/chunks/1g9p2h1-31q8o.js +1 -0
  95. package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
  96. package/out/_next/static/chunks/1h8lyicgqhpxa.js +1 -0
  97. package/out/_next/static/chunks/{0e5dcxmkprebg.js → 1hot663akaepl.js} +1 -1
  98. package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
  99. package/out/_next/static/chunks/{0xzamrecplwzw.js → 1i8sk_qgpdjhs.js} +1 -1
  100. package/out/_next/static/chunks/1kk3ct7pkpf3b.js +1 -0
  101. package/out/_next/static/chunks/1kq9o8del67le.js +1 -0
  102. package/out/_next/static/chunks/1l7tzyx2mumlq.js +1 -0
  103. package/out/_next/static/chunks/1n_uwed9o--go.js +1 -0
  104. package/out/_next/static/chunks/1o351eldttogn.js +1 -0
  105. package/out/_next/static/chunks/{1f07l3q77zat1.js → 1ogs4_aj84bfn.js} +1 -1
  106. package/out/_next/static/chunks/{3_dm45k0vk1aa.js → 1p206txlluipi.js} +565 -565
  107. package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
  108. package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
  109. package/out/_next/static/chunks/{0ypejzd74ixbw.js → 1qcgdx9yl0gfx.js} +15 -15
  110. package/out/_next/static/chunks/1ql3mm2w5r-m8.js +1 -0
  111. package/out/_next/static/chunks/1qvcyuyshi3ll.js +53 -0
  112. package/out/_next/static/chunks/1r0yyg5a_0knc.js +1 -0
  113. package/out/_next/static/chunks/{374lzksboll-t.js → 1sa6qiidtcyk2.js} +1 -1
  114. package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
  115. package/out/_next/static/chunks/1t97zo0tlpbnz.js +1 -0
  116. package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
  117. package/out/_next/static/chunks/{3j3ol_d1vsdhx.js → 1trt-m2nrck0v.js} +1 -1
  118. package/out/_next/static/chunks/{3vu5y270muh-7.js → 1ty9jpwr3o_st.js} +1 -1
  119. package/out/_next/static/chunks/{415g3asdds1ac.js → 1u6w6veke8rze.js} +1 -1
  120. package/out/_next/static/chunks/{0-laj-bivzp4x.js → 1u900urmrbv73.js} +1 -1
  121. package/out/_next/static/chunks/{0o73w0cn5n_vl.js → 1vz2gd8k74lpi.js} +1 -1
  122. package/out/_next/static/chunks/1wkpl9bfb0wn7.js +1 -0
  123. package/out/_next/static/chunks/1wrly9a9c3teq.js +1 -0
  124. package/out/_next/static/chunks/1x0m05155yy4e.js +1 -0
  125. package/out/_next/static/chunks/{1my968s78he8g.js → 1xf1wfow43ekc.js} +15 -15
  126. package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
  127. package/out/_next/static/chunks/{3_gfl66zf638s.js → 1y_zykt3fpen4.js} +901 -906
  128. package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
  129. package/out/_next/static/chunks/1z6_57k5h31u7.js +1 -0
  130. package/out/_next/static/chunks/1zboqft0h6mop.js +1 -0
  131. package/out/_next/static/chunks/1zr3c351x0ri5.js +1 -0
  132. package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
  133. package/out/_next/static/chunks/{1_4hh3dfop93j.js → 206hxrq60f1_e.js} +1 -1
  134. package/out/_next/static/chunks/20r05k3-studj.js +1 -0
  135. package/out/_next/static/chunks/22gs24kj2du56.js +1 -0
  136. package/out/_next/static/chunks/22x5pd1gyp7sf.js +1 -0
  137. package/out/_next/static/chunks/{3qo7e6b73mfxq.js → 22z-2t_yp1jzs.js} +1 -1
  138. package/out/_next/static/chunks/{3d43gd91r06y6.js → 23hmfdw6z5zfy.js} +507 -505
  139. package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
  140. package/out/_next/static/chunks/{0gk5rnci1hznh.js → 24tbkj1qkux88.js} +2 -2
  141. package/out/_next/static/chunks/{2-i29-jdbwww6.js → 26cmri51v7497.js} +111 -111
  142. package/out/_next/static/chunks/27jalbk9zu-2b.js +1 -0
  143. package/out/_next/static/chunks/285d2s9096ryc.js +1 -0
  144. package/out/_next/static/chunks/296ykep2nvppv.js +1 -0
  145. package/out/_next/static/chunks/29nehg5cal-ug.js +1 -0
  146. package/out/_next/static/chunks/2_a56_k3x7to6.js +1 -0
  147. package/out/_next/static/chunks/2a-0l6eb1blh3.js +4 -0
  148. package/out/_next/static/chunks/{2oacwtbslo90t.js → 2a31-txop1jzg.js} +360 -360
  149. package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
  150. package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
  151. package/out/_next/static/chunks/{2epukrz6paj9n.js → 2ept01b7t-e03.js} +1 -1
  152. package/out/_next/static/chunks/{22yht3s7c-xih.js → 2ey5dqelco_g5.js} +1 -1
  153. package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
  154. package/out/_next/static/chunks/{2fspbfbxbswzd.js → 2ftz9kaxrsgxh.js} +1 -1
  155. package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
  156. package/out/_next/static/chunks/{2as_br1awqk6k.js → 2gs-u1n5uv7iz.js} +496 -496
  157. package/out/_next/static/chunks/{1a94whad0y57f.js → 2hizqql79u-54.js} +1 -1
  158. package/out/_next/static/chunks/2iqf2dpdg_vfl.js +1 -0
  159. package/out/_next/static/chunks/2j7z127s_ycjd.js +1 -0
  160. package/out/_next/static/chunks/2kax7uslfxdnx.js +31 -0
  161. package/out/_next/static/chunks/{2laz1v9fg2a2z.js → 2lh_w9rzy3vek.js} +1 -1
  162. package/out/_next/static/chunks/{3mmy9zsb7zo-m.js → 2ln1na26qwp-3.js} +23 -23
  163. package/out/_next/static/chunks/2n08l1q5o_27e.js +1 -0
  164. package/out/_next/static/chunks/2n7268gyd9z-6.js +1 -0
  165. package/out/_next/static/chunks/2nq9cgjmtqwvp.js +1 -0
  166. package/out/_next/static/chunks/{25brs445bjbik.js → 2oj8qc_pv14nk.js} +2 -2
  167. package/out/_next/static/chunks/2q24e72-olbe8.js +1 -0
  168. package/out/_next/static/chunks/2qc4hscs26cro.js +1 -0
  169. package/out/_next/static/chunks/2qe46redkqhfg.js +1 -0
  170. package/out/_next/static/chunks/2qmfe0mqw150h.js +1 -0
  171. package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
  172. package/out/_next/static/chunks/2rofu6gu1xzuq.js +1 -0
  173. package/out/_next/static/chunks/2tdi94rkq739i.js +1 -0
  174. package/out/_next/static/chunks/2u_2sacqa9xa7.js +1 -0
  175. package/out/_next/static/chunks/2ujqz6088shm5.js +1 -0
  176. package/out/_next/static/chunks/{3my05px5mv_s5.js → 2urh9qafp3fiw.js} +235 -235
  177. package/out/_next/static/chunks/{23-y1f_zw56vo.js → 2v06n4z8wsmn9.js} +1 -1
  178. package/out/_next/static/chunks/2vp-5skbk1nfu.js +1 -0
  179. package/out/_next/static/chunks/2vu973j_n6cpx.js +1 -0
  180. package/out/_next/static/chunks/2wwra56rehfcj.js +1 -0
  181. package/out/_next/static/chunks/2xpwr97h2asal.js +1 -0
  182. package/out/_next/static/chunks/3000-0b8n9t_2.js +1 -0
  183. package/out/_next/static/chunks/{0q0i4pdyq66gb.js → 30t3203d7p2da.js} +1 -1
  184. package/out/_next/static/chunks/{3t4ys6th6gf2w.js → 31kto7-dxkt3z.js} +1 -1
  185. package/out/_next/static/chunks/{0j0a0wvmmghxj.js → 32oflcl79d8mu.js} +1 -1
  186. package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
  187. package/out/_next/static/chunks/{2c8rmxz151fxa.js → 331kthnvoma7n.js} +224 -224
  188. package/out/_next/static/chunks/337kn1mn34rc6.js +1 -0
  189. package/out/_next/static/chunks/{336ckqpboqmbn.js → 33xug8kf0-a1o.js} +1 -1
  190. package/out/_next/static/chunks/34dcb7_flbrvo.js +1 -0
  191. package/out/_next/static/chunks/34zotyeqrz_nq.js +1 -0
  192. package/out/_next/static/chunks/351wsmi75l8db.js +1 -0
  193. package/out/_next/static/chunks/36yv-ialtpx98.js +1 -0
  194. package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
  195. package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
  196. package/out/_next/static/chunks/{1x0j78ohufpul.js → 37xnvnx1jxfaf.js} +1 -1
  197. package/out/_next/static/chunks/{29hkkj9raxte9.js → 38w74ixqt-9co.js} +77 -77
  198. package/out/_next/static/chunks/{0jap7l5-bskj4.js → 39t2x_9zd2rst.js} +12 -12
  199. package/out/_next/static/chunks/{38q0enmlg5q9o.js → 39v73timmzwny.js} +2 -2
  200. package/out/_next/static/chunks/{3puu2_-t0lln9.js → 3_xqc3658d8sw.js} +12 -12
  201. package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
  202. package/out/_next/static/chunks/3buezhxqc8n6n.js +1 -0
  203. package/out/_next/static/chunks/3c5iwwj-fhbue.js +1 -0
  204. package/out/_next/static/chunks/{2kmmk9coo9_b0.js → 3d8ot2tw6yqfq.js} +143 -143
  205. package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
  206. package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
  207. package/out/_next/static/chunks/{2_6b9lraq-exh.js → 3fuqxjjf8o1v9.js} +5 -5
  208. package/out/_next/static/chunks/{0j2ygtc_-bo3m.js → 3gt6rzg9qw-an.js} +1 -1
  209. package/out/_next/static/chunks/{0rykrf_vofbad.js → 3h_05w5j8x538.js} +1 -1
  210. package/out/_next/static/chunks/{3txu-i5qn183a.js → 3hkhd1_k8xohv.js} +321 -321
  211. package/out/_next/static/chunks/{2h07np207nlx7.js → 3ijcc5tfisfnj.js} +1 -1
  212. package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
  213. package/out/_next/static/chunks/{14e4k-718qadd.js → 3ju83xk-ca7ma.js} +163 -168
  214. package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
  215. package/out/_next/static/chunks/{1h1gixjbjkbsl.js → 3la99oz_0p0r6.js} +5 -5
  216. package/out/_next/static/chunks/{1mt4cnd_d6jvf.js → 3n1b34fd5fdrh.js} +1 -1
  217. package/out/_next/static/chunks/3nq_hq4x3rn3r.js +1 -0
  218. package/out/_next/static/chunks/3pgb1kkqrdl9t.js +1 -0
  219. package/out/_next/static/chunks/3pik_-jj-zkfl.js +1 -0
  220. package/out/_next/static/chunks/{1zmx71cvc6ksk.js → 3q38kdbzd2nbd.js} +1 -1
  221. package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
  222. package/out/_next/static/chunks/{1t2g1v0ubcsam.js → 3qr10445lte-n.js} +1 -1
  223. package/out/_next/static/chunks/3r-8bnguvxsyo.js +1 -0
  224. package/out/_next/static/chunks/3sg56j8boe-3o.js +1 -0
  225. package/out/_next/static/chunks/3u7zj1-jdg781.js +1 -0
  226. package/out/_next/static/chunks/{0o0qtv35dqv3i.js → 3wj5dmf6cywz8.js} +239 -239
  227. package/out/_next/static/chunks/{2iu0_3cx-ny74.js → 3wr_oijfsq8lr.js} +11 -11
  228. package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
  229. package/out/_next/static/chunks/{0vzo-8t8c26k9.js → 3y5tpixt23-fl.js} +1 -1
  230. package/out/_next/static/chunks/40gjf-_jt8upu.js +5 -0
  231. package/out/_next/static/chunks/41f12o_5lf-i9.js +1 -0
  232. package/out/_next/static/chunks/42ma8lqduohlc.js +1 -0
  233. package/out/_next/static/chunks/43usshq2nc125.js +1 -0
  234. package/out/_next/static/chunks/{161yjxmdz9obc.js → 44bl4ufopbmyh.js} +1 -1
  235. package/out/_next/static/chunks/44iutzkw9r21x.js +1 -0
  236. package/out/_next/static/chunks/turbopack-1xrxa3noq196-.js +1 -0
  237. package/out/_not-found/__next._full.txt +11 -11
  238. package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
  239. package/out/_not-found/__next._tree.txt +1 -1
  240. package/out/_not-found.html +1 -1
  241. package/out/_not-found.txt +11 -11
  242. package/out/index.html +1 -1
  243. package/out/index.txt +10 -10
  244. package/package.json +11 -11
  245. package/out/__next._head.txt +0 -6
  246. package/out/__next._index.txt +0 -5
  247. package/out/_next/static/chunks/0-k4hp87gwues.js +0 -1
  248. package/out/_next/static/chunks/04zj0yf1qhk1o.js +0 -1
  249. package/out/_next/static/chunks/06fbalmyyfpsy.js +0 -1
  250. package/out/_next/static/chunks/07hgbbqksqd1g.js +0 -1
  251. package/out/_next/static/chunks/08ou2nvy48e0u.js +0 -1
  252. package/out/_next/static/chunks/08y5-irjbsiy8.js +0 -1
  253. package/out/_next/static/chunks/0_jrfk2u1u3fi.js +0 -1
  254. package/out/_next/static/chunks/0a475u_q5i_dd.js +0 -62
  255. package/out/_next/static/chunks/0aad2r4s4wl1x.js +0 -5
  256. package/out/_next/static/chunks/0d9pxx1w_zqr9.js +0 -1
  257. package/out/_next/static/chunks/0gnjtwq-474uc.js +0 -1
  258. package/out/_next/static/chunks/0gsh_d0m5xss1.js +0 -1
  259. package/out/_next/static/chunks/0ibzpjo0h731v.js +0 -1
  260. package/out/_next/static/chunks/0j_3k5qhv_mdx.js +0 -1
  261. package/out/_next/static/chunks/0jis2w2mfx062.js +0 -1
  262. package/out/_next/static/chunks/0jjvp2slpf7d6.js +0 -1
  263. package/out/_next/static/chunks/0ko10wo4rc9-b.js +0 -1
  264. package/out/_next/static/chunks/0lqmvz6k2h_of.js +0 -1
  265. package/out/_next/static/chunks/0lwjmr8efrlbt.js +0 -17
  266. package/out/_next/static/chunks/0noxyupihh8dk.js +0 -1
  267. package/out/_next/static/chunks/0o1vph7x9shzu.js +0 -1
  268. package/out/_next/static/chunks/0p6phe9kjlxn8.js +0 -1
  269. package/out/_next/static/chunks/0ptxb9dcwsw3o.js +0 -1
  270. package/out/_next/static/chunks/0q8pt8fd0ma30.js +0 -1
  271. package/out/_next/static/chunks/0qqx9aoz8l5d2.js +0 -1
  272. package/out/_next/static/chunks/0tsk32q-88t_7.js +0 -1
  273. package/out/_next/static/chunks/0u7577db_ivyr.js +0 -1
  274. package/out/_next/static/chunks/0unnrt0un064x.js +0 -1
  275. package/out/_next/static/chunks/0uygtr4mo3h0v.js +0 -1
  276. package/out/_next/static/chunks/0vf3facit951s.js +0 -1
  277. package/out/_next/static/chunks/0xyija62b6txc.js +0 -1
  278. package/out/_next/static/chunks/0zeb37703zcz3.js +0 -1
  279. package/out/_next/static/chunks/0zu5ato7-1-q9.js +0 -1
  280. package/out/_next/static/chunks/0zydv7y47dxgh.js +0 -1
  281. package/out/_next/static/chunks/103x4jwovb6d-.js +0 -1
  282. package/out/_next/static/chunks/107wfq84g9-kn.js +0 -1
  283. package/out/_next/static/chunks/10afagk8yn__n.js +0 -1
  284. package/out/_next/static/chunks/12ory_c78yl31.js +0 -1
  285. package/out/_next/static/chunks/133dqp8_7_yo6.js +0 -1
  286. package/out/_next/static/chunks/1365lgwdd4vuo.js +0 -1
  287. package/out/_next/static/chunks/146ou-ohb_qhs.js +0 -1
  288. package/out/_next/static/chunks/14orr68xgdykd.js +0 -1
  289. package/out/_next/static/chunks/15qfoj-vl9thu.js +0 -1
  290. package/out/_next/static/chunks/166yqx3_qvbpy.js +0 -1
  291. package/out/_next/static/chunks/16gwjao676ieb.js +0 -1
  292. package/out/_next/static/chunks/16rmmzhy2p7bw.js +0 -1
  293. package/out/_next/static/chunks/17_jjyx4jz9dd.js +0 -1
  294. package/out/_next/static/chunks/18h9ugdz6igdb.js +0 -1
  295. package/out/_next/static/chunks/19d8n5t7ka2fb.js +0 -1
  296. package/out/_next/static/chunks/1_rbzw3n4fk0g.js +0 -1
  297. package/out/_next/static/chunks/1aa9g197l4twm.js +0 -1
  298. package/out/_next/static/chunks/1bq0fcnt1wy86.js +0 -1
  299. package/out/_next/static/chunks/1c6mho7e0enta.js +0 -1
  300. package/out/_next/static/chunks/1dfaheve77dhi.js +0 -1
  301. package/out/_next/static/chunks/1dgf112ehnhm1.js +0 -1
  302. package/out/_next/static/chunks/1eirucr9s6-h5.js +0 -1
  303. package/out/_next/static/chunks/1fsof7un7igrn.js +0 -1
  304. package/out/_next/static/chunks/1gvu5a6ffbs7l.js +0 -1
  305. package/out/_next/static/chunks/1iel4pzhhh-c3.js +0 -1
  306. package/out/_next/static/chunks/1iojfx3-g4_n9.js +0 -1
  307. package/out/_next/static/chunks/1j4jt5q7px8sy.js +0 -1
  308. package/out/_next/static/chunks/1jjw9hxgi2vzi.js +0 -1
  309. package/out/_next/static/chunks/1k_8olnprvi8r.js +0 -1
  310. package/out/_next/static/chunks/1l0rt7d4m-xdk.js +0 -5
  311. package/out/_next/static/chunks/1s0dpdqy480hg.js +0 -1
  312. package/out/_next/static/chunks/1t-yolk97lmot.js +0 -12
  313. package/out/_next/static/chunks/1tbes2sv-qzcx.js +0 -1
  314. package/out/_next/static/chunks/1upy8a5cb75kt.js +0 -1
  315. package/out/_next/static/chunks/1xed71f608m4b.js +0 -1
  316. package/out/_next/static/chunks/1z790xxb46gxy.js +0 -1
  317. package/out/_next/static/chunks/219n3q-_eengm.js +0 -1
  318. package/out/_next/static/chunks/21wo3vdr_uby8.js +0 -1
  319. package/out/_next/static/chunks/25gep78-izw79.js +0 -4
  320. package/out/_next/static/chunks/26i7dn31afdtm.js +0 -1
  321. package/out/_next/static/chunks/27hbplu797elx.js +0 -1
  322. package/out/_next/static/chunks/2992eiy52nazj.js +0 -1
  323. package/out/_next/static/chunks/29_n5j-hg_gsa.js +0 -1
  324. package/out/_next/static/chunks/29bxq-67oazfg.js +0 -1
  325. package/out/_next/static/chunks/29ings58w7kp1.js +0 -1
  326. package/out/_next/static/chunks/2_n0cpkdsjzli.js +0 -1
  327. package/out/_next/static/chunks/2a3iy701j4r_y.js +0 -1
  328. package/out/_next/static/chunks/2al9dh3_1ixhv.js +0 -1
  329. package/out/_next/static/chunks/2awr1c_vfsutb.js +0 -1
  330. package/out/_next/static/chunks/2bxe3kjr17tdp.js +0 -1
  331. package/out/_next/static/chunks/2dvbzar93ooc-.js +0 -1
  332. package/out/_next/static/chunks/2e-vp0e11g9ew.js +0 -1
  333. package/out/_next/static/chunks/2exj9-0p6n9x-.js +0 -1
  334. package/out/_next/static/chunks/2gf8l6hbmt7v3.js +0 -1
  335. package/out/_next/static/chunks/2h9i_adbqaxs4.js +0 -1
  336. package/out/_next/static/chunks/2jio3sio-_43z.js +0 -1
  337. package/out/_next/static/chunks/2neieeo9g2u56.js +0 -1
  338. package/out/_next/static/chunks/2pb_uosb-aa8x.js +0 -1
  339. package/out/_next/static/chunks/2qu-gpm3ux1l6.js +0 -1
  340. package/out/_next/static/chunks/2rsi6v7qmqx2b.js +0 -1
  341. package/out/_next/static/chunks/2tdvuc-27khif.js +0 -1
  342. package/out/_next/static/chunks/2trolrgd7neax.js +0 -1
  343. package/out/_next/static/chunks/2uyuafmoe5wi0.js +0 -3
  344. package/out/_next/static/chunks/2w2e0pxgs-n8f.js +0 -1
  345. package/out/_next/static/chunks/2xujlsx3stqig.js +0 -1
  346. package/out/_next/static/chunks/30y71dxdpv52d.js +0 -1
  347. package/out/_next/static/chunks/32c-e_v8_2xkf.js +0 -1
  348. package/out/_next/static/chunks/32oj0iudhp8bm.js +0 -1
  349. package/out/_next/static/chunks/33p9du6y9eegg.js +0 -1
  350. package/out/_next/static/chunks/38om-j0h0rryk.js +0 -1
  351. package/out/_next/static/chunks/39cou9lia_g7l.js +0 -1
  352. package/out/_next/static/chunks/39pkya0_bvcaj.js +0 -1
  353. package/out/_next/static/chunks/39rhmj_32ujyj.js +0 -1
  354. package/out/_next/static/chunks/3_1zzmx92j9c0.js +0 -1
  355. package/out/_next/static/chunks/3_earszshuz4n.js +0 -1
  356. package/out/_next/static/chunks/3ap_uxc8lx7ni.js +0 -1
  357. package/out/_next/static/chunks/3b6na8zrex8jo.js +0 -1
  358. package/out/_next/static/chunks/3c0cxt72vilyz.js +0 -1
  359. package/out/_next/static/chunks/3g78x0pdaoi_4.js +0 -1
  360. package/out/_next/static/chunks/3gjvl1p-tugfe.js +0 -4
  361. package/out/_next/static/chunks/3i8iro1gas1vx.js +0 -1
  362. package/out/_next/static/chunks/3kpqfqr99vo7z.js +0 -1
  363. package/out/_next/static/chunks/3lladf_wemm-2.js +0 -1
  364. package/out/_next/static/chunks/3n62hbywoknop.js +0 -1
  365. package/out/_next/static/chunks/3o_dmzpahx-5g.js +0 -1
  366. package/out/_next/static/chunks/3r7v7un976sn7.js +0 -1
  367. package/out/_next/static/chunks/3rl_nhqwew40w.js +0 -1
  368. package/out/_next/static/chunks/3s7hqij6xp_4e.js +0 -1
  369. package/out/_next/static/chunks/3si3migsmvz9o.js +0 -1
  370. package/out/_next/static/chunks/3uarw1i1ij1er.js +0 -1
  371. package/out/_next/static/chunks/3un-w6wutw1qn.js +0 -1
  372. package/out/_next/static/chunks/3v8kgnjk27wbe.js +0 -1
  373. package/out/_next/static/chunks/3we1khqfexh3x.js +0 -1
  374. package/out/_next/static/chunks/3z35loj4i-id4.js +0 -1
  375. package/out/_next/static/chunks/42lqt7ig40wk5.js +0 -1
  376. package/out/_next/static/chunks/42s6ghsurq5q7.js +0 -1
  377. package/out/_next/static/chunks/42yctcfi2rfwr.js +0 -1
  378. package/out/_next/static/chunks/43_fau1gg69eo.js +0 -1
  379. package/out/_next/static/chunks/43ywrdzg_7af8.js +0 -31
  380. package/out/_next/static/chunks/44m1ijc5cv80x.js +0 -1
  381. package/out/_next/static/chunks/453_bg0lgesmp.js +0 -1
  382. package/out/_next/static/chunks/turbopack-1s36ieuku1ds3.js +0 -1
  383. package/out/_not-found/__next._head.txt +0 -6
  384. package/out/_not-found/__next._index.txt +0 -5
  385. package/out/_not-found/__next._not-found.txt +0 -5
  386. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_buildManifest.js +0 -0
  387. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_clientMiddlewareManifest.js +0 -0
  388. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98207,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 o={...r};if(t._ShouldSkipRequestModifications(e))return{url:e,headers:o};for(let e in t.CustomRequestHeaders){let r=t.CustomRequestHeaders[e];r&&(o[e]=r)}let i={setRequestHeader:(e,t)=>{o[e]=t}};for(let r of t.CustomRequestModifiers){if(t._ShouldSkipRequestModifications(e))break;let o=r(i,e);"string"==typeof o&&(e=o)}return{url:e,headers:o}}static async FetchAsync(e,r={}){let o=r.method??"GET";if("u">typeof fetch){let{url:i,headers:s}=t._CollectCustomizations(t._CleanUrl(e),r.headers??{});return await fetch(i,{method:o,headers:s,body:r.body??void 0})}return await new Promise((i,s)=>{let n=new t;n.responseType="arraybuffer",n.addEventListener("readystatechange",()=>{if(4===n.readyState)if(n.status>=200&&n.status<300){let e="u">typeof Headers?new Headers:void 0,t=n.getResponseHeader("Content-Type");t&&e&&e.set("Content-Type",t),"u">typeof Response?i(new Response(n.response,{status:n.status,statusText:n.statusText,headers:e})):i({ok:!0,status:n.status,statusText:n.statusText,headers:{get:e=>n.getResponseHeader(e)},arrayBuffer:async()=>await Promise.resolve(n.response)})}else s(Error(`HTTP ${n.status} loading '${n.requestURL}': ${n.statusText}`))}),n.open(o,e,r.headers),n.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,o){let{url:i,headers:s}=t._CollectCustomizations(r,o);for(let r in this._requestURL=t._CleanUrl(i),this._xhr.open(e,this._requestURL,!0),s)this._xhr.setRequestHeader(r,s[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])},16347,e=>{"use strict";class t{static _CheckLimit(e,r){let o=t._LogLimitOutputs[e];return o?o.current++:(o={limit:r,current:1},t._LogLimitOutputs[e]=o),o.current<=o.limit}static _GenerateLimitMessage(e,r=1){let o=t._LogLimitOutputs[e];if(!o||!t.MessageLimitReached)return;let i=this._Levels[r];o.current===o.limit&&t[i.name](t.MessageLimitReached.replace(/%LIMIT%/g,""+o.limit).replace(/%TYPE%/g,i.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,o){let i=Array.isArray(r)?r[0]:r;if(void 0!==o&&!t._CheckLimit(i,o))return;let s=t._FormatMessage(i),n=this._Levels[e],a=Array.isArray(r)?r.slice(1):[];n.logFunc&&n.logFunc("BJS - "+s,...a);let l=`<div style='color:${n.color}'>${s}</div><br>`;t._AddLogEntry(l),t._GenerateLimitMessage(i,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])},80065,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)})}])},36460,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}])},1229,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),o=r.length,i=new Uint8Array(new ArrayBuffer(o));for(let e=0;e<o;e++)i[e]=r.charCodeAt(e);return i.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,o,i,s,n,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(;u<e.length;)t=e[u++],r=u<e.length?e[u++]:NaN,o=u<e.length?e[u++]:NaN,i=t>>2,s=(3&t)<<4|r>>4,n=(15&r)<<2|o>>6,a=63&o,isNaN(r)?n=a=64:isNaN(o)&&(a=64),c+=l.charAt(i)+l.charAt(s)+l.charAt(n)+l.charAt(a);return c}(t)}])},6563,e=>{"use strict";let t=null;function r(){if(t)return t;let e=new ArrayBuffer(4),r=new Float32Array(e),o=new Uint32Array(e),i=new Uint32Array(512),s=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-24?(i[e]=0,i[256|e]=32768,s[e]=24,s[256|e]=24):t<-14?(i[e]=1024>>-t-14,i[256|e]=1024>>-t-14|32768,s[e]=-t-1,s[256|e]=-t-1):t<=15?(i[e]=t+15<<10,i[256|e]=t+15<<10|32768,s[e]=13,s[256|e]=13):t<128?(i[e]=31744,i[256|e]=64512,s[e]=24,s[256|e]=24):(i[e]=31744,i[256|e]=64512,s[e]=13,s[256|e]=13)}let n=new Uint32Array(2048),a=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,n[e]=t|r}for(let e=1024;e<2048;++e)n[e]=0x38000000+(e-1024<<13);for(let e=1;e<31;++e)a[e]=e<<23;a[31]=0x47800000,a[32]=0x80000000;for(let e=33;e<63;++e)a[e]=0x80000000+(e-32<<23);a[63]=0xc7800000;for(let e=1;e<64;++e)32!==e&&(l[e]=1024);return t={floatView:r,uint32View:o,baseTable:i,shiftTable:s,mantissaTable:n,exponentTable:a,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 o=t.uint32View[0],i=o>>23&511;return t.baseTable[i]+((8388607&o)>>t.shiftTable[i])}])},24340,4064,49165,e=>{"use strict";class t{}t.FilesToLoad={},e.s(["FilesInputStore",0,t],24340),e.s(["RetryStrategy",0,class{static ExponentialBackoff(e=3,t=500){return(r,o,i)=>0!==o.status||i>=e||-1!==r.indexOf("file:")?-1:Math.pow(2,i)*t}}],4064);class r extends Error{}r._setPrototypeOf=Object.setPrototypeOf||((e,t)=>(e.__proto__=t,e));class o extends r{constructor(e,t,i){super(e),this.errorCode=t,this.innerError=i,this.name="RuntimeError",r._setPrototypeOf(this,o.prototype)}}e.s(["BaseError",0,r,"ErrorCodes",0,{MeshInvalidPositionsError:0,UnsupportedTextureError:1e3,GLTFLoaderUnexpectedMagicError:2e3,SceneLoaderError:3e3,LoadFileError:4e3,RequestFileError:4001,ReadFileError:4002},"RuntimeError",0,o],49165)},83592,e=>{"use strict";var t=e.i(16347),r=e.i(6563);function o(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 i(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 s(e,t,i,s,n,a,l,c){let u=Array(s),f=Array(s);if(e instanceof Array){let r=t/4,o=i/4;for(let t=0;t<a;t+=s){for(let t=0;t<s;t++)u[t]=f[t]=e[r+t];c(f,t);for(let t=0;t<s;t++)u[t]!==f[t]&&(e[r+t]=f[t]);r+=o}}else{let d=ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e),g=o(n);for(let e=0;e<a;e+=s){for(let e=0,o=t;e<s;e++,o+=g)u[e]=f[e]=function(e,t,o,i){switch(t){case 5120:{let t=e.getInt8(o);return i&&(t=Math.max(t/127,-1)),t}case 5121:{let t=e.getUint8(o);return i&&(t/=255),t}case 5122:{let t=e.getInt16(o,!0);return i&&(t=Math.max(t/32767,-1)),t}case 5123:{let t=e.getUint16(o,!0);return i&&(t/=65535),t}case 5131:return(0,r.FromHalfFloat)(e.getUint16(o,!0));case 5124:return e.getInt32(o,!0);case 5125:return e.getUint32(o,!0);case 5126:return e.getFloat32(o,!0);default:throw Error(`Invalid component type ${t}`)}}(d,n,o,l);c(f,e);for(let e=0,o=t;e<s;e++,o+=g)u[e]!==f[e]&&function(e,t,o,i,s){switch(t){case 5120:i&&(s=Math.round(127*s)),e.setInt8(o,s);break;case 5121:i&&(s=Math.round(255*s)),e.setUint8(o,s);break;case 5122:i&&(s=Math.round(32767*s)),e.setInt16(o,s,!0);break;case 5123:i&&(s=Math.round(65535*s)),e.setUint16(o,s,!0);break;case 5131:e.setUint16(o,(0,r.ToHalfFloat)(s),!0);break;case 5124:e.setInt32(o,s,!0);break;case 5125:e.setUint32(o,s,!0);break;case 5126:e.setFloat32(o,s,!0);break;default:throw Error(`Invalid component type ${t}`)}}(d,n,o,l,f[e]);t+=i}}}e.s(["CopyFloatData",0,function(e,r,i,n,a,l,c,u){let f=r*o(i),d=c*r;if(u.length!==d)throw Error("Output length is not valid");if(5126!==i||a!==f)return void s(e,n,a,r,i,d,l,(e,t)=>{for(let o=0;o<r;o++)u[t+o]=e[o]});if(e instanceof Array){let t=n/4;u.set(e,t)}else if(ArrayBuffer.isView(e)){let r=e.byteOffset+n;if((3&r)!=0){t.Logger.Warn("Float array must be aligned to 4-bytes border"),u.set(new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)));return}let o=new Float32Array(e.buffer,r,d);u.set(o)}else{let t=new Float32Array(e,n,d);u.set(t)}},"EnumerateFloatValues",0,s,"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,i,n,a,l,c,u){let f=r*o(i),d=c*r;if(5126!==i||a!==f){let t=new Float32Array(d);return s(e,n,a,r,i,d,l,(e,o)=>{for(let i=0;i<r;i++)t[o+i]=e[i]}),t}if(!(e instanceof Array||e instanceof Float32Array)||0!==n||e.length!==d)if(e instanceof Array){let t=n/4;return e.slice(t,t+d)}else{if(!ArrayBuffer.isView(e))return new Float32Array(e,n,d);let r=e.byteOffset+n;return((3&r)!=0&&(t.Logger.Warn("Float array must be aligned to 4-bytes border"),u=!0),u)?new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)):new Float32Array(e.buffer,r,d)}return u?e.slice():e},"GetTypeByteLength",0,o,"GetTypedArrayConstructor",0,i,"GetTypedArrayData",0,function(e,r,n,a,l,c,u){let f,d=o(n),g=i(n),p=c*r;if(Array.isArray(e)){if((3&a)!=0||(3&l)!=0)throw Error("byteOffset and byteStride must be a multiple of 4 for number[] data.");let t=a/4,o=l/4;if(t+(c-1)*o+r>e.length)throw Error("Last accessed index is out of bounds.");if(o<r)throw Error("Data stride cannot be smaller than the component size.");if(o!==r){let t=new g(p);return s(e,a,l,r,n,p,!1,(e,o)=>{for(let i=0;i<r;i++)t[o+i]=e[i]}),t}return new g(e.slice(t,t+p))}let h=a;if(ArrayBuffer.isView(e)?(f=e.buffer,h+=e.byteOffset):f=e,h+(c-1)*l+r*d>f.byteLength)throw Error("Last accessed byte is out of bounds.");let m=r*d;if(l<m)throw Error("Byte stride cannot be smaller than the component's byte size.");if(l!==m){let e=new g(p),t=new Uint8Array(f,h),o=new Uint8Array(e.buffer),i=r*d;for(let e=0,r=0,s=0;e<c;e++,r+=l,s+=i)o.set(t.subarray(r,r+i),s);return e}return(1!==d&&(h&d-1)!=0&&(t.Logger.Warn("Array must be aligned to border of element size. Data will be copied."),u=!0),u)?new g(f.slice(h,h+p*d)):new g(f,h,p)}])},14958,e=>{"use strict";let t;var r=e.i(98207),o=e.i(36460),i=e.i(3864),s=e.i(24340),n=e.i(4064),a=e.i(49165),l=e.i(1229),c=e.i(23003),u=e.i(98955),f=e.i(55644),d=e.i(16347),g=e.i(44816),p=e.i(83592);let h=new RegExp(/^data:([^,]+\/[^,]+)?;base64,/i);class m extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.LoadFileError),this.name="LoadFileError",a.BaseError._setPrototypeOf(this,m.prototype),t instanceof r.WebRequest?this.request=t:this.file=t}}class y extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.RequestFileError),this.request=t,this.name="RequestFileError",a.BaseError._setPrototypeOf(this,y.prototype)}}class v extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.ReadFileError),this.file=t,this.name="ReadFileError",a.BaseError._setPrototypeOf(this,v.prototype)}}let b={DefaultRetryStrategy:n.RetryStrategy.ExponentialBackoff(),BaseUrl:"",CorsBehavior:"anonymous",PreprocessUrl:e=>e,ScriptBaseUrl:"",ScriptPreprocessUrl:e=>e,CleanUrl:e=>e=e.replace(/#/gm,"%23")},P=(e,t)=>{if((!e||0!==e.indexOf("data:"))&&b.CorsBehavior)if("string"==typeof b.CorsBehavior||b.CorsBehavior instanceof String)t.crossOrigin=b.CorsBehavior;else{let r=b.CorsBehavior(e);r&&(t.crossOrigin=r)}},A=(e,t,o,i,n="",a,u=c.EngineStore.LastCreatedEngine)=>{let f;if("u"<typeof HTMLImageElement&&!u?._features.forceBitmapOverHTMLImageElement)return o("LoadImage is only supported in web or BabylonNative environments."),null;let d=!1;if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))if("u">typeof Blob&&"u">typeof URL){let t;t=e instanceof ArrayBuffer?e:(0,p.GetBlobBufferSource)(e),f=URL.createObjectURL(new Blob([t],{type:n})),d=!0}else f=`data:${n};base64,`+(0,l.EncodeArrayBufferToBase64)(e);else e instanceof Blob?(f=URL.createObjectURL(e),d=!0):(f=b.CleanUrl(e),f=b.PreprocessUrl(f));let g=t=>{if(o){let r=f||e.toString();o(`Error while trying to load image: ${0===r.indexOf("http")||r.length<=128?r:r.slice(0,128)+"..."}`,t)}};if(u?._features.forceBitmapOverHTMLImageElement)return U(f,r=>{u.createImageBitmap(new Blob([r],{type:n}),{premultiplyAlpha:"none",colorSpaceConversion:"none",...a}).then(e=>{t(e),d&&URL.revokeObjectURL(f)}).catch(t=>{o&&o("Error while trying to load image: "+e,t)})},void 0,i||void 0,!0,(e,t)=>{g(t)}),null;let h=new Image;!1;P(f,h);let m=[],y=()=>{for(let e of m)e.target.removeEventListener(e.name,e.handler);m.length=0};for(let e of(m.push({target:h,name:"load",handler:()=>{y(),t(h),d&&h.src&&URL.revokeObjectURL(h.src)}}),m.push({target:h,name:"error",handler:e=>{y(),g(e),d&&h.src&&URL.revokeObjectURL(h.src)}}),m.push({target:document,name:"securitypolicyviolation",handler:e=>{if(e.blockedURI!==h.src||"report"===e.disposition)return;y();let t=Error(`CSP violation of policy ${e.effectiveDirective} ${e.blockedURI}. Current policy is ${e.originalPolicy}`);c.EngineStore.UseFallbackTexture=!1,g(t),d&&h.src&&URL.revokeObjectURL(h.src),h.src=""}}),m))e.target.addEventListener(e.name,e.handler);let v="blob:"===f.substring(0,5),A="data:"===f.substring(0,5),C=()=>{v||A||!r.WebRequest.IsCustomRequestAvailable?h.src=f:U(f,(e,t,r)=>{let o=new Blob([e],{type:!n&&r?r:n}),i=URL.createObjectURL(o);d=!0,h.src=i},void 0,i||void 0,!0,(e,t)=>{g(t)})};if(!v&&!A&&i&&i.enableTexturesOffline)i.open(()=>{i&&i.loadImage(f,h)},C);else{if(-1!==f.indexOf("file:")){let e=decodeURIComponent(f.substring(5).toLowerCase());if(s.FilesInputStore.FilesToLoad[e]&&"u">typeof URL){try{let t;try{t=URL.createObjectURL(s.FilesInputStore.FilesToLoad[e])}catch(r){t=URL.createObjectURL(s.FilesInputStore.FilesToLoad[e])}h.src=t,d=!0}catch(e){h.src=""}return h}}C()}return h},C=(e,t,r,o,s)=>{let n=new FileReader,a={onCompleteObservable:new i.Observable,abort:()=>n.abort()};return n.onloadend=()=>a.onCompleteObservable.notifyObservers(a),s&&(n.onerror=()=>{s(new v(`Unable to read ${e.name}`,e))}),n.onload=e=>{t(e.target.result)},r&&(n.onprogress=r),o?n.readAsArrayBuffer(e):n.readAsText(e),a},U=(e,t,r,o,n,a,l)=>{if(e.name)return C(e,t,r,n,a?e=>{a(void 0,e)}:void 0);if(-1!==e.indexOf("file:")){let o=decodeURIComponent(e.substring(5).toLowerCase());0===o.indexOf("./")&&(o=o.substring(2));let i=s.FilesInputStore.FilesToLoad[o];if(i)return C(i,t,r,n,a?e=>a(void 0,new m(e.message,e.file)):void 0)}let{match:c,type:u}=T(e);if(c){let r={onCompleteObservable:new i.Observable,abort:()=>()=>{}};try{let r=n?x(e):E(e);t(r,void 0,u)}catch(e){a?a(void 0,e):d.Logger.Error(e.message||"Failed to parse the Data URL")}return g.TimingTools.SetImmediate(()=>{r.onCompleteObservable.notifyObservers(r)}),r}return K(e,(e,r)=>{t(e,r?.responseURL,r?.getResponseHeader("content-type"))},r,o,n,a?e=>{a(e.request,new m(e.message,e.request))}:void 0,l)},K=(e,t,s,n,a,l,u)=>{null!==n&&(n??(n=c.EngineStore.LastCreatedScene?.offlineProvider)),e=b.CleanUrl(e),e=b.PreprocessUrl(e);let f=b.BaseUrl+e,g=!1,p={onCompleteObservable:new i.Observable,abort:()=>g=!0},h=()=>{let e,i=new r.WebRequest,n=null,c=()=>{i&&(s&&i.removeEventListener("progress",s),e&&i.removeEventListener("readystatechange",e),i.removeEventListener("loadend",h))},h=()=>{c(),p.onCompleteObservable.notifyObservers(p),p.onCompleteObservable.clear(),s=void 0,e=null,h=null,l=void 0,u=void 0,t=void 0};p.abort=()=>{g=!0,h&&h(),i&&i.readyState!==(XMLHttpRequest.DONE||4)&&i.abort(),null!==n&&(clearTimeout(n),n=null),i=null};let m=e=>{let t=e.message||"Unknown error";l&&i?l(new y(t,i)):d.Logger.Error(t)},v=d=>{if(i){if(i.open("GET",f),u)try{u(i)}catch(e){m(e);return}a&&(i.responseType="arraybuffer"),s&&i.addEventListener("progress",s),h&&i.addEventListener("loadend",h),e=()=>{if(!g&&i&&i.readyState===(XMLHttpRequest.DONE||4)){if(e&&i.removeEventListener("readystatechange",e),i.status>=200&&i.status<300||0===i.status&&(!(0,o.IsWindowObjectExist)()||L())){let e=a?i.response:i.responseText;if(null!==e){try{t&&t(e,i)}catch(e){m(e)}return}}let s=b.DefaultRetryStrategy;if(s){let e=s(f,i,d);if(-1!==e){c(),i=new r.WebRequest,n=setTimeout(()=>v(d+1),e);return}}let u=new y("Error status: "+i.status+" "+i.statusText+" - Unable to load "+f,i);l&&l(u)}},i.addEventListener("readystatechange",e),i.send()}};v(0)};if(n&&n.enableSceneOffline&&!e.startsWith("blob:")){let r=e=>{e&&e.status>400?l&&l(e):h()};n.open(()=>{n&&n.loadFile(b.BaseUrl+e,e=>{!g&&t&&t(e),p.onCompleteObservable.notifyObservers(p)},s?e=>{!g&&s&&s(e)}:void 0,r,a)},r)}else h();return p},L=()=>"u">typeof location&&"file:"===location.protocol,F=e=>h.test(e),T=e=>{let t=h.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,l.DecodeBase64ToBinary)(e.split(",")[1])}let E=e=>(0,l.DecodeBase64ToString)(e.split(",")[1]),B=!1;e.s(["DecodeBase64UrlToBinary",0,x,"FileToolsOptions",0,b,"GetMimeType",0,e=>{let{match:t,type:r}=T(e);if(t)return r||void 0;let o=e.lastIndexOf(".");switch(e.substring(o+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,F,"LoadFile",0,U,"LoadFileError",0,m,"LoadImage",0,A,"ReadFile",0,C,"RegisterFileTools",0,function(){!B&&(B=!0,Object.defineProperty(t={DecodeBase64UrlToBinary:x,DecodeBase64UrlToString:E,DefaultRetryStrategy:b.DefaultRetryStrategy,BaseUrl:b.BaseUrl,CorsBehavior:b.CorsBehavior,PreprocessUrl:b.PreprocessUrl,IsBase64DataUrl:F,IsFileURL:L,LoadFile:U,LoadImage:A,ReadFile:C,RequestFile:K,SetCorsBehavior:P},"DefaultRetryStrategy",{get:function(){return b.DefaultRetryStrategy},set:function(e){b.DefaultRetryStrategy=e}}),Object.defineProperty(t,"BaseUrl",{get:function(){return b.BaseUrl},set:function(e){b.BaseUrl=e}}),Object.defineProperty(t,"PreprocessUrl",{get:function(){return b.PreprocessUrl},set:function(e){b.PreprocessUrl=e}}),Object.defineProperty(t,"CorsBehavior",{get:function(){return b.CorsBehavior},set:function(e){b.CorsBehavior=e}}),u.EngineFunctionContext.loadFile=U,u.EngineFunctionContext.loadImage=A,f._FunctionContainer.loadFile=U)},"RequestFile",0,K,"SetCorsBehavior",0,P])},85050,e=>{"use strict";let t={},r={};e.s(["_IsSideEffectImplemented",0,function(e){return!!e&&!e.__isSideEffectStub},"_MissingSideEffect",0,function(e,t,o=!1){let i=function(){if(o&&1){let o=`${e}.${t}`;r[o]||(r[o]=!0,console.warn(`[Babylon.js] ${o}() requires a side-effect import. See: https://doc.babylonjs.com/setup/treeshaking`))}};return i.__isSideEffectStub=!0,i},"_MissingSideEffectProperty",0,function(e,t){return{get(){},set(e){Object.defineProperty(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0}},"_WarnImport",0,function(e,r=!1){if(!r||!t[e])return t[e]=!0,`${e} needs to be imported before as it contains a side-effect required by your code.`}])},98955,55644,e=>{"use strict";var t=e.i(85050);let r={};function o(e,t,r,o){if(e){t?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,r?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,o?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return t&&(e+="#define IS_NDC_HALF_ZRANGE"),r&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),o&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}e.s(["EngineFunctionContext",0,r,"_ConcatenateShader",0,function(e,t,r=""){return r+(t?t+"\n":"")+e},"_GetGlobalDefines",0,o,"_LoadFile",0,function(e,o,i,s,n,a,l){let c=l||r.loadFile;if(!c)throw(0,t._WarnImport)("FileTools");return c(e,o,i,s,n,a)},"allocateAndCopyTypedBuffer",0,function(e,t,r=!1,o){switch(e){case 3:{let e=new Int8Array(t);return o&&e.set(new Int8Array(o)),e}case 0:{let e=new Uint8Array(t);return o&&e.set(new Uint8Array(o)),e}case 4:{let e=new Int16Array("number"!=typeof t?t:r?t/2:t);return o&&e.set(new Int16Array(o)),e}case 5:case 8:case 9:case 10:case 2:{let e=new Uint16Array("number"!=typeof t?t:r?t/2:t);return o&&e.set(new Uint16Array(o)),e}case 6:{let e=new Int32Array("number"!=typeof t?t:r?t/4:t);return o&&e.set(new Int32Array(o)),e}case 7:case 11:case 12:case 13:case 14:case 15:{let e=new Uint32Array("number"!=typeof t?t:r?t/4:t);return o&&e.set(new Uint32Array(o)),e}case 1:{let e=new Float32Array("number"!=typeof t?t:r?t/4:t);return o&&e.set(new Float32Array(o)),e}}let i=new Uint8Array(t);return o&&i.set(new Uint8Array(o)),i}],98955);class i{constructor(){this.children=[]}isValid(e){return!0}process(e,t,r){let o="";if(this.line){let r=this.line,i=t.processor;if(i){i.lineProcessor&&(r=i.lineProcessor(r,t.isFragment,t.processingContext));let o=t.processor?.attributeKeywordName??"attribute",s=t.isFragment&&t.processor?.varyingFragmentKeywordName?t.processor?.varyingFragmentKeywordName:!t.isFragment&&t.processor?.varyingVertexKeywordName?t.processor?.varyingVertexKeywordName:"varying";!t.isFragment&&i.attributeProcessor&&this.line.startsWith(o)?r=i.attributeProcessor(this.line,e,t.processingContext):i.varyingProcessor&&(i.varyingCheck?.(this.line,t.isFragment)||!i.varyingCheck&&this.line.startsWith(s))?r=i.varyingProcessor(this.line,t.isFragment,e,t.processingContext):i.uniformProcessor&&i.uniformRegexp&&i.uniformRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(r=i.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):i.uniformBufferProcessor&&i.uniformBufferRegexp&&i.uniformBufferRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(r=i.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0):i.textureProcessor&&i.textureRegexp&&i.textureRegexp.test(this.line)?r=i.textureProcessor(this.line,t.isFragment,e,t.processingContext):(i.uniformProcessor||i.uniformBufferProcessor)&&this.line.startsWith("uniform")&&!t.lookForClosingBracketForUniformBuffer&&(/uniform\s+(?:(?:highp)?|(?:lowp)?)\s*(\S+)\s+(\S+)\s*;/.test(this.line)?i.uniformProcessor&&(r=i.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):i.uniformBufferProcessor&&(r=i.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0)),t.lookForClosingBracketForUniformBuffer&&-1!==this.line.indexOf("}")&&(t.lookForClosingBracketForUniformBuffer=!1,i.endOfUniformBufferProcessor&&(r=i.endOfUniformBufferProcessor(this.line,t.isFragment,t.processingContext)))}o+=r+"\n"}for(let i of this.children)o+=i.process(e,t,r);return this.additionalDefineKey&&(e[this.additionalDefineKey]=this.additionalDefineValue||"true",r[this.additionalDefineKey]=e[this.additionalDefineKey]),o}}class s{constructor(){this._lines=[]}get currentLine(){return this._lines[this.lineIndex]}get canRead(){return this.lineIndex<this._lines.length-1}set lines(e){for(let t of(this._lines.length=0,e)){if(!t||"\r"===t)continue;if("#"===t[0]){this._lines.push(t);continue}let e=t.trim();if(!e)continue;if(e.startsWith("//")){this._lines.push(t);continue}let r=e.indexOf(";");if(-1===r)this._lines.push(e);else if(r===e.length-1)e.length>1&&this._lines.push(e);else{let e=t.split(";");for(let t=0;t<e.length;t++){let r=e[t];r&&(r=r.trim())&&this._lines.push(r+(t!==e.length-1?";":""))}}}}}class n extends i{process(e,t,r){for(let o=0;o<this.children.length;o++){let i=this.children[o];if(i.isValid(e))return i.process(e,t,r)}return""}}class a extends i{isValid(e){return this.testExpression.isTrue(e)}}class l{isTrue(e){return!0}static postfixToInfix(e){let t=[];for(let r of e)if(void 0===l._OperatorPriority[r])t.push(r);else{let e=t[t.length-1],o=t[t.length-2];t.length-=2,t.push(`(${o}${r}${e})`)}return t[t.length-1]}static infixToPostfix(e){let t=l._InfixToPostfixCache.get(e);if(t)return t.accessTime=Date.now(),t.result;if(!e.includes("&&")&&!e.includes("||")&&!e.includes(")")&&!e.includes("("))return[e];let r=[],o=-1,i=()=>{""!==(u=u.trim())&&(r.push(u),u="")},s=e=>{o<l._Stack.length-1&&(l._Stack[++o]=e)},n=()=>l._Stack[o],a=()=>-1===o?"!!INVALID EXPRESSION!!":l._Stack[o--],c=0,u="";for(;c<e.length;){let t=e.charAt(c),f=c<e.length-1?e.substring(c,2+c):"";if("("===t)u="",s(t);else if(")"===t){for(i();-1!==o&&"("!==n();)r.push(a());a()}else if(l._OperatorPriority[f]>1){for(i();-1!==o&&l._OperatorPriority[n()]>=l._OperatorPriority[f];)r.push(a());s(f),c++}else u+=t;c++}for(i();-1!==o;)"("===n()?a():r.push(a());return l._InfixToPostfixCache.size>=l.InfixToPostfixCacheLimitSize&&l.ClearCache(),l._InfixToPostfixCache.set(e,{result:r,accessTime:Date.now()}),r}static ClearCache(){let e=Array.from(l._InfixToPostfixCache.entries()).sort((e,t)=>e[1].accessTime-t[1].accessTime);for(let t=0;t<l.InfixToPostfixCacheCleanupSize;t++)l._InfixToPostfixCache.delete(e[t][0])}}l.InfixToPostfixCacheLimitSize=5e4,l.InfixToPostfixCacheCleanupSize=25e3,l._InfixToPostfixCache=new Map,l._OperatorPriority={")":0,"(":1,"||":2,"&&":3},l._Stack=["","","","","","","","","","","","","","","","","","","",""];class c extends l{constructor(e,t=!1){super(),this.define=e,this.not=t}isTrue(e){let t=void 0!==e[this.define];return this.not&&(t=!t),t}}class u extends l{isTrue(e){return this.leftOperand.isTrue(e)||this.rightOperand.isTrue(e)}}class f extends l{isTrue(e){return this.leftOperand.isTrue(e)&&this.rightOperand.isTrue(e)}}class d extends l{constructor(e,t,r){super(),this.define=e,this.operand=t,this.testValue=r}toString(){return`${this.define} ${this.operand} ${this.testValue}`}isTrue(e){let t=!1,r=parseInt(void 0!=e[this.define]?e[this.define]:this.define),o=parseInt(void 0!=e[this.testValue]?e[this.testValue]:this.testValue);if(isNaN(r)||isNaN(o))return!1;switch(this.operand){case">":t=r>o;break;case"<":t=r<o;break;case"<=":t=r<=o;break;case">=":t=r>=o;break;case"==":t=r===o;break;case"!=":t=r!==o}return t}}let g=/defined\s*?\((.+?)\)/g,p=/defined\s*?\[(.+?)\]/g,h=/#include\s?<(.+)>(\((.*)\))*(\[(.*)\])*/g,m=/__decl__/,y=/light\{X\}.(\w*)/g,v=/\{X\}/g,b=[],P=/(#ifdef)|(#else)|(#elif)|(#endif)|(#ifndef)|(#if)/;function A(e){let t=/defined\((.+)\)/.exec(e);if(t&&t.length)return new c(t[1].trim(),"!"===e[0]);let r="",o=0;for(r of["==","!=",">=","<=","<",">"])if((o=e.indexOf(r))>-1)break;if(-1===o)return new c(e);let i=e.substring(0,o).trim(),s=e.substring(o+r.length).trim();return new d(i,r,s)}function C(e,t){let r=new a,o=e.substring(0,t),i=e.substring(t);return i=i.substring(0,(i.indexOf("//")+1||i.length+1)-1).trim(),"#ifdef"===o?r.testExpression=new c(i):"#ifndef"===o?r.testExpression=new c(i,!0):r.testExpression=function(e){e=e.replace(g,"defined[$1]");let t=l.infixToPostfix(e),r=[];for(let e of t)if("||"!==e&&"&&"!==e)r.push(e);else if(r.length>=2){let t=r[r.length-1],o=r[r.length-2];r.length-=2;let i="&&"==e?new f:new u;"string"==typeof t&&(t=t.replace(p,"defined($1)")),"string"==typeof o&&(o=o.replace(p,"defined($1)")),i.leftOperand="string"==typeof o?A(o):o,i.rightOperand="string"==typeof t?A(t):t,r.push(i)}let o=r[r.length-1];return"string"==typeof o&&(o=o.replace(p,"defined($1)")),"string"==typeof o?A(o):o}(i),r}function U(e,t,r,o){let s;for(;K(e,r,o);){let n=(s=e.currentLine).substring(0,5).toLowerCase();if("#else"===n){let r=new i;t.children.push(r),K(e,r,o);return}if("#elif"===n){let e=C(s,5);t.children.push(e),r=e}}}function K(e,t,r){for(;e.canRead;){e.lineIndex++;let o=e.currentLine;if(o.indexOf("#")>=0){let i=P.exec(o);if(i&&i.length){switch(i[0]){case"#ifdef":{let i=new n;t.children.push(i);let s=C(o,6);i.children.push(s),U(e,i,s,r);break}case"#else":case"#elif":return!0;case"#endif":return!1;case"#ifndef":{let i=new n;t.children.push(i);let s=C(o,7);i.children.push(s),U(e,i,s,r);break}case"#if":{let i=new n,s=C(o,3);t.children.push(i),i.children.push(s),U(e,i,s,r)}}continue}}let s=new i;if(s.line=o,t.children.push(s),"#"===o[0]&&"d"===o[1]){let e=o.replace(";","").split(" ");s.additionalDefineKey=e[1],3===e.length&&(s.additionalDefineValue=e[2])}}return!1}function L(e,t,r){let o;for(b.length=0;null!==(o=h.exec(e));)b.push(o);let i=[e],s=!1;for(let e of b){let o=e[1];if(-1!==o.indexOf("__decl__")&&(o=o.replace(m,""),t.supportsUniformBuffers&&(o=o.replace("Vertex","Ubo").replace("Fragment","Ubo")),o+="Declaration"),t.includesShadersStore[o]){let r=t.includesShadersStore[o];if(e[2]){let t=e[3].split(",");for(let e=0;e<t.length;e+=2){let o=RegExp(t[e],"g"),i=t[e+1];r=r.replace(o,i)}}if(e[4]){let o=e[5];if(-1!==o.indexOf("..")){let e=o.split(".."),i=parseInt(e[0]),s=parseInt(e[1]),n=r.slice(0);r="",isNaN(s)&&(s=t.indexParameters[e[1]]);for(let e=i;e<s;e++)t.supportsUniformBuffers||(n=n.replace(y,(e,t)=>t+"{X}")),r+=n.replace(v,e.toString())+"\n"}else t.supportsUniformBuffers||(r=r.replace(y,(e,t)=>t+"{X}")),r=r.replace(v,o)}let n=[];for(let t of i){let o=t.split(e[0]);for(let e=0;e<o.length-1;e++)n.push(o[e]),n.push(r);n.push(o[o.length-1])}i=n,s=s||r.indexOf("#include<")>=0||r.indexOf("#include <")>=0}else{let e=t.shadersRepository+"ShadersInclude/"+o+".fx";F.loadFile(e,e=>{t.includesShadersStore[o]=e,L(i.join(""),t,r)});return}}b.length=0;let n=i.join("");s?L(n.toString(),t,r):r(n)}let F={loadFile:(e,r,o,i,s,n)=>{throw(0,t._WarnImport)("FileTools")}};e.s(["Finalize",0,function(e,t,r){return r.processor&&r.processor.finalizeShaders?r.processor.finalizeShaders(e,t,r.processingContext):{vertexCode:e,fragmentCode:t}},"Initialize",0,function(e){e.processor&&e.processor.initializeShaders&&e.processor.initializeShaders(e.processingContext)},"Process",0,function(e,t,r,n){t.processor?.preProcessShaderCode&&(e=t.processor.preProcessShaderCode(e,t.isFragment)),L(e,t,e=>{t.processCodeAfterIncludes&&(e=t.processCodeAfterIncludes(t.isFragment?"fragment":"vertex",e,t.defines)),r(function(e,t,r){var n;let a,l,c=function(e,t){if(t.processor?.noPrecision)return e;let r=t.shouldUseHighPrecisionShader;return -1===e.indexOf("precision highp float")?e=r?"precision highp float;\n"+e:"precision mediump float;\n"+e:r||(e=e.replace("precision highp float","precision mediump float")),e}(e,t);if(!t.processor||0===t.processor.shaderLanguage&&-1!==c.indexOf("#version 3")&&(c=c.replace("#version 300 es",""),!t.processor.parseGLES3))return c;let u=t.defines,f=function(e,t){let r=e.defines,i={};for(let e of r){let t=e.replace("#define","").replace(";","").trim().split(" ");i[t[0]]=t.length>1?t[1]:""}return e.processor?.shaderLanguage===0&&(i.GL_ES="true"),i.__VERSION__=e.version,i[e.platformName]="true",o(i,t?.isNDCHalfZRange,t?.useReverseDepthBuffer,t?.useExactSrgbConversions),i}(t,r);t.processor.preProcessor&&(c=t.processor.preProcessor(c,u,f,t.isFragment,t.processingContext));let d={};return n=c,a=new i,(l=new s).lineIndex=-1,l.lines=n.split("\n"),K(l,a,d),c=a.process(f,t,d),t.processor.postProcessor&&(c=t.processor.postProcessor(c,u,t.isFragment,t.processingContext,r?{drawBuffersExtensionDisabled:!r.getCaps().drawBuffersExtension}:{},f,d)),r?._features.needShaderCodeInlining&&(c=r.inlineShaderCode(c)),c}(e,t,n),e)})},"ProcessIncludes",0,L,"_FunctionContainer",0,F],55644)},44816,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,o,i=16,s=3e4,n=!0,a)=>{if(n&&r(e,t,o))return null;let l=setInterval(()=>{r(e,t,o)?clearInterval(l):(s-=i)<0&&(clearInterval(l),o?.(Error("Operation timed out after maximum retries. "+(a||"")),!0))},i);return()=>clearInterval(l)}])},87627,e=>{"use strict";var t=e.i(36460);e.s(["PrecisionDate",0,class{static get Now(){return(0,t.IsWindowObjectExist)()&&window.performance&&window.performance.now?window.performance.now():Date.now()}}])},44265,e=>{"use strict";function t(e){let t=r(e),i=o(e);return t-e>e-i?i:t}function r(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function o(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)-(e>>1)}e.s(["FloorPOT",0,o,"GetExponentOfTwo",0,function(e,i,s=2){let n;switch(s){case 1:n=o(e);break;case 2:n=t(e);break;default:n=r(e)}return Math.min(n,i)},"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])},78755,e=>{"use strict";var t=e.i(16347),r=e.i(44520);class o{static Instantiate(e){if(this.RegisteredExternalClasses&&this.RegisteredExternalClasses[e])return this.RegisteredExternalClasses[e];let o=(0,r.GetClass)(e);if(o)return o;t.Logger.Warn(e+" not found, you may have missed an import.");let i=e.split("."),s="u">typeof window?window:"u">typeof globalThis?globalThis:this;for(let e=0,t=i.length;e<t;e++)s=s[i[e]];return"function"!=typeof s?null:s}}o.RegisteredExternalClasses={},e.s(["InstantiationTools",0,o])},92180,6252,e=>{"use strict";var t,r=e.i(3864),o=e.i(36460),i=e.i(16347);let s=(e,t,r)=>!e||e.getClassName&&"Mesh"===e.getClassName()?null:e.getClassName&&("SubMesh"===e.getClassName()||"PhysicsBody"===e.getClassName())?e.clone(t):e.clone?e.clone():Array.isArray(e)?e.slice():r&&"object"==typeof e?{...e}:null;class n{static DeepCopy(e,t,r,o,n=!1){for(let a of function(e){let t=[];do for(let r of Object.getOwnPropertyNames(e))-1===t.indexOf(r)&&t.push(r);while(e=Object.getPrototypeOf(e))return t}(e)){if("_"===a[0]&&(!o||-1===o.indexOf(a))||a.endsWith("Observable")||r&&-1!==r.indexOf(a))continue;let l=e[a],c=typeof l;if("function"!==c)try{if("object"===c)if(l instanceof Uint8Array)t[a]=Uint8Array.from(l);else if(l instanceof Array){if(t[a]=[],l.length>0)if("object"==typeof l[0])for(let e=0;e<l.length;e++){let r=s(l[e],t,n);-1===t[a].indexOf(r)&&t[a].push(r)}else t[a]=l.slice(0)}else t[a]=s(l,t,n);else t[a]=l}catch(e){i.Logger.Warn(e.message)}}}}e.s(["DeepCopier",0,n],6252);var a=e.i(87627),l=e.i(85050),c=e.i(98207),u=e.i(23003),f=e.i(14958),d=e.i(44816),g=e.i(78755),p=e.i(80065),h=e.i(44265);class m{static get BaseUrl(){return f.FileToolsOptions.BaseUrl}static set BaseUrl(e){f.FileToolsOptions.BaseUrl=e}static get CleanUrl(){return f.FileToolsOptions.CleanUrl}static set CleanUrl(e){f.FileToolsOptions.CleanUrl=e}static IsAbsoluteUrl(e){return 0===e.indexOf("//")||!(-1===e.indexOf("://")||-1===e.indexOf(".")||-1===e.indexOf("/")||e.indexOf(":")>e.indexOf("/"))&&(!!(e.indexOf("://")<e.indexOf("."))||0===e.indexOf("data:")||0===e.indexOf("blob:"))}static set ScriptBaseUrl(e){f.FileToolsOptions.ScriptBaseUrl=e}static get ScriptBaseUrl(){return f.FileToolsOptions.ScriptBaseUrl}static set CDNBaseUrl(e){t.ScriptBaseUrl=e,t.AssetBaseUrl=e}static set ScriptPreprocessUrl(e){f.FileToolsOptions.ScriptPreprocessUrl=e}static get ScriptPreprocessUrl(){return f.FileToolsOptions.ScriptPreprocessUrl}static get DefaultRetryStrategy(){return f.FileToolsOptions.DefaultRetryStrategy}static set DefaultRetryStrategy(e){f.FileToolsOptions.DefaultRetryStrategy=e}static get CorsBehavior(){return f.FileToolsOptions.CorsBehavior}static set CorsBehavior(e){f.FileToolsOptions.CorsBehavior=e}static get UseFallbackTexture(){return u.EngineStore.UseFallbackTexture}static set UseFallbackTexture(e){u.EngineStore.UseFallbackTexture=e}static get RegisteredExternalClasses(){return g.InstantiationTools.RegisteredExternalClasses}static set RegisteredExternalClasses(e){g.InstantiationTools.RegisteredExternalClasses=e}static get fallbackTexture(){return u.EngineStore.FallbackTexture}static set fallbackTexture(e){u.EngineStore.FallbackTexture=e}static FetchToRef(e,t,r,o,i,s){let n=((Math.abs(e)*r%r|0)+(Math.abs(t)*o%o|0)*r)*4;s.r=i[n]/255,s.g=i[n+1]/255,s.b=i[n+2]/255,s.a=i[n+3]/255}static Mix(e,t,r){return 0}static Instantiate(e){return g.InstantiationTools.Instantiate(e)}static SetImmediate(e){d.TimingTools.SetImmediate(e)}static IsExponentOfTwo(e){return!0}static FloatRound(e){return Math.fround(e)}static GetFilename(e){let t=e.lastIndexOf("/");return t<0?e:e.substring(t+1)}static GetFolderPath(e,t=!1){let r=e.lastIndexOf("/");return r<0?t?e:"":e.substring(0,r+1)}static ToDegrees(e){return 180*e/Math.PI}static ToRadians(e){return e*Math.PI/180}static SmoothAngleChange(e,t,r=.9){let o=this.ToRadians(e),i=this.ToRadians(t);return this.ToDegrees(Math.atan2((1-r)*Math.sin(i)+r*Math.sin(o),(1-r)*Math.cos(i)+r*Math.cos(o)))}static MakeArray(e,t){return!0!==t&&(void 0===e||null==e)?null:Array.isArray(e)?e:[e]}static GetPointerPrefix(e){return(0,o.IsWindowObjectExist)()&&!window.PointerEvent?"mouse":"pointer"}static SetCorsBehavior(e,t){(0,f.SetCorsBehavior)(e,t)}static SetReferrerPolicyBehavior(e,t){t.referrerPolicy=e}static get PreprocessUrl(){return f.FileToolsOptions.PreprocessUrl}static set PreprocessUrl(e){f.FileToolsOptions.PreprocessUrl=e}static LoadImage(e,t,r,o,i,s){return(0,f.LoadImage)(e,t,r,o,i,s)}static LoadFile(e,t,r,o,i,s){return(0,f.LoadFile)(e,t,r,o,i,s)}static async LoadFileAsync(e,t=!0){return await new Promise((r,o)=>{(0,f.LoadFile)(e,e=>{r(e)},void 0,void 0,t,(e,t)=>{o(t)})})}static GetAssetUrl(e){if(!e)return"";if(t.AssetBaseUrl&&e.startsWith(t._DefaultAssetsUrl)){let r=t.AssetBaseUrl.endsWith("/")?t.AssetBaseUrl.slice(0,-1):t.AssetBaseUrl;return e.replace(t._DefaultAssetsUrl,r)}return e}static GetBabylonScriptURL(e,r){if(!e)return"";if(e.startsWith(t._DefaultCdnUrl)){if(t.ScriptBaseUrl){let r=t.ScriptBaseUrl.endsWith("/")?t.ScriptBaseUrl.slice(0,-1):t.ScriptBaseUrl;e=e.replace(t._DefaultCdnUrl,r)}else if(t._CdnVersion){let r=`${t._DefaultCdnUrl}/v${t._CdnVersion}`;e.startsWith(r)||(e=e.replace(t._DefaultCdnUrl,r))}}return e=t.ScriptPreprocessUrl(e),r&&!t.IsAbsoluteUrl(e)&&(e=t.GetAbsoluteUrl(e)),e}static LoadBabylonScript(e,r,o,i){e=t.GetBabylonScriptURL(e),t.LoadScript(e,r,o)}static async LoadBabylonScriptAsync(e){return e=t.GetBabylonScriptURL(e),await t.LoadScriptAsync(e)}static _LoadScriptNative(e,r,o){_native&&t.LoadFile(e,e=>{try{Function(e).apply(null),r&&r()}catch(e){o&&o("LoadScript Error",e)}},void 0,void 0,!1,(e,t)=>{o&&o("LoadScript Error",t)})}static _LoadScriptWeb(e,t,r,i,s=!1){if("function"==typeof importScripts){try{importScripts(e),t&&t()}catch(t){r?.(`Unable to load script '${e}' in worker`,t)}return}if(!(0,o.IsWindowObjectExist)())return void r?.(`Cannot load script '${e}' outside of a window or a worker`);let n=document.getElementsByTagName("head")[0],a=document.createElement("script");s?(a.setAttribute("type","module"),a.innerText=e):(a.setAttribute("type","text/javascript"),a.setAttribute("src",e)),i&&(a.id=i),a.onload=()=>{t&&t()},a.onerror=t=>{r&&r(`Unable to load script '${e}'`,t)},n.appendChild(a)}static async LoadScriptAsync(e,t){return await new Promise((r,o)=>{this.LoadScript(e,()=>{r()},(e,t)=>{o(t||Error(e))},t)})}static ReadFileAsDataURL(e,t,o){let i=new FileReader,s={onCompleteObservable:new r.Observable,abort:()=>i.abort()};return i.onloadend=()=>{s.onCompleteObservable.notifyObservers(s)},i.onload=e=>{t(e.target.result)},i.onprogress=o,i.readAsDataURL(e),s}static ReadFile(e,t,r,o,i){return(0,f.ReadFile)(e,t,r,o,i)}static FileAsURL(e){let t=new Blob([e]);return window.URL.createObjectURL(t)}static Format(e,t=2){return e.toFixed(t)}static DeepCopy(e,t,r,o){n.DeepCopy(e,t,r,o)}static IsEmpty(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}static RegisterTopRootEvents(e,t){for(let r=0;r<t.length;r++){let o=t[r];e.addEventListener(o.name,o.handler,!1);try{window.parent&&window.parent.addEventListener(o.name,o.handler,!1)}catch(e){}}}static UnregisterTopRootEvents(e,t){for(let r=0;r<t.length;r++){let o=t[r];e.removeEventListener(o.name,o.handler);try{e.parent&&e.parent.removeEventListener(o.name,o.handler)}catch(e){}}}static async DumpFramebuffer(e,t,r,o,i="image/png",s,n){throw(0,l._WarnImport)("DumpTools")}static DumpData(e,t,r,o,i="image/png",s,n=!1,a=!1,c){throw(0,l._WarnImport)("DumpTools")}static async DumpDataAsync(e,t,r,o="image/png",i,s=!1,n=!1,a){throw(0,l._WarnImport)("DumpTools")}static _IsOffScreenCanvas(e){return void 0!==e.convertToBlob}static ToBlob(e,r,o="image/png",i){t._IsOffScreenCanvas(e)||e.toBlob||(e.toBlob=function(e,t,r){setTimeout(()=>{let o=atob(this.toDataURL(t,r).split(",")[1]),i=o.length,s=new Uint8Array(i);for(let e=0;e<i;e++)s[e]=o.charCodeAt(e);e(new Blob([s]))})}),t._IsOffScreenCanvas(e)?e.convertToBlob({type:o,quality:i}).then(e=>r(e)):e.toBlob(function(e){r(e)},o,i)}static DownloadBlob(e,r){if("download"in document.createElement("a")){if(!r){let e=new Date;r="screenshot_"+((e.getFullYear()+"-"+(e.getMonth()+1)).slice(2)+"-"+e.getDate()+"_"+e.getHours()+"-")+("0"+e.getMinutes()).slice(-2)+".png"}t.Download(e,r)}else if(e&&"u">typeof URL){let t=URL.createObjectURL(e),r=window.open("");if(!r)return;let o=r.document.createElement("img");o.onload=function(){URL.revokeObjectURL(t)},o.src=t,r.document.body.appendChild(o)}}static EncodeScreenshotCanvasData(e,r,o="image/png",i,s){if("string"!=typeof i&&r){if(r){if(t._IsOffScreenCanvas(e))return void e.convertToBlob({type:o,quality:s}).then(e=>{let t=new FileReader;t.readAsDataURL(e),t.onloadend=()=>{r(t.result)}});r(e.toDataURL(o,s))}}else this.ToBlob(e,function(e){e&&t.DownloadBlob(e,i),r&&r("")},o,s)}static Download(e,t){if("u"<typeof URL)return;let r=window.URL.createObjectURL(e),o=document.createElement("a");document.body.appendChild(o),o.style.display="none",o.href=r,o.download=t,o.addEventListener("click",()=>{o.parentElement&&o.parentElement.removeChild(o)}),o.click(),window.URL.revokeObjectURL(r)}static BackCompatCameraNoPreventDefault(e){return"boolean"==typeof e[0]?e[0]:"boolean"==typeof e[1]&&e[1]}static CreateScreenshot(e,t,r,o,i="image/png",s=!1,n){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotAsync(e,t,r,o="image/png",i){throw(0,l._WarnImport)("ScreenshotTools")}static CreateScreenshotUsingRenderTarget(e,t,r,o,i="image/png",s=1,n=!1,a,c=!1,u=!1,f=!0,d,g){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotUsingRenderTargetAsync(e,t,r,o="image/png",i=1,s=!1,n,a=!1,c=!1,u=!0,f,d){throw(0,l._WarnImport)("ScreenshotTools")}static RandomId(){return(0,p.RandomGUID)()}static IsBase64(e){return(0,f.IsBase64DataUrl)(e)}static DecodeBase64(e){return(0,f.DecodeBase64UrlToBinary)(e)}static get errorsCount(){return i.Logger.errorsCount}static Log(e){i.Logger.Log(e)}static Warn(e){i.Logger.Warn(e)}static Error(e){i.Logger.Error(e)}static get LogCache(){return i.Logger.LogCache}static ClearLogCache(){i.Logger.ClearLogCache()}static set LogLevels(e){i.Logger.LogLevels=e}static set PerformanceLogLevel(e){(e&t.PerformanceUserMarkLogLevel)===t.PerformanceUserMarkLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(1),t.StartPerformanceCounter=t._StartMarkNative,t.EndPerformanceCounter=t._EndMarkNative):(t.StartPerformanceCounter=t._StartUserMark,t.EndPerformanceCounter=t._EndUserMark):(e&t.PerformanceConsoleLogLevel)===t.PerformanceConsoleLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(2),t.StartPerformanceCounter=t._StartMarkNative,t.EndPerformanceCounter=t._EndMarkNative):(t.StartPerformanceCounter=t._StartPerformanceConsole,t.EndPerformanceCounter=t._EndPerformanceConsole):(t.StartPerformanceCounter=t._StartPerformanceCounterDisabled,t.EndPerformanceCounter=t._EndPerformanceCounterDisabled,_native?.disablePerformanceLogging?.())}static _StartPerformanceCounterDisabled(e,t){}static _EndPerformanceCounterDisabled(e,t){}static _StartUserMark(e,r=!0){if(!t._Performance){if(!(0,o.IsWindowObjectExist)())return;t._Performance=window.performance}r&&t._Performance.mark&&t._Performance.mark(e+"-Begin")}static _EndUserMark(e,r=!0){r&&t._Performance.mark&&(t._Performance.mark(e+"-End"),t._Performance.measure(e,e+"-Begin",e+"-End"))}static _StartPerformanceConsole(e,r=!0){r&&(t._StartUserMark(e,r),console.time&&console.time(e))}static _EndPerformanceConsole(e,r=!0){r&&(t._EndUserMark(e,r),console.timeEnd(e))}static _StartMarkNative(e,r=!0){if(r&&_native?.startPerformanceCounter)if(t._NativePerformanceCounterHandles.has(e))t.Warn(`Performance counter with name ${e} is already started.`);else{let r=_native.startPerformanceCounter(e);t._NativePerformanceCounterHandles.set(e,r)}}static _EndMarkNative(e,r=!0){if(r&&_native?.endPerformanceCounter){let r=t._NativePerformanceCounterHandles.get(e);r?(_native.endPerformanceCounter(r),t._NativePerformanceCounterHandles.delete(e)):t.Warn(`Performance counter with name ${e} was not started.`)}}static get Now(){return a.PrecisionDate.Now}static GetClassName(e,t=!1){let r=null;return!t&&e.getClassName?r=e.getClassName():(e instanceof Object&&(r=(t?e:Object.getPrototypeOf(e)).constructor.__bjsclassName__),r||(r=typeof e)),r}static First(e,t){for(let r of e)if(t(r))return r;return null}static getFullClassName(e,t=!1){let r=null,o=null;if(!t&&e.getClassName)r=e.getClassName();else{if(e instanceof Object){let i=t?e:Object.getPrototypeOf(e);r=i.constructor.__bjsclassName__,o=i.constructor.__bjsmoduleName__}r||(r=typeof e)}return r?(null!=o?o+".":"")+r:null}static async DelayAsync(e){await new Promise(t=>{setTimeout(()=>{t()},e)})}static IsSafari(){return!!(0,o.IsNavigatorAvailable)()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}t=m,m.AssetBaseUrl="",m.UseCustomRequestHeaders=!1,m.CustomRequestHeaders=c.WebRequest.CustomRequestHeaders,m.GetDOMTextContent=o.GetDOMTextContent,m._DefaultCdnUrl="https://cdn.babylonjs.com",m._CdnVersion="9.19.0",m._DefaultAssetsUrl="https://assets.babylonjs.com/core",m.LoadScript="u"<typeof _native?t._LoadScriptWeb:t._LoadScriptNative,m.GetAbsoluteUrl="object"==typeof document?e=>{let t=document.createElement("a");return t.href=e,t.href}:"function"==typeof URL&&"object"==typeof location?e=>new URL(e,location.origin).href:()=>{throw Error("Unable to get absolute URL. Override BABYLON.Tools.GetAbsoluteUrl to a custom implementation for the current context.")},m.NoneLogLevel=i.Logger.NoneLogLevel,m.MessageLogLevel=i.Logger.MessageLogLevel,m.WarningLogLevel=i.Logger.WarningLogLevel,m.ErrorLogLevel=i.Logger.ErrorLogLevel,m.AllLogLevel=i.Logger.AllLogLevel,m.IsWindowObjectExist=o.IsWindowObjectExist,m.PerformanceNoneLogLevel=0,m.PerformanceUserMarkLogLevel=1,m.PerformanceConsoleLogLevel=2,m._NativePerformanceCounterHandles=new Map,m.StartPerformanceCounter=t._StartPerformanceCounterDisabled,m.EndPerformanceCounter=t._EndPerformanceCounterDisabled;class y{constructor(e,t,r,o=0){this.iterations=e,this.index=o-1,this._done=!1,this._fn=t,this._successCallback=r}executeNext(){this._done||(this.index+1<this.iterations?(++this.index,this._fn(this)):this.breakLoop())}breakLoop(){this._done=!0,this._successCallback()}static Run(e,t,r,o=0){let i=new y(e,t,r,o);return i.executeNext(),i}static SyncAsyncForLoop(e,t,r,o,i,s=0){return y.Run(Math.ceil(e/t),o=>{i&&i()?o.breakLoop():setTimeout(()=>{for(let s=0;s<t;++s){let n=o.index*t+s;if(n>=e)break;if(r(n),i&&i()){o.breakLoop();break}}o.executeNext()},s)},o)}}let v=!1;e.s(["AsyncLoop",0,y,"RegisterTools",0,function(){v||(v=!0,m.Mix=h.Mix,m.IsExponentOfTwo=h.IsExponentOfTwo,u.EngineStore.FallbackTexture="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAAExAAIAAAAQAAAATgAAAAAAAABgAAAAAQAAAGAAAAABcGFpbnQubmV0IDQuMC41AP/bAEMABAIDAwMCBAMDAwQEBAQFCQYFBQUFCwgIBgkNCw0NDQsMDA4QFBEODxMPDAwSGBITFRYXFxcOERkbGRYaFBYXFv/bAEMBBAQEBQUFCgYGChYPDA8WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFv/AABEIAQABAAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APH6KKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76CiiigD5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BQooooA+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/voKKKKAPl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76CiiigD5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BQooooA+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/voKKKKAPl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76P//Z")},"Tools",0,m],92180)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18344,e=>{"use strict";let t,s,i,r,a,n,l,o,u,h,_,c,T,d,m,p,g,f,R,A,x,E,S,I,M,F,P,b,y,v,C,D,L,O,N,k,z,U,B,G,W,w,H,V,X,Y,Z,K,Q,j,q,$,J,ee,et,es,ei,er,ea,en,el,eo,eu,eh,e_,ec,eT,ed,em,ep,eg,ef,eR,eA,ex,eE,eS,eI,eM,eF,eP,eb,ey,ev,eC,eD,eL,eO,eN,ek,ez,eU,eB,eG,eW,ew,eH,eV,eX,eY,eZ,eK,eQ,ej,eq,e$,eJ,e0,e1,e3,e2,e4,e5,e6,e8,e7,e9,te,tt,ts,ti,tr,ta,tn,tl,to,tu,th,t_,tc,tT,td,tm,tp,tg,tf,tR,tA,tx,tE,tS,tI,tM,tF,tP,tb,ty,tv,tC,tD,tL,tO,tN,tk,tz,tU,tB,tG,tW,tw,tH,tV,tX,tY,tZ,tK,tQ,tj,tq,t$,tJ,t0,t1,t3,t2,t4,t5,t6,t8,t7,t9,se,st,ss,si,sr,sa,sn,sl,so,su,sh,s_,sc,sT,sd,sm,sp,sg,sf,sR,sA,sx,sE,sS,sI,sM,sF,sP,sb,sy,sv,sC,sD,sL,sO,sN,sk,sz,sU,sB,sG,sW,sw,sH,sV,sX,sY,sZ,sK,sQ,sj,sq,s$,sJ,s0,s1,s3,s2,s4,s5,s6,s8,s7,s9,ie,it,is,ii,ir,ia,il,io,iu,ih,i_,ic,iT,id,im,ip,ig,iR,iA,ix,iE,iS,iI,iM,iF,iP,ib,iy,iv,iC,iD,iL,iO,iN,ik,iz,iU,iB,iG,iW,iw,iH,iV,iX,iY,iZ,iK,iQ,ij,iq,i$,iJ,i0,i1,i3,i2,i4,i5,i6,i8,i7,i9,re,rt,rs,ri,rr;var ra,rn,rl,ro,ru,rh,r_,rc,rT,rd,rm,rp,rg,rf,rR,rA,rx,rE,rS,rI,rM,rF,rP,rb,ry,rv,rC,rD,rL,rO,rN,rk,rz,rU,rB,rG,rW,rw,rH,rV,rX,rY,rZ,rK,rQ,rj,rq,r$,rJ,r0,r1,r3,r2,r4,r5,r6,r8,r7,r9,ae,at,as,ai,ar,aa,an,al,ao,au,ah,a_,ac,aT,ad,am,ap,ag,af,aR,aA,ax,aE,aS,aI,aM,aF,aP,ab,ay,av,aC,aD,aL,aO,aN,ak,az,aU,aB,aG,aW,aw,aH,aV=e.i(57575),aX=e.i(9855),aY=e.i(39218),aZ=e.i(19919),aK=e.i(47779),aQ=e.i(20363),aj=e.i(46533),aq=e.i(2060),a$=e.i(69223),aJ=e.i(30469),a0=e.i(65493),a1=e.i(6949),a3=e.i(24904),a2=e.i(22052),a4=e.i(41041),a5=e.i(84741),a6=e.i(73539),a8=e.i(53876),a7=e.i(16347),a9=e.i(72212),ne=e.i(12186);function nt(e){return class extends e{constructor(){super(...arguments),this.REFLECTION=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_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.INVERTCUBICMAP=!1,this.USESPHERICALFROMREFLECTIONMAP=!1,this.USEIRRADIANCEMAP=!1,this.USE_IRRADIANCE_DOMINANT_DIRECTION=!1,this.USESPHERICALINVERTEX=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.LODINREFLECTIONALPHA=!1,this.GAMMAREFLECTION=!1,this.RGBDREFLECTION=!1}}}var ns=e.i(69400),ni=e.i(34381),nr=e.i(13099),na=e.i(32451),nn=e.i(92180),nl=e.i(69133),no=e.i(8636),nu=e.i(94559);let nh=!1;class n_ extends nl.RenderTargetTexture{get isSupported(){return this._engine?.getCaps().drawBuffersExtension??!1}get textures(){return this._textures}get count(){return this._count}get depthTexture(){return this._textures[this._textures.length-1]}set wrapU(e){if(this._textures)for(let t=0;t<this._textures.length;t++)this._textures[t].wrapU=e}set wrapV(e){if(this._textures)for(let t=0;t<this._textures.length;t++)this._textures[t].wrapV=e}constructor(e,t,s,i,r,a){const n=!!r&&!!r.generateMipMaps&&r.generateMipMaps,l=!!r&&!!r.generateDepthTexture&&r.generateDepthTexture,o=r&&r.depthTextureFormat?r.depthTextureFormat:15,u=!r||void 0===r.doNotChangeAspectRatio||r.doNotChangeAspectRatio,h=!!r&&!!r.drawOnlyOnFirstAttachmentByDefault&&r.drawOnlyOnFirstAttachmentByDefault;if(super(e,t,i,n,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!0),nh||(nh=!0,nu.ThinEngine.prototype.restoreSingleAttachment=function(){let e=this._gl;this.bindAttachments([e.BACK])},nu.ThinEngine.prototype.restoreSingleAttachmentForRenderTarget=function(){let e=this._gl;this.bindAttachments([e.COLOR_ATTACHMENT0])},nu.ThinEngine.prototype.buildTextureLayout=function(e,t=!1){let s=this._gl,i=[];if(t)i.push(s.BACK);else for(let t=0;t<e.length;t++)e[t]?i.push(s["COLOR_ATTACHMENT"+t]):i.push(s.NONE);return i},nu.ThinEngine.prototype.bindAttachments=function(e){this._gl.drawBuffers(e)},nu.ThinEngine.prototype.unBindMultiColorAttachmentFramebuffer=function(e,t=!1,s){this._currentRenderTarget=null,e.disableAutomaticMSAAResolve||this.resolveMultiFramebuffer(e),t||this.generateMipMapsMultiFramebuffer(e),s&&(e._MSAAFramebuffer&&this._bindUnboundFramebuffer(e._framebuffer),s()),this._bindUnboundFramebuffer(null)},nu.ThinEngine.prototype.createMultipleRenderTarget=function(e,t,s=!0){let i,r=!1,a=!0,n=!1,l=!1,o=1,u=1,h=[],_=[],c=[],T=[],d=[],m=[],p=[],g=[],f=[],R=!1,A=this._createHardwareRenderTargetWrapper(!0,!1,e);void 0!==t&&(r=void 0!==t.generateMipMaps&&t.generateMipMaps,a=void 0===t.generateDepthBuffer||t.generateDepthBuffer,n=void 0!==t.generateStencilBuffer&&t.generateStencilBuffer,l=void 0!==t.generateDepthTexture&&t.generateDepthTexture,o=t.textureCount??1,u=t.samples??u,h=t.types||h,_=t.samplingModes||_,c=t.useSRGBBuffers||c,T=t.formats||T,d=t.targetTypes||d,m=t.faceIndex||m,p=t.layerIndex||p,g=t.layerCounts||g,f=t.labels||f,R=t.dontCreateTextures??!1,this.webGLVersion>1&&(13===t.depthTextureFormat||17===t.depthTextureFormat||16===t.depthTextureFormat||14===t.depthTextureFormat||18===t.depthTextureFormat)&&(i=t.depthTextureFormat)),void 0===i&&(i=n?13:14);let x=this._gl,E=this._currentFramebuffer,S=x.createFramebuffer();this._bindUnboundFramebuffer(S);let I=e.width??e,M=e.height??e,F=[],P=[],b=this.webGLVersion>1&&(13===i||17===i||18===i);A.label=t?.label??"MultiRenderTargetWrapper",A._framebuffer=S,A._generateDepthBuffer=l||a,A._generateStencilBuffer=l?b:n,A._depthStencilBuffer=this._setupFramebufferDepthAttachments(A._generateStencilBuffer,A._generateDepthBuffer,I,M,1,i),A._attachments=P;for(let e=0;e<o;e++){let t=_[e]||3,s=h[e]||0,i=c[e]||!1,a=T[e]||5,n=d[e]||3553,l=g[e]??1;(1!==s||this._caps.textureFloatLinearFiltering)&&(2!==s||this._caps.textureHalfFloatLinearFiltering)||(t=1);let o=this._getSamplingParameters(t,r);1!==s||this._caps.textureFloat||(s=0,a7.Logger.Warn("Float textures are not supported. Render target forced to TEXTURETYPE_UNSIGNED_BYTE type")),i=i&&this._caps.supportSRGBBuffers&&(this.webGLVersion>1||this.isWebGPU);let u=this.webGLVersion>1,m=x[u?"COLOR_ATTACHMENT"+e:"COLOR_ATTACHMENT"+e+"_WEBGL"];if(P.push(m),-1===n||R)continue;let p=new no.InternalTexture(this,6);F[e]=p,x.activeTexture(x["TEXTURE"+e]),x.bindTexture(n,p._hardwareTexture.underlyingResource),x.texParameteri(n,x.TEXTURE_MAG_FILTER,o.mag),x.texParameteri(n,x.TEXTURE_MIN_FILTER,o.min),x.texParameteri(n,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(n,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE);let E=this._getRGBABufferInternalSizedFormat(s,a,i),S=this._getInternalFormat(a),b=this._getWebGLTextureType(s);if(u&&(35866===n||32879===n))35866===n?p.is2DArray=!0:p.is3D=!0,p.baseDepth=p.depth=l,x.texImage3D(n,0,E,I,M,l,0,S,b,null);else if(34067===n){for(let e=0;e<6;e++)x.texImage2D(x.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,E,I,M,0,S,b,null);p.isCube=!0}else x.texImage2D(x.TEXTURE_2D,0,E,I,M,0,S,b,null);r&&x.generateMipmap(n),this._bindTextureDirectly(n,null),p.baseWidth=I,p.baseHeight=M,p.width=I,p.height=M,p.isReady=!0,p.samples=1,p.generateMipMaps=r,p.samplingMode=t,p.type=s,p._useSRGBBuffer=i,p.format=a,p.label=f[e]??A.label+"-Texture"+e,this._internalTexturesCache.push(p)}if(l&&this._caps.depthTextureExtension&&!R){let e=new no.InternalTexture(this,14),t=5,s=x.DEPTH_COMPONENT16,a=x.DEPTH_COMPONENT,n=x.UNSIGNED_SHORT,l=x.DEPTH_ATTACHMENT;this.webGLVersion<2?s=x.DEPTH_COMPONENT:14===i?(t=1,n=x.FLOAT,s=x.DEPTH_COMPONENT32F):18===i?(t=0,n=x.FLOAT_32_UNSIGNED_INT_24_8_REV,s=x.DEPTH32F_STENCIL8,a=x.DEPTH_STENCIL,l=x.DEPTH_STENCIL_ATTACHMENT):16===i?(t=0,n=x.UNSIGNED_INT,s=x.DEPTH_COMPONENT24,l=x.DEPTH_ATTACHMENT):(13===i||17===i)&&(t=12,n=x.UNSIGNED_INT_24_8,s=x.DEPTH24_STENCIL8,a=x.DEPTH_STENCIL,l=x.DEPTH_STENCIL_ATTACHMENT),this._bindTextureDirectly(x.TEXTURE_2D,e,!0),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MAG_FILTER,x.NEAREST),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MIN_FILTER,x.NEAREST),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE),x.texImage2D(x.TEXTURE_2D,0,s,I,M,0,a,n,null),x.framebufferTexture2D(x.FRAMEBUFFER,l,x.TEXTURE_2D,e._hardwareTexture.underlyingResource,0),this._bindTextureDirectly(x.TEXTURE_2D,null),A._depthStencilTexture=e,A._depthStencilTextureWithStencil=b,e.baseWidth=I,e.baseHeight=M,e.width=I,e.height=M,e.isReady=!0,e.samples=1,e.generateMipMaps=r,e.samplingMode=1,e.format=i,e.type=t,e.label=A.label+"-DepthStencil",F[o]=e,this._internalTexturesCache.push(e)}if(A.setTextures(F),s&&x.drawBuffers(P),this._bindUnboundFramebuffer(E),A.setLayerAndFaceIndices(p,m),this.resetTextureCache(),R){if(u>1){let e=x.createFramebuffer();if(!e)throw Error("Unable to create multi sampled framebuffer");A._samples=u,A._MSAAFramebuffer=e,o>0&&s&&(this._bindUnboundFramebuffer(e),x.drawBuffers(P),this._bindUnboundFramebuffer(E))}}else this.updateMultipleRenderTargetTextureSampleCount(A,u,s);return A},nu.ThinEngine.prototype.updateMultipleRenderTargetTextureSampleCount=function(e,t,s=!0){if(this.webGLVersion<2||!e)return 1;if(e.samples===t)return t;let i=this._gl;t=Math.min(t,this.getCaps().maxMSAASamples),e._depthStencilBuffer&&(i.deleteRenderbuffer(e._depthStencilBuffer),e._depthStencilBuffer=null),e._MSAAFramebuffer&&(i.deleteFramebuffer(e._MSAAFramebuffer),e._MSAAFramebuffer=null);let r=e._attachments.length;for(let t=0;t<r;t++){let s=e.textures[t]._hardwareTexture;s?.releaseMSAARenderBuffers()}if(t>1&&"function"==typeof i.renderbufferStorageMultisample){let a=i.createFramebuffer();if(!a)throw Error("Unable to create multi sampled framebuffer");e._MSAAFramebuffer=a,this._bindUnboundFramebuffer(a);let n=[];for(let s=0;s<r;s++){let r=e.textures[s],a=r._hardwareTexture,l=i[this.webGLVersion>1?"COLOR_ATTACHMENT"+s:"COLOR_ATTACHMENT"+s+"_WEBGL"],o=this._createRenderBuffer(r.width,r.height,t,-1,this._getRGBABufferInternalSizedFormat(r.type,r.format,r._useSRGBBuffer),l);if(!o)throw Error("Unable to create multi sampled framebuffer");a.addMSAARenderBuffer(o),r.samples=t,n.push(l)}s&&i.drawBuffers(n)}else this._bindUnboundFramebuffer(e._framebuffer);let a=e._depthStencilTexture?e._depthStencilTexture.format:void 0;return e._depthStencilBuffer=this._setupFramebufferDepthAttachments(e._generateStencilBuffer,e._generateDepthBuffer,e.width,e.height,t,a),this._bindUnboundFramebuffer(null),e._samples=t,t},nu.ThinEngine.prototype.generateMipMapsMultiFramebuffer=function(e){let t=this._gl;if(e.isMulti)for(let s=0;s<e._attachments.length;s++){let i=e.textures[s];!i?.generateMipMaps||i?.isCube||i?.is3D||(this._bindTextureDirectly(t.TEXTURE_2D,i,!0),t.generateMipmap(t.TEXTURE_2D),this._bindTextureDirectly(t.TEXTURE_2D,null))}},nu.ThinEngine.prototype.resolveMultiFramebuffer=function(e){let t=this._gl;if(!e._MSAAFramebuffer||!e.isMulti)return;let s=e.resolveMSAAColors?t.COLOR_BUFFER_BIT:0;s|=e._generateDepthBuffer&&e.resolveMSAADepth?t.DEPTH_BUFFER_BIT:0,s|=e._generateStencilBuffer&&e.resolveMSAAStencil?t.STENCIL_BUFFER_BIT:0;let i=e._attachments,r=i.length;t.bindFramebuffer(t.READ_FRAMEBUFFER,e._MSAAFramebuffer),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,e._framebuffer);for(let a=0;a<r;a++){let n=e.textures[a];for(let e=0;e<r;e++)i[e]=t.NONE;i[a]=t[this.webGLVersion>1?"COLOR_ATTACHMENT"+a:"COLOR_ATTACHMENT"+a+"_WEBGL"],t.readBuffer(i[a]),t.drawBuffers(i),t.blitFramebuffer(0,0,n.width,n.height,0,0,n.width,n.height,s,t.NEAREST)}for(let e=0;e<r;e++)i[e]=t[this.webGLVersion>1?"COLOR_ATTACHMENT"+e:"COLOR_ATTACHMENT"+e+"_WEBGL"];t.drawBuffers(i),t.bindFramebuffer(this._gl.FRAMEBUFFER,e._MSAAFramebuffer)}),!this.isSupported)return void this.dispose();this._textureNames=a;const _=[],c=[],T=[],d=[],m=[],p=[],g=[],f=[];this._initTypes(s,_,c,T,d,m,p,g,f,r);const R=!r||void 0===r.generateDepthBuffer||r.generateDepthBuffer,A=!!r&&void 0!==r.generateStencilBuffer&&r.generateStencilBuffer,x=r&&r.samples?r.samples:1;this._multiRenderTargetOptions={samplingModes:c,generateMipMaps:n,generateDepthBuffer:R,generateStencilBuffer:A,generateDepthTexture:l,depthTextureFormat:o,types:_,textureCount:s,useSRGBBuffers:T,samples:x,formats:d,targetTypes:m,faceIndex:p,layerIndex:g,layerCounts:f,labels:a,label:e},this._count=s,this._drawOnlyOnFirstAttachmentByDefault=h,s>0&&(this._createInternalTextures(),this._createTextures(a))}_initTypes(e,t,s,i,r,a,n,l,o,u){for(let h=0;h<e;h++)u&&u.types&&void 0!==u.types[h]?t.push(u.types[h]):t.push(u&&u.defaultType?u.defaultType:0),u&&u.samplingModes&&void 0!==u.samplingModes[h]?s.push(u.samplingModes[h]):s.push(aQ.Texture.BILINEAR_SAMPLINGMODE),u&&u.useSRGBBuffers&&void 0!==u.useSRGBBuffers[h]?i.push(u.useSRGBBuffers[h]):i.push(!1),u&&u.formats&&void 0!==u.formats[h]?r.push(u.formats[h]):r.push(5),u&&u.targetTypes&&void 0!==u.targetTypes[h]?a.push(u.targetTypes[h]):a.push(3553),u&&u.faceIndex&&void 0!==u.faceIndex[h]?n.push(u.faceIndex[h]):n.push(0),u&&u.layerIndex&&void 0!==u.layerIndex[h]?l.push(u.layerIndex[h]):l.push(0),u&&u.layerCounts&&void 0!==u.layerCounts[h]?o.push(u.layerCounts[h]):o.push(1)}_createInternaTextureIndexMapping(){let e={},t=[];if(!this._renderTarget)return t;let s=this._renderTarget.textures;for(let i=0;i<s.length;i++){let r=s[i];if(!r)continue;let a=e[r.uniqueId];void 0!==a?t[i]=a:e[r.uniqueId]=i}return t}_rebuild(e=!1,t=!1,s){if(this._count<1||e)return;let i=this._createInternaTextureIndexMapping();this.releaseInternalTextures(),this._createInternalTextures(),t&&(this._releaseTextures(),this._createTextures(s));let r=this._renderTarget.textures;for(let e=0;e<r.length;e++){let t=this._textures[e];void 0!==i[e]&&this._renderTarget.setTexture(r[i[e]],e),t._texture=r[e],t._texture&&(t._noMipmap=!t._texture.useMipMaps,t._useSRGBBuffer=t._texture._useSRGBBuffer)}1!==this.samples&&this._renderTarget.setSamples(this.samples,!this._drawOnlyOnFirstAttachmentByDefault,!0)}_createInternalTextures(){this._renderTarget=this._getEngine().createMultipleRenderTarget(this._size,this._multiRenderTargetOptions,!this._drawOnlyOnFirstAttachmentByDefault),this._texture=this._renderTarget.texture}_releaseTextures(){if(this._textures)for(let e=0;e<this._textures.length;e++)this._textures[e]._texture=null,this._textures[e].dispose()}_createTextures(e){let t=this._renderTarget.textures;this._textures=[];for(let s=0;s<t.length;s++){let i=new aQ.Texture(null,this.getScene());e?.[s]&&(i.name=e[s]),i._texture=t[s],i._texture&&(i._noMipmap=!i._texture.useMipMaps,i._useSRGBBuffer=i._texture._useSRGBBuffer),this._textures.push(i)}}setInternalTexture(e,t,s=!0){if(this.renderTarget&&(0===t&&(this._texture=e),this.renderTarget.setTexture(e,t,s),this.textures[t]||(this.textures[t]=new aQ.Texture(null,this.getScene()),this.textures[t].name=this._textureNames?.[t]??this.textures[t].name),this.textures[t]._texture=e,this.textures[t]._noMipmap=!e.useMipMaps,this.textures[t]._useSRGBBuffer=e._useSRGBBuffer,this._count=this.renderTarget.textures?this.renderTarget.textures.length:0,this._multiRenderTargetOptions.types&&(this._multiRenderTargetOptions.types[t]=e.type),this._multiRenderTargetOptions.samplingModes&&(this._multiRenderTargetOptions.samplingModes[t]=e.samplingMode),this._multiRenderTargetOptions.useSRGBBuffers&&(this._multiRenderTargetOptions.useSRGBBuffers[t]=e._useSRGBBuffer),this._multiRenderTargetOptions.targetTypes&&-1!==this._multiRenderTargetOptions.targetTypes[t])){let s;s=e.is2DArray?35866:e.isCube?34067:e.is3D?32879:3553,this._multiRenderTargetOptions.targetTypes[t]=s}}setLayerAndFaceIndex(e,t=-1,s=-1){this.textures[e]&&this.renderTarget&&(this._multiRenderTargetOptions.layerIndex&&(this._multiRenderTargetOptions.layerIndex[e]=t),this._multiRenderTargetOptions.faceIndex&&(this._multiRenderTargetOptions.faceIndex[e]=s),this.renderTarget.setLayerAndFaceIndex(e,t,s))}setLayerAndFaceIndices(e,t){this.renderTarget&&(this._multiRenderTargetOptions.layerIndex=e,this._multiRenderTargetOptions.faceIndex=t,this.renderTarget.setLayerAndFaceIndices(e,t))}get samples(){return this._samples}set samples(e){this._renderTarget?this._samples=this._renderTarget.setSamples(e):this._samples=e}resize(e){this._processSizeParameter(e),this._rebuild(!1,void 0,this._textureNames)}updateCount(e,t,s){this._multiRenderTargetOptions.textureCount=e,this._count=e;let i=[],r=[],a=[],n=[],l=[],o=[],u=[],h=[];this._textureNames=s,this._initTypes(e,i,r,a,n,l,o,u,h,t),this._multiRenderTargetOptions.types=i,this._multiRenderTargetOptions.samplingModes=r,this._multiRenderTargetOptions.useSRGBBuffers=a,this._multiRenderTargetOptions.formats=n,this._multiRenderTargetOptions.targetTypes=l,this._multiRenderTargetOptions.faceIndex=o,this._multiRenderTargetOptions.layerIndex=u,this._multiRenderTargetOptions.layerCounts=h,this._multiRenderTargetOptions.labels=s,this._rebuild(!1,!0,s)}_unbindFrameBuffer(e,t){this._renderTarget&&e.unBindMultiColorAttachmentFramebuffer(this._renderTarget,this.isCube,()=>{this.onAfterRenderObservable.notifyObservers(t)})}dispose(e=!1){this._releaseTextures(),e?this._texture=null:this.releaseInternalTextures(),super.dispose()}releaseInternalTextures(){let e=this._renderTarget?.textures;if(e){for(let t=e.length-1;t>=0;t--)this._textures[t]._texture=null;this._renderTarget?.dispose(),this._renderTarget=null}}}var nc=e.i(85050),nT=e.i(66460),nd=e.i(72051);class nm{constructor(e){this.name=nd.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER,this.scene=e}register(){this.scene._gatherRenderTargetsStage.registerStep(nd.SceneComponentConstants.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER,this,this._gatherRenderTargets)}rebuild(){}dispose(){}_gatherRenderTargets(e){this.scene._geometryBufferRenderer&&e.push(this.scene._geometryBufferRenderer.getGBuffer())}}let np=!1;var ng=e.i(51483);let nf=["diffuseSampler","bumpSampler","reflectivitySampler","albedoSampler","morphTargets","boneSampler","transmissionWeightSampler","subsurfaceWeightSampler","iblShadowSampler"],nR=["world","mBones","viewProjection","diffuseMatrix","view","previousWorld","previousViewProjection","mPreviousBones","bumpMatrix","reflectivityMatrix","albedoMatrix","reflectivityColor","albedoColor","reflectionMatrix","vTransmissionWeight","vSubsurfaceWeight","vEyePosition","vTransmissionScatterAnisotropy","vSubsurfaceScatterAnisotropy","shadowTextureSize","metallic","glossiness","vTangentSpaceParams","vBumpInfos","morphTargetInfluences","morphTargetCount","morphTargetTextureInfo","morphTargetTextureIndices","boneTextureInfo"];class nA{get normalsAreUnsigned(){return this._normalsAreUnsigned}_linkPrePassRenderer(e){this._linkedWithPrePass=!0,this._prePassRenderer=e,this._multiRenderTarget&&(this._multiRenderTarget.onClearObservable.clear(),this._multiRenderTarget.onClearObservable.add(()=>{}))}_unlinkPrePassRenderer(){this._linkedWithPrePass=!1,this._createRenderTargets()}_resetLayout(){this._enableDepth=!0,this._enableNormal=!0,this._enablePosition=!1,this._enableReflectivity=!1,this._enableVelocity=!1,this._enableVelocityLinear=!1,this._enableScreenspaceDepth=!1,this._enableIrradiance=!1,this._attachmentsFromPrePass=[]}_forceTextureType(e,t){e===nA.POSITION_TEXTURE_TYPE?(this._positionIndex=t,this._enablePosition=!0):e===nA.VELOCITY_TEXTURE_TYPE?(this._velocityIndex=t,this._enableVelocity=!0):e===nA.VELOCITY_LINEAR_TEXTURE_TYPE?(this._velocityLinearIndex=t,this._enableVelocityLinear=!0):e===nA.REFLECTIVITY_TEXTURE_TYPE?(this._reflectivityIndex=t,this._enableReflectivity=!0):e===nA.DEPTH_TEXTURE_TYPE?(this._depthIndex=t,this._enableDepth=!0):e===nA.NORMAL_TEXTURE_TYPE?(this._normalIndex=t,this._enableNormal=!0):e===nA.SCREENSPACE_DEPTH_TEXTURE_TYPE?(this._screenspaceDepthIndex=t,this._enableScreenspaceDepth=!0):e===nA.IRRADIANCE_TEXTURE_TYPE&&(this._irradianceIndex=t,this._enableIrradiance=!0)}_setAttachments(e){this._attachmentsFromPrePass=e}_linkInternalTexture(e){this._multiRenderTarget.setInternalTexture(e,0,!1)}get renderList(){return this._multiRenderTarget.renderList}set renderList(e){this._multiRenderTarget.renderList=e}get isSupported(){return this._multiRenderTarget.isSupported}getTextureIndex(e){switch(e){case nA.POSITION_TEXTURE_TYPE:return this._positionIndex;case nA.VELOCITY_TEXTURE_TYPE:return this._velocityIndex;case nA.VELOCITY_LINEAR_TEXTURE_TYPE:return this._velocityLinearIndex;case nA.REFLECTIVITY_TEXTURE_TYPE:return this._reflectivityIndex;case nA.DEPTH_TEXTURE_TYPE:return this._depthIndex;case nA.NORMAL_TEXTURE_TYPE:return this._normalIndex;case nA.SCREENSPACE_DEPTH_TEXTURE_TYPE:return this._screenspaceDepthIndex;case nA.IRRADIANCE_TEXTURE_TYPE:return this._irradianceIndex;default:return -1}}get enableDepth(){return this._enableDepth}set enableDepth(e){this._enableDepth=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableNormal(){return this._enableNormal}set enableNormal(e){this._enableNormal=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enablePosition(){return this._enablePosition}set enablePosition(e){this._enablePosition=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableVelocity(){return this._enableVelocity}set enableVelocity(e){this._enableVelocity=e,e||(this._previousTransformationMatrices={}),this._linkedWithPrePass||(this.dispose(),this._createRenderTargets()),this._scene.needsPreviousWorldMatrices=e}get enableVelocityLinear(){return this._enableVelocityLinear}set enableVelocityLinear(e){this._enableVelocityLinear=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableReflectivity(){return this._enableReflectivity}set enableReflectivity(e){this._enableReflectivity=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableScreenspaceDepth(){return this._enableScreenspaceDepth}set enableScreenspaceDepth(e){this._enableScreenspaceDepth=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableIrradiance(){return this._enableIrradiance}set enableIrradiance(e){this._enableIrradiance=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get scene(){return this._scene}get ratio(){return"object"==typeof this._ratioOrDimensions?1:this._ratioOrDimensions}get shaderLanguage(){return this._shaderLanguage}constructor(e,t=1,s=15,i){this._previousTransformationMatrices={},this._previousBonesTransformationMatrices={},this.excludedSkinnedMeshesFromVelocity=[],this.renderTransparentMeshes=!0,this.generateNormalsInWorldSpace=!1,this._normalsAreUnsigned=!1,this._resizeObserver=null,this._enableDepth=!0,this._enableNormal=!0,this._enablePosition=!1,this._enableVelocity=!1,this._enableVelocityLinear=!1,this._enableReflectivity=!1,this._enableScreenspaceDepth=!1,this._enableIrradiance=!1,this._clearColor=new aZ.Color4(0,0,0,0),this._clearDepthColor=new aZ.Color4(0,0,0,1),this._positionIndex=-1,this._velocityIndex=-1,this._velocityLinearIndex=-1,this._reflectivityIndex=-1,this._depthIndex=-1,this._normalIndex=-1,this._screenspaceDepthIndex=-1,this._irradianceIndex=-1,this._linkedWithPrePass=!1,this.generateIrradianceWithScatterMask=!1,this.useSpecificClearForDepthTexture=!1,this._shaderLanguage=0,this._shadersLoaded=!1,this._scene=e,this._ratioOrDimensions=t,this._useUbo=e.getEngine().supportsUniformBuffers,this._depthFormat=s,this._textureTypesAndFormats=i||{},this._initShaderSourceAsync(),function(e){np||(np=!0,Object.defineProperty(nT.Scene.prototype,"geometryBufferRenderer",{get:function(){return this._geometryBufferRenderer},set:function(e){e&&e.isSupported&&(this._geometryBufferRenderer=e)},enumerable:!0,configurable:!0}),nT.Scene.prototype.enableGeometryBufferRenderer=function(t=1,s=15,i){return this._geometryBufferRenderer||(this._geometryBufferRenderer=new e(this,t,s,i),this._geometryBufferRenderer.isSupported||(this._geometryBufferRenderer=null)),this._geometryBufferRenderer},nT.Scene.prototype.disableGeometryBufferRenderer=function(){this._geometryBufferRenderer&&(this._geometryBufferRenderer.dispose(),this._geometryBufferRenderer=null)},e._SceneComponentInitialization=e=>{let t=e._getComponent(nd.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER);t||(t=new nm(e),e._addComponent(t))})}(nA),nA._SceneComponentInitialization(this._scene),this._createRenderTargets()}async _initShaderSourceAsync(){this._scene.getEngine().isWebGPU&&!nA.ForceGLSL?(this._shaderLanguage=1,await Promise.all([e.A(78790),e.A(11573)])):await Promise.all([e.A(97113),e.A(72421)]),this._shadersLoaded=!0}isReady(e,t){if(!this._shadersLoaded)return!1;let s=e.getMaterial();if(s&&s.disableDepthWrite||(0,ng.IsGaussianSplattingClassName)(e.getMesh().getClassName()))return!1;let i=[],r=[a4.VertexBuffer.PositionKind],a=e.getMesh();a.isVerticesDataPresent(a4.VertexBuffer.NormalKind)&&(i.push("#define HAS_NORMAL_ATTRIBUTE"),r.push(a4.VertexBuffer.NormalKind));let n=!1,l=!1;if(s){let e=!1;if(s.needAlphaTestingForMesh(a)&&s.getAlphaTestTexture()&&(i.push("#define ALPHATEST"),i.push(`#define ALPHATEST_UV${s.getAlphaTestTexture().coordinatesIndex+1}`),e=!0),(s.bumpTexture||s.normalTexture||s.geometryNormalTexture)&&a8.MaterialFlags.BumpTextureEnabled){let t=s.bumpTexture||s.normalTexture||s.geometryNormalTexture;i.push("#define BUMP"),i.push(`#define BUMP_UV${t.coordinatesIndex+1}`),e=!0}if(this._enableReflectivity){let t=!1;"PBRMetallicRoughnessMaterial"===s.getClassName()?(s.metallicRoughnessTexture&&(i.push("#define ORMTEXTURE"),i.push(`#define REFLECTIVITY_UV${s.metallicRoughnessTexture.coordinatesIndex+1}`),i.push("#define METALLICWORKFLOW"),e=!0,t=!0),null!=s.metallic&&(i.push("#define METALLIC"),i.push("#define METALLICWORKFLOW"),t=!0),null!=s.roughness&&(i.push("#define ROUGHNESS"),i.push("#define METALLICWORKFLOW"),t=!0),t&&(s.baseTexture&&(i.push("#define ALBEDOTEXTURE"),i.push(`#define ALBEDO_UV${s.baseTexture.coordinatesIndex+1}`),s.baseTexture.gammaSpace&&i.push("#define GAMMAALBEDO"),e=!0),s.baseColor&&i.push("#define ALBEDOCOLOR"))):"PBRSpecularGlossinessMaterial"===s.getClassName()?(s.specularGlossinessTexture?(i.push("#define SPECULARGLOSSINESSTEXTURE"),i.push(`#define REFLECTIVITY_UV${s.specularGlossinessTexture.coordinatesIndex+1}`),e=!0,s.specularGlossinessTexture.gammaSpace&&i.push("#define GAMMAREFLECTIVITYTEXTURE")):s.specularColor&&i.push("#define REFLECTIVITYCOLOR"),null!=s.glossiness&&i.push("#define GLOSSINESS")):"PBRMaterial"===s.getClassName()?(s.metallicTexture&&(i.push("#define ORMTEXTURE"),i.push(`#define REFLECTIVITY_UV${s.metallicTexture.coordinatesIndex+1}`),i.push("#define METALLICWORKFLOW"),e=!0,t=!0),null!=s.metallic&&(i.push("#define METALLIC"),i.push("#define METALLICWORKFLOW"),t=!0),null!=s.roughness&&(i.push("#define ROUGHNESS"),i.push("#define METALLICWORKFLOW"),t=!0),t?(s.albedoTexture&&(i.push("#define ALBEDOTEXTURE"),i.push(`#define ALBEDO_UV${s.albedoTexture.coordinatesIndex+1}`),s.albedoTexture.gammaSpace&&i.push("#define GAMMAALBEDO"),e=!0),s.albedoColor&&i.push("#define ALBEDOCOLOR")):(s.reflectivityTexture?(i.push("#define SPECULARGLOSSINESSTEXTURE"),i.push(`#define REFLECTIVITY_UV${s.reflectivityTexture.coordinatesIndex+1}`),s.reflectivityTexture.gammaSpace&&i.push("#define GAMMAREFLECTIVITYTEXTURE"),e=!0):s.reflectivityColor&&i.push("#define REFLECTIVITYCOLOR"),null!=s.microSurface&&i.push("#define GLOSSINESS"))):"StandardMaterial"===s.getClassName()?(s.specularTexture&&(i.push("#define REFLECTIVITYTEXTURE"),i.push(`#define REFLECTIVITY_UV${s.specularTexture.coordinatesIndex+1}`),s.specularTexture.gammaSpace&&i.push("#define GAMMAREFLECTIVITYTEXTURE"),e=!0),s.specularColor&&i.push("#define REFLECTIVITYCOLOR")):"OpenPBRMaterial"===s.getClassName()&&(i.push("#define METALLIC"),i.push("#define ROUGHNESS"),s._useRoughnessFromMetallicTextureGreen&&s.baseMetalnessTexture?(i.push("#define ORMTEXTURE"),i.push(`#define REFLECTIVITY_UV${s.baseMetalnessTexture.coordinatesIndex+1}`),e=!0):s.baseMetalnessTexture?(i.push("#define METALLIC_TEXTURE"),i.push(`#define METALLIC_UV${s.baseMetalnessTexture.coordinatesIndex+1}`),e=!0):s.specularRoughnessTexture&&(i.push("#define ROUGHNESS_TEXTURE"),i.push(`#define ROUGHNESS_UV${s.specularRoughnessTexture.coordinatesIndex+1}`),e=!0),s.baseColorTexture&&(i.push("#define ALBEDOTEXTURE"),i.push(`#define ALBEDO_UV${s.baseColorTexture.coordinatesIndex+1}`),s.baseColorTexture.gammaSpace&&i.push("#define GAMMAALBEDO"),e=!0),s.baseColor&&i.push("#define ALBEDOCOLOR"))}this._enableIrradiance&&this.generateIrradianceWithScatterMask&&(i.push("#define IRRADIANCE_SCATTER_MASK"),"OpenPBRMaterial"===s.getClassName()&&(s.subsurfaceWeight>0&&s.subsurfaceWeightTexture&&(i.push("#define SUBSURFACE_WEIGHT"),i.push(`#define SUBSURFACEWEIGHT_UV${s.subsurfaceWeightTexture.coordinatesIndex+1}`),e=!0),s.transmissionWeight>0&&s.transmissionWeightTexture&&(i.push("#define TRANSMISSION_WEIGHT"),i.push(`#define TRANSMISSIONWEIGHT_UV${s.transmissionWeightTexture.coordinatesIndex+1}`),e=!0))),e&&(i.push("#define NEED_UV"),a.isVerticesDataPresent(a4.VertexBuffer.UVKind)&&(r.push(a4.VertexBuffer.UVKind),i.push("#define UV1"),n=!0),a.isVerticesDataPresent(a4.VertexBuffer.UV2Kind)&&(r.push(a4.VertexBuffer.UV2Kind),i.push("#define UV2"),l=!0))}if(this._enableDepth&&(i.push("#define DEPTH"),i.push("#define DEPTH_INDEX "+this._depthIndex)),this._enableNormal&&(i.push("#define NORMAL"),i.push("#define NORMAL_INDEX "+this._normalIndex)),this._enablePosition&&(i.push("#define POSITION"),i.push("#define POSITION_INDEX "+this._positionIndex)),this._enableVelocity&&(i.push("#define VELOCITY"),i.push("#define VELOCITY_INDEX "+this._velocityIndex),-1===this.excludedSkinnedMeshesFromVelocity.indexOf(a)&&i.push("#define BONES_VELOCITY_ENABLED")),this._enableVelocityLinear&&(i.push("#define VELOCITY_LINEAR"),i.push("#define VELOCITY_LINEAR_INDEX "+this._velocityLinearIndex),-1===this.excludedSkinnedMeshesFromVelocity.indexOf(a)&&i.push("#define BONES_VELOCITY_ENABLED")),this._enableReflectivity&&(i.push("#define REFLECTIVITY"),i.push("#define REFLECTIVITY_INDEX "+this._reflectivityIndex)),this._enableScreenspaceDepth&&-1!==this._screenspaceDepthIndex&&(i.push("#define SCREENSPACE_DEPTH_INDEX "+this._screenspaceDepthIndex),i.push("#define SCREENSPACE_DEPTH")),this._enableIrradiance&&-1!==this._irradianceIndex){i.push("#define IRRADIANCE_INDEX "+this._irradianceIndex),i.push("#define IRRADIANCE");let e=this._scene;if(e.environmentTexture){let t={},r=!1,a=0;for(let n in("OpenPBRMaterial"===s.getClassName()||"StandardMaterial"===s.getClassName()||"PBRMetallicRoughnessMaterial"===s.getClassName()||"PBRSpecularGlossinessMaterial"===s.getClassName()||"PBRMaterial"===s.getClassName())&&(r=!!s.realtimeFiltering,a=s.realtimeFilteringQuality||0),(0,a2.PrepareDefinesForIBL)(e,e.environmentTexture,t,r,a,!0),t)t[n]&&i.push("#define "+n);t.USEIRRADIANCEMAP||i.push("#define SPHERICAL_HARMONICS");let n=e.postProcessRenderPipelineManager.supportedPipelines.find(e=>"IBLShadowsRenderPipeline"===e.getClassName());n&&n._getAccumulatedTexture()&&(i.push("#define IBL_SHADOW_TEXTURE"),n.coloredShadows&&i.push("#define COLORED_IBL_SHADOWS"))}}this.generateNormalsInWorldSpace&&i.push("#define NORMAL_WORLDSPACE"),this._normalsAreUnsigned&&i.push("#define ENCODE_NORMAL"),a.useBones&&a.computeBonesUsingShaders&&a.skeleton?(r.push(a4.VertexBuffer.MatricesIndicesKind),r.push(a4.VertexBuffer.MatricesWeightsKind),a.numBoneInfluencers>4&&(r.push(a4.VertexBuffer.MatricesIndicesExtraKind),r.push(a4.VertexBuffer.MatricesWeightsExtraKind)),i.push("#define NUM_BONE_INFLUENCERS "+a.numBoneInfluencers),i.push("#define BONETEXTURE "+a.skeleton.isUsingTextureForMatrices),i.push("#define BonesPerMesh "+(a.skeleton.bones.length+1))):(i.push("#define NUM_BONE_INFLUENCERS 0"),i.push("#define BONETEXTURE false"),i.push("#define BonesPerMesh 0"));let o=a.morphTargetManager?(0,a2.PrepareDefinesAndAttributesForMorphTargets)(a.morphTargetManager,i,r,a,!0,!0,!1,n,l,!1):0;t&&(i.push("#define INSTANCES"),(0,a2.PushAttributesForInstances)(r,this._enableVelocity||this._enableVelocityLinear),e.getRenderingMesh().hasThinInstances&&i.push("#define THIN_INSTANCES")),this._linkedWithPrePass?i.push("#define SCENE_MRT_COUNT "+this._attachmentsFromPrePass.length):i.push("#define SCENE_MRT_COUNT "+this._multiRenderTarget.textures.length),(0,a1.PrepareStringDefinesForClipPlanes)(s,this._scene,i);let u=this._scene.getEngine(),h=e._getDrawWrapper(void 0,!0),_=h.defines,c=i.join("\n");return _!==c&&h.setEffect(u.createEffect("geometry",{attributes:r,uniformsNames:nR,samplers:nf,defines:c,onCompiled:null,fallbacks:null,onError:null,uniformBuffersNames:["Scene"],indexParameters:{buffersCount:this._multiRenderTarget.textures.length-1,maxSimultaneousMorphTargets:o},shaderLanguage:this.shaderLanguage},u),c),h.effect.isReady()}getGBuffer(){return this._multiRenderTarget}get samples(){return this._multiRenderTarget.samples}set samples(e){this._multiRenderTarget.samples=e}dispose(){this._resizeObserver&&(this._scene.getEngine().onResizeObservable.remove(this._resizeObserver),this._resizeObserver=null),this._multiRenderTarget?.renderTarget&&this.scene.getEngine()._currentRenderTarget===this._multiRenderTarget.renderTarget&&this.scene.getEngine().unBindFramebuffer(this._multiRenderTarget?.renderTarget),this.getGBuffer().dispose()}_assignRenderTargetIndices(){let e=[],t=[],s=0;return this._enableDepth&&(this._depthIndex=s,s++,e.push("gBuffer_Depth"),t.push(this._textureTypesAndFormats[nA.DEPTH_TEXTURE_TYPE])),this._enableNormal&&(this._normalIndex=s,s++,e.push("gBuffer_Normal"),t.push(this._textureTypesAndFormats[nA.NORMAL_TEXTURE_TYPE])),this._enablePosition&&(this._positionIndex=s,s++,e.push("gBuffer_Position"),t.push(this._textureTypesAndFormats[nA.POSITION_TEXTURE_TYPE])),this._enableVelocity&&(this._velocityIndex=s,s++,e.push("gBuffer_Velocity"),t.push(this._textureTypesAndFormats[nA.VELOCITY_TEXTURE_TYPE])),this._enableVelocityLinear&&(this._velocityLinearIndex=s,s++,e.push("gBuffer_VelocityLinear"),t.push(this._textureTypesAndFormats[nA.VELOCITY_LINEAR_TEXTURE_TYPE])),this._enableReflectivity&&(this._reflectivityIndex=s,s++,e.push("gBuffer_Reflectivity"),t.push(this._textureTypesAndFormats[nA.REFLECTIVITY_TEXTURE_TYPE])),this._enableScreenspaceDepth&&(this._screenspaceDepthIndex=s,s++,e.push("gBuffer_ScreenspaceDepth"),t.push(this._textureTypesAndFormats[nA.SCREENSPACE_DEPTH_TEXTURE_TYPE])),this._enableIrradiance&&(this._irradianceIndex=s,s++,e.push("gBuffer_Irradiance"),t.push(this._textureTypesAndFormats[nA.IRRADIANCE_TEXTURE_TYPE])),[s,e,t]}_createRenderTargets(){let e=this._scene.getEngine(),[t,s,i]=this._assignRenderTargetIndices(),r=0;e._caps.textureFloat&&e._caps.textureFloatLinearFiltering?r=1:e._caps.textureHalfFloat&&e._caps.textureHalfFloatLinearFiltering&&(r=2);let a=void 0!==this._ratioOrDimensions.width?this._ratioOrDimensions:{width:e.getRenderWidth()*this._ratioOrDimensions,height:e.getRenderHeight()*this._ratioOrDimensions},n=[],l=[],o=[];for(let e of i)e?(n.push(e.textureType),l.push(e.textureFormat),o.push(e.samplingMode??2)):(n.push(r),l.push(5),o.push(2));if(this._normalsAreUnsigned=11===n[nA.NORMAL_TEXTURE_TYPE]||13===n[nA.NORMAL_TEXTURE_TYPE],this._multiRenderTarget=new n_("gBuffer",a,t,this._scene,{generateMipMaps:!1,generateDepthTexture:!0,types:n,formats:l,samplingModes:o,depthTextureFormat:this._depthFormat},s.concat("gBuffer_DepthBuffer")),!this.isSupported)return;this._multiRenderTarget.wrapU=aQ.Texture.CLAMP_ADDRESSMODE,this._multiRenderTarget.wrapV=aQ.Texture.CLAMP_ADDRESSMODE,this._multiRenderTarget.refreshRate=1,this._multiRenderTarget.renderParticles=!1,this._multiRenderTarget.renderList=null;let u=[!0],h=[!1],_=[!0];for(let e=1;e<t;++e)u.push(!0),_.push(!1),h.push(!0);let c=e.buildTextureLayout(u),T=e.buildTextureLayout(h),d=e.buildTextureLayout(_);this._multiRenderTarget.onClearObservable.add(e=>{e.bindAttachments(this.useSpecificClearForDepthTexture?T:c),e.clear(this._clearColor,!0,!0,!0),this.useSpecificClearForDepthTexture&&(e.bindAttachments(d),e.clear(this._clearDepthColor,!0,!0,!0)),e.bindAttachments(c)}),this._resizeObserver=e.onResizeObservable.add(()=>{if(this._multiRenderTarget){let t=void 0!==this._ratioOrDimensions.width?this._ratioOrDimensions:{width:e.getRenderWidth()*this._ratioOrDimensions,height:e.getRenderHeight()*this._ratioOrDimensions};this._multiRenderTarget.resize(t)}});let m=e=>{let t=e.getRenderingMesh(),s=e.getEffectiveMesh(),i=this._scene,r=i.getEngine(),a=e.getMaterial();if(!a)return;if(s._internalAbstractMeshDataInfo._isActiveIntermediate=!1,(this._enableVelocity||this._enableVelocityLinear)&&!this._previousTransformationMatrices[s.uniqueId]&&(this._previousTransformationMatrices[s.uniqueId]={world:ns.Matrix.Identity(),viewProjection:i.getTransformMatrix()},t.skeleton)){let e=t.skeleton.getTransformMatrices(t);this._previousBonesTransformationMatrices[t.uniqueId]=this._copyBonesTransformationMatrices(e,new Float32Array(e.length))}let n=t._getInstancesRenderList(e._id,!!e.getReplacementMesh());if(n.mustReturn)return;let l=r.getCaps().instancedArrays&&(null!==n.visibleInstances[e._id]||t.hasThinInstances),o=s.getWorldMatrix();if(this.isReady(e,l)){let u,h=e._getDrawWrapper();if(!h)return;let _=h.effect;if(r.enableEffect(h),l||t._bind(e,_,a.fillMode),this._useUbo?((0,a2.BindSceneUniformBuffer)(_,this._scene.getSceneUniformBuffer()),this._scene.finalizeSceneUbo()):(_.setMatrix("viewProjection",i.getTransformMatrix()),_.setMatrix("view",i.getViewMatrix()),this._scene.bindEyePosition(_,"vEyePosition")),!t._instanceDataStorage.isFrozen&&(a.backFaceCulling||null!==a.sideOrientation)){let e=s._getWorldMatrixDeterminant();u=a._getEffectiveOrientation(t),e<0&&(u=u===aj.Material.ClockWiseSideOrientation?aj.Material.CounterClockWiseSideOrientation:aj.Material.ClockWiseSideOrientation)}else u=t._effectiveSideOrientation;if(a._preBind(h,u),a.needAlphaTestingForMesh(s)){let e=a.getAlphaTestTexture();e&&(_.setTexture("diffuseSampler",e),_.setMatrix("diffuseMatrix",e.getTextureMatrix()))}if((a.bumpTexture||a.normalTexture||a.geometryNormalTexture)&&i.getEngine().getCaps().standardDerivatives&&a8.MaterialFlags.BumpTextureEnabled){let e=a.bumpTexture||a.normalTexture||a.geometryNormalTexture;_.setFloat3("vBumpInfos",e.coordinatesIndex,1/e.level,a.parallaxScaleBias),_.setMatrix("bumpMatrix",e.getTextureMatrix()),_.setTexture("bumpSampler",e),_.setFloat2("vTangentSpaceParams",a.invertNormalMapX?-1:1,a.invertNormalMapY?-1:1)}if(this._enableReflectivity&&("PBRMetallicRoughnessMaterial"===a.getClassName()?(null!==a.metallicRoughnessTexture&&(_.setTexture("reflectivitySampler",a.metallicRoughnessTexture),_.setMatrix("reflectivityMatrix",a.metallicRoughnessTexture.getTextureMatrix())),null!==a.metallic&&_.setFloat("metallic",a.metallic),null!==a.roughness&&_.setFloat("glossiness",1-a.roughness),null!==a.baseTexture&&(_.setTexture("albedoSampler",a.baseTexture),_.setMatrix("albedoMatrix",a.baseTexture.getTextureMatrix())),null!==a.baseColor&&_.setColor3("albedoColor",a.baseColor)):"PBRSpecularGlossinessMaterial"===a.getClassName()?(null!==a.specularGlossinessTexture?(_.setTexture("reflectivitySampler",a.specularGlossinessTexture),_.setMatrix("reflectivityMatrix",a.specularGlossinessTexture.getTextureMatrix())):null!==a.specularColor&&_.setColor3("reflectivityColor",a.specularColor),null!==a.glossiness&&_.setFloat("glossiness",a.glossiness)):"PBRMaterial"===a.getClassName()?(null!==a.metallicTexture&&(_.setTexture("reflectivitySampler",a.metallicTexture),_.setMatrix("reflectivityMatrix",a.metallicTexture.getTextureMatrix())),null!==a.metallic&&_.setFloat("metallic",a.metallic),null!==a.roughness&&_.setFloat("glossiness",1-a.roughness),null!==a.roughness||null!==a.metallic||null!==a.metallicTexture?(null!==a.albedoTexture&&(_.setTexture("albedoSampler",a.albedoTexture),_.setMatrix("albedoMatrix",a.albedoTexture.getTextureMatrix())),null!==a.albedoColor&&_.setColor3("albedoColor",a.albedoColor)):(null!==a.reflectivityTexture?(_.setTexture("reflectivitySampler",a.reflectivityTexture),_.setMatrix("reflectivityMatrix",a.reflectivityTexture.getTextureMatrix())):null!==a.reflectivityColor&&_.setColor3("reflectivityColor",a.reflectivityColor),null!==a.microSurface&&_.setFloat("glossiness",a.microSurface))):"StandardMaterial"===a.getClassName()?(null!==a.specularTexture&&(_.setTexture("reflectivitySampler",a.specularTexture),_.setMatrix("reflectivityMatrix",a.specularTexture.getTextureMatrix())),null!==a.specularColor&&_.setColor3("reflectivityColor",a.specularColor)):"OpenPBRMaterial"===a.getClassName()&&(a._useRoughnessFromMetallicTextureGreen&&a.baseMetalnessTexture?(_.setTexture("reflectivitySampler",a.baseMetalnessTexture),_.setMatrix("reflectivityMatrix",a.baseMetalnessTexture.getTextureMatrix())):a.baseMetalnessTexture?(_.setTexture("metallicSampler",a.baseMetalnessTexture),_.setMatrix("metallicMatrix",a.baseMetalnessTexture.getTextureMatrix())):a.specularRoughnessTexture&&(_.setTexture("roughnessSampler",a.specularRoughnessTexture),_.setMatrix("roughnessMatrix",a.specularRoughnessTexture.getTextureMatrix())),_.setFloat("metallic",a.baseMetalness),_.setFloat("glossiness",1-a.specularRoughness),null!==a.baseColorTexture&&(_.setTexture("albedoSampler",a.baseColorTexture),_.setMatrix("albedoMatrix",a.baseColorTexture.getTextureMatrix())),null!==a.baseColor&&_.setColor3("albedoColor",a.baseColor))),this._enableIrradiance&&i.environmentTexture){let e=i.environmentTexture,t=i.postProcessRenderPipelineManager.supportedPipelines.find(e=>"IBLShadowsRenderPipeline"===e.getClassName());if(t){let e=t._getAccumulatedTexture();e&&(_.setTexture("iblShadowSampler",e),_.setFloat2("shadowTextureSize",e.getSize().width,e.getSize().height))}if(_.setMatrix("reflectionMatrix",e.getReflectionTextureMatrix()),_.setFloat2("vReflectionInfos",e.level*i.iblIntensity,0),_.setTexture("reflectionSampler",e),e.irradianceTexture&&(_.setTexture("irradianceSampler",e.irradianceTexture),e.irradianceTexture._dominantDirection&&_.setVector3("vReflectionDominantDirection",e.irradianceTexture._dominantDirection)),e.sphericalPolynomial){let t=e.sphericalPolynomial;if(t.preScaledHarmonics){let e=t.preScaledHarmonics;_.setVector3("vSphericalL00",e.l00),_.setVector3("vSphericalL1_1",e.l1_1),_.setVector3("vSphericalL10",e.l10),_.setVector3("vSphericalL11",e.l11),_.setVector3("vSphericalL2_2",e.l2_2),_.setVector3("vSphericalL2_1",e.l2_1),_.setVector3("vSphericalL20",e.l20),_.setVector3("vSphericalL21",e.l21),_.setVector3("vSphericalL22",e.l22)}else _.setFloat3("vSphericalX",t.x.x,t.x.y,t.x.z),_.setFloat3("vSphericalY",t.y.x,t.y.y,t.y.z),_.setFloat3("vSphericalZ",t.z.x,t.z.y,t.z.z),_.setFloat3("vSphericalXX_ZZ",t.xx.x-t.zz.x,t.xx.y-t.zz.y,t.xx.z-t.zz.z),_.setFloat3("vSphericalYY_ZZ",t.yy.x-t.zz.x,t.yy.y-t.zz.y,t.yy.z-t.zz.z),_.setFloat3("vSphericalZZ",t.zz.x,t.zz.y,t.zz.z),_.setFloat3("vSphericalXY",t.xy.x,t.xy.y,t.xy.z),_.setFloat3("vSphericalYZ",t.yz.x,t.yz.y,t.yz.z),_.setFloat3("vSphericalZX",t.zx.x,t.zx.y,t.zx.z)}this.generateIrradianceWithScatterMask&&"OpenPBRMaterial"===a.getClassName()&&(_.setFloat("vSubsurfaceWeight",a.subsurfaceWeight),a.subsurfaceWeightTexture&&(_.setTexture("subsurfaceWeightSampler",a.subsurfaceWeightTexture),_.setMatrix("subsurfaceWeightMatrix",a.subsurfaceWeightTexture.getTextureMatrix())),_.setFloat("vTransmissionWeight",a.transmissionWeight),a.transmissionWeightTexture&&(_.setTexture("transmissionWeightSampler",a.transmissionWeightTexture),_.setMatrix("transmissionWeightMatrix",a.transmissionWeightTexture.getTextureMatrix())),_.setFloat("vTransmissionScatterAnisotropy",a.transmissionScatterAnisotropy),_.setFloat("vSubsurfaceScatterAnisotropy",a.subsurfaceScatterAnisotropy))}if((0,a1.BindClipPlane)(_,a,this._scene),t.useBones&&t.computeBonesUsingShaders&&t.skeleton){let e=t.skeleton;if(e.isUsingTextureForMatrices&&_.getUniformIndex("boneTextureInfo")>-1){let s=e.getTransformMatrixTexture(t);_.setTexture("boneSampler",s),_.setFloat2("boneTextureInfo",e._textureWidth,e._textureHeight)}else _.setMatrices("mBones",t.skeleton.getTransformMatrices(t));(this._enableVelocity||this._enableVelocityLinear)&&_.setMatrices("mPreviousBones",this._previousBonesTransformationMatrices[t.uniqueId])}(0,a2.BindMorphTargetParameters)(t,_),t.morphTargetManager&&t.morphTargetManager.isUsingTextureForTargets&&t.morphTargetManager._bind(_),(this._enableVelocity||this._enableVelocityLinear)&&(_.setMatrix("previousWorld",this._previousTransformationMatrices[s.uniqueId].world),_.setMatrix("previousViewProjection",this._previousTransformationMatrices[s.uniqueId].viewProjection)),l&&t.hasThinInstances&&_.setMatrix("world",o),t._processRendering(s,e,_,a.fillMode,n,l,(e,t)=>{e||_.setMatrix("world",t)})}(this._enableVelocity||this._enableVelocityLinear)&&(this._previousTransformationMatrices[s.uniqueId].world=o.clone(),this._previousTransformationMatrices[s.uniqueId].viewProjection=this._scene.getTransformMatrix().clone(),t.skeleton&&this._copyBonesTransformationMatrices(t.skeleton.getTransformMatrices(t),this._previousBonesTransformationMatrices[s.uniqueId]))};this._multiRenderTarget.customIsReadyFunction=(t,s,i)=>{if((i||0===s)&&t.subMeshes)for(let s=0;s<t.subMeshes.length;++s){let i=t.subMeshes[s],r=i.getMaterial(),a=i.getRenderingMesh();if(!r)continue;let n=a._getInstancesRenderList(i._id,!!i.getReplacementMesh()),l=e.getCaps().instancedArrays&&(null!==n.visibleInstances[i._id]||a.hasThinInstances);if(!this.isReady(i,l))return!1}return!0},this._multiRenderTarget.customRenderFunction=(t,s,i,r)=>{let a;if(this._linkedWithPrePass){if(!this._prePassRenderer.enabled)return;this._scene.getEngine().bindAttachments(this._attachmentsFromPrePass)}if(r.length){for(e.setColorWrite(!1),a=0;a<r.length;a++)m(r.data[a]);e.setColorWrite(!0)}for(a=0;a<t.length;a++)m(t.data[a]);for(e.setDepthWrite(!1),a=0;a<s.length;a++)m(s.data[a]);if(this.renderTransparentMeshes)for(a=0;a<i.length;a++)m(i.data[a]);e.setDepthWrite(!0)}}_copyBonesTransformationMatrices(e,t){for(let s=0;s<e.length;s++)t[s]=e[s];return t}}nA.ForceGLSL=!1,nA.DEPTH_TEXTURE_TYPE=0,nA.NORMAL_TEXTURE_TYPE=1,nA.POSITION_TEXTURE_TYPE=2,nA.VELOCITY_TEXTURE_TYPE=3,nA.REFLECTIVITY_TEXTURE_TYPE=4,nA.SCREENSPACE_DEPTH_TEXTURE_TYPE=5,nA.VELOCITY_LINEAR_TEXTURE_TYPE=6,nA.IRRADIANCE_TEXTURE_TYPE=7,nA._SceneComponentInitialization=e=>{throw(0,nc._WarnImport)("GeometryBufferRendererSceneComponent")};var nx=e.i(44520);let nE={effect:null,subMesh:null};function nS(e){if("number"==typeof e)return 1;if(e instanceof ns.Vector2)return 2;if(e instanceof ns.Vector3||e instanceof aZ.Color3)return 3;if(e instanceof ns.Vector4||e instanceof aZ.Color4)return 4;throw Error("Unsupported OpenPBR property type.")}class nI{populateVectorFromLinkedProperties(e){let t=nS(e);for(let e in this.linkedProperties){let s=this.linkedProperties[e],i=s.numComponents;if(t<i||s.targetUniformComponentOffset>t-i)return void(1==i?a7.Logger.Error(`Float property ${s.name} has an offset that is too large.`):a7.Logger.Error(`Vector${i} property ${s.name} won't fit in Vector${t} or has an offset that is too large.`));"number"==typeof s.value?nI._tmpArray[s.targetUniformComponentOffset]=s.value:s.value.toArray(nI._tmpArray,s.targetUniformComponentOffset)}e.fromArray(nI._tmpArray)}constructor(e,t){this.linkedProperties={},this.firstLinkedKey="",this.name=e,this.numComponents=t}}nI._tmpArray=[0,0,0,0];class nM{constructor(e,t,s,i,r=0,a){this.targetUniformComponentNum=4,this.targetUniformComponentOffset=0,this.name=e,this.targetUniformName=s,this.defaultValue=t,this.value=t,this.targetUniformComponentNum=i,this.targetUniformComponentOffset=r,this.requiredDefine=a}get numComponents(){return"number"==typeof this.defaultValue?1:nS(this.defaultValue)}}class nF{get samplerName(){return this.samplerPrefix+"Sampler"}get samplerInfoName(){return"v"+this.samplerPrefix.charAt(0).toUpperCase()+this.samplerPrefix.slice(1)+"Infos"}get samplerMatrixName(){return this.samplerPrefix+"Matrix"}constructor(e,t,s){this.value=null,this.samplerPrefix="",this.textureDefine="",this.name=e,this.samplerPrefix=t,this.textureDefine=s}}class nP extends(0,ne.PrepassDefinesMixin)((0,a9.UVDefinesMixin)(a$.MaterialDefines)){}class nb extends nt(nP){}class ny extends(0,aJ.ImageProcessingDefinesMixin)(nb){constructor(e){super(e),this.NUM_SAMPLES="0",this.REALTIME_FILTERING=!1,this.IBL_CDF_FILTERING=!1,this.LIGHTCOUNT=0,this.VERTEXCOLOR=!1,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.VERTEXALPHA=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHABLEND=!1,this.ALPHA_FROM_BASE_COLOR_TEXTURE=!1,this.ALPHATESTVALUE="0.5",this.PREMULTIPLYALPHA=!1,this.REFLECTIVITY_GAMMA=!1,this.REFLECTIVITYDIRECTUV=0,this.SPECULARTERM=!1,this.LODBASEDMICROSFURACE=!0,this.SPECULAR_ROUGHNESS_FROM_METALNESS_TEXTURE_GREEN=!1,this.BASE_METALNESS_FROM_METALNESS_TEXTURE_BLUE=!1,this.AOSTOREINMETALMAPRED=!1,this.SPECULAR_WEIGHT_IN_ALPHA=!1,this.SPECULAR_WEIGHT_FROM_SPECULAR_COLOR_TEXTURE=!1,this.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=!1,this.COAT_ROUGHNESS_FROM_GREEN_CHANNEL=!1,this.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=!1,this.USE_GLTF_STYLE_ANISOTROPY=!1,this.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE=!1,this.FUZZ_ROUGHNESS_FROM_TEXTURE_ALPHA=!1,this.SUBSURFACE_WEIGHT_FROM_TEXTURE_ALPHA=!1,this.GEOMETRY_THICKNESS_FROM_GREEN_CHANNEL=!1,this.ENVIRONMENTBRDF=!1,this.ENVIRONMENTBRDF_RGBD=!1,this.FUZZENVIRONMENTBRDF=!1,this.NORMAL=!1,this.TANGENT=!1,this.OBJECTSPACE_NORMALMAP=!1,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.NORMALXYSCALE=!0,this.ANISOTROPIC=!1,this.ANISOTROPIC_OPENPBR=!0,this.ANISOTROPIC_BASE=!1,this.ANISOTROPIC_COAT=!1,this.FUZZ_IBL_SAMPLES=6,this.REFRACTION_HIGH_QUALITY_BLUR=!1,this.FUZZ=!1,this.THIN_FILM=!1,this.IRIDESCENCE=!1,this.DISPERSION=!1,this.SCATTERING=!1,this.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING=!1,this.SSS_SAMPLE_COUNT=16,this.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING_GBUFFER=!1,this.TRANSMISSION_SLAB=!1,this.TRANSMISSION_SLAB_VOLUME=!1,this.SUBSURFACE_SLAB=!1,this.GEOMETRY_THIN_WALLED=!1,this.REFRACTED_BACKGROUND=!1,this.REFRACTED_LIGHTS=!1,this.REFRACTED_ENVIRONMENT=!1,this.REFRACTED_ENVIRONMENT_OPPOSITEZ=!1,this.REFRACTED_ENVIRONMENT_LOCAL_CUBE=!1,this.RADIANCEOCCLUSION=!1,this.HORIZONOCCLUSION=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.NONUNIFORMSCALING=!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.USEPHYSICALLIGHTFALLOFF=!1,this.USEGLTFLIGHTFALLOFF=!1,this.TWOSIDEDLIGHTING=!1,this.MIRRORED=!1,this.SHADOWFLOAT=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.POINTSIZE=!1,this.FOG=!1,this.LOGARITHMICDEPTH=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.FORCENORMALFORWARD=!1,this.SPECULARAA=!1,this.UNLIT=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.DEBUGMODE=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.BRDF_V_HEIGHT_CORRELATED=!0,this.MS_BRDF_ENERGY_CONSERVATION=!0,this.SPHERICAL_HARMONICS=!0,this.SPECULAR_GLOSSINESS_ENERGY_CONSERVATION=!0,this.MIX_IBL_RADIANCE_WITH_IRRADIANCE=!0,this.LEGACY_SPECULAR_ENERGY_CONSERVATION=!1,this.BASE_DIFFUSE_MODEL=0,this.DIELECTRIC_SPECULAR_MODEL=1,this.CONDUCTOR_SPECULAR_MODEL=1,this.rebuild()}reset(){super.reset(),this.ALPHATESTVALUE="0.5",this.NORMALXYSCALE=!0}}class nv extends(0,ni.ImageProcessingMixin)(nr.PushMaterial){}let nC=(e$=nv,eJ=[],e0=[],e1=[],e3=[],e2=[],e4=[],e5=[],e6=[],e8=[],e7=[],e9=[],te=[],tt=[],ts=[],ti=[],tr=[],ta=[],tn=[],tl=[],to=[],tu=[],th=[],t_=[],tc=[],tT=[],td=[],tm=[],tp=[],tg=[],tf=[],tR=[],tA=[],tx=[],tE=[],tS=[],tI=[],tM=[],tF=[],tP=[],tb=[],ty=[],tv=[],tC=[],tD=[],tL=[],tO=[],tN=[],tk=[],tz=[],tU=[],tB=[],tG=[],tW=[],tw=[],tH=[],tV=[],tX=[],tY=[],tZ=[],tK=[],tQ=[],tj=[],tq=[],t$=[],tJ=[],t0=[],t1=[],t3=[],t2=[],t4=[],t5=[],t6=[],t8=[],t7=[],t9=[],se=[],st=[],ss=[],si=[],sr=[],sa=[],sn=[],sl=[],so=[],su=[],sh=[],s_=[],sc=[],sT=[],sd=[],sm=[],sp=[],sg=[],sf=[],sR=[],sA=[],sx=[],sE=[],sS=[],sI=[],sM=[],sF=[],sP=[],sb=[],sy=[],sv=[],sC=[],sD=[],sL=[],sO=[],sN=[],sk=[],sz=[],sU=[],sB=[],sG=[],sW=[],sw=[],sH=[],sV=[],sX=[],sY=[],sZ=[],sK=[],sQ=[],sj=[],sq=[],s$=[],sJ=[],s0=[],s1=[],s3=[],s2=[],s4=[],s5=[],s6=[],s8=[],s7=[],s9=[],ie=[],it=[],is=[],ii=[],ir=[],ia=[],il=[],io=[],iu=[],ih=[],i_=[],ic=[],iT=[],id=[],im=[],ip=[],ig=[],iR=[],iA=[],ix=[],iE=[],iS=[],iI=[],iM=[],iF=[],iP=[],ib=[],iy=[],iv=[],iC=[],iD=[],iL=[],iO=[],iN=[],ik=[],iz=[],iU=[],iB=[],iG=[],iW=[],iw=[],iH=[],iV=[],iX=[],iY=[],iZ=[],iK=[],iQ=[],ij=[],iq=[],i$=[],iJ=[],i0=[],i1=[],i3=[],i2=[],i4=[],i5=[],i6=[],i8=[],i7=[],i9=[],re=[],rt=[],rs=[],ri=[],ra=class extends e${get baseWeight(){return(0,aV.__classPrivateFieldGet)(this,rn,"f")}set baseWeight(e){(0,aV.__classPrivateFieldSet)(this,rn,e,"f")}get baseWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,rl,"f")}set baseWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,rl,e,"f")}get baseColor(){return(0,aV.__classPrivateFieldGet)(this,ro,"f")}set baseColor(e){(0,aV.__classPrivateFieldSet)(this,ro,e,"f")}get baseColorTexture(){return(0,aV.__classPrivateFieldGet)(this,ru,"f")}set baseColorTexture(e){(0,aV.__classPrivateFieldSet)(this,ru,e,"f")}get baseDiffuseRoughness(){return(0,aV.__classPrivateFieldGet)(this,rh,"f")}set baseDiffuseRoughness(e){(0,aV.__classPrivateFieldSet)(this,rh,e,"f")}get baseDiffuseRoughnessTexture(){return(0,aV.__classPrivateFieldGet)(this,r_,"f")}set baseDiffuseRoughnessTexture(e){(0,aV.__classPrivateFieldSet)(this,r_,e,"f")}get baseMetalness(){return(0,aV.__classPrivateFieldGet)(this,rc,"f")}set baseMetalness(e){(0,aV.__classPrivateFieldSet)(this,rc,e,"f")}get baseMetalnessTexture(){return(0,aV.__classPrivateFieldGet)(this,rT,"f")}set baseMetalnessTexture(e){(0,aV.__classPrivateFieldSet)(this,rT,e,"f")}get specularWeight(){return(0,aV.__classPrivateFieldGet)(this,rd,"f")}set specularWeight(e){(0,aV.__classPrivateFieldSet)(this,rd,e,"f")}get specularWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,rm,"f")}set specularWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,rm,e,"f")}get specularColor(){return(0,aV.__classPrivateFieldGet)(this,rp,"f")}set specularColor(e){(0,aV.__classPrivateFieldSet)(this,rp,e,"f")}get specularColorTexture(){return(0,aV.__classPrivateFieldGet)(this,rg,"f")}set specularColorTexture(e){(0,aV.__classPrivateFieldSet)(this,rg,e,"f")}get specularRoughness(){return(0,aV.__classPrivateFieldGet)(this,rf,"f")}set specularRoughness(e){(0,aV.__classPrivateFieldSet)(this,rf,e,"f")}get specularRoughnessTexture(){return(0,aV.__classPrivateFieldGet)(this,rR,"f")}set specularRoughnessTexture(e){(0,aV.__classPrivateFieldSet)(this,rR,e,"f")}get specularRoughnessAnisotropy(){return(0,aV.__classPrivateFieldGet)(this,rA,"f")}set specularRoughnessAnisotropy(e){(0,aV.__classPrivateFieldSet)(this,rA,e,"f")}get specularRoughnessAnisotropyTexture(){return(0,aV.__classPrivateFieldGet)(this,rx,"f")}set specularRoughnessAnisotropyTexture(e){(0,aV.__classPrivateFieldSet)(this,rx,e,"f")}get specularIor(){return(0,aV.__classPrivateFieldGet)(this,rE,"f")}set specularIor(e){(0,aV.__classPrivateFieldSet)(this,rE,e,"f")}get transmissionWeight(){return(0,aV.__classPrivateFieldGet)(this,rS,"f")}set transmissionWeight(e){(0,aV.__classPrivateFieldSet)(this,rS,e,"f")}get transmissionWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,rI,"f")}set transmissionWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,rI,e,"f")}get transmissionColor(){return(0,aV.__classPrivateFieldGet)(this,rM,"f")}set transmissionColor(e){(0,aV.__classPrivateFieldSet)(this,rM,e,"f")}get transmissionColorTexture(){return(0,aV.__classPrivateFieldGet)(this,rF,"f")}set transmissionColorTexture(e){(0,aV.__classPrivateFieldSet)(this,rF,e,"f")}get transmissionDepth(){return(0,aV.__classPrivateFieldGet)(this,rP,"f")}set transmissionDepth(e){(0,aV.__classPrivateFieldSet)(this,rP,e,"f")}get transmissionDepthTexture(){return(0,aV.__classPrivateFieldGet)(this,rb,"f")}set transmissionDepthTexture(e){(0,aV.__classPrivateFieldSet)(this,rb,e,"f")}get transmissionScatter(){return(0,aV.__classPrivateFieldGet)(this,ry,"f")}set transmissionScatter(e){(0,aV.__classPrivateFieldSet)(this,ry,e,"f")}get transmissionScatterTexture(){return(0,aV.__classPrivateFieldGet)(this,rv,"f")}set transmissionScatterTexture(e){(0,aV.__classPrivateFieldSet)(this,rv,e,"f")}get transmissionScatterAnisotropy(){return(0,aV.__classPrivateFieldGet)(this,rC,"f")}set transmissionScatterAnisotropy(e){(0,aV.__classPrivateFieldSet)(this,rC,e,"f")}get transmissionDispersionScale(){return(0,aV.__classPrivateFieldGet)(this,rD,"f")}set transmissionDispersionScale(e){(0,aV.__classPrivateFieldSet)(this,rD,e,"f")}get transmissionDispersionScaleTexture(){return(0,aV.__classPrivateFieldGet)(this,rL,"f")}set transmissionDispersionScaleTexture(e){(0,aV.__classPrivateFieldSet)(this,rL,e,"f")}get transmissionDispersionAbbeNumber(){return(0,aV.__classPrivateFieldGet)(this,rO,"f")}set transmissionDispersionAbbeNumber(e){(0,aV.__classPrivateFieldSet)(this,rO,e,"f")}get subsurfaceWeight(){return(0,aV.__classPrivateFieldGet)(this,rN,"f")}set subsurfaceWeight(e){(0,aV.__classPrivateFieldSet)(this,rN,e,"f")}get subsurfaceWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,rk,"f")}set subsurfaceWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,rk,e,"f")}get subsurfaceColor(){return(0,aV.__classPrivateFieldGet)(this,rz,"f")}set subsurfaceColor(e){(0,aV.__classPrivateFieldSet)(this,rz,e,"f")}get subsurfaceColorTexture(){return(0,aV.__classPrivateFieldGet)(this,rU,"f")}set subsurfaceColorTexture(e){(0,aV.__classPrivateFieldSet)(this,rU,e,"f")}get subsurfaceRadius(){return(0,aV.__classPrivateFieldGet)(this,rB,"f")}set subsurfaceRadius(e){(0,aV.__classPrivateFieldSet)(this,rB,e,"f")}get subsurfaceRadiusScale(){return(0,aV.__classPrivateFieldGet)(this,rG,"f")}set subsurfaceRadiusScale(e){(0,aV.__classPrivateFieldSet)(this,rG,e,"f")}get subsurfaceRadiusScaleTexture(){return(0,aV.__classPrivateFieldGet)(this,rW,"f")}set subsurfaceRadiusScaleTexture(e){(0,aV.__classPrivateFieldSet)(this,rW,e,"f")}get subsurfaceScatterAnisotropy(){return(0,aV.__classPrivateFieldGet)(this,rw,"f")}set subsurfaceScatterAnisotropy(e){(0,aV.__classPrivateFieldSet)(this,rw,e,"f")}get coatWeight(){return(0,aV.__classPrivateFieldGet)(this,rH,"f")}set coatWeight(e){(0,aV.__classPrivateFieldSet)(this,rH,e,"f")}get coatWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,rV,"f")}set coatWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,rV,e,"f")}get coatColor(){return(0,aV.__classPrivateFieldGet)(this,rX,"f")}set coatColor(e){(0,aV.__classPrivateFieldSet)(this,rX,e,"f")}get coatColorTexture(){return(0,aV.__classPrivateFieldGet)(this,rY,"f")}set coatColorTexture(e){(0,aV.__classPrivateFieldSet)(this,rY,e,"f")}get coatRoughness(){return(0,aV.__classPrivateFieldGet)(this,rZ,"f")}set coatRoughness(e){(0,aV.__classPrivateFieldSet)(this,rZ,e,"f")}get coatRoughnessTexture(){return(0,aV.__classPrivateFieldGet)(this,rK,"f")}set coatRoughnessTexture(e){(0,aV.__classPrivateFieldSet)(this,rK,e,"f")}get coatRoughnessAnisotropy(){return(0,aV.__classPrivateFieldGet)(this,rQ,"f")}set coatRoughnessAnisotropy(e){(0,aV.__classPrivateFieldSet)(this,rQ,e,"f")}get coatRoughnessAnisotropyTexture(){return(0,aV.__classPrivateFieldGet)(this,rj,"f")}set coatRoughnessAnisotropyTexture(e){(0,aV.__classPrivateFieldSet)(this,rj,e,"f")}get coatIor(){return(0,aV.__classPrivateFieldGet)(this,rq,"f")}set coatIor(e){(0,aV.__classPrivateFieldSet)(this,rq,e,"f")}get coatDarkening(){return(0,aV.__classPrivateFieldGet)(this,r$,"f")}set coatDarkening(e){(0,aV.__classPrivateFieldSet)(this,r$,e,"f")}get coatDarkeningTexture(){return(0,aV.__classPrivateFieldGet)(this,rJ,"f")}set coatDarkeningTexture(e){(0,aV.__classPrivateFieldSet)(this,rJ,e,"f")}get fuzzWeight(){return(0,aV.__classPrivateFieldGet)(this,r0,"f")}set fuzzWeight(e){(0,aV.__classPrivateFieldSet)(this,r0,e,"f")}get fuzzWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,r1,"f")}set fuzzWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,r1,e,"f")}get fuzzColor(){return(0,aV.__classPrivateFieldGet)(this,r3,"f")}set fuzzColor(e){(0,aV.__classPrivateFieldSet)(this,r3,e,"f")}get fuzzColorTexture(){return(0,aV.__classPrivateFieldGet)(this,r2,"f")}set fuzzColorTexture(e){(0,aV.__classPrivateFieldSet)(this,r2,e,"f")}get fuzzRoughness(){return(0,aV.__classPrivateFieldGet)(this,r4,"f")}set fuzzRoughness(e){(0,aV.__classPrivateFieldSet)(this,r4,e,"f")}get fuzzRoughnessTexture(){return(0,aV.__classPrivateFieldGet)(this,r5,"f")}set fuzzRoughnessTexture(e){(0,aV.__classPrivateFieldSet)(this,r5,e,"f")}get geometryThinWalled(){return(0,aV.__classPrivateFieldGet)(this,r6,"f")}set geometryThinWalled(e){(0,aV.__classPrivateFieldSet)(this,r6,e,"f")}get geometryNormalTexture(){return(0,aV.__classPrivateFieldGet)(this,r8,"f")}set geometryNormalTexture(e){(0,aV.__classPrivateFieldSet)(this,r8,e,"f")}get geometryTangent(){return(0,aV.__classPrivateFieldGet)(this,r7,"f")}set geometryTangent(e){(0,aV.__classPrivateFieldSet)(this,r7,e,"f")}get geometryTangentAngle(){return Math.atan2(this.geometryTangent.y,this.geometryTangent.x)}set geometryTangentAngle(e){this.geometryTangent=new ns.Vector2(Math.cos(e),Math.sin(e))}get geometryTangentTexture(){return(0,aV.__classPrivateFieldGet)(this,r9,"f")}set geometryTangentTexture(e){(0,aV.__classPrivateFieldSet)(this,r9,e,"f")}get geometryCoatNormalTexture(){return(0,aV.__classPrivateFieldGet)(this,ae,"f")}set geometryCoatNormalTexture(e){(0,aV.__classPrivateFieldSet)(this,ae,e,"f")}get geometryCoatTangent(){return(0,aV.__classPrivateFieldGet)(this,at,"f")}set geometryCoatTangent(e){(0,aV.__classPrivateFieldSet)(this,at,e,"f")}get geometryCoatTangentAngle(){return Math.atan2(this.geometryCoatTangent.y,this.geometryCoatTangent.x)}set geometryCoatTangentAngle(e){this.geometryCoatTangent=new ns.Vector2(Math.cos(e),Math.sin(e))}get geometryCoatTangentTexture(){return(0,aV.__classPrivateFieldGet)(this,as,"f")}set geometryCoatTangentTexture(e){(0,aV.__classPrivateFieldSet)(this,as,e,"f")}get geometryOpacity(){return(0,aV.__classPrivateFieldGet)(this,ai,"f")}set geometryOpacity(e){(0,aV.__classPrivateFieldSet)(this,ai,e,"f")}get geometryOpacityTexture(){return(0,aV.__classPrivateFieldGet)(this,ar,"f")}set geometryOpacityTexture(e){(0,aV.__classPrivateFieldSet)(this,ar,e,"f")}get geometryThickness(){return(0,aV.__classPrivateFieldGet)(this,aa,"f")}set geometryThickness(e){(0,aV.__classPrivateFieldSet)(this,aa,e,"f")}get geometryThicknessTexture(){return(0,aV.__classPrivateFieldGet)(this,an,"f")}set geometryThicknessTexture(e){(0,aV.__classPrivateFieldSet)(this,an,e,"f")}get emissionLuminance(){return(0,aV.__classPrivateFieldGet)(this,al,"f")}set emissionLuminance(e){(0,aV.__classPrivateFieldSet)(this,al,e,"f")}get emissionColor(){return(0,aV.__classPrivateFieldGet)(this,ao,"f")}set emissionColor(e){(0,aV.__classPrivateFieldSet)(this,ao,e,"f")}get emissionColorTexture(){return(0,aV.__classPrivateFieldGet)(this,au,"f")}set emissionColorTexture(e){(0,aV.__classPrivateFieldSet)(this,au,e,"f")}get thinFilmWeight(){return(0,aV.__classPrivateFieldGet)(this,ah,"f")}set thinFilmWeight(e){(0,aV.__classPrivateFieldSet)(this,ah,e,"f")}get thinFilmWeightTexture(){return(0,aV.__classPrivateFieldGet)(this,a_,"f")}set thinFilmWeightTexture(e){(0,aV.__classPrivateFieldSet)(this,a_,e,"f")}get thinFilmThickness(){return(0,aV.__classPrivateFieldGet)(this,ac,"f")}set thinFilmThickness(e){(0,aV.__classPrivateFieldSet)(this,ac,e,"f")}get thinFilmThicknessMin(){return(0,aV.__classPrivateFieldGet)(this,aT,"f")}set thinFilmThicknessMin(e){(0,aV.__classPrivateFieldSet)(this,aT,e,"f")}get thinFilmThicknessTexture(){return(0,aV.__classPrivateFieldGet)(this,ad,"f")}set thinFilmThicknessTexture(e){(0,aV.__classPrivateFieldSet)(this,ad,e,"f")}get thinFilmIor(){return(0,aV.__classPrivateFieldGet)(this,am,"f")}set thinFilmIor(e){(0,aV.__classPrivateFieldSet)(this,am,e,"f")}get ambientOcclusionTexture(){return(0,aV.__classPrivateFieldGet)(this,ap,"f")}set ambientOcclusionTexture(e){(0,aV.__classPrivateFieldSet)(this,ap,e,"f")}get sssQuality(){return this._sssQuality}set sssQuality(e){this._sssQuality!==e&&(this._sssQuality=e,this.markAsDirty(1))}get sssIrradianceTexture(){return this._sssIrradianceTexture}set sssIrradianceTexture(e){this._sssIrradianceTexture!==e&&(this._sssIrradianceTexture=e,this._markAllSubMeshesAsTexturesDirty())}get sssDepthTexture(){return this._sssDepthTexture}set sssDepthTexture(e){this._sssDepthTexture!==e&&(this._sssDepthTexture=e,this._markAllSubMeshesAsTexturesDirty())}get directIntensity(){return(0,aV.__classPrivateFieldGet)(this,ag,"f")}set directIntensity(e){(0,aV.__classPrivateFieldSet)(this,ag,e,"f")}get environmentIntensity(){return(0,aV.__classPrivateFieldGet)(this,af,"f")}set environmentIntensity(e){(0,aV.__classPrivateFieldSet)(this,af,e,"f")}get useSpecularWeightFromTextureAlpha(){return(0,aV.__classPrivateFieldGet)(this,aR,"f")}set useSpecularWeightFromTextureAlpha(e){(0,aV.__classPrivateFieldSet)(this,aR,e,"f")}get forceAlphaTest(){return(0,aV.__classPrivateFieldGet)(this,aA,"f")}set forceAlphaTest(e){(0,aV.__classPrivateFieldSet)(this,aA,e,"f")}get alphaCutOff(){return(0,aV.__classPrivateFieldGet)(this,ax,"f")}set alphaCutOff(e){(0,aV.__classPrivateFieldSet)(this,ax,e,"f")}get useAmbientOcclusionFromMetallicTextureRed(){return(0,aV.__classPrivateFieldGet)(this,aE,"f")}set useAmbientOcclusionFromMetallicTextureRed(e){(0,aV.__classPrivateFieldSet)(this,aE,e,"f")}get useAmbientInGrayScale(){return(0,aV.__classPrivateFieldGet)(this,aS,"f")}set useAmbientInGrayScale(e){(0,aV.__classPrivateFieldSet)(this,aS,e,"f")}get hasTransparency(){return this.subsurfaceWeight>0||this.transmissionWeight>0}get hasScattering(){return this.transmissionWeight>0&&this.transmissionDepth>0&&!this.transmissionScatter.equals(aZ.Color3.BlackReadOnly)||this.subsurfaceWeight>0}get usePhysicalLightFalloff(){return this._lightFalloff===aj.Material.LIGHTFALLOFF_PHYSICAL}set usePhysicalLightFalloff(e){e!==this.usePhysicalLightFalloff&&(this._markAllSubMeshesAsTexturesDirty(),e?this._lightFalloff=aj.Material.LIGHTFALLOFF_PHYSICAL:this._lightFalloff=aj.Material.LIGHTFALLOFF_STANDARD)}get useGLTFLightFalloff(){return this._lightFalloff===aj.Material.LIGHTFALLOFF_GLTF}set useGLTFLightFalloff(e){e!==this.useGLTFLightFalloff&&(this._markAllSubMeshesAsTexturesDirty(),e?this._lightFalloff=aj.Material.LIGHTFALLOFF_GLTF:this._lightFalloff=aj.Material.LIGHTFALLOFF_STANDARD)}get useObjectSpaceNormalMap(){return(0,aV.__classPrivateFieldGet)(this,aI,"f")}set useObjectSpaceNormalMap(e){(0,aV.__classPrivateFieldSet)(this,aI,e,"f")}get useParallax(){return(0,aV.__classPrivateFieldGet)(this,aM,"f")}set useParallax(e){(0,aV.__classPrivateFieldSet)(this,aM,e,"f")}get useParallaxOcclusion(){return(0,aV.__classPrivateFieldGet)(this,aF,"f")}set useParallaxOcclusion(e){(0,aV.__classPrivateFieldSet)(this,aF,e,"f")}get parallaxScaleBias(){return(0,aV.__classPrivateFieldGet)(this,aP,"f")}set parallaxScaleBias(e){(0,aV.__classPrivateFieldSet)(this,aP,e,"f")}get disableLighting(){return(0,aV.__classPrivateFieldGet)(this,ab,"f")}set disableLighting(e){(0,aV.__classPrivateFieldSet)(this,ab,e,"f")}get forceIrradianceInFragment(){return(0,aV.__classPrivateFieldGet)(this,ay,"f")}set forceIrradianceInFragment(e){(0,aV.__classPrivateFieldSet)(this,ay,e,"f")}get maxSimultaneousLights(){return(0,aV.__classPrivateFieldGet)(this,av,"f")}set maxSimultaneousLights(e){(0,aV.__classPrivateFieldSet)(this,av,e,"f")}get invertNormalMapX(){return(0,aV.__classPrivateFieldGet)(this,aC,"f")}set invertNormalMapX(e){(0,aV.__classPrivateFieldSet)(this,aC,e,"f")}get invertNormalMapY(){return(0,aV.__classPrivateFieldGet)(this,aD,"f")}set invertNormalMapY(e){(0,aV.__classPrivateFieldSet)(this,aD,e,"f")}get twoSidedLighting(){return(0,aV.__classPrivateFieldGet)(this,aL,"f")}set twoSidedLighting(e){(0,aV.__classPrivateFieldSet)(this,aL,e,"f")}get useAlphaFresnel(){return(0,aV.__classPrivateFieldGet)(this,aO,"f")}set useAlphaFresnel(e){(0,aV.__classPrivateFieldSet)(this,aO,e,"f")}get useLinearAlphaFresnel(){return(0,aV.__classPrivateFieldGet)(this,aN,"f")}set useLinearAlphaFresnel(e){(0,aV.__classPrivateFieldSet)(this,aN,e,"f")}get environmentBRDFTexture(){return(0,aV.__classPrivateFieldGet)(this,ak,"f")}set environmentBRDFTexture(e){(0,aV.__classPrivateFieldSet)(this,ak,e,"f")}get forceNormalForward(){return(0,aV.__classPrivateFieldGet)(this,az,"f")}set forceNormalForward(e){(0,aV.__classPrivateFieldSet)(this,az,e,"f")}get enableSpecularAntiAliasing(){return(0,aV.__classPrivateFieldGet)(this,aU,"f")}set enableSpecularAntiAliasing(e){(0,aV.__classPrivateFieldSet)(this,aU,e,"f")}get useHorizonOcclusion(){return(0,aV.__classPrivateFieldGet)(this,aB,"f")}set useHorizonOcclusion(e){(0,aV.__classPrivateFieldSet)(this,aB,e,"f")}get useRadianceOcclusion(){return(0,aV.__classPrivateFieldGet)(this,aG,"f")}set useRadianceOcclusion(e){(0,aV.__classPrivateFieldSet)(this,aG,e,"f")}get unlit(){return(0,aV.__classPrivateFieldGet)(this,aW,"f")}set unlit(e){(0,aV.__classPrivateFieldSet)(this,aW,e,"f")}get applyDecalMapAfterDetailMap(){return(0,aV.__classPrivateFieldGet)(this,aw,"f")}set applyDecalMapAfterDetailMap(e){(0,aV.__classPrivateFieldSet)(this,aw,e,"f")}get backgroundRefractionTexture(){return this._backgroundRefractionTexture}set backgroundRefractionTexture(e){this._backgroundRefractionTexture=e,this._markAllSubMeshesAsTexturesDirty()}get refractionHighQualityBlur(){return this._refractionHighQualityBlur}set refractionHighQualityBlur(e){this._refractionHighQualityBlur!==e&&(this._refractionHighQualityBlur=e,this.markAsDirty(1))}get realTimeFiltering(){return this._realTimeFiltering}set realTimeFiltering(e){this._realTimeFiltering=e,this.markAsDirty(1)}get realTimeFilteringQuality(){return this._realTimeFilteringQuality}set realTimeFilteringQuality(e){this._realTimeFilteringQuality=e,this.markAsDirty(1)}get fuzzSampleNumber(){return this._fuzzSampleNumber}set fuzzSampleNumber(e){this._fuzzSampleNumber=e,this.markAsDirty(1)}get canRenderToMRT(){return!0}get debugMode(){return(0,aV.__classPrivateFieldGet)(this,aH,"f")}set debugMode(e){(0,aV.__classPrivateFieldSet)(this,aH,e,"f")}constructor(e,t,s=!1){for(const i of(super(e,t,void 0,s||ra.ForceGLSL),rn.set(this,((0,aV.__runInitializers)(this,eJ),(0,aV.__runInitializers)(this,e0,void 0))),this._baseWeight=((0,aV.__runInitializers)(this,e1),new nM("base_weight",1,"vBaseWeight",1)),rl.set(this,(0,aV.__runInitializers)(this,e3,void 0)),this._baseWeightTexture=((0,aV.__runInitializers)(this,e2),new nF("base_weight","baseWeight","BASE_WEIGHT")),ro.set(this,(0,aV.__runInitializers)(this,e4,void 0)),this._baseColor=((0,aV.__runInitializers)(this,e5),new nM("base_color",aZ.Color3.White(),"vBaseColor",4)),ru.set(this,(0,aV.__runInitializers)(this,e6,void 0)),this._baseColorTexture=((0,aV.__runInitializers)(this,e8),new nF("base_color","baseColor","BASE_COLOR")),rh.set(this,(0,aV.__runInitializers)(this,e7,void 0)),this._baseDiffuseRoughness=((0,aV.__runInitializers)(this,e9),new nM("base_diffuse_roughness",0,"vBaseDiffuseRoughness",1)),r_.set(this,(0,aV.__runInitializers)(this,te,void 0)),this._baseDiffuseRoughnessTexture=((0,aV.__runInitializers)(this,tt),new nF("base_diffuse_roughness","baseDiffuseRoughness","BASE_DIFFUSE_ROUGHNESS")),rc.set(this,(0,aV.__runInitializers)(this,ts,void 0)),this._baseMetalness=((0,aV.__runInitializers)(this,ti),new nM("base_metalness",0,"vReflectanceInfo",4,0)),rT.set(this,(0,aV.__runInitializers)(this,tr,void 0)),this._baseMetalnessTexture=((0,aV.__runInitializers)(this,ta),new nF("base_metalness","baseMetalness","BASE_METALNESS")),rd.set(this,(0,aV.__runInitializers)(this,tn,void 0)),this._specularWeight=((0,aV.__runInitializers)(this,tl),new nM("specular_weight",1,"vReflectanceInfo",4,3)),rm.set(this,(0,aV.__runInitializers)(this,to,void 0)),this._specularWeightTexture=((0,aV.__runInitializers)(this,tu),new nF("specular_weight","specularWeight","SPECULAR_WEIGHT")),rp.set(this,(0,aV.__runInitializers)(this,th,void 0)),this._specularColor=((0,aV.__runInitializers)(this,t_),new nM("specular_color",aZ.Color3.White(),"vSpecularColor",4)),rg.set(this,(0,aV.__runInitializers)(this,tc,void 0)),this._specularColorTexture=((0,aV.__runInitializers)(this,tT),new nF("specular_color","specularColor","SPECULAR_COLOR")),rf.set(this,(0,aV.__runInitializers)(this,td,void 0)),this._specularRoughness=((0,aV.__runInitializers)(this,tm),new nM("specular_roughness",.3,"vReflectanceInfo",4,1)),rR.set(this,(0,aV.__runInitializers)(this,tp,void 0)),this._specularRoughnessTexture=((0,aV.__runInitializers)(this,tg),new nF("specular_roughness","specularRoughness","SPECULAR_ROUGHNESS")),rA.set(this,(0,aV.__runInitializers)(this,tf,void 0)),this._specularRoughnessAnisotropy=((0,aV.__runInitializers)(this,tR),new nM("specular_roughness_anisotropy",0,"vSpecularAnisotropy",3,2)),rx.set(this,(0,aV.__runInitializers)(this,tA,void 0)),this._specularRoughnessAnisotropyTexture=((0,aV.__runInitializers)(this,tx),new nF("specular_roughness_anisotropy","specularRoughnessAnisotropy","SPECULAR_ROUGHNESS_ANISOTROPY")),rE.set(this,(0,aV.__runInitializers)(this,tE,void 0)),this._specularIor=((0,aV.__runInitializers)(this,tS),new nM("specular_ior",1.5,"vReflectanceInfo",4,2)),rS.set(this,(0,aV.__runInitializers)(this,tI,void 0)),this._transmissionWeight=((0,aV.__runInitializers)(this,tM),new nM("transmission_weight",0,"vTransmissionWeight",1)),rI.set(this,(0,aV.__runInitializers)(this,tF,void 0)),this._transmissionWeightTexture=((0,aV.__runInitializers)(this,tP),new nF("transmission_weight","transmissionWeight","TRANSMISSION_WEIGHT")),rM.set(this,(0,aV.__runInitializers)(this,tb,void 0)),this._transmissionColor=((0,aV.__runInitializers)(this,ty),new nM("transmission_color",aZ.Color3.White(),"vTransmissionColor",3,0)),rF.set(this,(0,aV.__runInitializers)(this,tv,void 0)),this._transmissionColorTexture=((0,aV.__runInitializers)(this,tC),new nF("transmission_color","transmissionColor","TRANSMISSION_COLOR")),rP.set(this,(0,aV.__runInitializers)(this,tD,void 0)),this._transmissionDepth=((0,aV.__runInitializers)(this,tL),new nM("transmission_depth",0,"vTransmissionDepth",1,0)),rb.set(this,(0,aV.__runInitializers)(this,tO,void 0)),this._transmissionDepthTexture=((0,aV.__runInitializers)(this,tN),new nF("transmission_depth","transmissionDepth","TRANSMISSION_DEPTH")),ry.set(this,(0,aV.__runInitializers)(this,tk,void 0)),this._transmissionScatter=((0,aV.__runInitializers)(this,tz),new nM("transmission_scatter",aZ.Color3.Black(),"vTransmissionScatter",3,0)),rv.set(this,(0,aV.__runInitializers)(this,tU,void 0)),this._transmissionScatterTexture=((0,aV.__runInitializers)(this,tB),new nF("transmission_scatter","transmissionScatter","TRANSMISSION_SCATTER")),rC.set(this,(0,aV.__runInitializers)(this,tG,void 0)),this._transmissionScatterAnisotropy=((0,aV.__runInitializers)(this,tW),new nM("transmission_scatter_anisotropy",0,"vTransmissionScatterAnisotropy",1,0)),rD.set(this,(0,aV.__runInitializers)(this,tw,void 0)),this._transmissionDispersionScale=((0,aV.__runInitializers)(this,tH),new nM("transmission_dispersion_scale",0,"vTransmissionDispersionScale",1,0)),rL.set(this,(0,aV.__runInitializers)(this,tV,void 0)),this._transmissionDispersionScaleTexture=((0,aV.__runInitializers)(this,tX),new nF("transmission_dispersion_scale","transmissionDispersionScale","TRANSMISSION_DISPERSION_SCALE")),rO.set(this,(0,aV.__runInitializers)(this,tY,void 0)),this._transmissionDispersionAbbeNumber=((0,aV.__runInitializers)(this,tZ),new nM("transmission_dispersion_abbe_number",20,"vTransmissionDispersionAbbeNumber",1,0)),rN.set(this,(0,aV.__runInitializers)(this,tK,void 0)),this._subsurfaceWeight=((0,aV.__runInitializers)(this,tQ),new nM("subsurface_weight",0,"vSubsurfaceWeight",1,0,"SUBSURFACE_SLAB")),rk.set(this,(0,aV.__runInitializers)(this,tj,void 0)),this._subsurfaceWeightTexture=((0,aV.__runInitializers)(this,tq),new nF("subsurface_weight","subsurfaceWeight","SUBSURFACE_WEIGHT")),rz.set(this,(0,aV.__runInitializers)(this,t$,void 0)),this._subsurfaceColor=((0,aV.__runInitializers)(this,tJ),new nM("subsurface_color",new aZ.Color3(.8,.8,.8),"vSubsurfaceColor",3,0,"SUBSURFACE_SLAB")),rU.set(this,(0,aV.__runInitializers)(this,t0,void 0)),this._subsurfaceColorTexture=((0,aV.__runInitializers)(this,t1),new nF("subsurface_color","subsurfaceColor","SUBSURFACE_COLOR")),rB.set(this,(0,aV.__runInitializers)(this,t3,void 0)),this._subsurfaceRadius=((0,aV.__runInitializers)(this,t2),new nM("subsurface_radius",.1,"vSubsurfaceRadius",1,0,"SUBSURFACE_SLAB")),rG.set(this,(0,aV.__runInitializers)(this,t4,void 0)),this._subsurfaceRadiusScale=((0,aV.__runInitializers)(this,t5),new nM("subsurface_radius_scale",new aZ.Color3(1,.5,.25),"vSubsurfaceRadiusScale",3,0,"SUBSURFACE_SLAB")),rW.set(this,(0,aV.__runInitializers)(this,t6,void 0)),this._subsurfaceRadiusScaleTexture=((0,aV.__runInitializers)(this,t8),new nF("subsurface_radius_scale","subsurfaceRadiusScale","SUBSURFACE_RADIUS_SCALE")),rw.set(this,(0,aV.__runInitializers)(this,t7,void 0)),this._subsurfaceScatterAnisotropy=((0,aV.__runInitializers)(this,t9),new nM("subsurface_scatter_anisotropy",0,"vSubsurfaceScatterAnisotropy",1,0,"SUBSURFACE_SLAB")),rH.set(this,(0,aV.__runInitializers)(this,se,void 0)),this._coatWeight=((0,aV.__runInitializers)(this,st),new nM("coat_weight",0,"vCoatWeight",1,0)),rV.set(this,(0,aV.__runInitializers)(this,ss,void 0)),this._coatWeightTexture=((0,aV.__runInitializers)(this,si),new nF("coat_weight","coatWeight","COAT_WEIGHT")),rX.set(this,(0,aV.__runInitializers)(this,sr,void 0)),this._coatColor=((0,aV.__runInitializers)(this,sa),new nM("coat_color",aZ.Color3.White(),"vCoatColor",3,0)),rY.set(this,(0,aV.__runInitializers)(this,sn,void 0)),this._coatColorTexture=((0,aV.__runInitializers)(this,sl),new nF("coat_color","coatColor","COAT_COLOR")),rZ.set(this,(0,aV.__runInitializers)(this,so,void 0)),this._coatRoughness=((0,aV.__runInitializers)(this,su),new nM("coat_roughness",0,"vCoatRoughness",1,0)),rK.set(this,(0,aV.__runInitializers)(this,sh,void 0)),this._coatRoughnessTexture=((0,aV.__runInitializers)(this,s_),new nF("coat_roughness","coatRoughness","COAT_ROUGHNESS")),rQ.set(this,(0,aV.__runInitializers)(this,sc,void 0)),this._coatRoughnessAnisotropy=((0,aV.__runInitializers)(this,sT),new nM("coat_roughness_anisotropy",0,"vCoatRoughnessAnisotropy",1)),rj.set(this,(0,aV.__runInitializers)(this,sd,void 0)),this._coatRoughnessAnisotropyTexture=((0,aV.__runInitializers)(this,sm),new nF("coat_roughness_anisotropy","coatRoughnessAnisotropy","COAT_ROUGHNESS_ANISOTROPY")),rq.set(this,(0,aV.__runInitializers)(this,sp,void 0)),this._coatIor=((0,aV.__runInitializers)(this,sg),new nM("coat_ior",1.5,"vCoatIor",1,0)),r$.set(this,(0,aV.__runInitializers)(this,sf,void 0)),this._coatDarkening=((0,aV.__runInitializers)(this,sR),new nM("coat_darkening",1,"vCoatDarkening",1,0)),rJ.set(this,(0,aV.__runInitializers)(this,sA,void 0)),this._coatDarkeningTexture=((0,aV.__runInitializers)(this,sx),new nF("coat_darkening","coatDarkening","COAT_DARKENING")),this.useCoatRoughnessFromWeightTexture=!1,r0.set(this,(0,aV.__runInitializers)(this,sE,void 0)),this._fuzzWeight=((0,aV.__runInitializers)(this,sS),new nM("fuzz_weight",0,"vFuzzWeight",1,0)),r1.set(this,(0,aV.__runInitializers)(this,sI,void 0)),this._fuzzWeightTexture=((0,aV.__runInitializers)(this,sM),new nF("fuzz_weight","fuzzWeight","FUZZ_WEIGHT")),r3.set(this,(0,aV.__runInitializers)(this,sF,void 0)),this._fuzzColor=((0,aV.__runInitializers)(this,sP),new nM("fuzz_color",aZ.Color3.White(),"vFuzzColor",3,0)),r2.set(this,(0,aV.__runInitializers)(this,sb,void 0)),this._fuzzColorTexture=((0,aV.__runInitializers)(this,sy),new nF("fuzz_color","fuzzColor","FUZZ_COLOR")),r4.set(this,(0,aV.__runInitializers)(this,sv,void 0)),this._fuzzRoughness=((0,aV.__runInitializers)(this,sC),new nM("fuzz_roughness",.5,"vFuzzRoughness",1,0)),r5.set(this,(0,aV.__runInitializers)(this,sD,void 0)),this._fuzzRoughnessTexture=((0,aV.__runInitializers)(this,sL),new nF("fuzz_roughness","fuzzRoughness","FUZZ_ROUGHNESS")),r6.set(this,(0,aV.__runInitializers)(this,sO,void 0)),this._geometryThinWalled=((0,aV.__runInitializers)(this,sN),new nM("geometry_thin_walled",0,"vGeometryThinWalled",1,0)),r8.set(this,(0,aV.__runInitializers)(this,sk,void 0)),this._geometryNormalTexture=((0,aV.__runInitializers)(this,sz),new nF("geometry_normal","geometryNormal","GEOMETRY_NORMAL")),r7.set(this,(0,aV.__runInitializers)(this,sU,void 0)),this._geometryTangent=((0,aV.__runInitializers)(this,sB),new nM("geometry_tangent",new ns.Vector2(1,0),"vSpecularAnisotropy",3,0)),r9.set(this,(0,aV.__runInitializers)(this,sG,void 0)),this._geometryTangentTexture=((0,aV.__runInitializers)(this,sW),new nF("geometry_tangent","geometryTangent","GEOMETRY_TANGENT")),ae.set(this,(0,aV.__runInitializers)(this,sw,void 0)),this._geometryCoatNormalTexture=((0,aV.__runInitializers)(this,sH),new nF("geometry_coat_normal","geometryCoatNormal","GEOMETRY_COAT_NORMAL")),at.set(this,(0,aV.__runInitializers)(this,sV,void 0)),this._geometryCoatTangent=((0,aV.__runInitializers)(this,sX),new nM("geometry_coat_tangent",new ns.Vector2(1,0),"vGeometryCoatTangent",2,0)),as.set(this,(0,aV.__runInitializers)(this,sY,void 0)),this._geometryCoatTangentTexture=((0,aV.__runInitializers)(this,sZ),new nF("geometry_coat_tangent","geometryCoatTangent","GEOMETRY_COAT_TANGENT")),ai.set(this,(0,aV.__runInitializers)(this,sK,void 0)),this._geometryOpacity=((0,aV.__runInitializers)(this,sQ),new nM("geometry_opacity",1,"vBaseColor",4,3)),ar.set(this,(0,aV.__runInitializers)(this,sj,void 0)),this._geometryOpacityTexture=((0,aV.__runInitializers)(this,sq),new nF("geometry_opacity","geometryOpacity","GEOMETRY_OPACITY")),aa.set(this,(0,aV.__runInitializers)(this,s$,void 0)),this._geometryThickness=((0,aV.__runInitializers)(this,sJ),new nM("geometry_thickness",0,"vGeometryThickness",1,0)),an.set(this,(0,aV.__runInitializers)(this,s0,void 0)),this._geometryThicknessTexture=((0,aV.__runInitializers)(this,s1),new nF("geometry_thickness","geometryThickness","GEOMETRY_THICKNESS")),al.set(this,(0,aV.__runInitializers)(this,s3,void 0)),this._emissionLuminance=((0,aV.__runInitializers)(this,s2),new nM("emission_luminance",1,"vLightingIntensity",4,1)),ao.set(this,(0,aV.__runInitializers)(this,s4,void 0)),this._emissionColor=((0,aV.__runInitializers)(this,s5),new nM("emission_color",aZ.Color3.Black(),"vEmissionColor",3)),au.set(this,(0,aV.__runInitializers)(this,s6,void 0)),this._emissionColorTexture=((0,aV.__runInitializers)(this,s8),new nF("emission_color","emissionColor","EMISSION_COLOR")),ah.set(this,(0,aV.__runInitializers)(this,s7,void 0)),this._thinFilmWeight=((0,aV.__runInitializers)(this,s9),new nM("thin_film_weight",0,"vThinFilmWeight",1,0)),a_.set(this,(0,aV.__runInitializers)(this,ie,void 0)),this._thinFilmWeightTexture=((0,aV.__runInitializers)(this,it),new nF("thin_film_weight","thinFilmWeight","THIN_FILM_WEIGHT")),ac.set(this,(0,aV.__runInitializers)(this,is,void 0)),this._thinFilmThickness=((0,aV.__runInitializers)(this,ii),new nM("thin_film_thickness",.5,"vThinFilmThickness",2,0)),aT.set(this,(0,aV.__runInitializers)(this,ir,void 0)),this._thinFilmThicknessMin=((0,aV.__runInitializers)(this,ia),new nM("thin_film_thickness_min",0,"vThinFilmThickness",2,1)),ad.set(this,(0,aV.__runInitializers)(this,il,void 0)),this._thinFilmThicknessTexture=((0,aV.__runInitializers)(this,io),new nF("thin_film_thickness","thinFilmThickness","THIN_FILM_THICKNESS")),am.set(this,(0,aV.__runInitializers)(this,iu,void 0)),this._thinFilmIor=((0,aV.__runInitializers)(this,ih),new nM("thin_film_ior",1.4,"vThinFilmIor",1,0)),ap.set(this,(0,aV.__runInitializers)(this,i_,void 0)),this._ambientOcclusionTexture=((0,aV.__runInitializers)(this,ic),new nF("ambient_occlusion","ambientOcclusion","AMBIENT_OCCLUSION")),this._sssQuality=ra.SSS_QUALITY_MEDIUM,this._sssIrradianceTexture=null,this._sssDepthTexture=null,this._uniformsList={},this._uniformsArray=[],this._samplersList={},this._samplerDefines={},ag.set(this,(0,aV.__runInitializers)(this,iT,1)),af.set(this,((0,aV.__runInitializers)(this,id),(0,aV.__runInitializers)(this,im,1))),aR.set(this,((0,aV.__runInitializers)(this,ip),(0,aV.__runInitializers)(this,ig,!1))),aA.set(this,((0,aV.__runInitializers)(this,iR),(0,aV.__runInitializers)(this,iA,!1))),ax.set(this,((0,aV.__runInitializers)(this,ix),(0,aV.__runInitializers)(this,iE,.4))),aE.set(this,((0,aV.__runInitializers)(this,iS),(0,aV.__runInitializers)(this,iI,!1))),aS.set(this,((0,aV.__runInitializers)(this,iM),(0,aV.__runInitializers)(this,iF,!1))),aI.set(this,((0,aV.__runInitializers)(this,iP),(0,aV.__runInitializers)(this,ib,!1))),aM.set(this,((0,aV.__runInitializers)(this,iy),(0,aV.__runInitializers)(this,iv,!1))),aF.set(this,((0,aV.__runInitializers)(this,iC),(0,aV.__runInitializers)(this,iD,!1))),aP.set(this,((0,aV.__runInitializers)(this,iL),(0,aV.__runInitializers)(this,iO,.05))),ab.set(this,((0,aV.__runInitializers)(this,iN),(0,aV.__runInitializers)(this,ik,!1))),ay.set(this,((0,aV.__runInitializers)(this,iz),(0,aV.__runInitializers)(this,iU,!1))),av.set(this,((0,aV.__runInitializers)(this,iB),(0,aV.__runInitializers)(this,iG,4))),aC.set(this,((0,aV.__runInitializers)(this,iW),(0,aV.__runInitializers)(this,iw,!1))),aD.set(this,((0,aV.__runInitializers)(this,iH),(0,aV.__runInitializers)(this,iV,!1))),aL.set(this,((0,aV.__runInitializers)(this,iX),(0,aV.__runInitializers)(this,iY,!1))),aO.set(this,((0,aV.__runInitializers)(this,iZ),(0,aV.__runInitializers)(this,iK,!1))),aN.set(this,((0,aV.__runInitializers)(this,iQ),(0,aV.__runInitializers)(this,ij,!1))),ak.set(this,((0,aV.__runInitializers)(this,iq),(0,aV.__runInitializers)(this,i$,null))),az.set(this,((0,aV.__runInitializers)(this,iJ),(0,aV.__runInitializers)(this,i0,!1))),aU.set(this,((0,aV.__runInitializers)(this,i1),(0,aV.__runInitializers)(this,i3,!1))),aB.set(this,((0,aV.__runInitializers)(this,i2),(0,aV.__runInitializers)(this,i4,!0))),aG.set(this,((0,aV.__runInitializers)(this,i5),(0,aV.__runInitializers)(this,i6,!0))),aW.set(this,((0,aV.__runInitializers)(this,i8),(0,aV.__runInitializers)(this,i7,!1))),aw.set(this,((0,aV.__runInitializers)(this,i9),(0,aV.__runInitializers)(this,re,!1))),this._lightingInfos=((0,aV.__runInitializers)(this,rt),new ns.Vector4(this.directIntensity,1,this.environmentIntensity,1)),this._radianceTexture=null,this._useSpecularWeightFromAlpha=!1,this._useSpecularWeightFromSpecularColorTexture=!1,this._useSpecularRoughnessAnisotropyFromTangentTexture=!1,this._useCoatRoughnessAnisotropyFromTangentTexture=!1,this._useCoatRoughnessFromGreenChannel=!1,this._useGltfStyleAnisotropy=!1,this._useFuzzRoughnessFromTextureAlpha=!1,this._useSubsurfaceWeightFromTextureAlpha=!1,this._useHorizonOcclusion=!0,this._useRadianceOcclusion=!0,this._useAlphaFromBaseColorTexture=!1,this._useAmbientOcclusionFromMetallicTextureRed=!1,this._useRoughnessFromMetallicTextureGreen=!1,this._useMetallicFromMetallicTextureBlue=!1,this._useThinFilmThicknessFromTextureGreen=!1,this._useGeometryThicknessFromGreenChannel=!1,this._lightFalloff=aj.Material.LIGHTFALLOFF_PHYSICAL,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this._parallaxScaleBias=.05,this._disableLighting=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._alphaCutOff=.4,this._useAlphaFresnel=!1,this._useLinearAlphaFresnel=!1,this._environmentBRDFTexture=null,this._environmentFuzzBRDFTexture=null,this._backgroundRefractionTexture=null,this._refractionHighQualityBlur=!0,this._forceIrradianceInFragment=!1,this._realTimeFiltering=!1,this._realTimeFilteringQuality=8,this._fuzzSampleNumber=4,this._forceNormalForward=!1,this._enableSpecularAntiAliasing=!1,this._renderTargets=new na.SmartArray(16),this._unlit=!1,this._applyDecalMapAfterDetailMap=!1,this._debugMode=0,this._shadersLoaded=!1,this._breakShaderLoadedCheck=!1,this._vertexPullingMetadata=null,aH.set(this,(0,aV.__runInitializers)(this,rs,0)),this.debugLimit=((0,aV.__runInitializers)(this,ri),-1),this.debugFactor=1,this._cacheHasRenderTargetTextures=!1,this._transparencyMode=aj.Material.MATERIAL_OPAQUE,this.getScene()&&!this.getScene()?.getEngine().isWebGPU&&this.getScene().getEngine().webGLVersion<2&&a7.Logger.Error("OpenPBRMaterial: WebGL 2.0 or above is required for this material."),ra._noiseTextures[this.getScene().uniqueId]||(ra._noiseTextures[this.getScene().uniqueId]=new aQ.Texture(nn.Tools.GetAssetUrl("https://assets.babylonjs.com/core/blue_noise/blue_noise_rgb.png"),this.getScene(),!1,!0,1),this.getScene().onDisposeObservable.addOnce(()=>{ra._noiseTextures[this.getScene().uniqueId]?.dispose(),delete ra._noiseTextures[this.getScene().uniqueId]})),this._attachImageProcessingConfiguration(null),this.getRenderTargetTextures=()=>(this._renderTargets.reset(),a8.MaterialFlags.ReflectionTextureEnabled&&this._radianceTexture&&this._radianceTexture.isRenderTarget&&this._renderTargets.push(this._radianceTexture),a8.MaterialFlags.RefractionTextureEnabled&&this._backgroundRefractionTexture&&this._backgroundRefractionTexture.isRenderTarget&&this._renderTargets.push(this._backgroundRefractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets),this._environmentBRDFTexture=(0,aY.GetOpenPBREnvironmentBRDFTexture)(this.getScene()),this._environmentFuzzBRDFTexture=(0,aY.GetEnvironmentFuzzBRDFTexture)(this.getScene()),this.prePassConfiguration=new a6.PrePassConfiguration,this._propertyList={},Object.getOwnPropertyNames(this))){const e=this[i];e instanceof nM&&(this._propertyList[i]=e)}for(const e of(Object.keys(this._propertyList).forEach(e=>{let t=this._propertyList[e],s=this._uniformsList[t.targetUniformName];s?s.numComponents!==t.targetUniformComponentNum?a7.Logger.Error(`Uniform ${t.targetUniformName} already exists of size ${s.numComponents}, but trying to set it to ${t.targetUniformComponentNum}.`):s.requiredDefine!==t.requiredDefine&&(s.requiredDefine=void 0):((s=new nI(t.targetUniformName,t.targetUniformComponentNum)).requiredDefine=t.requiredDefine,this._uniformsList[t.targetUniformName]=s),""===s.firstLinkedKey&&(s.firstLinkedKey=t.name),s.linkedProperties[t.name]=t}),this._uniformsArray=Object.values(this._uniformsList),this._samplersList={},Object.getOwnPropertyNames(this))){const t=this[e];t instanceof nF&&(this._samplersList[e]=t)}for(const e in this._samplersList){const t=this._samplersList[e].textureDefine;this._samplerDefines[t]={type:"boolean",default:!1},this._samplerDefines[t+"DIRECTUV"]={type:"number",default:0},this._samplerDefines[t+"_GAMMA"]={type:"boolean",default:!1}}this._baseWeight,this._baseWeightTexture,this._baseColor,this._baseColorTexture,this._baseDiffuseRoughness,this._baseDiffuseRoughnessTexture,this._baseMetalness,this._baseMetalnessTexture,this._specularWeight,this._specularWeightTexture,this._specularColor,this._specularColorTexture,this._specularRoughness,this._specularIor,this._specularRoughnessTexture,this._specularRoughnessAnisotropy,this._specularRoughnessAnisotropyTexture,this._transmissionWeight,this._transmissionWeightTexture,this._transmissionColor,this._transmissionColorTexture,this._transmissionDepth,this._transmissionDepthTexture,this._transmissionScatter,this._transmissionScatterTexture,this._transmissionScatterAnisotropy,this._transmissionDispersionScale,this._transmissionDispersionScaleTexture,this._transmissionDispersionAbbeNumber,this._subsurfaceWeight,this._subsurfaceWeightTexture,this._subsurfaceColor,this._subsurfaceColorTexture,this._subsurfaceRadius,this._subsurfaceRadiusScale,this._subsurfaceRadiusScaleTexture,this._subsurfaceScatterAnisotropy,this._coatWeight,this._coatWeightTexture,this._coatColor,this._coatColorTexture,this._coatRoughness,this._coatRoughnessTexture,this._coatRoughnessAnisotropy,this._coatRoughnessAnisotropyTexture,this._coatIor,this._coatDarkening,this._coatDarkeningTexture,this._fuzzWeight,this._fuzzWeightTexture,this._fuzzColor,this._fuzzColorTexture,this._fuzzRoughness,this._fuzzRoughnessTexture,this._geometryThinWalled,this._geometryNormalTexture,this._geometryTangent,this._geometryTangentTexture,this._geometryCoatNormalTexture,this._geometryCoatTangent,this._geometryCoatTangentTexture,this._geometryOpacity,this._geometryOpacityTexture,this._geometryThickness,this._geometryThicknessTexture,this._thinFilmWeight,this._thinFilmWeightTexture,this._thinFilmThickness,this._thinFilmThicknessMin,this._thinFilmThicknessTexture,this._thinFilmIor,this._emissionLuminance,this._emissionColor,this._emissionColorTexture,this._ambientOcclusionTexture}get hasRenderTargetTextures(){return!!a8.MaterialFlags.ReflectionTextureEnabled&&!!this._radianceTexture&&!!this._radianceTexture.isRenderTarget||!!a8.MaterialFlags.RefractionTextureEnabled&&!!this._backgroundRefractionTexture&&!!this._backgroundRefractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}get isPrePassCapable(){return!this.disableDepthWrite}getClassName(){return"OpenPBRMaterial"}get transparencyMode(){return this._transparencyMode}set transparencyMode(e){this._transparencyMode!==e&&(this._transparencyMode=e,this._markAllSubMeshesAsTexturesAndMiscDirty())}_shouldUseAlphaFromBaseColorTexture(){return this._hasAlphaChannel()&&this._transparencyMode!==aj.Material.MATERIAL_OPAQUE&&!this.geometryOpacityTexture}_hasAlphaChannel(){return null!=this.baseColorTexture&&this.baseColorTexture.hasAlpha&&this._useAlphaFromBaseColorTexture||null!=this.geometryOpacityTexture}needAlphaBlending(){return this.geometryOpacity<1||null!=this.geometryOpacityTexture}needAlphaBlendingForMesh(e){return this.geometryOpacity<1||null!=this.geometryOpacityTexture||super.needAlphaBlendingForMesh(e)}clone(e,t=!0,s=""){let i=aq.SerializationHelper.Clone(()=>new ra(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return i.id=e,i.name=e,this.stencil.copyTo(i.stencil),this._clonePlugins(i,s),i}serialize(){let e=super.serialize();return e.customType="BABYLON.OpenPBRMaterial",e}static Parse(e,t,s){let i=aq.SerializationHelper.Parse(()=>new ra(e.name,t),e,t,s);return e.stencil&&i.stencil.parse(e.stencil,t,s),aj.Material._ParsePlugins(e,i,t,s),i}forceCompilation(e,t,s){let i={clipPlane:!1,useInstances:!1,...s};this._uniformBufferLayoutBuilt||this.buildUniformLayout(),this._callbackPluginEventGeneric(4,this._eventInfo),(()=>{if(this._breakShaderLoadedCheck)return;let s=new ny({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}),r=this._prepareEffect(e,e,s,void 0,void 0,i.useInstances,i.clipPlane);this._onEffectCreatedObservable&&(nE.effect=r,nE.subMesh=null,this._onEffectCreatedObservable.notifyObservers(nE)),r.isReady()?t&&t(this):r.onCompileObservable.add(()=>{t&&t(this)})})()}isReadyForSubMesh(e,t,s){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let i=t._drawWrapper;if(i.effect&&this.isFrozen&&i._wasPreviouslyReady&&i._wasPreviouslyUsingInstances===s)return!0;t.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),t.materialDefines=new ny({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}));let r=t.materialDefines;if(this._isReadyForSubMesh(t))return!0;let a=this.getScene(),n=a.getEngine();if(r._areTexturesDirty&&(this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,a.texturesEnabled)){for(let e in this._samplersList){let t=this._samplersList[e];if(t.value&&!t.value.isReadyOrNotBlocking())return!1}let e=this._getRadianceTexture();if(e&&a8.MaterialFlags.ReflectionTextureEnabled){if(!e.isReadyOrNotBlocking())return!1;if(e.irradianceTexture){if(!e.irradianceTexture.isReadyOrNotBlocking())return!1}else if(!e.sphericalPolynomial&&e.getInternalTexture()?._sphericalPolynomialPromise)return!1}if(this._environmentBRDFTexture&&a8.MaterialFlags.ReflectionTextureEnabled&&!this._environmentBRDFTexture.isReady()||this._environmentFuzzBRDFTexture&&a8.MaterialFlags.ReflectionTextureEnabled&&!this._environmentFuzzBRDFTexture.isReady()||this._backgroundRefractionTexture&&a8.MaterialFlags.RefractionTextureEnabled&&!this._backgroundRefractionTexture.isReadyOrNotBlocking()||ra._noiseTextures[a.uniqueId]&&!ra._noiseTextures[a.uniqueId].isReady()||this._sssIrradianceTexture&&this._sssDepthTexture&&(!this._sssIrradianceTexture.isReady()||!this._sssDepthTexture.isReady()))return!1}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=r,this._eventInfo.subMesh=t,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh||r._areImageProcessingDirty&&this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.isReady())return!1;if(r.AREALIGHTUSED){for(let t=0;t<e.lightSources.length;t++)if(!e.lightSources[t]._isReady())return!1}if(n.getCaps().standardDerivatives||e.isVerticesDataPresent(a4.VertexBuffer.NormalKind)||(e.createNormals(!0),a7.Logger.Warn("OpenPBRMaterial: Normals have been created for the mesh: "+e.name)),!(0,a2.AreLightsTexturesReady)(a,e,this._maxSimultaneousLights,this._disableLighting))return!1;let l=t.effect,o=r._areLightsDisposed,u=this._prepareEffect(e,t.getRenderingMesh(),r,this.onCompiled,this.onError,s,null),h=!1;if(u)if(this._onEffectCreatedObservable&&(nE.effect=u,nE.subMesh=t,this._onEffectCreatedObservable.notifyObservers(nE)),this.allowShaderHotSwapping&&l&&!u.isReady()){if(r.markAsUnprocessed(),h=this.isFrozen,o)return r._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),t.setEffect(u,r,this._materialContext);return!!t.effect&&!!t.effect.isReady()&&(r._renderId=a.getRenderId(),i._wasPreviouslyReady=!h,i._wasPreviouslyUsingInstances=!!s,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("vTangentSpaceParams",2),e.addUniform("vLightingIntensity",4),e.addUniform("pointSize",1),e.addUniform("vDebugMode",2),e.addUniform("renderTargetSize",2),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),e.addUniform("backgroundRefractionMatrix",16),e.addUniform("vBackgroundRefractionInfos",3),(0,a2.PrepareUniformLayoutForIBL)(e,!0,!0,!0,!0,!0),Object.values(this._uniformsList).forEach(t=>{e.addUniform(t.name,t.numComponents)}),Object.values(this._samplersList).forEach(t=>{e.addUniform(t.samplerInfoName,2),e.addUniform(t.samplerMatrixName,16)}),super.buildUniformLayout()}bindPropertiesForSubMesh(e,t,s,i){if(0===this.geometryThickness)e.updateFloat("vGeometryThickness",0);else{i.getRenderingMesh().getWorldMatrix().decompose(ns.TmpVectors.Vector3[0]);let t=Math.max(Math.abs(ns.TmpVectors.Vector3[0].x),Math.abs(ns.TmpVectors.Vector3[0].y),Math.abs(ns.TmpVectors.Vector3[0].z));e.updateFloat("vGeometryThickness",this.geometryThickness*t)}}bindForSubMesh(e,t,s){let i=this.getScene(),r=s.materialDefines;if(!r)return;let a=s.effect;if(!a)return;this._activeEffect=a,t.getMeshUniformBuffer().bindToEffect(a,"Mesh"),t.transferToEffect(e);let n=i.getEngine();this._uniformBuffer.bindToEffect(a,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,i,t,e,this.isFrozen),a5.MaterialHelperGeometryRendering.Bind(n.currentRenderPassId,this._activeEffect,t,e,this);let l=i.activeCamera;l?this._uniformBuffer.updateFloat4("cameraInfo",l.minZ,l.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let o=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",o[0],o[1],o[2],o[3]),this._eventInfo.subMesh=s,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),r.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let u=this._mustRebind(i,a,s,t.visibility),h=n._features.needToAlwaysBindUniformBuffers;(0,a2.BindBonesParameters)(t,this._activeEffect,this.prePassConfiguration),this._vertexPullingMetadata&&(0,a3.BindVertexPullingUniforms)(this._activeEffect,this._vertexPullingMetadata);let _=this._uniformBuffer;if(u){this.bindViewProjection(a);let e=this._getRadianceTexture();if(!_.useUbo||!this.isFrozen||!_.isSync||s._drawWrapper._forceRebindOnNextCall){if(i.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value&&(_.updateFloat2(t.samplerInfoName,t.value.coordinatesIndex,t.value.level),(0,a2.BindTextureMatrix)(t.value,_,t.samplerPrefix))}(this.geometryNormalTexture||this.geometryCoatNormalTexture)&&(i._mirroredCameraPosition?_.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):_.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),(0,a2.BindIBLParameters)(i,r,_,aZ.Color3.White(),e,this.realTimeFiltering,!0,!0,!0,!0,!0)}this.pointsCloud&&_.updateFloat("pointSize",this.pointSize);let t=this._uniformsArray;for(let e=0,s=t.length;e<s;e++){let s=t[e];(void 0===s.requiredDefine||r[s.requiredDefine])&&(4===s.numComponents?(s.populateVectorFromLinkedProperties(ns.TmpVectors.Vector4[0]),_.updateVector4(s.name,ns.TmpVectors.Vector4[0])):3===s.numComponents?(s.populateVectorFromLinkedProperties(ns.TmpVectors.Vector3[0]),_.updateVector3(s.name,ns.TmpVectors.Vector3[0])):2===s.numComponents?(s.populateVectorFromLinkedProperties(ns.TmpVectors.Vector2[0]),_.updateFloat2(s.name,ns.TmpVectors.Vector2[0].x,ns.TmpVectors.Vector2[0].y)):1===s.numComponents&&_.updateFloat(s.name,s.linkedProperties[s.firstLinkedKey].value))}this._lightingInfos.x=this.directIntensity,this._lightingInfos.y=this.emissionLuminance,this._lightingInfos.z=this.environmentIntensity*i.environmentIntensity,this._lightingInfos.w=1,_.updateVector4("vLightingIntensity",this._lightingInfos),_.updateFloat2("vDebugMode",this.debugLimit,this.debugFactor)}if(i.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value&&_.setTexture(t.samplerName,t.value)}if((0,a2.BindIBLSamplers)(i,r,_,e,this.realTimeFiltering),r.ENVIRONMENTBRDF&&_.setTexture("environmentBrdfSampler",this._environmentBRDFTexture),r.FUZZENVIRONMENTBRDF&&_.setTexture("environmentFuzzBrdfSampler",this._environmentFuzzBRDFTexture),r.REFRACTED_BACKGROUND&&(_.setTexture("backgroundRefractionSampler",this._backgroundRefractionTexture),_.updateMatrix("backgroundRefractionMatrix",this._backgroundRefractionTexture.getReflectionTextureMatrix()),ns.TmpVectors.Vector3[1].set(Math.log2(this._backgroundRefractionTexture.getSize().width),0,0),_.updateVector3("vBackgroundRefractionInfos",ns.TmpVectors.Vector3[1])),(r.ANISOTROPIC||r.FUZZ||r.REFRACTED_BACKGROUND||r.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING)&&_.setTexture("blueNoiseSampler",ra._noiseTextures[this.getScene().uniqueId]),r.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING&&this.sssIrradianceTexture&&this.sssDepthTexture){let e=this.sssIrradianceTexture.getSize().width,t=this.sssIrradianceTexture.getSize().height;_.setTexture("sceneIrradianceSampler",this.sssIrradianceTexture),_.setTexture("sceneDepthSampler",this.sssDepthTexture),_.updateFloat2("renderTargetSize",e,t)}}this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(a),this._eventInfo.subMesh=s,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,a1.BindClipPlane)(this._activeEffect,this,i),this.bindEyePosition(a)}else h&&(this._needToBindSceneUbo=!0);this.bindPropertiesForSubMesh(this._uniformBuffer,i,i.getEngine(),s),(u||!this.isFrozen||h)&&i.lightsEnabled&&!this._disableLighting&&(0,a2.BindLights)(i,t,this._activeEffect,r,this._maxSimultaneousLights),(u||!this.isFrozen)&&(this.bindView(a),(0,a2.BindFogParameters)(i,t,this._activeEffect,!0),r.NUM_MORPH_INFLUENCERS&&(0,a2.BindMorphTargetParameters)(t,this._activeEffect),r.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(a,r.INSTANCES),this._imageProcessingConfiguration.bind(this._activeEffect),(0,a2.BindLogDepth)(r,this._activeEffect,i)),this._afterBind(t,this._activeEffect,s),_.update()}getAnimatables(){let e=super.getAnimatables();for(let t in this._samplersList){let s=this._samplersList[t];s.value&&s.value.animations&&s.value.animations.length>0&&e.push(s.value)}return this._radianceTexture&&this._radianceTexture.animations&&this._radianceTexture.animations.length>0&&e.push(this._radianceTexture),e}getActiveTextures(){let e=super.getActiveTextures();for(let t in this._samplersList){let s=this._samplersList[t];s.value&&e.push(s.value)}return this._radianceTexture&&e.push(this._radianceTexture),e}hasTexture(e){if(super.hasTexture(e))return!0;for(let t in this._samplersList)if(this._samplersList[t].value===e)return!0;return this._radianceTexture===e}setPrePassRenderer(){return!1}dispose(e,t){if(this._breakShaderLoadedCheck=!0,t){for(let e in this._environmentBRDFTexture&&this.getScene().openPBREnvironmentBRDFTexture!==this._environmentBRDFTexture&&this._environmentBRDFTexture.dispose(),this._environmentFuzzBRDFTexture&&this.getScene().environmentFuzzBRDFTexture!==this._environmentFuzzBRDFTexture&&this._environmentFuzzBRDFTexture.dispose(),this._backgroundRefractionTexture=null,this._samplersList){let t=this._samplersList[e];t.value?.dispose()}this._radianceTexture?.dispose()}this._renderTargets.dispose(),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}_getRadianceTexture(){return this._radianceTexture?this._radianceTexture:this.getScene().environmentTexture}_prepareEffect(t,s,i,r=null,a=null,n=null,l=null){if(this._prepareDefines(t,s,i,n,l),!i.isDirty)return null;i.markAsProcessed();let o=this.getScene().getEngine(),u=new a0.EffectFallbacks,h=0;i.USESPHERICALINVERTEX&&u.addFallback(h++,"USESPHERICALINVERTEX"),i.FOG&&u.addFallback(h,"FOG"),i.SPECULARAA&&u.addFallback(h,"SPECULARAA"),i.POINTSIZE&&u.addFallback(h,"POINTSIZE"),i.LOGARITHMICDEPTH&&u.addFallback(h,"LOGARITHMICDEPTH"),i.PARALLAX&&u.addFallback(h,"PARALLAX"),i.PARALLAX_RHS&&u.addFallback(h,"PARALLAX_RHS"),i.PARALLAXOCCLUSION&&u.addFallback(h++,"PARALLAXOCCLUSION"),i.ENVIRONMENTBRDF&&u.addFallback(h++,"ENVIRONMENTBRDF"),i.TANGENT&&u.addFallback(h++,"TANGENT"),h=(0,a2.HandleFallbacksForShadows)(i,u,this._maxSimultaneousLights,h),i.SPECULARTERM&&u.addFallback(h++,"SPECULARTERM"),i.USESPHERICALFROMREFLECTIONMAP&&u.addFallback(h++,"USESPHERICALFROMREFLECTIONMAP"),i.USEIRRADIANCEMAP&&u.addFallback(h++,"USEIRRADIANCEMAP"),i.NORMAL&&u.addFallback(h++,"NORMAL"),i.VERTEXCOLOR&&u.addFallback(h++,"VERTEXCOLOR"),i.MORPHTARGETS&&u.addFallback(h++,"MORPHTARGETS"),i.MULTIVIEW&&u.addFallback(0,"MULTIVIEW");let _=[a4.VertexBuffer.PositionKind];i.NORMAL&&_.push(a4.VertexBuffer.NormalKind),i.TANGENT&&_.push(a4.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)i["UV"+e]&&_.push(`uv${1===e?"":e}`);i.VERTEXCOLOR&&_.push(a4.VertexBuffer.ColorKind),(0,a2.PrepareAttributesForBones)(_,t,i,u),(0,a2.PrepareAttributesForInstances)(_,i),(0,a2.PrepareAttributesForMorphTargets)(_,t,i),(0,a2.PrepareAttributesForBakedVertexAnimation)(_,t,i);let c="openpbr",T=["world","view","viewProjection","projection","vEyePosition","inverseProjection","renderTargetSize","vLightsType","visibility","vFogInfos","vFogColor","pointSize","mBones","normalMatrix","vLightingIntensity","logarithmicDepthConstant","vTangentSpaceParams","boneTextureInfo","vDebugMode","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams","backgroundRefractionMatrix","vBackgroundRefractionInfos"];for(let e in this._uniformsList)T.push(e);let d=["environmentBrdfSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];for(let e in i.FUZZENVIRONMENTBRDF&&d.push("environmentFuzzBrdfSampler"),i.REFRACTED_BACKGROUND&&d.push("backgroundRefractionSampler"),(i.ANISOTROPIC||i.FUZZ||i.REFRACTED_BACKGROUND||i.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING)&&d.push("blueNoiseSampler"),i.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING&&(d.push("sceneIrradianceSampler"),d.push("sceneDepthSampler")),this._samplersList){let t=this._samplersList[e];d.push(t.samplerName),T.push(t.samplerInfoName),T.push(t.samplerMatrixName)}(0,a2.PrepareUniformsAndSamplersForIBL)(T,d,!0);let m=["Material","Scene","Mesh"],p={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:i.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=u,this._eventInfo.fallbackRank=h,this._eventInfo.defines=i,this._eventInfo.uniforms=T,this._eventInfo.attributes=_,this._eventInfo.samplers=d,this._eventInfo.uniformBuffersNames=m,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=p,this._callbackPluginEventGeneric(128,this._eventInfo),a5.MaterialHelperGeometryRendering.AddUniformsAndSamplers(T,d),a6.PrePassConfiguration.AddUniforms(T),a6.PrePassConfiguration.AddSamplers(d),(0,a1.AddClipPlaneUniforms)(T),this._useVertexPulling){let e=s?.geometry;e&&(this._vertexPullingMetadata=(0,a3.PrepareVertexPullingUniforms)(e),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{T.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;aK.ImageProcessingConfiguration&&(aK.ImageProcessingConfiguration.PrepareUniforms(T,i),aK.ImageProcessingConfiguration.PrepareSamplers(d,i)),(0,a2.PrepareUniformsAndSamplersList)({uniformsNames:T,uniformBuffersNames:m,samplers:d,defines:i,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage});let g={};this.customShaderNameResolve&&(c=this.customShaderNameResolve(c,T,m,d,i,_,g));let f=i.toString(),R=o.createEffect(c,{attributes:_,uniformsNames:T,uniformBuffersNames:m,samplers:d,defines:f,fallbacks:u,onCompiled:r,onError:a,indexParameters:p,processFinalCode:g.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:i.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this.shaderLanguage?await Promise.all([e.A(89178),e.A(72589)]):await Promise.all([e.A(32498),e.A(73552)]),this._shadersLoaded=!0}},o);return this._eventInfo.customCode=void 0,R}_prepareDefines(e,t,s,i=null,r=null){let a=t.hasThinInstances,n=this.getScene(),l=n.getEngine();(0,a2.PrepareDefinesForLights)(n,e,s,!0,this._maxSimultaneousLights,this._disableLighting),s._needNormals=!0,(0,a2.PrepareDefinesForMultiview)(n,s);let o=this.needAlphaBlendingForMesh(e)&&this.getScene().useOrderIndependentTransparency;if((0,a2.PrepareDefinesForPrePass)(n,s,this.canRenderToMRT&&!o),(0,a2.PrepareDefinesForOIT)(n,s,o),a5.MaterialHelperGeometryRendering.PrepareDefines(l.currentRenderPassId,e,s),s._areTexturesDirty){s._needUVs=!1;for(let e=1;e<=6;++e)s["MAINUV"+e]=!1;if(n.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value?((0,a2.PrepareDefinesForMergedUV)(t.value,s,t.textureDefine),s[t.textureDefine+"_GAMMA"]=t.value.gammaSpace):s[t.textureDefine]=!1}let e=this._getRadianceTexture(),t=this._forceIrradianceInFragment||this.realTimeFiltering||this._twoSidedLighting||l.getCaps().maxVaryingVectors<=8||null!=this._baseDiffuseRoughnessTexture;if((0,a2.PrepareDefinesForIBL)(n,e,s,this.realTimeFiltering,this.realTimeFilteringQuality,!t),this._baseMetalnessTexture&&(s.AOSTOREINMETALMAPRED=this._useAmbientOcclusionFromMetallicTextureRed),s.SPECULAR_WEIGHT_IN_ALPHA=this._useSpecularWeightFromAlpha,s.SPECULAR_WEIGHT_FROM_SPECULAR_COLOR_TEXTURE=this._useSpecularWeightFromSpecularColorTexture,s.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=this._useSpecularRoughnessAnisotropyFromTangentTexture,s.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=this._useCoatRoughnessAnisotropyFromTangentTexture,s.COAT_ROUGHNESS_FROM_GREEN_CHANNEL=this._useCoatRoughnessFromGreenChannel,s.SPECULAR_ROUGHNESS_FROM_METALNESS_TEXTURE_GREEN=this._useRoughnessFromMetallicTextureGreen,s.FUZZ_ROUGHNESS_FROM_TEXTURE_ALPHA=this._useFuzzRoughnessFromTextureAlpha,s.SUBSURFACE_WEIGHT_FROM_TEXTURE_ALPHA=this._useSubsurfaceWeightFromTextureAlpha,s.BASE_METALNESS_FROM_METALNESS_TEXTURE_BLUE=this._useMetallicFromMetallicTextureBlue,s.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE=this._useThinFilmThicknessFromTextureGreen,s.GEOMETRY_THICKNESS_FROM_GREEN_CHANNEL=this._useGeometryThicknessFromGreenChannel,this.geometryNormalTexture?(this._useParallax&&this.baseColorTexture&&a8.MaterialFlags.DiffuseTextureEnabled?(s.PARALLAX=!0,s.PARALLAX_RHS=n.useRightHandedSystem,s.PARALLAXOCCLUSION=!!this._useParallaxOcclusion):s.PARALLAX=!1,s.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap):(s.PARALLAX=!1,s.PARALLAX_RHS=!1,s.PARALLAXOCCLUSION=!1,s.OBJECTSPACE_NORMALMAP=!1),this._environmentBRDFTexture&&a8.MaterialFlags.ReflectionTextureEnabled?(s.ENVIRONMENTBRDF=!0,s.ENVIRONMENTBRDF_RGBD=this._environmentBRDFTexture.isRGBD):(s.ENVIRONMENTBRDF=!1,s.ENVIRONMENTBRDF_RGBD=!1),this._environmentFuzzBRDFTexture?s.FUZZENVIRONMENTBRDF=!0:s.FUZZENVIRONMENTBRDF=!1,this.hasTransparency){s.REFRACTED_BACKGROUND=!!this._backgroundRefractionTexture&&a8.MaterialFlags.RefractionTextureEnabled,s.REFRACTION_HIGH_QUALITY_BLUR=this._refractionHighQualityBlur,s.REFRACTED_LIGHTS=!0;let e=this._getRadianceTexture();e?(s.REFRACTED_ENVIRONMENT=a8.MaterialFlags.RefractionTextureEnabled,s.REFRACTED_ENVIRONMENT_OPPOSITEZ=this.getScene().useRightHandedSystem?!e.invertZ:e.invertZ,s.REFRACTED_ENVIRONMENT_LOCAL_CUBE=e.isCube&&e.boundingBoxSize):s.REFRACTED_ENVIRONMENT=!1}else s.REFRACTED_BACKGROUND=!1,s.REFRACTED_LIGHTS=!1,s.REFRACTED_ENVIRONMENT=!1;this._shouldUseAlphaFromBaseColorTexture()?s.ALPHA_FROM_BASE_COLOR_TEXTURE=!0:s.ALPHA_FROM_BASE_COLOR_TEXTURE=!1}this._lightFalloff===aj.Material.LIGHTFALLOFF_STANDARD?(s.USEPHYSICALLIGHTFALLOFF=!1,s.USEGLTFLIGHTFALLOFF=!1):this._lightFalloff===aj.Material.LIGHTFALLOFF_GLTF?(s.USEPHYSICALLIGHTFALLOFF=!1,s.USEGLTFLIGHTFALLOFF=!0):(s.USEPHYSICALLIGHTFALLOFF=!0,s.USEGLTFLIGHTFALLOFF=!1),!this.backFaceCulling&&this._twoSidedLighting?s.TWOSIDEDLIGHTING=!0:s.TWOSIDEDLIGHTING=!1,s.MIRRORED=!!n._mirroredCameraPosition,s.SPECULARAA=l.getCaps().standardDerivatives&&this._enableSpecularAntiAliasing}if((s._areTexturesDirty||s._areMiscDirty)&&(s.ALPHATESTVALUE=`${this._alphaCutOff}${this._alphaCutOff%1==0?".":""}`,s.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,s.ALPHABLEND=this.needAlphaBlendingForMesh(e)),s._areTexturesDirty&&(s.TEXTURE_REPETITION_MODE=l.version>1||l.isWebGPU?this.textureRepetitionMode:0),s._areImageProcessingDirty&&this._imageProcessingConfiguration&&this._imageProcessingConfiguration.prepareDefines(s),s.FORCENORMALFORWARD=this._forceNormalForward,s.RADIANCEOCCLUSION=this._useRadianceOcclusion,s.HORIZONOCCLUSION=this._useHorizonOcclusion,(this.specularRoughnessAnisotropy>0||this.coatRoughnessAnisotropy>0)&&ra._noiseTextures[n.uniqueId]&&a8.MaterialFlags.ReflectionTextureEnabled?(s.ANISOTROPIC=!0,e.isVerticesDataPresent(a4.VertexBuffer.TangentKind)||(s._needUVs=!0,s.MAINUV1=!0),this._useGltfStyleAnisotropy&&(s.USE_GLTF_STYLE_ANISOTROPY=!0),s.ANISOTROPIC_BASE=this.specularRoughnessAnisotropy>0,s.ANISOTROPIC_COAT=this.coatRoughnessAnisotropy>0):(s.ANISOTROPIC=!1,s.USE_GLTF_STYLE_ANISOTROPY=!1,s.ANISOTROPIC_BASE=!1,s.ANISOTROPIC_COAT=!1),s.THIN_FILM=this.thinFilmWeight>0,s.IRIDESCENCE=this.thinFilmWeight>0,s.DISPERSION=this.transmissionDispersionScale>0,s.SCATTERING=this.hasScattering,s.SSS_SAMPLE_COUNT=[8,16,32][this._sssQuality]??16,s.TRANSMISSION_SLAB=this.transmissionWeight>0,s.TRANSMISSION_SLAB_VOLUME=this.transmissionWeight>0&&this.transmissionDepth>0,s.SUBSURFACE_SLAB=this.subsurfaceWeight>0,!s.PREPASS&&(s.SUBSURFACE_SLAB||s.TRANSMISSION_SLAB_VOLUME)){let e=!1;if(!this.sssIrradianceTexture&&n.geometryBufferRenderer){let t=n.geometryBufferRenderer.getTextureIndex(nA.IRRADIANCE_TEXTURE_TYPE);this.sssIrradianceTexture=n.geometryBufferRenderer.getGBuffer().textures[t],e=!0}if(!this.sssDepthTexture&&n.geometryBufferRenderer){let t=n.geometryBufferRenderer.getTextureIndex(nA.SCREENSPACE_DEPTH_TEXTURE_TYPE);this.sssDepthTexture=n.geometryBufferRenderer.getGBuffer().textures[t],e=!0}this.sssIrradianceTexture&&this.sssDepthTexture&&(s.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING=!0,e&&(s.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING_GBUFFER=!0))}s.FUZZ=this.fuzzWeight>0&&a8.MaterialFlags.ReflectionTextureEnabled,s.GEOMETRY_THIN_WALLED=0!=this.geometryThinWalled,s.FUZZ?(e.isVerticesDataPresent(a4.VertexBuffer.TangentKind)||(s._needUVs=!0,s.MAINUV1=!0),this._environmentFuzzBRDFTexture=(0,aY.GetEnvironmentFuzzBRDFTexture)(this.getScene()),s.FUZZ_IBL_SAMPLES=this.fuzzSampleNumber):(this._environmentFuzzBRDFTexture=null,s.FUZZENVIRONMENTBRDF=!1,s.FUZZ_IBL_SAMPLES=0),s._areMiscDirty&&((0,a2.PrepareDefinesForMisc)(e,n,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(e),s,this._applyDecalMapAfterDetailMap,this._useVertexPulling,t,this._isVertexOutputInvariant),s.UNLIT=this._unlit||(this.pointsCloud||this.wireframe)&&!e.isVerticesDataPresent(a4.VertexBuffer.NormalKind),s.DEBUGMODE=this._debugMode),(0,a2.PrepareDefinesForFrameBoundValues)(n,l,this,s,!!i,r,a),this._eventInfo.defines=s,this._eventInfo.mesh=e,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,a2.PrepareDefinesForAttributes)(e,s,!0,!0,!0,this._transparencyMode!==aj.Material.MATERIAL_OPAQUE),this._callbackPluginEventPrepareDefines(this._eventInfo)}},rn=new WeakMap,rl=new WeakMap,ro=new WeakMap,ru=new WeakMap,rh=new WeakMap,r_=new WeakMap,rc=new WeakMap,rT=new WeakMap,rd=new WeakMap,rm=new WeakMap,rp=new WeakMap,rg=new WeakMap,rf=new WeakMap,rR=new WeakMap,rA=new WeakMap,rx=new WeakMap,rE=new WeakMap,rS=new WeakMap,rI=new WeakMap,rM=new WeakMap,rF=new WeakMap,rP=new WeakMap,rb=new WeakMap,ry=new WeakMap,rv=new WeakMap,rC=new WeakMap,rD=new WeakMap,rL=new WeakMap,rO=new WeakMap,rN=new WeakMap,rk=new WeakMap,rz=new WeakMap,rU=new WeakMap,rB=new WeakMap,rG=new WeakMap,rW=new WeakMap,rw=new WeakMap,rH=new WeakMap,rV=new WeakMap,rX=new WeakMap,rY=new WeakMap,rZ=new WeakMap,rK=new WeakMap,rQ=new WeakMap,rj=new WeakMap,rq=new WeakMap,r$=new WeakMap,rJ=new WeakMap,r0=new WeakMap,r1=new WeakMap,r3=new WeakMap,r2=new WeakMap,r4=new WeakMap,r5=new WeakMap,r6=new WeakMap,r8=new WeakMap,r7=new WeakMap,r9=new WeakMap,ae=new WeakMap,at=new WeakMap,as=new WeakMap,ai=new WeakMap,ar=new WeakMap,aa=new WeakMap,an=new WeakMap,al=new WeakMap,ao=new WeakMap,au=new WeakMap,ah=new WeakMap,a_=new WeakMap,ac=new WeakMap,aT=new WeakMap,ad=new WeakMap,am=new WeakMap,ap=new WeakMap,ag=new WeakMap,af=new WeakMap,aR=new WeakMap,aA=new WeakMap,ax=new WeakMap,aE=new WeakMap,aS=new WeakMap,aI=new WeakMap,aM=new WeakMap,aF=new WeakMap,aP=new WeakMap,ab=new WeakMap,ay=new WeakMap,av=new WeakMap,aC=new WeakMap,aD=new WeakMap,aL=new WeakMap,aO=new WeakMap,aN=new WeakMap,ak=new WeakMap,az=new WeakMap,aU=new WeakMap,aB=new WeakMap,aG=new WeakMap,aW=new WeakMap,aw=new WeakMap,aH=new WeakMap,rr="function"==typeof Symbol&&Symbol.metadata?Object.create(e$[Symbol.metadata]??null):void 0,t=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],s=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],i=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],r=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],a=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],n=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],l=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],o=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],u=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],h=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],_=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],c=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],T=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],d=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],m=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],p=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],g=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],f=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],R=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],A=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],x=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],E=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],S=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],I=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],M=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],F=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],P=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],b=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],y=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],v=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],C=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],D=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],L=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],O=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],N=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],k=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],z=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],U=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],B=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],G=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],W=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],w=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],H=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],V=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],X=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],Y=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],Z=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],K=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],Q=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],j=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],q=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],$=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],J=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ee=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],et=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],es=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ei=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],er=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ea=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],en=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],el=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eo=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eu=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eh=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],e_=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ec=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eT=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ed=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],em=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ep=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eg=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ef=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eR=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eA=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],ex=[(0,aX.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty")],eE=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eS=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eI=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eM=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],eF=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],eP=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eb=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],ey=[(0,aX.serialize)()],ev=[(0,aX.serialize)()],eC=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eD=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eL=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eO=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eN=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsLightsDirty")],ek=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],ez=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsLightsDirty")],eU=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eB=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eG=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eW=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],ew=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eH=[(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eV=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eX=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eY=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eZ=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eK=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsMiscDirty")],eQ=[(0,aX.serialize)(),(0,aX.expandToProperty)("_markAllSubMeshesAsMiscDirty")],ej=[(0,aX.expandToProperty)("_markAllSubMeshesAsMiscDirty")],eq=[(0,aX.serialize)()],(0,aV.__esDecorate)(ra,null,t,{kind:"accessor",name:"baseWeight",static:!1,private:!1,access:{has:e=>"baseWeight"in e,get:e=>e.baseWeight,set:(e,t)=>{e.baseWeight=t}},metadata:rr},e0,e1),(0,aV.__esDecorate)(ra,null,s,{kind:"accessor",name:"baseWeightTexture",static:!1,private:!1,access:{has:e=>"baseWeightTexture"in e,get:e=>e.baseWeightTexture,set:(e,t)=>{e.baseWeightTexture=t}},metadata:rr},e3,e2),(0,aV.__esDecorate)(ra,null,i,{kind:"accessor",name:"baseColor",static:!1,private:!1,access:{has:e=>"baseColor"in e,get:e=>e.baseColor,set:(e,t)=>{e.baseColor=t}},metadata:rr},e4,e5),(0,aV.__esDecorate)(ra,null,r,{kind:"accessor",name:"baseColorTexture",static:!1,private:!1,access:{has:e=>"baseColorTexture"in e,get:e=>e.baseColorTexture,set:(e,t)=>{e.baseColorTexture=t}},metadata:rr},e6,e8),(0,aV.__esDecorate)(ra,null,a,{kind:"accessor",name:"baseDiffuseRoughness",static:!1,private:!1,access:{has:e=>"baseDiffuseRoughness"in e,get:e=>e.baseDiffuseRoughness,set:(e,t)=>{e.baseDiffuseRoughness=t}},metadata:rr},e7,e9),(0,aV.__esDecorate)(ra,null,n,{kind:"accessor",name:"baseDiffuseRoughnessTexture",static:!1,private:!1,access:{has:e=>"baseDiffuseRoughnessTexture"in e,get:e=>e.baseDiffuseRoughnessTexture,set:(e,t)=>{e.baseDiffuseRoughnessTexture=t}},metadata:rr},te,tt),(0,aV.__esDecorate)(ra,null,l,{kind:"accessor",name:"baseMetalness",static:!1,private:!1,access:{has:e=>"baseMetalness"in e,get:e=>e.baseMetalness,set:(e,t)=>{e.baseMetalness=t}},metadata:rr},ts,ti),(0,aV.__esDecorate)(ra,null,o,{kind:"accessor",name:"baseMetalnessTexture",static:!1,private:!1,access:{has:e=>"baseMetalnessTexture"in e,get:e=>e.baseMetalnessTexture,set:(e,t)=>{e.baseMetalnessTexture=t}},metadata:rr},tr,ta),(0,aV.__esDecorate)(ra,null,u,{kind:"accessor",name:"specularWeight",static:!1,private:!1,access:{has:e=>"specularWeight"in e,get:e=>e.specularWeight,set:(e,t)=>{e.specularWeight=t}},metadata:rr},tn,tl),(0,aV.__esDecorate)(ra,null,h,{kind:"accessor",name:"specularWeightTexture",static:!1,private:!1,access:{has:e=>"specularWeightTexture"in e,get:e=>e.specularWeightTexture,set:(e,t)=>{e.specularWeightTexture=t}},metadata:rr},to,tu),(0,aV.__esDecorate)(ra,null,_,{kind:"accessor",name:"specularColor",static:!1,private:!1,access:{has:e=>"specularColor"in e,get:e=>e.specularColor,set:(e,t)=>{e.specularColor=t}},metadata:rr},th,t_),(0,aV.__esDecorate)(ra,null,c,{kind:"accessor",name:"specularColorTexture",static:!1,private:!1,access:{has:e=>"specularColorTexture"in e,get:e=>e.specularColorTexture,set:(e,t)=>{e.specularColorTexture=t}},metadata:rr},tc,tT),(0,aV.__esDecorate)(ra,null,T,{kind:"accessor",name:"specularRoughness",static:!1,private:!1,access:{has:e=>"specularRoughness"in e,get:e=>e.specularRoughness,set:(e,t)=>{e.specularRoughness=t}},metadata:rr},td,tm),(0,aV.__esDecorate)(ra,null,d,{kind:"accessor",name:"specularRoughnessTexture",static:!1,private:!1,access:{has:e=>"specularRoughnessTexture"in e,get:e=>e.specularRoughnessTexture,set:(e,t)=>{e.specularRoughnessTexture=t}},metadata:rr},tp,tg),(0,aV.__esDecorate)(ra,null,m,{kind:"accessor",name:"specularRoughnessAnisotropy",static:!1,private:!1,access:{has:e=>"specularRoughnessAnisotropy"in e,get:e=>e.specularRoughnessAnisotropy,set:(e,t)=>{e.specularRoughnessAnisotropy=t}},metadata:rr},tf,tR),(0,aV.__esDecorate)(ra,null,p,{kind:"accessor",name:"specularRoughnessAnisotropyTexture",static:!1,private:!1,access:{has:e=>"specularRoughnessAnisotropyTexture"in e,get:e=>e.specularRoughnessAnisotropyTexture,set:(e,t)=>{e.specularRoughnessAnisotropyTexture=t}},metadata:rr},tA,tx),(0,aV.__esDecorate)(ra,null,g,{kind:"accessor",name:"specularIor",static:!1,private:!1,access:{has:e=>"specularIor"in e,get:e=>e.specularIor,set:(e,t)=>{e.specularIor=t}},metadata:rr},tE,tS),(0,aV.__esDecorate)(ra,null,f,{kind:"accessor",name:"transmissionWeight",static:!1,private:!1,access:{has:e=>"transmissionWeight"in e,get:e=>e.transmissionWeight,set:(e,t)=>{e.transmissionWeight=t}},metadata:rr},tI,tM),(0,aV.__esDecorate)(ra,null,R,{kind:"accessor",name:"transmissionWeightTexture",static:!1,private:!1,access:{has:e=>"transmissionWeightTexture"in e,get:e=>e.transmissionWeightTexture,set:(e,t)=>{e.transmissionWeightTexture=t}},metadata:rr},tF,tP),(0,aV.__esDecorate)(ra,null,A,{kind:"accessor",name:"transmissionColor",static:!1,private:!1,access:{has:e=>"transmissionColor"in e,get:e=>e.transmissionColor,set:(e,t)=>{e.transmissionColor=t}},metadata:rr},tb,ty),(0,aV.__esDecorate)(ra,null,x,{kind:"accessor",name:"transmissionColorTexture",static:!1,private:!1,access:{has:e=>"transmissionColorTexture"in e,get:e=>e.transmissionColorTexture,set:(e,t)=>{e.transmissionColorTexture=t}},metadata:rr},tv,tC),(0,aV.__esDecorate)(ra,null,E,{kind:"accessor",name:"transmissionDepth",static:!1,private:!1,access:{has:e=>"transmissionDepth"in e,get:e=>e.transmissionDepth,set:(e,t)=>{e.transmissionDepth=t}},metadata:rr},tD,tL),(0,aV.__esDecorate)(ra,null,S,{kind:"accessor",name:"transmissionDepthTexture",static:!1,private:!1,access:{has:e=>"transmissionDepthTexture"in e,get:e=>e.transmissionDepthTexture,set:(e,t)=>{e.transmissionDepthTexture=t}},metadata:rr},tO,tN),(0,aV.__esDecorate)(ra,null,I,{kind:"accessor",name:"transmissionScatter",static:!1,private:!1,access:{has:e=>"transmissionScatter"in e,get:e=>e.transmissionScatter,set:(e,t)=>{e.transmissionScatter=t}},metadata:rr},tk,tz),(0,aV.__esDecorate)(ra,null,M,{kind:"accessor",name:"transmissionScatterTexture",static:!1,private:!1,access:{has:e=>"transmissionScatterTexture"in e,get:e=>e.transmissionScatterTexture,set:(e,t)=>{e.transmissionScatterTexture=t}},metadata:rr},tU,tB),(0,aV.__esDecorate)(ra,null,F,{kind:"accessor",name:"transmissionScatterAnisotropy",static:!1,private:!1,access:{has:e=>"transmissionScatterAnisotropy"in e,get:e=>e.transmissionScatterAnisotropy,set:(e,t)=>{e.transmissionScatterAnisotropy=t}},metadata:rr},tG,tW),(0,aV.__esDecorate)(ra,null,P,{kind:"accessor",name:"transmissionDispersionScale",static:!1,private:!1,access:{has:e=>"transmissionDispersionScale"in e,get:e=>e.transmissionDispersionScale,set:(e,t)=>{e.transmissionDispersionScale=t}},metadata:rr},tw,tH),(0,aV.__esDecorate)(ra,null,b,{kind:"accessor",name:"transmissionDispersionScaleTexture",static:!1,private:!1,access:{has:e=>"transmissionDispersionScaleTexture"in e,get:e=>e.transmissionDispersionScaleTexture,set:(e,t)=>{e.transmissionDispersionScaleTexture=t}},metadata:rr},tV,tX),(0,aV.__esDecorate)(ra,null,y,{kind:"accessor",name:"transmissionDispersionAbbeNumber",static:!1,private:!1,access:{has:e=>"transmissionDispersionAbbeNumber"in e,get:e=>e.transmissionDispersionAbbeNumber,set:(e,t)=>{e.transmissionDispersionAbbeNumber=t}},metadata:rr},tY,tZ),(0,aV.__esDecorate)(ra,null,v,{kind:"accessor",name:"subsurfaceWeight",static:!1,private:!1,access:{has:e=>"subsurfaceWeight"in e,get:e=>e.subsurfaceWeight,set:(e,t)=>{e.subsurfaceWeight=t}},metadata:rr},tK,tQ),(0,aV.__esDecorate)(ra,null,C,{kind:"accessor",name:"subsurfaceWeightTexture",static:!1,private:!1,access:{has:e=>"subsurfaceWeightTexture"in e,get:e=>e.subsurfaceWeightTexture,set:(e,t)=>{e.subsurfaceWeightTexture=t}},metadata:rr},tj,tq),(0,aV.__esDecorate)(ra,null,D,{kind:"accessor",name:"subsurfaceColor",static:!1,private:!1,access:{has:e=>"subsurfaceColor"in e,get:e=>e.subsurfaceColor,set:(e,t)=>{e.subsurfaceColor=t}},metadata:rr},t$,tJ),(0,aV.__esDecorate)(ra,null,L,{kind:"accessor",name:"subsurfaceColorTexture",static:!1,private:!1,access:{has:e=>"subsurfaceColorTexture"in e,get:e=>e.subsurfaceColorTexture,set:(e,t)=>{e.subsurfaceColorTexture=t}},metadata:rr},t0,t1),(0,aV.__esDecorate)(ra,null,O,{kind:"accessor",name:"subsurfaceRadius",static:!1,private:!1,access:{has:e=>"subsurfaceRadius"in e,get:e=>e.subsurfaceRadius,set:(e,t)=>{e.subsurfaceRadius=t}},metadata:rr},t3,t2),(0,aV.__esDecorate)(ra,null,N,{kind:"accessor",name:"subsurfaceRadiusScale",static:!1,private:!1,access:{has:e=>"subsurfaceRadiusScale"in e,get:e=>e.subsurfaceRadiusScale,set:(e,t)=>{e.subsurfaceRadiusScale=t}},metadata:rr},t4,t5),(0,aV.__esDecorate)(ra,null,k,{kind:"accessor",name:"subsurfaceRadiusScaleTexture",static:!1,private:!1,access:{has:e=>"subsurfaceRadiusScaleTexture"in e,get:e=>e.subsurfaceRadiusScaleTexture,set:(e,t)=>{e.subsurfaceRadiusScaleTexture=t}},metadata:rr},t6,t8),(0,aV.__esDecorate)(ra,null,z,{kind:"accessor",name:"subsurfaceScatterAnisotropy",static:!1,private:!1,access:{has:e=>"subsurfaceScatterAnisotropy"in e,get:e=>e.subsurfaceScatterAnisotropy,set:(e,t)=>{e.subsurfaceScatterAnisotropy=t}},metadata:rr},t7,t9),(0,aV.__esDecorate)(ra,null,U,{kind:"accessor",name:"coatWeight",static:!1,private:!1,access:{has:e=>"coatWeight"in e,get:e=>e.coatWeight,set:(e,t)=>{e.coatWeight=t}},metadata:rr},se,st),(0,aV.__esDecorate)(ra,null,B,{kind:"accessor",name:"coatWeightTexture",static:!1,private:!1,access:{has:e=>"coatWeightTexture"in e,get:e=>e.coatWeightTexture,set:(e,t)=>{e.coatWeightTexture=t}},metadata:rr},ss,si),(0,aV.__esDecorate)(ra,null,G,{kind:"accessor",name:"coatColor",static:!1,private:!1,access:{has:e=>"coatColor"in e,get:e=>e.coatColor,set:(e,t)=>{e.coatColor=t}},metadata:rr},sr,sa),(0,aV.__esDecorate)(ra,null,W,{kind:"accessor",name:"coatColorTexture",static:!1,private:!1,access:{has:e=>"coatColorTexture"in e,get:e=>e.coatColorTexture,set:(e,t)=>{e.coatColorTexture=t}},metadata:rr},sn,sl),(0,aV.__esDecorate)(ra,null,w,{kind:"accessor",name:"coatRoughness",static:!1,private:!1,access:{has:e=>"coatRoughness"in e,get:e=>e.coatRoughness,set:(e,t)=>{e.coatRoughness=t}},metadata:rr},so,su),(0,aV.__esDecorate)(ra,null,H,{kind:"accessor",name:"coatRoughnessTexture",static:!1,private:!1,access:{has:e=>"coatRoughnessTexture"in e,get:e=>e.coatRoughnessTexture,set:(e,t)=>{e.coatRoughnessTexture=t}},metadata:rr},sh,s_),(0,aV.__esDecorate)(ra,null,V,{kind:"accessor",name:"coatRoughnessAnisotropy",static:!1,private:!1,access:{has:e=>"coatRoughnessAnisotropy"in e,get:e=>e.coatRoughnessAnisotropy,set:(e,t)=>{e.coatRoughnessAnisotropy=t}},metadata:rr},sc,sT),(0,aV.__esDecorate)(ra,null,X,{kind:"accessor",name:"coatRoughnessAnisotropyTexture",static:!1,private:!1,access:{has:e=>"coatRoughnessAnisotropyTexture"in e,get:e=>e.coatRoughnessAnisotropyTexture,set:(e,t)=>{e.coatRoughnessAnisotropyTexture=t}},metadata:rr},sd,sm),(0,aV.__esDecorate)(ra,null,Y,{kind:"accessor",name:"coatIor",static:!1,private:!1,access:{has:e=>"coatIor"in e,get:e=>e.coatIor,set:(e,t)=>{e.coatIor=t}},metadata:rr},sp,sg),(0,aV.__esDecorate)(ra,null,Z,{kind:"accessor",name:"coatDarkening",static:!1,private:!1,access:{has:e=>"coatDarkening"in e,get:e=>e.coatDarkening,set:(e,t)=>{e.coatDarkening=t}},metadata:rr},sf,sR),(0,aV.__esDecorate)(ra,null,K,{kind:"accessor",name:"coatDarkeningTexture",static:!1,private:!1,access:{has:e=>"coatDarkeningTexture"in e,get:e=>e.coatDarkeningTexture,set:(e,t)=>{e.coatDarkeningTexture=t}},metadata:rr},sA,sx),(0,aV.__esDecorate)(ra,null,Q,{kind:"accessor",name:"fuzzWeight",static:!1,private:!1,access:{has:e=>"fuzzWeight"in e,get:e=>e.fuzzWeight,set:(e,t)=>{e.fuzzWeight=t}},metadata:rr},sE,sS),(0,aV.__esDecorate)(ra,null,j,{kind:"accessor",name:"fuzzWeightTexture",static:!1,private:!1,access:{has:e=>"fuzzWeightTexture"in e,get:e=>e.fuzzWeightTexture,set:(e,t)=>{e.fuzzWeightTexture=t}},metadata:rr},sI,sM),(0,aV.__esDecorate)(ra,null,q,{kind:"accessor",name:"fuzzColor",static:!1,private:!1,access:{has:e=>"fuzzColor"in e,get:e=>e.fuzzColor,set:(e,t)=>{e.fuzzColor=t}},metadata:rr},sF,sP),(0,aV.__esDecorate)(ra,null,$,{kind:"accessor",name:"fuzzColorTexture",static:!1,private:!1,access:{has:e=>"fuzzColorTexture"in e,get:e=>e.fuzzColorTexture,set:(e,t)=>{e.fuzzColorTexture=t}},metadata:rr},sb,sy),(0,aV.__esDecorate)(ra,null,J,{kind:"accessor",name:"fuzzRoughness",static:!1,private:!1,access:{has:e=>"fuzzRoughness"in e,get:e=>e.fuzzRoughness,set:(e,t)=>{e.fuzzRoughness=t}},metadata:rr},sv,sC),(0,aV.__esDecorate)(ra,null,ee,{kind:"accessor",name:"fuzzRoughnessTexture",static:!1,private:!1,access:{has:e=>"fuzzRoughnessTexture"in e,get:e=>e.fuzzRoughnessTexture,set:(e,t)=>{e.fuzzRoughnessTexture=t}},metadata:rr},sD,sL),(0,aV.__esDecorate)(ra,null,et,{kind:"accessor",name:"geometryThinWalled",static:!1,private:!1,access:{has:e=>"geometryThinWalled"in e,get:e=>e.geometryThinWalled,set:(e,t)=>{e.geometryThinWalled=t}},metadata:rr},sO,sN),(0,aV.__esDecorate)(ra,null,es,{kind:"accessor",name:"geometryNormalTexture",static:!1,private:!1,access:{has:e=>"geometryNormalTexture"in e,get:e=>e.geometryNormalTexture,set:(e,t)=>{e.geometryNormalTexture=t}},metadata:rr},sk,sz),(0,aV.__esDecorate)(ra,null,ei,{kind:"accessor",name:"geometryTangent",static:!1,private:!1,access:{has:e=>"geometryTangent"in e,get:e=>e.geometryTangent,set:(e,t)=>{e.geometryTangent=t}},metadata:rr},sU,sB),(0,aV.__esDecorate)(ra,null,er,{kind:"accessor",name:"geometryTangentTexture",static:!1,private:!1,access:{has:e=>"geometryTangentTexture"in e,get:e=>e.geometryTangentTexture,set:(e,t)=>{e.geometryTangentTexture=t}},metadata:rr},sG,sW),(0,aV.__esDecorate)(ra,null,ea,{kind:"accessor",name:"geometryCoatNormalTexture",static:!1,private:!1,access:{has:e=>"geometryCoatNormalTexture"in e,get:e=>e.geometryCoatNormalTexture,set:(e,t)=>{e.geometryCoatNormalTexture=t}},metadata:rr},sw,sH),(0,aV.__esDecorate)(ra,null,en,{kind:"accessor",name:"geometryCoatTangent",static:!1,private:!1,access:{has:e=>"geometryCoatTangent"in e,get:e=>e.geometryCoatTangent,set:(e,t)=>{e.geometryCoatTangent=t}},metadata:rr},sV,sX),(0,aV.__esDecorate)(ra,null,el,{kind:"accessor",name:"geometryCoatTangentTexture",static:!1,private:!1,access:{has:e=>"geometryCoatTangentTexture"in e,get:e=>e.geometryCoatTangentTexture,set:(e,t)=>{e.geometryCoatTangentTexture=t}},metadata:rr},sY,sZ),(0,aV.__esDecorate)(ra,null,eo,{kind:"accessor",name:"geometryOpacity",static:!1,private:!1,access:{has:e=>"geometryOpacity"in e,get:e=>e.geometryOpacity,set:(e,t)=>{e.geometryOpacity=t}},metadata:rr},sK,sQ),(0,aV.__esDecorate)(ra,null,eu,{kind:"accessor",name:"geometryOpacityTexture",static:!1,private:!1,access:{has:e=>"geometryOpacityTexture"in e,get:e=>e.geometryOpacityTexture,set:(e,t)=>{e.geometryOpacityTexture=t}},metadata:rr},sj,sq),(0,aV.__esDecorate)(ra,null,eh,{kind:"accessor",name:"geometryThickness",static:!1,private:!1,access:{has:e=>"geometryThickness"in e,get:e=>e.geometryThickness,set:(e,t)=>{e.geometryThickness=t}},metadata:rr},s$,sJ),(0,aV.__esDecorate)(ra,null,e_,{kind:"accessor",name:"geometryThicknessTexture",static:!1,private:!1,access:{has:e=>"geometryThicknessTexture"in e,get:e=>e.geometryThicknessTexture,set:(e,t)=>{e.geometryThicknessTexture=t}},metadata:rr},s0,s1),(0,aV.__esDecorate)(ra,null,ec,{kind:"accessor",name:"emissionLuminance",static:!1,private:!1,access:{has:e=>"emissionLuminance"in e,get:e=>e.emissionLuminance,set:(e,t)=>{e.emissionLuminance=t}},metadata:rr},s3,s2),(0,aV.__esDecorate)(ra,null,eT,{kind:"accessor",name:"emissionColor",static:!1,private:!1,access:{has:e=>"emissionColor"in e,get:e=>e.emissionColor,set:(e,t)=>{e.emissionColor=t}},metadata:rr},s4,s5),(0,aV.__esDecorate)(ra,null,ed,{kind:"accessor",name:"emissionColorTexture",static:!1,private:!1,access:{has:e=>"emissionColorTexture"in e,get:e=>e.emissionColorTexture,set:(e,t)=>{e.emissionColorTexture=t}},metadata:rr},s6,s8),(0,aV.__esDecorate)(ra,null,em,{kind:"accessor",name:"thinFilmWeight",static:!1,private:!1,access:{has:e=>"thinFilmWeight"in e,get:e=>e.thinFilmWeight,set:(e,t)=>{e.thinFilmWeight=t}},metadata:rr},s7,s9),(0,aV.__esDecorate)(ra,null,ep,{kind:"accessor",name:"thinFilmWeightTexture",static:!1,private:!1,access:{has:e=>"thinFilmWeightTexture"in e,get:e=>e.thinFilmWeightTexture,set:(e,t)=>{e.thinFilmWeightTexture=t}},metadata:rr},ie,it),(0,aV.__esDecorate)(ra,null,eg,{kind:"accessor",name:"thinFilmThickness",static:!1,private:!1,access:{has:e=>"thinFilmThickness"in e,get:e=>e.thinFilmThickness,set:(e,t)=>{e.thinFilmThickness=t}},metadata:rr},is,ii),(0,aV.__esDecorate)(ra,null,ef,{kind:"accessor",name:"thinFilmThicknessMin",static:!1,private:!1,access:{has:e=>"thinFilmThicknessMin"in e,get:e=>e.thinFilmThicknessMin,set:(e,t)=>{e.thinFilmThicknessMin=t}},metadata:rr},ir,ia),(0,aV.__esDecorate)(ra,null,eR,{kind:"accessor",name:"thinFilmThicknessTexture",static:!1,private:!1,access:{has:e=>"thinFilmThicknessTexture"in e,get:e=>e.thinFilmThicknessTexture,set:(e,t)=>{e.thinFilmThicknessTexture=t}},metadata:rr},il,io),(0,aV.__esDecorate)(ra,null,eA,{kind:"accessor",name:"thinFilmIor",static:!1,private:!1,access:{has:e=>"thinFilmIor"in e,get:e=>e.thinFilmIor,set:(e,t)=>{e.thinFilmIor=t}},metadata:rr},iu,ih),(0,aV.__esDecorate)(ra,null,ex,{kind:"accessor",name:"ambientOcclusionTexture",static:!1,private:!1,access:{has:e=>"ambientOcclusionTexture"in e,get:e=>e.ambientOcclusionTexture,set:(e,t)=>{e.ambientOcclusionTexture=t}},metadata:rr},i_,ic),(0,aV.__esDecorate)(ra,null,eE,{kind:"accessor",name:"directIntensity",static:!1,private:!1,access:{has:e=>"directIntensity"in e,get:e=>e.directIntensity,set:(e,t)=>{e.directIntensity=t}},metadata:rr},iT,id),(0,aV.__esDecorate)(ra,null,eS,{kind:"accessor",name:"environmentIntensity",static:!1,private:!1,access:{has:e=>"environmentIntensity"in e,get:e=>e.environmentIntensity,set:(e,t)=>{e.environmentIntensity=t}},metadata:rr},im,ip),(0,aV.__esDecorate)(ra,null,eI,{kind:"accessor",name:"useSpecularWeightFromTextureAlpha",static:!1,private:!1,access:{has:e=>"useSpecularWeightFromTextureAlpha"in e,get:e=>e.useSpecularWeightFromTextureAlpha,set:(e,t)=>{e.useSpecularWeightFromTextureAlpha=t}},metadata:rr},ig,iR),(0,aV.__esDecorate)(ra,null,eM,{kind:"accessor",name:"forceAlphaTest",static:!1,private:!1,access:{has:e=>"forceAlphaTest"in e,get:e=>e.forceAlphaTest,set:(e,t)=>{e.forceAlphaTest=t}},metadata:rr},iA,ix),(0,aV.__esDecorate)(ra,null,eF,{kind:"accessor",name:"alphaCutOff",static:!1,private:!1,access:{has:e=>"alphaCutOff"in e,get:e=>e.alphaCutOff,set:(e,t)=>{e.alphaCutOff=t}},metadata:rr},iE,iS),(0,aV.__esDecorate)(ra,null,eP,{kind:"accessor",name:"useAmbientOcclusionFromMetallicTextureRed",static:!1,private:!1,access:{has:e=>"useAmbientOcclusionFromMetallicTextureRed"in e,get:e=>e.useAmbientOcclusionFromMetallicTextureRed,set:(e,t)=>{e.useAmbientOcclusionFromMetallicTextureRed=t}},metadata:rr},iI,iM),(0,aV.__esDecorate)(ra,null,eb,{kind:"accessor",name:"useAmbientInGrayScale",static:!1,private:!1,access:{has:e=>"useAmbientInGrayScale"in e,get:e=>e.useAmbientInGrayScale,set:(e,t)=>{e.useAmbientInGrayScale=t}},metadata:rr},iF,iP),(0,aV.__esDecorate)(ra,null,ey,{kind:"getter",name:"usePhysicalLightFalloff",static:!1,private:!1,access:{has:e=>"usePhysicalLightFalloff"in e,get:e=>e.usePhysicalLightFalloff},metadata:rr},null,eJ),(0,aV.__esDecorate)(ra,null,ev,{kind:"getter",name:"useGLTFLightFalloff",static:!1,private:!1,access:{has:e=>"useGLTFLightFalloff"in e,get:e=>e.useGLTFLightFalloff},metadata:rr},null,eJ),(0,aV.__esDecorate)(ra,null,eC,{kind:"accessor",name:"useObjectSpaceNormalMap",static:!1,private:!1,access:{has:e=>"useObjectSpaceNormalMap"in e,get:e=>e.useObjectSpaceNormalMap,set:(e,t)=>{e.useObjectSpaceNormalMap=t}},metadata:rr},ib,iy),(0,aV.__esDecorate)(ra,null,eD,{kind:"accessor",name:"useParallax",static:!1,private:!1,access:{has:e=>"useParallax"in e,get:e=>e.useParallax,set:(e,t)=>{e.useParallax=t}},metadata:rr},iv,iC),(0,aV.__esDecorate)(ra,null,eL,{kind:"accessor",name:"useParallaxOcclusion",static:!1,private:!1,access:{has:e=>"useParallaxOcclusion"in e,get:e=>e.useParallaxOcclusion,set:(e,t)=>{e.useParallaxOcclusion=t}},metadata:rr},iD,iL),(0,aV.__esDecorate)(ra,null,eO,{kind:"accessor",name:"parallaxScaleBias",static:!1,private:!1,access:{has:e=>"parallaxScaleBias"in e,get:e=>e.parallaxScaleBias,set:(e,t)=>{e.parallaxScaleBias=t}},metadata:rr},iO,iN),(0,aV.__esDecorate)(ra,null,eN,{kind:"accessor",name:"disableLighting",static:!1,private:!1,access:{has:e=>"disableLighting"in e,get:e=>e.disableLighting,set:(e,t)=>{e.disableLighting=t}},metadata:rr},ik,iz),(0,aV.__esDecorate)(ra,null,ek,{kind:"accessor",name:"forceIrradianceInFragment",static:!1,private:!1,access:{has:e=>"forceIrradianceInFragment"in e,get:e=>e.forceIrradianceInFragment,set:(e,t)=>{e.forceIrradianceInFragment=t}},metadata:rr},iU,iB),(0,aV.__esDecorate)(ra,null,ez,{kind:"accessor",name:"maxSimultaneousLights",static:!1,private:!1,access:{has:e=>"maxSimultaneousLights"in e,get:e=>e.maxSimultaneousLights,set:(e,t)=>{e.maxSimultaneousLights=t}},metadata:rr},iG,iW),(0,aV.__esDecorate)(ra,null,eU,{kind:"accessor",name:"invertNormalMapX",static:!1,private:!1,access:{has:e=>"invertNormalMapX"in e,get:e=>e.invertNormalMapX,set:(e,t)=>{e.invertNormalMapX=t}},metadata:rr},iw,iH),(0,aV.__esDecorate)(ra,null,eB,{kind:"accessor",name:"invertNormalMapY",static:!1,private:!1,access:{has:e=>"invertNormalMapY"in e,get:e=>e.invertNormalMapY,set:(e,t)=>{e.invertNormalMapY=t}},metadata:rr},iV,iX),(0,aV.__esDecorate)(ra,null,eG,{kind:"accessor",name:"twoSidedLighting",static:!1,private:!1,access:{has:e=>"twoSidedLighting"in e,get:e=>e.twoSidedLighting,set:(e,t)=>{e.twoSidedLighting=t}},metadata:rr},iY,iZ),(0,aV.__esDecorate)(ra,null,eW,{kind:"accessor",name:"useAlphaFresnel",static:!1,private:!1,access:{has:e=>"useAlphaFresnel"in e,get:e=>e.useAlphaFresnel,set:(e,t)=>{e.useAlphaFresnel=t}},metadata:rr},iK,iQ),(0,aV.__esDecorate)(ra,null,ew,{kind:"accessor",name:"useLinearAlphaFresnel",static:!1,private:!1,access:{has:e=>"useLinearAlphaFresnel"in e,get:e=>e.useLinearAlphaFresnel,set:(e,t)=>{e.useLinearAlphaFresnel=t}},metadata:rr},ij,iq),(0,aV.__esDecorate)(ra,null,eH,{kind:"accessor",name:"environmentBRDFTexture",static:!1,private:!1,access:{has:e=>"environmentBRDFTexture"in e,get:e=>e.environmentBRDFTexture,set:(e,t)=>{e.environmentBRDFTexture=t}},metadata:rr},i$,iJ),(0,aV.__esDecorate)(ra,null,eV,{kind:"accessor",name:"forceNormalForward",static:!1,private:!1,access:{has:e=>"forceNormalForward"in e,get:e=>e.forceNormalForward,set:(e,t)=>{e.forceNormalForward=t}},metadata:rr},i0,i1),(0,aV.__esDecorate)(ra,null,eX,{kind:"accessor",name:"enableSpecularAntiAliasing",static:!1,private:!1,access:{has:e=>"enableSpecularAntiAliasing"in e,get:e=>e.enableSpecularAntiAliasing,set:(e,t)=>{e.enableSpecularAntiAliasing=t}},metadata:rr},i3,i2),(0,aV.__esDecorate)(ra,null,eY,{kind:"accessor",name:"useHorizonOcclusion",static:!1,private:!1,access:{has:e=>"useHorizonOcclusion"in e,get:e=>e.useHorizonOcclusion,set:(e,t)=>{e.useHorizonOcclusion=t}},metadata:rr},i4,i5),(0,aV.__esDecorate)(ra,null,eZ,{kind:"accessor",name:"useRadianceOcclusion",static:!1,private:!1,access:{has:e=>"useRadianceOcclusion"in e,get:e=>e.useRadianceOcclusion,set:(e,t)=>{e.useRadianceOcclusion=t}},metadata:rr},i6,i8),(0,aV.__esDecorate)(ra,null,eK,{kind:"accessor",name:"unlit",static:!1,private:!1,access:{has:e=>"unlit"in e,get:e=>e.unlit,set:(e,t)=>{e.unlit=t}},metadata:rr},i7,i9),(0,aV.__esDecorate)(ra,null,eQ,{kind:"accessor",name:"applyDecalMapAfterDetailMap",static:!1,private:!1,access:{has:e=>"applyDecalMapAfterDetailMap"in e,get:e=>e.applyDecalMapAfterDetailMap,set:(e,t)=>{e.applyDecalMapAfterDetailMap=t}},metadata:rr},re,rt),(0,aV.__esDecorate)(ra,null,ej,{kind:"accessor",name:"debugMode",static:!1,private:!1,access:{has:e=>"debugMode"in e,get:e=>e.debugMode,set:(e,t)=>{e.debugMode=t}},metadata:rr},rs,ri),(0,aV.__esDecorate)(ra,null,eq,{kind:"getter",name:"transparencyMode",static:!1,private:!1,access:{has:e=>"transparencyMode"in e,get:e=>e.transparencyMode},metadata:rr},null,eJ),rr&&Object.defineProperty(ra,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:rr}),ra.SSS_QUALITY_LOW=0,ra.SSS_QUALITY_MEDIUM=1,ra.SSS_QUALITY_HIGH=2,ra._noiseTextures={},ra.ForceGLSL=!1,ra),nD=!1;e.s(["OpenPBRMaterial",0,nC,"OpenPBRMaterialDefines",0,ny,"RegisterOpenpbrMaterial",0,function(){nD||(nD=!0,(0,aK.RegisterImageProcessingConfiguration)(),(0,nx.RegisterClass)("BABYLON.OpenPBRMaterial",nC))}],18344)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11376,e=>{"use strict";class t{constructor(e){this._pendingActions=[],this._workerInfos=e.map(e=>({workerPromise:Promise.resolve(e),idle:!0}))}dispose(){for(let e of this._workerInfos)e.workerPromise.then(e=>{e.terminate()});this._workerInfos.length=0,this._pendingActions.length=0}push(e){this._executeOnIdleWorker(e)||this._pendingActions.push(e)}_executeOnIdleWorker(e){for(let t of this._workerInfos)if(t.idle)return this._execute(t,e),!0;return!1}_execute(e,t){e.idle=!1,e.workerPromise.then(r=>{t(r,()=>{let t=this._pendingActions.shift();t?this._execute(e,t):e.idle=!0})})}}class r extends t{constructor(e,t,s=r.DefaultOptions){super([]),this._maxWorkers=e,this._createWorkerAsync=t,this._options=s}push(e){if(!this._executeOnIdleWorker(e))if(this._workerInfos.length<this._maxWorkers){let t={workerPromise:this._createWorkerAsync(),idle:!1};this._workerInfos.push(t),this._execute(t,e)}else this._pendingActions.push(e)}_execute(e,t){e.timeoutId&&(clearTimeout(e.timeoutId),delete e.timeoutId),super._execute(e,(r,s)=>{t(r,()=>{s(),e.idle&&(e.timeoutId=setTimeout(()=>{e.workerPromise.then(e=>{e.terminate()});let t=this._workerInfos.indexOf(e);-1!==t&&this._workerInfos.splice(t,1)},this._options.idleTimeElapsedBeforeRelease))})})}}r.DefaultOptions={idleTimeElapsedBeforeRelease:1e3},e.s(["AutoReleaseWorkerPool",0,r])},42960,e=>{"use strict";var t,r,s,o,a,i,n=e.i(16347);class c{constructor(e,t){if(this.data=e,this.isInvalid=!1,!c.IsValid(e)){this.isInvalid=!0,n.Logger.Error("texture missing KTX identifier");return}const r=Uint32Array.BYTES_PER_ELEMENT,s=new DataView(this.data.buffer,this.data.byteOffset+12,13*r),o=0x4030201===s.getUint32(0,!0);if(this.glType=s.getUint32(+r,o),this.glTypeSize=s.getUint32(2*r,o),this.glFormat=s.getUint32(3*r,o),this.glInternalFormat=s.getUint32(4*r,o),this.glBaseInternalFormat=s.getUint32(5*r,o),this.pixelWidth=s.getUint32(6*r,o),this.pixelHeight=s.getUint32(7*r,o),this.pixelDepth=s.getUint32(8*r,o),this.numberOfArrayElements=s.getUint32(9*r,o),this.numberOfFaces=s.getUint32(10*r,o),this.numberOfMipmapLevels=s.getUint32(11*r,o),this.bytesOfKeyValueData=s.getUint32(12*r,o),0!==this.glType){n.Logger.Error("only compressed formats currently supported"),this.isInvalid=!0;return}if(this.numberOfMipmapLevels=Math.max(1,this.numberOfMipmapLevels),0===this.pixelHeight||0!==this.pixelDepth){n.Logger.Error("only 2D textures currently supported"),this.isInvalid=!0;return}if(0!==this.numberOfArrayElements){n.Logger.Error("texture arrays not currently supported"),this.isInvalid=!0;return}if(this.numberOfFaces!==t){n.Logger.Error("number of faces expected"+t+", but found "+this.numberOfFaces),this.isInvalid=!0;return}this.loadType=c.COMPRESSED_2D}uploadLevels(e,t){switch(this.loadType){case c.COMPRESSED_2D:this._upload2DCompressedLevels(e,t);case c.TEX_2D:case c.COMPRESSED_3D:case c.TEX_3D:}}_upload2DCompressedLevels(e,t){let r=c.HEADER_LEN+this.bytesOfKeyValueData,s=this.pixelWidth,o=this.pixelHeight,a=t?this.numberOfMipmapLevels:1;for(let t=0;t<a;t++){let a=new Int32Array(this.data.buffer,this.data.byteOffset+r,1)[0];r+=4;for(let i=0;i<this.numberOfFaces;i++){let n=new Uint8Array(this.data.buffer,this.data.byteOffset+r,a);e.getEngine()._uploadCompressedDataToTextureDirectly(e,e.format,s,o,n,i,t),r+=a,r+=3-(a+3)%4}s=Math.max(1,.5*s),o=Math.max(1,.5*o)}}static IsValid(e){if(e.byteLength>=12){let t=new Uint8Array(e.buffer,e.byteOffset,12);if(171===t[0]&&75===t[1]&&84===t[2]&&88===t[3]&&32===t[4]&&49===t[5]&&49===t[6]&&187===t[7]&&13===t[8]&&10===t[9]&&26===t[10]&&10===t[11])return!0}return!1}}c.HEADER_LEN=64,c.COMPRESSED_2D=0,c.COMPRESSED_3D=1,c.TEX_2D=2,c.TEX_3D=3;var d=e.i(11376),l=e.i(92180);function T(e,t){let r=t?.jsDecoderModule||KTX2DECODER;e&&(e.wasmBaseUrl&&(r.Transcoder.WasmBaseUrl=e.wasmBaseUrl),e.wasmUASTCToASTC&&(r.LiteTranscoder_UASTC_ASTC.WasmModuleURL=e.wasmUASTCToASTC),e.wasmUASTCToBC7&&(r.LiteTranscoder_UASTC_BC7.WasmModuleURL=e.wasmUASTCToBC7),e.wasmUASTCToRGBA_UNORM&&(r.LiteTranscoder_UASTC_RGBA_UNORM.WasmModuleURL=e.wasmUASTCToRGBA_UNORM),e.wasmUASTCToRGBA_SRGB&&(r.LiteTranscoder_UASTC_RGBA_SRGB.WasmModuleURL=e.wasmUASTCToRGBA_SRGB),e.wasmUASTCToR8_UNORM&&(r.LiteTranscoder_UASTC_R8_UNORM.WasmModuleURL=e.wasmUASTCToR8_UNORM),e.wasmUASTCToRG8_UNORM&&(r.LiteTranscoder_UASTC_RG8_UNORM.WasmModuleURL=e.wasmUASTCToRG8_UNORM),e.jsMSCTranscoder&&(r.MSCTranscoder.JSModuleURL=e.jsMSCTranscoder),e.wasmMSCTranscoder&&(r.MSCTranscoder.WasmModuleURL=e.wasmMSCTranscoder),e.wasmZSTDDecoder&&(r.ZSTDDecoder.WasmModuleURL=e.wasmZSTDDecoder)),t&&(t.wasmUASTCToASTC&&(r.LiteTranscoder_UASTC_ASTC.WasmBinary=t.wasmUASTCToASTC),t.wasmUASTCToBC7&&(r.LiteTranscoder_UASTC_BC7.WasmBinary=t.wasmUASTCToBC7),t.wasmUASTCToRGBA_UNORM&&(r.LiteTranscoder_UASTC_RGBA_UNORM.WasmBinary=t.wasmUASTCToRGBA_UNORM),t.wasmUASTCToRGBA_SRGB&&(r.LiteTranscoder_UASTC_RGBA_SRGB.WasmBinary=t.wasmUASTCToRGBA_SRGB),t.wasmUASTCToR8_UNORM&&(r.LiteTranscoder_UASTC_R8_UNORM.WasmBinary=t.wasmUASTCToR8_UNORM),t.wasmUASTCToRG8_UNORM&&(r.LiteTranscoder_UASTC_RG8_UNORM.WasmBinary=t.wasmUASTCToRG8_UNORM),t.jsMSCTranscoder&&(r.MSCTranscoder.JSModule=t.jsMSCTranscoder),t.wasmMSCTranscoder&&(r.MSCTranscoder.WasmBinary=t.wasmMSCTranscoder),t.wasmZSTDDecoder&&(r.ZSTDDecoder.WasmBinary=t.wasmZSTDDecoder))}function _(e){let t;void 0===e&&"u">typeof KTX2DECODER&&(e=KTX2DECODER),onmessage=r=>{if(r.data)switch(r.data.action){case"init":{let s=r.data.urls;s&&(s.jsDecoderModule&&void 0===e&&(importScripts(s.jsDecoderModule),e=KTX2DECODER),T(s)),r.data.wasmBinaries&&T(void 0,{...r.data.wasmBinaries,jsDecoderModule:e}),t=new e.KTX2Decoder,postMessage({action:"init"});break}case"setDefaultDecoderOptions":e.KTX2Decoder.DefaultDecoderOptions=r.data.options;break;case"decode":t.decode(r.data.data,r.data.caps,r.data.options).then(e=>{let t=[];for(let r=0;r<e.mipmaps.length;++r){let s=e.mipmaps[r];s&&s.data&&t.push(s.data.buffer)}postMessage({action:"decoded",success:!0,decodedData:e},t)}).catch(e=>{postMessage({action:"decoded",success:!1,msg:e})})}}}async function u(e,t,r){return await new Promise((s,o)=>{let a=t=>{e.removeEventListener("error",a),e.removeEventListener("message",i),o(t)},i=t=>{"init"===t.data.action&&(e.removeEventListener("error",a),e.removeEventListener("message",i),s(e))};e.addEventListener("error",a),e.addEventListener("message",i),e.postMessage({action:"init",urls:r,wasmBinaries:t})})}(t=o||(o={}))[t.ETC1S=0]="ETC1S",t[t.UASTC4x4=1]="UASTC4x4",t[t.RGBA32=2]="RGBA32",(r=a||(a={}))[r.ASTC_4X4_RGBA=0]="ASTC_4X4_RGBA",r[r.ASTC_4x4_RGBA=0]="ASTC_4x4_RGBA",r[r.BC7_RGBA=1]="BC7_RGBA",r[r.BC3_RGBA=2]="BC3_RGBA",r[r.BC1_RGB=3]="BC1_RGB",r[r.PVRTC1_4_RGBA=4]="PVRTC1_4_RGBA",r[r.PVRTC1_4_RGB=5]="PVRTC1_4_RGB",r[r.ETC2_RGBA=6]="ETC2_RGBA",r[r.ETC1_RGB=7]="ETC1_RGB",r[r.RGBA32=8]="RGBA32",r[r.R8=9]="R8",r[r.RG8=10]="RG8",(s=i||(i={}))[s.COMPRESSED_RGBA_BPTC_UNORM_EXT=36492]="COMPRESSED_RGBA_BPTC_UNORM_EXT",s[s.COMPRESSED_RGBA_ASTC_4X4_KHR=37808]="COMPRESSED_RGBA_ASTC_4X4_KHR",s[s.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",s[s.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",s[s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",s[s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",s[s.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",s[s.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",s[s.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",s[s.RGBA8Format=32856]="RGBA8Format",s[s.R8Format=33321]="R8Format",s[s.RG8Format=33323]="RG8Format";class R{static GetDefaultNumWorkers(){return"object"==typeof navigator&&navigator.hardwareConcurrency?Math.min(Math.floor(.5*navigator.hardwareConcurrency),4):1}static _Initialize(e){if(R._WorkerPoolPromise||R._DecoderModulePromise)return;let t={wasmBaseUrl:l.Tools.ScriptBaseUrl,jsDecoderModule:l.Tools.GetBabylonScriptURL(this.URLConfig.jsDecoderModule,!0),wasmUASTCToASTC:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToASTC,!0),wasmUASTCToBC7:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToBC7,!0),wasmUASTCToRGBA_UNORM:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_UNORM,!0),wasmUASTCToRGBA_SRGB:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRGBA_SRGB,!0),wasmUASTCToR8_UNORM:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToR8_UNORM,!0),wasmUASTCToRG8_UNORM:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmUASTCToRG8_UNORM,!0),jsMSCTranscoder:l.Tools.GetBabylonScriptURL(this.URLConfig.jsMSCTranscoder,!0),wasmMSCTranscoder:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmMSCTranscoder,!0),wasmZSTDDecoder:l.Tools.GetBabylonScriptURL(this.URLConfig.wasmZSTDDecoder,!0)};e&&"function"==typeof Worker&&"u">typeof URL?R._WorkerPoolPromise=new Promise(r=>{let s=`${T}(${_})()`,o=URL.createObjectURL(new Blob([s],{type:"application/javascript"}));r(new d.AutoReleaseWorkerPool(e,async()=>await u(new Worker(o),void 0,t)))}):void 0===R._KTX2DecoderModule?R._DecoderModulePromise=l.Tools.LoadBabylonScriptAsync(t.jsDecoderModule).then(()=>(R._KTX2DecoderModule=KTX2DECODER,R._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread=!1,R._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread=!0,T(t,R._KTX2DecoderModule),new R._KTX2DecoderModule.KTX2Decoder)):(R._KTX2DecoderModule.MSCTranscoder.UseFromWorkerThread=!1,R._KTX2DecoderModule.WASMMemoryManager.LoadBinariesFromCurrentThread=!0,R._DecoderModulePromise=Promise.resolve(new R._KTX2DecoderModule.KTX2Decoder))}constructor(e,t=R.DefaultNumWorkers){this._engine=e;const r="object"==typeof t&&t.workerPool||R.WorkerPool;if(r)R._WorkerPoolPromise=Promise.resolve(r);else{"object"==typeof t?R._KTX2DecoderModule=t?.binariesAndModulesContainer?.jsDecoderModule:"u">typeof KTX2DECODER&&(R._KTX2DecoderModule=KTX2DECODER);const e="number"==typeof t?t:t.numWorkers??R.DefaultNumWorkers;R._Initialize(e)}}async _uploadAsync(e,t,r){let s=await this._decodeAsync(e,r);this._createTexture(s,t,r)}async _decodeAsync(e,t){let r=this._engine.getCaps(),s={astc:!!r.astc,bptc:!!r.bptc,s3tc:!!r.s3tc,pvrtc:!!r.pvrtc,etc2:!!r.etc2,etc1:!!r.etc1};if(R._WorkerPoolPromise){let r=await R._WorkerPoolPromise;return await new Promise((o,a)=>{r.push((r,i)=>{let n=e=>{r.removeEventListener("error",n),r.removeEventListener("message",c),a(e),i()},c=e=>{"decoded"===e.data.action&&(r.removeEventListener("error",n),r.removeEventListener("message",c),e.data.success?o(e.data.decodedData):a({message:e.data.msg}),i())};r.addEventListener("error",n),r.addEventListener("message",c),r.postMessage({action:"setDefaultDecoderOptions",options:R.DefaultDecoderOptions._getKTX2DecoderOptions()});let d=new Uint8Array(e.byteLength);d.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),r.postMessage({action:"decode",data:d,caps:s,options:t},[d.buffer])})})}if(R._DecoderModulePromise){let s=await R._DecoderModulePromise;return R.DefaultDecoderOptions.isDirty&&(R._KTX2DecoderModule.KTX2Decoder.DefaultDecoderOptions=R.DefaultDecoderOptions._getKTX2DecoderOptions()),await new Promise((o,a)=>{s.decode(e,r,t).then(e=>{o(e)}).catch(e=>{a({message:e})})})}throw Error("KTX2 decoder module is not available")}_createTexture(e,t,r){if((e.layerCount??1)>1)throw Error("KTX2 container - array textures are not supported by this texture loader.");this._engine._bindTextureDirectly(3553,t),r&&(r.transcodedFormat=e.transcodedFormat,r.isInGammaSpace=e.isInGammaSpace,r.hasAlpha=e.hasAlpha,r.transcoderName=e.transcoderName);let s=!0;switch(e.transcodedFormat){case 32856:t.type=0,t.format=5;break;case 33321:t.type=0,t.format=6;break;case 33323:t.type=0,t.format=7;break;default:t.format=e.transcodedFormat,s=!1}if(t._gammaSpace=e.isInGammaSpace,t.generateMipMaps=e.mipmaps.length>1,t.width=e.mipmaps[0].width,t.height=e.mipmaps[0].height,e.errors)throw Error("KTX2 container - could not transcode the data. "+e.errors);for(let r=0;r<e.mipmaps.length;++r){let o=e.mipmaps[r];if(!o||!o.data)throw Error("KTX2 container - could not transcode one of the image");s?(t.width=o.width,t.height=o.height,this._engine._uploadDataToTextureDirectly(t,o.data,0,r,void 0,!0)):this._engine._uploadCompressedDataToTextureDirectly(t,e.transcodedFormat,o.width,o.height,o.data,0,r)}t._extension=".ktx2",t.isReady=!0,this._engine._bindTextureDirectly(3553,null)}static IsValid(e){if(e.byteLength>=12){let t=new Uint8Array(e.buffer,e.byteOffset,12);if(171===t[0]&&75===t[1]&&84===t[2]&&88===t[3]&&32===t[4]&&50===t[5]&&48===t[6]&&187===t[7]&&13===t[8]&&10===t[9]&&26===t[10]&&10===t[11])return!0}return!1}}function m(e){switch(e){case 35916:return 33776;case 35918:return 33778;case 35919:return 33779;case 37493:return 37492;case 37497:return 37496;case 37495:return 37494;case 37840:return 37808;case 37841:return 37809;case 37842:return 37810;case 37843:return 37811;case 37844:return 37812;case 37845:return 37813;case 37846:return 37814;case 37847:return 37815;case 37848:return 37816;case 37849:return 37817;case 37850:return 37818;case 37851:return 37819;case 37852:return 37820;case 37853:return 37821;case 36493:return 36492}return null}R.URLConfig={jsDecoderModule:"https://cdn.babylonjs.com/babylon.ktx2Decoder.js",wasmUASTCToASTC:null,wasmUASTCToBC7:null,wasmUASTCToRGBA_UNORM:null,wasmUASTCToRGBA_SRGB:null,wasmUASTCToR8_UNORM:null,wasmUASTCToRG8_UNORM:null,jsMSCTranscoder:null,wasmMSCTranscoder:null,wasmZSTDDecoder:null},R.DefaultNumWorkers=R.GetDefaultNumWorkers(),R.DefaultDecoderOptions=new class{constructor(){this._isDirty=!0,this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC=!0,this._ktx2DecoderOptions={}}get isDirty(){return this._isDirty}get useRGBAIfASTCBC7NotAvailableWhenUASTC(){return this._useRGBAIfASTCBC7NotAvailableWhenUASTC}set useRGBAIfASTCBC7NotAvailableWhenUASTC(e){this._useRGBAIfASTCBC7NotAvailableWhenUASTC!==e&&(this._useRGBAIfASTCBC7NotAvailableWhenUASTC=e,this._isDirty=!0)}get useRGBAIfOnlyBC1BC3AvailableWhenUASTC(){return this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC}set useRGBAIfOnlyBC1BC3AvailableWhenUASTC(e){this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC!==e&&(this._useRGBAIfOnlyBC1BC3AvailableWhenUASTC=e,this._isDirty=!0)}get forceRGBA(){return this._forceRGBA}set forceRGBA(e){this._forceRGBA!==e&&(this._forceRGBA=e,this._isDirty=!0)}get forceR8(){return this._forceR8}set forceR8(e){this._forceR8!==e&&(this._forceR8=e,this._isDirty=!0)}get forceRG8(){return this._forceRG8}set forceRG8(e){this._forceRG8!==e&&(this._forceRG8=e,this._isDirty=!0)}get bypassTranscoders(){return this._bypassTranscoders}set bypassTranscoders(e){this._bypassTranscoders!==e&&(this._bypassTranscoders=e,this._isDirty=!0)}_getKTX2DecoderOptions(){if(!this._isDirty)return this._ktx2DecoderOptions;this._isDirty=!1;let e={};return void 0!==this._useRGBAIfASTCBC7NotAvailableWhenUASTC&&(e.useRGBAIfASTCBC7NotAvailableWhenUASTC=this._useRGBAIfASTCBC7NotAvailableWhenUASTC),void 0!==this._forceRGBA&&(e.forceRGBA=this._forceRGBA),void 0!==this._forceR8&&(e.forceR8=this._forceR8),void 0!==this._forceRG8&&(e.forceRG8=this._forceRG8),void 0!==this._bypassTranscoders&&(e.bypassTranscoders=this._bypassTranscoders),this.useRGBAIfOnlyBC1BC3AvailableWhenUASTC&&(e.transcodeFormatDecisionTree={UASTC:{transcodeFormat:[a.BC1_RGB,a.BC3_RGBA],yes:{transcodeFormat:a.RGBA32,engineFormat:32856,roundToMultiple4:!1}}}),this._ktx2DecoderOptions=e,e}},e.s(["_KTXTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,t,r,s){if(Array.isArray(e))return;t._invertVScale=!t.invertY;let o=t.getEngine(),a=new c(e,6),i=m(a.glInternalFormat);null!==i?(t.format=i,t._useSRGBBuffer=o._getUseSRGBBuffer(!0,!t.generateMipMaps),t._gammaSpace=!0):t.format=a.glInternalFormat;let n=a.numberOfMipmapLevels>1&&t.generateMipMaps;o._unpackFlipY(!0),a.uploadLevels(t,t.generateMipMaps),t.width=a.pixelWidth,t.height=a.pixelHeight,o._setCubeMapTextureParams(t,n,a.numberOfMipmapLevels-1),t.isReady=!0,t.onLoadedObservable.notifyObservers(t),t.onLoadedObservable.clear(),s&&s()}loadData(e,t,r,s){if(c.IsValid(e)){t._invertVScale=!t.invertY;let s=new c(e,1),o=m(s.glInternalFormat);null!==o?(t.format=o,t._useSRGBBuffer=t.getEngine()._getUseSRGBBuffer(!0,!t.generateMipMaps),t._gammaSpace=!0):t.format=s.glInternalFormat,r(s.pixelWidth,s.pixelHeight,t.generateMipMaps,!0,()=>{s.uploadLevels(t,t.generateMipMaps)},s.isInvalid)}else R.IsValid(e)?new R(t.getEngine())._uploadAsync(e,t,s).then(()=>{r(t.width,t.height,t.generateMipMaps,!0,()=>{},!1)},e=>{n.Logger.Warn(`Failed to load KTX2 texture data: ${e.message}`),r(0,0,!1,!1,()=>{},!0)}):(n.Logger.Error("texture missing KTX identifier"),r(0,0,!1,!1,()=>{},!0))}}],42960)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31740,e=>{"use strict";var t=e.i(75105),i=e.i(62478),o=e.i(44520);class u extends i.FlowGraphExecutionBlockWithOutSignal{constructor(e){super(e),this.count=this.registerDataInput("count",t.RichTypeNumber),this.reset=this._registerSignalInput("reset"),this.currentCount=this.registerDataOutput("currentCount",t.RichTypeNumber)}_execute(e,t){if(t===this.reset)return void e._setExecutionVariable(this,"debounceCount",0);let i=this.count.getValue(e),o=e._getExecutionVariable(this,"debounceCount",0)+1;this.currentCount.setValue(o,e),e._setExecutionVariable(this,"debounceCount",o),o>=i&&(this.out._activateSignal(e),e._setExecutionVariable(this,"debounceCount",0))}getClassName(){return"FlowGraphDebounceBlock"}}let s=!1;function n(){s||(s=!0,(0,o.RegisterClass)("FlowGraphDebounceBlock",u))}e.s(["FlowGraphDebounceBlock",0,u,"RegisterFlowGraphDebounceBlock",0,n],65793),n(),e.s([],56954),e.i(56954),e.i(65793),e.s(["FlowGraphDebounceBlock",0,u],31740)}]);