@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.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +19 -5
- package/out/__next._full.txt +10 -10
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{3cp5nmtwxq4gr.js → 0-6mdj5wxsfid.js} +1 -1
- package/out/_next/static/chunks/{2clevl_9ayd0x.js → 0-qthfqvm1jyj.js} +1 -1
- package/out/_next/static/chunks/01viyuclp2gm9.js +1 -0
- package/out/_next/static/chunks/02aym4t2hgo5c.js +1 -0
- package/out/_next/static/chunks/{1fervgvgv10r-.js → 02ic9b5ejugow.js} +1 -1
- package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
- package/out/_next/static/chunks/{3zv5kyos9vtmm.js → 03pjr-ivdicng.js} +1 -1
- package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
- package/out/_next/static/chunks/{3-yhe6rcsjh88.js → 06dzkwetqis-5.js} +1 -1
- package/out/_next/static/chunks/{2mjjo0yj-4ro4.js → 06kvanz5-fo52.js} +1 -1
- package/out/_next/static/chunks/{28i3wgvgn_at1.js → 07y8ke_iy59dn.js} +1 -1
- package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
- package/out/_next/static/chunks/{0cmyc-uvk93kl.js → 09khmdgez3t0a.js} +74 -74
- package/out/_next/static/chunks/{2x-7kbwq8tl-o.js → 0_dca4876jshu.js} +196 -196
- package/out/_next/static/chunks/0axcgnl5qzr6e.js +1 -0
- package/out/_next/static/chunks/0ay4fjomijs3n.js +1 -0
- package/out/_next/static/chunks/0c7fy79wlccat.js +1 -0
- package/out/_next/static/chunks/0cqe4-l3imct3.js +1 -0
- package/out/_next/static/chunks/0cssvelju788j.js +1 -0
- package/out/_next/static/chunks/{2-_a-v1xeo5hb.js → 0ctain5xq2wsd.js} +116 -115
- package/out/_next/static/chunks/{3yk0hzfq5rcs6.js → 0df-dr3otg_4w.js} +1 -1
- package/out/_next/static/chunks/{0i9wa8hjd-5tc.js → 0endw997j7ao9.js} +1 -1
- package/out/_next/static/chunks/0ev_pbit1v_qg.js +1 -0
- package/out/_next/static/chunks/0eyw9oiwipywb.js +1 -0
- package/out/_next/static/chunks/0fkzbuo1tex4u.js +1 -0
- package/out/_next/static/chunks/0govas0u0t4w3.js +1 -0
- package/out/_next/static/chunks/{287hakn2ijupp.js → 0guzhnususp3-.js} +2 -2
- package/out/_next/static/chunks/0h7bq_ysu17q7.js +3 -0
- package/out/_next/static/chunks/0hneh_3xzlo28.js +1 -0
- package/out/_next/static/chunks/0iaqwme19z_0s.js +1 -0
- package/out/_next/static/chunks/0ibmar10xndpn.js +1 -0
- package/out/_next/static/chunks/0ii8mqoteppgh.js +11 -0
- package/out/_next/static/chunks/{3ioxfi3bvznhh.js → 0ip6v64di_l6x.js} +1 -1
- package/out/_next/static/chunks/{184pz6z3dflfm.js → 0ixymgjgz3grn.js} +20 -20
- package/out/_next/static/chunks/0kuah8g7lt5ox.js +1 -0
- package/out/_next/static/chunks/0l3k4j19vxm17.js +1 -0
- package/out/_next/static/chunks/0l6hg0ohwh9-m.js +1 -0
- package/out/_next/static/chunks/0m4um4ylhlfan.js +1 -0
- package/out/_next/static/chunks/0mj837d4h0ddq.js +1 -0
- package/out/_next/static/chunks/0nyn-f4905o91.js +1 -0
- package/out/_next/static/chunks/0og6i9rsgkuif.js +1 -0
- package/out/_next/static/chunks/0os1x-fxzgnxs.js +1 -0
- package/out/_next/static/chunks/0otnra7mp0hog.js +1 -0
- package/out/_next/static/chunks/{3p03l0z65c8vc.js → 0oyf2xzv8ofkk.js} +253 -253
- package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
- package/out/_next/static/chunks/{0yd4_xh476fjn.js → 0rl4ddh2vgxyl.js} +97 -97
- package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
- package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
- package/out/_next/static/chunks/{36pz_ews7u0xb.js → 0te4g160_rb5d.js} +1 -1
- package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
- package/out/_next/static/chunks/{2kk_vvmr2xm3d.js → 0uvn0op2mlr2u.js} +12 -12
- package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
- package/out/_next/static/chunks/{0r-x702_jvhud.js → 0w7c30w07uct2.js} +12 -12
- package/out/_next/static/chunks/0wm38z3u2133a.js +1 -0
- package/out/_next/static/chunks/0y7yk5al7_p8q.js +4 -0
- package/out/_next/static/chunks/0ycr0gi6fn6bt.js +1 -0
- package/out/_next/static/chunks/0ywvahq9t0tki.js +1 -0
- package/out/_next/static/chunks/0zh6nslagkby-.js +1 -0
- package/out/_next/static/chunks/{3twr9ds68-9us.js → 0zo8xa0nej3ex.js} +1 -1
- package/out/_next/static/chunks/{1lu7rjfvxj8yj.js → 0zsir95gpf3xw.js} +1 -1
- package/out/_next/static/chunks/{1j4c0nvdo5q68.js → 0zu6ryyj0ig-j.js} +1 -1
- package/out/_next/static/chunks/{1bv-jzy_2jiqs.js → 1-jv8k10q_1uw.js} +1 -1
- package/out/_next/static/chunks/{0xx7_7y5jdlh4.js → 1-s5ioie9a94e.js} +1 -1
- package/out/_next/static/chunks/{27z7j17kcrty_.js → 1-yos1h0qws5e.js} +11 -11
- package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
- package/out/_next/static/chunks/{2xe4bgir5l-9b.js → 10pae4gb9i929.js} +504 -504
- package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
- package/out/_next/static/chunks/{2mrkv0z2i74pv.js → 147s8i_lktp4_.js} +2 -2
- package/out/_next/static/chunks/{3nwaovnpiyrt8.js → 14tgo5xt_3j4w.js} +3 -3
- package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
- package/out/_next/static/chunks/{2b5nt7yn-pq3a.js → 16d6n9e77rqti.js} +1 -1
- package/out/_next/static/chunks/{3nr48h9zwum-3.js → 16f3d5dv83rsr.js} +1 -1
- package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
- package/out/_next/static/chunks/{2117sv2qzo6yq.js → 16rfr165nbha0.js} +1 -1
- package/out/_next/static/chunks/16sl51pvzo4tf.js +1 -0
- package/out/_next/static/chunks/1760s-32qpwgg.js +1 -0
- package/out/_next/static/chunks/{3rj-5v0j_2-_2.js → 18kq07c5xy_4g.js} +4 -4
- package/out/_next/static/chunks/{2wgh5i70bzelt.js → 190tbzt861ao3.js} +392 -392
- package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
- package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
- package/out/_next/static/chunks/{2_lw4d7t-xcqi.js → 1_kikmeubh0wq.js} +523 -522
- package/out/_next/static/chunks/1ay3z6agelsvz.js +1 -0
- package/out/_next/static/chunks/1b-fi3bfmpe31.js +1 -0
- package/out/_next/static/chunks/1bae3tqv53x9_.js +1 -0
- package/out/_next/static/chunks/{2s4fzgzkwjluu.js → 1bf421g4peccx.js} +2 -2
- package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
- package/out/_next/static/chunks/{3vtmucpx25o7q.js → 1ddt0ot7kl8vq.js} +584 -584
- package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
- package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
- package/out/_next/static/chunks/1g9p2h1-31q8o.js +1 -0
- package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
- package/out/_next/static/chunks/1h8lyicgqhpxa.js +1 -0
- package/out/_next/static/chunks/{0e5dcxmkprebg.js → 1hot663akaepl.js} +1 -1
- package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
- package/out/_next/static/chunks/{0xzamrecplwzw.js → 1i8sk_qgpdjhs.js} +1 -1
- package/out/_next/static/chunks/1kk3ct7pkpf3b.js +1 -0
- package/out/_next/static/chunks/1kq9o8del67le.js +1 -0
- package/out/_next/static/chunks/1l7tzyx2mumlq.js +1 -0
- package/out/_next/static/chunks/1n_uwed9o--go.js +1 -0
- package/out/_next/static/chunks/1o351eldttogn.js +1 -0
- package/out/_next/static/chunks/{1f07l3q77zat1.js → 1ogs4_aj84bfn.js} +1 -1
- package/out/_next/static/chunks/{3_dm45k0vk1aa.js → 1p206txlluipi.js} +565 -565
- package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
- package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
- package/out/_next/static/chunks/{0ypejzd74ixbw.js → 1qcgdx9yl0gfx.js} +15 -15
- package/out/_next/static/chunks/1ql3mm2w5r-m8.js +1 -0
- package/out/_next/static/chunks/1qvcyuyshi3ll.js +53 -0
- package/out/_next/static/chunks/1r0yyg5a_0knc.js +1 -0
- package/out/_next/static/chunks/{374lzksboll-t.js → 1sa6qiidtcyk2.js} +1 -1
- package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
- package/out/_next/static/chunks/1t97zo0tlpbnz.js +1 -0
- package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
- package/out/_next/static/chunks/{3j3ol_d1vsdhx.js → 1trt-m2nrck0v.js} +1 -1
- package/out/_next/static/chunks/{3vu5y270muh-7.js → 1ty9jpwr3o_st.js} +1 -1
- package/out/_next/static/chunks/{415g3asdds1ac.js → 1u6w6veke8rze.js} +1 -1
- package/out/_next/static/chunks/{0-laj-bivzp4x.js → 1u900urmrbv73.js} +1 -1
- package/out/_next/static/chunks/{0o73w0cn5n_vl.js → 1vz2gd8k74lpi.js} +1 -1
- package/out/_next/static/chunks/1wkpl9bfb0wn7.js +1 -0
- package/out/_next/static/chunks/1wrly9a9c3teq.js +1 -0
- package/out/_next/static/chunks/1x0m05155yy4e.js +1 -0
- package/out/_next/static/chunks/{1my968s78he8g.js → 1xf1wfow43ekc.js} +15 -15
- package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
- package/out/_next/static/chunks/{3_gfl66zf638s.js → 1y_zykt3fpen4.js} +901 -906
- package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
- package/out/_next/static/chunks/1z6_57k5h31u7.js +1 -0
- package/out/_next/static/chunks/1zboqft0h6mop.js +1 -0
- package/out/_next/static/chunks/1zr3c351x0ri5.js +1 -0
- package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
- package/out/_next/static/chunks/{1_4hh3dfop93j.js → 206hxrq60f1_e.js} +1 -1
- package/out/_next/static/chunks/20r05k3-studj.js +1 -0
- package/out/_next/static/chunks/22gs24kj2du56.js +1 -0
- package/out/_next/static/chunks/22x5pd1gyp7sf.js +1 -0
- package/out/_next/static/chunks/{3qo7e6b73mfxq.js → 22z-2t_yp1jzs.js} +1 -1
- package/out/_next/static/chunks/{3d43gd91r06y6.js → 23hmfdw6z5zfy.js} +507 -505
- package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
- package/out/_next/static/chunks/{0gk5rnci1hznh.js → 24tbkj1qkux88.js} +2 -2
- package/out/_next/static/chunks/{2-i29-jdbwww6.js → 26cmri51v7497.js} +111 -111
- package/out/_next/static/chunks/27jalbk9zu-2b.js +1 -0
- package/out/_next/static/chunks/285d2s9096ryc.js +1 -0
- package/out/_next/static/chunks/296ykep2nvppv.js +1 -0
- package/out/_next/static/chunks/29nehg5cal-ug.js +1 -0
- package/out/_next/static/chunks/2_a56_k3x7to6.js +1 -0
- package/out/_next/static/chunks/2a-0l6eb1blh3.js +4 -0
- package/out/_next/static/chunks/{2oacwtbslo90t.js → 2a31-txop1jzg.js} +360 -360
- package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
- package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
- package/out/_next/static/chunks/{2epukrz6paj9n.js → 2ept01b7t-e03.js} +1 -1
- package/out/_next/static/chunks/{22yht3s7c-xih.js → 2ey5dqelco_g5.js} +1 -1
- package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
- package/out/_next/static/chunks/{2fspbfbxbswzd.js → 2ftz9kaxrsgxh.js} +1 -1
- package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
- package/out/_next/static/chunks/{2as_br1awqk6k.js → 2gs-u1n5uv7iz.js} +496 -496
- package/out/_next/static/chunks/{1a94whad0y57f.js → 2hizqql79u-54.js} +1 -1
- package/out/_next/static/chunks/2iqf2dpdg_vfl.js +1 -0
- package/out/_next/static/chunks/2j7z127s_ycjd.js +1 -0
- package/out/_next/static/chunks/2kax7uslfxdnx.js +31 -0
- package/out/_next/static/chunks/{2laz1v9fg2a2z.js → 2lh_w9rzy3vek.js} +1 -1
- package/out/_next/static/chunks/{3mmy9zsb7zo-m.js → 2ln1na26qwp-3.js} +23 -23
- package/out/_next/static/chunks/2n08l1q5o_27e.js +1 -0
- package/out/_next/static/chunks/2n7268gyd9z-6.js +1 -0
- package/out/_next/static/chunks/2nq9cgjmtqwvp.js +1 -0
- package/out/_next/static/chunks/{25brs445bjbik.js → 2oj8qc_pv14nk.js} +2 -2
- package/out/_next/static/chunks/2q24e72-olbe8.js +1 -0
- package/out/_next/static/chunks/2qc4hscs26cro.js +1 -0
- package/out/_next/static/chunks/2qe46redkqhfg.js +1 -0
- package/out/_next/static/chunks/2qmfe0mqw150h.js +1 -0
- package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
- package/out/_next/static/chunks/2rofu6gu1xzuq.js +1 -0
- package/out/_next/static/chunks/2tdi94rkq739i.js +1 -0
- package/out/_next/static/chunks/2u_2sacqa9xa7.js +1 -0
- package/out/_next/static/chunks/2ujqz6088shm5.js +1 -0
- package/out/_next/static/chunks/{3my05px5mv_s5.js → 2urh9qafp3fiw.js} +235 -235
- package/out/_next/static/chunks/{23-y1f_zw56vo.js → 2v06n4z8wsmn9.js} +1 -1
- package/out/_next/static/chunks/2vp-5skbk1nfu.js +1 -0
- package/out/_next/static/chunks/2vu973j_n6cpx.js +1 -0
- package/out/_next/static/chunks/2wwra56rehfcj.js +1 -0
- package/out/_next/static/chunks/2xpwr97h2asal.js +1 -0
- package/out/_next/static/chunks/3000-0b8n9t_2.js +1 -0
- package/out/_next/static/chunks/{0q0i4pdyq66gb.js → 30t3203d7p2da.js} +1 -1
- package/out/_next/static/chunks/{3t4ys6th6gf2w.js → 31kto7-dxkt3z.js} +1 -1
- package/out/_next/static/chunks/{0j0a0wvmmghxj.js → 32oflcl79d8mu.js} +1 -1
- package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
- package/out/_next/static/chunks/{2c8rmxz151fxa.js → 331kthnvoma7n.js} +224 -224
- package/out/_next/static/chunks/337kn1mn34rc6.js +1 -0
- package/out/_next/static/chunks/{336ckqpboqmbn.js → 33xug8kf0-a1o.js} +1 -1
- package/out/_next/static/chunks/34dcb7_flbrvo.js +1 -0
- package/out/_next/static/chunks/34zotyeqrz_nq.js +1 -0
- package/out/_next/static/chunks/351wsmi75l8db.js +1 -0
- package/out/_next/static/chunks/36yv-ialtpx98.js +1 -0
- package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
- package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
- package/out/_next/static/chunks/{1x0j78ohufpul.js → 37xnvnx1jxfaf.js} +1 -1
- package/out/_next/static/chunks/{29hkkj9raxte9.js → 38w74ixqt-9co.js} +77 -77
- package/out/_next/static/chunks/{0jap7l5-bskj4.js → 39t2x_9zd2rst.js} +12 -12
- package/out/_next/static/chunks/{38q0enmlg5q9o.js → 39v73timmzwny.js} +2 -2
- package/out/_next/static/chunks/{3puu2_-t0lln9.js → 3_xqc3658d8sw.js} +12 -12
- package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
- package/out/_next/static/chunks/3buezhxqc8n6n.js +1 -0
- package/out/_next/static/chunks/3c5iwwj-fhbue.js +1 -0
- package/out/_next/static/chunks/{2kmmk9coo9_b0.js → 3d8ot2tw6yqfq.js} +143 -143
- package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
- package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
- package/out/_next/static/chunks/{2_6b9lraq-exh.js → 3fuqxjjf8o1v9.js} +5 -5
- package/out/_next/static/chunks/{0j2ygtc_-bo3m.js → 3gt6rzg9qw-an.js} +1 -1
- package/out/_next/static/chunks/{0rykrf_vofbad.js → 3h_05w5j8x538.js} +1 -1
- package/out/_next/static/chunks/{3txu-i5qn183a.js → 3hkhd1_k8xohv.js} +321 -321
- package/out/_next/static/chunks/{2h07np207nlx7.js → 3ijcc5tfisfnj.js} +1 -1
- package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
- package/out/_next/static/chunks/{14e4k-718qadd.js → 3ju83xk-ca7ma.js} +163 -168
- package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
- package/out/_next/static/chunks/{1h1gixjbjkbsl.js → 3la99oz_0p0r6.js} +5 -5
- package/out/_next/static/chunks/{1mt4cnd_d6jvf.js → 3n1b34fd5fdrh.js} +1 -1
- package/out/_next/static/chunks/3nq_hq4x3rn3r.js +1 -0
- package/out/_next/static/chunks/3pgb1kkqrdl9t.js +1 -0
- package/out/_next/static/chunks/3pik_-jj-zkfl.js +1 -0
- package/out/_next/static/chunks/{1zmx71cvc6ksk.js → 3q38kdbzd2nbd.js} +1 -1
- package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
- package/out/_next/static/chunks/{1t2g1v0ubcsam.js → 3qr10445lte-n.js} +1 -1
- package/out/_next/static/chunks/3r-8bnguvxsyo.js +1 -0
- package/out/_next/static/chunks/3sg56j8boe-3o.js +1 -0
- package/out/_next/static/chunks/3u7zj1-jdg781.js +1 -0
- package/out/_next/static/chunks/{0o0qtv35dqv3i.js → 3wj5dmf6cywz8.js} +239 -239
- package/out/_next/static/chunks/{2iu0_3cx-ny74.js → 3wr_oijfsq8lr.js} +11 -11
- package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
- package/out/_next/static/chunks/{0vzo-8t8c26k9.js → 3y5tpixt23-fl.js} +1 -1
- package/out/_next/static/chunks/40gjf-_jt8upu.js +5 -0
- package/out/_next/static/chunks/41f12o_5lf-i9.js +1 -0
- package/out/_next/static/chunks/42ma8lqduohlc.js +1 -0
- package/out/_next/static/chunks/43usshq2nc125.js +1 -0
- package/out/_next/static/chunks/{161yjxmdz9obc.js → 44bl4ufopbmyh.js} +1 -1
- package/out/_next/static/chunks/44iutzkw9r21x.js +1 -0
- package/out/_next/static/chunks/turbopack-1xrxa3noq196-.js +1 -0
- package/out/_not-found/__next._full.txt +11 -11
- package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +11 -11
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +11 -11
- package/out/__next._head.txt +0 -6
- package/out/__next._index.txt +0 -5
- package/out/_next/static/chunks/0-k4hp87gwues.js +0 -1
- package/out/_next/static/chunks/04zj0yf1qhk1o.js +0 -1
- package/out/_next/static/chunks/06fbalmyyfpsy.js +0 -1
- package/out/_next/static/chunks/07hgbbqksqd1g.js +0 -1
- package/out/_next/static/chunks/08ou2nvy48e0u.js +0 -1
- package/out/_next/static/chunks/08y5-irjbsiy8.js +0 -1
- package/out/_next/static/chunks/0_jrfk2u1u3fi.js +0 -1
- package/out/_next/static/chunks/0a475u_q5i_dd.js +0 -62
- package/out/_next/static/chunks/0aad2r4s4wl1x.js +0 -5
- package/out/_next/static/chunks/0d9pxx1w_zqr9.js +0 -1
- package/out/_next/static/chunks/0gnjtwq-474uc.js +0 -1
- package/out/_next/static/chunks/0gsh_d0m5xss1.js +0 -1
- package/out/_next/static/chunks/0ibzpjo0h731v.js +0 -1
- package/out/_next/static/chunks/0j_3k5qhv_mdx.js +0 -1
- package/out/_next/static/chunks/0jis2w2mfx062.js +0 -1
- package/out/_next/static/chunks/0jjvp2slpf7d6.js +0 -1
- package/out/_next/static/chunks/0ko10wo4rc9-b.js +0 -1
- package/out/_next/static/chunks/0lqmvz6k2h_of.js +0 -1
- package/out/_next/static/chunks/0lwjmr8efrlbt.js +0 -17
- package/out/_next/static/chunks/0noxyupihh8dk.js +0 -1
- package/out/_next/static/chunks/0o1vph7x9shzu.js +0 -1
- package/out/_next/static/chunks/0p6phe9kjlxn8.js +0 -1
- package/out/_next/static/chunks/0ptxb9dcwsw3o.js +0 -1
- package/out/_next/static/chunks/0q8pt8fd0ma30.js +0 -1
- package/out/_next/static/chunks/0qqx9aoz8l5d2.js +0 -1
- package/out/_next/static/chunks/0tsk32q-88t_7.js +0 -1
- package/out/_next/static/chunks/0u7577db_ivyr.js +0 -1
- package/out/_next/static/chunks/0unnrt0un064x.js +0 -1
- package/out/_next/static/chunks/0uygtr4mo3h0v.js +0 -1
- package/out/_next/static/chunks/0vf3facit951s.js +0 -1
- package/out/_next/static/chunks/0xyija62b6txc.js +0 -1
- package/out/_next/static/chunks/0zeb37703zcz3.js +0 -1
- package/out/_next/static/chunks/0zu5ato7-1-q9.js +0 -1
- package/out/_next/static/chunks/0zydv7y47dxgh.js +0 -1
- package/out/_next/static/chunks/103x4jwovb6d-.js +0 -1
- package/out/_next/static/chunks/107wfq84g9-kn.js +0 -1
- package/out/_next/static/chunks/10afagk8yn__n.js +0 -1
- package/out/_next/static/chunks/12ory_c78yl31.js +0 -1
- package/out/_next/static/chunks/133dqp8_7_yo6.js +0 -1
- package/out/_next/static/chunks/1365lgwdd4vuo.js +0 -1
- package/out/_next/static/chunks/146ou-ohb_qhs.js +0 -1
- package/out/_next/static/chunks/14orr68xgdykd.js +0 -1
- package/out/_next/static/chunks/15qfoj-vl9thu.js +0 -1
- package/out/_next/static/chunks/166yqx3_qvbpy.js +0 -1
- package/out/_next/static/chunks/16gwjao676ieb.js +0 -1
- package/out/_next/static/chunks/16rmmzhy2p7bw.js +0 -1
- package/out/_next/static/chunks/17_jjyx4jz9dd.js +0 -1
- package/out/_next/static/chunks/18h9ugdz6igdb.js +0 -1
- package/out/_next/static/chunks/19d8n5t7ka2fb.js +0 -1
- package/out/_next/static/chunks/1_rbzw3n4fk0g.js +0 -1
- package/out/_next/static/chunks/1aa9g197l4twm.js +0 -1
- package/out/_next/static/chunks/1bq0fcnt1wy86.js +0 -1
- package/out/_next/static/chunks/1c6mho7e0enta.js +0 -1
- package/out/_next/static/chunks/1dfaheve77dhi.js +0 -1
- package/out/_next/static/chunks/1dgf112ehnhm1.js +0 -1
- package/out/_next/static/chunks/1eirucr9s6-h5.js +0 -1
- package/out/_next/static/chunks/1fsof7un7igrn.js +0 -1
- package/out/_next/static/chunks/1gvu5a6ffbs7l.js +0 -1
- package/out/_next/static/chunks/1iel4pzhhh-c3.js +0 -1
- package/out/_next/static/chunks/1iojfx3-g4_n9.js +0 -1
- package/out/_next/static/chunks/1j4jt5q7px8sy.js +0 -1
- package/out/_next/static/chunks/1jjw9hxgi2vzi.js +0 -1
- package/out/_next/static/chunks/1k_8olnprvi8r.js +0 -1
- package/out/_next/static/chunks/1l0rt7d4m-xdk.js +0 -5
- package/out/_next/static/chunks/1s0dpdqy480hg.js +0 -1
- package/out/_next/static/chunks/1t-yolk97lmot.js +0 -12
- package/out/_next/static/chunks/1tbes2sv-qzcx.js +0 -1
- package/out/_next/static/chunks/1upy8a5cb75kt.js +0 -1
- package/out/_next/static/chunks/1xed71f608m4b.js +0 -1
- package/out/_next/static/chunks/1z790xxb46gxy.js +0 -1
- package/out/_next/static/chunks/219n3q-_eengm.js +0 -1
- package/out/_next/static/chunks/21wo3vdr_uby8.js +0 -1
- package/out/_next/static/chunks/25gep78-izw79.js +0 -4
- package/out/_next/static/chunks/26i7dn31afdtm.js +0 -1
- package/out/_next/static/chunks/27hbplu797elx.js +0 -1
- package/out/_next/static/chunks/2992eiy52nazj.js +0 -1
- package/out/_next/static/chunks/29_n5j-hg_gsa.js +0 -1
- package/out/_next/static/chunks/29bxq-67oazfg.js +0 -1
- package/out/_next/static/chunks/29ings58w7kp1.js +0 -1
- package/out/_next/static/chunks/2_n0cpkdsjzli.js +0 -1
- package/out/_next/static/chunks/2a3iy701j4r_y.js +0 -1
- package/out/_next/static/chunks/2al9dh3_1ixhv.js +0 -1
- package/out/_next/static/chunks/2awr1c_vfsutb.js +0 -1
- package/out/_next/static/chunks/2bxe3kjr17tdp.js +0 -1
- package/out/_next/static/chunks/2dvbzar93ooc-.js +0 -1
- package/out/_next/static/chunks/2e-vp0e11g9ew.js +0 -1
- package/out/_next/static/chunks/2exj9-0p6n9x-.js +0 -1
- package/out/_next/static/chunks/2gf8l6hbmt7v3.js +0 -1
- package/out/_next/static/chunks/2h9i_adbqaxs4.js +0 -1
- package/out/_next/static/chunks/2jio3sio-_43z.js +0 -1
- package/out/_next/static/chunks/2neieeo9g2u56.js +0 -1
- package/out/_next/static/chunks/2pb_uosb-aa8x.js +0 -1
- package/out/_next/static/chunks/2qu-gpm3ux1l6.js +0 -1
- package/out/_next/static/chunks/2rsi6v7qmqx2b.js +0 -1
- package/out/_next/static/chunks/2tdvuc-27khif.js +0 -1
- package/out/_next/static/chunks/2trolrgd7neax.js +0 -1
- package/out/_next/static/chunks/2uyuafmoe5wi0.js +0 -3
- package/out/_next/static/chunks/2w2e0pxgs-n8f.js +0 -1
- package/out/_next/static/chunks/2xujlsx3stqig.js +0 -1
- package/out/_next/static/chunks/30y71dxdpv52d.js +0 -1
- package/out/_next/static/chunks/32c-e_v8_2xkf.js +0 -1
- package/out/_next/static/chunks/32oj0iudhp8bm.js +0 -1
- package/out/_next/static/chunks/33p9du6y9eegg.js +0 -1
- package/out/_next/static/chunks/38om-j0h0rryk.js +0 -1
- package/out/_next/static/chunks/39cou9lia_g7l.js +0 -1
- package/out/_next/static/chunks/39pkya0_bvcaj.js +0 -1
- package/out/_next/static/chunks/39rhmj_32ujyj.js +0 -1
- package/out/_next/static/chunks/3_1zzmx92j9c0.js +0 -1
- package/out/_next/static/chunks/3_earszshuz4n.js +0 -1
- package/out/_next/static/chunks/3ap_uxc8lx7ni.js +0 -1
- package/out/_next/static/chunks/3b6na8zrex8jo.js +0 -1
- package/out/_next/static/chunks/3c0cxt72vilyz.js +0 -1
- package/out/_next/static/chunks/3g78x0pdaoi_4.js +0 -1
- package/out/_next/static/chunks/3gjvl1p-tugfe.js +0 -4
- package/out/_next/static/chunks/3i8iro1gas1vx.js +0 -1
- package/out/_next/static/chunks/3kpqfqr99vo7z.js +0 -1
- package/out/_next/static/chunks/3lladf_wemm-2.js +0 -1
- package/out/_next/static/chunks/3n62hbywoknop.js +0 -1
- package/out/_next/static/chunks/3o_dmzpahx-5g.js +0 -1
- package/out/_next/static/chunks/3r7v7un976sn7.js +0 -1
- package/out/_next/static/chunks/3rl_nhqwew40w.js +0 -1
- package/out/_next/static/chunks/3s7hqij6xp_4e.js +0 -1
- package/out/_next/static/chunks/3si3migsmvz9o.js +0 -1
- package/out/_next/static/chunks/3uarw1i1ij1er.js +0 -1
- package/out/_next/static/chunks/3un-w6wutw1qn.js +0 -1
- package/out/_next/static/chunks/3v8kgnjk27wbe.js +0 -1
- package/out/_next/static/chunks/3we1khqfexh3x.js +0 -1
- package/out/_next/static/chunks/3z35loj4i-id4.js +0 -1
- package/out/_next/static/chunks/42lqt7ig40wk5.js +0 -1
- package/out/_next/static/chunks/42s6ghsurq5q7.js +0 -1
- package/out/_next/static/chunks/42yctcfi2rfwr.js +0 -1
- package/out/_next/static/chunks/43_fau1gg69eo.js +0 -1
- package/out/_next/static/chunks/43ywrdzg_7af8.js +0 -31
- package/out/_next/static/chunks/44m1ijc5cv80x.js +0 -1
- package/out/_next/static/chunks/453_bg0lgesmp.js +0 -1
- package/out/_next/static/chunks/turbopack-1s36ieuku1ds3.js +0 -1
- package/out/_not-found/__next._head.txt +0 -6
- package/out/_not-found/__next._index.txt +0 -5
- package/out/_not-found/__next._not-found.txt +0 -5
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_buildManifest.js +0 -0
- /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_clientMiddlewareManifest.js +0 -0
- /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,62750,e=>{"use strict";var t=e.i(17884),o=e.i(75105);let r="cachedOperationValue",a="cachedExecutionId";class s extends t.FlowGraphBlock{constructor(e,t){super(t),this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",o.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,a,-1),o=e._getExecutionVariable(this,r,null);if(null!=o&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(o,e);else try{let t=this._doOperation(e);if(null==t)return void this.isValid.setValue(!1,e);e._setExecutionVariable(this,r,t),e._setExecutionVariable(this,a,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}}e.s(["FlowGraphCachedOperationBlock",0,s])},8871,e=>{"use strict";var t=e.i(62750);class o extends t.FlowGraphCachedOperationBlock{constructor(e,t,o,r,a){super(t,a),this._operation=o,this._className=r,this.a=this.registerDataInput("a",e)}_doOperation(e){return this._operation(this.a.getValue(e))}getClassName(){return this._className}}e.s(["FlowGraphUnaryOperationBlock",0,o])},72192,e=>{"use strict";var t=e.i(62750);class o extends t.FlowGraphCachedOperationBlock{constructor(e,t,o,r,a,s){super(o,s),this._operation=r,this._className=a,this.a=this.registerDataInput("a",e),this.b=this.registerDataInput("b",t)}_doOperation(e){let t=this.a.getValue(e),o=this.b.getValue(e);return this._operation(t,o)}getClassName(){return this._className}}e.s(["FlowGraphBinaryOperationBlock",0,o])},57726,e=>{"use strict";var t=e.i(17884),o=e.i(75105),r=e.i(72192),a=e.i(8871),s=e.i(69400),i=e.i(79105),l=e.i(63235),c=e.i(44520);let n="cachedOperationAxis",h="cachedOperationAngle",p="cachedExecutionId";class u extends a.FlowGraphUnaryOperationBlock{constructor(e){super(o.RichTypeAny,o.RichTypeNumber,e=>this._polymorphicLength(e),"FlowGraphLengthBlock",e)}_polymorphicLength(e){switch((0,i._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return e.length();default:throw Error(`Cannot compute length of value ${e}`)}}}class w extends a.FlowGraphUnaryOperationBlock{constructor(e){super(o.RichTypeAny,o.RichTypeAny,e=>this._polymorphicNormalize(e),"FlowGraphNormalizeBlock",e)}_polymorphicNormalize(e){let t;switch((0,i._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return t=e.normalizeToNew(),this.config?.nanOnZeroLength&&0===e.length()&&t.setAll(NaN),t;default:throw Error(`Cannot normalize value ${e}`)}}}class B extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeAny,o.RichTypeAny,o.RichTypeNumber,(e,t)=>this._polymorphicDot(e,t),"FlowGraphDotBlock",e)}_polymorphicDot(e,t){switch((0,i._GetClassNameOf)(e)){case"Vector2":case"Vector3":case"Vector4":case"Quaternion":return e.dot(t);default:throw Error(`Cannot get dot product of ${e} and ${t}`)}}}class F extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeVector3,o.RichTypeVector3,o.RichTypeVector3,(e,t)=>s.Vector3.Cross(e,t),"FlowGraphCrossBlock",e)}}class y extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeVector2,o.RichTypeNumber,o.RichTypeVector2,(e,t)=>e.rotate(t),"FlowGraphRotate2DBlock",e)}}class G extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeVector3,o.RichTypeQuaternion,o.RichTypeVector3,(e,t)=>e.applyRotationQuaternion(t),"FlowGraphRotate3DBlock",e)}}function g(e,t){switch((0,i._GetClassNameOf)(e)){case"Vector2":case"Vector3":return t.transformVector(e);case"Vector4":return new s.Vector4(e.x*t.m[0]+e.y*t.m[1]+e.z*t.m[2]+e.w*t.m[3],e.x*t.m[4]+e.y*t.m[5]+e.z*t.m[6]+e.w*t.m[7],e.x*t.m[8]+e.y*t.m[9]+e.z*t.m[10]+e.w*t.m[11],e.x*t.m[12]+e.y*t.m[13]+e.z*t.m[14]+e.w*t.m[15]);default:throw Error(`Cannot transform value ${e}`)}}class m extends r.FlowGraphBinaryOperationBlock{constructor(e){const t=e?.vectorType||"Vector3",r="Vector2"===t?"Matrix2D":"Vector3"===t?"Matrix3D":"Matrix";super((0,o.getRichTypeByFlowGraphType)(t),(0,o.getRichTypeByFlowGraphType)(r),(0,o.getRichTypeByFlowGraphType)(t),g,"FlowGraphTransformVectorBlock",e)}}class V extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeVector3,o.RichTypeMatrix,o.RichTypeVector3,(e,t)=>s.Vector3.TransformCoordinates(e,t),"FlowGraphTransformCoordinatesBlock",e)}}class k extends a.FlowGraphUnaryOperationBlock{constructor(e){super(o.RichTypeQuaternion,o.RichTypeQuaternion,e=>e.conjugate(),"FlowGraphConjugateBlock",e)}}class R extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeQuaternion,o.RichTypeQuaternion,o.RichTypeNumber,(e,t)=>2*Math.acos((0,l.Clamp)(e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w,-1,1)),"FlowGraphAngleBetweenBlock",e)}}class d extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeVector3,o.RichTypeNumber,o.RichTypeQuaternion,(e,t)=>s.Quaternion.RotationAxis(e,t),"FlowGraphQuaternionFromAxisAngleBlock",e)}}class x extends t.FlowGraphBlock{constructor(e){super(e),this.a=this.registerDataInput("a",o.RichTypeQuaternion),this.axis=this.registerDataOutput("axis",o.RichTypeVector3),this.angle=this.registerDataOutput("angle",o.RichTypeNumber),this.isValid=this.registerDataOutput("isValid",o.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,p,-1),o=e._getExecutionVariable(this,n,null),r=e._getExecutionVariable(this,h,null);if(null!=o&&null!=r&&t===e.executionId)this.axis.setValue(o,e),this.angle.setValue(r,e);else try{let{axis:t,angle:o}=this.a.getValue(e).toAxisAngle();e._setExecutionVariable(this,n,t),e._setExecutionVariable(this,h,o),e._setExecutionVariable(this,p,e.executionId),this.axis.setValue(t,e),this.angle.setValue(o,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}getClassName(){return"FlowGraphAxisAngleFromQuaternionBlock"}}class T extends r.FlowGraphBinaryOperationBlock{constructor(e){super(o.RichTypeVector3,o.RichTypeVector3,o.RichTypeQuaternion,(e,t)=>{let o;return function(e,t,o){let r=s.Vector3.Cross(e,t),a=Math.acos((0,l.Clamp)(e.x*t.x+e.y*t.y+e.z*t.z,-1,1));s.Quaternion.RotationAxisToRef(r,a,o)}(e,t,o=new s.Quaternion),o},"FlowGraphQuaternionFromDirectionsBlock",e)}}let C=!1;function O(){C||(C=!0,(0,c.RegisterClass)("FlowGraphLengthBlock",u),(0,c.RegisterClass)("FlowGraphNormalizeBlock",w),(0,c.RegisterClass)("FlowGraphDotBlock",B),(0,c.RegisterClass)("FlowGraphCrossBlock",F),(0,c.RegisterClass)("FlowGraphRotate2DBlock",y),(0,c.RegisterClass)("FlowGraphRotate3DBlock",G),(0,c.RegisterClass)("FlowGraphTransformVectorBlock",m),(0,c.RegisterClass)("FlowGraphTransformCoordinatesBlock",V),(0,c.RegisterClass)("FlowGraphConjugateBlock",k),(0,c.RegisterClass)("FlowGraphAngleBetweenBlock",R),(0,c.RegisterClass)("FlowGraphQuaternionFromAxisAngleBlock",d),(0,c.RegisterClass)("FlowGraphAxisAngleFromQuaternionBlock",x))}e.s(["FlowGraphAngleBetweenBlock",0,R,"FlowGraphAxisAngleFromQuaternionBlock",0,x,"FlowGraphConjugateBlock",0,k,"FlowGraphCrossBlock",0,F,"FlowGraphDotBlock",0,B,"FlowGraphLengthBlock",0,u,"FlowGraphNormalizeBlock",0,w,"FlowGraphQuaternionFromAxisAngleBlock",0,d,"FlowGraphQuaternionFromDirectionsBlock",0,T,"FlowGraphRotate2DBlock",0,y,"FlowGraphRotate3DBlock",0,G,"FlowGraphTransformBlock",0,m,"FlowGraphTransformCoordinatesBlock",0,V,"RegisterFlowGraphVectorMathBlocks",0,O],94940),O(),e.s([],32063),e.i(32063),e.i(94940),e.s(["FlowGraphAngleBetweenBlock",0,R,"FlowGraphAxisAngleFromQuaternionBlock",0,x,"FlowGraphConjugateBlock",0,k,"FlowGraphCrossBlock",0,F,"FlowGraphDotBlock",0,B,"FlowGraphLengthBlock",0,u,"FlowGraphNormalizeBlock",0,w,"FlowGraphQuaternionFromAxisAngleBlock",0,d,"FlowGraphQuaternionFromDirectionsBlock",0,T,"FlowGraphRotate2DBlock",0,y,"FlowGraphRotate3DBlock",0,G,"FlowGraphTransformBlock",0,m,"FlowGraphTransformCoordinatesBlock",0,V],57726)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62750,e=>{"use strict";var t=e.i(17884),i=e.i(75105);let s="cachedOperationValue",a="cachedExecutionId";class l extends t.FlowGraphBlock{constructor(e,t){super(t),this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,a,-1),i=e._getExecutionVariable(this,s,null);if(null!=i&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(i,e);else try{let t=this._doOperation(e);if(null==t)return void this.isValid.setValue(!1,e);e._setExecutionVariable(this,s,t),e._setExecutionVariable(this,a,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}}e.s(["FlowGraphCachedOperationBlock",0,l])},70095,e=>{"use strict";var t=e.i(75105),i=e.i(62750),s=e.i(44520);class a extends i.FlowGraphCachedOperationBlock{constructor(e){super(t.RichTypeBoolean,e),this.sound=this.registerDataInput("sound",t.RichTypeAny)}_doOperation(e){let t=this.sound.getValue(e);if(t)return 3===t.state||2===t.state}getClassName(){return"FlowGraphIsSoundPlayingBlock"}}let l=!1;function o(){l||(l=!0,(0,s.RegisterClass)("FlowGraphIsSoundPlayingBlock",a))}e.s(["FlowGraphIsSoundPlayingBlock",0,a,"RegisterFlowGraphIsSoundPlayingBlock",0,o],692),o(),e.s([],86342),e.i(86342),e.i(692),e.s(["FlowGraphIsSoundPlayingBlock",0,a],70095)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57660,e=>{"use strict";var t=e.i(96042);class r{static GetPlanes(e){let i=[];for(let e=0;e<6;e++)i.push(new t.Plane(0,0,0,0));return r.GetPlanesToRef(e,i),i}static GetNearPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[2],t.normal.y=r[7]+r[6],t.normal.z=r[11]+r[10],t.d=r[15]+r[14],t.normalize()}static GetFarPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[2],t.normal.y=r[7]-r[6],t.normal.z=r[11]-r[10],t.d=r[15]-r[14],t.normalize()}static GetLeftPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[0],t.normal.y=r[7]+r[4],t.normal.z=r[11]+r[8],t.d=r[15]+r[12],t.normalize()}static GetRightPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[0],t.normal.y=r[7]-r[4],t.normal.z=r[11]-r[8],t.d=r[15]-r[12],t.normalize()}static GetTopPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[1],t.normal.y=r[7]-r[5],t.normal.z=r[11]-r[9],t.d=r[15]-r[13],t.normalize()}static GetBottomPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[1],t.normal.y=r[7]+r[5],t.normal.z=r[11]+r[9],t.d=r[15]+r[13],t.normalize()}static GetPlanesToRef(e,t){r.GetNearPlaneToRef(e,t[0]),r.GetFarPlaneToRef(e,t[1]),r.GetLeftPlaneToRef(e,t[2]),r.GetRightPlaneToRef(e,t[3]),r.GetTopPlaneToRef(e,t[4]),r.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let r=0;r<6;r++)if(0>t[r].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,r])},92247,e=>{"use strict";var t=e.i(69400),r=e.i(41041);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let s;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(r.VertexBuffer.NormalKind))return null;let a=this.pickedMesh.getIndices();a?.length===0&&(a=null);let n=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],l=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],n):n.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),h=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],l):l.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);i=i.scale(this.bu),h=h.scale(this.bv),c=c.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+h.x+c.x,i.y+h.y+c.y,i.z+h.z+c.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],n):n.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),h=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],l):l.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(h),d=c.subtract(h);s=t.Vector3.Cross(u,d)}let h=(e,r)=>{if(-1!==this.thinInstanceIndex){let i=e._thinInstanceDataStorage.matrixData,s=this.thinInstanceIndex<<4;if(i&&i.length>s){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(i,s,e),t.Vector3.TransformNormalToRef(r,e,r)}}let i=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(i),(i=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),i.invert(),i.transposeToRef(t.TmpVectors.Matrix[1]),i=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(r,i,r)};if(e&&h(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||h(this.pickedMesh,r),t.Vector3.Dot(r,this.ray.direction)>0&&s.negateInPlace()}return s.normalize(),s}getTextureCoordinates(e=r.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let i=this.pickedMesh.getIndices();if(!i)return null;let s=this.pickedMesh.getVerticesData(e);if(!s)return null;let a=t.Vector2.FromArray(s,2*i[3*this.faceId]),n=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return a=a.scale(this.bu),n=n.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(a.x+n.x+o.x,a.y+n.y+o.y)}}])},84964,e=>{"use strict";var t=e.i(69400);class r{}r.POINTERDOWN=1,r.POINTERUP=2,r.POINTERMOVE=4,r.POINTERWHEEL=8,r.POINTERPICK=16,r.POINTERTAP=32,r.POINTERDOUBLETAP=64;class i{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,r,"PointerInfo",0,class extends i{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,r,i=null){super(e,t),this._pickInfo=r,this._inputManager=i}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends i{constructor(e,r,i,s){super(e,r),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(i,s)}}])},71092,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,r,"KeyboardInfoPre",0,class extends r{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},4021,e=>{"use strict";var t,r;(r=t||(t={}))[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp";class i{}i.DOM_DELTA_PIXEL=0,i.DOM_DELTA_LINE=1,i.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,i])},3524,69680,e=>{"use strict";var t=e.i(41041),r=e.i(3864);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new r.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let r=0;r<e.length;r++){let i=e[r];i&&t.push(i)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let r=this._scene.activeCamera;return!!r&&!!(t=t||this._getActivePostProcesses(r._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(r,e,null!=t),!0)}directRender(e,t=null,r=!1,i=0,s=0,a=!1,n=e.length){let o=this._scene.getEngine();for(let l=0;l<n;l++){l<e.length-1?e[l+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):a||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[l].name} output`));let n=e[l],h=n.apply();h&&(n.onBeforeRenderObservable.notifyObservers(h),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,h),o.drawElementsType(0,0,6),n.onAfterRenderObservable.notifyObservers(h))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let a=this._scene.activeCamera;if(!a||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(a._postProcesses)).length||!this._scene.postProcessesEnabled))return;let n=this._scene.getEngine();for(let o=0,l=i.length;o<l;o++){let h=i[o];if(o<l-1?h._outputTexture=i[o+1].activate(a,t?.texture):(t?(n.bindFramebuffer(t,r,void 0,void 0,s),h._outputTexture=t):(n.restoreDefaultFramebuffer(),h._outputTexture=null),n._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let c=h.apply();c&&(h.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),n.bindBuffers(this._vertexBuffers,this._indexBuffer,c),n.drawElementsType(0,0,6),h.onAfterRenderObservable.notifyObservers(c))}n.setDepthBuffer(!0),n.setDepthWrite(!0),n.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],3524);var i=e.i(32451),s=e.i(69400);class a{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=a.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=a.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=a.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,a=null){this.index=e,this._opaqueSubMeshes=new i.SmartArray(256),this._transparentSubMeshes=new i.SmartArray(256),this._alphaTestSubMeshes=new i.SmartArray(256),this._depthOnlySubMeshes=new i.SmartArray(256),this._particleSystems=new i.SmartArray(256),this._spriteManagers=new i.SmartArray(256),this._empty=!0,this._edgesRenderers=new i.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=r,this.alphaTestSortCompareFn=s,this.transparentSortCompareFn=a}render(e,t,r,i,s=!0,a=!0,n=!0,o=!0,l){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let h=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(h.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),h.setColorWrite(!0)),a&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),n&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let c=h.getStencilBuffer();if(h.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(l||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(h.setStencilBuffer(c),l)l(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);h.setAlphaMode(0)}if(h.setStencilBuffer(!1),a&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();h.setAlphaMode(0)}h.setStencilBuffer(c)}_renderOpaqueSorted(e){a._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){a._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){a._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,n){let o,l=0,h=r?r.globalPosition:a._ZeroVector;if(i)for(;l<e.length;l++)(o=e.data[l])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,h);let c=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&c.sort(t);let u=c[0].getMesh().getScene();for(l=0;l<c.length;l++)if(o=c[l],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!n){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),o.render(!1),t.setColorWrite(!0)}}o.render(i)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:a.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let r=e.getMesh(),i=t.getMesh();return r.material&&i.material?r.material.uniqueId-i.material.uniqueId:r.uniqueId-i.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),void 0===r&&(r=e.getMaterial()),null!=r&&(r.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):r.needAlphaTestingForMesh(t)?(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let r=0;r<this._particleSystems.length;r++){let i=this._particleSystems.data[r];if(0===(t&&t.layerMask&i.layerMask))continue;let s=i.emitter;s.position&&e&&-1===e.indexOf(s)||this._scene._activeParticles.addCount(i.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let r=this._spriteManagers.data[t];0!==(e&&e.layerMask&r.layerMask)&&r.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}a._ZeroVector=s.Vector3.Zero();class n{}class o{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new n,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,r,i,s=!0,a=!0,n=!0,l=!0,h){let c=this._renderingGroupInfo;if(c.scene=this._scene,c.camera=this._scene.activeCamera,c.renderingManager=this,this._scene.spriteManagers&&i)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=o.MIN_RENDERINGGROUPS;u<o.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===o.MIN_RENDERINGGROUPS;let d=this._renderingGroups[u];if(!d||d._empty)continue;let p=1<<u;if(c.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(c,p),o.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let o of(d.render(e,i,r,t,s,a,n,l,h),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(c,p)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new a(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,r))}setRenderingOrder(e,t=null,r=null,i=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=r,this._customTransparentSortCompareFn[e]=i,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,r=!0,i=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:r,stencil:i}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}o.MAX_RENDERINGGROUPS=4,o.MIN_RENDERINGGROUPS=0,o.AUTOCLEAR=!0,e.s(["RenderingManager",0,o],69680)},372,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},20363,38329,e=>{"use strict";let t,r,i,s,a,n,o,l,h,c,u,d,p,f,_,m,g,x,S,T,R,b,v,y,M,P,I,C,w,A,E,O,F,B,D,V,L,G,N,U;var z,k=e.i(57575),W=e.i(9855),j=e.i(3864),q=e.i(69400),Y=e.i(74868),K=e.i(44520),H=e.i(85050),X=e.i(44816),$=e.i(78755),Z=e.i(96042),J=e.i(1229);function Q(e,t,r=!1){let i=t.width,s=t.height;if(e instanceof Float32Array){let t=e.byteLength/e.BYTES_PER_ELEMENT,r=new Uint8Array(t);for(;--t>=0;){let i=e[t];i<0?i=0:i>1&&(i=1),r[t]=255*i}e=r}let a=document.createElement("canvas");a.width=i,a.height=s;let n=a.getContext("2d");if(!n)return null;let o=n.createImageData(i,s);if(o.data.set(e),n.putImageData(o,0,0),r){let e=document.createElement("canvas");e.width=i,e.height=s;let t=e.getContext("2d");return t?(t.translate(0,s),t.scale(1,-1),t.drawImage(a,0,0),e.toDataURL("image/png")):null}return a.toDataURL("image/png")}function ee(e,t=0,r=0){let i=e.getInternalTexture();if(!i)return null;let s=e._readPixelsSync(t,r);return s?Q(s,e.getSize(),i.invertY):null}async function et(e,t=0,r=0){let i=e.getInternalTexture();if(!i)return null;let s=await e.readPixels(t,r);return s?Q(s,e.getSize(),i.invertY):null}e.s(["GenerateBase64StringFromTexture",0,ee,"GenerateBase64StringFromTextureAsync",0,et],38329);var er=e.i(372),ei=e.i(2060);let es=(f=Y.BaseTexture,_=[],m=[],g=[],x=[],S=[],T=[],R=[],b=[],v=[],y=[],M=[],P=[],I=[],C=[],w=[],A=[],E=[],O=[],F=[],B=[],D=[],V=[],L=[],G=[],N=[],z=class extends f{static _CreateVideoTexture(e,t,r,i=!1,s=!1,a=z.TRILINEAR_SAMPLINGMODE,n={},o,l=5){throw(0,H._WarnImport)("VideoTexture")}get noMipmap(){return this._noMipmap}get mimeType(){return this._mimeType}set isBlocking(e){this._isBlocking=e}get isBlocking(){return this._isBlocking}get invertY(){return this._invertY}constructor(e,t,r,i,s=z.TRILINEAR_SAMPLINGMODE,a=null,n=null,o=null,l=!1,h,c,u,d,p){let f;super(t),this.url=((0,k.__runInitializers)(this,_),(0,k.__runInitializers)(this,m,null)),this.uOffset=((0,k.__runInitializers)(this,g),(0,k.__runInitializers)(this,x,0)),this.vOffset=((0,k.__runInitializers)(this,S),(0,k.__runInitializers)(this,T,0)),this.uScale=((0,k.__runInitializers)(this,R),(0,k.__runInitializers)(this,b,1)),this.vScale=((0,k.__runInitializers)(this,v),(0,k.__runInitializers)(this,y,1)),this.uAng=((0,k.__runInitializers)(this,M),(0,k.__runInitializers)(this,P,0)),this.vAng=((0,k.__runInitializers)(this,I),(0,k.__runInitializers)(this,C,0)),this.wAng=((0,k.__runInitializers)(this,w),(0,k.__runInitializers)(this,A,0)),this.uRotationCenter=((0,k.__runInitializers)(this,E),(0,k.__runInitializers)(this,O,.5)),this.vRotationCenter=((0,k.__runInitializers)(this,F),(0,k.__runInitializers)(this,B,.5)),this.wRotationCenter=((0,k.__runInitializers)(this,D),(0,k.__runInitializers)(this,V,.5)),this.homogeneousRotationInUVTransform=((0,k.__runInitializers)(this,L),(0,k.__runInitializers)(this,G,!1)),this.inspectableCustomProperties=((0,k.__runInitializers)(this,N),null),this._noMipmap=!1,this._invertY=!1,this._rowGenerationMatrix=null,this._cachedTextureMatrix=null,this._projectionModeMatrix=null,this._t0=null,this._t1=null,this._t2=null,this._cachedUOffset=-1,this._cachedVOffset=-1,this._cachedUScale=0,this._cachedVScale=0,this._cachedUAng=-1,this._cachedVAng=-1,this._cachedWAng=-1,this._cachedReflectionProjectionMatrixId=-1,this._cachedURotationCenter=-1,this._cachedVRotationCenter=-1,this._cachedWRotationCenter=-1,this._cachedHomogeneousRotationInUVTransform=!1,this._cachedIdentity3x2=!0,this._cachedReflectionTextureMatrix=null,this._cachedReflectionUOffset=-1,this._cachedReflectionVOffset=-1,this._cachedReflectionUScale=0,this._cachedReflectionVScale=0,this._cachedReflectionCoordinatesMode=-1,this._buffer=null,this._deleteBuffer=!1,this._format=null,this._delayedOnLoad=null,this._delayedOnError=null,this.onLoadObservable=new j.Observable,this._isBlocking=!0,this.name=e||"",this.url=e;let U=!1,W=null,q=!0;"object"==typeof r&&null!==r?(f=r.noMipmap??!1,i=r.invertY??!er.useOpenGLOrientationForUV,s=r.samplingMode??z.TRILINEAR_SAMPLINGMODE,a=r.onLoad??null,n=r.onError??null,o=r.buffer??null,l=r.deleteBuffer??!1,h=r.format,c=r.mimeType,u=r.loaderOptions,d=r.creationFlags,U=r.useSRGBBuffer??!1,W=r.internalTexture??null,q=r.gammaSpace??q,p=r.forcedExtension??p):f=!!r,this._gammaSpace=q,this._noMipmap=f,this._invertY=void 0===i?!er.useOpenGLOrientationForUV:i,this._initialSamplingMode=s,this._buffer=o,this._deleteBuffer=l,this._mimeType=c,this._loaderOptions=u,this._creationFlags=d,this._useSRGBBuffer=U,this._forcedExtension=p,void 0!==h&&(this._format=h);const Y=this.getScene(),K=this._getEngine();if(!K)return;K.onBeforeTextureInitObservable.notifyObservers(this);const H=()=>{this._texture&&(this._texture._invertVScale&&(this.vScale*=-1,this.vOffset+=1),null!==this._texture._cachedWrapU&&(this.wrapU=this._texture._cachedWrapU,this._texture._cachedWrapU=null),null!==this._texture._cachedWrapV&&(this.wrapV=this._texture._cachedWrapV,this._texture._cachedWrapV=null),null!==this._texture._cachedWrapR&&(this.wrapR=this._texture._cachedWrapR,this._texture._cachedWrapR=null)),this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),a&&a(),!this.isBlocking&&Y&&Y.resetCachedMaterial()},$=(e,t)=>{this._loadingError=!0,this._errorObject={message:e,exception:t},n&&n(e,t),z.OnTextureLoadErrorObservable.notifyObservers(this)};if(!this.url&&!W){this._delayedOnLoad=H,this._delayedOnError=$;return}if(this._texture=W??this._getFromCache(this.url,f,s,this._invertY,U,this.isCube),this._texture)if(this._texture.isReady)X.TimingTools.SetImmediate(()=>H());else{const e=this._texture.onLoadedObservable.add(H);this._texture.onErrorObservable.add(t=>{$(t.message,t.exception),this._texture?.onLoadedObservable.remove(e)})}else if(Y&&Y.useDelayedTextureLoading)this.delayLoadState=4,this._delayedOnLoad=H,this._delayedOnError=$;else{try{this._texture=K.createTexture(this.url,f,this._invertY,Y,s,H,$,this._buffer,void 0,this._format,this._forcedExtension,c,u,d,U)}catch(e){throw $("error loading",e),e}l&&(this._buffer=null)}}updateURL(e,t=null,r,i){this.url&&(this.releaseInternalTexture(),this.getScene().markAllMaterialsAsDirty(1,e=>e.hasTexture(this))),(!this.name||this.name.startsWith("data:"))&&(this.name=e),this.url=e,this._buffer=t,this._forcedExtension=i,this.delayLoadState=4;let s=this._delayedOnLoad,a=()=>{s?s():this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),r&&r()};this._delayedOnLoad=a,this.delayLoad()}delayLoad(){if(4!==this.delayLoadState)return;let e=this.getScene();if(!e)return;let t=this.url;!t&&(this.name.indexOf("://")>0||this.name.startsWith("data:"))&&(t=this.name),this.delayLoadState=1,this._texture=this._getFromCache(t,this._noMipmap,this.samplingMode,this._invertY,this._useSRGBBuffer,this.isCube),this._texture?this._delayedOnLoad&&(this._texture.isReady?X.TimingTools.SetImmediate(this._delayedOnLoad):this._texture.onLoadedObservable.add(this._delayedOnLoad)):(this._texture=e.getEngine().createTexture(t,this._noMipmap,this._invertY,e,this.samplingMode,this._delayedOnLoad,this._delayedOnError,this._buffer,null,this._format,this._forcedExtension,this._mimeType,this._loaderOptions,this._creationFlags,this._useSRGBBuffer),this._deleteBuffer&&(this._buffer=null)),this._delayedOnLoad=null,this._delayedOnError=null}_prepareRowForTextureGeneration(e,t,r,i){e*=this._cachedUScale,t*=this._cachedVScale,e-=this.uRotationCenter*this._cachedUScale,t-=this.vRotationCenter*this._cachedVScale,r-=this.wRotationCenter,q.Vector3.TransformCoordinatesFromFloatsToRef(e,t,r,this._rowGenerationMatrix,i),i.x+=this.uRotationCenter*this._cachedUScale+this._cachedUOffset,i.y+=this.vRotationCenter*this._cachedVScale+this._cachedVOffset,i.z+=this.wRotationCenter}getTextureMatrix(e=1){if(this.uOffset===this._cachedUOffset&&this.vOffset===this._cachedVOffset&&this.uScale*e===this._cachedUScale&&this.vScale===this._cachedVScale&&this.uAng===this._cachedUAng&&this.vAng===this._cachedVAng&&this.wAng===this._cachedWAng&&this.uRotationCenter===this._cachedURotationCenter&&this.vRotationCenter===this._cachedVRotationCenter&&this.wRotationCenter===this._cachedWRotationCenter&&this.homogeneousRotationInUVTransform===this._cachedHomogeneousRotationInUVTransform)return this._cachedTextureMatrix;this._cachedUOffset=this.uOffset,this._cachedVOffset=this.vOffset,this._cachedUScale=this.uScale*e,this._cachedVScale=this.vScale,this._cachedUAng=this.uAng,this._cachedVAng=this.vAng,this._cachedWAng=this.wAng,this._cachedURotationCenter=this.uRotationCenter,this._cachedVRotationCenter=this.vRotationCenter,this._cachedWRotationCenter=this.wRotationCenter,this._cachedHomogeneousRotationInUVTransform=this.homogeneousRotationInUVTransform,this._cachedTextureMatrix&&this._rowGenerationMatrix||(this._cachedTextureMatrix=q.Matrix.Zero(),this._rowGenerationMatrix=new q.Matrix,this._t0=q.Vector3.Zero(),this._t1=q.Vector3.Zero(),this._t2=q.Vector3.Zero()),q.Matrix.RotationYawPitchRollToRef(this.vAng,this.uAng,this.wAng,this._rowGenerationMatrix),this.homogeneousRotationInUVTransform?(q.Matrix.TranslationToRef(-this._cachedURotationCenter,-this._cachedVRotationCenter,-this._cachedWRotationCenter,q.TmpVectors.Matrix[0]),q.Matrix.TranslationToRef(this._cachedURotationCenter,this._cachedVRotationCenter,this._cachedWRotationCenter,q.TmpVectors.Matrix[1]),q.Matrix.ScalingToRef(this._cachedUScale,this._cachedVScale,0,q.TmpVectors.Matrix[2]),q.Matrix.TranslationToRef(this._cachedUOffset,this._cachedVOffset,0,q.TmpVectors.Matrix[3]),q.TmpVectors.Matrix[0].multiplyToRef(this._rowGenerationMatrix,this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(q.TmpVectors.Matrix[1],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(q.TmpVectors.Matrix[2],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(q.TmpVectors.Matrix[3],this._cachedTextureMatrix),this._cachedTextureMatrix.setRowFromFloats(2,this._cachedTextureMatrix.m[12],this._cachedTextureMatrix.m[13],this._cachedTextureMatrix.m[14],1)):(this._prepareRowForTextureGeneration(0,0,0,this._t0),this._prepareRowForTextureGeneration(1,0,0,this._t1),this._prepareRowForTextureGeneration(0,1,0,this._t2),this._t1.subtractInPlace(this._t0),this._t2.subtractInPlace(this._t0),q.Matrix.FromValuesToRef(this._t1.x,this._t1.y,this._t1.z,0,this._t2.x,this._t2.y,this._t2.z,0,this._t0.x,this._t0.y,this._t0.z,0,0,0,0,1,this._cachedTextureMatrix));let t=this.getScene();if(!t)return this._cachedTextureMatrix;let r=this._cachedIdentity3x2;return this._cachedIdentity3x2=this._cachedTextureMatrix.isIdentityAs3x2(),this.optimizeUVAllocation&&r!==this._cachedIdentity3x2&&t.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedTextureMatrix}getReflectionTextureMatrix(){let e=this.getScene();if(!e)return this._cachedReflectionTextureMatrix;if(this.uOffset===this._cachedReflectionUOffset&&this.vOffset===this._cachedReflectionVOffset&&this.uScale===this._cachedReflectionUScale&&this.vScale===this._cachedReflectionVScale&&this.coordinatesMode===this._cachedReflectionCoordinatesMode){if(this.coordinatesMode!==z.PROJECTION_MODE)return this._cachedReflectionTextureMatrix;else if(this._cachedReflectionProjectionMatrixId===e.getProjectionMatrix().updateFlag)return this._cachedReflectionTextureMatrix}this._cachedReflectionTextureMatrix||(this._cachedReflectionTextureMatrix=q.Matrix.Zero()),this._projectionModeMatrix||(this._projectionModeMatrix=q.Matrix.Zero());let t=this._cachedReflectionCoordinatesMode!==this.coordinatesMode;switch(this._cachedReflectionUOffset=this.uOffset,this._cachedReflectionVOffset=this.vOffset,this._cachedReflectionUScale=this.uScale,this._cachedReflectionVScale=this.vScale,this._cachedReflectionCoordinatesMode=this.coordinatesMode,this.coordinatesMode){case z.PLANAR_MODE:q.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix),this._cachedReflectionTextureMatrix[0]=this.uScale,this._cachedReflectionTextureMatrix[5]=this.vScale,this._cachedReflectionTextureMatrix[12]=this.uOffset,this._cachedReflectionTextureMatrix[13]=this.vOffset;break;case z.PROJECTION_MODE:{q.Matrix.FromValuesToRef(.5,0,0,0,0,-.5,0,0,0,0,0,0,.5,.5,1,1,this._projectionModeMatrix);let t=e.getProjectionMatrix();this._cachedReflectionProjectionMatrixId=t.updateFlag,t.multiplyToRef(this._projectionModeMatrix,this._cachedReflectionTextureMatrix);break}default:q.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix)}return t&&e.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedReflectionTextureMatrix}clone(){let e={noMipmap:this._noMipmap,invertY:this._invertY,samplingMode:this.samplingMode,onLoad:void 0,onError:void 0,buffer:this._texture?this._texture._buffer:void 0,deleteBuffer:this._deleteBuffer,format:this.textureFormat,mimeType:this.mimeType,loaderOptions:this._loaderOptions,creationFlags:this._creationFlags,useSRGBBuffer:this._useSRGBBuffer};return ei.SerializationHelper.Clone(()=>new z(this._texture?this._texture.url:null,this.getScene(),e),this)}serialize(){let e=this.name;!z.SerializeBuffers&&this.name.startsWith("data:")&&(this.name=""),this.name.startsWith("data:")&&this.url===this.name&&(this.url="");let t=super.serialize(z._SerializeInternalTextureUniqueId);if(!t)return null;if(z.SerializeBuffers||z.ForceSerializeBuffers)if("string"==typeof this._buffer&&this._buffer.startsWith("data:"))t.base64String=this._buffer,t.name=t.name.replace("data:","");else if(this.url&&this.url.startsWith("data:")&&this._buffer instanceof Uint8Array){let e=this.mimeType||"image/png";t.base64String=`data:${e};base64,${(0,J.EncodeArrayBufferToBase64)(this._buffer)}`}else(z.ForceSerializeBuffers||this.url&&this.url.startsWith("blob:")||this._forceSerialize)&&(t.base64String=!this._engine||this._engine._features.supportSyncTextureRead?ee(this):et(this));return t.invertY=this._invertY,t.samplingMode=this.samplingMode,t._creationFlags=this._creationFlags,t._useSRGBBuffer=this._useSRGBBuffer,z._SerializeInternalTextureUniqueId&&(t.internalTextureUniqueId=this._texture?.uniqueId),t.internalTextureLabel=this._texture?.label,t.noMipmap=this._noMipmap,this.name=e,t}getClassName(){return"Texture"}dispose(){super.dispose(),this.onLoadObservable.clear(),this._delayedOnLoad=null,this._delayedOnError=null,this._buffer=null}static Parse(e,t,r){let i;if(e.customType){let i=$.InstantiationTools.Instantiate(e.customType).Parse(e,t,r);return e.samplingMode&&i.updateSamplingMode&&i._samplingMode&&i._samplingMode!==e.samplingMode&&i.updateSamplingMode(e.samplingMode),i}if(e.isCube&&!e.isRenderTarget)return z._CubeTextureParser(e,t,r);let s=void 0!==e.internalTextureUniqueId;if(!e.name&&!e.isRenderTarget&&!s)return null;if(s){for(let r of t.getEngine().getLoadedTexturesCache())if(r.uniqueId===e.internalTextureUniqueId){i=r;break}}let a=t=>{if(t&&t._texture&&(t._texture._cachedWrapU=null,t._texture._cachedWrapV=null,t._texture._cachedWrapR=null),e.samplingMode){let r=e.samplingMode;t&&t.samplingMode!==r&&t.updateSamplingMode(r)}if(t&&e.animations)for(let r=0;r<e.animations.length;r++){let i=e.animations[r],s=(0,K.GetClass)("BABYLON.Animation");s&&t.animations.push(s.Parse(i))}t&&t._texture&&(s&&!i&&t._texture._setUniqueId(e.internalTextureUniqueId),t._texture.label=e.internalTextureLabel)};return ei.SerializationHelper.Parse(()=>{let s=!0;if(e.noMipmap&&(s=!1),e.mirrorPlane){let r=z._CreateMirror(e.name,e.renderTargetSize,t,s);return r._waitingRenderList=e.renderList,r.mirrorPlane=Z.Plane.FromArray(e.mirrorPlane),a(r),r}if(e.isRenderTarget&&!e.base64String){let r=null;if(e.isCube){if(t.reflectionProbes)for(let r=0;r<t.reflectionProbes.length;r++){let i=t.reflectionProbes[r];if(i.name===e.name)return i.cubeTexture}}else(r=z._CreateRenderTargetTexture(e.name,e.renderTargetSize,t,s,e._creationFlags??0))._waitingRenderList=e.renderList;return a(r),r}if(e.isVideo){let i=z._CreateVideoTexture(r+(e.url||e.name),r+(e.src||e.url),t,s,e.invertY,e.samplingMode,e.settings||{});return a(i),i}{let n;if("string"==typeof e.base64String&&e.base64String&&!i){let r={buffer:e.base64String,noMipmap:!s,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{a(n)}},i=e.base64String,o=i.startsWith("data:")?i.substring(5):i;(n=z.CreateFromBase64String("",o,t,r)).name=e.name}else{let o;o=e.name&&(e.name.indexOf("://")>0||e.name.startsWith("data:"))?e.name:r+e.name,e.url&&(e.url.startsWith("data:")||z.UseSerializedUrlIfAny)&&(o=e.url);let l={noMipmap:!s,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{a(n)},internalTexture:i};n=new z(o,t,l)}return n}},e,t)}static CreateFromBase64String(e,t,r,i,s,a=z.TRILINEAR_SAMPLINGMODE,n=null,o=null,l=5,h,c){return new z("data:"+t,r,i,s,a,n,o,e,!1,l,void 0,void 0,h,c)}static LoadFromDataString(e,t,r,i=!1,s,a=!0,n=z.TRILINEAR_SAMPLINGMODE,o=null,l=null,h=5,c,u){return"data:"!==e.substring(0,5)&&(e="data:"+e),new z(e,r,s,a,n,o,l,t,i,h,void 0,void 0,c,u)}},U="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0,t=[(0,W.serialize)()],r=[(0,W.serialize)()],i=[(0,W.serialize)()],s=[(0,W.serialize)()],a=[(0,W.serialize)()],n=[(0,W.serialize)()],o=[(0,W.serialize)()],l=[(0,W.serialize)()],h=[(0,W.serialize)()],c=[(0,W.serialize)()],u=[(0,W.serialize)()],d=[(0,W.serialize)()],p=[(0,W.serialize)()],(0,k.__esDecorate)(z,null,p,{kind:"getter",name:"isBlocking",static:!1,private:!1,access:{has:e=>"isBlocking"in e,get:e=>e.isBlocking},metadata:U},null,_),(0,k.__esDecorate)(null,null,t,{kind:"field",name:"url",static:!1,private:!1,access:{has:e=>"url"in e,get:e=>e.url,set:(e,t)=>{e.url=t}},metadata:U},m,g),(0,k.__esDecorate)(null,null,r,{kind:"field",name:"uOffset",static:!1,private:!1,access:{has:e=>"uOffset"in e,get:e=>e.uOffset,set:(e,t)=>{e.uOffset=t}},metadata:U},x,S),(0,k.__esDecorate)(null,null,i,{kind:"field",name:"vOffset",static:!1,private:!1,access:{has:e=>"vOffset"in e,get:e=>e.vOffset,set:(e,t)=>{e.vOffset=t}},metadata:U},T,R),(0,k.__esDecorate)(null,null,s,{kind:"field",name:"uScale",static:!1,private:!1,access:{has:e=>"uScale"in e,get:e=>e.uScale,set:(e,t)=>{e.uScale=t}},metadata:U},b,v),(0,k.__esDecorate)(null,null,a,{kind:"field",name:"vScale",static:!1,private:!1,access:{has:e=>"vScale"in e,get:e=>e.vScale,set:(e,t)=>{e.vScale=t}},metadata:U},y,M),(0,k.__esDecorate)(null,null,n,{kind:"field",name:"uAng",static:!1,private:!1,access:{has:e=>"uAng"in e,get:e=>e.uAng,set:(e,t)=>{e.uAng=t}},metadata:U},P,I),(0,k.__esDecorate)(null,null,o,{kind:"field",name:"vAng",static:!1,private:!1,access:{has:e=>"vAng"in e,get:e=>e.vAng,set:(e,t)=>{e.vAng=t}},metadata:U},C,w),(0,k.__esDecorate)(null,null,l,{kind:"field",name:"wAng",static:!1,private:!1,access:{has:e=>"wAng"in e,get:e=>e.wAng,set:(e,t)=>{e.wAng=t}},metadata:U},A,E),(0,k.__esDecorate)(null,null,h,{kind:"field",name:"uRotationCenter",static:!1,private:!1,access:{has:e=>"uRotationCenter"in e,get:e=>e.uRotationCenter,set:(e,t)=>{e.uRotationCenter=t}},metadata:U},O,F),(0,k.__esDecorate)(null,null,c,{kind:"field",name:"vRotationCenter",static:!1,private:!1,access:{has:e=>"vRotationCenter"in e,get:e=>e.vRotationCenter,set:(e,t)=>{e.vRotationCenter=t}},metadata:U},B,D),(0,k.__esDecorate)(null,null,u,{kind:"field",name:"wRotationCenter",static:!1,private:!1,access:{has:e=>"wRotationCenter"in e,get:e=>e.wRotationCenter,set:(e,t)=>{e.wRotationCenter=t}},metadata:U},V,L),(0,k.__esDecorate)(null,null,d,{kind:"field",name:"homogeneousRotationInUVTransform",static:!1,private:!1,access:{has:e=>"homogeneousRotationInUVTransform"in e,get:e=>e.homogeneousRotationInUVTransform,set:(e,t)=>{e.homogeneousRotationInUVTransform=t}},metadata:U},G,N),U&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:U}),z.SerializeBuffers=!0,z.ForceSerializeBuffers=!1,z.OnTextureLoadErrorObservable=new j.Observable,z._SerializeInternalTextureUniqueId=!1,z._CubeTextureParser=(e,t,r)=>{throw(0,H._WarnImport)("CubeTexture")},z._CreateMirror=(e,t,r,i)=>{throw(0,H._WarnImport)("MirrorTexture")},z._CreateRenderTargetTexture=(e,t,r,i,s)=>{throw(0,H._WarnImport)("RenderTargetTexture")},z.NEAREST_SAMPLINGMODE=1,z.NEAREST_NEAREST_MIPLINEAR=8,z.BILINEAR_SAMPLINGMODE=2,z.LINEAR_LINEAR_MIPNEAREST=11,z.TRILINEAR_SAMPLINGMODE=3,z.LINEAR_LINEAR_MIPLINEAR=3,z.NEAREST_NEAREST_MIPNEAREST=4,z.NEAREST_LINEAR_MIPNEAREST=5,z.NEAREST_LINEAR_MIPLINEAR=6,z.NEAREST_LINEAR=7,z.NEAREST_NEAREST=1,z.LINEAR_NEAREST_MIPNEAREST=9,z.LINEAR_NEAREST_MIPLINEAR=10,z.LINEAR_LINEAR=2,z.LINEAR_NEAREST=12,z.EXPLICIT_MODE=0,z.SPHERICAL_MODE=1,z.PLANAR_MODE=2,z.CUBIC_MODE=3,z.PROJECTION_MODE=4,z.SKYBOX_MODE=5,z.INVCUBIC_MODE=6,z.EQUIRECTANGULAR_MODE=7,z.FIXED_EQUIRECTANGULAR_MODE=8,z.FIXED_EQUIRECTANGULAR_MIRRORED_MODE=9,z.CLAMP_ADDRESSMODE=0,z.WRAP_ADDRESSMODE=1,z.MIRROR_ADDRESSMODE=2,z.UseSerializedUrlIfAny=!1,z),ea=!1;e.s(["RegisterTexture",0,function(){ea||(ea=!0,(0,K.RegisterClass)("BABYLON.Texture",es),ei.SerializationHelper._TextureParser=es.Parse)},"Texture",0,es],20363)},84684,e=>{"use strict";var t=e.i(69400),r=e.i(63235),i=e.i(88),s=e.i(84106),a=e.i(19919);class n{constructor(e,t,r,i){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=i}}class o{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let i=e.getSize().width,s=e._sphericalPolynomialTargetSize,a=s>0?this._NearestPow2Floor(s):0,n=!e.noMipmap&&e._texture?.generateMipMaps===!0,o=a>0&&a<i&&n,l=o?Math.max(0,Math.round(Math.log2(i/a))):0,h=o?Math.max(1,Math.floor(i/Math.pow(2,l))):i,c=e.readPixels(0,l,void 0,!1),u=e.readPixels(1,l,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,l,void 0,!1),r=e.readPixels(2,l,void 0,!1)):(t=e.readPixels(2,l,void 0,!1),r=e.readPixels(3,l,void 0,!1));let d=e.readPixels(4,l,void 0,!1),p=e.readPixels(5,l,void 0,!1),f=e.gammaSpace,_=a>0&&a<i&&!o;return new Promise(e=>{Promise.all([u,c,t,r,d,p]).then(([t,r,s,n,o,l])=>{let c=h;_&&(t=this._DownsampleFace(t,i,a,4),r=this._DownsampleFace(r,i,a,4),s=this._DownsampleFace(s,i,a,4),n=this._DownsampleFace(n,i,a,4),o=this._DownsampleFace(o,i,a,4),l=this._DownsampleFace(l,i,a,4),c=a);let u={size:c,right:r,left:t,up:s,down:n,front:o,back:l,format:5,type:+(t instanceof Float32Array),gammaSpace:f};e(this.ConvertCubeMapToSphericalPolynomial(u))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,i){let s=e instanceof Float32Array?e:Float32Array.from(e),a=r*r*i,n=new Float32Array(a),o=t/r,l=1/(o*o);for(let e=0;e<r;e++){let a=Math.floor(e*o),h=Math.floor((e+1)*o);for(let c=0;c<r;c++){let u=Math.floor(c*o),d=Math.floor((c+1)*o),p=(e*r+c)*i;for(let e=0;e<i;e++){let r=0;for(let n=a;n<h;n++)for(let a=u;a<d;a++)r+=s[(n*t+a)*i+e];n[p+e]=r*l}}}if(e instanceof Float32Array)return n;let h=new e.constructor(a);for(let e=0;e<a;e++)h[e]=n[e]+.5|0;return h}static ConvertCubeMapToSphericalPolynomial(e,t=0){let n=t>0?this._NearestPow2Floor(t):0;if(n>0&&e.size>n){let t=5===e.format?4:3,r={};for(let i of["right","left","up","down","front","back"])r[i]=this._DownsampleFace(e[i],e.size,n,t);e={...e,...r,size:n}}let o=new i.SphericalHarmonics,l=0,h=2/e.size,c=.5*h,u=c-1;for(let t=0;t<6;t++){let i=this._FileFaces[t],n=e[i.name],d=u,p=5===e.format?4:3;for(let t=0;t<e.size;t++){let f=u;for(let u=0;u<e.size;u++){let _=i.worldAxisForFileX.scale(f).add(i.worldAxisForFileY.scale(d)).add(i.worldAxisForNormal);_.normalize();let m=this._AreaElement(f-c,d-c)-this._AreaElement(f-c,d+c)-this._AreaElement(f+c,d-c)+this._AreaElement(f+c,d+c),g=n[t*e.size*p+u*p+0],x=n[t*e.size*p+u*p+1],S=n[t*e.size*p+u*p+2];isNaN(g)&&(g=0),isNaN(x)&&(x=0),isNaN(S)&&(S=0),0===e.type&&(g/=255,x/=255,S/=255),e.gammaSpace&&(g=Math.pow((0,r.Clamp)(g),s.ToLinearSpace),x=Math.pow((0,r.Clamp)(x),s.ToLinearSpace),S=Math.pow((0,r.Clamp)(S),s.ToLinearSpace));let T=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(g,x,S);if(e>T){let t=T/e;g*=t,x*=t,S*=t}}else g=(0,r.Clamp)(g,0,T),x=(0,r.Clamp)(x,0,T),S=(0,r.Clamp)(S,0,T);let R=new a.Color3(g,x,S);o.addLight(_,R,m),l+=m,f+=h}d+=h}}let d=4*Math.PI*6/6/l;return o.scaleInPlace(d),o.convertIncidentRadianceToIrradiance(),o.convertIrradianceToLambertianRadiance(),i.SphericalPolynomial.FromHarmonics(o)}}o._FileFaces=[new n("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new n("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new n("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new n("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new n("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new n("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],o.MAX_HDRI_VALUE=4096,o.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,o])},12877,e=>{"use strict";class t{constructor(e,t,r,i){this.x=e,this.y=t,this.width=r,this.height=i}toGlobal(e,r){return new t(this.x*e,this.y*r,this.width*e,this.height*r)}toGlobalToRef(e,t,r){return r.x=this.x*e,r.y=this.y*t,r.width=this.width*e,r.height=this.height*t,this}clone(){return new t(this.x,this.y,this.width,this.height)}}e.s(["Viewport",0,t])},16771,e=>{"use strict";var t=e.i(44816);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,r=!0){this.effect=e,void 0!==t&&(this.defines=t),r&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let r=this.effect;e?r.dispose():t.TimingTools.SetImmediate(()=>{r.getEngine().onEndFrameObservable.addOnce(()=>{r.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},11829,e=>{"use strict";var t=e.i(41041),r=e.i(12877),i=e.i(3864),s=e.i(59052),a=e.i(16771);let n={positions:[1,1,-1,1,-1,-1,1,-1],indices:[0,1,2,0,2,3]};class o{static RegisterShaderCodeProcessing(e,t){t?o._CustomShaderCodeProcessing[e??""]=t:delete o._CustomShaderCodeProcessing[e??""]}static _GetShaderCodeProcessing(e){return o._CustomShaderCodeProcessing[e]??o._CustomShaderCodeProcessing[""]}get name(){return this.options.name}set name(e){this.options.name=e}isReady(){return this._drawWrapper.effect?.isReady()??!1}get drawWrapper(){return this._drawWrapper}get effect(){return this._drawWrapper.effect}set effect(e){this._drawWrapper.effect=e}constructor(e){this.alphaMode=0,this.onEffectCreatedObservable=new i.Observable(void 0,!0),this.onApplyObservable=new i.Observable,this._shadersLoaded=!1,this._webGPUReady=!1,this._importPromises=[],this.options={...e,name:e.name||"effectWrapper",engine:e.engine,uniforms:e.uniforms||e.uniformNames||[],uniformNames:void 0,samplers:e.samplers||e.samplerNames||[],samplerNames:void 0,attributeNames:e.attributeNames||["position"],uniformBuffers:e.uniformBuffers||[],defines:e.defines||"",useShaderStore:e.useShaderStore||!1,vertexUrl:e.vertexUrl||e.vertexShader||"postprocess",vertexShader:void 0,fragmentShader:e.fragmentShader||"pass",indexParameters:e.indexParameters,blockCompilation:e.blockCompilation||!1,shaderLanguage:e.shaderLanguage||0,onCompiled:e.onCompiled||void 0,extraInitializations:e.extraInitializations||void 0,extraInitializationsAsync:e.extraInitializationsAsync||void 0,useAsPostProcess:e.useAsPostProcess??!1,allowEmptySourceTexture:e.allowEmptySourceTexture??!1},this.options.uniformNames=this.options.uniforms,this.options.samplerNames=this.options.samplers,this.options.vertexShader=this.options.vertexUrl,this.options.useAsPostProcess&&(this.options.allowEmptySourceTexture||-1!==this.options.samplers.indexOf("textureSampler")||this.options.samplers.push("textureSampler"),-1===this.options.uniforms.indexOf("scale")&&this.options.uniforms.push("scale")),e.vertexUrl||e.vertexShader?this._shaderPath={vertexSource:this.options.vertexShader}:(this.options.useAsPostProcess||(this.options.uniforms.push("scale"),this.onApplyObservable.add(()=>{this.effect.setFloat2("scale",1,1)})),this._shaderPath={vertex:this.options.vertexShader}),this._shaderPath.fragmentSource=this.options.fragmentShader,this._shaderPath.spectorName=this.options.name,this.options.useShaderStore&&(this._shaderPath.fragment=this._shaderPath.fragmentSource,this._shaderPath.vertex||(this._shaderPath.vertex=this._shaderPath.vertexSource),delete this._shaderPath.fragmentSource,delete this._shaderPath.vertexSource),this.onApplyObservable.add(()=>{this.bind()}),this.options.useShaderStore||(this._onContextRestoredObserver=this.options.engine.onContextRestoredObservable.add(()=>{this.effect._pipelineContext=null,this.effect._prepareEffect()})),this._drawWrapper=new a.DrawWrapper(this.options.engine),this._webGPUReady=1===this.options.shaderLanguage;const t=Array.isArray(this.options.defines)?this.options.defines.join("\n"):this.options.defines;this._postConstructor(this.options.blockCompilation,t,this.options.extraInitializations)}_gatherImports(e=!1,t){}_postConstructor(t,r=null,i,s){this._importPromises.length=0,s&&this._importPromises.push(...s);let a=this.options.engine.isWebGPU&&!o.ForceGLSL;this._gatherImports(a,this._importPromises),this.options.useShaderStore&&"postprocess"===this._shaderPath.vertex&&this._importPromises.push(a&&this._webGPUReady?e.A(99691):e.A(75856)),void 0!==i&&i(a,this._importPromises),a&&this._webGPUReady&&(this.options.shaderLanguage=1),t||this.updateEffect(r)}updateEffect(e=null,t=null,r=null,i,a,n,l,h){let c,u=o._GetShaderCodeProcessing(this.name);if(u?.defineCustomBindings){let i=t?.slice()??[];i.push(...this.options.uniforms);let s=r?.slice()??[];s.push(...this.options.samplers),e=u.defineCustomBindings(this.name,e,i,s),t=i,r=s}this.options.defines=e||"";let d=this._shadersLoaded||0===this._importPromises.length?void 0:async()=>{await Promise.all(this._importPromises),this._shadersLoaded=!0};c=this.options.extraInitializationsAsync?async()=>{await d?.(),await this.options.extraInitializationsAsync()}:d,this.options.useShaderStore?this._drawWrapper.effect=this.options.engine.createEffect({vertex:l??this._shaderPath.vertex,fragment:h??this._shaderPath.fragment},{attributes:this.options.attributeNames,uniformsNames:t||this.options.uniforms,uniformBuffersNames:this.options.uniformBuffers,samplers:r||this.options.samplers,defines:null!==e?e:"",fallbacks:null,onCompiled:a??this.options.onCompiled,onError:n??null,indexParameters:i||this.options.indexParameters,processCodeAfterIncludes:u?.processCodeAfterIncludes?(e,t)=>u.processCodeAfterIncludes(this.name,e,t):null,processFinalCode:u?.processFinalCode?(e,t)=>u.processFinalCode(this.name,e,t):null,shaderLanguage:this.options.shaderLanguage,extraInitializationsAsync:c},this.options.engine):this._drawWrapper.effect=new s.Effect(this._shaderPath,this.options.attributeNames,t||this.options.uniforms,r||this.options.samplerNames,this.options.engine,e,void 0,a||this.options.onCompiled,void 0,void 0,void 0,this.options.shaderLanguage,c),this.onEffectCreatedObservable.notifyObservers(this._drawWrapper.effect)}bind(e=!1){this.options.useAsPostProcess&&!e&&(this.options.engine.setAlphaMode(this.alphaMode),this.drawWrapper.effect.setFloat2("scale",1,1)),o._GetShaderCodeProcessing(this.name)?.bindCustomBindings?.(this.name,this._drawWrapper.effect)}dispose(e=!1){this._onContextRestoredObserver&&(this.effect.getEngine().onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null),this.onEffectCreatedObservable.clear(),this._drawWrapper.dispose(!0)}}o.ForceGLSL=!1,o._CustomShaderCodeProcessing={},e.s(["EffectRenderer",0,class{constructor(e,i=n){this._fullscreenViewport=new r.Viewport(0,0,1,1);const s=i.positions??n.positions,a=i.indices??n.indices;this.engine=e,this._vertexBuffers={[t.VertexBuffer.PositionKind]:new t.VertexBuffer(e,s,t.VertexBuffer.PositionKind,!1,!1,2)},this._indexBuffer=e.createIndexBuffer(a),this._indexBufferLength=a.length,this._onContextRestoredObserver=e.onContextRestoredObservable.add(()=>{for(let t in this._indexBuffer=e.createIndexBuffer(a),this._vertexBuffers)this._vertexBuffers[t]._rebuild()})}setViewport(e=this._fullscreenViewport){this.engine.setViewport(e)}bindBuffers(e){this.engine.bindBuffers(this._vertexBuffers,this._indexBuffer,e)}applyEffectWrapper(e,t=!1,r=!1){this.engine.setState(!0),this.engine.depthCullingState.depthTest=t,this.engine.stencilState.stencilTest=r,this.engine.enableEffect(e.drawWrapper),this.bindBuffers(e.effect),e.onApplyObservable.notifyObservers({})}saveStates(){this._savedStateDepthTest=this.engine.depthCullingState.depthTest,this._savedStateStencilTest=this.engine.stencilState.stencilTest}restoreStates(){this.engine.depthCullingState.depthTest=this._savedStateDepthTest,this.engine.stencilState.stencilTest=this._savedStateStencilTest}draw(){this.engine.drawElementsType(0,0,this._indexBufferLength)}_isRenderTargetTexture(e){return void 0!==e.renderTarget}render(e,t=null){if(!e.effect.isReady())return;this.saveStates(),this.setViewport();let r=null===t?null:this._isRenderTargetTexture(t)?t.renderTarget:t;r&&this.engine.bindFramebuffer(r),this.applyEffectWrapper(e),this.draw(),r&&this.engine.unBindFramebuffer(r),this.restoreStates()}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),delete this._vertexBuffers[t.VertexBuffer.PositionKind]),this._indexBuffer&&this.engine._releaseBuffer(this._indexBuffer),this._onContextRestoredObserver&&(this.engine.onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null)}},"EffectWrapper",0,o])},84953,e=>{"use strict";let t,r,i;var s,a=e.i(57575),n=e.i(11829),o=e.i(92180),l=e.i(63235),h=e.i(23003),c=e.i(16347),u=e.i(1229),d=e.i(9855);let p=null;async function f(){let t=h.EngineStore.LastCreatedEngine?.createCanvas(100,100)??new OffscreenCanvas(100,100);t instanceof OffscreenCanvas&&c.Logger.Warn("DumpData: OffscreenCanvas will be used for dumping data. This may result in lossy alpha values.");let{ThinEngine:r}=await e.A(1155);if(!r.IsSupported)throw Error("DumpData: No WebGL context available. Cannot dump data.");let i=new r(t,!1,{preserveDrawingBuffer:!0,depth:!1,stencil:!1,alpha:!0,premultipliedAlpha:!1,antialias:!1,failIfMajorPerformanceCaveat:!1});h.EngineStore.Instances.pop(),h.EngineStore.OnEnginesDisposedObservable.add(e=>{i&&e!==i&&!i.isDisposed&&0===h.EngineStore.Instances.length&&R()}),i.getCaps().parallelShaderCompile=void 0;let s=new n.EffectRenderer(i),{passPixelShader:a}=await e.A(34796),o=new n.EffectWrapper({engine:i,name:a.name,fragmentShader:a.shader,samplerNames:["textureSampler"]});return{canvas:t,dumpEngine:{engine:i,renderer:s,wrapper:o}}}async function _(){return p||(p=f()),await p}let m=(r=[],s=class{static async EncodeImageAsync(e,t,r,i,s,a){let n=await _(),l=n.dumpEngine;l.engine.setSize(t,r,!0);let h=l.engine.createRawTexture(e,t,r,5,!1,!s,1);return l.renderer.setViewport(),l.renderer.applyEffectWrapper(l.wrapper),l.wrapper.effect._bindTexture("textureSampler",h),l.renderer.draw(),h.dispose(),await new Promise((e,t)=>{o.Tools.ToBlob(n.canvas,r=>{r?e(r):t(Error("EncodeImageAsync: Failed to convert canvas to blob."))},i,a)})}},i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[d.nativeOverride],(0,a.__esDecorate)(s,null,t,{kind:"method",name:"EncodeImageAsync",static:!0,private:!1,access:{has:e=>"EncodeImageAsync"in e,get:e=>e.EncodeImageAsync},metadata:i},null,r),i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),(0,a.__runInitializers)(s,r),s),g=m.EncodeImageAsync;async function x(e,t,r,i,s="image/png",a,n){let o=new Uint8Array((await r.readPixels(0,0,e,t)).buffer);T(e,t,o,i,s,a,!0,void 0,n)}async function S(e,t,r,i="image/png",s,a=!1,n=!1,h){if(r instanceof Float32Array){let e=new Uint8Array(r.length),t=r.length;for(;t--;){let i=r[t];e[t]=Math.round(255*(0,l.Clamp)(i))}r=e}let d=await m.EncodeImageAsync(r,e,t,i,a,h);void 0!==s&&o.Tools.DownloadBlob(d,s),d.type!==i&&c.Logger.Warn(`DumpData: The requested mimeType '${i}' is not supported. The result has mimeType '${d.type}' instead.`);let p=await d.arrayBuffer();return n?p:`data:${i};base64,${(0,u.EncodeArrayBufferToBase64)(p)}`}function T(e,t,r,i,s="image/png",a,n=!1,o=!1,l){void 0!==a||i||(a=""),S(e,t,r,s,a,n,o,l).then(e=>{i&&i(e)})}function R(){p&&(p?.then(e=>{e.canvas instanceof HTMLCanvasElement&&e.canvas.remove(),e.dumpEngine&&(e.dumpEngine.engine.dispose(),e.dumpEngine.renderer.dispose(),e.dumpEngine.wrapper.dispose())}),p=null)}let b=!1;e.s(["Dispose",0,R,"DumpData",0,T,"DumpDataAsync",0,S,"DumpFramebuffer",0,x,"DumpTools",0,{DumpData:T,DumpDataAsync:S,DumpFramebuffer:x,Dispose:R},"EncodeImageAsync",0,g,"RegisterDumpTools",0,function(){b||(b=!0,o.Tools.DumpData=T,o.Tools.DumpDataAsync=S,o.Tools.DumpFramebuffer=x)}])},34010,e=>{"use strict";var t=e.i(44265),r=e.i(69400),i=e.i(63235),s=e.i(88),a=e.i(8636),n=e.i(74868),o=(e.i(66460),e.i(62575)),l=e.i(16347),h=e.i(48747),c=e.i(84953),u=e.i(83592);let d="image/png",p=[134,22,135,150,246,214,150,54];function f(e){if(e.version>2)throw Error(`Unsupported babylon environment map version "${e.version}". Latest supported version is "2".`);return 2===e.version?e:e={...e,version:2,imageType:d}}async function _(e,t,r,i,s,a,n,o,l,h,c){return await new Promise((u,d)=>{if(r){let r=t.createTexture(null,!0,!0,null,1,null,e=>{d(e)},e);i?.onEffectCreatedObservable.addOnce(o=>{o.executeWhenCompiled(()=>{i.externalTextureSamplerBinding=!0,i.onApply=i=>{i._bindTexture("textureSampler",r),i.setFloat2("scale",1,t._features.needsInvertingBitmap&&e instanceof ImageBitmap?-1:1)},t.scenes.length&&(t.scenes[0].postProcessManager.directRender([i],h,!0,a,n),t.restoreDefaultFramebuffer(),r.dispose(),URL.revokeObjectURL(s),u())})})}else{if(t._uploadImageToTexture(c,e,a,n),o){let r=l[n];r&&t._uploadImageToTexture(r._texture,e,a,0)}u()}})}async function m(e,t,r=d){let i=e.getEngine();e.format=5,e.type=0,e.generateMipMaps=!0,e._cachedAnisotropicFilteringLevel=null,i.updateTextureSamplingMode(3,e),await x(e,t,!0,r),e.isReady=!0}async function g(e,t,r,i=d,s=null){let o=e.getEngine(),l=new a.InternalTexture(o,5),h=new n.BaseTexture(o,l);e._irradianceTexture=h,h._dominantDirection=s,l.isCube=!0,l.format=5,l.type=0,l.generateMipMaps=!0,l._cachedAnisotropicFilteringLevel=null,l.generateMipMaps=!0,l.width=r,l.height=r,o.updateTextureSamplingMode(3,l),await x(l,[t],!1,i),o.generateMipMapsForCubemap(l),l.isReady=!0}async function x(r,s,l,h=d){if(!(0,t.IsExponentOfTwo)(r.width))throw Error("Texture size must be a power of two");let c=(0,i.ILog2)(r.width)+1,p=r.getEngine(),f=!1,m=!1,g=null,S=null,T=null,R=p.getCaps();R.textureLOD?p._features.supportRenderAndCopyToLodForFloatTextures?R.textureHalfFloatRender&&R.textureHalfFloatLinearFiltering?(f=!0,r.type=2):R.textureFloatRender&&R.textureFloatLinearFiltering&&(f=!0,r.type=1):f=!1:(f=!1,m=l);let b=0;if(f)p.isWebGPU?(b=1,await e.A(18585)):await e.A(94589),g=new o.PostProcess("rgbdDecode","rgbdDecode",null,null,1,null,3,p,!1,void 0,r.type,void 0,null,!1,void 0,b),r._isRGBD=!1,r.invertY=!1,S=p.createRenderTargetCubeTexture(r.width,{generateDepthBuffer:!1,generateMipMaps:!0,generateStencilBuffer:!1,samplingMode:3,type:r.type,format:5});else if(r._isRGBD=!0,r.invertY=!0,m){T={};let e=r._lodGenerationScale,t=r._lodGenerationOffset;for(let i=0;i<3;i++){let s=(c-1)*e+t,o=Math.round(Math.min(Math.max(t+(s-t)*(1-i/2),0),s)),l=new a.InternalTexture(p,2);l.isCube=!0,l.invertY=!0,l.generateMipMaps=!1,p.updateTextureSamplingMode(2,l);let h=new n.BaseTexture(null);switch(h._isCube=!0,h._texture=l,T[o]=h,i){case 0:r._lodTextureLow=h;break;case 1:r._lodTextureMid=h;break;case 2:r._lodTextureHigh=h}}}let v=[];for(let e=0;e<s.length;e++)for(let t=0;t<6;t++){let i,a=s[e][t],n=new Blob([(0,u.GetBlobBufferSource)(a)],{type:h}),o=URL.createObjectURL(n);if(p._features.forceBitmapOverHTMLImageElement)i=p.createImageBitmap(n,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(async i=>await _(i,p,f,g,o,t,e,m,T,S,r));else{let s=new Image;s.src=o,i=new Promise((i,a)=>{s.onload=()=>{_(s,p,f,g,o,t,e,m,T,S,r).then(()=>i()).catch(e=>{a(e)})},s.onerror=e=>{a(e)}})}v.push(i)}if(await Promise.all(v),s.length<c){let e,t=Math.pow(2,c-1-s.length),i=t*t*4;switch(r.type){case 0:e=new Uint8Array(i);break;case 2:e=new Uint16Array(i);break;case 1:e=new Float32Array(i)}for(let t=s.length;t<c;t++)for(let i=0;i<6;i++)p._uploadArrayBufferViewToTexture(S?.texture||r,e,i,t)}if(S){let e=r._irradianceTexture;r._irradianceTexture=null,p._releaseTexture(r),S._swapAndDie(r),r._irradianceTexture=e}g&&g.dispose(),m&&(r._lodTextureHigh&&r._lodTextureHigh._texture&&(r._lodTextureHigh._texture.isReady=!0),r._lodTextureMid&&r._lodTextureMid._texture&&(r._lodTextureMid._texture.isReady=!0),r._lodTextureLow&&r._lodTextureLow._texture&&(r._lodTextureLow._texture.isReady=!0))}e.s(["GetEnvInfo",0,function(e){let t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=0;for(let e=0;e<p.length;e++)if(r.getUint8(i++)!==p[e])return l.Logger.Error("Not a babylon environment map"),null;let s="";for(;t=r.getUint8(i++);)s+=String.fromCharCode(t);let a=JSON.parse(s);return(a=f(a)).binaryDataPosition=i,a.specular&&(a.specular.lodGenerationScale=a.specular.lodGenerationScale||.8),a},"UploadEnvLevelsAsync",0,function(e,t,i){let s=(i=f(i)).specular;if(!s)return Promise.resolve([]);e._lodGenerationScale=s.lodGenerationScale;let a=[],n=function(e,t){let r=(t=f(t)).specular,i=Math.log2(t.width);if(i=Math.round(i)+1,r.mipmaps.length!==6*i)throw Error(`Unsupported specular mipmaps number "${r.mipmaps.length}"`);let s=Array(i);for(let a=0;a<i;a++){s[a]=Array(6);for(let i=0;i<6;i++){let n=r.mipmaps[6*a+i];s[a][i]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+n.position,n.length)}}return s}(t,i);a.push(m(e,n,i.imageType));let o=i.irradiance?.irradianceTexture;if(o){let s=function(e,t){t=f(t);let r=Array(6),i=t.irradiance?.irradianceTexture;if(i){if(6!==i.faces.length)throw Error(`Incorrect irradiance texture faces number "${i.faces.length}"`);for(let s=0;s<6;s++){let a=i.faces[s];r[s]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+a.position,a.length)}}return r}(t,i),n=null;i.irradiance?.irradianceTexture?.dominantDirection&&(n=r.Vector3.FromArray(i.irradiance.irradianceTexture.dominantDirection)),a.push(g(e,s,o.size,i.imageType,n))}return Promise.all(a)},"UploadEnvSpherical",0,function(e,t){let i=(t=f(t)).irradiance;if(!i)return;let a=new s.SphericalPolynomial;r.Vector3.FromArrayToRef(i.x,0,a.x),r.Vector3.FromArrayToRef(i.y,0,a.y),r.Vector3.FromArrayToRef(i.z,0,a.z),r.Vector3.FromArrayToRef(i.xx,0,a.xx),r.Vector3.FromArrayToRef(i.yy,0,a.yy),r.Vector3.FromArrayToRef(i.zz,0,a.zz),r.Vector3.FromArrayToRef(i.yz,0,a.yz),r.Vector3.FromArrayToRef(i.zx,0,a.zx),r.Vector3.FromArrayToRef(i.xy,0,a.xy),e._sphericalPolynomial=a},"_UpdateRGBDAsync",0,function(e,t,r,i,s){let a=m(e.getEngine().createRawCubeTexture(null,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression),t).then(()=>e);return e.onRebuildCallback=e=>({proxy:a,isReady:!0,isAsync:!0}),e._source=13,e._bufferViewArrayArray=t,e._lodGenerationScale=i,e._lodGenerationOffset=s,e._sphericalPolynomial=r,m(e,t).then(()=>(e.isReady=!0,e))}])},74208,e=>{"use strict";var t=e.i(34010),r=e.i(84684),i=e.i(74868);let s=!1;e.s(["_ENVTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,a,n,o,l){if(Array.isArray(e))return;let h=(0,t.GetEnvInfo)(e);if(h){a.width=h.width,a.height=h.width;try{s||(s=!0,i.BaseTexture.prototype._sphericalPolynomialTargetSize=0,i.BaseTexture.prototype.forceSphericalPolynomialsRecompute=function(){this._texture&&(this._texture._sphericalPolynomial=null,this._texture._sphericalPolynomialPromise=null,this._texture._sphericalPolynomialComputed=!1)},Object.defineProperty(i.BaseTexture.prototype,"sphericalPolynomial",{get:function(){if(this._texture){if(this._texture._sphericalPolynomial||this._texture._sphericalPolynomialComputed)return this._texture._sphericalPolynomial;this._texture.isReady&&(this._texture._sphericalPolynomialPromise||(this._texture._sphericalPolynomialPromise=r.CubeMapToSphericalPolynomialTools.ConvertCubeMapTextureToSphericalPolynomial(this),null===this._texture._sphericalPolynomialPromise?this._texture._sphericalPolynomialComputed=!0:this._texture._sphericalPolynomialPromise.then(e=>{this._texture._sphericalPolynomial=e,this._texture._sphericalPolynomialComputed=!0})))}return null},set:function(e){this._texture&&(this._texture._sphericalPolynomial=e)},enumerable:!0,configurable:!0})),(0,t.UploadEnvSpherical)(a,h),(0,t.UploadEnvLevelsAsync)(a,e,h).then(()=>{a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),o&&o()},e=>{l?.("Can not upload environment levels",e)})}catch(e){l?.("Can not upload environment file",e)}}else l&&l("Can not parse the environment file",null)}loadData(){throw".env not supported in 2d."}}],74208)},75856,e=>{e.v(t=>Promise.all(["static/chunks/2117sv2qzo6yq.js"].map(t=>e.l(t))).then(()=>t(37145)))},99691,e=>{e.v(t=>Promise.all(["static/chunks/2clevl_9ayd0x.js"].map(t=>e.l(t))).then(()=>t(36257)))},60624,e=>{e.v(t=>Promise.all(["static/chunks/1j4jt5q7px8sy.js"].map(t=>e.l(t))).then(()=>t(44449)))},34796,e=>{e.v(t=>Promise.all(["static/chunks/3twr9ds68-9us.js"].map(t=>e.l(t))).then(()=>t(11681)))},77151,e=>{e.v(t=>Promise.all(["static/chunks/3ioxfi3bvznhh.js"].map(t=>e.l(t))).then(()=>t(64489)))},62237,e=>{e.v(t=>Promise.all(["static/chunks/1lu7rjfvxj8yj.js"].map(t=>e.l(t))).then(()=>t(65185)))},58869,e=>{e.v(t=>Promise.all(["static/chunks/1x0j78ohufpul.js"].map(t=>e.l(t))).then(()=>t(30728)))},77607,e=>{e.v(t=>Promise.all(["static/chunks/1a94whad0y57f.js"].map(t=>e.l(t))).then(()=>t(3536)))},10896,e=>{e.v(t=>Promise.all(["static/chunks/2epukrz6paj9n.js"].map(t=>e.l(t))).then(()=>t(7940)))},60434,e=>{e.v(t=>Promise.all(["static/chunks/3nr48h9zwum-3.js"].map(t=>e.l(t))).then(()=>t(58395)))},89634,e=>{e.v(t=>Promise.all(["static/chunks/3-yhe6rcsjh88.js"].map(t=>e.l(t))).then(()=>t(69241)))},57528,e=>{e.v(t=>Promise.all(["static/chunks/22yht3s7c-xih.js"].map(t=>e.l(t))).then(()=>t(8406)))},96465,e=>{e.v(t=>Promise.all(["static/chunks/1j4c0nvdo5q68.js"].map(t=>e.l(t))).then(()=>t(48820)))},94589,e=>{e.v(t=>Promise.all(["static/chunks/0gk5rnci1hznh.js"].map(t=>e.l(t))).then(()=>t(3449)))},18585,e=>{e.v(t=>Promise.all(["static/chunks/25brs445bjbik.js"].map(t=>e.l(t))).then(()=>t(98959)))},96401,e=>{e.v(t=>Promise.all(["static/chunks/287hakn2ijupp.js"].map(t=>e.l(t))).then(()=>t(66860)))},85357,e=>{e.v(t=>Promise.all(["static/chunks/2mrkv0z2i74pv.js"].map(t=>e.l(t))).then(()=>t(25124)))},1155,e=>{e.v(t=>Promise.all(["static/chunks/0zu5ato7-1-q9.js"].map(t=>e.l(t))).then(()=>t(13600)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2348,2413,e=>{"use strict";let t=1/1.2;e.s(["ZOOM_IN_FACTOR",0,t,"ZOOM_OUT_FACTOR",0,1.2,"attachDoubleClickFocus",0,function(e,t,n){let s=()=>{let t=e.pick(e.pointerX,e.pointerY);t?.hit&&t.pickedPoint&&n.setTarget(t.pickedPoint)};return t.addEventListener("dblclick",s),()=>t.removeEventListener("dblclick",s)},"disableWheelZoom",0,function(e){e.inputs.removeByType("ArcRotateCameraMouseWheelInput")},"resetFocus",0,function(e,t){e.setTarget(t.target),e.alpha=t.alpha,e.beta=t.beta,e.radius=t.radius},"stepZoom",0,function(e,t){let n=e.lowerRadiusLimit??.01,s=e.upperRadiusLimit??1/0;e.radius=Math.min(s,Math.max(n,e.radius*t))}],2348);var n=e.i(79047);e.s(["ZoomButtons",0,function({onZoom:e,onReset:s}){let a="grid h-8 w-8 place-items-center rounded-md border border-edge bg-ink/80 text-lg leading-none text-fg backdrop-blur transition hover:bg-ink hover:text-white";return(0,n.jsxs)("div",{className:"absolute right-3 top-3 flex flex-col gap-1",children:[(0,n.jsx)("button",{type:"button","aria-label":"Zoom in",className:a,onClick:()=>e(t),children:"+"}),(0,n.jsx)("button",{type:"button","aria-label":"Zoom out",className:a,onClick:()=>e(1.2),children:"−"}),s?(0,n.jsx)("button",{type:"button","aria-label":"Reset camera focus to center",title:"Reset focus to center",className:a,onClick:s,children:(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"3"}),(0,n.jsx)("path",{d:"M8 1v2.5M8 12.5V15M1 8h2.5M12.5 8H15"})]})}):null]})}],2413)},87456,e=>{"use strict";e.s(["attachMeshHover",0,function(e,t,n){let s=0,a=null,i=t=>{let i=t.offsetX,l=t.offsetY;s||(s=requestAnimationFrame(()=>{var t,o;let r;s=0;let u=e.pick(i,l,e=>e.isPickable&&e.isEnabled()),c=u?.pickedMesh?(t=u.pickedMesh,o=u.thinInstanceIndex??-1,(r=t.metadata)?o>=0&&r.hoverLabels?r.hoverLabels[o]??null:r.hoverLabel??null:null):null;c?n({label:c,x:i,y:l}):null!==a&&n(null),a=c}))},l=()=>{s&&(cancelAnimationFrame(s),s=0),null!==a&&(a=null,n(null))};return t.addEventListener("pointermove",i),t.addEventListener("pointerleave",l),()=>{t.removeEventListener("pointermove",i),t.removeEventListener("pointerleave",l),s&&cancelAnimationFrame(s)}}])},19399,e=>{"use strict";var t=e.i(79047),n=e.i(57431);let s="__other_sp__",a="__other_mesh__";function i(e){return`${e[0]}|${e[1]}|${e[2]}`}function l(e,t){return t<=1?0:1.4-e/(t-1)*2.8}var o=e.i(56054),r=e.i(2348),u=e.i(87456),c=e.i(18637),h=e.i(2413);let d="__all__",m={maxStandpoints:6,maxMeshes:10,maxRibbons:70};function f(e,t){return`${e}|${t}`}function g(e){let t=e.aabb;return[(t[0]+t[3])/2,(t[1]+t[4])/2,(t[2]+t[5])/2]}function p(e){let t=0;for(let n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Math.abs(t)}function b({label:e,value:n,onChange:s,allLabel:a,options:i}){return(0,t.jsxs)("label",{className:"flex items-center gap-1.5 rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg backdrop-blur",children:[(0,t.jsx)("span",{className:"font-medium text-fg-muted",children:e}),(0,t.jsxs)("select",{className:"max-w-[12rem] bg-transparent text-white outline-none",value:n,onChange:e=>s(e.target.value),children:[(0,t.jsx)("option",{value:d,children:a}),i.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]})}function x({active:e,onClick:n,children:s,disabled:a=!1,title:i}){return(0,t.jsx)("button",{type:"button",onClick:n,disabled:a,title:i,className:`rounded px-2 py-0.5 font-medium transition ${a?"cursor-not-allowed text-fg-muted/40":e?"bg-amber text-ink":"text-fg-muted hover:text-fg"}`,children:s})}function k({standpoints:e,proxyMeshes:s,selectedKey:a,onSelect:i}){let l=(0,n.useRef)(null),o=(0,n.useMemo)(()=>e.filter(e=>e.origin),[e]),r=(0,n.useMemo)(()=>{let e=1/0,t=-1/0,n=1/0,a=-1/0,i=(s,i)=>{e=Math.min(e,s),t=Math.max(t,s),n=Math.min(n,i),a=Math.max(a,i)};for(let e of s)i(e.aabb[0],e.aabb[2]),i(e.aabb[3],e.aabb[5]);for(let e of o)i(e.origin[0],e.origin[2]);return Number.isFinite(e)?(t-e<.001&&(e-=1,t+=1),a-n<.001&&(n-=1,a+=1),{minX:e,maxX:t,minZ:n,maxZ:a}):{minX:-1,maxX:1,minZ:-1,maxZ:1}},[s,o]),u=(0,n.useMemo)(()=>{let e=Math.min(134/(r.maxX-r.minX),94/(r.maxZ-r.minZ));return(t,n)=>[8+(t-r.minX)*e,8+(n-r.minZ)*e]},[r]),c=(0,n.useMemo)(()=>o.reduce((e,t)=>Math.max(e,t.count),1),[o]);return(0,n.useEffect)(()=>{let e=l.current,t=e?.getContext("2d");if(!t)return;let n=window.devicePixelRatio||1;for(let a of(e.width=150*n,e.height=110*n,t.setTransform(n,0,0,n,0,0),t.clearRect(0,0,150,110),t.fillStyle="rgba(8,10,14,0.85)",t.fillRect(0,0,150,110),t.strokeStyle="rgba(120,140,170,0.35)",t.lineWidth=1,s)){let[e,n]=u(a.aabb[0],a.aabb[2]),[s,i]=u(a.aabb[3],a.aabb[5]);t.strokeRect(Math.min(e,s),Math.min(n,i),Math.abs(s-e),Math.abs(i-n))}for(let e of o){let[n,s]=u(e.origin[0],e.origin[2]),i=2+e.count/c*4,l=e.key===a;t.beginPath(),t.arc(n,s,i,0,2*Math.PI),t.fillStyle=l?"rgba(242,115,242,1)":"rgba(242,115,242,0.55)",t.fill(),l&&(t.beginPath(),t.arc(n,s,i+2.5,0,2*Math.PI),t.strokeStyle="rgba(255,255,255,0.9)",t.lineWidth=1.5,t.stroke())}},[s,o,u,c,a]),(0,t.jsxs)("div",{className:"absolute right-3 top-3 rounded-md border border-edge bg-ink/80 p-1 backdrop-blur",children:[(0,t.jsx)("div",{className:"px-1 pb-0.5 text-[10px] font-medium text-fg-muted",children:"Standpoints (top view)"}),(0,t.jsx)("canvas",{ref:l,className:"h-27.5 w-37.5 cursor-pointer rounded",onClick:e=>{let t=l.current;if(!t||0===o.length)return;let n=t.getBoundingClientRect(),s=(e.clientX-n.left)/n.width*150,a=(e.clientY-n.top)/n.height*110,r=null,c=1/0;for(let e of o){let[t,n]=u(e.origin[0],e.origin[2]),i=(t-s)**2+(n-a)**2;i<c&&(c=i,r=e)}r&&c<=196&&i(r.key)}})]})}e.s(["FlowSankey3DView",0,function({links:v,gridSize:j,proxyMeshes:w=[],maxLinks:M=80,api:z,flowQuery:_,hasFirstPerson:y=!1}){let $=(0,n.useRef)(null),I=(0,n.useRef)(null),C=(0,n.useRef)(null),[P,B]=(0,n.useState)("loading"),[R,S]=(0,n.useState)(null),[L,N]=(0,n.useState)(d),[A,E]=(0,n.useState)(d),[O,Z]=(0,n.useState)(d),[q,T]=(0,n.useState)("aggregate"),[F,V]=(0,n.useState)(null),[W,X]=(0,n.useState)("all"),[H,D]=(0,n.useState)(v),U=!!(z&&_),K=(0,n.useMemo)(()=>_?JSON.stringify(_):"",[_]),Y=(0,n.useRef)(!1);(0,n.useEffect)(()=>{!Y.current&&y&&(X("first-person"),Y.current=!0)},[y]),(0,n.useEffect)(()=>{y&&"viewer"===W&&X("first-person")},[y,W]),(0,n.useEffect)(()=>{U||D(v)},[v,U]),(0,n.useEffect)(()=>{if(!z||!_)return;let e=!1,t="all"===W?void 0:W;return z.flowHeatmap({..._,bins:j,limit:400,groupByOrigin:!0,cameraMode:t}).then(t=>{e||D(t)}).catch(()=>{e||D([])}),()=>{e=!0}},[z,K,W,j]);let G=(0,n.useMemo)(()=>{let e=new Map;for(let t of H){if(!t.originVoxel)continue;let n=i(t.originVoxel),s=t.origin,a=e.get(n);a?(a.count+=t.count,s&&(a.ox+=s[0]*t.count,a.oy+=s[1]*t.count,a.oz+=s[2]*t.count,a.wsum+=t.count)):e.set(n,{key:n,voxel:t.originVoxel,count:t.count,ox:s?s[0]*t.count:0,oy:s?s[1]*t.count:0,oz:s?s[2]*t.count:0,wsum:s?t.count:0})}return[...e.values()].map(e=>({key:e.key,voxel:e.voxel,count:e.count,origin:e.wsum>0?[e.ox/e.wsum,e.oy/e.wsum,e.oz/e.wsum]:void 0})).sort((e,t)=>t.count-e.count)},[H]),J=G.length>0,Q=(0,n.useMemo)(()=>O===d?null:G.find(e=>e.key===O)??null,[G,O]),ee=(0,n.useMemo)(()=>(function(e,t,n,o){let r=e.filter(e=>e.originVoxel);if(0===r.length)return{standpoints:[],gazes:[],meshes:[],ribbons:[],maxCount:1};let u=t.slice(0,Math.max(1,o.maxStandpoints)),c=new Set(u.map(e=>e.key)),h=e=>{let t=e.originVoxel?i(e.originVoxel):s;return c.has(t)?t:s},d=new Map;for(let e of r)d.set(e.mesh,(d.get(e.mesh)??0)+e.count);let m=new Set([...d.entries()].sort((e,t)=>t[1]-e[1]).slice(0,Math.max(1,o.maxMeshes)).map(([e])=>e)),f=e=>m.has(e)?e:a,g=new Map;for(let e of r){let t=h(e),n=f(e.mesh),s=`${t}|${e.azimuth_bin}|${e.elevation_bin}|${n}`,a=g.get(s);a?a.count+=e.count:g.set(s,{standpointId:t,gazeId:`${t}|${e.azimuth_bin}|${e.elevation_bin}`,meshId:n,azimuthBin:e.azimuth_bin,elevationBin:e.elevation_bin,count:e.count})}let p=[...g.values()].sort((e,t)=>t.count-e.count),b=p.slice(0,Math.max(1,o.maxRibbons)),x=p.slice(Math.max(1,o.maxRibbons));if(x.length>0){let e=new Map(b.map(e=>[`${e.standpointId}|${e.azimuthBin}|${e.elevationBin}|${a}`,e]));for(let t of x){let n=`${t.standpointId}|${t.azimuthBin}|${t.elevationBin}|${a}`,s=e.get(n);if(s)s.count+=t.count;else{let s={standpointId:t.standpointId,gazeId:t.gazeId,meshId:a,azimuthBin:t.azimuthBin,elevationBin:t.elevationBin,count:t.count};e.set(n,s),b.push(s)}}}let k=new Set(b.map(e=>e.standpointId)),v=new Set(b.map(e=>e.meshId)),j=[...u.filter(e=>k.has(e.key)).map(e=>e.key),...k.has(s)?[s]:[]],w=j.map((e,t)=>{let n=u.find(t=>t.key===e),a=b.filter(t=>t.standpointId===e).reduce((e,t)=>e+t.count,0);return{id:e,kind:"standpoint",pos:[-2.6,l(t,j.length),0],count:a,label:n?`[${n.voxel[0]}, ${n.voxel[1]}, ${n.voxel[2]}]`:"Other standpoints",isOther:e===s}}),M=new Map(w.map(e=>[e.id,e.pos[1]])),z=new Map;for(let e of b)z.set(e.meshId,(z.get(e.meshId)??0)+e.count);let _=[...v].sort((e,t)=>(z.get(t)??0)-(z.get(e)??0));_.sort((e,t)=>(e===a)-(t===a));let y=_.map((e,t)=>({id:e,kind:"mesh",pos:[2.6,l(t,_.length),0],count:z.get(e)??0,label:e===a?"Other meshes":e,isOther:e===a})),$=new Map;for(let e of b){let t=$.get(e.gazeId);t?t.count+=e.count:$.set(e.gazeId,{az:e.azimuthBin,el:e.elevationBin,sp:e.standpointId,count:e.count})}let I=[...$.entries()].map(([e,t])=>{let s=M.get(t.sp)??0,a=(t.az+.5)/n-.5;return{id:e,kind:"gaze",pos:[0,s+((t.el+.5)/n-.5)*.85,1.6*a],count:t.count,label:`(${t.az}, ${t.el})`,isOther:!1}}),C=b.reduce((e,t)=>Math.max(e,t.count),1);return{standpoints:w,gazes:I,meshes:y,ribbons:b,maxCount:C}})(H,G,j,m),[H,G,j]),et="twostage"===q&&J;(0,n.useEffect)(()=>{"twostage"!==q||J||T("aggregate")},[q,J]);let en=(0,n.useMemo)(()=>{if(O!==d&&J)return H.filter(e=>e.originVoxel&&i(e.originVoxel)===O);if(!J)return H;let e=new Map;for(let t of H){let n=`${t.azimuth_bin}|${t.elevation_bin}|${t.mesh}`,s=e.get(n);s?s.count+=t.count:e.set(n,{azimuth_bin:t.azimuth_bin,elevation_bin:t.elevation_bin,mesh:t.mesh,count:t.count})}return[...e.values()]},[H,O,J]),es=(0,n.useMemo)(()=>[...en].sort((e,t)=>t.count-e.count).slice(0,Math.max(1,M)),[en,M]),ea=(0,n.useMemo)(()=>{let e=new Map;for(let t of es)e.set(t.mesh,(e.get(t.mesh)??0)+t.count);return[...e.entries()].sort((e,t)=>t[1]-e[1])},[es]),ei=(0,n.useMemo)(()=>{let e=new Map;for(let t of es){let n=f(t.azimuth_bin,t.elevation_bin),s=e.get(n);s?s.count+=t.count:e.set(n,{azimuthBin:t.azimuth_bin,elevationBin:t.elevation_bin,count:t.count})}return[...e.values()].sort((e,t)=>t.count-e.count)},[es]);(0,n.useEffect)(()=>{!et&&L!==d&&(ea.some(([e])=>e===L)||N(d))},[et,L,ea]),(0,n.useEffect)(()=>{!et&&A!==d&&(ei.some(e=>f(e.azimuthBin,e.elevationBin)===A)||E(d))},[et,A,ei]),(0,n.useEffect)(()=>{!et&&O!==d&&(G.some(e=>e.key===O)||Z(d))},[et,O,G]),(0,n.useEffect)(()=>{N(d),E(d),Z(d)},[q]);let el=(0,n.useMemo)(()=>et?ee.ribbons.filter(e=>{let t=O===d||e.standpointId===O,n=A===d||f(e.azimuthBin,e.elevationBin)===A,s=L===d||e.meshId===L;return t&&n&&s}).length:es.filter(e=>{let t=A===d||f(e.azimuth_bin,e.elevation_bin)===A,n=L===d||e.mesh===L;return t&&n}).length,[et,ee,es,L,A,O]),eo=et?ee.ribbons.length:es.length,er=(0,n.useMemo)(()=>et?ee.standpoints.map(e=>({value:e.id,label:`${e.label} \xb7 ${e.count}`})):G.slice(0,24).map(e=>({value:e.key,label:`[${e.voxel[0]}, ${e.voxel[1]}, ${e.voxel[2]}] \xb7 ${e.count}`})),[et,ee,G]),eu=(0,n.useMemo)(()=>{if(et){let e=new Map;for(let t of ee.ribbons){let n=f(t.azimuthBin,t.elevationBin),s=e.get(n);s?s.count+=t.count:e.set(n,{az:t.azimuthBin,el:t.elevationBin,count:t.count})}return[...e.values()].sort((e,t)=>t.count-e.count).map(e=>({value:f(e.az,e.el),label:`(${e.az}, ${e.el}) \xb7 ${e.count}`}))}return ei.map(e=>({value:f(e.azimuthBin,e.elevationBin),label:`(${e.azimuthBin}, ${e.elevationBin}) \xb7 ${e.count}`}))},[et,ee,ei]),ec=(0,n.useMemo)(()=>et?ee.meshes.map(e=>({value:e.id,label:`${e.label} \xb7 ${e.count}`})):ea.map(([e,t])=>({value:e,label:`${e} \xb7 ${t}`})),[et,ee,ea]),eh=(0,n.useRef)(es);eh.current=es;let ed=(0,n.useRef)(ee);ed.current=ee;let em=(0,n.useRef)(w);em.current=w;let ef=(0,n.useRef)(ea);ef.current=ea;let eg=(0,n.useRef)(L);eg.current=L;let ep=(0,n.useRef)(A);ep.current=A;let eb=(0,n.useRef)(O);eb.current=O;let ex=(0,n.useRef)(Q);ex.current=Q;let ek=(0,n.useRef)(null),ev=et?ee.ribbons.length>0:es.length>0;return(0,n.useEffect)(()=>{let t=$.current;if(!t)return;if(!ev)return void B("empty");let n=!1,s=null;return B("loading"),S(null),(async()=>{try{let a,[{Engine:i},{Scene:l},{ArcRotateCamera:c},{HemisphericLight:h},{Vector3:m,Color3:b,Color4:x},{MeshBuilder:k},{StandardMaterial:v}]=await Promise.all([e.A(48159),e.A(7614),e.A(41656),e.A(84694),e.A(13160),e.A(9786),e.A(33664),e.A(4977)]);if(n)return;let w=new i(t,!0,{preserveDrawingBuffer:!1}),M=new l(w);M.clearColor=new x(.04,.05,.07,1);let z=[],_=()=>{for(let e of z)e.dispose();z=[]};if(et){let e=m.Zero();(a=new c("ts-cam",Math.PI/2,Math.PI/2.4,8.5,e,M)).attachControl(t,!0),(0,r.disableWheelZoom)(a),I.current=a,C.current={target:e,alpha:a.alpha,beta:a.beta,radius:a.radius},new h("ts-light",new m(.3,1,.2),M);let n={standpoint:[.95,.45,.95],gaze:[.45,.75,1],mesh:[1,.82,.42]},s={standpoint:.26,gaze:.13,mesh:.22},i=(e,t,n)=>{let s=e[0],a=e[1],i=e[2],l=t[0],o=t[1],r=t[2],u=[(s+l)/2,(a+o)/2+n,(i+r)/2],c=[];for(let e=0;e<=12;e++){let t=e/12,n=1-t;c.push(new m(n*n*s+2*n*t*u[0]+t*t*l,n*n*a+2*n*t*u[1]+t*t*o,n*n*i+2*n*t*u[2]+t*t*r))}return c},l=()=>{_();let e=ed.current;if(0===e.ribbons.length)return;let t=eb.current,a=ep.current,l=eg.current,r=e=>{let n=t===d||e.standpointId===t,s=a===d||f(e.azimuthBin,e.elevationBin)===a,i=l===d||e.meshId===l;return n&&s&&i},u=t!==d||a!==d||l!==d,c=new Set;for(let t of e.ribbons)r(t)&&(c.add(t.standpointId),c.add(t.gazeId),c.add(t.meshId));let h=[...e.standpoints,...e.gazes,...e.meshes],g=new Map(h.map(e=>[e.id,e.pos])),p=new Map(h.map(e=>[e.id,e.label]));for(let e of h){let t=k.CreateSphere(`ts-node-${e.kind}-${e.id}`,{diameter:s[e.kind],segments:8},M);t.position=new m(e.pos[0],e.pos[1],e.pos[2]);let a=new v(`ts-node-mat-${e.kind}-${e.id}`,M);a.disableLighting=!0;let[i,l,o]=n[e.kind];a.emissiveColor=new b(i,l,o),a.alpha=!u||c.has(e.id)?1:.2,t.material=a,t.isPickable=!0,t.metadata={hoverLabel:e.label},z.push(t,a)}for(let t of e.ribbons){let n=g.get(t.standpointId),s=g.get(t.gazeId),a=g.get(t.meshId);if(!n||!s||!a)continue;let l=t.count/e.maxCount,c=.18+.5*l,h=[...i(n,s,c),...i(s,a,c).slice(1)],d=r(t),[m,f,x]=(0,o.heatRgb)(l),j=k.CreateTube(`ts-link-${t.standpointId}-${t.gazeId}-${t.meshId}`,{path:h,radius:(d?1:.4)*(.012+.04*l),tessellation:8,cap:0,sideOrientation:0},M),w=new v(`ts-link-mat-${t.standpointId}-${t.gazeId}-${t.meshId}`,M);w.disableLighting=!0,w.emissiveColor=new b(m,f,x),w.alpha=d?.35+.65*l:u?.06:.18,j.material=w,j.isPickable=!0,j.metadata={hoverLabel:p.get(t.meshId)??t.meshId},z.push(j,w)}};ek.current=l,l()}else{let e=new Map;for(let t of em.current)e.set(t.name,g(t));let n=new Map,s=ef.current.map(([e])=>e).filter(t=>!e.has(t));for(let e=0;e<s.length;e++){let t=s[e],a=p(t),i=e/Math.max(1,s.length)*Math.PI*2+a%100/100*.35;n.set(t,[2.2*Math.cos(i),-.35+(a%7-3)*.06,2.2*Math.sin(i)])}for(let[t,s]of e.entries())n.set(t,s);let i=0,l=0,u=0,x=0;for(let e of n.values())i+=e[0],l+=e[1],u+=e[2],x++;let w=new m(i/Math.max(1,x),l/Math.max(1,x),u/Math.max(1,x)),y=1.8;for(let e of n.values()){let t=e[0]-w.x,n=e[1]-w.y,s=e[2]-w.z;y=Math.max(y,Math.sqrt(t*t+n*n+s*s))}let $=.75*y+1,P=Math.max(1,y/1.8);(a=new c("flow-cam",Math.PI/4,Math.PI/3,3.4*y,w,M)).attachControl(t,!0),(0,r.disableWheelZoom)(a),I.current=a,C.current={target:w,alpha:a.alpha,beta:a.beta,radius:a.radius},new h("flow-light",new m(.3,1,.2),M);let B=k.CreateSphere("flow-source-dome",{diameter:2*$,segments:20},M);B.position=w;let R=new v("flow-source-dome-mat",M);R.wireframe=!0,R.disableLighting=!0,R.emissiveColor=new b(.16,.2,.28),R.alpha=.35,B.material=R,B.isPickable=!1;let S=()=>{_();let e=eh.current;if(0===e.length)return;let t=eg.current,n=ep.current,s=ex.current,a=new Map;for(let e of em.current)a.set(e.name,g(e));let i=new Map,l=ef.current.map(([e])=>e).filter(e=>!a.has(e));for(let e=0;e<l.length;e++){let t=l[e],n=p(t),s=e/Math.max(1,l.length)*Math.PI*2+n%100/100*.35;i.set(t,[2.2*Math.cos(s),-.35+(n%7-3)*.06,2.2*Math.sin(s)])}for(let[e,t]of a.entries())i.set(e,t);let r=e.reduce((e,t)=>Math.max(e,t.count),1),u=new v("flow-source-node",M);u.disableLighting=!0,u.emissiveColor=new b(.45,.75,1);let c=new v("flow-target-node",M);c.disableLighting=!0,c.emissiveColor=new b(1,.82,.42),z.push(u,c);let h=new Set,x=new Set,y=e=>{let s=n===d||f(e.azimuth_bin,e.elevation_bin)===n,a=t===d||e.mesh===t;return s&&a},I=new Set,C=new Set;for(let t of e)y(t)&&(I.add(f(t.azimuth_bin,t.elevation_bin)),C.add(t.mesh));for(let s of e){let e=`${s.azimuth_bin}|${s.elevation_bin}`,a=i.get(s.mesh);if(!a)continue;let l=y(s),f=(s.azimuth_bin+.5)/j*Math.PI*2-Math.PI,g=(s.elevation_bin+.5)/j*Math.PI-Math.PI/2,p=Math.cos(g),_=p*Math.cos(f),B=Math.sin(g),R=p*Math.sin(f),S=new m(w.x+_*$,w.y+B*$,w.z+R*$),L=new m(a[0],a[1],a[2]);if(!h.has(e)){let s=k.CreateSphere(`flow-src-${e}`,{diameter:.12*P,segments:6},M);s.position=S;let a=u.clone(`flow-src-mat-${e}`);a.alpha=I.has(e)||t===d&&n===d?1:.22,s.material=a,s.isPickable=!1,h.add(e),z.push(s,a)}if(!x.has(s.mesh)){let e=k.CreateSphere(`flow-target-${s.mesh}`,{diameter:.2*P,segments:7},M);e.position=L;let a=c.clone(`flow-target-mat-${s.mesh}`);a.alpha=C.has(s.mesh)||t===d&&n===d?1:.22,e.material=a,e.isPickable=!0,e.metadata={hoverLabel:s.mesh},x.add(s.mesh),z.push(e,a)}let N=S.add(L).scale(.5),A=N.subtract(w),E=Math.sqrt(A.x*A.x+A.y*A.y+A.z*A.z),O=E>1e-6?A.x/E:0,Z=E>1e-6?A.y/E:1,q=E>1e-6?A.z/E:0,T=(.35+s.count/r*.75)*P,F=new m(N.x+O*T,N.y+Z*T+.12*P,N.z+q*T),V=[];for(let e=0;e<=18;e++){let t=e/18,n=1-t;V.push(new m(n*n*S.x+2*n*t*F.x+t*t*L.x,n*n*S.y+2*n*t*F.y+t*t*L.y,n*n*S.z+2*n*t*F.z+t*t*L.z))}let W=s.count/r,[X,H,D]=(0,o.heatRgb)(W),U=k.CreateTube(`flow-link-${s.mesh}-${e}`,{path:V,radius:(l?1:.4)*(.012+.04*W)*P,tessellation:8,cap:0,sideOrientation:0},M),K=new v(`flow-link-mat-${s.mesh}-${e}`,M);K.disableLighting=!0,K.emissiveColor=new b(X,H,D),K.alpha=l?.35+.65*W:.08,U.material=K,U.isPickable=!0,U.metadata={hoverLabel:s.mesh},z.push(U,K)}let B=s?.origin;if(B){let e=new m(B[0],B[1],B[2]),t=k.CreateSphere("flow-standpoint",{diameter:.26*P,segments:10},M);t.position=e;let n=new v("flow-standpoint-mat",M);n.disableLighting=!0,n.emissiveColor=new b(.95,.45,.95),t.material=n,t.isPickable=!1;let s=k.CreateLines("flow-standpoint-stem",{points:[e,new m(e.x,w.y,e.z)]},M);s.color=new b(.95,.45,.95),s.isPickable=!1,z.push(t,n,s)}};ek.current=S,S()}w.runRenderLoop(()=>M.render());let y=()=>w.resize();window.addEventListener("resize",y);let $=(0,u.attachMeshHover)(M,t,V),P=(0,r.attachDoubleClickFocus)(M,t,a);B("ready"),s=()=>{window.removeEventListener("resize",y),$(),P(),V(null),ek.current=null,I.current=null,C.current=null,_(),M.dispose(),w.dispose()}}catch(e){if(n)return;B("error"),S(e instanceof Error?e.message:"Failed to render flow links.")}})(),()=>{n=!0,s?.()}},[et,j,ev]),(0,n.useEffect)(()=>{ek.current?.()},[es,ee,w,L,A,O,Q]),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("canvas",{ref:$,className:"aspect-video w-full rounded-lg border border-edge bg-ink"}),F?(0,t.jsx)("div",{className:"pointer-events-none absolute z-10 max-w-[16rem] truncate rounded border border-edge bg-ink/90 px-1.5 py-0.5 text-xs text-white shadow backdrop-blur",style:{left:F.x+12,top:F.y+12},children:F.label}):null,"ready"===P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"absolute left-3 top-3 flex flex-wrap gap-2",children:[J?(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-edge bg-ink/80 p-0.5 text-xs backdrop-blur",children:[(0,t.jsx)(x,{active:!et,onClick:()=>T("aggregate"),children:"Aggregate"}),(0,t.jsx)(x,{active:et,onClick:()=>T("twostage"),children:"Two-stage"})]}):null,U?(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-edge bg-ink/80 p-0.5 text-xs backdrop-blur",children:[(0,t.jsx)(x,{active:"first-person"===W,onClick:()=>X("first-person"),children:"Walk"}),(0,t.jsx)(x,{active:"viewer"===W,onClick:()=>X("viewer"),disabled:y,title:y?"Orbit (viewer) flow isn't available for walkable scenes":void 0,children:"Orbit"}),(0,t.jsx)(x,{active:"all"===W,onClick:()=>X("all"),children:"All"})]}):null,J?(0,t.jsx)(b,{label:"Standpoint",value:O,onChange:Z,allLabel:"All standpoints",options:er}):null,(0,t.jsx)(b,{label:et?"Gaze":"Source",value:A,onChange:E,allLabel:et?"All gaze sectors":"All sources",options:eu}),(0,t.jsx)(b,{label:"Mesh",value:L,onChange:N,allLabel:"All meshes",options:ec})]}),et?(0,t.jsx)(k,{standpoints:G,proxyMeshes:w,selectedKey:O,onSelect:e=>Z(t=>t===e?d:e)}):null,(0,t.jsxs)("div",{className:"pointer-events-none absolute bottom-3 right-3 flex max-w-[20rem] flex-col items-end gap-2",children:[U&&!y?(0,t.jsxs)("div",{className:"rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg-muted backdrop-blur",children:["Orbit-dominated scene — viewer ",(0,t.jsx)("em",{children:"position"})," adds little here. Use the"," ",(0,t.jsx)("strong",{children:"View dome"})," (§7.5) above for where viewers looked."]}):null,(0,t.jsxs)("div",{className:"rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg backdrop-blur",children:["Active links: ",el,"/",eo]})]}),(0,t.jsx)(h.ZoomButtons,{onZoom:e=>I.current&&(0,r.stepZoom)(I.current,e),onReset:()=>I.current&&C.current&&(0,r.resetFocus)(I.current,C.current)}),(0,t.jsx)(c.HeatLegend,{title:"Flow volume",lowLabel:"fewer links",highLabel:"dominant links",note:et?"Three columns: standpoint → gaze sector → mesh. Top standpoints/meshes are kept; the tail folds into an “Other” node. Pick a standpoint (or click the minimap), gaze sector, or mesh to emphasize matching ribbons.":"Each arc aggregates clicks from one camera-direction bin to a mesh. Pick a source or mesh to emphasize matching links and dim the rest."})]}):(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-sm text-fg-muted",children:"loading"===P?"Rendering…":"empty"===P?"No aggregate flow links in range.":"error"===P?R??"Flow view unavailable.":null})]})}],19399)},48159,e=>{e.v(t=>Promise.all(["static/chunks/1365lgwdd4vuo.js","static/chunks/27hbplu797elx.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/3rl_nhqwew40w.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/103x4jwovb6d-.js","static/chunks/12ory_c78yl31.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/1dgf112ehnhm1.js"].map(t=>e.l(t))).then(()=>t(85303)))},7614,e=>{e.v(t=>Promise.all(["static/chunks/2pb_uosb-aa8x.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/3lladf_wemm-2.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/0u7577db_ivyr.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/2s4fzgzkwjluu.js"].map(t=>e.l(t))).then(()=>t(34769)))},41656,e=>{e.v(t=>Promise.all(["static/chunks/2gf8l6hbmt7v3.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/0gsh_d0m5xss1.js","static/chunks/0u7577db_ivyr.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/3r7v7un976sn7.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/15qfoj-vl9thu.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/2a3iy701j4r_y.js","static/chunks/3lladf_wemm-2.js","static/chunks/3gjvl1p-tugfe.js"].map(t=>e.l(t))).then(()=>t(29183)))},84694,e=>{e.v(t=>Promise.all(["static/chunks/1iojfx3-g4_n9.js","static/chunks/1upy8a5cb75kt.js","static/chunks/0u7577db_ivyr.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/43_fau1gg69eo.js"].map(t=>e.l(t))).then(()=>t(5153)))},13160,e=>{e.v(t=>Promise.all(["static/chunks/18h9ugdz6igdb.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/1iojfx3-g4_n9.js"].map(t=>e.l(t))).then(()=>t(82297)))},9786,e=>{e.v(t=>Promise.all(["static/chunks/2gf8l6hbmt7v3.js","static/chunks/39pkya0_bvcaj.js","static/chunks/0zydv7y47dxgh.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/3lladf_wemm-2.js","static/chunks/3s7hqij6xp_4e.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/15qfoj-vl9thu.js","static/chunks/0u7577db_ivyr.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/3v8kgnjk27wbe.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/166yqx3_qvbpy.js","static/chunks/2a3iy701j4r_y.js"].map(t=>e.l(t))).then(()=>t(40810)))},33664,e=>{e.v(t=>Promise.all(["static/chunks/146ou-ohb_qhs.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/16gwjao676ieb.js","static/chunks/0u7577db_ivyr.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/25gep78-izw79.js","static/chunks/2jio3sio-_43z.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/3lladf_wemm-2.js","static/chunks/15qfoj-vl9thu.js","static/chunks/2s4fzgzkwjluu.js"].map(t=>e.l(t))).then(()=>t(754)))},4977,e=>{e.v(t=>Promise.all(["static/chunks/1iojfx3-g4_n9.js","static/chunks/3lladf_wemm-2.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/0tsk32q-88t_7.js","static/chunks/1xed71f608m4b.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/0u7577db_ivyr.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/0q8pt8fd0ma30.js"].map(t=>e.l(t))).then(()=>t(12675)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12877,t=>{"use strict";class e{constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}toGlobal(t,i){return new e(this.x*t,this.y*i,this.width*t,this.height*i)}toGlobalToRef(t,e,i){return i.x=this.x*t,i.y=this.y*e,i.width=this.width*t,i.height=this.height*e,this}clone(){return new e(this.x,this.y,this.width,this.height)}}t.s(["Viewport",0,e])},67213,t=>{"use strict";var e=t.i(51843);let i=!1;t.s(["RegisterAbstractEngineRenderPass",0,function(){i||(i=!0,e.AbstractEngine.prototype.getRenderPassNames=function(){return this._renderPassNames},e.AbstractEngine.prototype.getCurrentRenderPassName=function(){return this._renderPassNames[this.currentRenderPassId]},e.AbstractEngine.prototype.createRenderPassId=function(t){let i=++e.AbstractEngine._RenderPassIdCounter;return this._renderPassNames[i]=t??"NONAME",i},e.AbstractEngine.prototype.releaseRenderPassId=function(t){this._renderPassNames[t]=void 0;for(let e=0;e<this.scenes.length;++e){let i=this.scenes[e];for(let e=0;e<i.meshes.length;++e){let s=i.meshes[e];if(s._releaseRenderPassId(t),s.subMeshes)for(let e=0;e<s.subMeshes.length;++e)s.subMeshes[e]._removeDrawWrapper(t)}}})}])},55288,t=>{"use strict";let e,i,s,r,a,o,h,n,c,l,_,m,u,g,d,p,f,R,P,M,C,v,x,b,I,E,S,O,T,A,y,V,D,z,Z,w,L,N,F,j,k,H,q,B,G;var W,U=t.i(57575),X=t.i(9855),Y=t.i(32451),K=t.i(3864),Q=t.i(69400),$=t.i(52624),J=t.i(16347),tt=t.i(44520),te=t.i(85050),ti=t.i(12877),ts=t.i(57660),tr=t.i(67213),ta=t.i(2060);let to=(P=$.Node,M=[],C=[],v=[],x=[],b=[],I=[],E=[],S=[],O=[],T=[],A=[],y=[],V=[],D=[],z=[],Z=[],w=[],L=[],N=[],F=[],j=[],k=[],H=[],q=[],B=[],W=class extends P{get position(){return this._position}set position(t){this._position=t}set upVector(t){this._upVector=t}get upVector(){return this._upVector}get screenArea(){let t,e;if(this.mode===W.PERSPECTIVE_CAMERA)this.fovMode===W.FOVMODE_VERTICAL_FIXED?(e=2*this.minZ*Math.tan(this.fov/2),t=this.getEngine().getAspectRatio(this)*e):e=(t=2*this.minZ*Math.tan(this.fov/2))/this.getEngine().getAspectRatio(this);else{let i=this.getEngine().getRenderWidth()/2,s=this.getEngine().getRenderHeight()/2;t=(this.orthoRight??i)-(this.orthoLeft??-i),e=(this.orthoTop??s)-(this.orthoBottom??-s)}return t*e}set orthoLeft(t){for(let e of(this._orthoLeft=t,this._rigCameras))e.orthoLeft=t}get orthoLeft(){return this._orthoLeft}set orthoRight(t){for(let e of(this._orthoRight=t,this._rigCameras))e.orthoRight=t}get orthoRight(){return this._orthoRight}set orthoBottom(t){for(let e of(this._orthoBottom=t,this._rigCameras))e.orthoBottom=t}get orthoBottom(){return this._orthoBottom}set orthoTop(t){for(let e of(this._orthoTop=t,this._rigCameras))e.orthoTop=t}get orthoTop(){return this._orthoTop}setFocalLength(t,e=36){this.fov=2*Math.atan(e/(2*t))}get inertia(){return this._baseInertia}set inertia(t){this._baseInertia=t}set mode(t){for(let e of(this._mode=t,this._rigCameras))e.mode=t}get mode(){return this._mode}get hasMoved(){return this._hasMoved}constructor(t,e,i,s=!0){(0,tr.RegisterAbstractEngineRenderPass)(),super(t,i,!1),this.inputs=(0,U.__runInitializers)(this,M),this._position=(0,U.__runInitializers)(this,C,Q.Vector3.Zero()),this._upVector=((0,U.__runInitializers)(this,v),(0,U.__runInitializers)(this,x,Q.Vector3.Up())),this.oblique=((0,U.__runInitializers)(this,b),null),this._orthoLeft=null,this._orthoRight=null,this._orthoBottom=null,this._orthoTop=null,this.fov=(0,U.__runInitializers)(this,I,.8),this.projectionPlaneTilt=((0,U.__runInitializers)(this,E),(0,U.__runInitializers)(this,S,0)),this.minZ=((0,U.__runInitializers)(this,O),(0,U.__runInitializers)(this,T,1)),this.maxZ=((0,U.__runInitializers)(this,A),(0,U.__runInitializers)(this,y,1e4)),this._baseInertia=((0,U.__runInitializers)(this,V),.9),this._mode=W.PERSPECTIVE_CAMERA,this.isIntermediate=!1,this.viewport=new ti.Viewport(0,0,1,1),this.layerMask=(0,U.__runInitializers)(this,D,0xfffffff),this.fovMode=((0,U.__runInitializers)(this,z),(0,U.__runInitializers)(this,Z,W.FOVMODE_VERTICAL_FIXED)),this.cameraRigMode=((0,U.__runInitializers)(this,w),(0,U.__runInitializers)(this,L,W.RIG_MODE_NONE)),this.interaxialDistance=((0,U.__runInitializers)(this,N),(0,U.__runInitializers)(this,F,void 0)),this.isStereoscopicSideBySide=((0,U.__runInitializers)(this,j),(0,U.__runInitializers)(this,k,void 0)),this.ignoreCameraMaxZ=((0,U.__runInitializers)(this,H),(0,U.__runInitializers)(this,q,!1)),this.customRenderTargets=((0,U.__runInitializers)(this,B),[]),this.outputRenderTarget=null,this.onViewMatrixChangedObservable=new K.Observable,this.onProjectionMatrixChangedObservable=new K.Observable,this.onAfterCheckInputsObservable=new K.Observable,this.onRestoreStateObservable=new K.Observable,this.isRigCamera=!1,this._hasMoved=!1,this._rigCameras=[],this._skipRendering=!1,this._projectionMatrix=new Q.Matrix,this._postProcesses=[],this._activeMeshes=new Y.SmartArray(256),this._globalPosition=Q.Vector3.Zero(),this._computedViewMatrix=Q.Matrix.Identity(),this._doNotComputeProjectionMatrix=!1,this._transformMatrix=Q.Matrix.Zero(),this._refreshFrustumPlanes=!0,this._absoluteRotation=Q.Quaternion.Identity(),this._isCamera=!0,this._isLeftCamera=!1,this._isRightCamera=!1,this.layerMask=this.getScene().defaultCameraLayerMask,this.getScene().addCamera(this),s&&!this.getScene().activeCamera&&(this.getScene().activeCamera=this),this.position=e,this.renderPassId=this.getScene().getEngine().createRenderPassId(`Camera ${t}`)}storeState(){return this._stateStored=!0,this._storedFov=this.fov,this}hasStateStored(){return!!this._stateStored}_restoreStateValues(){return!!this._stateStored&&(this.fov=this._storedFov,!0)}restoreState(){return!!this._restoreStateValues()&&(this.onRestoreStateObservable.notifyObservers(this),!0)}getClassName(){return"Camera"}toString(t){let e="Name: "+this.name;if(e+=", type: "+this.getClassName(),this.animations)for(let i=0;i<this.animations.length;i++)e+=", animation[0]: "+this.animations[i].toString(t);return e}applyVerticalCorrection(){let t=this.absoluteRotation.toEulerAngles();this.projectionPlaneTilt=this._scene.useRightHandedSystem?-t.x:t.x}get globalPosition(){return this._globalPosition}getActiveMeshes(){return this._activeMeshes}isActiveMesh(t){return -1!==this._activeMeshes.indexOf(t)}isReady(t=!1){if(t){for(let t of this._postProcesses)if(t&&!t.isReady())return!1}return super.isReady(t)}_initCache(){super._initCache(),this._cache.position=new Q.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.upVector=new Q.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.mode=void 0,this._cache.minZ=void 0,this._cache.maxZ=void 0,this._cache.fov=void 0,this._cache.fovMode=void 0,this._cache.aspectRatio=void 0,this._cache.orthoLeft=void 0,this._cache.orthoRight=void 0,this._cache.orthoBottom=void 0,this._cache.orthoTop=void 0,this._cache.obliqueAngle=void 0,this._cache.obliqueLength=void 0,this._cache.obliqueOffset=void 0,this._cache.renderWidth=void 0,this._cache.renderHeight=void 0}_updateCache(t){t||super._updateCache(),this._cache.position.copyFrom(this.position),this._cache.upVector.copyFrom(this.upVector)}_isSynchronized(){return this._isSynchronizedViewMatrix()&&this._isSynchronizedProjectionMatrix()}_isSynchronizedViewMatrix(){return!!super._isSynchronized()&&this._cache.position.equals(this.position)&&this._cache.upVector.equals(this.upVector)&&this.isSynchronizedWithParent()}_isSynchronizedProjectionMatrix(){let t=this.ignoreCameraMaxZ?0:this.maxZ,e=this._cache.mode===this.mode&&this._cache.minZ===this.minZ&&this._cache.maxZ===t;if(!e)return!1;let i=this.getEngine();return this.mode===W.PERSPECTIVE_CAMERA?e=this._cache.fov===this.fov&&this._cache.fovMode===this.fovMode&&this._cache.aspectRatio===i.getAspectRatio(this)&&this._cache.projectionPlaneTilt===this.projectionPlaneTilt:(e=this._cache.orthoLeft===this.orthoLeft&&this._cache.orthoRight===this.orthoRight&&this._cache.orthoBottom===this.orthoBottom&&this._cache.orthoTop===this.orthoTop&&this._cache.renderWidth===i.getRenderWidth()&&this._cache.renderHeight===i.getRenderHeight(),this.oblique&&(e=e&&this._cache.obliqueAngle===this.oblique.angle&&this._cache.obliqueLength===this.oblique.length&&this._cache.obliqueOffset===this.oblique.offset)),e}attachControl(t,e){}detachControl(t){}update(){this._hasMoved=!1,this._checkInputs(),this.cameraRigMode!==W.RIG_MODE_NONE&&this._updateRigCameras(),this.getViewMatrix(),this.getProjectionMatrix()}_checkInputs(){this.onAfterCheckInputsObservable.notifyObservers(this)}get rigCameras(){return this._rigCameras}get rigPostProcess(){return this._rigPostProcess}_getFirstPostProcess(){for(let t=0;t<this._postProcesses.length;t++)if(null!==this._postProcesses[t])return this._postProcesses[t];return null}_cascadePostProcessesToRigCams(){let t=this._getFirstPostProcess();t&&t.markTextureDirty();for(let t=0,e=this._rigCameras.length;t<e;t++){let e=this._rigCameras[t],i=e._rigPostProcess;i?("pass"===i.getEffectName()&&(e.isIntermediate=0===this._postProcesses.length),e._postProcesses=this._postProcesses.slice(0).concat(i),i.markTextureDirty()):e._postProcesses=this._postProcesses.slice(0)}}attachPostProcess(t,e=null){return!t.isReusable()&&this._postProcesses.indexOf(t)>-1?(J.Logger.Error("You're trying to reuse a post process not defined as reusable."),0):(null==e||e<0?this._postProcesses.push(t):null===this._postProcesses[e]?this._postProcesses[e]=t:this._postProcesses.splice(e,0,t),this._cascadePostProcessesToRigCams(),this._scene.prePassRenderer&&this._scene.prePassRenderer.markAsDirty(),this._postProcesses.indexOf(t))}detachPostProcess(t){let e=this._postProcesses.indexOf(t);-1!==e&&(this._postProcesses[e]=null),this._scene.prePassRenderer&&this._scene.prePassRenderer.markAsDirty(),this._cascadePostProcessesToRigCams()}getWorldMatrix(){return this._isSynchronizedViewMatrix()||this.getViewMatrix(),this._worldMatrix}_getViewMatrix(){return Q.Matrix.Identity()}getViewMatrix(t){return!t&&this._isSynchronizedViewMatrix()||(this._hasMoved=!0,this.updateCache(),this._computedViewMatrix=this._getViewMatrix(),this._currentRenderId=this.getScene().getRenderId(),this._childUpdateId++,this._refreshFrustumPlanes=!0,this._cameraRigParams&&this._cameraRigParams.vrPreViewMatrix&&this._computedViewMatrix.multiplyToRef(this._cameraRigParams.vrPreViewMatrix,this._computedViewMatrix),this.parent&&this.parent.onViewMatrixChangedObservable&&this.parent.onViewMatrixChangedObservable.notifyObservers(this.parent),this.onViewMatrixChangedObservable.notifyObservers(this),this._computedViewMatrix.invertToRef(this._worldMatrix),this._worldMatrix.getTranslationToRef(this._globalPosition)),this._computedViewMatrix}freezeProjectionMatrix(t){this._doNotComputeProjectionMatrix=!0,void 0!==t&&(this._projectionMatrix=t)}unfreezeProjectionMatrix(){this._doNotComputeProjectionMatrix=!1}getProjectionMatrix(t){if(this._doNotComputeProjectionMatrix||!t&&this._isSynchronizedProjectionMatrix())return this._projectionMatrix;let e=this.ignoreCameraMaxZ?0:this.maxZ;this._cache.mode=this.mode,this._cache.minZ=this.minZ,this._cache.maxZ=e,this._refreshFrustumPlanes=!0;let i=this.getEngine(),s=this.getScene(),r=i.useReverseDepthBuffer;if(this.mode===W.PERSPECTIVE_CAMERA)this._cache.fov=this.fov,this._cache.fovMode=this.fovMode,this._cache.aspectRatio=i.getAspectRatio(this),this._cache.projectionPlaneTilt=this.projectionPlaneTilt,this.minZ<=0&&(this.minZ=.1),(s.useRightHandedSystem?Q.Matrix.PerspectiveFovRHToRef:Q.Matrix.PerspectiveFovLHToRef)(this.fov,i.getAspectRatio(this),r?e:this.minZ,r?this.minZ:e,this._projectionMatrix,this.fovMode===W.FOVMODE_VERTICAL_FIXED,i.isNDCHalfZRange,this.projectionPlaneTilt,r);else{let t=i.getRenderWidth()/2,a=i.getRenderHeight()/2;s.useRightHandedSystem?this.oblique?Q.Matrix.ObliqueOffCenterRHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this.oblique.length,this.oblique.angle,this._computeObliqueDistance(this.oblique.offset),this._projectionMatrix,i.isNDCHalfZRange):Q.Matrix.OrthoOffCenterRHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this._projectionMatrix,i.isNDCHalfZRange):this.oblique?Q.Matrix.ObliqueOffCenterLHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this.oblique.length,this.oblique.angle,this._computeObliqueDistance(this.oblique.offset),this._projectionMatrix,i.isNDCHalfZRange):Q.Matrix.OrthoOffCenterLHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this._projectionMatrix,i.isNDCHalfZRange),this._cache.orthoLeft=this.orthoLeft,this._cache.orthoRight=this.orthoRight,this._cache.orthoBottom=this.orthoBottom,this._cache.orthoTop=this.orthoTop,this._cache.obliqueAngle=this.oblique?.angle,this._cache.obliqueLength=this.oblique?.length,this._cache.obliqueOffset=this.oblique?.offset,this._cache.renderWidth=i.getRenderWidth(),this._cache.renderHeight=i.getRenderHeight()}return this.onProjectionMatrixChangedObservable.notifyObservers(this),this._projectionMatrix}getTransformationMatrix(){return this._computedViewMatrix.multiplyToRef(this._projectionMatrix,this._transformMatrix),this._transformMatrix}_computeObliqueDistance(t){return(this.radius||(this.target?Q.Vector3.Distance(this.position,this.target):this.position.length()))+t}_updateFrustumPlanes(){this._refreshFrustumPlanes&&(this.getTransformationMatrix(),this._frustumPlanes?ts.Frustum.GetPlanesToRef(this._transformMatrix,this._frustumPlanes):this._frustumPlanes=ts.Frustum.GetPlanes(this._transformMatrix),this._refreshFrustumPlanes=!1)}isInFrustum(t,e=!1){if(this._updateFrustumPlanes(),!e||!(this.rigCameras.length>0))return t.isInFrustum(this._frustumPlanes);{let e=!1;for(let i of this.rigCameras)i._updateFrustumPlanes(),e=e||t.isInFrustum(i._frustumPlanes);return e}}isCompletelyInFrustum(t){return this._updateFrustumPlanes(),t.isCompletelyInFrustum(this._frustumPlanes)}getForwardRay(t=100,e,i){throw(0,te._WarnImport)("Ray")}getForwardRayToRef(t,e=100,i,s){throw(0,te._WarnImport)("Ray")}dispose(t,e=!1){for(this.onViewMatrixChangedObservable.clear(),this.onProjectionMatrixChangedObservable.clear(),this.onAfterCheckInputsObservable.clear(),this.onRestoreStateObservable.clear(),this.inputs&&this.inputs.clear(),this.getScene().stopAnimation(this),this.getScene().removeCamera(this);this._rigCameras.length>0;){let t=this._rigCameras.pop();t&&t.dispose()}if(this._parentContainer){let t=this._parentContainer.cameras.indexOf(this);t>-1&&this._parentContainer.cameras.splice(t,1),this._parentContainer=null}if(this._rigPostProcess)this._rigPostProcess.dispose(this),this._rigPostProcess=null,this._postProcesses.length=0;else if(this.cameraRigMode!==W.RIG_MODE_NONE)this._rigPostProcess=null,this._postProcesses.length=0;else{let t=this._postProcesses.length;for(;--t>=0;){let e=this._postProcesses[t];e&&e.dispose(this)}}let i=this.customRenderTargets.length;for(;--i>=0;)this.customRenderTargets[i].dispose();this.customRenderTargets.length=0,this._activeMeshes.dispose(),this.getScene().getEngine().releaseRenderPassId(this.renderPassId),super.dispose(t,e)}get isLeftCamera(){return this._isLeftCamera}get isRightCamera(){return this._isRightCamera}get leftCamera(){return this._rigCameras.length<1?null:this._rigCameras[0]}get rightCamera(){return this._rigCameras.length<2?null:this._rigCameras[1]}getLeftTarget(){return this._rigCameras.length<1?null:this._rigCameras[0].getTarget()}getRightTarget(){return this._rigCameras.length<2?null:this._rigCameras[1].getTarget()}setCameraRigMode(t,e){if(this.cameraRigMode!==t){for(;this._rigCameras.length>0;){let t=this._rigCameras.pop();t&&t.dispose()}if(this.cameraRigMode=t,this._cameraRigParams={},this._cameraRigParams.interaxialDistance=e.interaxialDistance||.0637,this._cameraRigParams.stereoHalfAngle=this._cameraRigParams.interaxialDistance/.0637*(Math.PI/180),this.cameraRigMode!==W.RIG_MODE_NONE){let t=this.createRigCamera(this.name+"_L",0);t&&(t._isLeftCamera=!0);let e=this.createRigCamera(this.name+"_R",1);e&&(e._isRightCamera=!0),t&&e&&(this._rigCameras.push(t),this._rigCameras.push(e))}this._setRigMode(e),this._cascadePostProcessesToRigCams(),this.update()}}_setRigMode(t){}_getVRProjectionMatrix(){return Q.Matrix.PerspectiveFovLHToRef(this._cameraRigParams.vrMetrics.aspectRatioFov,this._cameraRigParams.vrMetrics.aspectRatio,this.minZ,this.ignoreCameraMaxZ?0:this.maxZ,this._cameraRigParams.vrWorkMatrix,!0,this.getEngine().isNDCHalfZRange),this._cameraRigParams.vrWorkMatrix.multiplyToRef(this._cameraRigParams.vrHMatrix,this._projectionMatrix),this._projectionMatrix}setCameraRigParameter(t,e){this._cameraRigParams||(this._cameraRigParams={}),this._cameraRigParams[t]=e,"interaxialDistance"===t&&(this._cameraRigParams.stereoHalfAngle=e/.0637*(Math.PI/180))}createRigCamera(t,e){return null}_updateRigCameras(){for(let t=0;t<this._rigCameras.length;t++)this._rigCameras[t].minZ=this.minZ,this._rigCameras[t].maxZ=this.ignoreCameraMaxZ?0:this.maxZ,this._rigCameras[t].fov=this.fov,this._rigCameras[t].upVector.copyFrom(this.upVector);this.cameraRigMode===W.RIG_MODE_STEREOSCOPIC_ANAGLYPH&&(this._rigCameras[0].viewport=this._rigCameras[1].viewport=this.viewport)}_setupInputs(){}serialize(){let t=ta.SerializationHelper.Serialize(this);return t.uniqueId=this.uniqueId,t.type=this.getClassName(),this.parent&&this.parent._serializeAsParent(t),this.inputs&&this.inputs.serialize(t),ta.SerializationHelper.AppendSerializedAnimations(this,t),t.ranges=this.serializeAnimationRanges(),t.isEnabled=this.isEnabled(),t}clone(t,e=null){let i=ta.SerializationHelper.Clone(W.GetConstructorFromName(this.getClassName(),t,this.getScene(),this.interaxialDistance,this.isStereoscopicSideBySide),this);return i.name=t,i.parent=e,this.onClonedObservable.notifyObservers(i),i}getDirection(t){let e=Q.Vector3.Zero();return this.getDirectionToRef(t,e),e}get absoluteRotation(){return this.getWorldMatrix().decompose(void 0,this._absoluteRotation),this._absoluteRotation}getDirectionToRef(t,e){Q.Vector3.TransformNormalToRef(t,this.getWorldMatrix(),e)}static GetConstructorFromName(t,e,i,s=0,r=!0){let a=$.Node.Construct(t,e,i,{interaxial_distance:s,isStereoscopicSideBySide:r});return a||(()=>W._CreateDefaultParsedCamera(e,i))}computeWorldMatrix(){return this.getWorldMatrix()}_calculateHandednessMultiplier(){let t=this.getScene().useRightHandedSystem?-1:1;return this.parent&&0>this.parent._getWorldMatrixDeterminant()&&(t*=-1),t}},G="function"==typeof Symbol&&Symbol.metadata?Object.create(P[Symbol.metadata]??null):void 0,e=[(0,X.serializeAsVector3)("position")],i=[(0,X.serializeAsVector3)("upVector")],s=[(0,X.serialize)()],r=[(0,X.serialize)()],a=[(0,X.serialize)()],o=[(0,X.serialize)()],h=[(0,X.serialize)()],n=[(0,X.serialize)()],c=[(0,X.serialize)()],l=[(0,X.serialize)()],_=[(0,X.serialize)()],m=[(0,X.serialize)()],u=[(0,X.serialize)()],g=[(0,X.serialize)()],d=[(0,X.serialize)()],p=[(0,X.serialize)()],f=[(0,X.serialize)()],R=[(0,X.serialize)()],(0,U.__esDecorate)(W,null,s,{kind:"getter",name:"orthoLeft",static:!1,private:!1,access:{has:t=>"orthoLeft"in t,get:t=>t.orthoLeft},metadata:G},null,M),(0,U.__esDecorate)(W,null,r,{kind:"getter",name:"orthoRight",static:!1,private:!1,access:{has:t=>"orthoRight"in t,get:t=>t.orthoRight},metadata:G},null,M),(0,U.__esDecorate)(W,null,a,{kind:"getter",name:"orthoBottom",static:!1,private:!1,access:{has:t=>"orthoBottom"in t,get:t=>t.orthoBottom},metadata:G},null,M),(0,U.__esDecorate)(W,null,o,{kind:"getter",name:"orthoTop",static:!1,private:!1,access:{has:t=>"orthoTop"in t,get:t=>t.orthoTop},metadata:G},null,M),(0,U.__esDecorate)(W,null,_,{kind:"getter",name:"inertia",static:!1,private:!1,access:{has:t=>"inertia"in t,get:t=>t.inertia},metadata:G},null,M),(0,U.__esDecorate)(W,null,m,{kind:"getter",name:"mode",static:!1,private:!1,access:{has:t=>"mode"in t,get:t=>t.mode},metadata:G},null,M),(0,U.__esDecorate)(null,null,e,{kind:"field",name:"_position",static:!1,private:!1,access:{has:t=>"_position"in t,get:t=>t._position,set:(t,e)=>{t._position=e}},metadata:G},C,v),(0,U.__esDecorate)(null,null,i,{kind:"field",name:"_upVector",static:!1,private:!1,access:{has:t=>"_upVector"in t,get:t=>t._upVector,set:(t,e)=>{t._upVector=e}},metadata:G},x,b),(0,U.__esDecorate)(null,null,h,{kind:"field",name:"fov",static:!1,private:!1,access:{has:t=>"fov"in t,get:t=>t.fov,set:(t,e)=>{t.fov=e}},metadata:G},I,E),(0,U.__esDecorate)(null,null,n,{kind:"field",name:"projectionPlaneTilt",static:!1,private:!1,access:{has:t=>"projectionPlaneTilt"in t,get:t=>t.projectionPlaneTilt,set:(t,e)=>{t.projectionPlaneTilt=e}},metadata:G},S,O),(0,U.__esDecorate)(null,null,c,{kind:"field",name:"minZ",static:!1,private:!1,access:{has:t=>"minZ"in t,get:t=>t.minZ,set:(t,e)=>{t.minZ=e}},metadata:G},T,A),(0,U.__esDecorate)(null,null,l,{kind:"field",name:"maxZ",static:!1,private:!1,access:{has:t=>"maxZ"in t,get:t=>t.maxZ,set:(t,e)=>{t.maxZ=e}},metadata:G},y,V),(0,U.__esDecorate)(null,null,u,{kind:"field",name:"layerMask",static:!1,private:!1,access:{has:t=>"layerMask"in t,get:t=>t.layerMask,set:(t,e)=>{t.layerMask=e}},metadata:G},D,z),(0,U.__esDecorate)(null,null,g,{kind:"field",name:"fovMode",static:!1,private:!1,access:{has:t=>"fovMode"in t,get:t=>t.fovMode,set:(t,e)=>{t.fovMode=e}},metadata:G},Z,w),(0,U.__esDecorate)(null,null,d,{kind:"field",name:"cameraRigMode",static:!1,private:!1,access:{has:t=>"cameraRigMode"in t,get:t=>t.cameraRigMode,set:(t,e)=>{t.cameraRigMode=e}},metadata:G},L,N),(0,U.__esDecorate)(null,null,p,{kind:"field",name:"interaxialDistance",static:!1,private:!1,access:{has:t=>"interaxialDistance"in t,get:t=>t.interaxialDistance,set:(t,e)=>{t.interaxialDistance=e}},metadata:G},F,j),(0,U.__esDecorate)(null,null,f,{kind:"field",name:"isStereoscopicSideBySide",static:!1,private:!1,access:{has:t=>"isStereoscopicSideBySide"in t,get:t=>t.isStereoscopicSideBySide,set:(t,e)=>{t.isStereoscopicSideBySide=e}},metadata:G},k,H),(0,U.__esDecorate)(null,null,R,{kind:"field",name:"ignoreCameraMaxZ",static:!1,private:!1,access:{has:t=>"ignoreCameraMaxZ"in t,get:t=>t.ignoreCameraMaxZ,set:(t,e)=>{t.ignoreCameraMaxZ=e}},metadata:G},q,B),G&&Object.defineProperty(W,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:G}),W._CreateDefaultParsedCamera=(t,e)=>{throw(0,te._WarnImport)("UniversalCamera")},W.PERSPECTIVE_CAMERA=0,W.ORTHOGRAPHIC_CAMERA=1,W.FOVMODE_VERTICAL_FIXED=0,W.FOVMODE_HORIZONTAL_FIXED=1,W.RIG_MODE_NONE=0,W.RIG_MODE_STEREOSCOPIC_ANAGLYPH=10,W.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL=11,W.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED=12,W.RIG_MODE_STEREOSCOPIC_OVERUNDER=13,W.RIG_MODE_STEREOSCOPIC_INTERLACED=14,W.RIG_MODE_VR=20,W.RIG_MODE_CUSTOM=22,W.ForceAttachControlToAlwaysPreventDefault=!1,W);function th(t,e){let i=t.type,s=to.GetConstructorFromName(i,t.name,e,t.interaxial_distance,t.isStereoscopicSideBySide),r=ta.SerializationHelper.Parse(s,t,e);if(void 0!==t.parentId&&(r._waitingParentId=t.parentId),void 0!==t.parentInstanceIndex&&(r._waitingParentInstanceIndex=t.parentInstanceIndex),r.inputs&&(r.inputs.parse(t),r._setupInputs()),t.upVector&&(r.upVector=Q.Vector3.FromArray(t.upVector)),r.setPosition&&(r.position.copyFromFloats(0,0,0),r.setPosition(Q.Vector3.FromArray(t.position))),t.target&&r.setTarget&&r.setTarget(Q.Vector3.FromArray(t.target)),t.cameraRigMode){let e=t.interaxial_distance?{interaxialDistance:t.interaxial_distance}:{};r.setCameraRigMode(t.cameraRigMode,e)}if(t.animations){for(let e=0;e<t.animations.length;e++){let i=t.animations[e],s=(0,tt.GetClass)("BABYLON.Animation");s&&r.animations.push(s.Parse(i))}$.Node.ParseAnimationRanges(r,t,e)}return t.autoAnimate&&e.beginAnimation(r,t.autoAnimateFrom,t.autoAnimateTo,t.autoAnimateLoop,t.autoAnimateSpeed||1),void 0!==t.isEnabled&&r.setEnabled(t.isEnabled),r}let tn=!1;t.s(["Camera",0,to,"RegisterCamera",0,function(){tn||(tn=!0,to.Parse=th)}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68077,t=>{"use strict";var e=t.i(17884),o=t.i(75105),s=t.i(14967),i=t.i(44520);class a extends e.FlowGraphBlock{constructor(t){super(t),this.config=t,this.output=this.registerDataOutput("output",(0,o.getRichTypeFromValue)(t.value))}_updateOutputs(t){this.output.setValue(this.config.value,t)}getClassName(){return"FlowGraphConstantBlock"}serialize(t={},e=s.defaultValueSerializationFunction){super.serialize(t),e("value",this.config.value,t.config)}}let l=!1;function u(){l||(l=!0,(0,i.RegisterClass)("FlowGraphConstantBlock",a))}t.s(["FlowGraphConstantBlock",0,a,"RegisterFlowGraphConstantBlock",0,u],73156),u(),t.s([],90610),t.i(90610),t.i(73156),t.s(["FlowGraphConstantBlock",0,a],68077)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20794,99786,e=>{"use strict";let t,i,s,a,r,n,l,u,o,h,_,c,d,m,f,p,T,x,E,g,P,A,I,v,F,S,R,M,b,L,C,D,O,N,y,z,U,k,B,G,H,w,V,W,X,Y,j,K,Z,J,Q,$,q,ee,et,ei,es,ea,er,en,el,eu,eo,eh,e_,ec,ed,em,ef,ep,eT,ex,eE,eg,eP,eA,eI,ev,eF,eS,eR,eM,eb,eL,eC,eD,eO,eN,ey,ez,eU,ek,eB,eG,eH,ew,eV,eW,eX,eY,ej,eK,eZ,eJ,eQ,e$,eq,e0,e1,e4,e2,e3,e6,e9,e5,e7,e8,te,tt,ti,ts,ta,tr,tn,tl,tu,to,th,t_,tc,td,tm,tf,tp,tT,tx,tE,tg,tP,tA,tI,tv,tF,tS,tR,tM,tb,tL,tC,tD,tO,tN,ty,tz,tU,tk,tB,tG,tH,tw,tV,tW,tX,tY,tj,tK,tZ,tJ,tQ,t$,tq,t0,t1,t4,t2,t3,t6,t9,t5,t7,t8,ie,it,ii,is,ia,ir,il,iu,io,ih,i_,ic,id,im,ip,iT,ix,iE,ig,iP,iA,iI,iv,iF,iS,iR,iM,ib,iL,iC,iD,iO,iN,iy,iz,iU,ik,iB,iG,iH;var iw,iV,iW,iX,iY,ij,iK,iZ,iJ,iQ,i$,iq,i0,i1,i4,i2,i3,i6,i9,i5,i7,i8,se,st,si,ss,sa,sr,sn,sl,su,so,sh,s_=e.i(57575),sc=e.i(9855),sd=e.i(32451),sm=e.i(66460),sf=e.i(19919),sp=e.i(41041),sT=e.i(73539),sx=e.i(30469),sE=e.i(47779),sg=e.i(46533),sP=e.i(69223),sA=e.i(13099),sI=e.i(53876),sv=e.i(65493),sF=e.i(55761),sS=e.i(6949),sR=e.i(24904),sM=e.i(22052),sb=e.i(2060),sL=e.i(84741),sC=e.i(72212),sD=e.i(12186),sO=e.i(34381),sN=e.i(44520),sy=e.i(85050);let sz={effect:null,subMesh:null};class sU extends(0,sD.PrepassDefinesMixin)((0,sC.UVDefinesMixin)(sP.MaterialDefines)){}class sk extends(0,sx.ImageProcessingDefinesMixin)(sU){constructor(e){super(e),this.DIFFUSE=!1,this.DIFFUSEDIRECTUV=0,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.AMBIENT=!1,this.AMBIENTDIRECTUV=0,this.OPACITY=!1,this.OPACITYDIRECTUV=0,this.OPACITYRGB=!1,this.REFLECTION=!1,this.EMISSIVE=!1,this.EMISSIVEDIRECTUV=0,this.SPECULAR=!1,this.SPECULARDIRECTUV=0,this.BUMP=!1,this.BUMPDIRECTUV=0,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.SPECULAROVERALPHA=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHAFROMDIFFUSE=!1,this.POINTSIZE=!1,this.FOG=!1,this.SPECULARTERM=!1,this.DIFFUSEFRESNEL=!1,this.OPACITYFRESNEL=!1,this.REFLECTIONFRESNEL=!1,this.REFRACTIONFRESNEL=!1,this.EMISSIVEFRESNEL=!1,this.FRESNEL=!1,this.NORMAL=!1,this.TANGENT=!1,this.VERTEXCOLOR=!1,this.VERTEXALPHA=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.GLOSSINESS=!1,this.ROUGHNESS=!1,this.EMISSIVEASILLUMINATION=!1,this.LINKEMISSIVEWITHDIFFUSE=!1,this.REFLECTIONFRESNELFROMSPECULAR=!1,this.LIGHTMAP=!1,this.LIGHTMAPDIRECTUV=0,this.OBJECTSPACE_NORMALMAP=!1,this.USELIGHTMAPASSHADOWMAP=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFRACTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.INVERTCUBICMAP=!1,this.LOGARITHMICDEPTH=!1,this.REFRACTION=!1,this.REFRACTIONMAP_3D=!1,this.REFLECTIONOVERALPHA=!1,this.TWOSIDEDLIGHTING=!1,this.SHADOWFLOAT=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.NONUNIFORMSCALING=!1,this.PREMULTIPLYALPHA=!1,this.ALPHATEST_AFTERALLALPHACOMPUTATIONS=!1,this.ALPHABLEND=!0,this.RGBDLIGHTMAP=!1,this.RGBDREFLECTION=!1,this.RGBDREFRACTION=!1,this.MULTIVIEW=!1,this.ORDER_INDEPENDENT_TRANSPARENCY=!1,this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.IS_REFLECTION_LINEAR=!1,this.IS_REFRACTION_LINEAR=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.rebuild()}}class sB extends(0,sO.ImageProcessingMixin)(sA.PushMaterial){}let sG=(eg=sB,eP=[],eA=[],eI=[],ev=[],eF=[],eS=[],eR=[],eM=[],eb=[],eL=[],eC=[],eD=[],eO=[],eN=[],ey=[],ez=[],eU=[],ek=[],eB=[],eG=[],eH=[],ew=[],eV=[],eW=[],eX=[],eY=[],ej=[],eK=[],eZ=[],eJ=[],eQ=[],e$=[],eq=[],e0=[],e1=[],e4=[],e2=[],e3=[],e6=[],e9=[],e5=[],e7=[],e8=[],te=[],tt=[],ti=[],ts=[],ta=[],tr=[],tn=[],tl=[],tu=[],to=[],th=[],t_=[],tc=[],td=[],tm=[],tf=[],tp=[],tT=[],tx=[],tE=[],tg=[],tP=[],tA=[],tI=[],tv=[],tF=[],tS=[],tR=[],tM=[],tb=[],tL=[],tC=[],tD=[],tO=[],tN=[],ty=[],tz=[],tU=[],tk=[],tB=[],tG=[],tH=[],tw=[],tV=[],tW=[],tX=[],tY=[],tj=[],tK=[],tZ=[],tJ=[],tQ=[],t$=[],tq=[],t0=[],t1=[],t4=[],t2=[],t3=[],t6=[],t9=[],t5=[],t7=[],t8=[],ie=[],it=[],ii=[],is=[],ia=[],ir=[],il=[],iu=[],io=[],ih=[],i_=[],ic=[],id=[],im=[],ip=[],iT=[],ix=[],iE=[],ig=[],iP=[],iA=[],iI=[],iv=[],iF=[],iS=[],iR=[],iM=[],ib=[],iL=[],iC=[],iD=[],iO=[],iN=[],iy=[],iz=[],iU=[],ik=[],iB=[],iG=[],iw=class extends eg{get diffuseTexture(){return(0,s_.__classPrivateFieldGet)(this,iV,"f")}set diffuseTexture(e){(0,s_.__classPrivateFieldSet)(this,iV,e,"f")}get ambientTexture(){return(0,s_.__classPrivateFieldGet)(this,iW,"f")}set ambientTexture(e){(0,s_.__classPrivateFieldSet)(this,iW,e,"f")}get opacityTexture(){return(0,s_.__classPrivateFieldGet)(this,iX,"f")}set opacityTexture(e){(0,s_.__classPrivateFieldSet)(this,iX,e,"f")}get reflectionTexture(){return(0,s_.__classPrivateFieldGet)(this,iY,"f")}set reflectionTexture(e){(0,s_.__classPrivateFieldSet)(this,iY,e,"f")}get emissiveTexture(){return(0,s_.__classPrivateFieldGet)(this,ij,"f")}set emissiveTexture(e){(0,s_.__classPrivateFieldSet)(this,ij,e,"f")}get specularTexture(){return(0,s_.__classPrivateFieldGet)(this,iK,"f")}set specularTexture(e){(0,s_.__classPrivateFieldSet)(this,iK,e,"f")}get bumpTexture(){return(0,s_.__classPrivateFieldGet)(this,iZ,"f")}set bumpTexture(e){(0,s_.__classPrivateFieldSet)(this,iZ,e,"f")}get lightmapTexture(){return(0,s_.__classPrivateFieldGet)(this,iJ,"f")}set lightmapTexture(e){(0,s_.__classPrivateFieldSet)(this,iJ,e,"f")}get refractionTexture(){return(0,s_.__classPrivateFieldGet)(this,iQ,"f")}set refractionTexture(e){(0,s_.__classPrivateFieldSet)(this,iQ,e,"f")}get useAlphaFromDiffuseTexture(){return(0,s_.__classPrivateFieldGet)(this,i$,"f")}set useAlphaFromDiffuseTexture(e){(0,s_.__classPrivateFieldSet)(this,i$,e,"f")}get useEmissiveAsIllumination(){return(0,s_.__classPrivateFieldGet)(this,iq,"f")}set useEmissiveAsIllumination(e){(0,s_.__classPrivateFieldSet)(this,iq,e,"f")}get linkEmissiveWithDiffuse(){return(0,s_.__classPrivateFieldGet)(this,i0,"f")}set linkEmissiveWithDiffuse(e){(0,s_.__classPrivateFieldSet)(this,i0,e,"f")}get useSpecularOverAlpha(){return(0,s_.__classPrivateFieldGet)(this,i1,"f")}set useSpecularOverAlpha(e){(0,s_.__classPrivateFieldSet)(this,i1,e,"f")}get useReflectionOverAlpha(){return(0,s_.__classPrivateFieldGet)(this,i4,"f")}set useReflectionOverAlpha(e){(0,s_.__classPrivateFieldSet)(this,i4,e,"f")}get disableLighting(){return(0,s_.__classPrivateFieldGet)(this,i2,"f")}set disableLighting(e){(0,s_.__classPrivateFieldSet)(this,i2,e,"f")}get useObjectSpaceNormalMap(){return(0,s_.__classPrivateFieldGet)(this,i3,"f")}set useObjectSpaceNormalMap(e){(0,s_.__classPrivateFieldSet)(this,i3,e,"f")}get useParallax(){return(0,s_.__classPrivateFieldGet)(this,i6,"f")}set useParallax(e){(0,s_.__classPrivateFieldSet)(this,i6,e,"f")}get useParallaxOcclusion(){return(0,s_.__classPrivateFieldGet)(this,i9,"f")}set useParallaxOcclusion(e){(0,s_.__classPrivateFieldSet)(this,i9,e,"f")}get roughness(){return(0,s_.__classPrivateFieldGet)(this,i5,"f")}set roughness(e){(0,s_.__classPrivateFieldSet)(this,i5,e,"f")}get useLightmapAsShadowmap(){return(0,s_.__classPrivateFieldGet)(this,i7,"f")}set useLightmapAsShadowmap(e){(0,s_.__classPrivateFieldSet)(this,i7,e,"f")}get diffuseFresnelParameters(){return(0,s_.__classPrivateFieldGet)(this,i8,"f")}set diffuseFresnelParameters(e){(0,s_.__classPrivateFieldSet)(this,i8,e,"f")}get opacityFresnelParameters(){return(0,s_.__classPrivateFieldGet)(this,se,"f")}set opacityFresnelParameters(e){(0,s_.__classPrivateFieldSet)(this,se,e,"f")}get reflectionFresnelParameters(){return(0,s_.__classPrivateFieldGet)(this,st,"f")}set reflectionFresnelParameters(e){(0,s_.__classPrivateFieldSet)(this,st,e,"f")}get refractionFresnelParameters(){return(0,s_.__classPrivateFieldGet)(this,si,"f")}set refractionFresnelParameters(e){(0,s_.__classPrivateFieldSet)(this,si,e,"f")}get emissiveFresnelParameters(){return(0,s_.__classPrivateFieldGet)(this,ss,"f")}set emissiveFresnelParameters(e){(0,s_.__classPrivateFieldSet)(this,ss,e,"f")}get useReflectionFresnelFromSpecular(){return(0,s_.__classPrivateFieldGet)(this,sa,"f")}set useReflectionFresnelFromSpecular(e){(0,s_.__classPrivateFieldSet)(this,sa,e,"f")}get useGlossinessFromSpecularMapAlpha(){return(0,s_.__classPrivateFieldGet)(this,sr,"f")}set useGlossinessFromSpecularMapAlpha(e){(0,s_.__classPrivateFieldSet)(this,sr,e,"f")}get maxSimultaneousLights(){return(0,s_.__classPrivateFieldGet)(this,sn,"f")}set maxSimultaneousLights(e){(0,s_.__classPrivateFieldSet)(this,sn,e,"f")}get invertNormalMapX(){return(0,s_.__classPrivateFieldGet)(this,sl,"f")}set invertNormalMapX(e){(0,s_.__classPrivateFieldSet)(this,sl,e,"f")}get invertNormalMapY(){return(0,s_.__classPrivateFieldGet)(this,su,"f")}set invertNormalMapY(e){(0,s_.__classPrivateFieldSet)(this,su,e,"f")}get twoSidedLighting(){return(0,s_.__classPrivateFieldGet)(this,so,"f")}set twoSidedLighting(e){(0,s_.__classPrivateFieldSet)(this,so,e,"f")}get applyDecalMapAfterDetailMap(){return(0,s_.__classPrivateFieldGet)(this,sh,"f")}set applyDecalMapAfterDetailMap(e){(0,s_.__classPrivateFieldSet)(this,sh,e,"f")}get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(e,t,i=!1){super(e,t,void 0,i||iw.ForceGLSL),this._diffuseTexture=(0,s_.__runInitializers)(this,eP,null),iV.set(this,((0,s_.__runInitializers)(this,eA),(0,s_.__runInitializers)(this,eI,void 0))),this._ambientTexture=((0,s_.__runInitializers)(this,ev),(0,s_.__runInitializers)(this,eF,null)),iW.set(this,((0,s_.__runInitializers)(this,eS),(0,s_.__runInitializers)(this,eR,void 0))),this._opacityTexture=((0,s_.__runInitializers)(this,eM),(0,s_.__runInitializers)(this,eb,null)),iX.set(this,((0,s_.__runInitializers)(this,eL),(0,s_.__runInitializers)(this,eC,void 0))),this._reflectionTexture=((0,s_.__runInitializers)(this,eD),(0,s_.__runInitializers)(this,eO,null)),iY.set(this,((0,s_.__runInitializers)(this,eN),(0,s_.__runInitializers)(this,ey,void 0))),this._emissiveTexture=((0,s_.__runInitializers)(this,ez),(0,s_.__runInitializers)(this,eU,null)),ij.set(this,((0,s_.__runInitializers)(this,ek),(0,s_.__runInitializers)(this,eB,void 0))),this._specularTexture=((0,s_.__runInitializers)(this,eG),(0,s_.__runInitializers)(this,eH,null)),iK.set(this,((0,s_.__runInitializers)(this,ew),(0,s_.__runInitializers)(this,eV,void 0))),this._bumpTexture=((0,s_.__runInitializers)(this,eW),(0,s_.__runInitializers)(this,eX,null)),iZ.set(this,((0,s_.__runInitializers)(this,eY),(0,s_.__runInitializers)(this,ej,void 0))),this._lightmapTexture=((0,s_.__runInitializers)(this,eK),(0,s_.__runInitializers)(this,eZ,null)),iJ.set(this,((0,s_.__runInitializers)(this,eJ),(0,s_.__runInitializers)(this,eQ,void 0))),this._refractionTexture=((0,s_.__runInitializers)(this,e$),(0,s_.__runInitializers)(this,eq,null)),iQ.set(this,((0,s_.__runInitializers)(this,e0),(0,s_.__runInitializers)(this,e1,void 0))),this.ambientColor=((0,s_.__runInitializers)(this,e4),(0,s_.__runInitializers)(this,e2,new sf.Color3(0,0,0))),this.diffuseColor=((0,s_.__runInitializers)(this,e3),(0,s_.__runInitializers)(this,e6,new sf.Color3(1,1,1))),this.specularColor=((0,s_.__runInitializers)(this,e9),(0,s_.__runInitializers)(this,e5,new sf.Color3(1,1,1))),this.emissiveColor=((0,s_.__runInitializers)(this,e7),(0,s_.__runInitializers)(this,e8,new sf.Color3(0,0,0))),this.specularPower=((0,s_.__runInitializers)(this,te),(0,s_.__runInitializers)(this,tt,64)),this._useAlphaFromDiffuseTexture=((0,s_.__runInitializers)(this,ti),(0,s_.__runInitializers)(this,ts,!1)),i$.set(this,((0,s_.__runInitializers)(this,ta),(0,s_.__runInitializers)(this,tr,void 0))),this._useEmissiveAsIllumination=((0,s_.__runInitializers)(this,tn),(0,s_.__runInitializers)(this,tl,!1)),iq.set(this,((0,s_.__runInitializers)(this,tu),(0,s_.__runInitializers)(this,to,void 0))),this._linkEmissiveWithDiffuse=((0,s_.__runInitializers)(this,th),(0,s_.__runInitializers)(this,t_,!1)),i0.set(this,((0,s_.__runInitializers)(this,tc),(0,s_.__runInitializers)(this,td,void 0))),this._useSpecularOverAlpha=((0,s_.__runInitializers)(this,tm),(0,s_.__runInitializers)(this,tf,!1)),i1.set(this,((0,s_.__runInitializers)(this,tp),(0,s_.__runInitializers)(this,tT,void 0))),this._useReflectionOverAlpha=((0,s_.__runInitializers)(this,tx),(0,s_.__runInitializers)(this,tE,!1)),i4.set(this,((0,s_.__runInitializers)(this,tg),(0,s_.__runInitializers)(this,tP,void 0))),this._disableLighting=((0,s_.__runInitializers)(this,tA),(0,s_.__runInitializers)(this,tI,!1)),i2.set(this,((0,s_.__runInitializers)(this,tv),(0,s_.__runInitializers)(this,tF,void 0))),this._useObjectSpaceNormalMap=((0,s_.__runInitializers)(this,tS),(0,s_.__runInitializers)(this,tR,!1)),i3.set(this,((0,s_.__runInitializers)(this,tM),(0,s_.__runInitializers)(this,tb,void 0))),this._useParallax=((0,s_.__runInitializers)(this,tL),(0,s_.__runInitializers)(this,tC,!1)),i6.set(this,((0,s_.__runInitializers)(this,tD),(0,s_.__runInitializers)(this,tO,void 0))),this._useParallaxOcclusion=((0,s_.__runInitializers)(this,tN),(0,s_.__runInitializers)(this,ty,!1)),i9.set(this,((0,s_.__runInitializers)(this,tz),(0,s_.__runInitializers)(this,tU,void 0))),this.parallaxScaleBias=((0,s_.__runInitializers)(this,tk),(0,s_.__runInitializers)(this,tB,.05)),this._roughness=((0,s_.__runInitializers)(this,tG),(0,s_.__runInitializers)(this,tH,0)),i5.set(this,((0,s_.__runInitializers)(this,tw),(0,s_.__runInitializers)(this,tV,void 0))),this.indexOfRefraction=((0,s_.__runInitializers)(this,tW),(0,s_.__runInitializers)(this,tX,.98)),this.invertRefractionY=((0,s_.__runInitializers)(this,tY),(0,s_.__runInitializers)(this,tj,!0)),this.alphaCutOff=((0,s_.__runInitializers)(this,tK),(0,s_.__runInitializers)(this,tZ,.4)),this._useLightmapAsShadowmap=((0,s_.__runInitializers)(this,tJ),(0,s_.__runInitializers)(this,tQ,!1)),i7.set(this,((0,s_.__runInitializers)(this,t$),(0,s_.__runInitializers)(this,tq,void 0))),this._diffuseFresnelParameters=((0,s_.__runInitializers)(this,t0),(0,s_.__runInitializers)(this,t1,void 0)),i8.set(this,((0,s_.__runInitializers)(this,t4),(0,s_.__runInitializers)(this,t2,void 0))),this._opacityFresnelParameters=((0,s_.__runInitializers)(this,t3),(0,s_.__runInitializers)(this,t6,void 0)),se.set(this,((0,s_.__runInitializers)(this,t9),(0,s_.__runInitializers)(this,t5,void 0))),this._reflectionFresnelParameters=((0,s_.__runInitializers)(this,t7),(0,s_.__runInitializers)(this,t8,void 0)),st.set(this,((0,s_.__runInitializers)(this,ie),(0,s_.__runInitializers)(this,it,void 0))),this._refractionFresnelParameters=((0,s_.__runInitializers)(this,ii),(0,s_.__runInitializers)(this,is,void 0)),si.set(this,((0,s_.__runInitializers)(this,ia),(0,s_.__runInitializers)(this,ir,void 0))),this._emissiveFresnelParameters=((0,s_.__runInitializers)(this,il),(0,s_.__runInitializers)(this,iu,void 0)),ss.set(this,((0,s_.__runInitializers)(this,io),(0,s_.__runInitializers)(this,ih,void 0))),this._useReflectionFresnelFromSpecular=((0,s_.__runInitializers)(this,i_),(0,s_.__runInitializers)(this,ic,!1)),sa.set(this,((0,s_.__runInitializers)(this,id),(0,s_.__runInitializers)(this,im,void 0))),this._useGlossinessFromSpecularMapAlpha=((0,s_.__runInitializers)(this,ip),(0,s_.__runInitializers)(this,iT,!1)),sr.set(this,((0,s_.__runInitializers)(this,ix),(0,s_.__runInitializers)(this,iE,void 0))),this._maxSimultaneousLights=((0,s_.__runInitializers)(this,ig),(0,s_.__runInitializers)(this,iP,4)),sn.set(this,((0,s_.__runInitializers)(this,iA),(0,s_.__runInitializers)(this,iI,void 0))),this._invertNormalMapX=((0,s_.__runInitializers)(this,iv),(0,s_.__runInitializers)(this,iF,!1)),sl.set(this,((0,s_.__runInitializers)(this,iS),(0,s_.__runInitializers)(this,iR,void 0))),this._invertNormalMapY=((0,s_.__runInitializers)(this,iM),(0,s_.__runInitializers)(this,ib,!1)),su.set(this,((0,s_.__runInitializers)(this,iL),(0,s_.__runInitializers)(this,iC,void 0))),this._twoSidedLighting=((0,s_.__runInitializers)(this,iD),(0,s_.__runInitializers)(this,iO,!1)),so.set(this,((0,s_.__runInitializers)(this,iN),(0,s_.__runInitializers)(this,iy,void 0))),this._applyDecalMapAfterDetailMap=((0,s_.__runInitializers)(this,iz),(0,s_.__runInitializers)(this,iU,!1)),sh.set(this,((0,s_.__runInitializers)(this,ik),(0,s_.__runInitializers)(this,iB,void 0))),this._shadersLoaded=((0,s_.__runInitializers)(this,iG),!1),this._vertexPullingMetadata=null,this._renderTargets=new sd.SmartArray(16),this._globalAmbientColor=new sf.Color3(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new sF.DetailMapConfiguration(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new sT.PrePassConfiguration,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),iw.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),iw.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return!!iw.ReflectionTextureEnabled&&!!this._reflectionTexture&&!!this._reflectionTexture.isRenderTarget||!!iw.RefractionTextureEnabled&&!!this._refractionTexture&&!!this._refractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}getClassName(){return"StandardMaterial"}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:!this._disableAlphaBlending&&(this.alpha<1||null!=this._opacityTexture||this._shouldUseAlphaFromDiffuseTexture()||this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled)}needAlphaTesting(){return this._hasTransparencyMode?this._transparencyModeIsTest:this._hasAlphaChannel()&&(null==this._transparencyMode||this._transparencyMode===sg.Material.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==sg.Material.MATERIAL_OPAQUE}_hasAlphaChannel(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha||null!=this._opacityTexture}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(t,i,s=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let a=i._drawWrapper;if(a.effect&&this.isFrozen&&a._wasPreviouslyReady&&a._wasPreviouslyUsingInstances===s)return!0;i.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),i.materialDefines=new sk(this._eventInfo.defineNames));let r=this.getScene(),n=i.materialDefines;if(this._isReadyForSubMesh(i))return!0;let l=r.getEngine();if(n._needNormals=(0,sM.PrepareDefinesForLights)(r,t,n,!0,this._maxSimultaneousLights,this._disableLighting),!(0,sM.AreLightsTexturesReady)(r,t,this._maxSimultaneousLights,this._disableLighting))return!1;(0,sM.PrepareDefinesForMultiview)(r,n);let u=this.needAlphaBlendingForMesh(t)&&this.getScene().useOrderIndependentTransparency;if((0,sM.PrepareDefinesForPrePass)(r,n,this.canRenderToMRT&&!u),(0,sM.PrepareDefinesForOIT)(r,n,u),sL.MaterialHelperGeometryRendering.PrepareDefines(l.currentRenderPassId,t,n),n._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,n._needUVs=!1;for(let e=1;e<=6;++e)n["MAINUV"+e]=!1;if(r.texturesEnabled){if(n.DIFFUSEDIRECTUV=0,n.BUMPDIRECTUV=0,n.AMBIENTDIRECTUV=0,n.OPACITYDIRECTUV=0,n.EMISSIVEDIRECTUV=0,n.SPECULARDIRECTUV=0,n.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&iw.DiffuseTextureEnabled)if(!this._diffuseTexture.isReadyOrNotBlocking())return!1;else(0,sM.PrepareDefinesForMergedUV)(this._diffuseTexture,n,"DIFFUSE");else n.DIFFUSE=!1;if(this._ambientTexture&&iw.AmbientTextureEnabled)if(!this._ambientTexture.isReadyOrNotBlocking())return!1;else(0,sM.PrepareDefinesForMergedUV)(this._ambientTexture,n,"AMBIENT");else n.AMBIENT=!1;if(this._opacityTexture&&iw.OpacityTextureEnabled)if(!this._opacityTexture.isReadyOrNotBlocking())return!1;else(0,sM.PrepareDefinesForMergedUV)(this._opacityTexture,n,"OPACITY"),n.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else n.OPACITY=!1;if(this._reflectionTexture&&iw.ReflectionTextureEnabled?(n.ROUGHNESS=this._roughness>0,n.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(n.ROUGHNESS=!1,n.REFLECTIONOVERALPHA=!1),!(0,sM.PrepareDefinesForIBL)(r,this._reflectionTexture,n))return!1;if(this._emissiveTexture&&iw.EmissiveTextureEnabled)if(!this._emissiveTexture.isReadyOrNotBlocking())return!1;else(0,sM.PrepareDefinesForMergedUV)(this._emissiveTexture,n,"EMISSIVE");else n.EMISSIVE=!1;if(this._lightmapTexture&&iw.LightmapTextureEnabled)if(!this._lightmapTexture.isReadyOrNotBlocking())return!1;else(0,sM.PrepareDefinesForMergedUV)(this._lightmapTexture,n,"LIGHTMAP"),n.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,n.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else n.LIGHTMAP=!1;if(this._specularTexture&&iw.SpecularTextureEnabled)if(!this._specularTexture.isReadyOrNotBlocking())return!1;else(0,sM.PrepareDefinesForMergedUV)(this._specularTexture,n,"SPECULAR"),n.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else n.SPECULAR=!1;if(r.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&iw.BumpTextureEnabled){if(!this._bumpTexture.isReady())return!1;(0,sM.PrepareDefinesForMergedUV)(this._bumpTexture,n,"BUMP"),n.PARALLAX=this._useParallax,n.PARALLAX_RHS=r.useRightHandedSystem,n.PARALLAXOCCLUSION=this._useParallaxOcclusion,n.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else n.BUMP=!1,n.PARALLAX=!1,n.PARALLAX_RHS=!1,n.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&iw.RefractionTextureEnabled)if(!this._refractionTexture.isReadyOrNotBlocking())return!1;else n._needUVs=!0,n.REFRACTION=!0,n.REFRACTIONMAP_3D=this._refractionTexture.isCube,n.RGBDREFRACTION=this._refractionTexture.isRGBD,n.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else n.REFRACTION=!1;n.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else n.DIFFUSE=!1,n.AMBIENT=!1,n.OPACITY=!1,n.REFLECTION=!1,n.EMISSIVE=!1,n.LIGHTMAP=!1,n.BUMP=!1,n.REFRACTION=!1;n.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),n.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,n.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,n.SPECULAROVERALPHA=this._useSpecularOverAlpha,n.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,n.ALPHATEST_AFTERALLALPHACOMPUTATIONS=null!==this.transparencyMode,n.ALPHABLEND=null===this.transparencyMode||this.needAlphaBlendingForMesh(t),n.TEXTURE_REPETITION_MODE=l.version>1||l.isWebGPU?this.textureRepetitionMode:0}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=n,this._eventInfo.subMesh=i,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(n._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(n),n.IS_REFLECTION_LINEAR=null!=this.reflectionTexture&&!this.reflectionTexture.gammaSpace,n.IS_REFRACTION_LINEAR=null!=this.refractionTexture&&!this.refractionTexture.gammaSpace}if(n._areFresnelDirty&&(iw.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(n.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,n.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,n.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,n.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,n.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,n.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,n._needNormals=!0,n.FRESNEL=!0):n.FRESNEL=!1),n.AREALIGHTUSED||n.CLUSTLIGHT_BATCH){for(let e=0;e<t.lightSources.length;e++)if(!t.lightSources[e]._isReady())return!1}(0,sM.PrepareDefinesForMisc)(t,r,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(t),n,this._applyDecalMapAfterDetailMap,this._useVertexPulling,i.getRenderingMesh(),this._isVertexOutputInvariant),(0,sM.PrepareDefinesForFrameBoundValues)(r,l,this,n,s,null,i.getRenderingMesh().hasThinInstances),this._eventInfo.defines=n,this._eventInfo.mesh=t,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,sM.PrepareDefinesForAttributes)(t,n,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let o=!1;if(n.isDirty){let s=n._areLightsDisposed;n.markAsProcessed();let a=new sv.EffectFallbacks;n.REFLECTION&&a.addFallback(0,"REFLECTION"),n.SPECULAR&&a.addFallback(0,"SPECULAR"),n.BUMP&&a.addFallback(0,"BUMP"),n.PARALLAX&&a.addFallback(1,"PARALLAX"),n.PARALLAX_RHS&&a.addFallback(1,"PARALLAX_RHS"),n.PARALLAXOCCLUSION&&a.addFallback(0,"PARALLAXOCCLUSION"),n.SPECULAROVERALPHA&&a.addFallback(0,"SPECULAROVERALPHA"),n.FOG&&a.addFallback(1,"FOG"),n.POINTSIZE&&a.addFallback(0,"POINTSIZE"),n.LOGARITHMICDEPTH&&a.addFallback(0,"LOGARITHMICDEPTH"),(0,sM.HandleFallbacksForShadows)(n,a,this._maxSimultaneousLights),n.SPECULARTERM&&a.addFallback(0,"SPECULARTERM"),n.DIFFUSEFRESNEL&&a.addFallback(1,"DIFFUSEFRESNEL"),n.OPACITYFRESNEL&&a.addFallback(2,"OPACITYFRESNEL"),n.REFLECTIONFRESNEL&&a.addFallback(3,"REFLECTIONFRESNEL"),n.EMISSIVEFRESNEL&&a.addFallback(4,"EMISSIVEFRESNEL"),n.FRESNEL&&a.addFallback(4,"FRESNEL"),n.MULTIVIEW&&a.addFallback(0,"MULTIVIEW");let u=[sp.VertexBuffer.PositionKind];n.NORMAL&&u.push(sp.VertexBuffer.NormalKind),n.TANGENT&&u.push(sp.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)n["UV"+e]&&u.push(`uv${1===e?"":e}`);n.VERTEXCOLOR&&u.push(sp.VertexBuffer.ColorKind),(0,sM.PrepareAttributesForBones)(u,t,n,a),(0,sM.PrepareAttributesForInstances)(u,n),(0,sM.PrepareAttributesForMorphTargets)(u,t,n),(0,sM.PrepareAttributesForBakedVertexAnimation)(u,t,n);let h="default",_=["world","view","viewProjection","vEyePosition","vLightsType","vAmbientColor","vDiffuseColor","vSpecularColor","vEmissiveColor","visibility","vFogInfos","vFogColor","pointSize","vDiffuseInfos","vAmbientInfos","vOpacityInfos","vEmissiveInfos","vSpecularInfos","vBumpInfos","vLightmapInfos","vRefractionInfos","mBones","diffuseMatrix","ambientMatrix","opacityMatrix","emissiveMatrix","specularMatrix","bumpMatrix","normalMatrix","lightmapMatrix","refractionMatrix","diffuseLeftColor","diffuseRightColor","opacityParts","reflectionLeftColor","reflectionRightColor","emissiveLeftColor","emissiveRightColor","refractionLeftColor","refractionRightColor","vRefractionPosition","vRefractionSize","logarithmicDepthConstant","vTangentSpaceParams","alphaCutOff","boneTextureInfo","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams"],c=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];(0,sM.PrepareUniformsAndSamplersForIBL)(_,c,!1);let d=["Material","Scene","Mesh"],m={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:n.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=a,this._eventInfo.fallbackRank=0,this._eventInfo.defines=n,this._eventInfo.uniforms=_,this._eventInfo.attributes=u,this._eventInfo.samplers=c,this._eventInfo.uniformBuffersNames=d,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=m,this._callbackPluginEventGeneric(128,this._eventInfo),sL.MaterialHelperGeometryRendering.AddUniformsAndSamplers(_,c),sT.PrePassConfiguration.AddUniforms(_),sT.PrePassConfiguration.AddSamplers(c),sE.ImageProcessingConfiguration&&(sE.ImageProcessingConfiguration.PrepareUniforms(_,n),sE.ImageProcessingConfiguration.PrepareSamplers(c,n)),(0,sM.PrepareUniformsAndSamplersList)({uniformsNames:_,uniformBuffersNames:d,samplers:c,defines:n,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage}),(0,sS.AddClipPlaneUniforms)(_),this._useVertexPulling){let e=i.getRenderingMesh(),t=e?.geometry;t&&(this._vertexPullingMetadata=(0,sR.PrepareVertexPullingUniforms)(t),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{_.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;let f={};this.customShaderNameResolve&&(h=this.customShaderNameResolve(h,_,d,c,n,u,f));let p=n.toString(),T=i.effect,x=r.getEngine().createEffect(h,{attributes:u,uniformsNames:_,uniformBuffersNames:d,samplers:c,defines:p,fallbacks:a,onCompiled:this.onCompiled,onError:this.onError,indexParameters:m,processFinalCode:f.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:n.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this._shaderLanguage?await Promise.all([e.A(33106),e.A(98824)]):await Promise.all([e.A(7762),e.A(99505)]),this._shadersLoaded=!0}},l);if(this._eventInfo.customCode=void 0,x)if(this._onEffectCreatedObservable&&(sz.effect=x,sz.subMesh=i,this._onEffectCreatedObservable.notifyObservers(sz)),this.allowShaderHotSwapping&&T&&!x.isReady()){if(n.markAsUnprocessed(),o=this.isFrozen,s)return n._areLightsDisposed=!0,!1}else r.resetCachedMaterial(),i.setEffect(x,n,this._materialContext)}return!!i.effect&&!!i.effect.isReady()&&(n._renderId=r.getRenderId(),a._wasPreviouslyReady=!o,a._wasPreviouslyUsingInstances=s,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("diffuseLeftColor",4),e.addUniform("diffuseRightColor",4),e.addUniform("opacityParts",4),e.addUniform("reflectionLeftColor",4),e.addUniform("reflectionRightColor",4),e.addUniform("refractionLeftColor",4),e.addUniform("refractionRightColor",4),e.addUniform("emissiveLeftColor",4),e.addUniform("emissiveRightColor",4),e.addUniform("vDiffuseInfos",2),e.addUniform("vAmbientInfos",2),e.addUniform("vOpacityInfos",2),e.addUniform("vEmissiveInfos",2),e.addUniform("vLightmapInfos",2),e.addUniform("vSpecularInfos",2),e.addUniform("vBumpInfos",3),e.addUniform("diffuseMatrix",16),e.addUniform("ambientMatrix",16),e.addUniform("opacityMatrix",16),e.addUniform("emissiveMatrix",16),e.addUniform("lightmapMatrix",16),e.addUniform("specularMatrix",16),e.addUniform("bumpMatrix",16),e.addUniform("vTangentSpaceParams",2),e.addUniform("pointSize",1),e.addUniform("alphaCutOff",1),e.addUniform("refractionMatrix",16),e.addUniform("vRefractionInfos",4),e.addUniform("vRefractionPosition",3),e.addUniform("vRefractionSize",3),e.addUniform("vSpecularColor",4),e.addUniform("vEmissiveColor",3),e.addUniform("vDiffuseColor",4),e.addUniform("vAmbientColor",3),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),(0,sM.PrepareUniformLayoutForIBL)(e,!1,!0),super.buildUniformLayout()}bindForSubMesh(e,t,i){let s=this.getScene(),a=i.materialDefines;if(!a)return;let r=i.effect;if(!r)return;this._activeEffect=r,t.getMeshUniformBuffer().bindToEffect(r,"Mesh"),t.transferToEffect(e),this._uniformBuffer.bindToEffect(r,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,s,t,e,this.isFrozen),sL.MaterialHelperGeometryRendering.Bind(s.getEngine().currentRenderPassId,this._activeEffect,t,e,this);let n=s.activeCamera;n?this._uniformBuffer.updateFloat4("cameraInfo",n.minZ,n.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let l=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",l[0],l[1],l[2],l[3]),this._eventInfo.subMesh=i,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),a.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let u=this._mustRebind(s,r,i,t.visibility),o=s.getEngine()._features.needToAlwaysBindUniformBuffers;(0,sM.BindBonesParameters)(t,r),this._vertexPullingMetadata&&(0,sR.BindVertexPullingUniforms)(r,this._vertexPullingMetadata);let h=this._uniformBuffer;if(u){if(this.bindViewProjection(r),!h.useUbo||!this.isFrozen||!h.isSync||i._drawWrapper._forceRebindOnNextCall){if(iw.FresnelEnabled&&a.FRESNEL){if(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(h.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),h.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled){let e=sf.TmpColors.Color3[0];e.set(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),h.updateColor4("opacityParts",e,this.opacityFresnelParameters.power)}this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(h.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),h.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(h.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),h.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(h.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),h.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))}if(s.texturesEnabled&&(this._diffuseTexture&&iw.DiffuseTextureEnabled&&(h.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),(0,sM.BindTextureMatrix)(this._diffuseTexture,h,"diffuse")),this._ambientTexture&&iw.AmbientTextureEnabled&&(h.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),(0,sM.BindTextureMatrix)(this._ambientTexture,h,"ambient")),this._opacityTexture&&iw.OpacityTextureEnabled&&(h.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),(0,sM.BindTextureMatrix)(this._opacityTexture,h,"opacity")),this._hasAlphaChannel()&&h.updateFloat("alphaCutOff",this.alphaCutOff),(0,sM.BindIBLParameters)(s,a,h,sf.Color3.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),this._reflectionTexture&&iw.ReflectionTextureEnabled||h.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&iw.EmissiveTextureEnabled&&(h.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),(0,sM.BindTextureMatrix)(this._emissiveTexture,h,"emissive")),this._lightmapTexture&&iw.LightmapTextureEnabled&&(h.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),(0,sM.BindTextureMatrix)(this._lightmapTexture,h,"lightmap")),this._specularTexture&&iw.SpecularTextureEnabled&&(h.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),(0,sM.BindTextureMatrix)(this._specularTexture,h,"specular")),this._bumpTexture&&s.getEngine().getCaps().standardDerivatives&&iw.BumpTextureEnabled&&(h.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),(0,sM.BindTextureMatrix)(this._bumpTexture,h,"bump"),s._mirroredCameraPosition?h.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):h.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&iw.RefractionTextureEnabled)){let e=1;if(!this._refractionTexture.isCube&&(h.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(e=this._refractionTexture.depth)),h.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,e,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){let e=this._refractionTexture;h.updateVector3("vRefractionPosition",e.boundingBoxPosition),h.updateVector3("vRefractionSize",e.boundingBoxSize)}}this.pointsCloud&&h.updateFloat("pointSize",this.pointSize),h.updateColor4("vSpecularColor",this.specularColor,this.specularPower),h.updateColor3("vEmissiveColor",iw.EmissiveTextureEnabled?this.emissiveColor:sf.Color3.BlackReadOnly),h.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),s.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),h.updateColor3("vAmbientColor",this._globalAmbientColor)}s.texturesEnabled&&(this._diffuseTexture&&iw.DiffuseTextureEnabled&&r.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&iw.AmbientTextureEnabled&&r.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&iw.OpacityTextureEnabled&&r.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&iw.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?r.setTexture("reflectionCubeSampler",this._reflectionTexture):r.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&iw.EmissiveTextureEnabled&&r.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&iw.LightmapTextureEnabled&&r.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&iw.SpecularTextureEnabled&&r.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&s.getEngine().getCaps().standardDerivatives&&iw.BumpTextureEnabled&&r.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&iw.RefractionTextureEnabled&&(this._refractionTexture.isCube?r.setTexture("refractionCubeSampler",this._refractionTexture):r.setTexture("refraction2DSampler",this._refractionTexture))),this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(r),this._eventInfo.subMesh=i,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,sS.BindClipPlane)(r,this,s),this.bindEyePosition(r)}else o&&(this._needToBindSceneUbo=!0);(u||!this.isFrozen||o)&&s.lightsEnabled&&!this._disableLighting&&(0,sM.BindLights)(s,t,r,a,this._maxSimultaneousLights),(u||!this.isFrozen)&&((s.fogEnabled&&t.applyFog&&s.fogMode!==sm.Scene.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||t.receiveShadows||a.PREPASS||a.CLUSTLIGHT_BATCH)&&this.bindView(r),(0,sM.BindFogParameters)(s,t,r),a.NUM_MORPH_INFLUENCERS&&(0,sM.BindMorphTargetParameters)(t,r),a.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(r,a.INSTANCES),this.useLogarithmicDepth&&(0,sM.BindLogDepth)(a,r,s),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(t,this._activeEffect,i),h.update()}getAnimatables(){let e=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&e.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&e.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&e.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&e.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&e.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&e.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&e.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&e.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&e.push(this._refractionTexture),e}getActiveTextures(){let e=super.getActiveTextures();return this._diffuseTexture&&e.push(this._diffuseTexture),this._ambientTexture&&e.push(this._ambientTexture),this._opacityTexture&&e.push(this._opacityTexture),this._reflectionTexture&&e.push(this._reflectionTexture),this._emissiveTexture&&e.push(this._emissiveTexture),this._specularTexture&&e.push(this._specularTexture),this._bumpTexture&&e.push(this._bumpTexture),this._lightmapTexture&&e.push(this._lightmapTexture),this._refractionTexture&&e.push(this._refractionTexture),e}hasTexture(e){return!!super.hasTexture(e)||this._diffuseTexture===e||this._ambientTexture===e||this._opacityTexture===e||this._reflectionTexture===e||this._emissiveTexture===e||this._specularTexture===e||this._bumpTexture===e||this._lightmapTexture===e||this._refractionTexture===e||!1}dispose(e,t){t&&(this._diffuseTexture?.dispose(),this._ambientTexture?.dispose(),this._opacityTexture?.dispose(),this._reflectionTexture?.dispose(),this._emissiveTexture?.dispose(),this._specularTexture?.dispose(),this._bumpTexture?.dispose(),this._lightmapTexture?.dispose(),this._refractionTexture?.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}clone(e,t=!0,i=""){let s=sb.SerializationHelper.Clone(()=>new iw(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return s.name=e,s.id=e,this.stencil.copyTo(s.stencil),this._clonePlugins(s,i),s}static Parse(e,t,i){let s=sb.SerializationHelper.Parse(()=>new iw(e.name,t),e,t,i);return e.stencil&&s.stencil.parse(e.stencil,t,i),sg.Material._ParsePlugins(e,s,t,i),s}static get DiffuseTextureEnabled(){return sI.MaterialFlags.DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){sI.MaterialFlags.DiffuseTextureEnabled=e}static get DetailTextureEnabled(){return sI.MaterialFlags.DetailTextureEnabled}static set DetailTextureEnabled(e){sI.MaterialFlags.DetailTextureEnabled=e}static get AmbientTextureEnabled(){return sI.MaterialFlags.AmbientTextureEnabled}static set AmbientTextureEnabled(e){sI.MaterialFlags.AmbientTextureEnabled=e}static get OpacityTextureEnabled(){return sI.MaterialFlags.OpacityTextureEnabled}static set OpacityTextureEnabled(e){sI.MaterialFlags.OpacityTextureEnabled=e}static get ReflectionTextureEnabled(){return sI.MaterialFlags.ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){sI.MaterialFlags.ReflectionTextureEnabled=e}static get EmissiveTextureEnabled(){return sI.MaterialFlags.EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){sI.MaterialFlags.EmissiveTextureEnabled=e}static get SpecularTextureEnabled(){return sI.MaterialFlags.SpecularTextureEnabled}static set SpecularTextureEnabled(e){sI.MaterialFlags.SpecularTextureEnabled=e}static get BumpTextureEnabled(){return sI.MaterialFlags.BumpTextureEnabled}static set BumpTextureEnabled(e){sI.MaterialFlags.BumpTextureEnabled=e}static get LightmapTextureEnabled(){return sI.MaterialFlags.LightmapTextureEnabled}static set LightmapTextureEnabled(e){sI.MaterialFlags.LightmapTextureEnabled=e}static get RefractionTextureEnabled(){return sI.MaterialFlags.RefractionTextureEnabled}static set RefractionTextureEnabled(e){sI.MaterialFlags.RefractionTextureEnabled=e}static get ColorGradingTextureEnabled(){return sI.MaterialFlags.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){sI.MaterialFlags.ColorGradingTextureEnabled=e}static get FresnelEnabled(){return sI.MaterialFlags.FresnelEnabled}static set FresnelEnabled(e){sI.MaterialFlags.FresnelEnabled=e}},iV=new WeakMap,iW=new WeakMap,iX=new WeakMap,iY=new WeakMap,ij=new WeakMap,iK=new WeakMap,iZ=new WeakMap,iJ=new WeakMap,iQ=new WeakMap,i$=new WeakMap,iq=new WeakMap,i0=new WeakMap,i1=new WeakMap,i4=new WeakMap,i2=new WeakMap,i3=new WeakMap,i6=new WeakMap,i9=new WeakMap,i5=new WeakMap,i7=new WeakMap,i8=new WeakMap,se=new WeakMap,st=new WeakMap,si=new WeakMap,ss=new WeakMap,sa=new WeakMap,sr=new WeakMap,sn=new WeakMap,sl=new WeakMap,su=new WeakMap,so=new WeakMap,sh=new WeakMap,iH="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0,t=[(0,sc.serializeAsTexture)("diffuseTexture")],i=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],s=[(0,sc.serializeAsTexture)("ambientTexture")],a=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],r=[(0,sc.serializeAsTexture)("opacityTexture")],n=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],l=[(0,sc.serializeAsTexture)("reflectionTexture")],u=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],o=[(0,sc.serializeAsTexture)("emissiveTexture")],h=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],_=[(0,sc.serializeAsTexture)("specularTexture")],c=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],d=[(0,sc.serializeAsTexture)("bumpTexture")],m=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],f=[(0,sc.serializeAsTexture)("lightmapTexture")],p=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],T=[(0,sc.serializeAsTexture)("refractionTexture")],x=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],E=[(0,sc.serializeAsColor3)("ambient")],g=[(0,sc.serializeAsColor3)("diffuse")],P=[(0,sc.serializeAsColor3)("specular")],A=[(0,sc.serializeAsColor3)("emissive")],I=[(0,sc.serialize)()],v=[(0,sc.serialize)("useAlphaFromDiffuseTexture")],F=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],S=[(0,sc.serialize)("useEmissiveAsIllumination")],R=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],M=[(0,sc.serialize)("linkEmissiveWithDiffuse")],b=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],L=[(0,sc.serialize)("useSpecularOverAlpha")],C=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],D=[(0,sc.serialize)("useReflectionOverAlpha")],O=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],N=[(0,sc.serialize)("disableLighting")],y=[(0,sc.expandToProperty)("_markAllSubMeshesAsLightsDirty")],z=[(0,sc.serialize)("useObjectSpaceNormalMap")],U=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],k=[(0,sc.serialize)("useParallax")],B=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],G=[(0,sc.serialize)("useParallaxOcclusion")],H=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],w=[(0,sc.serialize)()],V=[(0,sc.serialize)("roughness")],W=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],X=[(0,sc.serialize)()],Y=[(0,sc.serialize)()],j=[(0,sc.serialize)()],K=[(0,sc.serialize)("useLightmapAsShadowmap")],Z=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],J=[(0,sc.serializeAsFresnelParameters)("diffuseFresnelParameters")],Q=[(0,sc.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],$=[(0,sc.serializeAsFresnelParameters)("opacityFresnelParameters")],q=[(0,sc.expandToProperty)("_markAllSubMeshesAsFresnelAndMiscDirty")],ee=[(0,sc.serializeAsFresnelParameters)("reflectionFresnelParameters")],et=[(0,sc.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],ei=[(0,sc.serializeAsFresnelParameters)("refractionFresnelParameters")],es=[(0,sc.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],ea=[(0,sc.serializeAsFresnelParameters)("emissiveFresnelParameters")],er=[(0,sc.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],en=[(0,sc.serialize)("useReflectionFresnelFromSpecular")],el=[(0,sc.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],eu=[(0,sc.serialize)("useGlossinessFromSpecularMapAlpha")],eo=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],eh=[(0,sc.serialize)("maxSimultaneousLights")],e_=[(0,sc.expandToProperty)("_markAllSubMeshesAsLightsDirty")],ec=[(0,sc.serialize)("invertNormalMapX")],ed=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],em=[(0,sc.serialize)("invertNormalMapY")],ef=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],ep=[(0,sc.serialize)("twoSidedLighting")],eT=[(0,sc.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],ex=[(0,sc.serialize)("applyDecalMapAfterDetailMap")],eE=[(0,sc.expandToProperty)("_markAllSubMeshesAsMiscDirty")],(0,s_.__esDecorate)(iw,null,i,{kind:"accessor",name:"diffuseTexture",static:!1,private:!1,access:{has:e=>"diffuseTexture"in e,get:e=>e.diffuseTexture,set:(e,t)=>{e.diffuseTexture=t}},metadata:iH},eI,ev),(0,s_.__esDecorate)(iw,null,a,{kind:"accessor",name:"ambientTexture",static:!1,private:!1,access:{has:e=>"ambientTexture"in e,get:e=>e.ambientTexture,set:(e,t)=>{e.ambientTexture=t}},metadata:iH},eR,eM),(0,s_.__esDecorate)(iw,null,n,{kind:"accessor",name:"opacityTexture",static:!1,private:!1,access:{has:e=>"opacityTexture"in e,get:e=>e.opacityTexture,set:(e,t)=>{e.opacityTexture=t}},metadata:iH},eC,eD),(0,s_.__esDecorate)(iw,null,u,{kind:"accessor",name:"reflectionTexture",static:!1,private:!1,access:{has:e=>"reflectionTexture"in e,get:e=>e.reflectionTexture,set:(e,t)=>{e.reflectionTexture=t}},metadata:iH},ey,ez),(0,s_.__esDecorate)(iw,null,h,{kind:"accessor",name:"emissiveTexture",static:!1,private:!1,access:{has:e=>"emissiveTexture"in e,get:e=>e.emissiveTexture,set:(e,t)=>{e.emissiveTexture=t}},metadata:iH},eB,eG),(0,s_.__esDecorate)(iw,null,c,{kind:"accessor",name:"specularTexture",static:!1,private:!1,access:{has:e=>"specularTexture"in e,get:e=>e.specularTexture,set:(e,t)=>{e.specularTexture=t}},metadata:iH},eV,eW),(0,s_.__esDecorate)(iw,null,m,{kind:"accessor",name:"bumpTexture",static:!1,private:!1,access:{has:e=>"bumpTexture"in e,get:e=>e.bumpTexture,set:(e,t)=>{e.bumpTexture=t}},metadata:iH},ej,eK),(0,s_.__esDecorate)(iw,null,p,{kind:"accessor",name:"lightmapTexture",static:!1,private:!1,access:{has:e=>"lightmapTexture"in e,get:e=>e.lightmapTexture,set:(e,t)=>{e.lightmapTexture=t}},metadata:iH},eQ,e$),(0,s_.__esDecorate)(iw,null,x,{kind:"accessor",name:"refractionTexture",static:!1,private:!1,access:{has:e=>"refractionTexture"in e,get:e=>e.refractionTexture,set:(e,t)=>{e.refractionTexture=t}},metadata:iH},e1,e4),(0,s_.__esDecorate)(iw,null,F,{kind:"accessor",name:"useAlphaFromDiffuseTexture",static:!1,private:!1,access:{has:e=>"useAlphaFromDiffuseTexture"in e,get:e=>e.useAlphaFromDiffuseTexture,set:(e,t)=>{e.useAlphaFromDiffuseTexture=t}},metadata:iH},tr,tn),(0,s_.__esDecorate)(iw,null,R,{kind:"accessor",name:"useEmissiveAsIllumination",static:!1,private:!1,access:{has:e=>"useEmissiveAsIllumination"in e,get:e=>e.useEmissiveAsIllumination,set:(e,t)=>{e.useEmissiveAsIllumination=t}},metadata:iH},to,th),(0,s_.__esDecorate)(iw,null,b,{kind:"accessor",name:"linkEmissiveWithDiffuse",static:!1,private:!1,access:{has:e=>"linkEmissiveWithDiffuse"in e,get:e=>e.linkEmissiveWithDiffuse,set:(e,t)=>{e.linkEmissiveWithDiffuse=t}},metadata:iH},td,tm),(0,s_.__esDecorate)(iw,null,C,{kind:"accessor",name:"useSpecularOverAlpha",static:!1,private:!1,access:{has:e=>"useSpecularOverAlpha"in e,get:e=>e.useSpecularOverAlpha,set:(e,t)=>{e.useSpecularOverAlpha=t}},metadata:iH},tT,tx),(0,s_.__esDecorate)(iw,null,O,{kind:"accessor",name:"useReflectionOverAlpha",static:!1,private:!1,access:{has:e=>"useReflectionOverAlpha"in e,get:e=>e.useReflectionOverAlpha,set:(e,t)=>{e.useReflectionOverAlpha=t}},metadata:iH},tP,tA),(0,s_.__esDecorate)(iw,null,y,{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:iH},tF,tS),(0,s_.__esDecorate)(iw,null,U,{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:iH},tb,tL),(0,s_.__esDecorate)(iw,null,B,{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:iH},tO,tN),(0,s_.__esDecorate)(iw,null,H,{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:iH},tU,tk),(0,s_.__esDecorate)(iw,null,W,{kind:"accessor",name:"roughness",static:!1,private:!1,access:{has:e=>"roughness"in e,get:e=>e.roughness,set:(e,t)=>{e.roughness=t}},metadata:iH},tV,tW),(0,s_.__esDecorate)(iw,null,Z,{kind:"accessor",name:"useLightmapAsShadowmap",static:!1,private:!1,access:{has:e=>"useLightmapAsShadowmap"in e,get:e=>e.useLightmapAsShadowmap,set:(e,t)=>{e.useLightmapAsShadowmap=t}},metadata:iH},tq,t0),(0,s_.__esDecorate)(iw,null,Q,{kind:"accessor",name:"diffuseFresnelParameters",static:!1,private:!1,access:{has:e=>"diffuseFresnelParameters"in e,get:e=>e.diffuseFresnelParameters,set:(e,t)=>{e.diffuseFresnelParameters=t}},metadata:iH},t2,t3),(0,s_.__esDecorate)(iw,null,q,{kind:"accessor",name:"opacityFresnelParameters",static:!1,private:!1,access:{has:e=>"opacityFresnelParameters"in e,get:e=>e.opacityFresnelParameters,set:(e,t)=>{e.opacityFresnelParameters=t}},metadata:iH},t5,t7),(0,s_.__esDecorate)(iw,null,et,{kind:"accessor",name:"reflectionFresnelParameters",static:!1,private:!1,access:{has:e=>"reflectionFresnelParameters"in e,get:e=>e.reflectionFresnelParameters,set:(e,t)=>{e.reflectionFresnelParameters=t}},metadata:iH},it,ii),(0,s_.__esDecorate)(iw,null,es,{kind:"accessor",name:"refractionFresnelParameters",static:!1,private:!1,access:{has:e=>"refractionFresnelParameters"in e,get:e=>e.refractionFresnelParameters,set:(e,t)=>{e.refractionFresnelParameters=t}},metadata:iH},ir,il),(0,s_.__esDecorate)(iw,null,er,{kind:"accessor",name:"emissiveFresnelParameters",static:!1,private:!1,access:{has:e=>"emissiveFresnelParameters"in e,get:e=>e.emissiveFresnelParameters,set:(e,t)=>{e.emissiveFresnelParameters=t}},metadata:iH},ih,i_),(0,s_.__esDecorate)(iw,null,el,{kind:"accessor",name:"useReflectionFresnelFromSpecular",static:!1,private:!1,access:{has:e=>"useReflectionFresnelFromSpecular"in e,get:e=>e.useReflectionFresnelFromSpecular,set:(e,t)=>{e.useReflectionFresnelFromSpecular=t}},metadata:iH},im,ip),(0,s_.__esDecorate)(iw,null,eo,{kind:"accessor",name:"useGlossinessFromSpecularMapAlpha",static:!1,private:!1,access:{has:e=>"useGlossinessFromSpecularMapAlpha"in e,get:e=>e.useGlossinessFromSpecularMapAlpha,set:(e,t)=>{e.useGlossinessFromSpecularMapAlpha=t}},metadata:iH},iE,ig),(0,s_.__esDecorate)(iw,null,e_,{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:iH},iI,iv),(0,s_.__esDecorate)(iw,null,ed,{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:iH},iR,iM),(0,s_.__esDecorate)(iw,null,ef,{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:iH},iC,iD),(0,s_.__esDecorate)(iw,null,eT,{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:iH},iy,iz),(0,s_.__esDecorate)(iw,null,eE,{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:iH},iB,iG),(0,s_.__esDecorate)(null,null,t,{kind:"field",name:"_diffuseTexture",static:!1,private:!1,access:{has:e=>"_diffuseTexture"in e,get:e=>e._diffuseTexture,set:(e,t)=>{e._diffuseTexture=t}},metadata:iH},eP,eA),(0,s_.__esDecorate)(null,null,s,{kind:"field",name:"_ambientTexture",static:!1,private:!1,access:{has:e=>"_ambientTexture"in e,get:e=>e._ambientTexture,set:(e,t)=>{e._ambientTexture=t}},metadata:iH},eF,eS),(0,s_.__esDecorate)(null,null,r,{kind:"field",name:"_opacityTexture",static:!1,private:!1,access:{has:e=>"_opacityTexture"in e,get:e=>e._opacityTexture,set:(e,t)=>{e._opacityTexture=t}},metadata:iH},eb,eL),(0,s_.__esDecorate)(null,null,l,{kind:"field",name:"_reflectionTexture",static:!1,private:!1,access:{has:e=>"_reflectionTexture"in e,get:e=>e._reflectionTexture,set:(e,t)=>{e._reflectionTexture=t}},metadata:iH},eO,eN),(0,s_.__esDecorate)(null,null,o,{kind:"field",name:"_emissiveTexture",static:!1,private:!1,access:{has:e=>"_emissiveTexture"in e,get:e=>e._emissiveTexture,set:(e,t)=>{e._emissiveTexture=t}},metadata:iH},eU,ek),(0,s_.__esDecorate)(null,null,_,{kind:"field",name:"_specularTexture",static:!1,private:!1,access:{has:e=>"_specularTexture"in e,get:e=>e._specularTexture,set:(e,t)=>{e._specularTexture=t}},metadata:iH},eH,ew),(0,s_.__esDecorate)(null,null,d,{kind:"field",name:"_bumpTexture",static:!1,private:!1,access:{has:e=>"_bumpTexture"in e,get:e=>e._bumpTexture,set:(e,t)=>{e._bumpTexture=t}},metadata:iH},eX,eY),(0,s_.__esDecorate)(null,null,f,{kind:"field",name:"_lightmapTexture",static:!1,private:!1,access:{has:e=>"_lightmapTexture"in e,get:e=>e._lightmapTexture,set:(e,t)=>{e._lightmapTexture=t}},metadata:iH},eZ,eJ),(0,s_.__esDecorate)(null,null,T,{kind:"field",name:"_refractionTexture",static:!1,private:!1,access:{has:e=>"_refractionTexture"in e,get:e=>e._refractionTexture,set:(e,t)=>{e._refractionTexture=t}},metadata:iH},eq,e0),(0,s_.__esDecorate)(null,null,E,{kind:"field",name:"ambientColor",static:!1,private:!1,access:{has:e=>"ambientColor"in e,get:e=>e.ambientColor,set:(e,t)=>{e.ambientColor=t}},metadata:iH},e2,e3),(0,s_.__esDecorate)(null,null,g,{kind:"field",name:"diffuseColor",static:!1,private:!1,access:{has:e=>"diffuseColor"in e,get:e=>e.diffuseColor,set:(e,t)=>{e.diffuseColor=t}},metadata:iH},e6,e9),(0,s_.__esDecorate)(null,null,P,{kind:"field",name:"specularColor",static:!1,private:!1,access:{has:e=>"specularColor"in e,get:e=>e.specularColor,set:(e,t)=>{e.specularColor=t}},metadata:iH},e5,e7),(0,s_.__esDecorate)(null,null,A,{kind:"field",name:"emissiveColor",static:!1,private:!1,access:{has:e=>"emissiveColor"in e,get:e=>e.emissiveColor,set:(e,t)=>{e.emissiveColor=t}},metadata:iH},e8,te),(0,s_.__esDecorate)(null,null,I,{kind:"field",name:"specularPower",static:!1,private:!1,access:{has:e=>"specularPower"in e,get:e=>e.specularPower,set:(e,t)=>{e.specularPower=t}},metadata:iH},tt,ti),(0,s_.__esDecorate)(null,null,v,{kind:"field",name:"_useAlphaFromDiffuseTexture",static:!1,private:!1,access:{has:e=>"_useAlphaFromDiffuseTexture"in e,get:e=>e._useAlphaFromDiffuseTexture,set:(e,t)=>{e._useAlphaFromDiffuseTexture=t}},metadata:iH},ts,ta),(0,s_.__esDecorate)(null,null,S,{kind:"field",name:"_useEmissiveAsIllumination",static:!1,private:!1,access:{has:e=>"_useEmissiveAsIllumination"in e,get:e=>e._useEmissiveAsIllumination,set:(e,t)=>{e._useEmissiveAsIllumination=t}},metadata:iH},tl,tu),(0,s_.__esDecorate)(null,null,M,{kind:"field",name:"_linkEmissiveWithDiffuse",static:!1,private:!1,access:{has:e=>"_linkEmissiveWithDiffuse"in e,get:e=>e._linkEmissiveWithDiffuse,set:(e,t)=>{e._linkEmissiveWithDiffuse=t}},metadata:iH},t_,tc),(0,s_.__esDecorate)(null,null,L,{kind:"field",name:"_useSpecularOverAlpha",static:!1,private:!1,access:{has:e=>"_useSpecularOverAlpha"in e,get:e=>e._useSpecularOverAlpha,set:(e,t)=>{e._useSpecularOverAlpha=t}},metadata:iH},tf,tp),(0,s_.__esDecorate)(null,null,D,{kind:"field",name:"_useReflectionOverAlpha",static:!1,private:!1,access:{has:e=>"_useReflectionOverAlpha"in e,get:e=>e._useReflectionOverAlpha,set:(e,t)=>{e._useReflectionOverAlpha=t}},metadata:iH},tE,tg),(0,s_.__esDecorate)(null,null,N,{kind:"field",name:"_disableLighting",static:!1,private:!1,access:{has:e=>"_disableLighting"in e,get:e=>e._disableLighting,set:(e,t)=>{e._disableLighting=t}},metadata:iH},tI,tv),(0,s_.__esDecorate)(null,null,z,{kind:"field",name:"_useObjectSpaceNormalMap",static:!1,private:!1,access:{has:e=>"_useObjectSpaceNormalMap"in e,get:e=>e._useObjectSpaceNormalMap,set:(e,t)=>{e._useObjectSpaceNormalMap=t}},metadata:iH},tR,tM),(0,s_.__esDecorate)(null,null,k,{kind:"field",name:"_useParallax",static:!1,private:!1,access:{has:e=>"_useParallax"in e,get:e=>e._useParallax,set:(e,t)=>{e._useParallax=t}},metadata:iH},tC,tD),(0,s_.__esDecorate)(null,null,G,{kind:"field",name:"_useParallaxOcclusion",static:!1,private:!1,access:{has:e=>"_useParallaxOcclusion"in e,get:e=>e._useParallaxOcclusion,set:(e,t)=>{e._useParallaxOcclusion=t}},metadata:iH},ty,tz),(0,s_.__esDecorate)(null,null,w,{kind:"field",name:"parallaxScaleBias",static:!1,private:!1,access:{has:e=>"parallaxScaleBias"in e,get:e=>e.parallaxScaleBias,set:(e,t)=>{e.parallaxScaleBias=t}},metadata:iH},tB,tG),(0,s_.__esDecorate)(null,null,V,{kind:"field",name:"_roughness",static:!1,private:!1,access:{has:e=>"_roughness"in e,get:e=>e._roughness,set:(e,t)=>{e._roughness=t}},metadata:iH},tH,tw),(0,s_.__esDecorate)(null,null,X,{kind:"field",name:"indexOfRefraction",static:!1,private:!1,access:{has:e=>"indexOfRefraction"in e,get:e=>e.indexOfRefraction,set:(e,t)=>{e.indexOfRefraction=t}},metadata:iH},tX,tY),(0,s_.__esDecorate)(null,null,Y,{kind:"field",name:"invertRefractionY",static:!1,private:!1,access:{has:e=>"invertRefractionY"in e,get:e=>e.invertRefractionY,set:(e,t)=>{e.invertRefractionY=t}},metadata:iH},tj,tK),(0,s_.__esDecorate)(null,null,j,{kind:"field",name:"alphaCutOff",static:!1,private:!1,access:{has:e=>"alphaCutOff"in e,get:e=>e.alphaCutOff,set:(e,t)=>{e.alphaCutOff=t}},metadata:iH},tZ,tJ),(0,s_.__esDecorate)(null,null,K,{kind:"field",name:"_useLightmapAsShadowmap",static:!1,private:!1,access:{has:e=>"_useLightmapAsShadowmap"in e,get:e=>e._useLightmapAsShadowmap,set:(e,t)=>{e._useLightmapAsShadowmap=t}},metadata:iH},tQ,t$),(0,s_.__esDecorate)(null,null,J,{kind:"field",name:"_diffuseFresnelParameters",static:!1,private:!1,access:{has:e=>"_diffuseFresnelParameters"in e,get:e=>e._diffuseFresnelParameters,set:(e,t)=>{e._diffuseFresnelParameters=t}},metadata:iH},t1,t4),(0,s_.__esDecorate)(null,null,$,{kind:"field",name:"_opacityFresnelParameters",static:!1,private:!1,access:{has:e=>"_opacityFresnelParameters"in e,get:e=>e._opacityFresnelParameters,set:(e,t)=>{e._opacityFresnelParameters=t}},metadata:iH},t6,t9),(0,s_.__esDecorate)(null,null,ee,{kind:"field",name:"_reflectionFresnelParameters",static:!1,private:!1,access:{has:e=>"_reflectionFresnelParameters"in e,get:e=>e._reflectionFresnelParameters,set:(e,t)=>{e._reflectionFresnelParameters=t}},metadata:iH},t8,ie),(0,s_.__esDecorate)(null,null,ei,{kind:"field",name:"_refractionFresnelParameters",static:!1,private:!1,access:{has:e=>"_refractionFresnelParameters"in e,get:e=>e._refractionFresnelParameters,set:(e,t)=>{e._refractionFresnelParameters=t}},metadata:iH},is,ia),(0,s_.__esDecorate)(null,null,ea,{kind:"field",name:"_emissiveFresnelParameters",static:!1,private:!1,access:{has:e=>"_emissiveFresnelParameters"in e,get:e=>e._emissiveFresnelParameters,set:(e,t)=>{e._emissiveFresnelParameters=t}},metadata:iH},iu,io),(0,s_.__esDecorate)(null,null,en,{kind:"field",name:"_useReflectionFresnelFromSpecular",static:!1,private:!1,access:{has:e=>"_useReflectionFresnelFromSpecular"in e,get:e=>e._useReflectionFresnelFromSpecular,set:(e,t)=>{e._useReflectionFresnelFromSpecular=t}},metadata:iH},ic,id),(0,s_.__esDecorate)(null,null,eu,{kind:"field",name:"_useGlossinessFromSpecularMapAlpha",static:!1,private:!1,access:{has:e=>"_useGlossinessFromSpecularMapAlpha"in e,get:e=>e._useGlossinessFromSpecularMapAlpha,set:(e,t)=>{e._useGlossinessFromSpecularMapAlpha=t}},metadata:iH},iT,ix),(0,s_.__esDecorate)(null,null,eh,{kind:"field",name:"_maxSimultaneousLights",static:!1,private:!1,access:{has:e=>"_maxSimultaneousLights"in e,get:e=>e._maxSimultaneousLights,set:(e,t)=>{e._maxSimultaneousLights=t}},metadata:iH},iP,iA),(0,s_.__esDecorate)(null,null,ec,{kind:"field",name:"_invertNormalMapX",static:!1,private:!1,access:{has:e=>"_invertNormalMapX"in e,get:e=>e._invertNormalMapX,set:(e,t)=>{e._invertNormalMapX=t}},metadata:iH},iF,iS),(0,s_.__esDecorate)(null,null,em,{kind:"field",name:"_invertNormalMapY",static:!1,private:!1,access:{has:e=>"_invertNormalMapY"in e,get:e=>e._invertNormalMapY,set:(e,t)=>{e._invertNormalMapY=t}},metadata:iH},ib,iL),(0,s_.__esDecorate)(null,null,ep,{kind:"field",name:"_twoSidedLighting",static:!1,private:!1,access:{has:e=>"_twoSidedLighting"in e,get:e=>e._twoSidedLighting,set:(e,t)=>{e._twoSidedLighting=t}},metadata:iH},iO,iN),(0,s_.__esDecorate)(null,null,ex,{kind:"field",name:"_applyDecalMapAfterDetailMap",static:!1,private:!1,access:{has:e=>"_applyDecalMapAfterDetailMap"in e,get:e=>e._applyDecalMapAfterDetailMap,set:(e,t)=>{e._applyDecalMapAfterDetailMap=t}},metadata:iH},iU,ik),iH&&Object.defineProperty(iw,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:iH}),iw.ForceGLSL=!1,iw),sH=!1;function sw(){sH||(sH=!0,(0,sE.RegisterImageProcessingConfiguration)(),(0,sN.RegisterClass)("BABYLON.StandardMaterial",sG),sm.Scene.DefaultMaterialFactory=e=>new sG("default material",e))}Object.getOwnPropertyDescriptor(sG.prototype,"decalMap")||Object.defineProperty(sG.prototype,"decalMap",(0,sy._MissingSideEffectProperty)("StandardMaterial","decalMap")),e.s(["RegisterStandardMaterial",0,sw,"StandardMaterial",0,sG,"StandardMaterialDefines",0,sk],99786),sw(),e.s([],20794)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61352,t=>{"use strict";var e=t.i(62478),i=t.i(75105),o=t.i(44520);class l extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.body=this.registerDataInput("body",i.RichTypeAny),this.velocity=this.registerDataInput("velocity",i.RichTypeVector3)}_execute(t,e){let i=this.body.getValue(t);if(!i){this._reportError(t,"No physics body provided"),this.out._activateSignal(t);return}i.setAngularVelocity(this.velocity.getValue(t)),this.out._activateSignal(t)}getClassName(){return"FlowGraphSetAngularVelocityBlock"}}let r=!1;function c(){r||(r=!0,(0,o.RegisterClass)("FlowGraphSetAngularVelocityBlock",l))}t.s(["FlowGraphSetAngularVelocityBlock",0,l,"RegisterFlowGraphSetAngularVelocityBlock",0,c],7716),c(),t.s([],8215),t.i(8215),t.i(7716),t.s(["FlowGraphSetAngularVelocityBlock",0,l],61352)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47150,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},3524,69680,e=>{"use strict";var t=e.i(41041),s=e.i(3864);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new s.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let s=0;s<e.length;s++){let r=e[s];r&&t.push(r)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let s=this._scene.activeCamera;return!!s&&!!(t=t||this._getActivePostProcesses(s._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(s,e,null!=t),!0)}directRender(e,t=null,s=!1,r=0,i=0,a=!1,n=e.length){let h=this._scene.getEngine();for(let o=0;o<n;o++){o<e.length-1?e[o+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?h.bindFramebuffer(t,r,void 0,void 0,s,i):a||h.restoreDefaultFramebuffer(),h._debugInsertMarker?.(`post process ${e[o].name} output`));let n=e[o],l=n.apply();l&&(n.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),h.bindBuffers(this._vertexBuffers,this._indexBuffer,l),h.drawElementsType(0,0,6),n.onAfterRenderObservable.notifyObservers(l))}h.setDepthBuffer(!0),h.setDepthWrite(!0)}_finalizeFrame(e,t,s,r,i=!1){let a=this._scene.activeCamera;if(!a||(this.onBeforeRenderObservable.notifyObservers(this),0===(r=r||this._getActivePostProcesses(a._postProcesses)).length||!this._scene.postProcessesEnabled))return;let n=this._scene.getEngine();for(let h=0,o=r.length;h<o;h++){let l=r[h];if(h<o-1?l._outputTexture=r[h+1].activate(a,t?.texture):(t?(n.bindFramebuffer(t,s,void 0,void 0,i),l._outputTexture=t):(n.restoreDefaultFramebuffer(),l._outputTexture=null),n._debugInsertMarker?.(`post process ${r[h].name} output`)),e)break;let c=l.apply();c&&(l.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),n.bindBuffers(this._vertexBuffers,this._indexBuffer,c),n.drawElementsType(0,0,6),l.onAfterRenderObservable.notifyObservers(c))}n.setDepthBuffer(!0),n.setDepthWrite(!0),n.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],3524);var r=e.i(32451),i=e.i(69400);class a{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=a.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=a.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=a.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,s=null,i=null,a=null){this.index=e,this._opaqueSubMeshes=new r.SmartArray(256),this._transparentSubMeshes=new r.SmartArray(256),this._alphaTestSubMeshes=new r.SmartArray(256),this._depthOnlySubMeshes=new r.SmartArray(256),this._particleSystems=new r.SmartArray(256),this._spriteManagers=new r.SmartArray(256),this._empty=!0,this._edgesRenderers=new r.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=s,this.alphaTestSortCompareFn=i,this.transparentSortCompareFn=a}render(e,t,s,r,i=!0,a=!0,n=!0,h=!0,o){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let l=this._scene.getEngine();i&&0!==this._depthOnlySubMeshes.length&&(l.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),l.setColorWrite(!0)),a&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),n&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let c=l.getStencilBuffer();if(l.setStencilBuffer(!1),t&&this._renderSprites(),s&&this._renderParticles(r),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),h&&(o||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(l.setStencilBuffer(c),o)o(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);l.setAlphaMode(0)}if(l.setStencilBuffer(!1),a&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();l.setAlphaMode(0)}l.setStencilBuffer(c)}_renderOpaqueSorted(e){a._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){a._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){a._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,s,r,n){let h,o=0,l=s?s.globalPosition:a._ZeroVector;if(r)for(;o<e.length;o++)(h=e.data[o])._alphaIndex=h.getMesh().alphaIndex,h._distanceToCamera=i.Vector3.Distance(h.getBoundingInfo().boundingSphere.centerWorld,l);let c=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&c.sort(t);let u=c[0].getMesh().getScene();for(o=0;o<c.length;o++)if(h=c[o],!u._activeMeshesFrozenButKeepClipping||h.isInFrustum(u._frustumPlanes)){if(r){let e=h.getMaterial();if(e&&e.needDepthPrePass&&!n){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),h.render(!1),t.setColorWrite(!0)}}h.render(r)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:a.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let s=e.getMesh(),r=t.getMesh();return s.material&&r.material?s.material.uniqueId-r.material.uniqueId:s.uniqueId-r.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),void 0===s&&(s=e.getMaterial()),null!=s&&(s.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):s.needAlphaTestingForMesh(t)?(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let s=0;s<this._particleSystems.length;s++){let r=this._particleSystems.data[s];if(0===(t&&t.layerMask&r.layerMask))continue;let i=r.emitter;i.position&&e&&-1===e.indexOf(i)||this._scene._activeParticles.addCount(r.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let s=this._spriteManagers.data[t];0!==(e&&e.layerMask&s.layerMask)&&s.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}a._ZeroVector=i.Vector3.Zero();class n{}class h{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new n,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,s,r,i=!0,a=!0,n=!0,o=!0,l){let c=this._renderingGroupInfo;if(c.scene=this._scene,c.camera=this._scene.activeCamera,c.renderingManager=this,this._scene.spriteManagers&&r)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=h.MIN_RENDERINGGROUPS;u<h.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===h.MIN_RENDERINGGROUPS;let p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(c.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(c,d),h.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let h of(p.render(e,r,s,t,i,a,n,o,l),this._scene._afterRenderingGroupDrawStage))h.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(c,d)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new a(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,s))}setRenderingOrder(e,t=null,s=null,r=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=s,this._customTransparentSortCompareFn[e]=r,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,s=!0,r=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:s,stencil:r}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}h.MAX_RENDERINGGROUPS=4,h.MIN_RENDERINGGROUPS=0,h.AUTOCLEAR=!0,e.s(["RenderingManager",0,h],69680)},11267,e=>{"use strict";var t=e.i(87627);class s{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=s.Enabled,this._lastSecValueCount++}addCount(e,t){s.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){s.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!s.Enabled)return;e&&this.fetchNewFrame();let r=t.PrecisionDate.Now;this._current=r-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}s.Enabled=!0,e.s(["PerfCounter",0,s])},57660,e=>{"use strict";var t=e.i(96042);class s{static GetPlanes(e){let r=[];for(let e=0;e<6;e++)r.push(new t.Plane(0,0,0,0));return s.GetPlanesToRef(e,r),r}static GetNearPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[2],t.normal.y=s[7]+s[6],t.normal.z=s[11]+s[10],t.d=s[15]+s[14],t.normalize()}static GetFarPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[2],t.normal.y=s[7]-s[6],t.normal.z=s[11]-s[10],t.d=s[15]-s[14],t.normalize()}static GetLeftPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[0],t.normal.y=s[7]+s[4],t.normal.z=s[11]+s[8],t.d=s[15]+s[12],t.normalize()}static GetRightPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[0],t.normal.y=s[7]-s[4],t.normal.z=s[11]-s[8],t.d=s[15]-s[12],t.normalize()}static GetTopPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[1],t.normal.y=s[7]-s[5],t.normal.z=s[11]-s[9],t.d=s[15]-s[13],t.normalize()}static GetBottomPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[1],t.normal.y=s[7]+s[5],t.normal.z=s[11]+s[9],t.d=s[15]+s[13],t.normalize()}static GetPlanesToRef(e,t){s.GetNearPlaneToRef(e,t[0]),s.GetFarPlaneToRef(e,t[1]),s.GetLeftPlaneToRef(e,t[2]),s.GetRightPlaneToRef(e,t[3]),s.GetTopPlaneToRef(e,t[4]),s.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let s=0;s<6;s++)if(0>t[s].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,s])},92247,e=>{"use strict";var t=e.i(69400),s=e.i(41041);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,r=!0){let i;if(!this.pickedMesh||r&&!this.pickedMesh.isVerticesDataPresent(s.VertexBuffer.NormalKind))return null;let a=this.pickedMesh.getIndices();a?.length===0&&(a=null);let n=t.TmpVectors.Vector3[0],h=t.TmpVectors.Vector3[1],o=t.TmpVectors.Vector3[2];if(r){let e=this.pickedMesh.getVerticesData(s.VertexBuffer.NormalKind),r=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],n):n.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);r=r.scale(this.bu),l=l.scale(this.bv),c=c.scale(1-this.bu-this.bv),i=new t.Vector3(r.x+l.x+c.x,r.y+l.y+c.y,r.z+l.z+c.z)}else{let e=this.pickedMesh.getVerticesData(s.VertexBuffer.PositionKind),r=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],n):n.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=r.subtract(l),p=c.subtract(l);i=t.Vector3.Cross(u,p)}let l=(e,s)=>{if(-1!==this.thinInstanceIndex){let r=e._thinInstanceDataStorage.matrixData,i=this.thinInstanceIndex<<4;if(r&&r.length>i){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(r,i,e),t.Vector3.TransformNormalToRef(s,e,s)}}let r=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(r),(r=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),r.invert(),r.transposeToRef(t.TmpVectors.Matrix[1]),r=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(s,r,s)};if(e&&l(this.pickedMesh,i),this.ray){let s=t.TmpVectors.Vector3[0].copyFrom(i);e||l(this.pickedMesh,s),t.Vector3.Dot(s,this.ray.direction)>0&&i.negateInPlace()}return i.normalize(),i}getTextureCoordinates(e=s.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let r=this.pickedMesh.getIndices();if(!r)return null;let i=this.pickedMesh.getVerticesData(e);if(!i)return null;let a=t.Vector2.FromArray(i,2*r[3*this.faceId]),n=t.Vector2.FromArray(i,2*r[3*this.faceId+1]),h=t.Vector2.FromArray(i,2*r[3*this.faceId+2]);return a=a.scale(this.bu),n=n.scale(this.bv),h=h.scale(1-this.bu-this.bv),new t.Vector2(a.x+n.x+h.x,a.y+n.y+h.y)}}])},84964,e=>{"use strict";var t=e.i(69400);class s{}s.POINTERDOWN=1,s.POINTERUP=2,s.POINTERMOVE=4,s.POINTERWHEEL=8,s.POINTERPICK=16,s.POINTERTAP=32,s.POINTERDOUBLETAP=64;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,s,"PointerInfo",0,class extends r{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,s,r=null){super(e,t),this._pickInfo=s,this._inputManager=r}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends r{constructor(e,s,r,i){super(e,s),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(r,i)}}])},71092,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class s{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,s,"KeyboardInfoPre",0,class extends s{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},4021,e=>{"use strict";var t,s;(s=t||(t={}))[s.PointerMove=0]="PointerMove",s[s.PointerDown=1]="PointerDown",s[s.PointerUp=2]="PointerUp";class r{}r.DOM_DELTA_PIXEL=0,r.DOM_DELTA_LINE=1,r.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,r])},34769,e=>{"use strict";var t=e.i(66460);(0,t.RegisterScene)(),e.s([],77755),e.i(77755),e.s(["RegisterScene",()=>t.RegisterScene,"Scene",()=>t.Scene,"ScenePerformancePriority",()=>t.ScenePerformancePriority],34769)}]);
|