@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47441,a=>{"use strict";a.i(57992);var t=a.i(54501);a.s(["RegisterStandardMaterial",()=>t.RegisterStandardMaterial,"StandardMaterial",()=>t.StandardMaterial,"StandardMaterialDefines",()=>t.StandardMaterialDefines])},1667,a=>{a.v(t=>Promise.all(["static/chunks/0rl4ddh2vgxyl.js","static/chunks/3wj5dmf6cywz8.js"].map(t=>a.l(t))).then(()=>t(79832)))},90961,a=>{a.v(t=>Promise.all(["static/chunks/0_dca4876jshu.js"].map(t=>a.l(t))).then(()=>t(83122)))},29139,a=>{a.v(t=>Promise.all(["static/chunks/0ctain5xq2wsd.js","static/chunks/0oyf2xzv8ofkk.js"].map(t=>a.l(t))).then(()=>t(27044)))},2990,a=>{a.v(t=>Promise.all(["static/chunks/18kq07c5xy_4g.js","static/chunks/3hkhd1_k8xohv.js"].map(t=>a.l(t))).then(()=>t(34879)))}]);
|
|
@@ -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,40330,s=>{"use strict";var t=s.i(60699),e=s.i(65678),i=s.i(68282);class r extends t.FlowGraphBlock{constructor(s){super(s),this.body=this.registerDataInput("body",e.RichTypeAny),this.mass=this.registerDataOutput("mass",e.RichTypeNumber),this.centerOfMass=this.registerDataOutput("centerOfMass",e.RichTypeVector3),this.inertia=this.registerDataOutput("inertia",e.RichTypeVector3)}_updateOutputs(s){let t=this.body.getValue(s);if(!t)return;let e=t.getMassProperties();void 0!==e.mass&&this.mass.setValue(e.mass,s),e.centerOfMass&&this.centerOfMass.setValue(e.centerOfMass,s),e.inertia&&this.inertia.setValue(e.inertia,s)}getClassName(){return"FlowGraphGetPhysicsMassPropertiesBlock"}}let a=!1;s.s(["FlowGraphGetPhysicsMassPropertiesBlock",0,r,"RegisterFlowGraphGetPhysicsMassPropertiesBlock",0,function(){a||(a=!0,(0,i.RegisterClass)("FlowGraphGetPhysicsMassPropertiesBlock",r))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43,t=>{"use strict";var e=t.i(60699),s=t.i(65678),o=t.i(56173),r=t.i(68282);class i extends e.FlowGraphBlock{constructor(t){super(t),this.sourceSystem=this.registerDataInput("sourceSystem",s.RichTypeAny),this.destinationSystem=this.registerDataInput("destinationSystem",s.RichTypeAny),this.inputCoordinates=this.registerDataInput("inputCoordinates",s.RichTypeVector3),this.outputCoordinates=this.registerDataOutput("outputCoordinates",s.RichTypeVector3)}_updateOutputs(t){let e=this.sourceSystem.getValue(t),s=this.destinationSystem.getValue(t),r=this.inputCoordinates.getValue(t),i=e.getWorldMatrix(),a=s.getWorldMatrix(),n=o.TmpVectors.Matrix[0].copyFrom(a);n.invert();let u=o.TmpVectors.Matrix[1];n.multiplyToRef(i,u);let l=this.outputCoordinates.getValue(t);o.Vector3.TransformCoordinatesToRef(r,u,l)}getClassName(){return"FlowGraphTransformCoordinatesSystemBlock"}}let a=!1;t.s(["FlowGraphTransformCoordinatesSystemBlock",0,i,"RegisterFlowGraphTransformCoordinatesSystemBlock",0,function(){a||(a=!0,(0,r.RegisterClass)("FlowGraphTransformCoordinatesSystemBlock",i))}])}]);
|
|
@@ -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,4606,e=>{"use strict";var t=e.i(60699),r=e.i(65678),i=e.i(69194),l=e.i(80129),a=e.i(68282);class s extends t.FlowGraphBlock{constructor(e){super(e),this.config=e,this.array=this.registerDataInput("array",r.RichTypeAny),this.index=this.registerDataInput("index",r.RichTypeAny,new i.FlowGraphInteger(-1)),this.value=this.registerDataOutput("value",r.RichTypeAny)}_updateOutputs(e){let t,r=this.array.getValue(e),i=this.index.getValue(e);if(null==i)return void this.value.setValue(null,e);if("string"==typeof i){let r=e.decodeIndexReference(i);if(void 0===r)return void this.value.setValue(null,e);t=r}else t=(0,l.getNumericValue)(i);r&&t>=0&&t<r.length?this.value.setValue(r[t],e):this.value.setValue(null,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphArrayIndexBlock"}}let u=!1;e.s(["FlowGraphArrayIndexBlock",0,s,"RegisterFlowGraphArrayIndexBlock",0,function(){u||(u=!0,(0,a.RegisterClass)("FlowGraphArrayIndexBlock",s))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32439,e=>{"use strict";var t=e.i(60699),r=e.i(65678),i=e.i(69194),s=e.i(68282);class a extends t.FlowGraphBlock{constructor(e){super(e),this.config=e,this.object=this.registerDataInput("object",r.RichTypeAny),this.array=this.registerDataInput("array",r.RichTypeAny),this.index=this.registerDataOutput("index",r.RichTypeFlowGraphInteger,new i.FlowGraphInteger(-1))}_updateOutputs(e){let t=this.object.getValue(e),r=this.array.getValue(e);r&&this.index.setValue(new i.FlowGraphInteger(r.indexOf(t)),e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphIndexOfBlock"}}let l=!1;e.s(["FlowGraphIndexOfBlock",0,a,"RegisterFlowGraphIndexOfBlock",0,function(){l||(l=!0,(0,s.RegisterClass)("FlowGraphIndexOfBlock",a))}])}]);
|
|
@@ -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,79542,t=>{"use strict";var e=t.i(23422),i=t.i(65678),l=t.i(68282);class s extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.body=this.registerDataInput("body",i.RichTypeAny),this.impulse=this.registerDataInput("impulse",i.RichTypeVector3),this.location=this.registerDataInput("location",i.RichTypeVector3)}_execute(t,e){let i=this.body.getValue(t);if(!i){this._reportError(t,"No physics body provided"),this.out._activateSignal(t);return}let l=this.impulse.getValue(t),s=this.location.getValue(t);i.applyImpulse(l,s),this.out._activateSignal(t)}getClassName(){return"FlowGraphApplyImpulseBlock"}}let o=!1;t.s(["FlowGraphApplyImpulseBlock",0,s,"RegisterFlowGraphApplyImpulseBlock",0,function(){o||(o=!0,(0,l.RegisterClass)("FlowGraphApplyImpulseBlock",s))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23509,e=>{"use strict";var t=e.i(63369),s=e.i(60699),i=e.i(65678),a=e.i(69194),l=e.i(80129),r=e.i(68282);class u extends s.FlowGraphBlock{constructor(e){super(e),this.config=e,this.type=this.registerDataInput("type",i.RichTypeAny,e.type),this.value=this.registerDataOutput("value",i.RichTypeAny),this.index=this.registerDataInput("index",i.RichTypeAny,new a.FlowGraphInteger((0,l.getNumericValue)(e.index??-1)))}_updateOutputs(e){let s=this.type.getValue(e),i=this.index.getValue(e),a=(0,t.GetFlowGraphAssetWithType)(e.assetsContext,s,(0,l.getNumericValue)(i),this.config.useIndexAsUniqueId);this.value.setValue(a,e)}getClassName(){return"FlowGraphGetAssetBlock"}}let h=!1;e.s(["FlowGraphGetAssetBlock",0,u,"RegisterFlowGraphGetAssetBlock",0,function(){h||(h=!0,(0,r.RegisterClass)("FlowGraphGetAssetBlock",u))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70616,t=>{"use strict";var e=t.i(60699),s=t.i(65678),a=t.i(80129),i=t.i(68282);class u extends e.FlowGraphBlock{constructor(t){for(let e of(super(t),this.config=t,this._inputCases=new Map,this.case=this.registerDataInput("case",s.RichTypeAny,NaN),this.default=this.registerDataInput("default",s.RichTypeAny),this.value=this.registerDataOutput("value",s.RichTypeAny),this.config.cases||[])){if(e=(0,a.getNumericValue)(e),this.config.treatCasesAsIntegers&&(e|=0,this._inputCases.has(e)))return;this._inputCases.set(e,this.registerDataInput(`in_${e}`,s.RichTypeAny))}}_updateOutputs(t){let e,s=this.case.getValue(t);(0,a.isNumeric)(s)&&(e=this._getOutputValueForCase((0,a.getNumericValue)(s),t)),e||(e=this.default.getValue(t)),this.value.setValue(e,t)}_getOutputValueForCase(t,e){return this._inputCases.get(t)?.getValue(e)}getClassName(){return"FlowGraphDataSwitchBlock"}}let r=!1;t.s(["FlowGraphDataSwitchBlock",0,u,"RegisterFlowGraphDataSwitchBlock",0,function(){r||(r=!0,(0,i.RegisterClass)("FlowGraphDataSwitchBlock",u))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,92728,e=>{"use strict";var t=e.i(87083),i=e.i(84289),s=e.i(80129),r=e.i(65678),n=e.i(68282);class p extends t.FlowGraphEventBlock{constructor(e){super(e),this.config=e,this.type="MeshPick",this.asset=this.registerDataInput("asset",r.RichTypeAny,e?.targetMesh),this.pickedPoint=this.registerDataOutput("pickedPoint",r.RichTypeVector3),this.pickOrigin=this.registerDataOutput("pickOrigin",r.RichTypeVector3),this.pointerId=this.registerDataOutput("pointerId",r.RichTypeNumber),this.pickedMesh=this.registerDataOutput("pickedMesh",r.RichTypeAny),this.pointerType=this.registerDataInput("pointerType",r.RichTypeAny,i.PointerEventTypes.POINTERPICK)}_getReferencedMesh(e){return this.asset.getValue(e)}_executeEvent(e,t){if(this.pointerType.getValue(e)!==t.type)return!0;let i=this._getReferencedMesh(e),r=t.pickInfo?.pickedMesh;return(i?r&&(r===i||(0,s._IsDescendantOf)(r,i)||r.name===i.name):r)&&r?(this.pointerId.setValue(t.event.pointerId,e),this.pickOrigin.setValue(t.pickInfo.ray?.origin,e),this.pickedPoint.setValue(t.pickInfo.pickedPoint,e),this.pickedMesh.setValue(r,e),this._execute(e),!this.config?.stopPropagation):(this.pointerId.resetToDefaultValue(e),this.pickOrigin.resetToDefaultValue(e),this.pickedPoint.resetToDefaultValue(e),this.pickedMesh.resetToDefaultValue(e),!0)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphMeshPickEventBlock"}}let c=!1;e.s(["FlowGraphMeshPickEventBlock",0,p,"RegisterFlowGraphMeshPickEventBlock",0,function(){c||(c=!0,(0,n.RegisterClass)("FlowGraphMeshPickEventBlock",p))}])}]);
|
|
@@ -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,35472,t=>{"use strict";var i=t.i(60699),e=t.i(65678),o=t.i(68282);class r extends i.FlowGraphBlock{constructor(t){super(t),this.log=[],this._isDebug=!0,this.input=this.registerDataInput("input",e.RichTypeAny),this.output=this.registerDataOutput("output",e.RichTypeAny)}_updateOutputs(t){let i=this.input.getValue(t);this.output.setValue(i,t),this._logValue(i)}_logValue(t){if(null==t)this.log.push(["null","null"]);else{let i=r._FormatValue(t);this.log.push([i,String(t)])}this.log.length>100&&this.log.shift()}static _FormatValue(t){if("number"==typeof t)return Number.isInteger(t)?t.toString():t.toFixed(4);if("boolean"==typeof t||"string"==typeof t)return String(t);if(t&&"object"==typeof t){if("w"in t&&"x"in t&&"y"in t&&"z"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)}, ${t.w.toFixed(3)})`;if("z"in t&&"x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)})`;if("x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)})`;if("r"in t&&"g"in t&&"b"in t){let i="a"in t?`, ${t.a.toFixed(3)}`:"";return`(${t.r.toFixed(3)}, ${t.g.toFixed(3)}, ${t.b.toFixed(3)}${i})`}if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString()}try{let i=JSON.stringify(t);return i.length>64?i.substring(0,61)+"...":i}catch{return String(t)}}getClassName(){return"FlowGraphDebugBlock"}}let n=!1;t.s(["FlowGraphDebugBlock",0,r,"RegisterFlowGraphDebugBlock",0,function(){n||(n=!0,(0,o.RegisterClass)("FlowGraphDebugBlock",r))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,76900,t=>{"use strict";var e=t.i(62399);class s{constructor(){this._easingMode=s.EASINGMODE_EASEIN}setEasingMode(t){let e=Math.min(Math.max(t,0),2);this._easingMode=e}getEasingMode(){return this._easingMode}easeInCore(t){throw Error("You must implement this method")}ease(t){switch(this._easingMode){case s.EASINGMODE_EASEIN:return this.easeInCore(t);case s.EASINGMODE_EASEOUT:return 1-this.easeInCore(1-t)}return t>=.5?(1-this.easeInCore((1-t)*2))*.5+.5:.5*this.easeInCore(2*t)}}s.EASINGMODE_EASEIN=0,s.EASINGMODE_EASEOUT=1,s.EASINGMODE_EASEINOUT=2,t.s(["BackEase",0,class extends s{constructor(t=1){super(),this.amplitude=t}easeInCore(t){return Math.pow(t,3)-t*Math.max(0,this.amplitude)*Math.sin(3.141592653589793*t)}},"BezierCurveEase",0,class extends s{constructor(t=0,e=0,s=1,i=1){super(),this.x1=t,this.y1=e,this.x2=s,this.y2=i}easeInCore(t){return e.BezierCurve.Interpolate(t,this.x1,this.y1,this.x2,this.y2)}},"BounceEase",0,class extends s{constructor(t=3,e=2){super(),this.bounces=t,this.bounciness=e}easeInCore(t){let e=Math.max(0,this.bounces),s=this.bounciness;s<=1&&(s=1.001);let i=Math.pow(s,e),n=1-s,r=(1-i)/n+.5*i,o=Math.floor(Math.log(-(t*r)*(1-s)+1)/Math.log(s)),a=(1-Math.pow(s,o))/(n*r),h=(a+(1-Math.pow(s,o+1))/(n*r))*.5,l=t-h,u=h-a;return-Math.pow(1/s,e-o)/(u*u)*(l-u)*(l+u)}},"CircleEase",0,class extends s{easeInCore(t){return 1-Math.sqrt(1-(t=Math.max(0,Math.min(1,t)))*t)}},"CubicEase",0,class extends s{easeInCore(t){return t*t*t}},"EasingFunction",0,s,"ElasticEase",0,class extends s{constructor(t=3,e=3){super(),this.oscillations=t,this.springiness=e}easeInCore(t){let e=Math.max(0,this.oscillations),s=Math.max(0,this.springiness);return(0===s?t:(Math.exp(s*t)-1)/(Math.exp(s)-1))*Math.sin((6.283185307179586*e+1.5707963267948966)*t)}},"ExponentialEase",0,class extends s{constructor(t=2){super(),this.exponent=t}easeInCore(t){return this.exponent<=0?t:(Math.exp(this.exponent*t)-1)/(Math.exp(this.exponent)-1)}}])},54795,t=>{"use strict";var e=t.i(76900),s=t.i(60699),i=t.i(65678),n=t.i(68282);class r extends e.BezierCurveEase{easeInCore(t){return function(t,e,s,i,n){if(t<=0)return 0;if(t>=1)return 1;let r=1-3*i+3*e,o=3*i-6*e,a=3*e,h=0,l=1,u=t;for(let e=0;e<8;e++){let e=u*u,s=e*u*r+o*e+a*u-t;if(1e-7>Math.abs(s))break;s>0?l=u:h=u;let i=3*r*e+2*o*u+a,n=Math.abs(i)>1e-7?u-s/i:NaN;u=Number.isFinite(n)&&n>h&&n<l?n:(h+l)*.5}return(1-3*n+3*s)*u*u*u+(3*n-6*s)*u*u+3*s*u}(t,this.x1,this.y1,this.x2,this.y2)}}class o extends s.FlowGraphBlock{constructor(t){super(t),this.config=t,this._easingFunctions={},this.mode=this.registerDataInput("mode",i.RichTypeNumber,0),this.controlPoint1=this.registerDataInput("controlPoint1",i.RichTypeVector2),this.controlPoint2=this.registerDataInput("controlPoint2",i.RichTypeVector2),this.easingFunction=this.registerDataOutput("easingFunction",i.RichTypeAny)}_updateOutputs(t){let e=this.mode.getValue(t),s=this.controlPoint1.getValue(t),i=this.controlPoint2.getValue(t);if(void 0===e)return;let n=`${e}-${s.x}-${s.y}-${i.x}-${i.y}`;if(!this._easingFunctions[n]){let t=new r(s.x,s.y,i.x,i.y);t.setEasingMode(e),this._easingFunctions[n]=t}this.easingFunction.setValue(this._easingFunctions[n],t)}getClassName(){return"FlowGraphBezierCurveEasing"}}let a=!1;t.s(["FlowGraphBezierCurveEasingBlock",0,o,"RegisterFlowGraphBezierCurveEasingBlock",0,function(){a||(a=!0,(0,n.RegisterClass)("FlowGraphBezierCurveEasing",o))}])},62399,t=>{"use strict";var e,s,i=t.i(76197),n=t.i(56173),r=t.i(33491);(e=s||(s={}))[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 s=e.subtract(t);return new o(Math.atan2(s.y,s.x))}static BetweenTwoVectors(t,e){let s=t.lengthSquared()*e.lengthSquared();if(0===s)return new o(Math.PI/2);s=Math.sqrt(s);let n=t.dot(e)/s;return new o(Math.acos(n=(0,i.Clamp)(n,-1,1)))}static FromRadians(t){return new o(t)}static FromDegrees(t){return new o(t*Math.PI/180)}}class a{constructor(t,e,s){this.startPoint=t,this.midPoint=e,this.endPoint=s;const i=Math.pow(e.x,2)+Math.pow(e.y,2),r=(Math.pow(t.x,2)+Math.pow(t.y,2)-i)/2,a=(i-Math.pow(s.x,2)-Math.pow(s.y,2))/2,h=(t.x-e.x)*(e.y-s.y)-(e.x-s.x)*(t.y-e.y);this.centerPoint=new n.Vector2((r*(e.y-s.y)-a*(t.y-e.y))/h,((t.x-e.x)*a-(e.x-s.x)*r)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=o.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let u=o.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),c=o.BetweenTwoPoints(this.centerPoint,this.endPoint).degrees();u-l>180&&(u-=360),u-l<-180&&(u+=360),c-u>180&&(c-=360),c-u<-180&&(c+=360),this.orientation=u-l<0?0:1,this.angle=o.FromDegrees(0===this.orientation?l-c:c-l)}}t.s(["Angle",0,o,"Arc2",0,a,"BezierCurve",0,class{static Interpolate(t,e,s,i,n){if(0===t)return 0;let r=1-3*i+3*e,o=3*i-6*e,a=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,s=e*h*r+o*e+a*h,i=1/(3*r*e+2*o*h+a);h-=(s-t)*i,h=Math.min(1,Math.max(0,h))}return 3*Math.pow(1-h,2)*h*s+3*(1-h)*Math.pow(h,2)*n+Math.pow(h,3)}},"Curve3",0,class t{static CreateQuadraticBezier(e,s,i,r){r=r>2?r:3;let o=[],a=(t,e,s,i)=>(1-t)*(1-t)*e+2*t*(1-t)*s+t*t*i;for(let t=0;t<=r;t++)o.push(new n.Vector3(a(t/r,e.x,s.x,i.x),a(t/r,e.y,s.y,i.y),a(t/r,e.z,s.z,i.z)));return new t(o)}static CreateCubicBezier(e,s,i,r,o){o=o>3?o:4;let a=[],h=(t,e,s,i,n)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*s+3*t*t*(1-t)*i+t*t*t*n;for(let t=0;t<=o;t++)a.push(new n.Vector3(h(t/o,e.x,s.x,i.x,r.x),h(t/o,e.y,s.y,i.y,r.y),h(t/o,e.z,s.z,i.z,r.z)));return new t(a)}static CreateHermiteSpline(e,s,i,r,o){let a=[],h=1/o;for(let t=0;t<=o;t++)a.push(n.Vector3.Hermite(e,s,i,r,t*h));return new t(a)}static CreateCatmullRomSpline(e,s,i){let r=[],o=1/s,a=0;if(i){let t=e.length;for(let i=0;i<t;i++){a=0;for(let h=0;h<s;h++)r.push(n.Vector3.CatmullRom(e[i%t],e[(i+1)%t],e[(i+2)%t],e[(i+3)%t],a)),a+=o}r.push(r[0])}else{let t=[];t.push(e[0].clone()),t.push(...e),t.push(e[e.length-1].clone());let i=0;for(;i<t.length-3;i++){a=0;for(let e=0;e<s;e++)r.push(n.Vector3.CatmullRom(t[i],t[i+1],t[i+2],t[i+3],a)),a+=o}i--,r.push(n.Vector3.CatmullRom(t[i],t[i+1],t[i+2],t[i+3],a))}return new t(r)}static ArcThru3Points(e,s,i,r=32,o=!1,a=!1){let h=[],l=s.subtract(e),u=i.subtract(s),c=e.subtract(i),_=n.Vector3.Cross(l,u),p=_.length();if(p<1e-8)return new t(h);let g=l.lengthSquared(),d=u.lengthSquared(),x=c.lengthSquared(),m=_.lengthSquared(),A=.5*l.length()*u.length()*c.length()/p,M=n.Vector3.Dot(l,c),P=n.Vector3.Dot(l,u),y=n.Vector3.Dot(u,c),w=e.scale(-.5*d*M/m).add(s.scale(-.5*x*P/m)).add(i.scale(-.5*g*y/m)),f=e.subtract(w).normalize(),C=n.Vector3.Cross(_,f).normalize();if(a){let t=2*Math.PI/r;for(let e=0;e<=2*Math.PI;e+=t)h.push(w.add(f.scale(A*Math.cos(e)).add(C.scale(A*Math.sin(e)))));h.push(e)}else{let t,s=1/r,n=0;do t=w.add(f.scale(A*Math.cos(n)).add(C.scale(A*Math.sin(n)))),h.push(t),n+=s;while(!t.equalsWithEpsilon(i,A*s*1.1))h.push(i),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 s=this._points[this._points.length-1],i=this._points.slice(),n=e.getPoints();for(let t=1;t<n.length;t++)i.push(n[t].subtract(n[0]).add(s));return new t(i)}_computeLength(t){let e=0;for(let s=1;s<t.length;s++)e+=t[s].subtract(t[s-1]).length();return e}},"Orientation",0,s,"Path2",0,class t{constructor(t,e){this._points=[],this._length=0,this.closed=!1,this._points.push(new n.Vector2(t,e))}addLineTo(t,e){if(this.closed)return this;let s=new n.Vector2(t,e),i=this._points[this._points.length-1];return this._points.push(s),this._length+=s.subtract(i).length(),this}addArcTo(t,e,s,i,r=36){if(this.closed)return this;let o=new a(this._points[this._points.length-1],new n.Vector2(t,e),new n.Vector2(s,i)),h=o.angle.radians()/r;0===o.orientation&&(h*=-1);let l=o.startAngle.radians()+h;for(let t=0;t<r;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,s,i,n=36){if(this.closed)return this;let r=(t,e,s,i)=>(1-t)*(1-t)*e+2*t*(1-t)*s+t*t*i,o=this._points[this._points.length-1];for(let a=0;a<=n;a++){let h=a/n,l=r(h,o.x,t,s),u=r(h,o.y,e,i);this.addLineTo(l,u)}return this}addBezierCurveTo(t,e,s,i,n,r,o=36){if(this.closed)return this;let a=(t,e,s,i,n)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*s+3*t*t*(1-t)*i+t*t*t*n,h=this._points[this._points.length-1];for(let l=0;l<=o;l++){let u=l/o,c=a(u,h.x,t,s,n),_=a(u,h.y,e,i,r);this.addLineTo(c,_)}return this}isPointInside(t){let e=!1,s=this._points.length;for(let i=s-1,n=0;n<s;i=n++){let s=this._points[i],r=this._points[n],o=r.x-s.x,a=r.y-s.y;if(Math.abs(a)>Number.EPSILON){if(a<0&&(s=this._points[n],o=-o,r=this._points[i],a=-a),t.y<s.y||t.y>r.y)continue;if(t.y===s.y&&t.x===s.x)return!0;{let i=a*(t.x-s.x)-o*(t.y-s.y);if(0===i)return!0;if(i<0)continue;e=!e}}else{if(t.y!==s.y)continue;if(r.x<=t.x&&t.x<=s.x||s.x<=t.x&&t.x<=r.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 s=t-1,i=0;i<t;s=i++)e+=this._points[s].x*this._points[i].y-this._points[i].x*this._points[s].y;return .5*e}getPoints(){return this._points}getPointAtLengthPosition(t){if(t<0||t>1)return n.Vector2.Zero();let e=t*this.length(),s=0;for(let t=0;t<this._points.length;t++){let i=(t+1)%this._points.length,r=this._points[t],o=this._points[i].subtract(r),a=o.length()+s;if(e>=s&&e<=a){let t=o.normalize(),i=e-s;return new n.Vector2(r.x+t.x*i,r.y+t.y*i)}s=a}return n.Vector2.Zero()}static StartingAt(e,s){return new t(e,s)}},"Path3D",0,class t{constructor(t,e=null,s,i=!1){this.path=t,this._curve=[],this._distances=[],this._tangents=[],this._normals=[],this._binormals=[],this._pointAtData={id:0,point:n.Vector3.Zero(),previousPointArrayIndex:0,position:0,subPosition:0,interpolateReady:!1,interpolationMatrix:n.Matrix.Identity()};for(let e=0;e<t.length;e++)this._curve[e]=t[e].clone();this._raw=s||!1,this._alignTangentsWithPath=i,this._compute(e,i)}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?n.Vector3.TransformCoordinates(n.Vector3.Forward(),this._pointAtData.interpolationMatrix):this._tangents[this._pointAtData.previousPointArrayIndex]}getNormalAt(t,e=!1){return this._updatePointAtData(t,e),e?n.Vector3.TransformCoordinates(n.Vector3.Right(),this._pointAtData.interpolationMatrix):this._normals[this._pointAtData.previousPointArrayIndex]}getBinormalAt(t,e=!1){return this._updatePointAtData(t,e),e?n.Vector3.TransformCoordinates(n.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,s=0;for(let i=0;i<this._curve.length-1;i++){let r=this._curve[i+0],o=this._curve[i+1].subtract(r).normalize(),a=this._distances[i+1]-this._distances[i+0],h=Math.min(Math.max(n.Vector3.Dot(o,t.subtract(r).normalize()),0)*n.Vector3.Distance(r,t)/a,1),l=n.Vector3.Distance(r.add(o.scale(h*a)),t);l<e&&(e=l,s=(this._distances[i+0]+a*h)/this.length())}return s}slice(e=0,s=1){if(e<0&&(e=1- -1*e%1),s<0&&(s=1- -1*s%1),e>s){let t=e;e=s,s=t}let i=this.getCurve(),n=this.getPointAt(e),r=this.getPreviousPointIndexAt(e),o=this.getPointAt(s),a=this.getPreviousPointIndexAt(s)+1,h=[];return 0!==e&&(r++,h.push(n)),h.push(...i.slice(r,a)),(1!==s||1===e)&&h.push(o),new t(h,this.getNormalAt(e),this._raw,this._alignTangentsWithPath)}update(t,e=null,s=!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,s),this}_compute(t,e=!1){let s,i,r,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],u=this._normalVector(l,t);this._normals[0]=u,this._raw||this._normals[0].normalize(),this._binormals[0]=n.Vector3.Cross(l,this._normals[0]),this._raw||this._binormals[0].normalize(),this._distances[0]=0;for(let t=1;t<h;t++)s=this._getLastNonNullVector(t),t<h-1&&(i=this._getFirstNonNullVector(t),this._tangents[t]=e?i:s.add(i),this._tangents[t].normalize()),this._distances[t]=this._distances[t-1]+this._curve[t].subtract(this._curve[t-1]).length(),r=this._tangents[t],a=this._binormals[t-1],this._normals[t]=n.Vector3.Cross(a,r),this._raw||(0===this._normals[t].length()?(o=this._normals[t-1],this._normals[t]=o.clone()):this._normals[t].normalize()),this._binormals[t]=n.Vector3.Cross(r,this._normals[t]),this._raw||this._binormals[t].normalize();this._pointAtData.id=NaN}_getFirstNonNullVector(t){let e=1,s=this._curve[t+e].subtract(this._curve[t]);for(;0===s.length()&&t+e+1<this._curve.length;)e++,s=this._curve[t+e].subtract(this._curve[t]);return s}_getLastNonNullVector(t){let e=1,s=this._curve[t].subtract(this._curve[t-e]);for(;0===s.length()&&t>e;)e++,s=this._curve[t].subtract(this._curve[t-e]);return s}_normalVector(t,e){let s,o=t.length();if(0===o&&(o=1),null==e){let e;e=(0,i.WithinEpsilon)(Math.abs(t.y)/o,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.x)/o,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.z)/o,1,r.Epsilon)?n.Vector3.Zero():new n.Vector3(0,0,1):new n.Vector3(1,0,0):new n.Vector3(0,-1,0),s=n.Vector3.Cross(t,e)}else s=n.Vector3.Cross(t,e),n.Vector3.CrossToRef(s,t,s);return s.normalize(),s}_updatePointAtData(t,e=!1){let s;if(this._pointAtData.id===t)return this._pointAtData.interpolateReady||this._updateInterpolationMatrix(),this._pointAtData;this._pointAtData.id=t;let i=this.getPoints();if(t<=0)return this._setPointAtData(0,0,i[0],0,e);if(t>=1)return this._setPointAtData(1,1,i[i.length-1],i.length-1,e);let r=i[0],o=0,a=t*this.length();for(let h=1;h<i.length;h++){s=i[h];let l=n.Vector3.Distance(r,s);if((o+=l)===a)return this._setPointAtData(t,1,s,h,e);if(o>a){let i=(o-a)/l,n=r.subtract(s),u=s.add(n.scaleInPlace(i));return this._setPointAtData(t,1-i,u,h-1,e)}r=s}return this._pointAtData}_setPointAtData(t,e,s,i,n){return this._pointAtData.point=s,this._pointAtData.position=t,this._pointAtData.subPosition=e,this._pointAtData.previousPointArrayIndex=i,this._pointAtData.interpolateReady=n,n&&this._updateInterpolationMatrix(),this._pointAtData}_updateInterpolationMatrix(){this._pointAtData.interpolationMatrix=n.Matrix.Identity();let t=this._pointAtData.previousPointArrayIndex;if(t!==this._tangents.length-1){let e=t+1,s=this._tangents[t].clone(),i=this._normals[t].clone(),r=this._binormals[t].clone(),o=this._tangents[e].clone(),a=this._normals[e].clone(),h=this._binormals[e].clone(),l=n.Quaternion.RotationQuaternionFromAxis(i,r,s),u=n.Quaternion.RotationQuaternionFromAxis(a,h,o);n.Quaternion.Slerp(l,u,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65690,t=>{"use strict";var e=t.i(65678),i=t.i(82600),s=t.i(68282);class a extends i.FlowGraphCachedOperationBlock{constructor(t){super(e.RichTypeBoolean,t),this.sound=this.registerDataInput("sound",e.RichTypeAny)}_doOperation(t){let e=this.sound.getValue(t);if(e)return 3===e.state||2===e.state}getClassName(){return"FlowGraphIsSoundPlayingBlock"}}let l=!1;t.s(["FlowGraphIsSoundPlayingBlock",0,a,"RegisterFlowGraphIsSoundPlayingBlock",0,function(){l||(l=!0,(0,s.RegisterClass)("FlowGraphIsSoundPlayingBlock",a))}])},82600,t=>{"use strict";var e=t.i(60699),i=t.i(65678);let s="cachedOperationValue",a="cachedExecutionId";class l 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,a,-1),i=t._getExecutionVariable(this,s,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,s,e),t._setExecutionVariable(this,a,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,l])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74171,e=>{"use strict";var t=e.i(8697),r=e.i(61654);function s(e){switch(e){case 5120:case 5121:return 1;case 5122:case 5123:case 5131:return 2;case 5124:case 5125:case 5126:return 4;default:throw Error(`Invalid type '${e}'`)}}function n(e){switch(e){case 5120:return Int8Array;case 5121:return Uint8Array;case 5122:return Int16Array;case 5123:case 5131:return Uint16Array;case 5124:return Int32Array;case 5125:return Uint32Array;case 5126:return Float32Array;default:throw Error(`Invalid component type '${e}'`)}}function o(e,t,n,o,i,a,l,u){let c=Array(o),f=Array(o);if(e instanceof Array){let r=t/4,s=n/4;for(let t=0;t<a;t+=o){for(let t=0;t<o;t++)c[t]=f[t]=e[r+t];u(f,t);for(let t=0;t<o;t++)c[t]!==f[t]&&(e[r+t]=f[t]);r+=s}}else{let d=ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e),p=s(i);for(let e=0;e<a;e+=o){for(let e=0,s=t;e<o;e++,s+=p)c[e]=f[e]=function(e,t,s,n){switch(t){case 5120:{let t=e.getInt8(s);return n&&(t=Math.max(t/127,-1)),t}case 5121:{let t=e.getUint8(s);return n&&(t/=255),t}case 5122:{let t=e.getInt16(s,!0);return n&&(t=Math.max(t/32767,-1)),t}case 5123:{let t=e.getUint16(s,!0);return n&&(t/=65535),t}case 5131:return(0,r.FromHalfFloat)(e.getUint16(s,!0));case 5124:return e.getInt32(s,!0);case 5125:return e.getUint32(s,!0);case 5126:return e.getFloat32(s,!0);default:throw Error(`Invalid component type ${t}`)}}(d,i,s,l);u(f,e);for(let e=0,s=t;e<o;e++,s+=p)c[e]!==f[e]&&function(e,t,s,n,o){switch(t){case 5120:n&&(o=Math.round(127*o)),e.setInt8(s,o);break;case 5121:n&&(o=Math.round(255*o)),e.setUint8(s,o);break;case 5122:n&&(o=Math.round(32767*o)),e.setInt16(s,o,!0);break;case 5123:n&&(o=Math.round(65535*o)),e.setUint16(s,o,!0);break;case 5131:e.setUint16(s,(0,r.ToHalfFloat)(o),!0);break;case 5124:e.setInt32(s,o,!0);break;case 5125:e.setUint32(s,o,!0);break;case 5126:e.setFloat32(s,o,!0);break;default:throw Error(`Invalid component type ${t}`)}}(d,i,s,l,f[e]);t+=n}}}e.s(["CopyFloatData",0,function(e,r,n,i,a,l,u,c){let f=r*s(n),d=u*r;if(c.length!==d)throw Error("Output length is not valid");if(5126!==n||a!==f)return void o(e,i,a,r,n,d,l,(e,t)=>{for(let s=0;s<r;s++)c[t+s]=e[s]});if(e instanceof Array){let t=i/4;c.set(e,t)}else if(ArrayBuffer.isView(e)){let r=e.byteOffset+i;if((3&r)!=0){t.Logger.Warn("Float array must be aligned to 4-bytes border"),c.set(new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)));return}let s=new Float32Array(e.buffer,r,d);c.set(s)}else{let t=new Float32Array(e,i,d);c.set(t)}},"EnumerateFloatValues",0,o,"GetBlobBufferSource",0,function(e){let t=e.buffer;if(t instanceof ArrayBuffer)return e;let r=new ArrayBuffer(e.byteLength);return new Uint8Array(r).set(new Uint8Array(t,e.byteOffset,e.byteLength)),r},"GetFloatData",0,function(e,r,n,i,a,l,u,c){let f=r*s(n),d=u*r;if(5126!==n||a!==f){let t=new Float32Array(d);return o(e,i,a,r,n,d,l,(e,s)=>{for(let n=0;n<r;n++)t[s+n]=e[n]}),t}if(!(e instanceof Array||e instanceof Float32Array)||0!==i||e.length!==d)if(e instanceof Array){let t=i/4;return e.slice(t,t+d)}else{if(!ArrayBuffer.isView(e))return new Float32Array(e,i,d);let r=e.byteOffset+i;return((3&r)!=0&&(t.Logger.Warn("Float array must be aligned to 4-bytes border"),c=!0),c)?new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)):new Float32Array(e.buffer,r,d)}return c?e.slice():e},"GetTypeByteLength",0,s,"GetTypedArrayConstructor",0,n,"GetTypedArrayData",0,function(e,r,i,a,l,u,c){let f,d=s(i),p=n(i),h=u*r;if(Array.isArray(e)){if((3&a)!=0||(3&l)!=0)throw Error("byteOffset and byteStride must be a multiple of 4 for number[] data.");let t=a/4,s=l/4;if(t+(u-1)*s+r>e.length)throw Error("Last accessed index is out of bounds.");if(s<r)throw Error("Data stride cannot be smaller than the component size.");if(s!==r){let t=new p(h);return o(e,a,l,r,i,h,!1,(e,s)=>{for(let n=0;n<r;n++)t[s+n]=e[n]}),t}return new p(e.slice(t,t+h))}let g=a;if(ArrayBuffer.isView(e)?(f=e.buffer,g+=e.byteOffset):f=e,g+(u-1)*l+r*d>f.byteLength)throw Error("Last accessed byte is out of bounds.");let y=r*d;if(l<y)throw Error("Byte stride cannot be smaller than the component's byte size.");if(l!==y){let e=new p(h),t=new Uint8Array(f,g),s=new Uint8Array(e.buffer),n=r*d;for(let e=0,r=0,o=0;e<u;e++,r+=l,o+=n)s.set(t.subarray(r,r+n),o);return e}return(1!==d&&(g&d-1)!=0&&(t.Logger.Warn("Array must be aligned to border of element size. Data will be copied."),c=!0),c)?new p(f.slice(g,g+h*d)):new p(f,g,h)}])},20969,48685,e=>{"use strict";var t=e.i(49399);let r={};function s(e,t,r,s){if(e){t?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,r?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,s?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return t&&(e+="#define IS_NDC_HALF_ZRANGE"),r&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),s&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}e.s(["EngineFunctionContext",0,r,"_ConcatenateShader",0,function(e,t,r=""){return r+(t?t+"\n":"")+e},"_GetGlobalDefines",0,s,"_LoadFile",0,function(e,s,n,o,i,a,l){let u=l||r.loadFile;if(!u)throw(0,t._WarnImport)("FileTools");return u(e,s,n,o,i,a)},"allocateAndCopyTypedBuffer",0,function(e,t,r=!1,s){switch(e){case 3:{let e=new Int8Array(t);return s&&e.set(new Int8Array(s)),e}case 0:{let e=new Uint8Array(t);return s&&e.set(new Uint8Array(s)),e}case 4:{let e=new Int16Array("number"!=typeof t?t:r?t/2:t);return s&&e.set(new Int16Array(s)),e}case 5:case 8:case 9:case 10:case 2:{let e=new Uint16Array("number"!=typeof t?t:r?t/2:t);return s&&e.set(new Uint16Array(s)),e}case 6:{let e=new Int32Array("number"!=typeof t?t:r?t/4:t);return s&&e.set(new Int32Array(s)),e}case 7:case 11:case 12:case 13:case 14:case 15:{let e=new Uint32Array("number"!=typeof t?t:r?t/4:t);return s&&e.set(new Uint32Array(s)),e}case 1:{let e=new Float32Array("number"!=typeof t?t:r?t/4:t);return s&&e.set(new Float32Array(s)),e}}let n=new Uint8Array(t);return s&&n.set(new Uint8Array(s)),n}],20969);class n{constructor(){this.children=[]}isValid(e){return!0}process(e,t,r){let s="";if(this.line){let r=this.line,n=t.processor;if(n){n.lineProcessor&&(r=n.lineProcessor(r,t.isFragment,t.processingContext));let s=t.processor?.attributeKeywordName??"attribute",o=t.isFragment&&t.processor?.varyingFragmentKeywordName?t.processor?.varyingFragmentKeywordName:!t.isFragment&&t.processor?.varyingVertexKeywordName?t.processor?.varyingVertexKeywordName:"varying";!t.isFragment&&n.attributeProcessor&&this.line.startsWith(s)?r=n.attributeProcessor(this.line,e,t.processingContext):n.varyingProcessor&&(n.varyingCheck?.(this.line,t.isFragment)||!n.varyingCheck&&this.line.startsWith(o))?r=n.varyingProcessor(this.line,t.isFragment,e,t.processingContext):n.uniformProcessor&&n.uniformRegexp&&n.uniformRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(r=n.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):n.uniformBufferProcessor&&n.uniformBufferRegexp&&n.uniformBufferRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(r=n.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0):n.textureProcessor&&n.textureRegexp&&n.textureRegexp.test(this.line)?r=n.textureProcessor(this.line,t.isFragment,e,t.processingContext):(n.uniformProcessor||n.uniformBufferProcessor)&&this.line.startsWith("uniform")&&!t.lookForClosingBracketForUniformBuffer&&(/uniform\s+(?:(?:highp)?|(?:lowp)?)\s*(\S+)\s+(\S+)\s*;/.test(this.line)?n.uniformProcessor&&(r=n.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):n.uniformBufferProcessor&&(r=n.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0)),t.lookForClosingBracketForUniformBuffer&&-1!==this.line.indexOf("}")&&(t.lookForClosingBracketForUniformBuffer=!1,n.endOfUniformBufferProcessor&&(r=n.endOfUniformBufferProcessor(this.line,t.isFragment,t.processingContext)))}s+=r+"\n"}for(let n of this.children)s+=n.process(e,t,r);return this.additionalDefineKey&&(e[this.additionalDefineKey]=this.additionalDefineValue||"true",r[this.additionalDefineKey]=e[this.additionalDefineKey]),s}}class o{constructor(){this._lines=[]}get currentLine(){return this._lines[this.lineIndex]}get canRead(){return this.lineIndex<this._lines.length-1}set lines(e){for(let t of(this._lines.length=0,e)){if(!t||"\r"===t)continue;if("#"===t[0]){this._lines.push(t);continue}let e=t.trim();if(!e)continue;if(e.startsWith("//")){this._lines.push(t);continue}let r=e.indexOf(";");if(-1===r)this._lines.push(e);else if(r===e.length-1)e.length>1&&this._lines.push(e);else{let e=t.split(";");for(let t=0;t<e.length;t++){let r=e[t];r&&(r=r.trim())&&this._lines.push(r+(t!==e.length-1?";":""))}}}}}class i extends n{process(e,t,r){for(let s=0;s<this.children.length;s++){let n=this.children[s];if(n.isValid(e))return n.process(e,t,r)}return""}}class a extends n{isValid(e){return this.testExpression.isTrue(e)}}class l{isTrue(e){return!0}static postfixToInfix(e){let t=[];for(let r of e)if(void 0===l._OperatorPriority[r])t.push(r);else{let e=t[t.length-1],s=t[t.length-2];t.length-=2,t.push(`(${s}${r}${e})`)}return t[t.length-1]}static infixToPostfix(e){let t=l._InfixToPostfixCache.get(e);if(t)return t.accessTime=Date.now(),t.result;if(!e.includes("&&")&&!e.includes("||")&&!e.includes(")")&&!e.includes("("))return[e];let r=[],s=-1,n=()=>{""!==(c=c.trim())&&(r.push(c),c="")},o=e=>{s<l._Stack.length-1&&(l._Stack[++s]=e)},i=()=>l._Stack[s],a=()=>-1===s?"!!INVALID EXPRESSION!!":l._Stack[s--],u=0,c="";for(;u<e.length;){let t=e.charAt(u),f=u<e.length-1?e.substring(u,2+u):"";if("("===t)c="",o(t);else if(")"===t){for(n();-1!==s&&"("!==i();)r.push(a());a()}else if(l._OperatorPriority[f]>1){for(n();-1!==s&&l._OperatorPriority[i()]>=l._OperatorPriority[f];)r.push(a());o(f),u++}else c+=t;u++}for(n();-1!==s;)"("===i()?a():r.push(a());return l._InfixToPostfixCache.size>=l.InfixToPostfixCacheLimitSize&&l.ClearCache(),l._InfixToPostfixCache.set(e,{result:r,accessTime:Date.now()}),r}static ClearCache(){let e=Array.from(l._InfixToPostfixCache.entries()).sort((e,t)=>e[1].accessTime-t[1].accessTime);for(let t=0;t<l.InfixToPostfixCacheCleanupSize;t++)l._InfixToPostfixCache.delete(e[t][0])}}l.InfixToPostfixCacheLimitSize=5e4,l.InfixToPostfixCacheCleanupSize=25e3,l._InfixToPostfixCache=new Map,l._OperatorPriority={")":0,"(":1,"||":2,"&&":3},l._Stack=["","","","","","","","","","","","","","","","","","","",""];class u extends l{constructor(e,t=!1){super(),this.define=e,this.not=t}isTrue(e){let t=void 0!==e[this.define];return this.not&&(t=!t),t}}class c extends l{isTrue(e){return this.leftOperand.isTrue(e)||this.rightOperand.isTrue(e)}}class f extends l{isTrue(e){return this.leftOperand.isTrue(e)&&this.rightOperand.isTrue(e)}}class d extends l{constructor(e,t,r){super(),this.define=e,this.operand=t,this.testValue=r}toString(){return`${this.define} ${this.operand} ${this.testValue}`}isTrue(e){let t=!1,r=parseInt(void 0!=e[this.define]?e[this.define]:this.define),s=parseInt(void 0!=e[this.testValue]?e[this.testValue]:this.testValue);if(isNaN(r)||isNaN(s))return!1;switch(this.operand){case">":t=r>s;break;case"<":t=r<s;break;case"<=":t=r<=s;break;case">=":t=r>=s;break;case"==":t=r===s;break;case"!=":t=r!==s}return t}}let p=/defined\s*?\((.+?)\)/g,h=/defined\s*?\[(.+?)\]/g,g=/#include\s?<(.+)>(\((.*)\))*(\[(.*)\])*/g,y=/__decl__/,m=/light\{X\}.(\w*)/g,b=/\{X\}/g,x=[],L=/(#ifdef)|(#else)|(#elif)|(#endif)|(#ifndef)|(#if)/;function w(e){let t=/defined\((.+)\)/.exec(e);if(t&&t.length)return new u(t[1].trim(),"!"===e[0]);let r="",s=0;for(r of["==","!=",">=","<=","<",">"])if((s=e.indexOf(r))>-1)break;if(-1===s)return new u(e);let n=e.substring(0,s).trim(),o=e.substring(s+r.length).trim();return new d(n,r,o)}function E(e,t){let r=new a,s=e.substring(0,t),n=e.substring(t);return n=n.substring(0,(n.indexOf("//")+1||n.length+1)-1).trim(),"#ifdef"===s?r.testExpression=new u(n):"#ifndef"===s?r.testExpression=new u(n,!0):r.testExpression=function(e){e=e.replace(p,"defined[$1]");let t=l.infixToPostfix(e),r=[];for(let e of t)if("||"!==e&&"&&"!==e)r.push(e);else if(r.length>=2){let t=r[r.length-1],s=r[r.length-2];r.length-=2;let n="&&"==e?new f:new c;"string"==typeof t&&(t=t.replace(h,"defined($1)")),"string"==typeof s&&(s=s.replace(h,"defined($1)")),n.leftOperand="string"==typeof s?w(s):s,n.rightOperand="string"==typeof t?w(t):t,r.push(n)}let s=r[r.length-1];return"string"==typeof s&&(s=s.replace(h,"defined($1)")),"string"==typeof s?w(s):s}(n),r}function _(e,t,r,s){let o;for(;v(e,r,s);){let i=(o=e.currentLine).substring(0,5).toLowerCase();if("#else"===i){let r=new n;t.children.push(r),v(e,r,s);return}if("#elif"===i){let e=E(o,5);t.children.push(e),r=e}}}function v(e,t,r){for(;e.canRead;){e.lineIndex++;let s=e.currentLine;if(s.indexOf("#")>=0){let n=L.exec(s);if(n&&n.length){switch(n[0]){case"#ifdef":{let n=new i;t.children.push(n);let o=E(s,6);n.children.push(o),_(e,n,o,r);break}case"#else":case"#elif":return!0;case"#endif":return!1;case"#ifndef":{let n=new i;t.children.push(n);let o=E(s,7);n.children.push(o),_(e,n,o,r);break}case"#if":{let n=new i,o=E(s,3);t.children.push(n),n.children.push(o),_(e,n,o,r)}}continue}}let o=new n;if(o.line=s,t.children.push(o),"#"===s[0]&&"d"===s[1]){let e=s.replace(";","").split(" ");o.additionalDefineKey=e[1],3===e.length&&(o.additionalDefineValue=e[2])}}return!1}function C(e,t,r){let s;for(x.length=0;null!==(s=g.exec(e));)x.push(s);let n=[e],o=!1;for(let e of x){let s=e[1];if(-1!==s.indexOf("__decl__")&&(s=s.replace(y,""),t.supportsUniformBuffers&&(s=s.replace("Vertex","Ubo").replace("Fragment","Ubo")),s+="Declaration"),t.includesShadersStore[s]){let r=t.includesShadersStore[s];if(e[2]){let t=e[3].split(",");for(let e=0;e<t.length;e+=2){let s=RegExp(t[e],"g"),n=t[e+1];r=r.replace(s,n)}}if(e[4]){let s=e[5];if(-1!==s.indexOf("..")){let e=s.split(".."),n=parseInt(e[0]),o=parseInt(e[1]),i=r.slice(0);r="",isNaN(o)&&(o=t.indexParameters[e[1]]);for(let e=n;e<o;e++)t.supportsUniformBuffers||(i=i.replace(m,(e,t)=>t+"{X}")),r+=i.replace(b,e.toString())+"\n"}else t.supportsUniformBuffers||(r=r.replace(m,(e,t)=>t+"{X}")),r=r.replace(b,s)}let i=[];for(let t of n){let s=t.split(e[0]);for(let e=0;e<s.length-1;e++)i.push(s[e]),i.push(r);i.push(s[s.length-1])}n=i,o=o||r.indexOf("#include<")>=0||r.indexOf("#include <")>=0}else{let e=t.shadersRepository+"ShadersInclude/"+s+".fx";R.loadFile(e,e=>{t.includesShadersStore[s]=e,C(n.join(""),t,r)});return}}x.length=0;let i=n.join("");o?C(i.toString(),t,r):r(i)}let R={loadFile:(e,r,s,n,o,i)=>{throw(0,t._WarnImport)("FileTools")}};e.s(["Finalize",0,function(e,t,r){return r.processor&&r.processor.finalizeShaders?r.processor.finalizeShaders(e,t,r.processingContext):{vertexCode:e,fragmentCode:t}},"Initialize",0,function(e){e.processor&&e.processor.initializeShaders&&e.processor.initializeShaders(e.processingContext)},"Process",0,function(e,t,r,i){t.processor?.preProcessShaderCode&&(e=t.processor.preProcessShaderCode(e,t.isFragment)),C(e,t,e=>{t.processCodeAfterIncludes&&(e=t.processCodeAfterIncludes(t.isFragment?"fragment":"vertex",e,t.defines)),r(function(e,t,r){var i;let a,l,u=function(e,t){if(t.processor?.noPrecision)return e;let r=t.shouldUseHighPrecisionShader;return -1===e.indexOf("precision highp float")?e=r?"precision highp float;\n"+e:"precision mediump float;\n"+e:r||(e=e.replace("precision highp float","precision mediump float")),e}(e,t);if(!t.processor||0===t.processor.shaderLanguage&&-1!==u.indexOf("#version 3")&&(u=u.replace("#version 300 es",""),!t.processor.parseGLES3))return u;let c=t.defines,f=function(e,t){let r=e.defines,n={};for(let e of r){let t=e.replace("#define","").replace(";","").trim().split(" ");n[t[0]]=t.length>1?t[1]:""}return e.processor?.shaderLanguage===0&&(n.GL_ES="true"),n.__VERSION__=e.version,n[e.platformName]="true",s(n,t?.isNDCHalfZRange,t?.useReverseDepthBuffer,t?.useExactSrgbConversions),n}(t,r);t.processor.preProcessor&&(u=t.processor.preProcessor(u,c,f,t.isFragment,t.processingContext));let d={};return i=u,a=new n,(l=new o).lineIndex=-1,l.lines=i.split("\n"),v(l,a,d),u=a.process(f,t,d),t.processor.postProcessor&&(u=t.processor.postProcessor(u,c,t.isFragment,t.processingContext,r?{drawBuffersExtensionDisabled:!r.getCaps().drawBuffersExtension}:{},f,d)),r?._features.needShaderCodeInlining&&(u=r.inlineShaderCode(u)),u}(e,t,i),e)})},"ProcessIncludes",0,C,"_FunctionContainer",0,R],48685)},49399,e=>{"use strict";let t={},r={};e.s(["_IsSideEffectImplemented",0,function(e){return!!e&&!e.__isSideEffectStub},"_MissingSideEffect",0,function(e,t,s=!1){let n=function(){if(s&&1){let s=`${e}.${t}`;r[s]||(r[s]=!0,console.warn(`[Babylon.js] ${s}() requires a side-effect import. See: https://doc.babylonjs.com/setup/treeshaking`))}};return n.__isSideEffectStub=!0,n},"_MissingSideEffectProperty",0,function(e,t){return{get(){},set(e){Object.defineProperty(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0}},"_WarnImport",0,function(e,r=!1){if(!r||!t[e])return t[e]=!0,`${e} needs to be imported before as it contains a side-effect required by your code.`}])},45735,e=>{"use strict";e.s(["GetDOMTextContent",0,function(e){let t="",r=e.firstChild;for(;r;)3===r.nodeType&&(t+=r.textContent),r=r.nextSibling;return t},"IsDocumentAvailable",0,function(){return"u">typeof document},"IsNavigatorAvailable",0,function(){return"u">typeof navigator},"IsWindowObjectExist",0,function(){return"u">typeof window}])},20887,e=>{"use strict";let t;var r=e.i(5369),s=e.i(45735),n=e.i(97991),o=e.i(50273),i=e.i(89188),a=e.i(31619),l=e.i(64781),u=e.i(71829),c=e.i(20969),f=e.i(48685),d=e.i(8697),p=e.i(89435),h=e.i(74171);let g=new RegExp(/^data:([^,]+\/[^,]+)?;base64,/i);class y extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.LoadFileError),this.name="LoadFileError",a.BaseError._setPrototypeOf(this,y.prototype),t instanceof r.WebRequest?this.request=t:this.file=t}}class m extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.RequestFileError),this.request=t,this.name="RequestFileError",a.BaseError._setPrototypeOf(this,m.prototype)}}class b extends a.RuntimeError{constructor(e,t){super(e,a.ErrorCodes.ReadFileError),this.file=t,this.name="ReadFileError",a.BaseError._setPrototypeOf(this,b.prototype)}}let x={DefaultRetryStrategy:i.RetryStrategy.ExponentialBackoff(),BaseUrl:"",CorsBehavior:"anonymous",PreprocessUrl:e=>e,ScriptBaseUrl:"",ScriptPreprocessUrl:e=>e,CleanUrl:e=>e=e.replace(/#/gm,"%23")},L=(e,t)=>{if((!e||0!==e.indexOf("data:"))&&x.CorsBehavior)if("string"==typeof x.CorsBehavior||x.CorsBehavior instanceof String)t.crossOrigin=x.CorsBehavior;else{let r=x.CorsBehavior(e);r&&(t.crossOrigin=r)}},w=(e,t,s,n,i="",a,c=u.EngineStore.LastCreatedEngine)=>{let f;if("u"<typeof HTMLImageElement&&!c?._features.forceBitmapOverHTMLImageElement)return s("LoadImage is only supported in web or BabylonNative environments."),null;let d=!1;if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))if("u">typeof Blob&&"u">typeof URL){let t;t=e instanceof ArrayBuffer?e:(0,h.GetBlobBufferSource)(e),f=URL.createObjectURL(new Blob([t],{type:i})),d=!0}else f=`data:${i};base64,`+(0,l.EncodeArrayBufferToBase64)(e);else e instanceof Blob?(f=URL.createObjectURL(e),d=!0):(f=x.CleanUrl(e),f=x.PreprocessUrl(f));let p=t=>{if(s){let r=f||e.toString();s(`Error while trying to load image: ${0===r.indexOf("http")||r.length<=128?r:r.slice(0,128)+"..."}`,t)}};if(c?._features.forceBitmapOverHTMLImageElement)return _(f,r=>{c.createImageBitmap(new Blob([r],{type:i}),{premultiplyAlpha:"none",colorSpaceConversion:"none",...a}).then(e=>{t(e),d&&URL.revokeObjectURL(f)}).catch(t=>{s&&s("Error while trying to load image: "+e,t)})},void 0,n||void 0,!0,(e,t)=>{p(t)}),null;let g=new Image;!1;L(f,g);let y=[],m=()=>{for(let e of y)e.target.removeEventListener(e.name,e.handler);y.length=0};for(let e of(y.push({target:g,name:"load",handler:()=>{m(),t(g),d&&g.src&&URL.revokeObjectURL(g.src)}}),y.push({target:g,name:"error",handler:e=>{m(),p(e),d&&g.src&&URL.revokeObjectURL(g.src)}}),y.push({target:document,name:"securitypolicyviolation",handler:e=>{if(e.blockedURI!==g.src||"report"===e.disposition)return;m();let t=Error(`CSP violation of policy ${e.effectiveDirective} ${e.blockedURI}. Current policy is ${e.originalPolicy}`);u.EngineStore.UseFallbackTexture=!1,p(t),d&&g.src&&URL.revokeObjectURL(g.src),g.src=""}}),y))e.target.addEventListener(e.name,e.handler);let b="blob:"===f.substring(0,5),w="data:"===f.substring(0,5),E=()=>{b||w||!r.WebRequest.IsCustomRequestAvailable?g.src=f:_(f,(e,t,r)=>{let s=new Blob([e],{type:!i&&r?r:i}),n=URL.createObjectURL(s);d=!0,g.src=n},void 0,n||void 0,!0,(e,t)=>{p(t)})};if(!b&&!w&&n&&n.enableTexturesOffline)n.open(()=>{n&&n.loadImage(f,g)},E);else{if(-1!==f.indexOf("file:")){let e=decodeURIComponent(f.substring(5).toLowerCase());if(o.FilesInputStore.FilesToLoad[e]&&"u">typeof URL){try{let t;try{t=URL.createObjectURL(o.FilesInputStore.FilesToLoad[e])}catch(r){t=URL.createObjectURL(o.FilesInputStore.FilesToLoad[e])}g.src=t,d=!0}catch(e){g.src=""}return g}}E()}return g},E=(e,t,r,s,o)=>{let i=new FileReader,a={onCompleteObservable:new n.Observable,abort:()=>i.abort()};return i.onloadend=()=>a.onCompleteObservable.notifyObservers(a),o&&(i.onerror=()=>{o(new b(`Unable to read ${e.name}`,e))}),i.onload=e=>{t(e.target.result)},r&&(i.onprogress=r),s?i.readAsArrayBuffer(e):i.readAsText(e),a},_=(e,t,r,s,i,a,l)=>{if(e.name)return E(e,t,r,i,a?e=>{a(void 0,e)}:void 0);if(-1!==e.indexOf("file:")){let s=decodeURIComponent(e.substring(5).toLowerCase());0===s.indexOf("./")&&(s=s.substring(2));let n=o.FilesInputStore.FilesToLoad[s];if(n)return E(n,t,r,i,a?e=>a(void 0,new y(e.message,e.file)):void 0)}let{match:u,type:c}=U(e);if(u){let r={onCompleteObservable:new n.Observable,abort:()=>()=>{}};try{let r=i?F(e):S(e);t(r,void 0,c)}catch(e){a?a(void 0,e):d.Logger.Error(e.message||"Failed to parse the Data URL")}return p.TimingTools.SetImmediate(()=>{r.onCompleteObservable.notifyObservers(r)}),r}return v(e,(e,r)=>{t(e,r?.responseURL,r?.getResponseHeader("content-type"))},r,s,i,a?e=>{a(e.request,new y(e.message,e.request))}:void 0,l)},v=(e,t,o,i,a,l,c)=>{null!==i&&(i??(i=u.EngineStore.LastCreatedScene?.offlineProvider)),e=x.CleanUrl(e),e=x.PreprocessUrl(e);let f=x.BaseUrl+e,p=!1,h={onCompleteObservable:new n.Observable,abort:()=>p=!0},g=()=>{let e,n=new r.WebRequest,i=null,u=()=>{n&&(o&&n.removeEventListener("progress",o),e&&n.removeEventListener("readystatechange",e),n.removeEventListener("loadend",g))},g=()=>{u(),h.onCompleteObservable.notifyObservers(h),h.onCompleteObservable.clear(),o=void 0,e=null,g=null,l=void 0,c=void 0,t=void 0};h.abort=()=>{p=!0,g&&g(),n&&n.readyState!==(XMLHttpRequest.DONE||4)&&n.abort(),null!==i&&(clearTimeout(i),i=null),n=null};let y=e=>{let t=e.message||"Unknown error";l&&n?l(new m(t,n)):d.Logger.Error(t)},b=d=>{if(n){if(n.open("GET",f),c)try{c(n)}catch(e){y(e);return}a&&(n.responseType="arraybuffer"),o&&n.addEventListener("progress",o),g&&n.addEventListener("loadend",g),e=()=>{if(!p&&n&&n.readyState===(XMLHttpRequest.DONE||4)){if(e&&n.removeEventListener("readystatechange",e),n.status>=200&&n.status<300||0===n.status&&(!(0,s.IsWindowObjectExist)()||C())){let e=a?n.response:n.responseText;if(null!==e){try{t&&t(e,n)}catch(e){y(e)}return}}let o=x.DefaultRetryStrategy;if(o){let e=o(f,n,d);if(-1!==e){u(),n=new r.WebRequest,i=setTimeout(()=>b(d+1),e);return}}let c=new m("Error status: "+n.status+" "+n.statusText+" - Unable to load "+f,n);l&&l(c)}},n.addEventListener("readystatechange",e),n.send()}};b(0)};if(i&&i.enableSceneOffline&&!e.startsWith("blob:")){let r=e=>{e&&e.status>400?l&&l(e):g()};i.open(()=>{i&&i.loadFile(x.BaseUrl+e,e=>{!p&&t&&t(e),h.onCompleteObservable.notifyObservers(h)},o?e=>{!p&&o&&o(e)}:void 0,r,a)},r)}else g();return h},C=()=>"u">typeof location&&"file:"===location.protocol,R=e=>g.test(e),U=e=>{let t=g.exec(e);return null===t||0===t.length?{match:!1,type:""}:{match:!0,type:t[0].replace("data:","").replace(";base64,","")}};function F(e){return(0,l.DecodeBase64ToBinary)(e.split(",")[1])}let S=e=>(0,l.DecodeBase64ToString)(e.split(",")[1]),T=!1;e.s(["DecodeBase64UrlToBinary",0,F,"FileToolsOptions",0,x,"GetMimeType",0,e=>{let{match:t,type:r}=U(e);if(t)return r||void 0;let s=e.lastIndexOf(".");switch(e.substring(s+1).toLowerCase()){case"glb":return"model/gltf-binary";case"bin":return"application/octet-stream";case"gltf":return"model/gltf+json";case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"webp":return"image/webp";case"ktx":return"image/ktx";case"ktx2":return"image/ktx2";case"avif":return"image/avif";default:return}},"IsBase64DataUrl",0,R,"LoadFile",0,_,"LoadFileError",0,y,"LoadImage",0,w,"ReadFile",0,E,"RegisterFileTools",0,function(){!T&&(T=!0,Object.defineProperty(t={DecodeBase64UrlToBinary:F,DecodeBase64UrlToString:S,DefaultRetryStrategy:x.DefaultRetryStrategy,BaseUrl:x.BaseUrl,CorsBehavior:x.CorsBehavior,PreprocessUrl:x.PreprocessUrl,IsBase64DataUrl:R,IsFileURL:C,LoadFile:_,LoadImage:w,ReadFile:E,RequestFile:v,SetCorsBehavior:L},"DefaultRetryStrategy",{get:function(){return x.DefaultRetryStrategy},set:function(e){x.DefaultRetryStrategy=e}}),Object.defineProperty(t,"BaseUrl",{get:function(){return x.BaseUrl},set:function(e){x.BaseUrl=e}}),Object.defineProperty(t,"PreprocessUrl",{get:function(){return x.PreprocessUrl},set:function(e){x.PreprocessUrl=e}}),Object.defineProperty(t,"CorsBehavior",{get:function(){return x.CorsBehavior},set:function(e){x.CorsBehavior=e}}),c.EngineFunctionContext.loadFile=_,c.EngineFunctionContext.loadImage=w,f._FunctionContainer.loadFile=_)},"RequestFile",0,v,"SetCorsBehavior",0,L])},50273,89188,31619,e=>{"use strict";class t{}t.FilesToLoad={},e.s(["FilesInputStore",0,t],50273),e.s(["RetryStrategy",0,class{static ExponentialBackoff(e=3,t=500){return(r,s,n)=>0!==s.status||n>=e||-1!==r.indexOf("file:")?-1:Math.pow(2,n)*t}}],89188);class r extends Error{}r._setPrototypeOf=Object.setPrototypeOf||((e,t)=>(e.__proto__=t,e));class s extends r{constructor(e,t,n){super(e),this.errorCode=t,this.innerError=n,this.name="RuntimeError",r._setPrototypeOf(this,s.prototype)}}e.s(["BaseError",0,r,"ErrorCodes",0,{MeshInvalidPositionsError:0,UnsupportedTextureError:1e3,GLTFLoaderUnexpectedMagicError:2e3,SceneLoaderError:3e3,LoadFileError:4e3,RequestFileError:4001,ReadFileError:4002},"RuntimeError",0,s],31619)},70081,e=>{"use strict";e.s(["RandomGUID",0,function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}])},61654,e=>{"use strict";let t=null;function r(){if(t)return t;let e=new ArrayBuffer(4),r=new Float32Array(e),s=new Uint32Array(e),n=new Uint32Array(512),o=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-24?(n[e]=0,n[256|e]=32768,o[e]=24,o[256|e]=24):t<-14?(n[e]=1024>>-t-14,n[256|e]=1024>>-t-14|32768,o[e]=-t-1,o[256|e]=-t-1):t<=15?(n[e]=t+15<<10,n[256|e]=t+15<<10|32768,o[e]=13,o[256|e]=13):t<128?(n[e]=31744,n[256|e]=64512,o[e]=24,o[256|e]=24):(n[e]=31744,n[256|e]=64512,o[e]=13,o[256|e]=13)}let i=new Uint32Array(2048),a=new Uint32Array(64),l=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,r=0;for(;(8388608&t)==0;)t<<=1,r-=8388608;t&=-8388609,r+=0x38800000,i[e]=t|r}for(let e=1024;e<2048;++e)i[e]=0x38000000+(e-1024<<13);for(let e=1;e<31;++e)a[e]=e<<23;a[31]=0x47800000,a[32]=0x80000000;for(let e=33;e<63;++e)a[e]=0x80000000+(e-32<<23);a[63]=0xc7800000;for(let e=1;e<64;++e)32!==e&&(l[e]=1024);return t={floatView:r,uint32View:s,baseTable:n,shiftTable:o,mantissaTable:i,exponentTable:a,offsetTable:l}}e.s(["FromHalfFloat",0,function(e){let t=r();return t.uint32View[0]=t.mantissaTable[t.offsetTable[e>>10]+(1023&e)]+t.exponentTable[e>>10],t.floatView[0]},"MaxHalfFloat",0,65504,"ToHalfFloat",0,function(e){let t=r();t.floatView[0]=e;let s=t.uint32View[0],n=s>>23&511;return t.baseTable[n]+((8388607&s)>>t.shiftTable[n])}])},8697,e=>{"use strict";class t{static _CheckLimit(e,r){let s=t._LogLimitOutputs[e];return s?s.current++:(s={limit:r,current:1},t._LogLimitOutputs[e]=s),s.current<=s.limit}static _GenerateLimitMessage(e,r=1){let s=t._LogLimitOutputs[e];if(!s||!t.MessageLimitReached)return;let n=this._Levels[r];s.current===s.limit&&t[n.name](t.MessageLimitReached.replace(/%LIMIT%/g,""+s.limit).replace(/%TYPE%/g,n.name??""))}static _AddLogEntry(e){t._LogCache=e+t._LogCache,t.OnNewCacheEntry&&t.OnNewCacheEntry(e)}static _FormatMessage(e){let t=e=>e<10?"0"+e:""+e,r=new Date;return"["+t(r.getHours())+":"+t(r.getMinutes())+":"+t(r.getSeconds())+"]: "+e}static _LogDisabled(e,t){}static _LogEnabled(e=1,r,s){let n=Array.isArray(r)?r[0]:r;if(void 0!==s&&!t._CheckLimit(n,s))return;let o=t._FormatMessage(n),i=this._Levels[e],a=Array.isArray(r)?r.slice(1):[];i.logFunc&&i.logFunc("BJS - "+o,...a);let l=`<div style='color:${i.color}'>${o}</div><br>`;t._AddLogEntry(l),t._GenerateLimitMessage(n,e)}static get LogCache(){return t._LogCache}static ClearLogCache(){t._LogCache="",t._LogLimitOutputs={},t.errorsCount=0}static set LogLevels(e){for(let r of(t.Log=t._LogDisabled,t.Warn=t._LogDisabled,t.Error=t._LogDisabled,[t.MessageLogLevel,t.WarningLogLevel,t.ErrorLogLevel]))(e&r)===r&&(t[this._Levels[r].name]=t._LogEnabled.bind(t,r))}}t.NoneLogLevel=0,t.MessageLogLevel=1,t.WarningLogLevel=2,t.ErrorLogLevel=4,t.AllLogLevel=7,t.MessageLimitReached="Too many %TYPE%s (%LIMIT%), no more %TYPE%s will be reported for this message.",t._LogCache="",t._LogLimitOutputs={},t._Levels=[{},{color:"white",logFunc:console.log,name:"Log"},{color:"orange",logFunc:console.warn,name:"Warn"},{},{color:"red",logFunc:console.error,name:"Error"}],t.errorsCount=0,t.Log=t._LogEnabled.bind(t,t.MessageLogLevel),t.Warn=t._LogEnabled.bind(t,t.WarningLogLevel),t.Error=t._LogEnabled.bind(t,t.ErrorLogLevel),e.s(["Logger",0,t])},2103,e=>{"use strict";var t=e.i(45735);e.s(["PrecisionDate",0,class{static get Now(){return(0,t.IsWindowObjectExist)()&&window.performance&&window.performance.now?window.performance.now():Date.now()}}])},64781,e=>{"use strict";let t=e=>atob(e);e.s(["Decode",0,e=>{if("u">typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let r=0;r<e.byteLength;r++)t+=String.fromCharCode(e[r]);return t},"DecodeBase64ToBinary",0,e=>"function"==typeof Uint8Array.fromBase64?Uint8Array.fromBase64(e).buffer:function(e){let r=t(e),s=r.length,n=new Uint8Array(new ArrayBuffer(s));for(let e=0;e<s;e++)n[e]=r.charCodeAt(e);return n.buffer}(e),"DecodeBase64ToString",0,t,"EncodeArrayBufferToBase64",0,e=>{let t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e);return"function"==typeof t.toBase64?t.toBase64():function(e){let t,r,s,n,o,i,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(;c<e.length;)t=e[c++],r=c<e.length?e[c++]:NaN,s=c<e.length?e[c++]:NaN,n=t>>2,o=(3&t)<<4|r>>4,i=(15&r)<<2|s>>6,a=63&s,isNaN(r)?i=a=64:isNaN(s)&&(a=64),u+=l.charAt(n)+l.charAt(o)+l.charAt(i)+l.charAt(a);return u}(t)}])},89435,e=>{"use strict";let t=[];function r(e,t,r){try{if(e())return t(),!0}catch(e){return r?.(e),!0}return!1}e.s(["TimingTools",0,class{static SetImmediate(e){0===t.length&&setTimeout(()=>{let e=t;for(let r of(t=[],e))r()},1),t.push(e)}},"_RetryWithInterval",0,(e,t,s,n=16,o=3e4,i=!0,a)=>{if(i&&r(e,t,s))return null;let l=setInterval(()=>{r(e,t,s)?clearInterval(l):(o-=n)<0&&(clearInterval(l),s?.(Error("Operation timed out after maximum retries. "+(a||"")),!0))},n);return()=>clearInterval(l)}])},4696,e=>{"use strict";function t(e){let t=r(e),n=s(e);return t-e>e-n?n:t}function r(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function s(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)-(e>>1)}e.s(["FloorPOT",0,s,"GetExponentOfTwo",0,function(e,n,o=2){let i;switch(o){case 1:i=s(e);break;case 2:i=t(e);break;default:i=r(e)}return Math.min(i,n)},"IsExponentOfTwo",0,function(e){let t=1;do t*=2;while(t<e)return t===e},"Mix",0,function(e,t,r){return e*(1-r)+t*r},"NearestPOT",0,t])},5369,e=>{"use strict";class t{constructor(){this._xhr="u">typeof _native&&_native.XMLHttpRequest?new _native.XMLHttpRequest:new XMLHttpRequest,this._requestURL=""}static get IsCustomRequestAvailable(){return Object.keys(t.CustomRequestHeaders).length>0||t.CustomRequestModifiers.length>0}static _CleanUrl(e){return e=(e=e.replace("file:http:","http:")).replace("file:https:","https:")}static _ShouldSkipRequestModifications(e){return t.SkipRequestModificationForBabylonCDN&&(e.includes("preview.babylonjs.com")||e.includes("cdn.babylonjs.com"))}static _CollectCustomizations(e,r={}){let s={...r};if(t._ShouldSkipRequestModifications(e))return{url:e,headers:s};for(let e in t.CustomRequestHeaders){let r=t.CustomRequestHeaders[e];r&&(s[e]=r)}let n={setRequestHeader:(e,t)=>{s[e]=t}};for(let r of t.CustomRequestModifiers){if(t._ShouldSkipRequestModifications(e))break;let s=r(n,e);"string"==typeof s&&(e=s)}return{url:e,headers:s}}static async FetchAsync(e,r={}){let s=r.method??"GET";if("u">typeof fetch){let{url:n,headers:o}=t._CollectCustomizations(t._CleanUrl(e),r.headers??{});return await fetch(n,{method:s,headers:o,body:r.body??void 0})}return await new Promise((n,o)=>{let i=new t;i.responseType="arraybuffer",i.addEventListener("readystatechange",()=>{if(4===i.readyState)if(i.status>=200&&i.status<300){let e="u">typeof Headers?new Headers:void 0,t=i.getResponseHeader("Content-Type");t&&e&&e.set("Content-Type",t),"u">typeof Response?n(new Response(i.response,{status:i.status,statusText:i.statusText,headers:e})):n({ok:!0,status:i.status,statusText:i.statusText,headers:{get:e=>i.getResponseHeader(e)},arrayBuffer:async()=>await Promise.resolve(i.response)})}else o(Error(`HTTP ${i.status} loading '${i.requestURL}': ${i.statusText}`))}),i.open(s,e,r.headers),i.send(r.body??null)})}get requestURL(){return this._requestURL}get onprogress(){return this._xhr.onprogress}set onprogress(e){this._xhr.onprogress=e}get readyState(){return this._xhr.readyState}get status(){return this._xhr.status}get statusText(){return this._xhr.statusText}get response(){return this._xhr.response}get responseURL(){return this._xhr.responseURL}get responseText(){return this._xhr.responseText}get responseType(){return this._xhr.responseType}set responseType(e){this._xhr.responseType=e}get timeout(){return this._xhr.timeout}set timeout(e){this._xhr.timeout=e}addEventListener(e,t,r){this._xhr.addEventListener(e,t,r)}removeEventListener(e,t,r){this._xhr.removeEventListener(e,t,r)}abort(){this._xhr.abort()}send(e){this._xhr.send(e)}open(e,r,s){let{url:n,headers:o}=t._CollectCustomizations(r,s);for(let r in this._requestURL=t._CleanUrl(n),this._xhr.open(e,this._requestURL,!0),o)this._xhr.setRequestHeader(r,o[r])}setRequestHeader(e,t){this._xhr.setRequestHeader(e,t)}getResponseHeader(e){return this._xhr.getResponseHeader(e)}}t.CustomRequestHeaders={},t.CustomRequestModifiers=[],t.SkipRequestModificationForBabylonCDN=!0,e.s(["WebRequest",0,t])}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
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,50264,72347,72465,e=>{"use strict";var t=e.i(25044);let a="gaussianSplattingVertexDeclaration",s="attribute vec3 position;attribute vec4 splatIndex0;attribute vec4 splatIndex1;attribute vec4 splatIndex2;attribute vec4 splatIndex3;uniform mat4 view;uniform mat4 projection;uniform mat4 world;uniform vec4 vEyePosition;";t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["gaussianSplattingVertexDeclaration",0,{name:a,shader:s}],50264),e.i(77074),e.i(4100);let o="gaussianSplattingUboDeclaration",i=`#include<sceneUboDeclaration>
|
|
2
2
|
#include<meshUboDeclaration>
|
|
3
3
|
attribute vec3 position;attribute vec4 splatIndex0;attribute vec4 splatIndex1;attribute vec4 splatIndex2;attribute vec4 splatIndex3;
|
|
4
|
-
`;t.ShaderStore.IncludesShadersStore[o]||(t.ShaderStore.IncludesShadersStore[o]=i),e.s(["gaussianSplattingUboDeclaration",0,{name:o,shader:i}],
|
|
4
|
+
`;t.ShaderStore.IncludesShadersStore[o]||(t.ShaderStore.IncludesShadersStore[o]=i),e.s(["gaussianSplattingUboDeclaration",0,{name:o,shader:i}],72347);let c="gaussianSplatting",l=`#if !defined(WEBGL2) && !defined(WEBGPU) && !defined(NATIVE)
|
|
5
5
|
mat3 transpose(mat3 matrix) {return mat3(matrix[0][0],matrix[1][0],matrix[2][0],
|
|
6
6
|
matrix[0][1],matrix[1][1],matrix[2][1],
|
|
7
7
|
matrix[0][2],matrix[1][2],matrix[2][2]);}
|
|
@@ -239,19 +239,19 @@ vec3(rotationB.z,rotationB.w,rotationScale.x)
|
|
|
239
239
|
vec3 offsetSplatSpace;if (axisLengthInViewZ.x>axisLengthInViewZ.y && axisLengthInViewZ.x>axisLengthInViewZ.z) {offsetSplatSpace=vec3(0.0,quadPos.x,quadPos.y)*splatScale*gaussianSplatCutoffStddev;} else if (axisLengthInViewZ.y>axisLengthInViewZ.z) {offsetSplatSpace=vec3(quadPos.x,0.0,quadPos.y)*splatScale*gaussianSplatCutoffStddev;} else {offsetSplatSpace=vec3(quadPos.x,quadPos.y,0.0)*splatScale*gaussianSplatCutoffStddev;}
|
|
240
240
|
vec3 vertexObjectSpace=center+splatRotation*offsetSplatSpace;return splatWorld*vec4(vertexObjectSpace,1.0);}
|
|
241
241
|
#endif
|
|
242
|
-
`;t.ShaderStore.IncludesShadersStore[c]||(t.ShaderStore.IncludesShadersStore[c]=l),e.s(["gaussianSplatting",0,{name:c,shader:l}],
|
|
242
|
+
`;t.ShaderStore.IncludesShadersStore[c]||(t.ShaderStore.IncludesShadersStore[c]=l),e.s(["gaussianSplatting",0,{name:c,shader:l}],72465)},4100,e=>{"use strict";var t=e.i(25044);let a="meshUboDeclaration",s=`#ifdef WEBGL2
|
|
243
243
|
uniform mat4 world;uniform float visibility;
|
|
244
244
|
#else
|
|
245
245
|
layout(std140,column_major) uniform;uniform Mesh
|
|
246
246
|
{mat4 world;float visibility;};
|
|
247
247
|
#endif
|
|
248
248
|
#define WORLD_UBO
|
|
249
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["meshUboDeclaration",0,{name:a,shader:s}])},
|
|
249
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["meshUboDeclaration",0,{name:a,shader:s}])},77074,e=>{"use strict";var t=e.i(25044);let a="sceneUboDeclaration",s=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
|
|
250
250
|
#ifdef MULTIVIEW
|
|
251
251
|
mat4 viewProjectionR;
|
|
252
252
|
#endif
|
|
253
253
|
mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
|
|
254
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["sceneUboDeclaration",0,{name:a,shader:s}])},
|
|
254
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=s),e.s(["sceneUboDeclaration",0,{name:a,shader:s}])},41528,e=>{"use strict";var t=e.i(25044),a=e.i(50264),s=e.i(77074),o=e.i(4100),i=e.i(72347),c=e.i(72465);let l="gaussianSplattingVoxelVertexShader",r=`#include<__decl__gaussianSplattingVertex>
|
|
255
255
|
uniform vec2 dataTextureSize;uniform float alpha;uniform mat4 invWorldScale;uniform mat4 viewMatrix;uniform sampler2D rotationsATexture;uniform sampler2D rotationsBTexture;uniform sampler2D rotationScaleTexture;uniform sampler2D centersTexture;uniform sampler2D colorsTexture;
|
|
256
256
|
#if IS_COMPOUND
|
|
257
257
|
uniform mat4 partWorld[MAX_PART_COUNT];uniform float partVisibility[MAX_PART_COUNT];uniform sampler2D partIndicesTexture;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89650,t=>{"use strict";var e=t.i(60699),o=t.i(65678),s=t.i(24667),i=t.i(68282);class a extends e.FlowGraphBlock{constructor(t){super(t),this.config=t,this.output=this.registerDataOutput("output",(0,o.getRichTypeFromValue)(t.value))}_updateOutputs(t){this.output.setValue(this.config.value,t)}getClassName(){return"FlowGraphConstantBlock"}serialize(t={},e=s.defaultValueSerializationFunction){super.serialize(t),e("value",this.config.value,t.config)}}let u=!1;t.s(["FlowGraphConstantBlock",0,a,"RegisterFlowGraphConstantBlock",0,function(){u||(u=!0,(0,i.RegisterClass)("FlowGraphConstantBlock",a))}])}]);
|
|
@@ -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,8823,e=>{"use strict";var o=e.i(25044);let t="harmonicsFunctions",i=`#ifdef USESPHERICALFROMREFLECTIONMAP
|
|
2
2
|
#ifdef SPHERICAL_HARMONICS
|
|
3
3
|
vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
|
|
4
4
|
+ vSphericalL1_1*(normal.y)
|
|
@@ -13,7 +13,7 @@ vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
|
|
|
13
13
|
vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
|
|
14
14
|
#endif
|
|
15
15
|
#endif
|
|
16
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["harmonicsFunctions",0,{name:t,shader:i}])},
|
|
16
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["harmonicsFunctions",0,{name:t,shader:i}])},31660,e=>{"use strict";var o=e.i(25044);let t="helperFunctions",i=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
|
|
17
17
|
const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
|
|
18
18
|
#define saturate(x) clamp(x,0.0,1.0)
|
|
19
19
|
#define absEps(x) abs(x)+Epsilon
|
|
@@ -131,20 +131,20 @@ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
|
|
|
131
131
|
vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
|
|
132
132
|
uint2float(rstate*2447445414u));}
|
|
133
133
|
#endif
|
|
134
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["helperFunctions",0,{name:t,shader:i}])},
|
|
134
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["helperFunctions",0,{name:t,shader:i}])},10874,e=>{"use strict";var o=e.i(25044);let t="logDepthDeclaration",i=`#ifdef LOGARITHMICDEPTH
|
|
135
135
|
uniform float logarithmicDepthConstant;varying float vFragmentDepth;
|
|
136
136
|
#endif
|
|
137
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["logDepthDeclaration",0,{name:t,shader:i}])},
|
|
137
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["logDepthDeclaration",0,{name:t,shader:i}])},49185,e=>{"use strict";var o=e.i(25044);let t="mainUVVaryingDeclaration",i=`#ifdef MAINUV{X}
|
|
138
138
|
varying vec2 vMainUV{X};
|
|
139
139
|
#endif
|
|
140
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["mainUVVaryingDeclaration",0,{name:t,shader:i}])},
|
|
140
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["mainUVVaryingDeclaration",0,{name:t,shader:i}])},4100,e=>{"use strict";var o=e.i(25044);let t="meshUboDeclaration",i=`#ifdef WEBGL2
|
|
141
141
|
uniform mat4 world;uniform float visibility;
|
|
142
142
|
#else
|
|
143
143
|
layout(std140,column_major) uniform;uniform Mesh
|
|
144
144
|
{mat4 world;float visibility;};
|
|
145
145
|
#endif
|
|
146
146
|
#define WORLD_UBO
|
|
147
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["meshUboDeclaration",0,{name:t,shader:i}])},
|
|
147
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["meshUboDeclaration",0,{name:t,shader:i}])},74221,e=>{"use strict";var o=e.i(25044);let t="openpbrSubsurfaceLayerData",i=`float subsurface_weight=vSubsurfaceWeight;vec3 subsurface_color=vSubsurfaceColor.rgb;float subsurface_radius=vSubsurfaceRadius;vec3 subsurface_radius_scale=vSubsurfaceRadiusScale;float subsurface_scatter_anisotropy=clamp(vSubsurfaceScatterAnisotropy,-0.9999,0.9999);
|
|
148
148
|
#ifdef SUBSURFACE_WEIGHT
|
|
149
149
|
vec4 subsurfaceWeightFromTexture=TEXRD(subsurfaceWeightSampler,vSubsurfaceWeightUV+uvOffset);
|
|
150
150
|
#endif
|
|
@@ -172,7 +172,7 @@ subsurface_color*=vSubsurfaceColorInfos.y;
|
|
|
172
172
|
#ifdef SUBSURFACE_RADIUS_SCALE
|
|
173
173
|
subsurface_radius_scale*=subsurfaceRadiusScaleFromTexture.rgb;
|
|
174
174
|
#endif
|
|
175
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["openpbrSubsurfaceLayerData",0,{name:t,shader:i}])},
|
|
175
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["openpbrSubsurfaceLayerData",0,{name:t,shader:i}])},86781,e=>{"use strict";var o=e.i(25044);let t="openpbrTransmissionLayerData",i=`float transmission_weight=vTransmissionWeight;vec3 transmission_color=vTransmissionColor.rgb;float transmission_depth=vTransmissionDepth;vec3 transmission_scatter=vTransmissionScatter.rgb;float transmission_scatter_anisotropy=clamp(vTransmissionScatterAnisotropy,-0.9999,0.9999);float transmission_dispersion_scale=vTransmissionDispersionScale;float transmission_dispersion_abbe_number=vTransmissionDispersionAbbeNumber;
|
|
176
176
|
#ifdef TRANSMISSION_WEIGHT
|
|
177
177
|
vec4 transmissionWeightFromTexture=TEXRD(transmissionWeightSampler,vTransmissionWeightUV+uvOffset);
|
|
178
178
|
#endif
|
|
@@ -208,12 +208,12 @@ transmission_scatter*=transmissionScatterFromTexture.rgb;
|
|
|
208
208
|
#ifdef TRANSMISSION_DISPERSION_SCALE
|
|
209
209
|
transmission_dispersion_scale*=transmissionDispersionScaleFromTexture.r;
|
|
210
210
|
#endif
|
|
211
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["openpbrTransmissionLayerData",0,{name:t,shader:i}])},
|
|
211
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["openpbrTransmissionLayerData",0,{name:t,shader:i}])},97757,e=>{"use strict";var o=e.i(25044);e.i(77074),e.i(4100);let t="openpbrUboDeclaration",i=`layout(std140,column_major) uniform;uniform Material {vec2 vTangentSpaceParams;vec4 vLightingIntensity;float pointSize;vec2 vDebugMode;vec2 renderTargetSize;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;mat4 backgroundRefractionMatrix;vec3 vBackgroundRefractionInfos;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;float vBaseWeight;vec4 vBaseColor;float vBaseDiffuseRoughness;vec4 vReflectanceInfo;vec4 vSpecularColor;vec3 vSpecularAnisotropy;float vTransmissionWeight;vec3 vTransmissionColor;float vTransmissionDepth;vec3 vTransmissionScatter;float vTransmissionScatterAnisotropy;float vTransmissionDispersionScale;float vTransmissionDispersionAbbeNumber;float vSubsurfaceWeight;vec3 vSubsurfaceColor;float vSubsurfaceRadius;vec3 vSubsurfaceRadiusScale;float vSubsurfaceScatterAnisotropy;float vCoatWeight;vec3 vCoatColor;float vCoatRoughness;float vCoatRoughnessAnisotropy;float vCoatIor;float vCoatDarkening;float vFuzzWeight;vec3 vFuzzColor;float vFuzzRoughness;float vGeometryThinWalled;vec2 vGeometryCoatTangent;float vGeometryThickness;vec3 vEmissionColor;float vThinFilmWeight;vec2 vThinFilmThickness;float vThinFilmIor;vec2 vBaseWeightInfos;mat4 baseWeightMatrix;vec2 vBaseColorInfos;mat4 baseColorMatrix;vec2 vBaseDiffuseRoughnessInfos;mat4 baseDiffuseRoughnessMatrix;vec2 vBaseMetalnessInfos;mat4 baseMetalnessMatrix;vec2 vSpecularWeightInfos;mat4 specularWeightMatrix;vec2 vSpecularColorInfos;mat4 specularColorMatrix;vec2 vSpecularRoughnessInfos;mat4 specularRoughnessMatrix;vec2 vSpecularRoughnessAnisotropyInfos;mat4 specularRoughnessAnisotropyMatrix;vec2 vTransmissionWeightInfos;mat4 transmissionWeightMatrix;vec2 vTransmissionColorInfos;mat4 transmissionColorMatrix;vec2 vTransmissionDepthInfos;mat4 transmissionDepthMatrix;vec2 vTransmissionScatterInfos;mat4 transmissionScatterMatrix;vec2 vTransmissionDispersionScaleInfos;mat4 transmissionDispersionScaleMatrix;vec2 vSubsurfaceWeightInfos;mat4 subsurfaceWeightMatrix;vec2 vSubsurfaceColorInfos;mat4 subsurfaceColorMatrix;vec2 vSubsurfaceRadiusScaleInfos;mat4 subsurfaceRadiusScaleMatrix;vec2 vCoatWeightInfos;mat4 coatWeightMatrix;vec2 vCoatColorInfos;mat4 coatColorMatrix;vec2 vCoatRoughnessInfos;mat4 coatRoughnessMatrix;vec2 vCoatRoughnessAnisotropyInfos;mat4 coatRoughnessAnisotropyMatrix;vec2 vCoatDarkeningInfos;mat4 coatDarkeningMatrix;vec2 vFuzzWeightInfos;mat4 fuzzWeightMatrix;vec2 vFuzzColorInfos;mat4 fuzzColorMatrix;vec2 vFuzzRoughnessInfos;mat4 fuzzRoughnessMatrix;vec2 vGeometryNormalInfos;mat4 geometryNormalMatrix;vec2 vGeometryTangentInfos;mat4 geometryTangentMatrix;vec2 vGeometryCoatNormalInfos;mat4 geometryCoatNormalMatrix;vec2 vGeometryCoatTangentInfos;mat4 geometryCoatTangentMatrix;vec2 vGeometryOpacityInfos;mat4 geometryOpacityMatrix;vec2 vGeometryThicknessInfos;mat4 geometryThicknessMatrix;vec2 vEmissionColorInfos;mat4 emissionColorMatrix;vec2 vThinFilmWeightInfos;mat4 thinFilmWeightMatrix;vec2 vThinFilmThicknessInfos;mat4 thinFilmThicknessMatrix;vec2 vAmbientOcclusionInfos;mat4 ambientOcclusionMatrix;
|
|
212
212
|
#define ADDITIONAL_UBO_DECLARATION
|
|
213
213
|
};
|
|
214
214
|
#include<sceneUboDeclaration>
|
|
215
215
|
#include<meshUboDeclaration>
|
|
216
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["openpbrUboDeclaration",0,{name:t,shader:i}])},
|
|
216
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["openpbrUboDeclaration",0,{name:t,shader:i}])},16300,e=>{"use strict";var o=e.i(25044);let t="pbrBRDFFunctions",i=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
|
|
217
217
|
#define BRDF_DIFFUSE_MODEL_EON 0
|
|
218
218
|
#define BRDF_DIFFUSE_MODEL_BURLEY 1
|
|
219
219
|
#define BRDF_DIFFUSE_MODEL_LAMBERT 2
|
|
@@ -386,7 +386,7 @@ vec3 transmittanceBRDF_Burley(const vec3 tintColor,const vec3 diffusionDistance,
|
|
|
386
386
|
float computeWrappedDiffuseNdotL(float NdotL,float w) {float t=1.0+w;float invt2=1.0/square(t);return saturate((NdotL+w)*invt2);}
|
|
387
387
|
#endif
|
|
388
388
|
#endif
|
|
389
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["pbrBRDFFunctions",0,{name:t,shader:i}])},
|
|
389
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["pbrBRDFFunctions",0,{name:t,shader:i}])},63807,25176,72317,7750,44239,34464,32181,50154,8734,46456,37897,e=>{"use strict";var o=e.i(25044);e.i(49185);let t="pbrFragmentExtraDeclaration",i=`varying vec3 vPositionW;
|
|
390
390
|
#if DEBUGMODE>0
|
|
391
391
|
varying vec4 vClipSpacePosition;
|
|
392
392
|
#endif
|
|
@@ -403,15 +403,15 @@ varying vec4 vColor;
|
|
|
403
403
|
#if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
|
|
404
404
|
varying float vViewDepth;
|
|
405
405
|
#endif
|
|
406
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["pbrFragmentExtraDeclaration",0,{name:t,shader:i}],
|
|
407
|
-
{return diffusionProfile<1.;}`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["subSurfaceScatteringFunctions",0,{name:r,shader:a}],
|
|
406
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["pbrFragmentExtraDeclaration",0,{name:t,shader:i}],63807);let r="subSurfaceScatteringFunctions",a=`bool testLightingForSSS(float diffusionProfile)
|
|
407
|
+
{return diffusionProfile<1.;}`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["subSurfaceScatteringFunctions",0,{name:r,shader:a}],25176);let n="importanceSampling",l=`vec3 hemisphereCosSample(vec2 u) {float phi=2.*PI*u.x;float cosTheta2=1.-u.y;float cosTheta=sqrt(cosTheta2);float sinTheta=sqrt(1.-cosTheta2);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
|
|
408
408
|
vec3 hemisphereImportanceSampleDggx(vec2 u,float a) {float phi=2.*PI*u.x;float cosTheta2=(1.-u.y)/(1.+(a+1.)*((a-1.)*u.y));float cosTheta=sqrt(cosTheta2);float sinTheta=sqrt(1.-cosTheta2);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
|
|
409
409
|
vec3 hemisphereImportanceSampleDggxAnisotropic(vec2 Xi,float alphaTangent,float alphaBitangent)
|
|
410
410
|
{alphaTangent=max(alphaTangent,0.0001);alphaBitangent=max(alphaBitangent,0.0001);float phi=atan(alphaBitangent/alphaTangent*tan(2.0*3.14159265*Xi.x));if (Xi.x>0.5) phi+=3.14159265;
|
|
411
411
|
float cosPhi=cos(phi);float sinPhi=sin(phi);float alpha2=(cosPhi*cosPhi)/(alphaTangent*alphaTangent) +
|
|
412
412
|
(sinPhi*sinPhi)/(alphaBitangent*alphaBitangent);float tanTheta2=Xi.y/(1.0-Xi.y)/alpha2;float cosTheta=1.0/sqrt(1.0+tanTheta2);float sinTheta=sqrt(max(0.0,1.0-cosTheta*cosTheta));return vec3(sinTheta*cosPhi,sinTheta*sinPhi,cosTheta);}
|
|
413
413
|
vec3 hemisphereImportanceSampleDCharlie(vec2 u,float a) {
|
|
414
|
-
float phi=2.*PI*u.x;float sinTheta=pow(u.y,a/(2.*a+1.));float cosTheta=sqrt(1.-sinTheta*sinTheta);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}`;o.ShaderStore.IncludesShadersStore[n]||(o.ShaderStore.IncludesShadersStore[n]=l),e.s(["importanceSampling",0,{name:n,shader:l}],
|
|
414
|
+
float phi=2.*PI*u.x;float sinTheta=pow(u.y,a/(2.*a+1.));float cosTheta=sqrt(1.-sinTheta*sinTheta);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}`;o.ShaderStore.IncludesShadersStore[n]||(o.ShaderStore.IncludesShadersStore[n]=l),e.s(["importanceSampling",0,{name:n,shader:l}],72317);let c="pbrHelperFunctions",f=`#define MINIMUMVARIANCE 0.0005
|
|
415
415
|
#ifndef TEXRD_DEFINED
|
|
416
416
|
#define TEXRD(s,uv) texture2D(s,uv)
|
|
417
417
|
#define TEXRD_DEFINED
|
|
@@ -450,7 +450,7 @@ clearCoatIntensity);return clearCoatAbsorption;}
|
|
|
450
450
|
float computeDefaultMicroSurface(float microSurface,vec3 reflectivityColor)
|
|
451
451
|
{const float kReflectivityNoAlphaWorkflow_SmoothnessMax=0.95;float reflectivityLuminance=getLuminance(reflectivityColor);float reflectivityLuma=sqrt(reflectivityLuminance);microSurface=reflectivityLuma*kReflectivityNoAlphaWorkflow_SmoothnessMax;return microSurface;}
|
|
452
452
|
#endif
|
|
453
|
-
`;o.ShaderStore.IncludesShadersStore[c]||(o.ShaderStore.IncludesShadersStore[c]=f),e.s(["pbrHelperFunctions",0,{name:c,shader:f}],
|
|
453
|
+
`;o.ShaderStore.IncludesShadersStore[c]||(o.ShaderStore.IncludesShadersStore[c]=f),e.s(["pbrHelperFunctions",0,{name:c,shader:f}],7750),e.i(31444);let s="pbrDirectLightingSetupFunctions",d=`struct preLightingInfo
|
|
454
454
|
{vec3 lightOffset;float lightDistanceSquared;float lightDistance;float attenuation;vec3 L;vec3 H;float NdotV;float NdotLUnclamped;float NdotL;float VdotH;float LdotV;float roughness;float diffuseRoughness;vec3 surfaceAlbedo;
|
|
455
455
|
#ifdef IRIDESCENCE
|
|
456
456
|
float iridescenceIntensity;
|
|
@@ -483,7 +483,7 @@ result.areaLightFresnel=data.Fresnel;result.areaLightSpecular=data.Specular;
|
|
|
483
483
|
#endif
|
|
484
484
|
result.areaLightDiffuse=data.Diffuse;result.LdotV=0.;result.roughness=0.;result.diffuseRoughness=0.;result.surfaceAlbedo=vec3(0.);return result;}
|
|
485
485
|
#endif
|
|
486
|
-
`;o.ShaderStore.IncludesShadersStore[s]||(o.ShaderStore.IncludesShadersStore[s]=d),e.s(["pbrDirectLightingSetupFunctions",0,{name:s,shader:d}],
|
|
486
|
+
`;o.ShaderStore.IncludesShadersStore[s]||(o.ShaderStore.IncludesShadersStore[s]=d),e.s(["pbrDirectLightingSetupFunctions",0,{name:s,shader:d}],44239);let u="pbrDirectLightingFalloffFunctions",v=`float computeDistanceLightFalloff_Standard(vec3 lightOffset,float range)
|
|
487
487
|
{return max(0.,1.0-length(lightOffset)/range);}
|
|
488
488
|
float computeDistanceLightFalloff_Physical(float lightDistanceSquared)
|
|
489
489
|
{return 1.0/maxEps(lightDistanceSquared);}
|
|
@@ -519,7 +519,7 @@ return computeDirectionalLightFalloff_GLTF(lightDirection,directionToLightCenter
|
|
|
519
519
|
#else
|
|
520
520
|
return computeDirectionalLightFalloff_Standard(lightDirection,directionToLightCenterW,cosHalfAngle,exponent);
|
|
521
521
|
#endif
|
|
522
|
-
}`;o.ShaderStore.IncludesShadersStore[u]||(o.ShaderStore.IncludesShadersStore[u]=v),e.s(["pbrDirectLightingFalloffFunctions",0,{name:u,shader:v}],
|
|
522
|
+
}`;o.ShaderStore.IncludesShadersStore[u]||(o.ShaderStore.IncludesShadersStore[u]=v),e.s(["pbrDirectLightingFalloffFunctions",0,{name:u,shader:v}],34464);let m="hdrFilteringFunctions",g=`#if NUM_SAMPLES
|
|
523
523
|
#if NUM_SAMPLES>0
|
|
524
524
|
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
525
525
|
float radicalInverse_VdC(uint bits)
|
|
@@ -664,7 +664,7 @@ result=result/weight;return result;}
|
|
|
664
664
|
#endif
|
|
665
665
|
#endif
|
|
666
666
|
#endif
|
|
667
|
-
`;o.ShaderStore.IncludesShadersStore[m]||(o.ShaderStore.IncludesShadersStore[m]=g),e.s(["hdrFilteringFunctions",0,{name:m,shader:g}],
|
|
667
|
+
`;o.ShaderStore.IncludesShadersStore[m]||(o.ShaderStore.IncludesShadersStore[m]=g),e.s(["hdrFilteringFunctions",0,{name:m,shader:g}],32181);let E="pbrDirectLightingFunctions",p=`#define CLEARCOATREFLECTANCE90 1.0
|
|
668
668
|
struct lightingInfo
|
|
669
669
|
{vec3 diffuse;
|
|
670
670
|
#ifdef SS_TRANSLUCENCY
|
|
@@ -770,7 +770,7 @@ float visibility=visibility_CharlieSheen(info.NdotL,info.NdotV,alphaG);
|
|
|
770
770
|
float visibility=visibility_Ashikhmin(info.NdotL,info.NdotV);/* #endif */
|
|
771
771
|
float sheenTerm=fresnel*distribution*visibility;return sheenTerm*info.attenuation*info.NdotL*lightColor;}
|
|
772
772
|
#endif
|
|
773
|
-
`;o.ShaderStore.IncludesShadersStore[E]||(o.ShaderStore.IncludesShadersStore[E]=p),e.s(["pbrDirectLightingFunctions",0,{name:E,shader:p}],
|
|
773
|
+
`;o.ShaderStore.IncludesShadersStore[E]||(o.ShaderStore.IncludesShadersStore[E]=p),e.s(["pbrDirectLightingFunctions",0,{name:E,shader:p}],50154);let h="pbrBlockNormalGeometric",S=`vec3 viewDirectionW=normalize(vEyePosition.xyz-vPositionW);
|
|
774
774
|
#ifdef NORMAL
|
|
775
775
|
vec3 normalW=normalize(vNormalW);
|
|
776
776
|
#else
|
|
@@ -780,7 +780,7 @@ vec3 geometricNormalW=normalW;
|
|
|
780
780
|
#if defined(TWOSIDEDLIGHTING) && defined(NORMAL)
|
|
781
781
|
geometricNormalW=gl_FrontFacing ? geometricNormalW : -geometricNormalW;
|
|
782
782
|
#endif
|
|
783
|
-
`;o.ShaderStore.IncludesShadersStore[h]||(o.ShaderStore.IncludesShadersStore[h]=S),e.s(["pbrBlockNormalGeometric",0,{name:h,shader:S}],
|
|
783
|
+
`;o.ShaderStore.IncludesShadersStore[h]||(o.ShaderStore.IncludesShadersStore[h]=S),e.s(["pbrBlockNormalGeometric",0,{name:h,shader:S}],8734);let R="pbrBlockImageProcessing",I=`#if defined(IMAGEPROCESSINGPOSTPROCESS) || defined(SS_SCATTERING)
|
|
784
784
|
#if !defined(SKIPFINALCOLORCLAMP)
|
|
785
785
|
finalColor.rgb=clamp(finalColor.rgb,0.,30.0);
|
|
786
786
|
#endif
|
|
@@ -791,7 +791,7 @@ finalColor.a*=visibility;
|
|
|
791
791
|
#ifdef PREMULTIPLYALPHA
|
|
792
792
|
finalColor.rgb*=finalColor.a;
|
|
793
793
|
#endif
|
|
794
|
-
`;o.ShaderStore.IncludesShadersStore[R]||(o.ShaderStore.IncludesShadersStore[R]=I),e.s(["pbrBlockImageProcessing",0,{name:R,shader:I}],
|
|
794
|
+
`;o.ShaderStore.IncludesShadersStore[R]||(o.ShaderStore.IncludesShadersStore[R]=I),e.s(["pbrBlockImageProcessing",0,{name:R,shader:I}],46456);let L="pbrDebug",N=`#if DEBUGMODE>0
|
|
795
795
|
if (vClipSpacePosition.x/vClipSpacePosition.w>=vDebugMode.x) {
|
|
796
796
|
#if DEBUGMODE==1
|
|
797
797
|
gl_FragColor.rgb=vPositionW.rgb;
|
|
@@ -975,7 +975,7 @@ return;
|
|
|
975
975
|
#endif
|
|
976
976
|
}
|
|
977
977
|
#endif
|
|
978
|
-
`;o.ShaderStore.IncludesShadersStore[L]||(o.ShaderStore.IncludesShadersStore[L]=N),e.s(["pbrDebug",0,{name:L,shader:N}],
|
|
978
|
+
`;o.ShaderStore.IncludesShadersStore[L]||(o.ShaderStore.IncludesShadersStore[L]=N),e.s(["pbrDebug",0,{name:L,shader:N}],37897)},20675,18054,e=>{"use strict";var o=e.i(25044);let t="pbrFragmentReflectionDeclaration",i=`#ifdef REFLECTION
|
|
979
979
|
#ifdef REFLECTIONMAP_3D
|
|
980
980
|
#define sampleReflection(s,c) textureCube(s,c)
|
|
981
981
|
uniform samplerCube reflectionSampler;
|
|
@@ -1007,7 +1007,7 @@ varying vec3 vDirectionW;
|
|
|
1007
1007
|
#endif
|
|
1008
1008
|
#endif
|
|
1009
1009
|
#endif
|
|
1010
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["pbrFragmentReflectionDeclaration",0,{name:t,shader:i}],
|
|
1010
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["pbrFragmentReflectionDeclaration",0,{name:t,shader:i}],20675);let r="pbrIBLFunctions",a=`#if defined(REFLECTION) || defined(SS_REFRACTION)
|
|
1011
1011
|
float getLodFromAlphaG(float cubeMapDimensionPixels,float microsurfaceAverageSlope) {float microsurfaceAverageSlopeTexels=cubeMapDimensionPixels*microsurfaceAverageSlope;float lod=log2(microsurfaceAverageSlopeTexels);return lod;}
|
|
1012
1012
|
float getLinearLodFromRoughness(float cubeMapDimensionPixels,float roughness) {float lod=log2(cubeMapDimensionPixels)*roughness;return lod;}
|
|
1013
1013
|
#endif
|
|
@@ -1021,7 +1021,7 @@ float environmentHorizonOcclusion(vec3 view,vec3 normal,vec3 geometricNormal) {v
|
|
|
1021
1021
|
#define UNPACK_LOD(x) (1.0-x)*255.0
|
|
1022
1022
|
float getLodFromAlphaG(float cubeMapDimensionPixels,float alphaG,float NdotV) {float microsurfaceAverageSlope=alphaG;microsurfaceAverageSlope*=sqrt(abs(NdotV));return getLodFromAlphaG(cubeMapDimensionPixels,microsurfaceAverageSlope);}
|
|
1023
1023
|
#endif
|
|
1024
|
-
`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["pbrIBLFunctions",0,{name:r,shader:a}],
|
|
1024
|
+
`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["pbrIBLFunctions",0,{name:r,shader:a}],18054)},95804,12075,e=>{"use strict";var o=e.i(25044);let t="samplerFragmentDeclaration",i=`#ifdef _DEFINENAME_
|
|
1025
1025
|
#if _DEFINENAME_DIRECTUV==1
|
|
1026
1026
|
#define v_VARYINGNAME_UV vMainUV1
|
|
1027
1027
|
#elif _DEFINENAME_DIRECTUV==2
|
|
@@ -1039,7 +1039,7 @@ varying vec2 v_VARYINGNAME_UV;
|
|
|
1039
1039
|
#endif
|
|
1040
1040
|
uniform sampler2D _SAMPLERNAME_Sampler;
|
|
1041
1041
|
#endif
|
|
1042
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["samplerFragmentDeclaration",0,{name:t,shader:i}],
|
|
1042
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["samplerFragmentDeclaration",0,{name:t,shader:i}],95804);let r="reflectionFunction",a=`vec3 computeFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
|
|
1043
1043
|
{float lon=atan(direction.z,direction.x);float lat=acos(direction.y);vec2 sphereCoords=vec2(lon,lat)*RECIPROCAL_PI2*2.0;float s=sphereCoords.x*0.5+0.5;float t=sphereCoords.y;return vec3(s,t,0); }
|
|
1044
1044
|
vec3 computeMirroredFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
|
|
1045
1045
|
{float lon=atan(direction.z,direction.x);float lat=acos(direction.y);vec2 sphereCoords=vec2(lon,lat)*RECIPROCAL_PI2*2.0;float s=sphereCoords.x*0.5+0.5;float t=sphereCoords.y;return vec3(1.0-s,t,0); }
|
|
@@ -1101,12 +1101,12 @@ return vec3(0,0,0);
|
|
|
1101
1101
|
#endif
|
|
1102
1102
|
}
|
|
1103
1103
|
#endif
|
|
1104
|
-
`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["reflectionFunction",0,{name:r,shader:a}],
|
|
1104
|
+
`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["reflectionFunction",0,{name:r,shader:a}],12075)},14230,28818,49914,73772,e=>{"use strict";var o=e.i(25044);let t="sceneFragmentDeclaration",i=`uniform mat4 viewProjection;
|
|
1105
1105
|
#ifdef MULTIVIEW
|
|
1106
1106
|
uniform mat4 viewProjectionR;
|
|
1107
1107
|
#endif
|
|
1108
1108
|
uniform mat4 view;uniform mat4 projection;uniform vec4 vEyePosition;uniform mat4 inverseProjection;
|
|
1109
|
-
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["sceneFragmentDeclaration",0,{name:t,shader:i}],
|
|
1109
|
+
`;o.ShaderStore.IncludesShadersStore[t]||(o.ShaderStore.IncludesShadersStore[t]=i),e.s(["sceneFragmentDeclaration",0,{name:t,shader:i}],14230);let r="openpbrDielectricReflectance",a=`struct ReflectanceParams
|
|
1110
1110
|
{float F0;float F90;vec3 coloredF0;vec3 coloredF90;};
|
|
1111
1111
|
#define pbr_inline
|
|
1112
1112
|
ReflectanceParams dielectricReflectance(
|
|
@@ -1124,7 +1124,7 @@ float maxF0=max(specularColor.r,max(specularColor.g,specularColor.b));outParams.
|
|
|
1124
1124
|
outParams.F0=dielectricF0*specularWeight;
|
|
1125
1125
|
#endif
|
|
1126
1126
|
outParams.F90=f90Scale*specularWeight;outParams.coloredF0=vec3(dielectricF0*specularWeight)*specularColor.rgb;outParams.coloredF90=dielectricColorF90*vec3(specularWeight);return outParams;}
|
|
1127
|
-
`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["openpbrDielectricReflectance",0,{name:r,shader:a}],
|
|
1127
|
+
`;o.ShaderStore.IncludesShadersStore[r]||(o.ShaderStore.IncludesShadersStore[r]=a),e.s(["openpbrDielectricReflectance",0,{name:r,shader:a}],28818);let n="openpbrGeometryInfo",l=`struct geometryInfoOutParams
|
|
1128
1128
|
{float NdotV;float NdotVUnclamped;vec3 environmentBrdf;float horizonOcclusion;};struct geometryInfoAnisoOutParams
|
|
1129
1129
|
{float NdotV;float NdotVUnclamped;vec3 environmentBrdf;float horizonOcclusion;float anisotropy;vec3 anisotropicTangent;vec3 anisotropicBitangent;mat3 TBN;};
|
|
1130
1130
|
#define pbr_inline
|
|
@@ -1153,7 +1153,7 @@ geometryInfoAnisoOutParams geometryInfoAniso(
|
|
|
1153
1153
|
in vec3 normalW,in vec3 viewDirectionW,in float roughness,in vec3 geometricNormalW
|
|
1154
1154
|
,in vec3 vAnisotropy,in mat3 TBN
|
|
1155
1155
|
)
|
|
1156
|
-
{geometryInfoOutParams geoInfo=geometryInfo(normalW,viewDirectionW,roughness,geometricNormalW);geometryInfoAnisoOutParams outParams;outParams.NdotV=geoInfo.NdotV;outParams.NdotVUnclamped=geoInfo.NdotVUnclamped;outParams.environmentBrdf=geoInfo.environmentBrdf;outParams.horizonOcclusion=geoInfo.horizonOcclusion;outParams.anisotropy=vAnisotropy.b;vec3 anisotropyDirection=vec3(vAnisotropy.xy,0.);mat3 anisoTBN=mat3(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;}`;o.ShaderStore.IncludesShadersStore[n]||(o.ShaderStore.IncludesShadersStore[n]=l),e.s(["openpbrGeometryInfo",0,{name:n,shader:l}],
|
|
1156
|
+
{geometryInfoOutParams geoInfo=geometryInfo(normalW,viewDirectionW,roughness,geometricNormalW);geometryInfoAnisoOutParams outParams;outParams.NdotV=geoInfo.NdotV;outParams.NdotVUnclamped=geoInfo.NdotVUnclamped;outParams.environmentBrdf=geoInfo.environmentBrdf;outParams.horizonOcclusion=geoInfo.horizonOcclusion;outParams.anisotropy=vAnisotropy.b;vec3 anisotropyDirection=vec3(vAnisotropy.xy,0.);mat3 anisoTBN=mat3(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;}`;o.ShaderStore.IncludesShadersStore[n]||(o.ShaderStore.IncludesShadersStore[n]=l),e.s(["openpbrGeometryInfo",0,{name:n,shader:l}],49914);let c="openpbrIblFunctions",f=`#ifdef REFLECTION
|
|
1157
1157
|
vec3 sampleIrradiance(
|
|
1158
1158
|
in vec3 surfaceNormal
|
|
1159
1159
|
#if defined(NORMAL) && defined(USESPHERICALINVERTEX)
|
|
@@ -1370,7 +1370,7 @@ return getReflectanceFromBRDFLookup(reflectance.coloredF0,reflectance.coloredF90
|
|
|
1370
1370
|
#endif
|
|
1371
1371
|
}
|
|
1372
1372
|
#endif
|
|
1373
|
-
`;o.ShaderStore.IncludesShadersStore[c]||(o.ShaderStore.IncludesShadersStore[c]=f),e.s(["openpbrIblFunctions",0,{name:c,shader:f}],
|
|
1373
|
+
`;o.ShaderStore.IncludesShadersStore[c]||(o.ShaderStore.IncludesShadersStore[c]=f),e.s(["openpbrIblFunctions",0,{name:c,shader:f}],73772)},77074,e=>{"use strict";var o=e.i(25044);let t="sceneUboDeclaration",i=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
|
|
1374
1374
|
#ifdef MULTIVIEW
|
|
1375
1375
|
mat4 viewProjectionR;
|
|
1376
1376
|
#endif
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87851,t=>{"use strict";t.s(["IntersectionInfo",0,class{constructor(t,e,n){this.bu=t,this.bv=e,this.distance=n,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},68987,t=>{"use strict";var e=t.i(56173),n=t.i(10977);t.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(t=!1,r=!0){let s;if(!this.pickedMesh||r&&!this.pickedMesh.isVerticesDataPresent(n.VertexBuffer.NormalKind))return null;let a=this.pickedMesh.getIndices();a?.length===0&&(a=null);let i=e.TmpVectors.Vector3[0],o=e.TmpVectors.Vector3[1],h=e.TmpVectors.Vector3[2];if(r){let t=this.pickedMesh.getVerticesData(n.VertexBuffer.NormalKind),r=a?e.Vector3.FromArrayToRef(t,3*a[3*this.faceId],i):i.copyFromFloats(t[3*this.faceId*3],t[3*this.faceId*3+1],t[3*this.faceId*3+2]),c=a?e.Vector3.FromArrayToRef(t,3*a[3*this.faceId+1],o):o.copyFromFloats(t[(3*this.faceId+1)*3],t[(3*this.faceId+1)*3+1],t[(3*this.faceId+1)*3+2]),f=a?e.Vector3.FromArrayToRef(t,3*a[3*this.faceId+2],h):h.copyFromFloats(t[(3*this.faceId+2)*3],t[(3*this.faceId+2)*3+1],t[(3*this.faceId+2)*3+2]);r=r.scale(this.bu),c=c.scale(this.bv),f=f.scale(1-this.bu-this.bv),s=new e.Vector3(r.x+c.x+f.x,r.y+c.y+f.y,r.z+c.z+f.z)}else{let t=this.pickedMesh.getVerticesData(n.VertexBuffer.PositionKind),r=a?e.Vector3.FromArrayToRef(t,3*a[3*this.faceId],i):i.copyFromFloats(t[3*this.faceId*3],t[3*this.faceId*3+1],t[3*this.faceId*3+2]),c=a?e.Vector3.FromArrayToRef(t,3*a[3*this.faceId+1],o):o.copyFromFloats(t[(3*this.faceId+1)*3],t[(3*this.faceId+1)*3+1],t[(3*this.faceId+1)*3+2]),f=a?e.Vector3.FromArrayToRef(t,3*a[3*this.faceId+2],h):h.copyFromFloats(t[(3*this.faceId+2)*3],t[(3*this.faceId+2)*3+1],t[(3*this.faceId+2)*3+2]),u=r.subtract(c),l=f.subtract(c);s=e.Vector3.Cross(u,l)}let c=(t,n)=>{if(-1!==this.thinInstanceIndex){let r=t._thinInstanceDataStorage.matrixData,s=this.thinInstanceIndex<<4;if(r&&r.length>s){let t=e.TmpVectors.Matrix[0];e.Matrix.FromArrayToRef(r,s,t),e.Vector3.TransformNormalToRef(n,t,n)}}let r=t.getWorldMatrix();t.nonUniformScaling&&(e.TmpVectors.Matrix[0].copyFrom(r),(r=e.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),r.invert(),r.transposeToRef(e.TmpVectors.Matrix[1]),r=e.TmpVectors.Matrix[1]),e.Vector3.TransformNormalToRef(n,r,n)};if(t&&c(this.pickedMesh,s),this.ray){let n=e.TmpVectors.Vector3[0].copyFrom(s);t||c(this.pickedMesh,n),e.Vector3.Dot(n,this.ray.direction)>0&&s.negateInPlace()}return s.normalize(),s}getTextureCoordinates(t=n.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(t))return null;let r=this.pickedMesh.getIndices();if(!r)return null;let s=this.pickedMesh.getVerticesData(t);if(!s)return null;let a=e.Vector2.FromArray(s,2*r[3*this.faceId]),i=e.Vector2.FromArray(s,2*r[3*this.faceId+1]),o=e.Vector2.FromArray(s,2*r[3*this.faceId+2]);return a=a.scale(this.bu),i=i.scale(this.bv),o=o.scale(1-this.bu-this.bv),new e.Vector2(a.x+i.x+o.x,a.y+i.y+o.y)}}])},40672,t=>{"use strict";t.s(["useOpenGLOrientationForUV",()=>!1])},75751,t=>{"use strict";class e{static get ForceFullSceneLoadingForIncremental(){return e._ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(t){e._ForceFullSceneLoadingForIncremental=t}static get ShowLoadingScreen(){return e._ShowLoadingScreen}static set ShowLoadingScreen(t){e._ShowLoadingScreen=t}static get loggingLevel(){return e._LoggingLevel}static set loggingLevel(t){e._LoggingLevel=t}static get CleanBoneMatrixWeights(){return e._CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(t){e._CleanBoneMatrixWeights=t}}e._ForceFullSceneLoadingForIncremental=!1,e._ShowLoadingScreen=!0,e._CleanBoneMatrixWeights=!1,e._LoggingLevel=0,t.s(["SceneLoaderFlags",0,e])},61133,t=>{"use strict";var e=t.i(89435);t.s(["DrawWrapper",0,class{static GetEffect(t){return void 0===t.getPipelineContext?t.effect:t}constructor(t,e=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=t.createDrawContext(),e&&(this.materialContext=t.createMaterialContext())}setEffect(t,e,n=!0){this.effect=t,void 0!==e&&(this.defines=e),n&&this.drawContext?.reset()}dispose(t=!1){if(this.effect){let n=this.effect;t?n.dispose():e.TimingTools.SetImmediate(()=>{n.getEngine().onEndFrameObservable.addOnce(()=>{n.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},93663,t=>{"use strict";var e,n,r,s,a=t.i(56173);(e=r||(r={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class i{}i.X=new a.Vector3(1,0,0),i.Y=new a.Vector3(0,1,0),i.Z=new a.Vector3(0,0,1),(n=s||(s={}))[n.X=0]="X",n[n.Y=1]="Y",n[n.Z=2]="Z",t.s(["Axis",0,i,"Coordinate",0,s,"Space",0,r])},38788,t=>{"use strict";var e=t.i(38450);class n{static GetPlanes(t){let r=[];for(let t=0;t<6;t++)r.push(new e.Plane(0,0,0,0));return n.GetPlanesToRef(t,r),r}static GetNearPlaneToRef(t,e){let n=t.m;e.normal.x=n[3]+n[2],e.normal.y=n[7]+n[6],e.normal.z=n[11]+n[10],e.d=n[15]+n[14],e.normalize()}static GetFarPlaneToRef(t,e){let n=t.m;e.normal.x=n[3]-n[2],e.normal.y=n[7]-n[6],e.normal.z=n[11]-n[10],e.d=n[15]-n[14],e.normalize()}static GetLeftPlaneToRef(t,e){let n=t.m;e.normal.x=n[3]+n[0],e.normal.y=n[7]+n[4],e.normal.z=n[11]+n[8],e.d=n[15]+n[12],e.normalize()}static GetRightPlaneToRef(t,e){let n=t.m;e.normal.x=n[3]-n[0],e.normal.y=n[7]-n[4],e.normal.z=n[11]-n[8],e.d=n[15]-n[12],e.normalize()}static GetTopPlaneToRef(t,e){let n=t.m;e.normal.x=n[3]-n[1],e.normal.y=n[7]-n[5],e.normal.z=n[11]-n[9],e.d=n[15]-n[13],e.normalize()}static GetBottomPlaneToRef(t,e){let n=t.m;e.normal.x=n[3]+n[1],e.normal.y=n[7]+n[5],e.normal.z=n[11]+n[9],e.d=n[15]+n[13],e.normalize()}static GetPlanesToRef(t,e){n.GetNearPlaneToRef(t,e[0]),n.GetFarPlaneToRef(t,e[1]),n.GetLeftPlaneToRef(t,e[2]),n.GetRightPlaneToRef(t,e[3]),n.GetTopPlaneToRef(t,e[4]),n.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let n=0;n<6;n++)if(0>e[n].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,n])},44938,t=>{"use strict";t.s(["Viewport",0,class t{constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}toGlobal(e,n){return new t(this.x*e,this.y*n,this.width*e,this.height*n)}toGlobalToRef(t,e,n){return n.x=this.x*t,n.y=this.y*e,n.width=this.width*t,n.height=this.height*e,this}clone(){return new t(this.x,this.y,this.width,this.height)}}])},12841,t=>{t.v(e=>Promise.all(["static/chunks/3h_05w5j8x538.js"].map(e=>t.l(e))).then(()=>e(92048)))},89282,t=>{"use strict";t.i(17397),t.i(23989);var e=t.i(52998);t.s(["RegisterThinInstanceMesh",()=>e.RegisterThinInstanceMesh])},17397,23989,52998,t=>{"use strict";t.s([],23989);var e=t.i(56173),n=t.i(8697),r=t.i(72716),s=t.i(10332),a=t.i(10977);let i="bakedVertexAnimationSettingsInstanced";function o(t){let e=t.bakedVertexAnimationManager?.texture?.getInternalTexture()?._bufferView;return e instanceof Float32Array||e instanceof Uint16Array}let h=!1;function c(){h||(h=!0,s.Mesh.prototype.thinInstanceAdd=function(t,e=!0){if(!this.getScene().getEngine().getCaps().instancedArrays)return n.Logger.Error("Thin Instances are not supported on this device as Instanced Array extension not supported"),-1;this._thinInstanceUpdateBufferSize("matrix",Array.isArray(t)?t.length:1);let r=this._thinInstanceDataStorage.instancesCount;if(Array.isArray(t))for(let n=0;n<t.length;++n)this.thinInstanceSetMatrixAt(this._thinInstanceDataStorage.instancesCount++,t[n],n===t.length-1&&e);else this.thinInstanceSetMatrixAt(this._thinInstanceDataStorage.instancesCount++,t,e);return r},s.Mesh.prototype.thinInstanceAddSelf=function(t=!0){return this.thinInstanceAdd(e.Matrix.IdentityReadOnly,t)},s.Mesh.prototype.thinInstanceRegisterAttribute=function(t,e){t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind),this.removeVerticesData(t),this._thinInstanceInitializeUserStorage(),this._userThinInstanceBuffersStorage.strides[t]=e,this._userThinInstanceBuffersStorage.sizes[t]=e*Math.max(32,this._thinInstanceDataStorage.instancesCount),this._userThinInstanceBuffersStorage.data[t]=new Float32Array(this._userThinInstanceBuffersStorage.sizes[t]),this._userThinInstanceBuffersStorage.vertexBuffers[t]=new a.VertexBuffer(this.getEngine(),this._userThinInstanceBuffersStorage.data[t],t,!0,!1,e,!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[t])},s.Mesh.prototype.thinInstanceSetMatrixAt=function(t,e,n=!0){if(!this._thinInstanceDataStorage.matrixData||t>=this._thinInstanceDataStorage.instancesCount)return!1;let r=this._thinInstanceDataStorage.matrixData;return e.copyToArray(r,16*t),this._thinInstanceDataStorage.worldMatrices&&(this._thinInstanceDataStorage.worldMatrices[t]=e),n&&(this.thinInstanceBufferUpdated("matrix"),this.doNotSyncBoundingInfo||this.thinInstanceRefreshBoundingInfo(!1)),!0},s.Mesh.prototype.thinInstanceSetAttributeAt=function(t,e,n,r=!0){return t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind),!!this._userThinInstanceBuffersStorage&&!!this._userThinInstanceBuffersStorage.data[t]&&!(e>=this._thinInstanceDataStorage.instancesCount)&&(this._thinInstanceUpdateBufferSize(t,0),this._userThinInstanceBuffersStorage.data[t].set(n,e*this._userThinInstanceBuffersStorage.strides[t]),r&&this.thinInstanceBufferUpdated(t),!0)},Object.defineProperty(s.Mesh.prototype,"thinInstanceCount",{get:function(){return this._thinInstanceDataStorage.instancesCount},set:function(t){let e=this._thinInstanceDataStorage.matrixData??this.source?._thinInstanceDataStorage.matrixData;t<=(e?e.length/16:0)&&(this._thinInstanceDataStorage.instancesCount=t)},enumerable:!0,configurable:!0}),s.Mesh.prototype._thinInstanceCreateMatrixBuffer=function(t,e,n=!0){let r=new a.Buffer(this.getEngine(),e,!n,16,!1,!0);for(let e=0;e<4;e++)this.setVerticesBuffer(r.createVertexBuffer(t+e,4*e,4));return r},s.Mesh.prototype.thinInstanceSetBuffer=function(t,e,n=0,r=!0){if(n=n||16,"matrix"===t)this._thinInstanceDataStorage.matrixBuffer?.dispose(),this._thinInstanceDataStorage.matrixBuffer=null,this._thinInstanceDataStorage.matrixBufferSize=e?e.length:32*n,this._thinInstanceDataStorage.matrixData=e,this._thinInstanceDataStorage.worldMatrices=null,null!==e?(this._thinInstanceDataStorage.instancesCount=e.length/n,this._thinInstanceDataStorage.matrixBuffer=this._thinInstanceCreateMatrixBuffer("world",e,r),this.doNotSyncBoundingInfo||this.thinInstanceRefreshBoundingInfo(!1)):(this._thinInstanceDataStorage.instancesCount=0,this.doNotSyncBoundingInfo||this.refreshBoundingInfo());else if("previousMatrix"===t)this._thinInstanceDataStorage.previousMatrixBuffer?.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=null,this._thinInstanceDataStorage.previousMatrixData=e,null!==e&&(this._thinInstanceDataStorage.previousMatrixBuffer=this._thinInstanceCreateMatrixBuffer("previousWorld",e,r));else if("splatIndex"===t&&e){this._thinInstanceInitializeUserStorage(),this._thinInstanceDataStorage.instancesCount=e.length/n,this._userThinInstanceBuffersStorage.data[t]=e,this._userThinInstanceBuffersStorage.strides[t]=n,this._userThinInstanceBuffersStorage.sizes[t]=e.length;let r=new a.Buffer(this.getEngine(),e,!0,16,!1,!0);this._thinInstanceDataStorage.matrixBuffer=r;for(let e=0;e<4;e++)this.setVerticesBuffer(r.createVertexBuffer(t+e,4*e,4))}else t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind),null===e?this._userThinInstanceBuffersStorage?.data[t]&&(this.removeVerticesData(t),delete this._userThinInstanceBuffersStorage.data[t],delete this._userThinInstanceBuffersStorage.strides[t],delete this._userThinInstanceBuffersStorage.sizes[t],delete this._userThinInstanceBuffersStorage.vertexBuffers[t]):(this._thinInstanceInitializeUserStorage(),this._userThinInstanceBuffersStorage.data[t]=e,this._userThinInstanceBuffersStorage.strides[t]=n,this._userThinInstanceBuffersStorage.sizes[t]=e.length,this._userThinInstanceBuffersStorage.vertexBuffers[t]=new a.VertexBuffer(this.getEngine(),e,t,!r,!1,n,!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[t]))},s.Mesh.prototype.thinInstanceBufferUpdated=function(t){"matrix"===t?(this.thinInstanceAllowAutomaticStaticBufferRecreation&&this._thinInstanceDataStorage.matrixBuffer&&!this._thinInstanceDataStorage.matrixBuffer.isUpdatable()&&this._thinInstanceRecreateBuffer(t),this._thinInstanceDataStorage.matrixBuffer?.updateDirectly(this._thinInstanceDataStorage.matrixData,0,this._thinInstanceDataStorage.instancesCount)):"previousMatrix"===t?(this.thinInstanceAllowAutomaticStaticBufferRecreation&&this._thinInstanceDataStorage.previousMatrixBuffer&&!this._thinInstanceDataStorage.previousMatrixBuffer.isUpdatable()&&this._thinInstanceRecreateBuffer(t),this._thinInstanceDataStorage.previousMatrixBuffer?.updateDirectly(this._thinInstanceDataStorage.previousMatrixData,0,this._thinInstanceDataStorage.instancesCount)):"splatIndex"===t?this._thinInstanceDataStorage.matrixBuffer?.updateDirectly(this._userThinInstanceBuffersStorage.data[t],0,this._thinInstanceDataStorage.instancesCount):(t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind),this._userThinInstanceBuffersStorage?.vertexBuffers[t]&&(this.thinInstanceAllowAutomaticStaticBufferRecreation&&!this._userThinInstanceBuffersStorage.vertexBuffers[t].isUpdatable()&&this._thinInstanceRecreateBuffer(t),this._userThinInstanceBuffersStorage.vertexBuffers[t].updateDirectly(this._userThinInstanceBuffersStorage.data[t],0)))},s.Mesh.prototype.thinInstancePartialBufferUpdate=function(t,e,n){if("matrix"===t)this._thinInstanceDataStorage.matrixBuffer&&("number"==typeof e?this._thinInstanceDataStorage.matrixBuffer.updateDirectly(new Float32Array(this._thinInstanceDataStorage.matrixData.buffer,this._thinInstanceDataStorage.matrixData.byteOffset+16*n*Float32Array.BYTES_PER_ELEMENT,16*e),16*n):this._thinInstanceDataStorage.matrixBuffer.updateDirectly(e,n));else if(t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind),this._userThinInstanceBuffersStorage?.vertexBuffers[t]){let r=this._userThinInstanceBuffersStorage.vertexBuffers[t];if("number"==typeof e){let r=new Float32Array(this._userThinInstanceBuffersStorage.data[t].buffer,this._userThinInstanceBuffersStorage.data[t].byteOffset+n*this._userThinInstanceBuffersStorage.strides[t]*Float32Array.BYTES_PER_ELEMENT,e*this._userThinInstanceBuffersStorage.strides[t]);this._userThinInstanceBuffersStorage.vertexBuffers[t].updateDirectly(r,n*this._userThinInstanceBuffersStorage.strides[t])}else r.updateDirectly(e,n)}},s.Mesh.prototype.thinInstanceGetWorldMatrices=function(){if(!this._thinInstanceDataStorage.matrixData||!this._thinInstanceDataStorage.matrixBuffer)return[];let t=this._thinInstanceDataStorage.matrixData;if(!this._thinInstanceDataStorage.worldMatrices){this._thinInstanceDataStorage.worldMatrices=[];for(let n=0;n<this._thinInstanceDataStorage.instancesCount;++n)this._thinInstanceDataStorage.worldMatrices[n]=e.Matrix.FromArray(t,16*n)}return this._thinInstanceDataStorage.worldMatrices},s.Mesh.prototype.thinInstanceRefreshBoundingInfo=function(t=!1,n=!1,s=!1,h=!1){if(!this._thinInstanceDataStorage.matrixData||!this._thinInstanceDataStorage.matrixBuffer)return;let c=this._thinInstanceDataStorage.boundingVectors;if(t||!this.rawBoundingInfo){if(c.length=0,h&&function(t,n,s){let h=t._userThinInstanceBuffersStorage,c=h?.data[i],f=h?.strides[i];if(!c||!f||f<4||!o(t))return!1;let u=t._thinInstanceDataStorage.matrixData;if(!u)return!1;let l={},g=e.TmpVectors.Vector4[0],I=e.TmpVectors.Vector3[1],d=e.TmpVectors.Vector3[2],x=e.TmpVectors.Vector3[3],m=e.TmpVectors.Vector3[4],B=e.TmpVectors.Vector3[5],S=e.TmpVectors.Vector3[6],_=e.TmpVectors.Matrix[2],p=t.geometry?t.geometry.boundingBias:null,T=t.getTotalVertices();I.setAll(1/0),d.setAll(-1/0),x.setAll(1/0),m.setAll(-1/0);for(let n=0;n<t._thinInstanceDataStorage.instancesCount;++n){let r=n*f;g.set(c[r],c[r+1],c[r+2],c[r+3]);let i=t._getData({applyMorph:s,applyBakedVertexAnimation:!0,bakedVertexAnimationSettings:g,updatePositionsArray:!1,cache:l},null,a.VertexBuffer.PositionKind);if(!i)return!1;B.setAll(1/0),S.setAll(-1/0);for(let t=0;t<3*T;t+=3){let e=i[t],n=i[t+1],r=i[t+2];e<B.x&&(B.x=e),n<B.y&&(B.y=n),r<B.z&&(B.z=r),e>S.x&&(S.x=e),n>S.y&&(S.y=n),r>S.z&&(S.z=r)}p&&(B.x-=B.x*p.x+p.y,B.y-=B.y*p.x+p.y,B.z-=B.z*p.x+p.y,S.x+=S.x*p.x+p.y,S.y+=S.y*p.x+p.y,S.z+=S.z*p.x+p.y),I.minimizeInPlace(B),d.maximizeInPlace(S),e.Matrix.FromArrayToRef(u,16*n,_),p?function(t,n,r,s,a){let i=e.TmpVectors.Vector3[7],o=e.TmpVectors.Vector3[8];for(let h=0;h<2;++h)for(let c=0;c<2;++c)for(let f=0;f<2;++f)i.set(h?n.x:t.x,c?n.y:t.y,f?n.z:t.z),e.Vector3.TransformCoordinatesToRef(i,r,o),s.minimizeInPlace(o),a.maximizeInPlace(o)}(B,S,_,x,m):function(t,n,r,s,a){let i=e.TmpVectors.Vector3[7];for(let o=0;o<3*n;o+=3)e.Vector3.TransformCoordinatesFromFloatsToRef(t[o],t[o+1],t[o+2],r,i),s.minimizeInPlace(i),a.maximizeInPlace(i)}(i,T,_,x,m)}if(!isFinite(I.x)||!isFinite(x.x))return!1;t.getBoundingInfo().reConstruct(x,m),t.rawBoundingInfo=new r.BoundingInfo(I,d);var D=t.rawBoundingInfo;n.length=0;for(let t=0;t<D.boundingBox.vectors.length;++t)n.push(D.boundingBox.vectors[t].clone());return t._updateBoundingInfo(),!0}(this,c,s))return;h&&this.bakedVertexAnimationManager?.isEnabled&&o(this)?this.refreshBoundingInfo({applySkeleton:n,applyMorph:s,applyBakedVertexAnimation:!0,updatePositionsArray:!1}):this.refreshBoundingInfo(n,s);let t=this.getBoundingInfo();this.rawBoundingInfo=new r.BoundingInfo(t.minimum,t.maximum)}let f=this.getBoundingInfo(),u=this._thinInstanceDataStorage.matrixData;if(0===c.length)for(let t=0;t<f.boundingBox.vectors.length;++t)c.push(f.boundingBox.vectors[t].clone());e.TmpVectors.Vector3[0].setAll(1/0),e.TmpVectors.Vector3[1].setAll(-1/0);for(let t=0;t<this._thinInstanceDataStorage.instancesCount;++t){e.Matrix.FromArrayToRef(u,16*t,e.TmpVectors.Matrix[0]);for(let t=0;t<c.length;++t)e.Vector3.TransformCoordinatesToRef(c[t],e.TmpVectors.Matrix[0],e.TmpVectors.Vector3[2]),e.TmpVectors.Vector3[0].minimizeInPlace(e.TmpVectors.Vector3[2]),e.TmpVectors.Vector3[1].maximizeInPlace(e.TmpVectors.Vector3[2])}f.reConstruct(e.TmpVectors.Vector3[0],e.TmpVectors.Vector3[1]),this._updateBoundingInfo()},s.Mesh.prototype._thinInstanceRecreateBuffer=function(t,e=!0){"matrix"===t?(this._thinInstanceDataStorage.matrixBuffer?.dispose(),this._thinInstanceDataStorage.matrixBuffer=this._thinInstanceCreateMatrixBuffer("world",this._thinInstanceDataStorage.matrixData,e)):"previousMatrix"===t?this._scene.needsPreviousWorldMatrices&&(this._thinInstanceDataStorage.previousMatrixBuffer?.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=this._thinInstanceCreateMatrixBuffer("previousWorld",this._thinInstanceDataStorage.previousMatrixData??this._thinInstanceDataStorage.matrixData,e)):(t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind),this._userThinInstanceBuffersStorage.vertexBuffers[t]?.dispose(),this._userThinInstanceBuffersStorage.vertexBuffers[t]=new a.VertexBuffer(this.getEngine(),this._userThinInstanceBuffersStorage.data[t],t,!e,!1,this._userThinInstanceBuffersStorage.strides[t],!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[t]))},s.Mesh.prototype._thinInstanceUpdateBufferSize=function(t,e=1){t===a.VertexBuffer.ColorKind&&(t=a.VertexBuffer.ColorInstanceKind);let n="matrix"===t;if(!n&&(!this._userThinInstanceBuffersStorage||!this._userThinInstanceBuffersStorage.strides[t]))return;let r=n?16:this._userThinInstanceBuffersStorage.strides[t],s=n?this._thinInstanceDataStorage.matrixBufferSize:this._userThinInstanceBuffersStorage.sizes[t],i=n?this._thinInstanceDataStorage.matrixData:this._userThinInstanceBuffersStorage.data[t],o=(this._thinInstanceDataStorage.instancesCount+e)*r,h=s;for(;h<o;)h*=2;if(!i||s!=h){if(i){let t=new Float32Array(h);t.set(i,0),i=t}else i=new Float32Array(h);n?(this._thinInstanceDataStorage.matrixBuffer?.dispose(),this._thinInstanceDataStorage.matrixBuffer=this._thinInstanceCreateMatrixBuffer("world",i,!1),this._thinInstanceDataStorage.matrixData=i,this._thinInstanceDataStorage.matrixBufferSize=h,this._scene.needsPreviousWorldMatrices&&!this._thinInstanceDataStorage.previousMatrixData&&(this._thinInstanceDataStorage.previousMatrixBuffer?.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=this._thinInstanceCreateMatrixBuffer("previousWorld",i,!1))):(this._userThinInstanceBuffersStorage.vertexBuffers[t]?.dispose(),this._userThinInstanceBuffersStorage.data[t]=i,this._userThinInstanceBuffersStorage.sizes[t]=h,this._userThinInstanceBuffersStorage.vertexBuffers[t]=new a.VertexBuffer(this.getEngine(),i,t,!0,!1,r,!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[t]))}},s.Mesh.prototype._thinInstanceInitializeUserStorage=function(){this._userThinInstanceBuffersStorage||(this._userThinInstanceBuffersStorage={data:{},sizes:{},vertexBuffers:{},strides:{}})},s.Mesh.prototype._disposeThinInstanceSpecificData=function(){this._thinInstanceDataStorage?.matrixBuffer&&(this._thinInstanceDataStorage.matrixBuffer.dispose(),this._thinInstanceDataStorage.matrixBuffer=null),this._thinInstanceDataStorage?.previousMatrixBuffer&&(this._thinInstanceDataStorage.previousMatrixBuffer.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=null)})}t.s(["RegisterThinInstanceMesh",0,c],52998),c(),t.s([],17397)}]);
|