@uptimizr/dashboard 0.4.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +9 -9
- package/out/__next._full.txt +10 -10
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{209sxygecny37.js → 0-6mdj5wxsfid.js} +1 -1
- package/out/_next/static/chunks/{0ybs1u66q26su.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/02ic9b5ejugow.js +1 -0
- package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
- package/out/_next/static/chunks/{33i36o_l69sm5.js → 03pjr-ivdicng.js} +1 -1
- package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
- package/out/_next/static/chunks/{1zm6eo861i3c8.js → 06dzkwetqis-5.js} +1 -1
- package/out/_next/static/chunks/{3ipx7xbxchsq9.js → 06kvanz5-fo52.js} +1 -1
- package/out/_next/static/chunks/07y8ke_iy59dn.js +1 -0
- package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
- package/out/_next/static/chunks/{35sne1llxnc-m.js → 09khmdgez3t0a.js} +18 -18
- package/out/_next/static/chunks/{02qk_wmkf9at-.js → 0_dca4876jshu.js} +38 -38
- 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/{0-_j1khfoib6l.js → 0ctain5xq2wsd.js} +12 -12
- package/out/_next/static/chunks/{22yqh0zlo_vwr.js → 0df-dr3otg_4w.js} +1 -1
- package/out/_next/static/chunks/{26y9sv8_-ykxf.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/{0grasqqf5dw7r.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/{1uh9zgsy69g92.js → 0ip6v64di_l6x.js} +1 -1
- package/out/_next/static/chunks/{267prao6fyt22.js → 0ixymgjgz3grn.js} +10 -10
- 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/{1gttu-n9am66k.js → 0oyf2xzv8ofkk.js} +21 -21
- package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
- package/out/_next/static/chunks/{1qg1l7t00nyib.js → 0rl4ddh2vgxyl.js} +14 -14
- package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
- package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
- package/out/_next/static/chunks/{43fp64xnfy646.js → 0te4g160_rb5d.js} +1 -1
- package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
- package/out/_next/static/chunks/{3h6akt2uu05ku.js → 0uvn0op2mlr2u.js} +12 -12
- package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
- package/out/_next/static/chunks/{1m9zc5gm-327d.js → 0w7c30w07uct2.js} +10 -10
- package/out/_next/static/chunks/0wm38z3u2133a.js +1 -0
- package/out/_next/static/chunks/0y7yk5al7_p8q.js +4 -0
- package/out/_next/static/chunks/0ywvahq9t0tki.js +1 -0
- package/out/_next/static/chunks/0zh6nslagkby-.js +1 -0
- package/out/_next/static/chunks/{3vbamaoiuk9yj.js → 0zo8xa0nej3ex.js} +1 -1
- package/out/_next/static/chunks/{2of8q0kaeqpf0.js → 0zsir95gpf3xw.js} +1 -1
- package/out/_next/static/chunks/0zu6ryyj0ig-j.js +3 -0
- package/out/_next/static/chunks/{2c721vfva711t.js → 1-jv8k10q_1uw.js} +1 -1
- package/out/_next/static/chunks/1-s5ioie9a94e.js +1 -0
- package/out/_next/static/chunks/{13zcn4lv0qj76.js → 1-yos1h0qws5e.js} +11 -11
- package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
- package/out/_next/static/chunks/{060iult6f68_e.js → 10pae4gb9i929.js} +29 -29
- package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
- package/out/_next/static/chunks/{0btmk0wmekl02.js → 147s8i_lktp4_.js} +2 -2
- package/out/_next/static/chunks/{3njwfothmmg7u.js → 14tgo5xt_3j4w.js} +1 -1
- package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
- package/out/_next/static/chunks/16d6n9e77rqti.js +1 -0
- package/out/_next/static/chunks/{3zs7l4362msjd.js → 16f3d5dv83rsr.js} +1 -1
- package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
- package/out/_next/static/chunks/{1by60_b14x-3o.js → 16rfr165nbha0.js} +1 -1
- package/out/_next/static/chunks/{0zqgq0lwtz9tn.js → 16sl51pvzo4tf.js} +1 -1
- package/out/_next/static/chunks/{2n-pveub8b_5t.js → 1760s-32qpwgg.js} +1 -1
- package/out/_next/static/chunks/{1u8snlm6a7uhi.js → 18kq07c5xy_4g.js} +4 -4
- package/out/_next/static/chunks/{1rcdimhu0qhlu.js → 190tbzt861ao3.js} +39 -39
- package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
- package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
- package/out/_next/static/chunks/{3huu0tqmxwowu.js → 1_kikmeubh0wq.js} +30 -30
- 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/1bf421g4peccx.js +2 -0
- package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
- package/out/_next/static/chunks/{1e8_jl2cxd3rp.js → 1ddt0ot7kl8vq.js} +40 -40
- package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
- package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
- package/out/_next/static/chunks/{2apihn9ra2ufp.js → 1g9p2h1-31q8o.js} +1 -1
- package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
- package/out/_next/static/chunks/{3v-0c2aj6c0on.js → 1h8lyicgqhpxa.js} +1 -1
- package/out/_next/static/chunks/{3772oce1n3t_g.js → 1hot663akaepl.js} +1 -1
- package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
- package/out/_next/static/chunks/{2sys9nj8lo3uk.js → 1i8sk_qgpdjhs.js} +1 -1
- package/out/_next/static/chunks/1k8erl2uygr8g.js +1 -0
- package/out/_next/static/chunks/{30bhz7czzs4mf.js → 1kk3ct7pkpf3b.js} +1 -1
- package/out/_next/static/chunks/{33hp-khdfohdq.js → 1kq9o8del67le.js} +1 -1
- package/out/_next/static/chunks/{3d-i_skta_wes.js → 1l7tzyx2mumlq.js} +1 -1
- 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/1ogs4_aj84bfn.js +1 -0
- package/out/_next/static/chunks/{0sw-8gxbg4x0l.js → 1p206txlluipi.js} +18 -18
- package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
- package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
- package/out/_next/static/chunks/{41b5gpyqbj58m.js → 1qcgdx9yl0gfx.js} +4 -4
- 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/{15o4_2t-l3rj5.js → 1sa6qiidtcyk2.js} +1 -1
- package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
- package/out/_next/static/chunks/{1rlfg62jxqj3z.js → 1t97zo0tlpbnz.js} +1 -1
- package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
- package/out/_next/static/chunks/{3sa_hlx3konc7.js → 1trt-m2nrck0v.js} +1 -1
- package/out/_next/static/chunks/1ty9jpwr3o_st.js +1 -0
- package/out/_next/static/chunks/1u6w6veke8rze.js +1 -0
- package/out/_next/static/chunks/1u900urmrbv73.js +1 -0
- package/out/_next/static/chunks/{3_dgblylldcgb.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/{3xl-op0hwxytg.js → 1xf1wfow43ekc.js} +5 -5
- package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
- package/out/_next/static/chunks/{2s6kpclh6ie7o.js → 1y_zykt3fpen4.js} +29 -29
- package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
- package/out/_next/static/chunks/{1t5oynmttpfsw.js → 1z6_57k5h31u7.js} +1 -1
- package/out/_next/static/chunks/{0lep3_bqwfuin.js → 1zboqft0h6mop.js} +1 -1
- package/out/_next/static/chunks/{43v4y2gu5z9_h.js → 1zr3c351x0ri5.js} +1 -1
- package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
- package/out/_next/static/chunks/206hxrq60f1_e.js +1 -0
- package/out/_next/static/chunks/20r05k3-studj.js +1 -0
- package/out/_next/static/chunks/221j_mhvdpitn.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/{2a07so920b6aa.js → 22z-2t_yp1jzs.js} +1 -1
- package/out/_next/static/chunks/{30n4y_uu8chbh.js → 23hmfdw6z5zfy.js} +30 -30
- package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
- package/out/_next/static/chunks/{3f8qelpscqfym.js → 24tbkj1qkux88.js} +2 -2
- package/out/_next/static/chunks/{2ao-3jzz7yw3p.js → 26cmri51v7497.js} +11 -11
- 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/{3qn6r8-0u6dij.js → 2a31-txop1jzg.js} +38 -38
- package/out/_next/static/chunks/2aanowvpmkmvj.js +1 -0
- package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
- package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
- package/out/_next/static/chunks/{2kok6zedeeltw.js → 2ept01b7t-e03.js} +1 -1
- package/out/_next/static/chunks/{3w59kt5ztyvoq.js → 2ey5dqelco_g5.js} +1 -1
- package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
- package/out/_next/static/chunks/{0fd-0i1yt23kz.js → 2ftz9kaxrsgxh.js} +1 -1
- package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
- package/out/_next/static/chunks/{2izok2otbk8-2.js → 2gs-u1n5uv7iz.js} +37 -37
- package/out/_next/static/chunks/{2r96kyeehsji9.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/2lh_w9rzy3vek.js +1 -0
- package/out/_next/static/chunks/{0rracz73p38mo.js → 2ln1na26qwp-3.js} +9 -9
- 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/{005bbq_px7lke.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/{0gf-ztg86zd80.js → 2qe46redkqhfg.js} +1 -1
- package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
- package/out/_next/static/chunks/{0e1jfrmioeuws.js → 2rofu6gu1xzuq.js} +1 -1
- 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/{1l_3oidssbhns.js → 2urh9qafp3fiw.js} +17 -17
- package/out/_next/static/chunks/{05v-nubi896jg.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/{37cnbm5ft1mqf.js → 2wwra56rehfcj.js} +1 -1
- 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/30t3203d7p2da.js +1 -0
- package/out/_next/static/chunks/31kto7-dxkt3z.js +1 -0
- package/out/_next/static/chunks/{2lsvk7xcfkarc.js → 32oflcl79d8mu.js} +1 -1
- package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
- package/out/_next/static/chunks/{0z9erbl3llr_b.js → 331kthnvoma7n.js} +16 -16
- package/out/_next/static/chunks/{0q75860p8u_ii.js → 337kn1mn34rc6.js} +1 -1
- package/out/_next/static/chunks/{2tc3e-iqv71y_.js → 33xug8kf0-a1o.js} +1 -1
- package/out/_next/static/chunks/{1-ogak5u00kwa.js → 34dcb7_flbrvo.js} +1 -1
- package/out/_next/static/chunks/34g070edw165e.js +3 -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/{15jlgfcaeaki9.js → 36yv-ialtpx98.js} +1 -1
- package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
- package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
- package/out/_next/static/chunks/{1q4lkgxfnqnew.js → 37xnvnx1jxfaf.js} +1 -1
- package/out/_next/static/chunks/{2z_iab7ozohhq.js → 38w74ixqt-9co.js} +16 -16
- package/out/_next/static/chunks/{2h249uvhh2sij.js → 39t2x_9zd2rst.js} +10 -10
- package/out/_next/static/chunks/{2n3xu_wbvtj7h.js → 3_xqc3658d8sw.js} +12 -12
- package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
- package/out/_next/static/chunks/{2q6l-xdqzgmpf.js → 3buezhxqc8n6n.js} +1 -1
- package/out/_next/static/chunks/{1zt1xxovnjhkm.js → 3c5iwwj-fhbue.js} +1 -1
- package/out/_next/static/chunks/{2urx6fow8c8c9.js → 3d8ot2tw6yqfq.js} +12 -12
- package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
- package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
- package/out/_next/static/chunks/{2y8i7_nxm4r05.js → 3fuqxjjf8o1v9.js} +5 -5
- package/out/_next/static/chunks/{0z004fn14pbcu.js → 3gt6rzg9qw-an.js} +1 -1
- package/out/_next/static/chunks/{1tgj55b305g4h.js → 3h_05w5j8x538.js} +1 -1
- package/out/_next/static/chunks/{3j9xvdz55bi4p.js → 3hkhd1_k8xohv.js} +33 -33
- package/out/_next/static/chunks/{42ymanq326mo7.js → 3ijcc5tfisfnj.js} +1 -1
- package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
- package/out/_next/static/chunks/{1zkd8v-qka--j.js → 3ju83xk-ca7ma.js} +21 -21
- package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
- package/out/_next/static/chunks/{302qk2fjdrthp.js → 3la99oz_0p0r6.js} +5 -5
- package/out/_next/static/chunks/3n1b34fd5fdrh.js +1 -0
- package/out/_next/static/chunks/{2j120dkh7q3uf.js → 3nq_hq4x3rn3r.js} +1 -1
- 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/{2w99knknr5i8c.js → 3q38kdbzd2nbd.js} +1 -1
- package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
- package/out/_next/static/chunks/{2uo6vm7mfgrbf.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/{2q8yg63br2jc9.js → 3u7zj1-jdg781.js} +1 -1
- package/out/_next/static/chunks/{32_c4mbb6j1l6.js → 3wj5dmf6cywz8.js} +22 -22
- package/out/_next/static/chunks/{3oqxl46ukaojj.js → 3wr_oijfsq8lr.js} +11 -11
- package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
- package/out/_next/static/chunks/3y5tpixt23-fl.js +1 -0
- 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/{0ai0zgbgjqb92.js → 43usshq2nc125.js} +1 -1
- package/out/_next/static/chunks/{0hajwk2yd-rwr.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 +8 -8
- package/out/_not-found/__next._not-found.__PAGE__.txt +7 -7
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +8 -8
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +10 -10
- package/out/_next/static/chunks/00fbhtmui-yxg.js +0 -1
- package/out/_next/static/chunks/017pn-pen381_.js +0 -1
- package/out/_next/static/chunks/01vov6inx1zzt.js +0 -1
- package/out/_next/static/chunks/03bd5plut08tg.js +0 -1
- package/out/_next/static/chunks/03dwfqmo73w_z.js +0 -1
- package/out/_next/static/chunks/03sn4419dam-h.js +0 -5
- package/out/_next/static/chunks/05ere0-228syf.js +0 -1
- package/out/_next/static/chunks/05h8u5lrypn5m.js +0 -1
- package/out/_next/static/chunks/05z79zh625ezu.js +0 -1
- package/out/_next/static/chunks/08lvtnv7b1cxp.js +0 -1
- package/out/_next/static/chunks/0_v2luu_qmeid.js +0 -1
- package/out/_next/static/chunks/0boov9mwycanf.js +0 -1
- package/out/_next/static/chunks/0d8x8m2x6ca_m.js +0 -1
- package/out/_next/static/chunks/0dmrdrwtd093b.js +0 -1
- package/out/_next/static/chunks/0e7nlxmneb2j_.js +0 -1
- package/out/_next/static/chunks/0es97pusfxupl.js +0 -1
- package/out/_next/static/chunks/0fxdyvb1w23d1.js +0 -1
- package/out/_next/static/chunks/0fxhc24djjcgq.js +0 -1
- package/out/_next/static/chunks/0hk1wg7h4araz.js +0 -1
- package/out/_next/static/chunks/0j74ipw4fps-n.js +0 -1
- package/out/_next/static/chunks/0kj-vckdn7t5p.js +0 -1
- package/out/_next/static/chunks/0lbs5xdyjuzuo.js +0 -1
- package/out/_next/static/chunks/0mp0jh1gj7290.js +0 -1
- package/out/_next/static/chunks/0ngpoj2g5i4kz.js +0 -1
- package/out/_next/static/chunks/0nhljhguceh66.js +0 -1
- package/out/_next/static/chunks/0p6z73afb9dj2.js +0 -1
- package/out/_next/static/chunks/0p9zfmidzqkps.js +0 -1
- package/out/_next/static/chunks/0sx-6rf3eteqn.js +0 -1
- package/out/_next/static/chunks/0thw099xk3_0p.js +0 -3
- package/out/_next/static/chunks/0u85f0dhb4i8e.js +0 -1
- package/out/_next/static/chunks/0uk7kigzm4vi2.js +0 -31
- package/out/_next/static/chunks/0ulufxnsrou61.js +0 -1
- package/out/_next/static/chunks/0xa9dyg6ezzyd.js +0 -2
- package/out/_next/static/chunks/0xvrfvur0p534.js +0 -1
- package/out/_next/static/chunks/0ydfhk-p6zvm0.js +0 -1
- package/out/_next/static/chunks/0zcsxvcvog9ue.js +0 -1
- package/out/_next/static/chunks/10_5p5-xf2aoo.js +0 -1
- package/out/_next/static/chunks/118qlrzdwpfmo.js +0 -1
- package/out/_next/static/chunks/11km5p4gd0ut4.js +0 -1
- package/out/_next/static/chunks/120rl4l29q9xs.js +0 -1
- package/out/_next/static/chunks/129m5i93ltoym.js +0 -1
- package/out/_next/static/chunks/12n73o884lyyl.js +0 -1
- package/out/_next/static/chunks/133glnfos64oo.js +0 -1
- package/out/_next/static/chunks/175st2ogkg_1o.js +0 -1
- package/out/_next/static/chunks/19rsodtu91ja_.js +0 -1
- package/out/_next/static/chunks/1a2ouhup611bz.js +0 -1
- package/out/_next/static/chunks/1cyq7i39885sl.js +0 -1
- package/out/_next/static/chunks/1d9it6yocgt54.js +0 -1
- package/out/_next/static/chunks/1dp1s1t-y7gal.js +0 -1
- package/out/_next/static/chunks/1dr7gh6xgypl8.js +0 -1
- package/out/_next/static/chunks/1dt30s_sp8415.js +0 -1
- package/out/_next/static/chunks/1f1rek_fxk3of.js +0 -1
- package/out/_next/static/chunks/1f2mna0k5efeq.js +0 -1
- package/out/_next/static/chunks/1gfz3sxwkkg3d.js +0 -1
- package/out/_next/static/chunks/1gr35qeguuws0.js +0 -1
- package/out/_next/static/chunks/1imi0xwi9hd99.js +0 -1
- package/out/_next/static/chunks/1ka5v5zu0cstt.js +0 -1
- package/out/_next/static/chunks/1n9nhz-6azcp3.js +0 -3
- package/out/_next/static/chunks/1ncqwe81t_9_x.js +0 -1
- package/out/_next/static/chunks/1nix_lulkpklo.js +0 -1
- package/out/_next/static/chunks/1ntqovuz2c217.js +0 -1
- package/out/_next/static/chunks/1pgs-98tfkq9_.js +0 -1
- package/out/_next/static/chunks/1q2z0aeopo8t8.js +0 -1
- package/out/_next/static/chunks/1ses023uud001.js +0 -1
- package/out/_next/static/chunks/1t9i20i5-f8ze.js +0 -1
- package/out/_next/static/chunks/1ug4k-1zhr63a.js +0 -1
- package/out/_next/static/chunks/1vrpzlif-z_p0.js +0 -1
- package/out/_next/static/chunks/1vurgl6oz2qey.js +0 -17
- package/out/_next/static/chunks/1w-qc09n9ijtq.js +0 -1
- package/out/_next/static/chunks/1ycqxcht6x54p.js +0 -1
- package/out/_next/static/chunks/1zj4307ugq0qz.js +0 -1
- package/out/_next/static/chunks/1zm52cjrfrq7c.js +0 -1
- package/out/_next/static/chunks/1zp9363yfhpom.js +0 -1
- package/out/_next/static/chunks/2-3hk_db5fpok.js +0 -1
- package/out/_next/static/chunks/2-bv9a_0zgw1f.js +0 -1
- package/out/_next/static/chunks/216uiih3_vdfd.js +0 -1
- package/out/_next/static/chunks/21kfpd_bityxt.js +0 -1
- package/out/_next/static/chunks/24ecas0m9tao7.js +0 -3
- package/out/_next/static/chunks/24pq9210rng3f.js +0 -1
- package/out/_next/static/chunks/26skkagvj1z96.js +0 -1
- package/out/_next/static/chunks/2701xfv_07wz_.js +0 -1
- package/out/_next/static/chunks/271333m8y3k0e.js +0 -1
- package/out/_next/static/chunks/29rkmguzky-bp.js +0 -1
- package/out/_next/static/chunks/2a2oy8ryz2tsk.js +0 -1
- package/out/_next/static/chunks/2apnpj0-fs9ks.js +0 -1
- package/out/_next/static/chunks/2b481pitl4k85.js +0 -1
- package/out/_next/static/chunks/2bettxaqt3d2p.js +0 -1
- package/out/_next/static/chunks/2d2kl_m64j9cb.js +0 -1
- package/out/_next/static/chunks/2droqjmvmgj13.js +0 -1
- package/out/_next/static/chunks/2dxbvwbbgpzoq.js +0 -1
- package/out/_next/static/chunks/2eqbsut829r5l.js +0 -1
- package/out/_next/static/chunks/2f3_mzxjh3gso.js +0 -1
- package/out/_next/static/chunks/2fsde0jwi5qtt.js +0 -1
- package/out/_next/static/chunks/2j2ynchpqh34-.js +0 -1
- package/out/_next/static/chunks/2kj6pzs_wap1v.js +0 -1
- package/out/_next/static/chunks/2lnj9jruy4nrv.js +0 -1
- package/out/_next/static/chunks/2ofwtw6p08sfz.js +0 -1
- package/out/_next/static/chunks/2phl5ta4iim7l.js +0 -12
- package/out/_next/static/chunks/2r5qgieqldcd9.js +0 -1
- package/out/_next/static/chunks/2r7y401cvjc1s.js +0 -1
- package/out/_next/static/chunks/2rmc6ru7mc-kg.js +0 -1
- package/out/_next/static/chunks/2w2k1gveljyb7.js +0 -1
- package/out/_next/static/chunks/2w_ptlw-ad8-9.js +0 -4
- package/out/_next/static/chunks/2ws1s9d52ayv8.js +0 -1
- package/out/_next/static/chunks/2x7enks3ydgai.js +0 -1
- package/out/_next/static/chunks/2ydub0t01728d.js +0 -1
- package/out/_next/static/chunks/3-m_vzabs1uez.js +0 -1
- package/out/_next/static/chunks/3527r3jo5fj3i.js +0 -1
- package/out/_next/static/chunks/355dg8yaa94hr.js +0 -1
- package/out/_next/static/chunks/35ntbr_c-yx44.js +0 -1
- package/out/_next/static/chunks/36enkx1skkv2-.js +0 -4
- package/out/_next/static/chunks/38xdo3cifphut.js +0 -1
- package/out/_next/static/chunks/3beawo-qwuk8k.js +0 -1
- package/out/_next/static/chunks/3cj_6sl9kr3e9.js +0 -1
- package/out/_next/static/chunks/3df_l2we755bb.js +0 -1
- package/out/_next/static/chunks/3eve5y7fpzx2h.js +0 -1
- package/out/_next/static/chunks/3ewgyb4y19w-3.js +0 -1
- package/out/_next/static/chunks/3f3789eh18_oy.js +0 -1
- package/out/_next/static/chunks/3g3-e9m1en45q.js +0 -1
- package/out/_next/static/chunks/3i239y-1hbkm-.js +0 -1
- package/out/_next/static/chunks/3kp8qmhoi24oz.js +0 -1
- package/out/_next/static/chunks/3ksq69yq-40_r.js +0 -1
- package/out/_next/static/chunks/3qye1lytea2i8.js +0 -1
- package/out/_next/static/chunks/3rlp9yr75liz7.js +0 -1
- package/out/_next/static/chunks/3tyo643l62h3m.js +0 -1
- package/out/_next/static/chunks/3tz2tpqa9uvwm.js +0 -1
- package/out/_next/static/chunks/3utpc-fc6_y0f.js +0 -1
- package/out/_next/static/chunks/3v6nxa28rxngq.js +0 -1
- package/out/_next/static/chunks/3vv99btjc-mky.js +0 -1
- package/out/_next/static/chunks/3x02lxdo28u9i.js +0 -1
- package/out/_next/static/chunks/3ydnxyc4rvad_.js +0 -1
- package/out/_next/static/chunks/3ylg4gfetwgxw.js +0 -1
- package/out/_next/static/chunks/3zdtteq-r2fs5.js +0 -62
- package/out/_next/static/chunks/3zkwt0gybqtgm.js +0 -1
- package/out/_next/static/chunks/40etabvml_71y.js +0 -1
- package/out/_next/static/chunks/417jkzz0slv9m.js +0 -1
- package/out/_next/static/chunks/41u2-5jayyajf.js +0 -22
- package/out/_next/static/chunks/42gcpy51w7lk1.js +0 -1
- package/out/_next/static/chunks/44cer242u-f8v.js +0 -1
- package/out/_next/static/chunks/44zi0gl0a6a8w.js +0 -1
- package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +0 -1
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → ThV8NNsoOCsJ6Q9-7H2dV}/_buildManifest.js +0 -0
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → ThV8NNsoOCsJ6Q9-7H2dV}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → ThV8NNsoOCsJ6Q9-7H2dV}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36796,e=>{"use strict";var t=e.i(23422),i=e.i(65678),o=e.i(80129),r=e.i(69194),a=e.i(8697),n=e.i(68282);class s extends t.FlowGraphExecutionBlockWithOutSignal{constructor(e){super(e),this.startIndex=this.registerDataInput("startIndex",i.RichTypeAny,0),this.endIndex=this.registerDataInput("endIndex",i.RichTypeAny),this.step=this.registerDataInput("step",i.RichTypeNumber,1),this.index=this.registerDataOutput("index",i.RichTypeFlowGraphInteger,new r.FlowGraphInteger((0,o.getNumericValue)(e?.initialIndex??0))),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(e){let t=(0,o.getNumericValue)(this.startIndex.getValue(e)),i=this.step.getValue(e),n=(0,o.getNumericValue)(this.endIndex.getValue(e)),l=this.config?.maxLoopIterations??s.MaxLoopIterations,u=0,h=!1;for(let a=t;a<n;a+=i)if(this.index.setValue(new r.FlowGraphInteger(a),e),this.executionFlow._activateSignal(e),n=(0,o.getNumericValue)(this.endIndex.getValue(e)),++u>=l){h=!0;break}h&&a.Logger.Warn(`FlowGraphForLoopBlock: loop stopped after reaching the ${l}-iteration safety cap before its range completed.`),this.config?.incrementIndexWhenLoopDone&&this.index.setValue(new r.FlowGraphInteger((0,o.getNumericValue)(this.index.getValue(e))+i),e),this.completed._activateSignal(e)}getClassName(){return"FlowGraphForLoopBlock"}}s.MaxLoopIterations=1e3;let l=!1;e.s(["FlowGraphForLoopBlock",0,s,"RegisterFlowGraphForLoopBlock",0,function(){l||(l=!0,(0,n.RegisterClass)("FlowGraphForLoopBlock",s))}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44209,t=>{"use strict";var e=t.i(69194),i=t.i(65678);class r{constructor(t,r){this.path=t,this.ownerBlock=r,this.templatedInputs=[],this.templateInfos=[];const o=new Set,n=(n,a)=>{let s=n.exec(t);for(;s;){let[,l]=s;if(o.has(l))throw Error("Duplicate template variable detected.");o.add(l);let u=r.registerDataInput(l,i.RichTypeAny,new e.FlowGraphInteger(0));this.templatedInputs.push(u),this.templateInfos.push({name:l,style:a,connection:u}),s=n.exec(t)}};n(new RegExp(/\/\{(\w+)\}(?=\/|$)/g),"curly"),n(new RegExp(/\/\[(\w+)\](?=\/|$)/g),"square")}getAccessor(t,i){let r=this.path;for(let t of this.templateInfos){let a=t.connection.getValue(i),s="curly"===t.style?`{${t.name}}`:`[${t.name}]`,l=function(t,i,r,a){if(r instanceof e.FlowGraphInteger)return o(r.value,i),r.value.toString();if("number"==typeof r)return o(r,i),r.toString();if("string"==typeof r){if(""===r)throw Error(`Templated reference input "${i}" is null.`);return n(t,i,r)}if(r&&"object"==typeof r){let e=a.getObjectReference(r,function(t,e){let i,r=(i=[`{${e}}`,`[${e}]`],t.split("/").findIndex(t=>i.indexOf(t)>=0));return r>0?t.split("/")[r-1]:void 0}(t,i));if(e)return n(t,i,e)}throw Error(`Invalid value for templated input "${i}": got ${typeof r}.`)}(this.path,t.name,a,i);r=r.replace(s,l)}return t.convert(r)}}function o(t,e){if("number"!=typeof t||t<0||!Number.isFinite(t))throw Error(`Invalid value for templated input "${e}": ${t}.`)}function n(t,e,i){let r=t.split("/"),o=[`{${e}}`,`[${e}]`],n=r.findIndex(t=>o.indexOf(t)>=0),a=i.split("/");if(n>=0&&n<a.length&&""!==a[n])return a[n];for(let t=a.length-1;t>=0;t--)if(""!==a[t])return a[t];return i}var a=t.i(56173),s=t.i(24617),l=t.i(82600),u=t.i(68282);class p extends l.FlowGraphCachedOperationBlock{constructor(t){super(i.RichTypeAny,t),this.config=t,this.object=this.registerDataOutput("object",i.RichTypeAny),this.propertyName=this.registerDataOutput("propertyName",i.RichTypeAny),this.setterFunction=this.registerDataOutput("setFunction",i.RichTypeAny,this._setPropertyValue.bind(this)),this.getterFunction=this.registerDataOutput("getFunction",i.RichTypeAny,this._getPropertyValue.bind(this)),this.generateAnimationsFunction=this.registerDataOutput("generateAnimationsFunction",i.RichTypeAny,this._getInterpolationAnimationPropertyInfo.bind(this)),this.templateComponent=new r(t.jsonPointer,this)}_doOperation(t){let e=this.templateComponent.getAccessor(this.config.pathConverter,t),i=e.info.get(e.object,void 0,t),r=e.info.getTarget?.(e.object),o=e.info.getPropertyName?.[0](e.object);if(r)this.object.setValue(r,t),o&&this.propertyName.setValue(o,t);else throw Error("Object is undefined");return i}_setPropertyValue(t,e,i,r){let o=this.templateComponent.getAccessor(this.config.pathConverter,r),n=o.info.type;n.startsWith("Color")&&(i=c(i,n)),"number"==typeof i?.value&&i?.getClassName?.()==="FlowGraphInteger"&&(i=i.value),o.info.set?.(i,o.object)}_getPropertyValue(t,e,i){let r=this.templateComponent.getAccessor(this.config.pathConverter,i),o=r.info.type,n=r.info.get(r.object,void 0,i);return o.startsWith("Color")?function(t){if(t instanceof s.Color3)return new a.Vector3(t.r,t.g,t.b);if(t instanceof s.Color4)return new a.Vector4(t.r,t.g,t.b,t.a);throw Error("Invalid color type")}(n):n}_getInterpolationAnimationPropertyInfo(t,e,i){let r=this.templateComponent.getAccessor(this.config.pathConverter,i);return(t,e,i,o)=>{let n=[],a=r.info.type;return a.startsWith("Color")&&(t=t.map(t=>({frame:t.frame,value:c(t.value,a)}))),r.info.interpolation?.forEach((e,a)=>{let s=r.info.getPropertyName?.[a](r.object)||"Animation-interpolation-"+a,l=t;for(let a of(i!==e.type&&(l=t.map(t=>({frame:t.frame,value:e.getValue(void 0,t.value.asArray?t.value.asArray():[t.value],0,1)}))),e.buildAnimations(r.object,s,60,l)))o&&a.babylonAnimation.setEasingFunction(o),n.push(a.babylonAnimation)}),n}}getClassName(){return"FlowGraphJsonPointerParserBlock"}}function c(t,e){return t.getClassName().startsWith("Color")?t:"Color3"===e?new s.Color3(t.x,t.y,t.z):"Color4"===e?new s.Color4(t.x,t.y,t.z,t.w):t}let h=!1;t.s(["FlowGraphJsonPointerParserBlock",0,p,"RegisterFlowGraphJsonPointerParserBlock",0,function(){h||(h=!0,(0,u.RegisterClass)("FlowGraphJsonPointerParserBlock",p))}],44209)},82600,t=>{"use strict";var e=t.i(60699),i=t.i(65678);let r="cachedOperationValue",o="cachedExecutionId";class n extends e.FlowGraphBlock{constructor(t,e){super(e),this._outputRichType=t,this.value=this.registerDataOutput("value",t),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_getInvalidOutputValue(t){let e=this._outputRichType.defaultValue,i=e?.clone;return"function"==typeof i?i.call(e):e}_updateOutputs(t){let e=t._getExecutionVariable(this,o,-1),i=t._getExecutionVariable(this,r,null);if(null!=i&&e===t.executionId)this.isValid.setValue(!0,t),this.value.setValue(i,t);else try{let e=this._doOperation(t);if(null==e)return void this._setInvalid(t);t._setExecutionVariable(this,r,e),t._setExecutionVariable(this,o,t.executionId),this.value.setValue(e,t),this.isValid.setValue(!0,t)}catch(e){this._setInvalid(t)}}_setInvalid(t){this.isValid.setValue(!1,t),this.value.setValue(this._getInvalidOutputValue(t),t)}}t.s(["FlowGraphCachedOperationBlock",0,n])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67018,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,r){this.bu=e,this.bv=t,this.distance=r,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},79428,e=>{"use strict";var t=e.i(72003),r=e.i(56145);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let s;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(r.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],h=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[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]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.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),c=c.scale(this.bv),l=l.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+c.x+l.x,i.y+c.y+l.y,i.z+c.z+l.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[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]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(c),p=l.subtract(c);s=t.Vector3.Cross(u,p)}let c=(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&&c(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||c(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 n=t.Vector2.FromArray(s,2*i[3*this.faceId]),a=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+o.x,n.y+a.y+o.y)}}])},86790,e=>{"use strict";var t=e.i(87710),r=e.i(51509),i=e.i(26747),s=e.i(72003),n=e.i(27111),a=e.i(67018),o=e.i(79428),h=e.i(72986),c=e.i(18558);let l={internalPickerForMesh:void 0};class u{constructor(e,t,r=Number.MAX_VALUE,s=i.Epsilon){this.origin=e,this.direction=t,this.length=r,this.epsilon=s}clone(){return new u(this.origin.clone(),this.direction.clone(),this.length)}intersectsBoxMinMax(e,t,r=0){let i,s,n,a,o=u._TmpVector3[0].copyFromFloats(e.x-r,e.y-r,e.z-r),h=u._TmpVector3[1].copyFromFloats(t.x+r,t.y+r,t.z+r),c=0,l=Number.MAX_VALUE;if(1e-7>Math.abs(this.direction.x)){if(this.origin.x<o.x||this.origin.x>h.x)return!1}else if(i=1/this.direction.x,s=(o.x-this.origin.x)*i,(n=(h.x-this.origin.x)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.y)){if(this.origin.y<o.y||this.origin.y>h.y)return!1}else if(i=1/this.direction.y,s=(o.y-this.origin.y)*i,(n=(h.y-this.origin.y)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.z)){if(this.origin.z<o.z||this.origin.z>h.z)return!1}else if(i=1/this.direction.z,s=(o.z-this.origin.z)*i,(n=(h.z-this.origin.z)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;return!0}intersectsBox(e,t=0){return this.intersectsBoxMinMax(e.minimum,e.maximum,t)}intersectsSphere(e,t=0){let r=e.center.x-this.origin.x,i=e.center.y-this.origin.y,s=e.center.z-this.origin.z,n=r*r+i*i+s*s,a=e.radius+t,o=a*a;if(n<=o)return!0;let h=r*this.direction.x+i*this.direction.y+s*this.direction.z;return!(h<0)&&n-h*h<=o}intersectsTriangle(e,t,r){let i=u._TmpVector3[0],n=u._TmpVector3[1],o=u._TmpVector3[2],h=u._TmpVector3[3],c=u._TmpVector3[4];t.subtractToRef(e,i),r.subtractToRef(e,n),s.Vector3.CrossToRef(this.direction,n,o);let l=s.Vector3.Dot(i,o);if(0===l)return null;let p=1/l;this.origin.subtractToRef(e,h);let d=s.Vector3.Dot(h,o)*p;if(d<-this.epsilon||d>1+this.epsilon)return null;s.Vector3.CrossToRef(h,i,c);let f=s.Vector3.Dot(this.direction,c)*p;if(f<-this.epsilon||d+f>1+this.epsilon)return null;let _=s.Vector3.Dot(n,c)*p;return _>this.length||_<0?null:new a.IntersectionInfo(1-d-f,d,_)}intersectsPlane(e){let t,r=s.Vector3.Dot(e.normal,this.direction);if(999999997475243e-21>Math.abs(r))return null;{let i=s.Vector3.Dot(e.normal,this.origin);if((t=(-e.d-i)/r)<0)if(t<-999999997475243e-21)return null;else return 0;return t}}intersectsAxis(e,t=0){switch(e){case"y":{let e=(this.origin.y-t)/this.direction.y;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),t,this.origin.z+-(this.direction.z*e))}case"x":{let e=(this.origin.x-t)/this.direction.x;if(e>0)return null;return new s.Vector3(t,this.origin.y+-(this.direction.y*e),this.origin.z+-(this.direction.z*e))}case"z":{let e=(this.origin.z-t)/this.direction.z;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),this.origin.y+-(this.direction.y*e),t)}default:return null}}intersectsMesh(e,t,r,i=!1,n,a=!1){let o=s.TmpVectors.Matrix[0];return e.getWorldMatrix().invertToRef(o),this._tmpRay?u.TransformToRef(this,o,this._tmpRay):this._tmpRay=u.Transform(this,o),e.intersects(this._tmpRay,t,r,i,n,a)}intersectsMeshes(e,t,r){r?r.length=0:r=[];for(let i=0;i<e.length;i++){let s=this.intersectsMesh(e[i],t);s.hit&&r.push(s)}return r.sort(this._comparePickingInfo),r}_comparePickingInfo(e,t){return e.distance<t.distance?-1:+(e.distance>t.distance)}intersectionSegment(e,t,r){let i=this.origin,n=s.TmpVectors.Vector3[0],a=s.TmpVectors.Vector3[1],o=s.TmpVectors.Vector3[2],h=s.TmpVectors.Vector3[3];t.subtractToRef(e,n),this.direction.scaleToRef(u._Rayl,o),i.addToRef(o,a),e.subtractToRef(i,h);let c=s.Vector3.Dot(n,n),l=s.Vector3.Dot(n,o),p=s.Vector3.Dot(o,o),d=s.Vector3.Dot(n,h),f=s.Vector3.Dot(o,h),_=c*p-l*l,m,g=_,R,y=_;_<u._Smallnum?(m=0,g=1,R=f,y=p):(m=l*f-p*d,R=c*f-l*d,m<0?(m=0,R=f,y=p):m>g&&(m=g,R=f+l,y=p)),R<0?(R=0,0>-d?m=0:-d>c?m=g:(m=-d,g=c)):R>y&&(R=y,-d+l<0?m=0:-d+l>c?m=g:(m=-d+l,g=c));let T=Math.abs(m)<u._Smallnum?0:m/g,P=Math.abs(R)<u._Smallnum?0:R/y,S=s.TmpVectors.Vector3[4];o.scaleToRef(P,S);let M=s.TmpVectors.Vector3[5];n.scaleToRef(T,M),M.addInPlace(h);let b=s.TmpVectors.Vector3[6];return(M.subtractToRef(S,b),P>0&&P<=this.length&&b.lengthSquared()<r*r)?M.length():-1}update(e,t,r,i,n,a,o,h=!1){if(h){u._RayDistant||(u._RayDistant=u.Zero()),u._RayDistant.unprojectRayToRef(e,t,r,i,s.Matrix.IdentityReadOnly,a,o);let h=s.TmpVectors.Matrix[0];n.invertToRef(h),u.TransformToRef(u._RayDistant,h,this)}else this.unprojectRayToRef(e,t,r,i,n,a,o);return this}static Zero(){return new u(s.Vector3.Zero(),s.Vector3.Zero())}static CreateNew(e,t,r,i,s,n,a){return u.Zero().update(e,t,r,i,s,n,a)}static CreateNewFromTo(e,t,r=s.Matrix.IdentityReadOnly){let i=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.CreateFromToToRef(e,t,i,r)}static CreateFromToToRef(e,t,r,i=s.Matrix.IdentityReadOnly){r.origin.copyFrom(e);let n=t.subtractToRef(e,r.direction);return r.length=Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z),r.direction.normalize(),u.TransformToRef(r,i,r)}static Transform(e,t){let r=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.TransformToRef(e,t,r),r}static TransformToRef(e,t,r){s.Vector3.TransformCoordinatesToRef(e.origin,t,r.origin),s.Vector3.TransformNormalToRef(e.direction,t,r.direction),r.length=e.length,r.epsilon=e.epsilon;let i=r.direction,n=i.length();if(0!==n&&1!==n){let e=1/n;i.x*=e,i.y*=e,i.z*=e,r.length*=n}return r}unprojectRayToRef(e,t,r,i,n,a,o){let c=s.TmpVectors.Matrix[0];n.multiplyToRef(a,c),c.multiplyToRef(o,c),c.invert();let l=h.EngineStore.LastCreatedEngine,u=s.TmpVectors.Vector3[0];u.x=e/r*2-1,u.y=-(t/i*2-1),u.z=l?.useReverseDepthBuffer?1:l?.isNDCHalfZRange?0:-1;let p=s.TmpVectors.Vector3[1].copyFromFloats(u.x,u.y,1-1e-8),d=s.TmpVectors.Vector3[2],f=s.TmpVectors.Vector3[3];s.Vector3.TransformCoordinatesToRef(u,c,d),s.Vector3.TransformCoordinatesToRef(p,c,f),this.origin.copyFrom(d),f.subtractToRef(d,this.direction),this.direction.normalize()}}function p(e,t,r,i,s,n=!1){let a=u.Zero();return d(e,t,r,i,a,s,n),a}function d(e,t,r,i,n,a,o=!1,h=!1){let c=e.getEngine();if(!a&&!(a=e.activeCamera)&&!(a=e.cameraToUseForPointers))return e;let l=a.viewport,u=c.getRenderHeight(),{x:p,y:f,width:_,height:m}=l.toGlobal(c.getRenderWidth(),u),g=1/c.getHardwareScalingLevel();return t=t*g-p,r=r*g-(u-f-m),n.update(t,r,_,m,i||s.Matrix.IdentityReadOnly,o?s.Matrix.IdentityReadOnly:a.getViewMatrix(),a.getProjectionMatrix(),h),e}function f(e,t,r,i){let s=u.Zero();return _(e,t,r,s,i),s}function _(e,t,r,i,n){if(!o.PickingInfo)return e;let a=e.getEngine();if(!n&&!(n=e.activeCamera)&&!(n=e.cameraToUseForPointers))throw Error("Active camera not set");let h=n.viewport,c=a.getRenderHeight(),{x:l,y:u,width:p,height:d}=h.toGlobal(a.getRenderWidth(),c),f=s.Matrix.Identity(),_=1/a.getHardwareScalingLevel();return t=t*_-l,r=r*_-(c-u-d),i.update(t,r,p,d,f,f,n.getProjectionMatrix()),e}function m(e,t,r,i,s,n,a,o){let h=t(i,r.enableDistantPicking);return g(e,r,i,h,s,n,a,o)}function g(e,t,r,i,s,n,a,o){let h=t.intersects(i,s,a,n,r,o);return h&&h.hit&&(s||null==e||!(h.distance>=e.distance))?h:null}function R(e){let t=e.getClassName();if("GreasedLineMesh"===t)return{rawBoundingInfo:null,intersectionThreshold:0};let r=e.rawBoundingInfo;return{rawBoundingInfo:r,intersectionThreshold:r?"InstancedLinesMesh"===t||"LinesMesh"===t?e.intersectionThreshold:0:0}}function y(e,t,r,i,s){let n=e(r,t.enableDistantPicking);return n.intersectsSphere(i.boundingSphere,s)&&n.intersectsBox(i.boundingBox,s)?n:null}function T(e,t,r,i,n,a){let h=null,c=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),u=e.cameraToUseForPointers||e.activeCamera,p=l.internalPickerForMesh||m,d=p===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let f=c&&l.isWorldMatrixCameraDependent(),_=l.computeWorldMatrix(f,u);if(l.hasThinInstances&&l.thinInstanceEnablePicking){let e=p(h,t,l,_,!0,!0,a);if(e){if(n)return e;let{rawBoundingInfo:o,intersectionThreshold:c}=R(l),u=l._thinInstanceDataStorage.matrixData;if(u){let e=s.TmpVectors.Matrix[0],f=s.TmpVectors.Matrix[1],m=Math.min(l.thinInstanceCount,u.length>>4);for(let R=0;R<m;R++){if(r&&!r(l,R))continue;s.Matrix.FromArrayToRef(u,R<<4,e),e.multiplyToRef(_,f);let m=d&&o?y(t,l,f,o,c):null;if(d&&o&&!m)continue;let T=d&&m?g(h,l,f,m,i,n,a,!0):p(h,t,l,f,i,n,a,!0);if(T&&((h=T).thinInstanceIndex=R,i))return h}}}}else{let e=p(h,t,l,_,i,n,a);if(e&&(h=e,i))return h}}return h||new o.PickingInfo}function P(e,t,r,i){if(!o.PickingInfo)return null;let n=[],a=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),h=e.cameraToUseForPointers||e.activeCamera,c=l.internalPickerForMesh||m,u=c===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let p=a&&l.isWorldMatrixCameraDependent(),d=l.computeWorldMatrix(p,h);if(l.hasThinInstances&&l.thinInstanceEnablePicking){if(c(null,t,l,d,!0,!0,i)){let{rawBoundingInfo:e,intersectionThreshold:a}=R(l),o=l._thinInstanceDataStorage.matrixData;if(o){let h=s.TmpVectors.Matrix[0],p=s.TmpVectors.Matrix[1],f=Math.min(l.thinInstanceCount,o.length>>4);for(let _=0;_<f;_++){if(r&&!r(l,_))continue;s.Matrix.FromArrayToRef(o,_<<4,h),h.multiplyToRef(d,p);let f=u&&e?y(t,l,p,e,a):null;if(u&&e&&!f)continue;let m=u&&f?g(null,l,p,f,!1,!1,i,!0):c(null,t,l,p,!1,!1,i,!0);m&&(m.thinInstanceIndex=_,n.push(m))}}}}else{let e=c(null,t,l,d,!1,!1,i);e&&n.push(e)}}return n}function S(e,t,r,i,n,a){if(!o.PickingInfo)return null;let h=T(e,i=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null),e._tempPickingRay),i,n,!0);return h&&(h.ray=p(e,t,r,s.Matrix.Identity(),a||null)),h}function M(e,t,r,i,n,a,o,h=!1){let c=T(e,(i,s)=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null,!1,s),e._tempPickingRay),i,n,!1,o);return c&&(c.ray=p(e,t,r,s.Matrix.Identity(),a||null)),c}function b(e,t,r,i,n){let a=T(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i,!1,n);return a&&(a.ray=t),a}function I(e,t,r,i,s,n){return P(e,i=>p(e,t,r,i,s||null),i,n)}function x(e,t,r,i){return P(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i)}function C(e,t=100,r,i){return V(e,new u(s.Vector3.Zero(),s.Vector3.Zero(),t),t,r,i)}function V(e,t,r=100,i,n){i||(i=e.getWorldMatrix()),t.length=r,n?t.origin.copyFrom(n):t.origin.copyFrom(e.position);let a=s.TmpVectors.Vector3[2];a.set(0,0,e._scene.useRightHandedSystem?-1:1);let o=s.TmpVectors.Vector3[3];return s.Vector3.TransformNormalToRef(a,i,o),s.Vector3.NormalizeToRef(o,t.direction),t}function v(e,t){t&&(t.prototype.getForwardRay=function(e=100,t,r){return V(this,new u(s.Vector3.Zero(),s.Vector3.Zero(),e),e,t,r)},t.prototype.getForwardRayToRef=function(e,t=100,r,i){return V(this,e,t,r,i)}),e&&(c._ImportHelper._IsPickingAvailable=!0,e.prototype.createPickingRay=function(e,t,r,i,s=!1){return p(this,e,t,r,i,s)})}u._TmpVector3=(0,n.BuildArray)(6,s.Vector3.Zero),u._RayDistant=u.Zero(),u._Smallnum=1e-8,u._Rayl=1e9,e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u],67929);let F=!1;function k(){F||(F=!0,v(t.Scene,r.Camera),t.Scene.prototype.createPickingRayToRef=function(e,t,r,i,s,n=!1,a=!1){return d(this,e,t,r,i,s,n,a)},t.Scene.prototype.createPickingRayInCameraSpace=function(e,t,r){return f(this,e,t,r)},t.Scene.prototype.createPickingRayInCameraSpaceToRef=function(e,t,r,i){return _(this,e,t,r,i)},t.Scene.prototype.pickWithBoundingInfo=function(e,t,r,i,s){return S(this,e,t,r,i,s)},t.Scene.prototype.pick=function(e,t,r,i,s,n,a=!1){return M(this,e,t,r,i,s,n,a)},t.Scene.prototype.pickWithRay=function(e,t,r,i){return b(this,e,t,r,i)},t.Scene.prototype.multiPick=function(e,t,r,i,s){return I(this,e,t,r,i,s)},t.Scene.prototype.multiPickWithRay=function(e,t,r){return x(this,e,t,r)})}e.s(["RegisterRay",0,k],56886),k(),e.s([],69824),e.i(69824),e.i(56886),e.i(67929),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],65059),e.i(65059),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],86790)},30958,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])},43003,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}}])},37405,e=>{"use strict";var t=e.i(72003);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)}}])},63833,e=>{"use strict";var t=e.i(1306);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])},39913,e=>{"use strict";var t=e.i(63391);class r{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=r.Enabled,this._lastSecValueCount++}addCount(e,t){r.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){r.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!r.Enabled)return;e&&this.fetchNewFrame();let i=t.PrecisionDate.Now;this._current=i-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)}}r.Enabled=!0,e.s(["PerfCounter",0,r])},86978,30565,e=>{"use strict";var t=e.i(56145),r=e.i(42704);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,n=!1,a=e.length){let o=this._scene.getEngine();for(let h=0;h<a;h++){h<e.length-1?e[h+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):n||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[h].name} output`));let a=e[h],c=a.apply();c&&(a.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,c),o.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(c))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let o=0,h=i.length;o<h;o++){let c=i[o];if(o<h-1?c._outputTexture=i[o+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,r,void 0,void 0,s),c._outputTexture=t):(a.restoreDefaultFramebuffer(),c._outputTexture=null),a._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let l=c.apply();l&&(c.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,l),a.drawElementsType(0,0,6),c.onAfterRenderObservable.notifyObservers(l))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],86978);var i=e.i(36598),s=e.i(72003);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,n=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=n}render(e,t,r,i,s=!0,n=!0,a=!0,o=!0,h){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let c=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(c.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),c.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let l=c.getStencilBuffer();if(c.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(h||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(c.setStencilBuffer(l),h)h(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);c.setAlphaMode(0)}if(c.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();c.setAlphaMode(0)}c.setStencilBuffer(l)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,a){let o,h=0,c=r?r.globalPosition:n._ZeroVector;if(i)for(;h<e.length;h++)(o=e.data[h])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,c);let l=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&l.sort(t);let u=l[0].getMesh().getScene();for(h=0;h<l.length;h++)if(o=l[h],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!a){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:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let 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)}}n._ZeroVector=s.Vector3.Zero();class a{}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 a,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,n=!0,a=!0,h=!0,c){let l=this._renderingGroupInfo;if(l.scene=this._scene,l.camera=this._scene.activeCamera,l.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 p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(l.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(l,d),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(p.render(e,i,r,t,s,n,a,h,c),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(l,d)}}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 n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,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],30565)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87851,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,r){this.bu=e,this.bv=t,this.distance=r,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},68987,e=>{"use strict";var t=e.i(56173),r=e.i(10977);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 n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],h=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[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]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.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),c=c.scale(this.bv),l=l.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+c.x+l.x,i.y+c.y+l.y,i.z+c.z+l.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[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]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(c),p=l.subtract(c);s=t.Vector3.Cross(u,p)}let c=(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&&c(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||c(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 n=t.Vector2.FromArray(s,2*i[3*this.faceId]),a=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+o.x,n.y+a.y+o.y)}}])},76310,e=>{"use strict";var t=e.i(17188),r=e.i(32866),i=e.i(33491),s=e.i(56173),n=e.i(81978),a=e.i(87851),o=e.i(68987),h=e.i(71829),c=e.i(53190);let l={internalPickerForMesh:void 0};class u{constructor(e,t,r=Number.MAX_VALUE,s=i.Epsilon){this.origin=e,this.direction=t,this.length=r,this.epsilon=s}clone(){return new u(this.origin.clone(),this.direction.clone(),this.length)}intersectsBoxMinMax(e,t,r=0){let i,s,n,a,o=u._TmpVector3[0].copyFromFloats(e.x-r,e.y-r,e.z-r),h=u._TmpVector3[1].copyFromFloats(t.x+r,t.y+r,t.z+r),c=0,l=Number.MAX_VALUE;if(1e-7>Math.abs(this.direction.x)){if(this.origin.x<o.x||this.origin.x>h.x)return!1}else if(i=1/this.direction.x,s=(o.x-this.origin.x)*i,(n=(h.x-this.origin.x)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.y)){if(this.origin.y<o.y||this.origin.y>h.y)return!1}else if(i=1/this.direction.y,s=(o.y-this.origin.y)*i,(n=(h.y-this.origin.y)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.z)){if(this.origin.z<o.z||this.origin.z>h.z)return!1}else if(i=1/this.direction.z,s=(o.z-this.origin.z)*i,(n=(h.z-this.origin.z)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;return!0}intersectsBox(e,t=0){return this.intersectsBoxMinMax(e.minimum,e.maximum,t)}intersectsSphere(e,t=0){let r=e.center.x-this.origin.x,i=e.center.y-this.origin.y,s=e.center.z-this.origin.z,n=r*r+i*i+s*s,a=e.radius+t,o=a*a;if(n<=o)return!0;let h=r*this.direction.x+i*this.direction.y+s*this.direction.z;return!(h<0)&&n-h*h<=o}intersectsTriangle(e,t,r){let i=u._TmpVector3[0],n=u._TmpVector3[1],o=u._TmpVector3[2],h=u._TmpVector3[3],c=u._TmpVector3[4];t.subtractToRef(e,i),r.subtractToRef(e,n),s.Vector3.CrossToRef(this.direction,n,o);let l=s.Vector3.Dot(i,o);if(0===l)return null;let p=1/l;this.origin.subtractToRef(e,h);let d=s.Vector3.Dot(h,o)*p;if(d<-this.epsilon||d>1+this.epsilon)return null;s.Vector3.CrossToRef(h,i,c);let f=s.Vector3.Dot(this.direction,c)*p;if(f<-this.epsilon||d+f>1+this.epsilon)return null;let _=s.Vector3.Dot(n,c)*p;return _>this.length||_<0?null:new a.IntersectionInfo(1-d-f,d,_)}intersectsPlane(e){let t,r=s.Vector3.Dot(e.normal,this.direction);if(999999997475243e-21>Math.abs(r))return null;{let i=s.Vector3.Dot(e.normal,this.origin);if((t=(-e.d-i)/r)<0)if(t<-999999997475243e-21)return null;else return 0;return t}}intersectsAxis(e,t=0){switch(e){case"y":{let e=(this.origin.y-t)/this.direction.y;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),t,this.origin.z+-(this.direction.z*e))}case"x":{let e=(this.origin.x-t)/this.direction.x;if(e>0)return null;return new s.Vector3(t,this.origin.y+-(this.direction.y*e),this.origin.z+-(this.direction.z*e))}case"z":{let e=(this.origin.z-t)/this.direction.z;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),this.origin.y+-(this.direction.y*e),t)}default:return null}}intersectsMesh(e,t,r,i=!1,n,a=!1){let o=s.TmpVectors.Matrix[0];return e.getWorldMatrix().invertToRef(o),this._tmpRay?u.TransformToRef(this,o,this._tmpRay):this._tmpRay=u.Transform(this,o),e.intersects(this._tmpRay,t,r,i,n,a)}intersectsMeshes(e,t,r){r?r.length=0:r=[];for(let i=0;i<e.length;i++){let s=this.intersectsMesh(e[i],t);s.hit&&r.push(s)}return r.sort(this._comparePickingInfo),r}_comparePickingInfo(e,t){return e.distance<t.distance?-1:+(e.distance>t.distance)}intersectionSegment(e,t,r){let i=this.origin,n=s.TmpVectors.Vector3[0],a=s.TmpVectors.Vector3[1],o=s.TmpVectors.Vector3[2],h=s.TmpVectors.Vector3[3];t.subtractToRef(e,n),this.direction.scaleToRef(u._Rayl,o),i.addToRef(o,a),e.subtractToRef(i,h);let c=s.Vector3.Dot(n,n),l=s.Vector3.Dot(n,o),p=s.Vector3.Dot(o,o),d=s.Vector3.Dot(n,h),f=s.Vector3.Dot(o,h),_=c*p-l*l,m,g=_,R,y=_;_<u._Smallnum?(m=0,g=1,R=f,y=p):(m=l*f-p*d,R=c*f-l*d,m<0?(m=0,R=f,y=p):m>g&&(m=g,R=f+l,y=p)),R<0?(R=0,0>-d?m=0:-d>c?m=g:(m=-d,g=c)):R>y&&(R=y,-d+l<0?m=0:-d+l>c?m=g:(m=-d+l,g=c));let T=Math.abs(m)<u._Smallnum?0:m/g,P=Math.abs(R)<u._Smallnum?0:R/y,S=s.TmpVectors.Vector3[4];o.scaleToRef(P,S);let M=s.TmpVectors.Vector3[5];n.scaleToRef(T,M),M.addInPlace(h);let b=s.TmpVectors.Vector3[6];return(M.subtractToRef(S,b),P>0&&P<=this.length&&b.lengthSquared()<r*r)?M.length():-1}update(e,t,r,i,n,a,o,h=!1){if(h){u._RayDistant||(u._RayDistant=u.Zero()),u._RayDistant.unprojectRayToRef(e,t,r,i,s.Matrix.IdentityReadOnly,a,o);let h=s.TmpVectors.Matrix[0];n.invertToRef(h),u.TransformToRef(u._RayDistant,h,this)}else this.unprojectRayToRef(e,t,r,i,n,a,o);return this}static Zero(){return new u(s.Vector3.Zero(),s.Vector3.Zero())}static CreateNew(e,t,r,i,s,n,a){return u.Zero().update(e,t,r,i,s,n,a)}static CreateNewFromTo(e,t,r=s.Matrix.IdentityReadOnly){let i=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.CreateFromToToRef(e,t,i,r)}static CreateFromToToRef(e,t,r,i=s.Matrix.IdentityReadOnly){r.origin.copyFrom(e);let n=t.subtractToRef(e,r.direction);return r.length=Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z),r.direction.normalize(),u.TransformToRef(r,i,r)}static Transform(e,t){let r=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.TransformToRef(e,t,r),r}static TransformToRef(e,t,r){s.Vector3.TransformCoordinatesToRef(e.origin,t,r.origin),s.Vector3.TransformNormalToRef(e.direction,t,r.direction),r.length=e.length,r.epsilon=e.epsilon;let i=r.direction,n=i.length();if(0!==n&&1!==n){let e=1/n;i.x*=e,i.y*=e,i.z*=e,r.length*=n}return r}unprojectRayToRef(e,t,r,i,n,a,o){let c=s.TmpVectors.Matrix[0];n.multiplyToRef(a,c),c.multiplyToRef(o,c),c.invert();let l=h.EngineStore.LastCreatedEngine,u=s.TmpVectors.Vector3[0];u.x=e/r*2-1,u.y=-(t/i*2-1),u.z=l?.useReverseDepthBuffer?1:l?.isNDCHalfZRange?0:-1;let p=s.TmpVectors.Vector3[1].copyFromFloats(u.x,u.y,1-1e-8),d=s.TmpVectors.Vector3[2],f=s.TmpVectors.Vector3[3];s.Vector3.TransformCoordinatesToRef(u,c,d),s.Vector3.TransformCoordinatesToRef(p,c,f),this.origin.copyFrom(d),f.subtractToRef(d,this.direction),this.direction.normalize()}}function p(e,t,r,i,s,n=!1){let a=u.Zero();return d(e,t,r,i,a,s,n),a}function d(e,t,r,i,n,a,o=!1,h=!1){let c=e.getEngine();if(!a&&!(a=e.activeCamera)&&!(a=e.cameraToUseForPointers))return e;let l=a.viewport,u=c.getRenderHeight(),{x:p,y:f,width:_,height:m}=l.toGlobal(c.getRenderWidth(),u),g=1/c.getHardwareScalingLevel();return t=t*g-p,r=r*g-(u-f-m),n.update(t,r,_,m,i||s.Matrix.IdentityReadOnly,o?s.Matrix.IdentityReadOnly:a.getViewMatrix(),a.getProjectionMatrix(),h),e}function f(e,t,r,i){let s=u.Zero();return _(e,t,r,s,i),s}function _(e,t,r,i,n){if(!o.PickingInfo)return e;let a=e.getEngine();if(!n&&!(n=e.activeCamera)&&!(n=e.cameraToUseForPointers))throw Error("Active camera not set");let h=n.viewport,c=a.getRenderHeight(),{x:l,y:u,width:p,height:d}=h.toGlobal(a.getRenderWidth(),c),f=s.Matrix.Identity(),_=1/a.getHardwareScalingLevel();return t=t*_-l,r=r*_-(c-u-d),i.update(t,r,p,d,f,f,n.getProjectionMatrix()),e}function m(e,t,r,i,s,n,a,o){let h=t(i,r.enableDistantPicking);return g(e,r,i,h,s,n,a,o)}function g(e,t,r,i,s,n,a,o){let h=t.intersects(i,s,a,n,r,o);return h&&h.hit&&(s||null==e||!(h.distance>=e.distance))?h:null}function R(e){let t=e.getClassName();if("GreasedLineMesh"===t)return{rawBoundingInfo:null,intersectionThreshold:0};let r=e.rawBoundingInfo;return{rawBoundingInfo:r,intersectionThreshold:r?"InstancedLinesMesh"===t||"LinesMesh"===t?e.intersectionThreshold:0:0}}function y(e,t,r,i,s){let n=e(r,t.enableDistantPicking);return n.intersectsSphere(i.boundingSphere,s)&&n.intersectsBox(i.boundingBox,s)?n:null}function T(e,t,r,i,n,a){let h=null,c=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),u=e.cameraToUseForPointers||e.activeCamera,p=l.internalPickerForMesh||m,d=p===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let f=c&&l.isWorldMatrixCameraDependent(),_=l.computeWorldMatrix(f,u);if(l.hasThinInstances&&l.thinInstanceEnablePicking){let e=p(h,t,l,_,!0,!0,a);if(e){if(n)return e;let{rawBoundingInfo:o,intersectionThreshold:c}=R(l),u=l._thinInstanceDataStorage.matrixData;if(u){let e=s.TmpVectors.Matrix[0],f=s.TmpVectors.Matrix[1],m=Math.min(l.thinInstanceCount,u.length>>4);for(let R=0;R<m;R++){if(r&&!r(l,R))continue;s.Matrix.FromArrayToRef(u,R<<4,e),e.multiplyToRef(_,f);let m=d&&o?y(t,l,f,o,c):null;if(d&&o&&!m)continue;let T=d&&m?g(h,l,f,m,i,n,a,!0):p(h,t,l,f,i,n,a,!0);if(T&&((h=T).thinInstanceIndex=R,i))return h}}}}else{let e=p(h,t,l,_,i,n,a);if(e&&(h=e,i))return h}}return h||new o.PickingInfo}function P(e,t,r,i){if(!o.PickingInfo)return null;let n=[],a=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),h=e.cameraToUseForPointers||e.activeCamera,c=l.internalPickerForMesh||m,u=c===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let p=a&&l.isWorldMatrixCameraDependent(),d=l.computeWorldMatrix(p,h);if(l.hasThinInstances&&l.thinInstanceEnablePicking){if(c(null,t,l,d,!0,!0,i)){let{rawBoundingInfo:e,intersectionThreshold:a}=R(l),o=l._thinInstanceDataStorage.matrixData;if(o){let h=s.TmpVectors.Matrix[0],p=s.TmpVectors.Matrix[1],f=Math.min(l.thinInstanceCount,o.length>>4);for(let _=0;_<f;_++){if(r&&!r(l,_))continue;s.Matrix.FromArrayToRef(o,_<<4,h),h.multiplyToRef(d,p);let f=u&&e?y(t,l,p,e,a):null;if(u&&e&&!f)continue;let m=u&&f?g(null,l,p,f,!1,!1,i,!0):c(null,t,l,p,!1,!1,i,!0);m&&(m.thinInstanceIndex=_,n.push(m))}}}}else{let e=c(null,t,l,d,!1,!1,i);e&&n.push(e)}}return n}function S(e,t,r,i,n,a){if(!o.PickingInfo)return null;let h=T(e,i=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null),e._tempPickingRay),i,n,!0);return h&&(h.ray=p(e,t,r,s.Matrix.Identity(),a||null)),h}function M(e,t,r,i,n,a,o,h=!1){let c=T(e,(i,s)=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null,!1,s),e._tempPickingRay),i,n,!1,o);return c&&(c.ray=p(e,t,r,s.Matrix.Identity(),a||null)),c}function b(e,t,r,i,n){let a=T(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i,!1,n);return a&&(a.ray=t),a}function I(e,t,r,i,s,n){return P(e,i=>p(e,t,r,i,s||null),i,n)}function x(e,t,r,i){return P(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i)}function C(e,t=100,r,i){return V(e,new u(s.Vector3.Zero(),s.Vector3.Zero(),t),t,r,i)}function V(e,t,r=100,i,n){i||(i=e.getWorldMatrix()),t.length=r,n?t.origin.copyFrom(n):t.origin.copyFrom(e.position);let a=s.TmpVectors.Vector3[2];a.set(0,0,e._scene.useRightHandedSystem?-1:1);let o=s.TmpVectors.Vector3[3];return s.Vector3.TransformNormalToRef(a,i,o),s.Vector3.NormalizeToRef(o,t.direction),t}function v(e,t){t&&(t.prototype.getForwardRay=function(e=100,t,r){return V(this,new u(s.Vector3.Zero(),s.Vector3.Zero(),e),e,t,r)},t.prototype.getForwardRayToRef=function(e,t=100,r,i){return V(this,e,t,r,i)}),e&&(c._ImportHelper._IsPickingAvailable=!0,e.prototype.createPickingRay=function(e,t,r,i,s=!1){return p(this,e,t,r,i,s)})}u._TmpVector3=(0,n.BuildArray)(6,s.Vector3.Zero),u._RayDistant=u.Zero(),u._Smallnum=1e-8,u._Rayl=1e9,e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u],83126);let F=!1;function k(){F||(F=!0,v(t.Scene,r.Camera),t.Scene.prototype.createPickingRayToRef=function(e,t,r,i,s,n=!1,a=!1){return d(this,e,t,r,i,s,n,a)},t.Scene.prototype.createPickingRayInCameraSpace=function(e,t,r){return f(this,e,t,r)},t.Scene.prototype.createPickingRayInCameraSpaceToRef=function(e,t,r,i){return _(this,e,t,r,i)},t.Scene.prototype.pickWithBoundingInfo=function(e,t,r,i,s){return S(this,e,t,r,i,s)},t.Scene.prototype.pick=function(e,t,r,i,s,n,a=!1){return M(this,e,t,r,i,s,n,a)},t.Scene.prototype.pickWithRay=function(e,t,r,i){return b(this,e,t,r,i)},t.Scene.prototype.multiPick=function(e,t,r,i,s){return I(this,e,t,r,i,s)},t.Scene.prototype.multiPickWithRay=function(e,t,r){return x(this,e,t,r)})}e.s(["RegisterRay",0,k],38824),k(),e.s([],60158),e.i(60158),e.i(38824),e.i(83126),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],11936),e.i(11936),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],76310)},95284,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])},97021,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}}])},84289,e=>{"use strict";var t=e.i(56173);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)}}])},38788,e=>{"use strict";var t=e.i(38450);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])},76846,e=>{"use strict";var t=e.i(2103);class r{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=r.Enabled,this._lastSecValueCount++}addCount(e,t){r.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){r.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!r.Enabled)return;e&&this.fetchNewFrame();let i=t.PrecisionDate.Now;this._current=i-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)}}r.Enabled=!0,e.s(["PerfCounter",0,r])},55179,40839,e=>{"use strict";var t=e.i(10977),r=e.i(97991);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,n=!1,a=e.length){let o=this._scene.getEngine();for(let h=0;h<a;h++){h<e.length-1?e[h+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):n||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[h].name} output`));let a=e[h],c=a.apply();c&&(a.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,c),o.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(c))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let o=0,h=i.length;o<h;o++){let c=i[o];if(o<h-1?c._outputTexture=i[o+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,r,void 0,void 0,s),c._outputTexture=t):(a.restoreDefaultFramebuffer(),c._outputTexture=null),a._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let l=c.apply();l&&(c.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,l),a.drawElementsType(0,0,6),c.onAfterRenderObservable.notifyObservers(l))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],55179);var i=e.i(6895),s=e.i(56173);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,n=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=n}render(e,t,r,i,s=!0,n=!0,a=!0,o=!0,h){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let c=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(c.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),c.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let l=c.getStencilBuffer();if(c.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(h||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(c.setStencilBuffer(l),h)h(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);c.setAlphaMode(0)}if(c.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();c.setAlphaMode(0)}c.setStencilBuffer(l)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,a){let o,h=0,c=r?r.globalPosition:n._ZeroVector;if(i)for(;h<e.length;h++)(o=e.data[h])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,c);let l=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&l.sort(t);let u=l[0].getMesh().getScene();for(h=0;h<l.length;h++)if(o=l[h],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!a){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:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let 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)}}n._ZeroVector=s.Vector3.Zero();class a{}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 a,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,n=!0,a=!0,h=!0,c){let l=this._renderingGroupInfo;if(l.scene=this._scene,l.camera=this._scene.activeCamera,l.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 p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(l.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(l,d),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(p.render(e,i,r,t,s,n,a,h,c),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(l,d)}}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 n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,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],40839)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25044,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])},58724,e=>{"use strict";var t,r,i=e.i(97991);class s{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,r=1,i=1,s=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=r,this._cachedAnisotropicFilteringLevel=i,this.samplingMode=s,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=r||(r={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends s{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,r=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new i.Observable,this.onErrorObservable=new i.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,r||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,r=1){this._engine.updateTextureDimensions(this,e,t,r),this.width=e,this.height=t,this.depth=r,this.baseWidth=e,this.baseHeight=t,this.baseDepth=r,this._size=e*t*r}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let r=this._engine.getLoadedTexturesCache(),i=r.indexOf(this);-1!==i&&r.splice(i,1),-1===(i=r.indexOf(e))&&r.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],58724)},38450,e=>{"use strict";var t=e.i(56173);class r{constructor(e,r,i,s){this.normal=new t.Vector3(e,r,i),this.d=s}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new r(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let e=this.normal.getHashCode();return 397*e^this.d}normalize(){let e=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),t=0;return 0!==e&&(t=1/e),this.normal.x*=t,this.normal.y*=t,this.normal.z*=t,this.d*=t,this}transform(e){let t=r._TmpMatrix;e.invertToRef(t);let i=t.m,s=this.normal.x,a=this.normal.y,n=this.normal.z,o=this.d;return new r(s*i[0]+a*i[1]+n*i[2]+o*i[3],s*i[4]+a*i[5]+n*i[6]+o*i[7],s*i[8]+a*i[9]+n*i[10]+o*i[11],s*i[12]+a*i[13]+n*i[14]+o*i[15])}dotCoordinate(e){return this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z+this.d}copyFromPoints(e,t,r){let i,s=t.x-e.x,a=t.y-e.y,n=t.z-e.z,o=r.x-e.x,l=r.y-e.y,h=r.z-e.z,u=a*h-n*l,c=n*o-s*h,d=s*l-a*o,p=Math.sqrt(u*u+c*c+d*d);return i=0!==p?1/p:0,this.normal.x=u*i,this.normal.y=c*i,this.normal.z=d*i,this.d=-(this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z),this}isFrontFacingTo(e,r){return t.Vector3.Dot(this.normal,e)<=r}signedDistanceTo(e){return t.Vector3.Dot(e,this.normal)+this.d}static FromArray(e){return new r(e[0],e[1],e[2],e[3])}static FromPoints(e,t,i){let s=new r(0,0,0,0);return s.copyFromPoints(e,t,i),s}static FromPositionAndNormal(e,t){let i=new r(0,0,0,0);return this.FromPositionAndNormalToRef(e,t,i)}static FromPositionAndNormalToRef(e,t,r){return r.normal.copyFrom(t),r.normal.normalize(),r.d=-e.dot(r.normal),r}static SignedDistanceToPlaneFromPositionAndNormal(e,r,i){let s=-(r.x*e.x+r.y*e.y+r.z*e.z);return t.Vector3.Dot(i,r)+s}}r._TmpMatrix=t.Matrix.Identity(),e.s(["Plane",0,r])},69552,88362,e=>{"use strict";var t=e.i(49399);class r{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),r._HandleParenthesisContent(e,t))):r._HandleParenthesisContent(e,t))||"false"!==e&&r.Eval(e,t)}static _HandleParenthesisContent(e,t){let i;t=t||(e=>"true"===e);let s=e.split("||");for(let e in s)if(Object.prototype.hasOwnProperty.call(s,e)){let a=r._SimplifyNegation(s[e].trim()),n=a.split("&&");if(n.length>1)for(let e=0;e<n.length;++e){let s=r._SimplifyNegation(n[e].trim());if(!(i="true"!==s&&"false"!==s?"!"===s[0]?!t(s.substring(1)):t(s):"true"===s)){a="false";break}}if(i||"true"===a){i=!0;break}i="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a}return i?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class i{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>i.HasTags(e),e.addTags=t=>i.AddTagsTo(e,t),e.removeTags=t=>i.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>i.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let r in e._tags)Object.prototype.hasOwnProperty.call(e._tags,r)&&!0===e._tags[r]&&t.push(r);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let r of t.split(" "))i._AddTagTo(e,r)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(i.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!i.HasTags(e))return;let r=t.split(" ");for(let t in r)i._RemoveTagFrom(e,r[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?i.HasTags(e):r.Eval(t,t=>i.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,i],88362);var s=e.i(24617),a=e.i(56173),n=e.i(42898);let o=function(e,t,r,s={}){let a=e();i&&i.HasTags(t)&&i.AddTagsTo(a,i.GetTags(t,!0));let o=(0,n.GetMergedStore)(a),h={};for(let e in o){let i=o[e],n=t[e],u=i.type;if(null!=n&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(u){case 0:case 6:case 9:case 11:"function"==typeof n.slice?a[e]=n.slice():a[e]=n;break;case 1:s.cloneTexturesOnlyOnce&&h[n.uniqueId]?a[e]=h[n.uniqueId]:(a[e]=r||n.isRenderTarget?n:n.clone(),h[n.uniqueId]=a[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:case 13:a[e]=r?n:n.clone()}}return a};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let r=0;r<e.animations.length;r++){let i=e.animations[r];t.animations.push(i.serialize())}}}static Serialize(e,t){t||(t={}),i&&(t.tags=i.GetTags(e));let r=(0,n.GetMergedStore)(e);for(let i in r){let s=r[i],a=s.sourceName||i,n=s.type,o=e[i];if(null!=o&&("uniqueId"!==i||l.AllowLoadingUniqueId))switch(n){case 0:Array.isArray(o)?t[a]=o.slice():t[a]=o;break;case 1:case 3:case 7:case 9:t[a]=o.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:case 13:t[a]=o.asArray();break;case 6:case 11:t[a]=o.id}}return t}static ParseProperties(e,t,r,i){i||(i="");let o=(0,n.GetMergedStore)(t);for(let n in o){let h=o[n],u=e[h.sourceName||n],c=h.type;if(null!=u&&("uniqueId"!==n||l.AllowLoadingUniqueId))switch(c){case 0:t[n]=u;break;case 1:r&&(t[n]=l._TextureParser(u,r,i));break;case 2:t[n]=s.Color3.FromArray(u);break;case 3:t[n]=l._FresnelParametersParser(u);break;case 4:t[n]=a.Vector2.FromArray(u);break;case 5:t[n]=a.Vector3.FromArray(u);break;case 6:r&&(t[n]=r.getLastMeshById(u));break;case 7:t[n]=l._ColorCurvesParser(u);break;case 8:t[n]=s.Color4.FromArray(u);break;case 9:t[n]=l._ImageProcessingConfigurationParser(u);break;case 10:t[n]=a.Quaternion.FromArray(u);break;case 11:r&&(t[n]=r.getCameraById(u));break;case 12:t[n]=a.Matrix.FromArray(u);break;case 13:t[n]=a.Vector4.FromArray(u)}}}static Parse(e,t,r,s=null){let a=e();return i&&i.AddTagsTo(a,t.tags),l.ParseProperties(t,a,r,s),a}static Clone(e,t,r={}){return o(e,t,!1,r)}static Instanciate(e,t){return o(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,r,i)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],69552)},73403,42898,5207,e=>{"use strict";let t;"function"==typeof SuppressedError&&SuppressedError,e.s(["__classPrivateFieldGet",0,function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)},"__classPrivateFieldSet",0,function(e,t,r,i,s){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?s.call(e,r):s?s.value=r:t.set(e,r),r},"__esDecorate",0,function(e,t,r,i,s,a){function n(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,l=i.kind,h="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?i.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d=!1,p=r.length-1;p>=0;p--){var _={};for(var f in i)_[f]="access"===f?{}:i[f];for(var f in i.access)_.access[f]=i.access[f];_.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");a.push(n(e||null))};var m=(0,r[p])("accessor"===l?{get:c.get,set:c.set}:c[h],_);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(o=n(m.get))&&(c.get=o),(o=n(m.set))&&(c.set=o),(o=n(m.init))&&s.unshift(o)}else(o=n(m))&&("field"===l?s.unshift(o):c[h]=o)}u&&Object.defineProperty(u,i.name,c),d=!0},"__runInitializers",0,function(e,t,r){for(var i=arguments.length>2,s=0;s<t.length;s++)r=i?t[s].call(e,r):t[s].call(e);return i?r:void 0}],73403);let r="__bjs_serializable__",i=new WeakMap;function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}let a=((t=Symbol.metadata)||Object.defineProperty(Symbol,"metadata",{configurable:!0,writable:!0,value:t=Symbol("Symbol.metadata")}),t);function n(e){if(!e)throw Error(`Decorator metadata is unavailable; the Symbol.metadata (${String(a)}) polyfill must run before decorated classes are evaluated.`);return s(e,r)||(e[r]={}),e[r]}function o(e,t){return(r,i)=>{if(!i.metadata)return;let s=String(i.name),a=n(i.metadata);a[s]||(a[s]={type:e,sourceName:t})}}function l(e,t,r){let i=String(t.name),s=null,a=function(...n){if(null===s){s=e,"u">typeof _native&&_native[i]&&(s=r(_native[i],e));let n=this&&(t.static?this:Object.getPrototypeOf(this));n?.[i]===a&&(n[i]=s)}return s.apply(this,n)};return a}function h(e,t){return l(e,t,e=>e)}e.s(["GetDirectStoreFromMetadata",0,n,"GetMergedStore",0,function(e){let t="function"==typeof e?e:e?.constructor,n=t?t[a]:void 0;if(!n)return{};let o=i.get(n);if(o)return o;let l={},h=[],u=n;for(;u;)h.push(u),u=Object.getPrototypeOf(u);for(let e of h)if(s(e,r)){let t=e[r];for(let e in t)l[e]=t[e]}return i.set(n,l),l}],42898),h.filter=function(e){return(t,r)=>l(t,r,(t,r)=>function(...i){return e(...i)?t(...i):r.apply(this,i)})},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(r,i)=>{let s=t||"_"+String(i.name);return{get(){return this[s]?.value},set(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,this[e]())}}}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(r,i)=>{let s=t||"_"+String(i.name);return{init(e){return void 0===e&&s in this||(this[s]=e),e},get(){return this[s]},set(t){"function"==typeof this[s]?.equals&&this[s].equals(t)||this[s]!==t&&(this[s]=t,this[e]())}}}}(e,t)},"nativeOverride",0,h,"serialize",0,function(e){return o(0,e)},"serializeAsColor3",0,function(e){return o(2,e)},"serializeAsColor4",0,function(e){return o(8,e)},"serializeAsColorCurves",0,function(e){return o(7,e)},"serializeAsFresnelParameters",0,function(e){return o(3,e)},"serializeAsMatrix",0,function(e){return o(12,e)},"serializeAsMeshReference",0,function(e){return o(6,e)},"serializeAsQuaternion",0,function(e){return o(10,e)},"serializeAsTexture",0,function(e){return o(1,e)},"serializeAsVector2",0,function(e){return o(4,e)},"serializeAsVector3",0,function(e){return o(5,e)}],5207)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35386,e=>{"use strict";var t=e.i(8697);function r(e){let t=0;return{id_length:e[t++],colormap_type:e[t++],image_type:e[t++],colormap_index:e[t++]|e[t++]<<8,colormap_length:e[t++]|e[t++]<<8,colormap_size:e[t++],origin:[e[t++]|e[t++]<<8,e[t++]|e[t++]<<8],width:e[t++]|e[t++]<<8,height:e[t++]|e[t++]<<8,pixel_size:e[t++],flags:e[t]}}function i(e,i){let o,n,h,l,g,s,c,f;if(i.length<19)return void t.Logger.Error("Unable to load TGA file - Not enough data to contain header");let u=18,d=r(i);if(d.id_length+u>i.length)return void t.Logger.Error("Unable to load TGA file - Not enough data");u+=d.id_length;let w=!1,b=!1,_=!1;switch(d.image_type){case 9:w=!0;case 1:b=!0;break;case 10:w=!0;case 2:break;case 11:w=!0;case 3:_=!0}let p=d.pixel_size>>3,y=d.width*d.height*p;if(b&&(n=i.subarray(u,u+=d.colormap_length*(d.colormap_size>>3))),w){let e,t,r;o=new Uint8Array(y);let a=0,n=new Uint8Array(p);for(;u<y&&a<y;)if(t=(127&(e=i[u++]))+1,128&e){for(r=0;r<p;++r)n[r]=i[u++];for(r=0;r<t;++r)o.set(n,a+r*p);a+=p*t}else{for(t*=p,r=0;r<t;++r)o[a+r]=i[u++];a+=t}}else o=i.subarray(u,u+(b?d.width*d.height:y));switch((48&d.flags)>>4){default:case 2:h=0,g=1,f=d.width,l=0,s=1,c=d.height;break;case 0:h=0,g=1,f=d.width,l=d.height-1,s=-1,c=-1;break;case 3:h=d.width-1,g=-1,f=-1,l=0,s=1,c=d.height;break;case 1:h=d.width-1,g=-1,f=-1,l=d.height-1,s=-1,c=-1}let m=a["_getImageData"+(_?"Grey":"")+d.pixel_size+"bits"](d,n,o,l,s,c,h,g,f);e.getEngine()._uploadDataToTextureDirectly(e,m)}let a={GetTGAHeader:r,UploadContent:i,_getImageData8bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c,f=0,u,d,w=new Uint8Array(g*s*4);for(d=i;d!==o;d+=a)for(u=n;u!==l;u+=h,f++)c=r[f],w[(u+g*d)*4+3]=255,w[(u+g*d)*4+2]=t[3*c+0],w[(u+g*d)*4+1]=t[3*c+1],w[(u+g*d)*4+0]=t[3*c+2];return w},_getImageData16bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c,f=0,u,d,w=new Uint8Array(g*s*4);for(d=i;d!==o;d+=a)for(u=n;u!==l;u+=h,f+=2){let e=((31744&(c=r[f+0]+(r[f+1]<<8)))>>10)*255/31|0,t=((992&c)>>5)*255/31|0,i=(31&c)*255/31|0;w[(u+g*d)*4+0]=e,w[(u+g*d)*4+1]=t,w[(u+g*d)*4+2]=i,w[(u+g*d)*4+3]=32768&c?0:255}return w},_getImageData24bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c=0,f,u,d=new Uint8Array(g*s*4);for(u=i;u!==o;u+=a)for(f=n;f!==l;f+=h,c+=3)d[(f+g*u)*4+3]=255,d[(f+g*u)*4+2]=r[c+0],d[(f+g*u)*4+1]=r[c+1],d[(f+g*u)*4+0]=r[c+2];return d},_getImageData32bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c=0,f,u,d=new Uint8Array(g*s*4);for(u=i;u!==o;u+=a)for(f=n;f!==l;f+=h,c+=4)d[(f+g*u)*4+2]=r[c+0],d[(f+g*u)*4+1]=r[c+1],d[(f+g*u)*4+0]=r[c+2],d[(f+g*u)*4+3]=r[c+3];return d},_getImageDataGrey8bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c,f=0,u,d,w=new Uint8Array(g*s*4);for(d=i;d!==o;d+=a)for(u=n;u!==l;u+=h,f++)c=r[f],w[(u+g*d)*4+0]=c,w[(u+g*d)*4+1]=c,w[(u+g*d)*4+2]=c,w[(u+g*d)*4+3]=255;return w},_getImageDataGrey16bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c=0,f,u,d=new Uint8Array(g*s*4);for(u=i;u!==o;u+=a)for(f=n;f!==l;f+=h,c+=2)d[(f+g*u)*4+0]=r[c+0],d[(f+g*u)*4+1]=r[c+0],d[(f+g*u)*4+2]=r[c+0],d[(f+g*u)*4+3]=r[c+1];return d}};e.s(["_TGATextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(){throw".env not supported in Cube."}loadData(e,t,a){let o=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r(o);a(n.width,n.height,t.generateMipMaps,!1,()=>{i(t,o)})}}],35386)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55242,t=>{"use strict";var e=t.i(87083),s=t.i(65678),i=t.i(80129),r=t.i(68282);class n extends e.FlowGraphEventBlock{constructor(t){super(t),this.type="PointerOut",this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,t?.targetMesh),this.meshOutOfPointer=this.registerDataOutput("meshOutOfPointer",s.RichTypeAny)}_executeEvent(t,e){let s=this.targetMesh.getValue(t);return this.meshOutOfPointer.setValue(e.mesh,t),this.pointerId.setValue(e.pointerId,t),!(!(e.over&&(0,i._IsDescendantOf)(e.mesh,s))&&(e.mesh===s||(0,i._IsDescendantOf)(e.mesh,s)))||(this._execute(t),!this.config?.stopPropagation)}_preparePendingTasks(t){}_cancelPendingTasks(t){}getClassName(){return"FlowGraphPointerOutEventBlock"}}let o=!1;t.s(["FlowGraphPointerOutEventBlock",0,n,"RegisterFlowGraphPointerOutEventBlock",0,function(){o||(o=!0,(0,r.RegisterClass)("FlowGraphPointerOutEventBlock",n))}])}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41588,757,76850,e=>{"use strict";var r=e.i(25044);let a="bumpFragmentMainFunctions",i=`#ifndef TEXRD_DEFINED
|
|
2
2
|
fn TEXRD(t: texture_2d<f32>,ts: sampler,uv: vec2f)->vec4f {return textureSample(t,ts,uv);}
|
|
3
3
|
#define TEXRD_DEFINED
|
|
4
4
|
#endif
|
|
@@ -42,7 +42,7 @@ fn perturbNormal(cotangentFrame: mat3x3f,textureSample: vec3f,scale: f32)->vec3f
|
|
|
42
42
|
fn cotangent_frame(normal: vec3f,p: vec3f,uv: vec2f,tangentSpaceParams: vec2f)->mat3x3f
|
|
43
43
|
{var dp1: vec3f=dpdx(p);var dp2: vec3f=dpdy(p);var duv1: vec2f=dpdx(uv);var duv2: vec2f=dpdy(uv);var dp2perp: vec3f=cross(dp2,normal);var dp1perp: vec3f=cross(normal,dp1);var tangent: vec3f=dp2perp*duv1.x+dp1perp*duv2.x;var bitangent: vec3f=dp2perp*duv1.y+dp1perp*duv2.y;tangent*=tangentSpaceParams.x;bitangent*=tangentSpaceParams.y;var det: f32=max(dot(tangent,tangent),dot(bitangent,bitangent));var invmax: f32=select(inverseSqrt(det),0.0,det==0.0);return mat3x3f(tangent*invmax,bitangent*invmax,normal);}
|
|
44
44
|
#endif
|
|
45
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["bumpFragmentMainFunctionsWGSL",0,{name:a,shader:i}],
|
|
45
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["bumpFragmentMainFunctionsWGSL",0,{name:a,shader:i}],41588),e.i(71184);let f="bumpFragmentFunctions",n=`#if defined(BUMP)
|
|
46
46
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_SAMPLERNAME_,bump)
|
|
47
47
|
#endif
|
|
48
48
|
#if defined(DETAIL)
|
|
@@ -72,7 +72,7 @@ return -texCoordOffset;
|
|
|
72
72
|
#endif
|
|
73
73
|
}
|
|
74
74
|
#endif
|
|
75
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["bumpFragmentFunctionsWGSL",0,{name:f,shader:n}],
|
|
75
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["bumpFragmentFunctionsWGSL",0,{name:f,shader:n}],757);let t="bumpFragment",o=`var uvOffset: vec2f= vec2f(0.0,0.0);
|
|
76
76
|
#if defined(BUMP) || defined(PARALLAX) || defined(DETAIL)
|
|
77
77
|
#ifdef NORMALXYSCALE
|
|
78
78
|
var normalScale: f32=1.0;
|
|
@@ -124,7 +124,7 @@ normalW=perturbNormalBase(TBN,blendedNormal,uniforms.vBumpInfos.y);
|
|
|
124
124
|
#elif defined(DETAIL)
|
|
125
125
|
detailNormal=vec3f(detailNormal.xy*uniforms.vDetailInfos.z,detailNormal.z);normalW=perturbNormalBase(TBN,detailNormal,uniforms.vDetailInfos.z);
|
|
126
126
|
#endif
|
|
127
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=o),e.s(["bumpFragmentWGSL",0,{name:t,shader:o}],
|
|
127
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=o),e.s(["bumpFragmentWGSL",0,{name:t,shader:o}],76850)},96045,63122,e=>{"use strict";var r=e.i(25044);let a="clipPlaneFragmentDeclaration",i=`#ifdef CLIPPLANE
|
|
128
128
|
varying fClipDistance: f32;
|
|
129
129
|
#endif
|
|
130
130
|
#ifdef CLIPPLANE2
|
|
@@ -142,7 +142,7 @@ varying fClipDistance5: f32;
|
|
|
142
142
|
#ifdef CLIPPLANE6
|
|
143
143
|
varying fClipDistance6: f32;
|
|
144
144
|
#endif
|
|
145
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["clipPlaneFragmentDeclarationWGSL",0,{name:a,shader:i}],
|
|
145
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["clipPlaneFragmentDeclarationWGSL",0,{name:a,shader:i}],96045);let f="clipPlaneFragment",n=`#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
|
|
146
146
|
if (false) {}
|
|
147
147
|
#endif
|
|
148
148
|
#ifdef CLIPPLANE
|
|
@@ -169,7 +169,7 @@ else if (fragmentInputs.fClipDistance5>0.0)
|
|
|
169
169
|
else if (fragmentInputs.fClipDistance6>0.0)
|
|
170
170
|
{discard;}
|
|
171
171
|
#endif
|
|
172
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["clipPlaneFragmentWGSL",0,{name:f,shader:n}],
|
|
172
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["clipPlaneFragmentWGSL",0,{name:f,shader:n}],63122)},65503,e=>{"use strict";var r=e.i(25044);let a="helperFunctions",i=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
|
|
173
173
|
const LinearEncodePowerApprox: f32=2.2;const GammaEncodePowerApprox: f32=1.0/LinearEncodePowerApprox;const LuminanceEncodeApprox: vec3f=vec3f(0.2126,0.7152,0.0722);const Epsilon:f32=0.0000001;fn square(x: f32)->f32 {return x*x;}
|
|
174
174
|
fn saturate(x: f32)->f32 {return clamp(x,0.0,1.0);}
|
|
175
175
|
fn saturateVec3(x: vec3f)->vec3f {return clamp(x,vec3f(),vec3f(1.0));}
|
|
@@ -255,7 +255,7 @@ fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
|
|
|
255
255
|
fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
|
|
256
256
|
fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
|
|
257
257
|
uint2float(rstate*2447445414u));}
|
|
258
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["helperFunctionsWGSL",0,{name:a,shader:i}])},
|
|
258
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["helperFunctionsWGSL",0,{name:a,shader:i}])},47622,41690,32923,e=>{"use strict";var r=e.i(25044);let a="openpbrDielectricReflectance",i=`struct ReflectanceParams
|
|
259
259
|
{F0: f32,
|
|
260
260
|
F90: f32,
|
|
261
261
|
coloredF0: vec3f,
|
|
@@ -276,7 +276,7 @@ let maxF0=max(specularColor.r,max(specularColor.g,specularColor.b));outParams.F0
|
|
|
276
276
|
outParams.F0=dielectricF0*specularWeight;
|
|
277
277
|
#endif
|
|
278
278
|
outParams.F90=f90Scale*specularWeight;outParams.coloredF0=vec3f(dielectricF0*specularWeight)*specularColor.rgb;outParams.coloredF90=dielectricColorF90*vec3f(specularWeight);return outParams;}
|
|
279
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["openpbrDielectricReflectanceWGSL",0,{name:a,shader:i}],
|
|
279
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["openpbrDielectricReflectanceWGSL",0,{name:a,shader:i}],47622);let f="openpbrGeometryInfo",n=`struct geometryInfoOutParams
|
|
280
280
|
{NdotV: f32,
|
|
281
281
|
NdotVUnclamped: f32,
|
|
282
282
|
environmentBrdf: vec3f,
|
|
@@ -313,7 +313,7 @@ normalW: vec3f,viewDirectionW: vec3f,roughness: f32,geometricNormalW: vec3f
|
|
|
313
313
|
,vAnisotropy: vec3f,TBN: mat3x3<f32>
|
|
314
314
|
)->geometryInfoAnisoOutParams
|
|
315
315
|
{let geoInfo: geometryInfoOutParams=geometryInfo(normalW,viewDirectionW,roughness,geometricNormalW);var outParams: geometryInfoAnisoOutParams;outParams.NdotV=geoInfo.NdotV;outParams.NdotVUnclamped=geoInfo.NdotVUnclamped;outParams.environmentBrdf=geoInfo.environmentBrdf;outParams.horizonOcclusion=geoInfo.horizonOcclusion;outParams.anisotropy=vAnisotropy.b;let anisotropyDirection: vec3f=vec3f(vAnisotropy.xy,0.);let anisoTBN: mat3x3<f32>=mat3x3<f32>(normalize(TBN[0]),normalize(TBN[1]),normalize(TBN[2]));outParams.anisotropicTangent=normalize(anisoTBN*anisotropyDirection);outParams.anisotropicBitangent=normalize(cross(anisoTBN[2],outParams.anisotropicTangent));outParams.TBN=TBN;return outParams;}
|
|
316
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["openpbrGeometryInfoWGSL",0,{name:f,shader:n}],
|
|
316
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["openpbrGeometryInfoWGSL",0,{name:f,shader:n}],41690);let t="openpbrIblFunctions",o=`#ifdef REFLECTION
|
|
317
317
|
fn sampleIrradiance(
|
|
318
318
|
surfaceNormal: vec3f
|
|
319
319
|
#if defined(NORMAL) && defined(USESPHERICALINVERTEX)
|
|
@@ -532,7 +532,7 @@ return getReflectanceFromBRDFLookup(reflectance.coloredF0,reflectance.coloredF90
|
|
|
532
532
|
#endif
|
|
533
533
|
}
|
|
534
534
|
#endif
|
|
535
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=o),e.s(["openpbrIblFunctionsWGSL",0,{name:t,shader:o}],
|
|
535
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=o),e.s(["openpbrIblFunctionsWGSL",0,{name:t,shader:o}],32923)},24186,e=>{"use strict";var r=e.i(25044);let a="openpbrSubsurfaceLayerData",i=`var subsurface_weight: f32=uniforms.vSubsurfaceWeight;var subsurface_color: vec3f=uniforms.vSubsurfaceColor.rgb;var subsurface_radius: f32=uniforms.vSubsurfaceRadius;var subsurface_radius_scale: vec3f=uniforms.vSubsurfaceRadiusScale;var subsurface_scatter_anisotropy: f32=clamp(uniforms.vSubsurfaceScatterAnisotropy,-0.9999f,0.9999f);
|
|
536
536
|
#ifdef SUBSURFACE_WEIGHT
|
|
537
537
|
let subsurfaceWeightFromTexture: vec4f=TEXRD(subsurfaceWeightSampler,subsurfaceWeightSamplerSampler,fragmentInputs.vSubsurfaceWeightUV+uvOffset);
|
|
538
538
|
#endif
|
|
@@ -560,7 +560,7 @@ subsurface_color*=uniforms.vSubsurfaceColorInfos.y;
|
|
|
560
560
|
#ifdef SUBSURFACE_RADIUS_SCALE
|
|
561
561
|
subsurface_radius_scale*=subsurfaceRadiusScaleFromTexture.rgb;
|
|
562
562
|
#endif
|
|
563
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["openpbrSubsurfaceLayerDataWGSL",0,{name:a,shader:i}])},
|
|
563
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["openpbrSubsurfaceLayerDataWGSL",0,{name:a,shader:i}])},24095,e=>{"use strict";var r=e.i(25044);let a="openpbrTransmissionLayerData",i=`var transmission_weight: f32=uniforms.vTransmissionWeight;var transmission_color: vec3f=uniforms.vTransmissionColor.rgb;var transmission_depth: f32=uniforms.vTransmissionDepth;var transmission_scatter: vec3f=uniforms.vTransmissionScatter.rgb;var transmission_scatter_anisotropy: f32=clamp(uniforms.vTransmissionScatterAnisotropy,-0.9999f,0.9999f);var transmission_dispersion_scale: f32=uniforms.vTransmissionDispersionScale;var transmission_dispersion_abbe_number: f32=uniforms.vTransmissionDispersionAbbeNumber;
|
|
564
564
|
#ifdef TRANSMISSION_WEIGHT
|
|
565
565
|
let transmissionWeightFromTexture: vec4f=TEXRD(transmissionWeightSampler,transmissionWeightSamplerSampler,fragmentInputs.vTransmissionWeightUV+uvOffset);
|
|
566
566
|
#endif
|
|
@@ -596,7 +596,7 @@ transmission_scatter*=transmissionScatterFromTexture.rgb;
|
|
|
596
596
|
#ifdef TRANSMISSION_DISPERSION_SCALE
|
|
597
597
|
transmission_dispersion_scale*=transmissionDispersionScaleFromTexture.r;
|
|
598
598
|
#endif
|
|
599
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["openpbrTransmissionLayerDataWGSL",0,{name:a,shader:i}])},
|
|
599
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["openpbrTransmissionLayerDataWGSL",0,{name:a,shader:i}])},86165,e=>{"use strict";var r=e.i(25044);let a="pbrBRDFFunctions",i=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
|
|
600
600
|
#define BRDF_DIFFUSE_MODEL_EON 0
|
|
601
601
|
#define BRDF_DIFFUSE_MODEL_BURLEY 1
|
|
602
602
|
#define BRDF_DIFFUSE_MODEL_LAMBERT 2
|
|
@@ -768,7 +768,7 @@ fn transmittanceBRDF_Burley(tintColor: vec3f,diffusionDistance: vec3f,thickness:
|
|
|
768
768
|
fn computeWrappedDiffuseNdotL(NdotL: f32,w: f32)->f32 {var t: f32=1.0+w;var invt2: f32=1.0/(t*t);return saturate((NdotL+w)*invt2);}
|
|
769
769
|
#endif
|
|
770
770
|
#endif
|
|
771
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["pbrBRDFFunctionsWGSL",0,{name:a,shader:i}])},
|
|
771
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["pbrBRDFFunctionsWGSL",0,{name:a,shader:i}])},10486,31278,e=>{"use strict";var r=e.i(25044);let a="pbrFragmentReflectionDeclaration",i=`#ifdef REFLECTION
|
|
772
772
|
#ifdef REFLECTIONMAP_3D
|
|
773
773
|
var reflectionSamplerSampler: sampler;var reflectionSampler: texture_cube<f32>;
|
|
774
774
|
#ifdef LODBASEDMICROSFURACE
|
|
@@ -796,7 +796,7 @@ varying vDirectionW: vec3f;
|
|
|
796
796
|
#endif
|
|
797
797
|
#endif
|
|
798
798
|
#endif
|
|
799
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["pbrFragmentReflectionDeclarationWGSL",0,{name:a,shader:i}],
|
|
799
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["pbrFragmentReflectionDeclarationWGSL",0,{name:a,shader:i}],10486);let f="pbrIBLFunctions",n=`#if defined(REFLECTION) || defined(SS_REFRACTION)
|
|
800
800
|
fn getLodFromAlphaG(cubeMapDimensionPixels: f32,microsurfaceAverageSlope: f32)->f32 {var microsurfaceAverageSlopeTexels: f32=cubeMapDimensionPixels*microsurfaceAverageSlope;var lod: f32=log2(microsurfaceAverageSlopeTexels);return lod;}
|
|
801
801
|
fn getLinearLodFromRoughness(cubeMapDimensionPixels: f32,roughness: f32)->f32 {var lod: f32=log2(cubeMapDimensionPixels)*roughness;return lod;}
|
|
802
802
|
#endif
|
|
@@ -810,7 +810,7 @@ fn environmentHorizonOcclusion(view: vec3f,normal: vec3f,geometricNormal: vec3f)
|
|
|
810
810
|
fn UNPACK_LOD(x: f32)->f32 {return (1.0-x)*255.0;}
|
|
811
811
|
fn getLodFromAlphaGNdotV(cubeMapDimensionPixels: f32,alphaG: f32,NdotV: f32)->f32 {var microsurfaceAverageSlope: f32=alphaG;microsurfaceAverageSlope*=sqrt(abs(NdotV));return getLodFromAlphaG(cubeMapDimensionPixels,microsurfaceAverageSlope);}
|
|
812
812
|
#endif
|
|
813
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["pbrIBLFunctionsWGSL",0,{name:f,shader:n}],
|
|
813
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["pbrIBLFunctionsWGSL",0,{name:f,shader:n}],31278)},71184,71047,e=>{"use strict";var r=e.i(25044);let a="samplerFragmentDeclaration",i=`#ifdef _DEFINENAME_
|
|
814
814
|
#if _DEFINENAME_DIRECTUV==1
|
|
815
815
|
#define v_VARYINGNAME_UV vMainUV1
|
|
816
816
|
#elif _DEFINENAME_DIRECTUV==2
|
|
@@ -828,7 +828,7 @@ varying v_VARYINGNAME_UV: vec2f;
|
|
|
828
828
|
#endif
|
|
829
829
|
var _SAMPLERNAME_SamplerSampler: sampler;var _SAMPLERNAME_Sampler: texture_2d<f32>;
|
|
830
830
|
#endif
|
|
831
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["samplerFragmentDeclarationWGSL",0,{name:a,shader:i}],
|
|
831
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["samplerFragmentDeclarationWGSL",0,{name:a,shader:i}],71184);let f="reflectionFunction",n=`fn computeFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
|
|
832
832
|
{var lon: f32=atan2(direction.z,direction.x);var lat: f32=acos(direction.y);var sphereCoords: vec2f= vec2f(lon,lat)*RECIPROCAL_PI2*2.0;var s: f32=sphereCoords.x*0.5+0.5;var t: f32=sphereCoords.y;return vec3f(s,t,0); }
|
|
833
833
|
fn computeMirroredFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
|
|
834
834
|
{var lon: f32=atan2(direction.z,direction.x);var lat: f32=acos(direction.y);var sphereCoords: vec2f= vec2f(lon,lat)*RECIPROCAL_PI2*2.0;var s: f32=sphereCoords.x*0.5+0.5;var t: f32=sphereCoords.y;return vec3f(1.0-s,t,0); }
|
|
@@ -892,7 +892,7 @@ return vec3f(0,0,0);
|
|
|
892
892
|
#endif
|
|
893
893
|
}
|
|
894
894
|
#endif
|
|
895
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["reflectionFunctionWGSL",0,{name:f,shader:n}],
|
|
895
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["reflectionFunctionWGSL",0,{name:f,shader:n}],71047)},38267,e=>{"use strict";var r=e.i(25044);let a="sceneUboDeclaration",i=`struct Scene {viewProjection : mat4x4<f32>,
|
|
896
896
|
#ifdef MULTIVIEW
|
|
897
897
|
viewProjectionR : mat4x4<f32>,
|
|
898
898
|
#endif
|
|
@@ -902,7 +902,7 @@ vEyePosition : vec4<f32>,
|
|
|
902
902
|
inverseProjection : mat4x4<f32>,};
|
|
903
903
|
#define SCENE_UBO
|
|
904
904
|
var<uniform> scene : Scene;
|
|
905
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["sceneUboDeclarationWGSL",0,{name:a,shader:i}])},
|
|
905
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[a]||(r.ShaderStore.IncludesShadersStoreWGSL[a]=i),e.s(["sceneUboDeclarationWGSL",0,{name:a,shader:i}])},27572,e=>{"use strict";var r=e.i(25044),a=e.i(96045),i=e.i(41588),f=e.i(71184),n=e.i(757),t=e.i(65503),o=e.i(10486),c=e.i(38267),s=e.i(86165),l=e.i(47622),d=e.i(31278),v=e.i(71047),m=e.i(41690),u=e.i(32923),p=e.i(63122),S=e.i(76850),E=e.i(24186),R=e.i(24095);let I="geometryPixelShader",N=`#ifdef BUMP
|
|
906
906
|
varying vWorldView0: vec4f;varying vWorldView1: vec4f;varying vWorldView2: vec4f;varying vWorldView3: vec4f;varying vNormalW: vec3f;
|
|
907
907
|
#else
|
|
908
908
|
varying vNormalV: vec3f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93663,t=>{"use strict";var e,i,s,r,n=t.i(56173);(e=s||(s={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class o{}o.X=new n.Vector3(1,0,0),o.Y=new n.Vector3(0,1,0),o.Z=new n.Vector3(0,0,1),(i=r||(r={}))[i.X=0]="X",i[i.Y=1]="Y",i[i.Z=2]="Z",t.s(["Axis",0,o,"Coordinate",0,r,"Space",0,s])},38788,t=>{"use strict";var e=t.i(38450);class i{static GetPlanes(t){let s=[];for(let t=0;t<6;t++)s.push(new e.Plane(0,0,0,0));return i.GetPlanesToRef(t,s),s}static GetNearPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[2],e.normal.y=i[7]+i[6],e.normal.z=i[11]+i[10],e.d=i[15]+i[14],e.normalize()}static GetFarPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[2],e.normal.y=i[7]-i[6],e.normal.z=i[11]-i[10],e.d=i[15]-i[14],e.normalize()}static GetLeftPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[0],e.normal.y=i[7]+i[4],e.normal.z=i[11]+i[8],e.d=i[15]+i[12],e.normalize()}static GetRightPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[0],e.normal.y=i[7]-i[4],e.normal.z=i[11]-i[8],e.d=i[15]-i[12],e.normalize()}static GetTopPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[1],e.normal.y=i[7]-i[5],e.normal.z=i[11]-i[9],e.d=i[15]-i[13],e.normalize()}static GetBottomPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[1],e.normal.y=i[7]+i[5],e.normal.z=i[11]+i[9],e.d=i[15]+i[13],e.normalize()}static GetPlanesToRef(t,e){i.GetNearPlaneToRef(t,e[0]),i.GetFarPlaneToRef(t,e[1]),i.GetLeftPlaneToRef(t,e[2]),i.GetRightPlaneToRef(t,e[3]),i.GetTopPlaneToRef(t,e[4]),i.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let i=0;i<6;i++)if(0>e[i].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,i])},69496,t=>{"use strict";t.s([],81031),t.i(81031);var e=t.i(93663),i=t.i(24617),s=t.i(33491),r=t.i(38788),n=t.i(62399),o=t.i(38450),a=t.i(92953),h=t.i(56173);class l{constructor(t=h.Vector3.Zero(),e=h.Vector3.Up()){this.position=t,this.normal=e}clone(){return new l(this.position.clone(),this.normal.clone())}}class c{constructor(t=h.Vector3.Zero(),e=h.Vector3.Up(),i=h.Vector2.Zero()){this.position=t,this.normal=e,this.uv=i}clone(){return new c(this.position.clone(),this.normal.clone(),this.uv.clone())}}t.s(["PositionNormalTextureVertex",0,c,"PositionNormalVertex",0,l],65508),t.i(65508);var u=t.i(44938);t.s(["Angle",()=>n.Angle,"Arc2",()=>n.Arc2,"Axis",()=>e.Axis,"BezierCurve",()=>n.BezierCurve,"Color3",()=>i.Color3,"Color4",()=>i.Color4,"Coordinate",()=>e.Coordinate,"Curve3",()=>n.Curve3,"Epsilon",()=>s.Epsilon,"Frustum",()=>r.Frustum,"Matrix",()=>h.Matrix,"Orientation",()=>n.Orientation,"PHI",()=>s.PHI,"Path2",()=>n.Path2,"Path3D",()=>n.Path3D,"Plane",()=>o.Plane,"PositionNormalTextureVertex",0,c,"PositionNormalVertex",0,l,"Quaternion",()=>h.Quaternion,"RegisterMathColor",()=>i.RegisterMathColor,"RegisterMathVector",()=>h.RegisterMathVector,"Size",()=>a.Size,"Space",()=>e.Space,"TmpColors",()=>i.TmpColors,"TmpVectors",()=>h.TmpVectors,"ToGammaSpace",()=>s.ToGammaSpace,"ToLinearSpace",()=>s.ToLinearSpace,"Vector2",()=>h.Vector2,"Vector3",()=>h.Vector3,"Vector4",()=>h.Vector4,"Viewport",()=>u.Viewport],69496)},62399,t=>{"use strict";var e,i,s=t.i(76197),r=t.i(56173),n=t.i(33491);(e=i||(i={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class o{constructor(t){this._radians=t,this._radians<0&&(this._radians+=2*Math.PI)}degrees(){return 180*this._radians/Math.PI}radians(){return this._radians}static BetweenTwoPoints(t,e){let i=e.subtract(t);return new o(Math.atan2(i.y,i.x))}static BetweenTwoVectors(t,e){let i=t.lengthSquared()*e.lengthSquared();if(0===i)return new o(Math.PI/2);i=Math.sqrt(i);let r=t.dot(e)/i;return new o(Math.acos(r=(0,s.Clamp)(r,-1,1)))}static FromRadians(t){return new o(t)}static FromDegrees(t){return new o(t*Math.PI/180)}}class a{constructor(t,e,i){this.startPoint=t,this.midPoint=e,this.endPoint=i;const s=Math.pow(e.x,2)+Math.pow(e.y,2),n=(Math.pow(t.x,2)+Math.pow(t.y,2)-s)/2,a=(s-Math.pow(i.x,2)-Math.pow(i.y,2))/2,h=(t.x-e.x)*(e.y-i.y)-(e.x-i.x)*(t.y-e.y);this.centerPoint=new r.Vector2((n*(e.y-i.y)-a*(t.y-e.y))/h,((t.x-e.x)*a-(e.x-i.x)*n)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=o.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let c=o.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),u=o.BetweenTwoPoints(this.centerPoint,this.endPoint).degrees();c-l>180&&(c-=360),c-l<-180&&(c+=360),u-c>180&&(u-=360),u-c<-180&&(u+=360),this.orientation=c-l<0?0:1,this.angle=o.FromDegrees(0===this.orientation?l-u:u-l)}}t.s(["Angle",0,o,"Arc2",0,a,"BezierCurve",0,class{static Interpolate(t,e,i,s,r){if(0===t)return 0;let n=1-3*s+3*e,o=3*s-6*e,a=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,i=e*h*n+o*e+a*h,s=1/(3*n*e+2*o*h+a);h-=(i-t)*s,h=Math.min(1,Math.max(0,h))}return 3*Math.pow(1-h,2)*h*i+3*(1-h)*Math.pow(h,2)*r+Math.pow(h,3)}},"Curve3",0,class t{static CreateQuadraticBezier(e,i,s,n){n=n>2?n:3;let o=[],a=(t,e,i,s)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*s;for(let t=0;t<=n;t++)o.push(new r.Vector3(a(t/n,e.x,i.x,s.x),a(t/n,e.y,i.y,s.y),a(t/n,e.z,i.z,s.z)));return new t(o)}static CreateCubicBezier(e,i,s,n,o){o=o>3?o:4;let a=[],h=(t,e,i,s,r)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*s+t*t*t*r;for(let t=0;t<=o;t++)a.push(new r.Vector3(h(t/o,e.x,i.x,s.x,n.x),h(t/o,e.y,i.y,s.y,n.y),h(t/o,e.z,i.z,s.z,n.z)));return new t(a)}static CreateHermiteSpline(e,i,s,n,o){let a=[],h=1/o;for(let t=0;t<=o;t++)a.push(r.Vector3.Hermite(e,i,s,n,t*h));return new t(a)}static CreateCatmullRomSpline(e,i,s){let n=[],o=1/i,a=0;if(s){let t=e.length;for(let s=0;s<t;s++){a=0;for(let h=0;h<i;h++)n.push(r.Vector3.CatmullRom(e[s%t],e[(s+1)%t],e[(s+2)%t],e[(s+3)%t],a)),a+=o}n.push(n[0])}else{let t=[];t.push(e[0].clone()),t.push(...e),t.push(e[e.length-1].clone());let s=0;for(;s<t.length-3;s++){a=0;for(let e=0;e<i;e++)n.push(r.Vector3.CatmullRom(t[s],t[s+1],t[s+2],t[s+3],a)),a+=o}s--,n.push(r.Vector3.CatmullRom(t[s],t[s+1],t[s+2],t[s+3],a))}return new t(n)}static ArcThru3Points(e,i,s,n=32,o=!1,a=!1){let h=[],l=i.subtract(e),c=s.subtract(i),u=e.subtract(s),m=r.Vector3.Cross(l,c),_=m.length();if(_<1e-8)return new t(h);let p=l.lengthSquared(),d=c.lengthSquared(),g=u.lengthSquared(),P=m.lengthSquared(),x=.5*l.length()*c.length()*u.length()/_,w=r.Vector3.Dot(l,u),y=r.Vector3.Dot(l,c),A=r.Vector3.Dot(c,u),f=e.scale(-.5*d*w/P).add(i.scale(-.5*g*y/P)).add(s.scale(-.5*p*A/P)),V=e.subtract(f).normalize(),z=r.Vector3.Cross(m,V).normalize();if(a){let t=2*Math.PI/n;for(let e=0;e<=2*Math.PI;e+=t)h.push(f.add(V.scale(x*Math.cos(e)).add(z.scale(x*Math.sin(e)))));h.push(e)}else{let t,i=1/n,r=0;do t=f.add(V.scale(x*Math.cos(r)).add(z.scale(x*Math.sin(r)))),h.push(t),r+=i;while(!t.equalsWithEpsilon(s,x*i*1.1))h.push(s),o&&h.push(e)}return new t(h)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(e){let i=this._points[this._points.length-1],s=this._points.slice(),r=e.getPoints();for(let t=1;t<r.length;t++)s.push(r[t].subtract(r[0]).add(i));return new t(s)}_computeLength(t){let e=0;for(let i=1;i<t.length;i++)e+=t[i].subtract(t[i-1]).length();return e}},"Orientation",0,i,"Path2",0,class t{constructor(t,e){this._points=[],this._length=0,this.closed=!1,this._points.push(new r.Vector2(t,e))}addLineTo(t,e){if(this.closed)return this;let i=new r.Vector2(t,e),s=this._points[this._points.length-1];return this._points.push(i),this._length+=i.subtract(s).length(),this}addArcTo(t,e,i,s,n=36){if(this.closed)return this;let o=new a(this._points[this._points.length-1],new r.Vector2(t,e),new r.Vector2(i,s)),h=o.angle.radians()/n;0===o.orientation&&(h*=-1);let l=o.startAngle.radians()+h;for(let t=0;t<n;t++){let t=Math.cos(l)*o.radius+o.centerPoint.x,e=Math.sin(l)*o.radius+o.centerPoint.y;this.addLineTo(t,e),l+=h}return this}addQuadraticCurveTo(t,e,i,s,r=36){if(this.closed)return this;let n=(t,e,i,s)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*s,o=this._points[this._points.length-1];for(let a=0;a<=r;a++){let h=a/r,l=n(h,o.x,t,i),c=n(h,o.y,e,s);this.addLineTo(l,c)}return this}addBezierCurveTo(t,e,i,s,r,n,o=36){if(this.closed)return this;let a=(t,e,i,s,r)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*s+t*t*t*r,h=this._points[this._points.length-1];for(let l=0;l<=o;l++){let c=l/o,u=a(c,h.x,t,i,r),m=a(c,h.y,e,s,n);this.addLineTo(u,m)}return this}isPointInside(t){let e=!1,i=this._points.length;for(let s=i-1,r=0;r<i;s=r++){let i=this._points[s],n=this._points[r],o=n.x-i.x,a=n.y-i.y;if(Math.abs(a)>Number.EPSILON){if(a<0&&(i=this._points[r],o=-o,n=this._points[s],a=-a),t.y<i.y||t.y>n.y)continue;if(t.y===i.y&&t.x===i.x)return!0;{let s=a*(t.x-i.x)-o*(t.y-i.y);if(0===s)return!0;if(s<0)continue;e=!e}}else{if(t.y!==i.y)continue;if(n.x<=t.x&&t.x<=i.x||i.x<=t.x&&t.x<=n.x)return!0}}return e}close(){return this.closed=!0,this}length(){let t=this._length;if(this.closed){let e=this._points[this._points.length-1];t+=this._points[0].subtract(e).length()}return t}area(){let t=this._points.length,e=0;for(let i=t-1,s=0;s<t;i=s++)e+=this._points[i].x*this._points[s].y-this._points[s].x*this._points[i].y;return .5*e}getPoints(){return this._points}getPointAtLengthPosition(t){if(t<0||t>1)return r.Vector2.Zero();let e=t*this.length(),i=0;for(let t=0;t<this._points.length;t++){let s=(t+1)%this._points.length,n=this._points[t],o=this._points[s].subtract(n),a=o.length()+i;if(e>=i&&e<=a){let t=o.normalize(),s=e-i;return new r.Vector2(n.x+t.x*s,n.y+t.y*s)}i=a}return r.Vector2.Zero()}static StartingAt(e,i){return new t(e,i)}},"Path3D",0,class t{constructor(t,e=null,i,s=!1){this.path=t,this._curve=[],this._distances=[],this._tangents=[],this._normals=[],this._binormals=[],this._pointAtData={id:0,point:r.Vector3.Zero(),previousPointArrayIndex:0,position:0,subPosition:0,interpolateReady:!1,interpolationMatrix:r.Matrix.Identity()};for(let e=0;e<t.length;e++)this._curve[e]=t[e].clone();this._raw=i||!1,this._alignTangentsWithPath=s,this._compute(e,s)}getCurve(){return this._curve}getPoints(){return this._curve}length(){return this._distances[this._distances.length-1]}getTangents(){return this._tangents}getNormals(){return this._normals}getBinormals(){return this._binormals}getDistances(){return this._distances}getPointAt(t){return this._updatePointAtData(t).point}getTangentAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.Forward(),this._pointAtData.interpolationMatrix):this._tangents[this._pointAtData.previousPointArrayIndex]}getNormalAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.Right(),this._pointAtData.interpolationMatrix):this._normals[this._pointAtData.previousPointArrayIndex]}getBinormalAt(t,e=!1){return this._updatePointAtData(t,e),e?r.Vector3.TransformCoordinates(r.Vector3.UpReadOnly,this._pointAtData.interpolationMatrix):this._binormals[this._pointAtData.previousPointArrayIndex]}getDistanceAt(t){return this.length()*t}getPreviousPointIndexAt(t){return this._updatePointAtData(t),this._pointAtData.previousPointArrayIndex}getSubPositionAt(t){return this._updatePointAtData(t),this._pointAtData.subPosition}getClosestPositionTo(t){let e=Number.MAX_VALUE,i=0;for(let s=0;s<this._curve.length-1;s++){let n=this._curve[s+0],o=this._curve[s+1].subtract(n).normalize(),a=this._distances[s+1]-this._distances[s+0],h=Math.min(Math.max(r.Vector3.Dot(o,t.subtract(n).normalize()),0)*r.Vector3.Distance(n,t)/a,1),l=r.Vector3.Distance(n.add(o.scale(h*a)),t);l<e&&(e=l,i=(this._distances[s+0]+a*h)/this.length())}return i}slice(e=0,i=1){if(e<0&&(e=1- -1*e%1),i<0&&(i=1- -1*i%1),e>i){let t=e;e=i,i=t}let s=this.getCurve(),r=this.getPointAt(e),n=this.getPreviousPointIndexAt(e),o=this.getPointAt(i),a=this.getPreviousPointIndexAt(i)+1,h=[];return 0!==e&&(n++,h.push(r)),h.push(...s.slice(n,a)),(1!==i||1===e)&&h.push(o),new t(h,this.getNormalAt(e),this._raw,this._alignTangentsWithPath)}update(t,e=null,i=!1){for(let e=0;e<t.length;e++)this._curve[e].x=t[e].x,this._curve[e].y=t[e].y,this._curve[e].z=t[e].z;return this._compute(e,i),this}_compute(t,e=!1){let i,s,n,o,a,h=this._curve.length;if(h<2)return;this._tangents[0]=this._getFirstNonNullVector(0),this._raw||this._tangents[0].normalize(),this._tangents[h-1]=this._curve[h-1].subtract(this._curve[h-2]),this._raw||this._tangents[h-1].normalize();let l=this._tangents[0],c=this._normalVector(l,t);this._normals[0]=c,this._raw||this._normals[0].normalize(),this._binormals[0]=r.Vector3.Cross(l,this._normals[0]),this._raw||this._binormals[0].normalize(),this._distances[0]=0;for(let t=1;t<h;t++)i=this._getLastNonNullVector(t),t<h-1&&(s=this._getFirstNonNullVector(t),this._tangents[t]=e?s:i.add(s),this._tangents[t].normalize()),this._distances[t]=this._distances[t-1]+this._curve[t].subtract(this._curve[t-1]).length(),n=this._tangents[t],a=this._binormals[t-1],this._normals[t]=r.Vector3.Cross(a,n),this._raw||(0===this._normals[t].length()?(o=this._normals[t-1],this._normals[t]=o.clone()):this._normals[t].normalize()),this._binormals[t]=r.Vector3.Cross(n,this._normals[t]),this._raw||this._binormals[t].normalize();this._pointAtData.id=NaN}_getFirstNonNullVector(t){let e=1,i=this._curve[t+e].subtract(this._curve[t]);for(;0===i.length()&&t+e+1<this._curve.length;)e++,i=this._curve[t+e].subtract(this._curve[t]);return i}_getLastNonNullVector(t){let e=1,i=this._curve[t].subtract(this._curve[t-e]);for(;0===i.length()&&t>e;)e++,i=this._curve[t].subtract(this._curve[t-e]);return i}_normalVector(t,e){let i,o=t.length();if(0===o&&(o=1),null==e){let e;e=(0,s.WithinEpsilon)(Math.abs(t.y)/o,1,n.Epsilon)?(0,s.WithinEpsilon)(Math.abs(t.x)/o,1,n.Epsilon)?(0,s.WithinEpsilon)(Math.abs(t.z)/o,1,n.Epsilon)?r.Vector3.Zero():new r.Vector3(0,0,1):new r.Vector3(1,0,0):new r.Vector3(0,-1,0),i=r.Vector3.Cross(t,e)}else i=r.Vector3.Cross(t,e),r.Vector3.CrossToRef(i,t,i);return i.normalize(),i}_updatePointAtData(t,e=!1){let i;if(this._pointAtData.id===t)return this._pointAtData.interpolateReady||this._updateInterpolationMatrix(),this._pointAtData;this._pointAtData.id=t;let s=this.getPoints();if(t<=0)return this._setPointAtData(0,0,s[0],0,e);if(t>=1)return this._setPointAtData(1,1,s[s.length-1],s.length-1,e);let n=s[0],o=0,a=t*this.length();for(let h=1;h<s.length;h++){i=s[h];let l=r.Vector3.Distance(n,i);if((o+=l)===a)return this._setPointAtData(t,1,i,h,e);if(o>a){let s=(o-a)/l,r=n.subtract(i),c=i.add(r.scaleInPlace(s));return this._setPointAtData(t,1-s,c,h-1,e)}n=i}return this._pointAtData}_setPointAtData(t,e,i,s,r){return this._pointAtData.point=i,this._pointAtData.position=t,this._pointAtData.subPosition=e,this._pointAtData.previousPointArrayIndex=s,this._pointAtData.interpolateReady=r,r&&this._updateInterpolationMatrix(),this._pointAtData}_updateInterpolationMatrix(){this._pointAtData.interpolationMatrix=r.Matrix.Identity();let t=this._pointAtData.previousPointArrayIndex;if(t!==this._tangents.length-1){let e=t+1,i=this._tangents[t].clone(),s=this._normals[t].clone(),n=this._binormals[t].clone(),o=this._tangents[e].clone(),a=this._normals[e].clone(),h=this._binormals[e].clone(),l=r.Quaternion.RotationQuaternionFromAxis(s,n,i),c=r.Quaternion.RotationQuaternionFromAxis(a,h,o);r.Quaternion.Slerp(l,c,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}])},38450,t=>{"use strict";var e=t.i(56173);class i{constructor(t,i,s,r){this.normal=new e.Vector3(t,i,s),this.d=r}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let t=this.normal.getHashCode();return 397*t^this.d}normalize(){let t=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),e=0;return 0!==t&&(e=1/t),this.normal.x*=e,this.normal.y*=e,this.normal.z*=e,this.d*=e,this}transform(t){let e=i._TmpMatrix;t.invertToRef(e);let s=e.m,r=this.normal.x,n=this.normal.y,o=this.normal.z,a=this.d;return new i(r*s[0]+n*s[1]+o*s[2]+a*s[3],r*s[4]+n*s[5]+o*s[6]+a*s[7],r*s[8]+n*s[9]+o*s[10]+a*s[11],r*s[12]+n*s[13]+o*s[14]+a*s[15])}dotCoordinate(t){return this.normal.x*t.x+this.normal.y*t.y+this.normal.z*t.z+this.d}copyFromPoints(t,e,i){let s,r=e.x-t.x,n=e.y-t.y,o=e.z-t.z,a=i.x-t.x,h=i.y-t.y,l=i.z-t.z,c=n*l-o*h,u=o*a-r*l,m=r*h-n*a,_=Math.sqrt(c*c+u*u+m*m);return s=0!==_?1/_:0,this.normal.x=c*s,this.normal.y=u*s,this.normal.z=m*s,this.d=-(this.normal.x*t.x+this.normal.y*t.y+this.normal.z*t.z),this}isFrontFacingTo(t,i){return e.Vector3.Dot(this.normal,t)<=i}signedDistanceTo(t){return e.Vector3.Dot(t,this.normal)+this.d}static FromArray(t){return new i(t[0],t[1],t[2],t[3])}static FromPoints(t,e,s){let r=new i(0,0,0,0);return r.copyFromPoints(t,e,s),r}static FromPositionAndNormal(t,e){let s=new i(0,0,0,0);return this.FromPositionAndNormalToRef(t,e,s)}static FromPositionAndNormalToRef(t,e,i){return i.normal.copyFrom(e),i.normal.normalize(),i.d=-t.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(t,i,s){let r=-(i.x*t.x+i.y*t.y+i.z*t.z);return e.Vector3.Dot(s,i)+r}}i._TmpMatrix=e.Matrix.Identity(),t.s(["Plane",0,i])},92953,t=>{"use strict";t.s(["Size",0,class t{constructor(t,e){this.width=t,this.height=e}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let t=0|this.width;return 397*t^this.height}copyFrom(t){this.width=t.width,this.height=t.height}copyFromFloats(t,e){return this.width=t,this.height=e,this}set(t,e){return this.copyFromFloats(t,e)}multiplyByFloats(e,i){return new t(this.width*e,this.height*i)}clone(){return new t(this.width,this.height)}equals(t){return!!t&&this.width===t.width&&this.height===t.height}get surface(){return this.width*this.height}static Zero(){return new t(0,0)}add(e){return new t(this.width+e.width,this.height+e.height)}subtract(e){return new t(this.width-e.width,this.height-e.height)}scale(e){return new t(this.width*e,this.height*e)}static Lerp(e,i,s){return new t(e.width+(i.width-e.width)*s,e.height+(i.height-e.height)*s)}}])},44938,t=>{"use strict";t.s(["Viewport",0,class t{constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}toGlobal(e,i){return new t(this.x*e,this.y*i,this.width*e,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 t(this.x,this.y,this.width,this.height)}}])}]);
|