@uptimizr/dashboard 0.4.4 → 0.4.6
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 +4 -4
- package/out/__next._full.txt +11 -11
- package/out/__next._head.txt +4 -4
- package/out/__next._index.txt +4 -4
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/{2o8k8x5zcepfy.js → 0-k4hp87gwues.js} +1 -1
- package/out/_next/static/chunks/{0s84ekz_f9ngx.js → 0-laj-bivzp4x.js} +1 -1
- package/out/_next/static/chunks/{3tdzweqszru4y.js → 04zj0yf1qhk1o.js} +1 -1
- package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
- package/out/_next/static/chunks/{1e_-_7biavwmb.js → 06fbalmyyfpsy.js} +1 -1
- package/out/_next/static/chunks/{3yr66ufoli71t.js → 07hgbbqksqd1g.js} +1 -1
- package/out/_next/static/chunks/08ou2nvy48e0u.js +1 -0
- package/out/_next/static/chunks/08y5-irjbsiy8.js +1 -0
- package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 0_jrfk2u1u3fi.js} +1 -1
- package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 0a475u_q5i_dd.js} +2 -2
- package/out/_next/static/chunks/0aad2r4s4wl1x.js +5 -0
- package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 0cmyc-uvk93kl.js} +52 -52
- package/out/_next/static/chunks/{1ozi46t8jajqh.js → 0d9pxx1w_zqr9.js} +1 -1
- package/out/_next/static/chunks/{3-x7522okdy-7.js → 0e5dcxmkprebg.js} +1 -1
- package/out/_next/static/chunks/{1n_gxvu31aofy.js → 0gk5rnci1hznh.js} +2 -2
- package/out/_next/static/chunks/0gnjtwq-474uc.js +1 -0
- package/out/_next/static/chunks/0gsh_d0m5xss1.js +1 -0
- package/out/_next/static/chunks/0i9wa8hjd-5tc.js +1 -0
- package/out/_next/static/chunks/0ibzpjo0h731v.js +1 -0
- package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 0j0a0wvmmghxj.js} +1 -1
- package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0j2ygtc_-bo3m.js} +1 -1
- package/out/_next/static/chunks/{0dck67in84de0.js → 0j_3k5qhv_mdx.js} +1 -1
- package/out/_next/static/chunks/0jap7l5-bskj4.js +114 -0
- package/out/_next/static/chunks/{0n92hec_jb_-_.js → 0jis2w2mfx062.js} +1 -1
- package/out/_next/static/chunks/0jjvp2slpf7d6.js +1 -0
- package/out/_next/static/chunks/0ko10wo4rc9-b.js +1 -0
- package/out/_next/static/chunks/0lqmvz6k2h_of.js +1 -0
- package/out/_next/static/chunks/0lwjmr8efrlbt.js +17 -0
- package/out/_next/static/chunks/0noxyupihh8dk.js +1 -0
- package/out/_next/static/chunks/{2-hdejef-mpka.js → 0o0qtv35dqv3i.js} +219 -16
- package/out/_next/static/chunks/{43hwl25uke0l_.js → 0o1vph7x9shzu.js} +1 -1
- package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 0o73w0cn5n_vl.js} +1 -1
- package/out/_next/static/chunks/0p6phe9kjlxn8.js +1 -0
- package/out/_next/static/chunks/0ptxb9dcwsw3o.js +1 -0
- package/out/_next/static/chunks/{31ei992g8gqz9.js → 0q0i4pdyq66gb.js} +1 -1
- package/out/_next/static/chunks/0q8pt8fd0ma30.js +1 -0
- package/out/_next/static/chunks/0qqx9aoz8l5d2.js +1 -0
- package/out/_next/static/chunks/0r-x702_jvhud.js +112 -0
- package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 0rykrf_vofbad.js} +1 -1
- package/out/_next/static/chunks/0tsk32q-88t_7.js +1 -0
- package/out/_next/static/chunks/0u7577db_ivyr.js +1 -0
- package/out/_next/static/chunks/0unnrt0un064x.js +1 -0
- package/out/_next/static/chunks/{3mvaub8qjdyuc.js → 0uygtr4mo3h0v.js} +1 -1
- package/out/_next/static/chunks/0vf3facit951s.js +1 -0
- package/out/_next/static/chunks/{2pcdnd4nzcw4c.js → 0vzo-8t8c26k9.js} +1 -1
- package/out/_next/static/chunks/0xx7_7y5jdlh4.js +1 -0
- package/out/_next/static/chunks/0xyija62b6txc.js +1 -0
- package/out/_next/static/chunks/{0vso09vdz38sr.js → 0xzamrecplwzw.js} +1 -1
- package/out/_next/static/chunks/{2khh_pmm224k5.js → 0yd4_xh476fjn.js} +14 -217
- package/out/_next/static/chunks/0ypejzd74ixbw.js +338 -0
- package/out/_next/static/chunks/0zeb37703zcz3.js +1 -0
- package/out/_next/static/chunks/0zu5ato7-1-q9.js +1 -0
- package/out/_next/static/chunks/0zydv7y47dxgh.js +1 -0
- package/out/_next/static/chunks/103x4jwovb6d-.js +1 -0
- package/out/_next/static/chunks/107wfq84g9-kn.js +1 -0
- package/out/_next/static/chunks/10afagk8yn__n.js +1 -0
- package/out/_next/static/chunks/12ory_c78yl31.js +1 -0
- package/out/_next/static/chunks/{1ccn725by19i1.js → 133dqp8_7_yo6.js} +1 -1
- package/out/_next/static/chunks/1365lgwdd4vuo.js +1 -0
- package/out/_next/static/chunks/146ou-ohb_qhs.js +1 -0
- package/out/_next/static/chunks/{425epvuw3yy-n.js → 14e4k-718qadd.js} +31 -31
- package/out/_next/static/chunks/14orr68xgdykd.js +1 -0
- package/out/_next/static/chunks/15qfoj-vl9thu.js +1 -0
- package/out/_next/static/chunks/{0okbyggxe6mx5.js → 161yjxmdz9obc.js} +1 -1
- package/out/_next/static/chunks/166yqx3_qvbpy.js +1 -0
- package/out/_next/static/chunks/16gwjao676ieb.js +1 -0
- package/out/_next/static/chunks/{0n-zml1gn0o1u.js → 16rmmzhy2p7bw.js} +1 -1
- package/out/_next/static/chunks/{442e2l3jzxd-_.js → 17_jjyx4jz9dd.js} +1 -1
- package/out/_next/static/chunks/{0zf26k6juhlzo.js → 184pz6z3dflfm.js} +13 -10
- package/out/_next/static/chunks/18h9ugdz6igdb.js +1 -0
- package/out/_next/static/chunks/19d8n5t7ka2fb.js +1 -0
- package/out/_next/static/chunks/{1mvadj46owrck.js → 1_4hh3dfop93j.js} +1 -1
- package/out/_next/static/chunks/1_rbzw3n4fk0g.js +1 -0
- package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 1a94whad0y57f.js} +1 -1
- package/out/_next/static/chunks/{1vmpltnr0cyos.js → 1aa9g197l4twm.js} +1 -1
- package/out/_next/static/chunks/1bq0fcnt1wy86.js +1 -0
- package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 1bv-jzy_2jiqs.js} +1 -1
- package/out/_next/static/chunks/1c6mho7e0enta.js +1 -0
- package/out/_next/static/chunks/{2ymtumj-hfrjo.js → 1dfaheve77dhi.js} +1 -1
- package/out/_next/static/chunks/1dgf112ehnhm1.js +1 -0
- package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1eirucr9s6-h5.js} +1 -1
- package/out/_next/static/chunks/{0dva036n8ab62.js → 1f07l3q77zat1.js} +1 -1
- package/out/_next/static/chunks/1fervgvgv10r-.js +1 -0
- package/out/_next/static/chunks/1fsof7un7igrn.js +1 -0
- package/out/_next/static/chunks/{3gyyjsot8mdav.js → 1gvu5a6ffbs7l.js} +1 -1
- package/out/_next/static/chunks/{0t89-lfct-7m6.js → 1h1gixjbjkbsl.js} +5 -5
- package/out/_next/static/chunks/1iel4pzhhh-c3.js +1 -0
- package/out/_next/static/chunks/1iojfx3-g4_n9.js +1 -0
- package/out/_next/static/chunks/{1__nujzr9e352.js → 1j4c0nvdo5q68.js} +1 -1
- package/out/_next/static/chunks/{1o3ggu95lfu6i.js → 1j4jt5q7px8sy.js} +1 -1
- package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 1jjw9hxgi2vzi.js} +1 -1
- package/out/_next/static/chunks/1k_8olnprvi8r.js +1 -0
- package/out/_next/static/chunks/1l0rt7d4m-xdk.js +5 -0
- package/out/_next/static/chunks/{1oljzgz5jistn.js → 1lu7rjfvxj8yj.js} +1 -1
- package/out/_next/static/chunks/{2c2dspoukng-5.js → 1mt4cnd_d6jvf.js} +1 -1
- package/out/_next/static/chunks/1my968s78he8g.js +272 -0
- package/out/_next/static/chunks/{03zip1uidm6x9.js → 1s0dpdqy480hg.js} +1 -1
- package/out/_next/static/chunks/1t-yolk97lmot.js +12 -0
- package/out/_next/static/chunks/1t2g1v0ubcsam.js +1 -0
- package/out/_next/static/chunks/{18wa83g0qfh-b.js → 1tbes2sv-qzcx.js} +1 -1
- package/out/_next/static/chunks/1upy8a5cb75kt.js +1 -0
- package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1x0j78ohufpul.js} +1 -1
- package/out/_next/static/chunks/1xed71f608m4b.js +1 -0
- package/out/_next/static/chunks/1z790xxb46gxy.js +1 -0
- package/out/_next/static/chunks/{22rl_arnzs-ve.js → 1zmx71cvc6ksk.js} +1 -1
- package/out/_next/static/chunks/{3kalvwsf11-ss.js → 2-_a-v1xeo5hb.js} +15 -12
- package/out/_next/static/chunks/2-i29-jdbwww6.js +532 -0
- package/out/_next/static/chunks/{1solqr18og2ot.js → 2117sv2qzo6yq.js} +1 -1
- package/out/_next/static/chunks/219n3q-_eengm.js +1 -0
- package/out/_next/static/chunks/21wo3vdr_uby8.js +1 -0
- package/out/_next/static/chunks/{1nqojcig-0m3c.js → 22yht3s7c-xih.js} +1 -1
- package/out/_next/static/chunks/{3go-mst7n3udd.js → 23-y1f_zw56vo.js} +1 -1
- package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 25brs445bjbik.js} +2 -2
- package/out/_next/static/chunks/25gep78-izw79.js +4 -0
- package/out/_next/static/chunks/{099ilz3dmm1jw.js → 26i7dn31afdtm.js} +1 -1
- package/out/_next/static/chunks/27hbplu797elx.js +1 -0
- package/out/_next/static/chunks/{3n-7bcmfbh299.js → 27z7j17kcrty_.js} +11 -11
- package/out/_next/static/chunks/{380ivzcfb4o_3.js → 287hakn2ijupp.js} +2 -2
- package/out/_next/static/chunks/28i3wgvgn_at1.js +1 -0
- package/out/_next/static/chunks/2992eiy52nazj.js +1 -0
- package/out/_next/static/chunks/29_n5j-hg_gsa.js +1 -0
- package/out/_next/static/chunks/29bxq-67oazfg.js +1 -0
- package/out/_next/static/chunks/{309f81l5ucsb_.js → 29hkkj9raxte9.js} +50 -50
- package/out/_next/static/chunks/29ings58w7kp1.js +1 -0
- package/out/_next/static/chunks/{2e46-2ubc90do.js → 2_6b9lraq-exh.js} +5 -5
- package/out/_next/static/chunks/{3w4qettzp7khe.js → 2_lw4d7t-xcqi.js} +32 -32
- package/out/_next/static/chunks/2_n0cpkdsjzli.js +1 -0
- package/out/_next/static/chunks/2a3iy701j4r_y.js +1 -0
- package/out/_next/static/chunks/2al9dh3_1ixhv.js +1 -0
- package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2as_br1awqk6k.js} +69 -69
- package/out/_next/static/chunks/{0c5d3qn2mb3ew.js → 2awr1c_vfsutb.js} +1 -1
- package/out/_next/static/chunks/{2q0rz76kj6h5z.js → 2b5nt7yn-pq3a.js} +1 -1
- package/out/_next/static/chunks/2bxe3kjr17tdp.js +1 -0
- package/out/_next/static/chunks/{2z9mdtudj8crz.js → 2c8rmxz151fxa.js} +20 -18
- package/out/_next/static/chunks/{35aagg46wp139.js → 2clevl_9ayd0x.js} +1 -1
- package/out/_next/static/chunks/{41qxc142snm22.js → 2dvbzar93ooc-.js} +1 -1
- package/out/_next/static/chunks/2e-vp0e11g9ew.js +1 -0
- package/out/_next/static/chunks/{2-p206i_ihx09.js → 2epukrz6paj9n.js} +1 -1
- package/out/_next/static/chunks/2exj9-0p6n9x-.js +1 -0
- package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 2fspbfbxbswzd.js} +1 -1
- package/out/_next/static/chunks/2gf8l6hbmt7v3.js +1 -0
- package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 2h07np207nlx7.js} +1 -1
- package/out/_next/static/chunks/{11p92pnn5el0v.js → 2h9i_adbqaxs4.js} +1 -1
- package/out/_next/static/chunks/{0bj_310rugcn1.js → 2iu0_3cx-ny74.js} +11 -11
- package/out/_next/static/chunks/2jio3sio-_43z.js +1 -0
- package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 2kk_vvmr2xm3d.js} +29 -29
- package/out/_next/static/chunks/2kmmk9coo9_b0.js +505 -0
- package/out/_next/static/chunks/{055baac5e-c2o.js → 2laz1v9fg2a2z.js} +1 -1
- package/out/_next/static/chunks/{1qsut_e3msg0l.js → 2mjjo0yj-4ro4.js} +1 -1
- package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 2mrkv0z2i74pv.js} +2 -2
- package/out/_next/static/chunks/{04_3ri5emyfcu.js → 2neieeo9g2u56.js} +1 -1
- package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 2oacwtbslo90t.js} +84 -84
- package/out/_next/static/chunks/2pb_uosb-aa8x.js +1 -0
- package/out/_next/static/chunks/2qu-gpm3ux1l6.js +1 -0
- package/out/_next/static/chunks/2rsi6v7qmqx2b.js +1 -0
- package/out/_next/static/chunks/2s4fzgzkwjluu.js +2 -0
- package/out/_next/static/chunks/2tdvuc-27khif.js +1 -0
- package/out/_next/static/chunks/{2bm95r0011asw.js → 2trolrgd7neax.js} +1 -1
- package/out/_next/static/chunks/2uyuafmoe5wi0.js +3 -0
- package/out/_next/static/chunks/2w2e0pxgs-n8f.js +1 -0
- package/out/_next/static/chunks/{1qxhgauuomthl.js → 2wgh5i70bzelt.js} +60 -60
- package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 2x-7kbwq8tl-o.js} +59 -59
- package/out/_next/static/chunks/{1t2exh89lnazc.js → 2xe4bgir5l-9b.js} +32 -99
- package/out/_next/static/chunks/2xujlsx3stqig.js +1 -0
- package/out/_next/static/chunks/{267q_eg-c6f6m.js → 3-yhe6rcsjh88.js} +1 -1
- package/out/_next/static/chunks/30y71dxdpv52d.js +1 -0
- package/out/_next/static/chunks/32c-e_v8_2xkf.js +1 -0
- package/out/_next/static/chunks/32oj0iudhp8bm.js +1 -0
- package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 336ckqpboqmbn.js} +1 -1
- package/out/_next/static/chunks/33p9du6y9eegg.js +1 -0
- package/out/_next/static/chunks/{3w_umk1xtj6to.js → 36pz_ews7u0xb.js} +1 -1
- package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 374lzksboll-t.js} +1 -1
- package/out/_next/static/chunks/38om-j0h0rryk.js +1 -0
- package/out/_next/static/chunks/{3oyuoqr8y2g9r.js → 38q0enmlg5q9o.js} +2 -2
- package/out/_next/static/chunks/{25gf6xn9u1c57.js → 39cou9lia_g7l.js} +1 -1
- package/out/_next/static/chunks/39pkya0_bvcaj.js +1 -0
- package/out/_next/static/chunks/{1x99m91nt1m3b.js → 39rhmj_32ujyj.js} +1 -1
- package/out/_next/static/chunks/3_1zzmx92j9c0.js +1 -0
- package/out/_next/static/chunks/{3z4suna4kq4j5.js → 3_dm45k0vk1aa.js} +34 -35
- package/out/_next/static/chunks/3_earszshuz4n.js +1 -0
- package/out/_next/static/chunks/{1ephzzweysylq.js → 3_gfl66zf638s.js} +38 -105
- package/out/_next/static/chunks/3ap_uxc8lx7ni.js +1 -0
- package/out/_next/static/chunks/{0pv2wirx45e1m.js → 3b6na8zrex8jo.js} +1 -1
- package/out/_next/static/chunks/3c0cxt72vilyz.js +1 -0
- package/out/_next/static/chunks/3cp5nmtwxq4gr.js +1 -0
- package/out/_next/static/chunks/{0tn-9w46cwydp.js → 3d43gd91r06y6.js} +39 -40
- package/out/_next/static/chunks/3g78x0pdaoi_4.js +1 -0
- package/out/_next/static/chunks/{1di5enkavl9vx.js → 3gjvl1p-tugfe.js} +2 -2
- package/out/_next/static/chunks/{1mrvp94tietcv.js → 3i8iro1gas1vx.js} +1 -1
- package/out/_next/static/chunks/{3-_08i4_7yhno.js → 3ioxfi3bvznhh.js} +1 -1
- package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3j3ol_d1vsdhx.js} +1 -1
- package/out/_next/static/chunks/3kpqfqr99vo7z.js +1 -0
- package/out/_next/static/chunks/3lladf_wemm-2.js +1 -0
- package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 3mmy9zsb7zo-m.js} +12 -9
- package/out/_next/static/chunks/{17aahvhpls1l7.js → 3my05px5mv_s5.js} +83 -16
- package/out/_next/static/chunks/3n62hbywoknop.js +1 -0
- package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3nr48h9zwum-3.js} +1 -1
- package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3nwaovnpiyrt8.js} +1 -1
- package/out/_next/static/chunks/3o_dmzpahx-5g.js +1 -0
- package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 3p03l0z65c8vc.js} +27 -25
- package/out/_next/static/chunks/{00xc-0pj7on2s.js → 3puu2_-t0lln9.js} +29 -29
- package/out/_next/static/chunks/{077eo-0dhbxz-.js → 3qo7e6b73mfxq.js} +1 -1
- package/out/_next/static/chunks/3r7v7un976sn7.js +1 -0
- package/out/_next/static/chunks/{255knovck7pv2.js → 3rj-5v0j_2-_2.js} +4 -4
- package/out/_next/static/chunks/3rl_nhqwew40w.js +1 -0
- package/out/_next/static/chunks/3s7hqij6xp_4e.js +1 -0
- package/out/_next/static/chunks/{1ng-fqh2_n984.js → 3si3migsmvz9o.js} +1 -1
- package/out/_next/static/chunks/3t4ys6th6gf2w.js +1 -0
- package/out/_next/static/chunks/{1og49_atcksim.js → 3twr9ds68-9us.js} +1 -1
- package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3txu-i5qn183a.js} +65 -65
- package/out/_next/static/chunks/{3y_51bmdnc0ey.js → 3uarw1i1ij1er.js} +1 -1
- package/out/_next/static/chunks/3un-w6wutw1qn.js +1 -0
- package/out/_next/static/chunks/3v8kgnjk27wbe.js +1 -0
- package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 3vtmucpx25o7q.js} +61 -61
- package/out/_next/static/chunks/{04j9pexbmysdy.js → 3vu5y270muh-7.js} +1 -1
- package/out/_next/static/chunks/3we1khqfexh3x.js +1 -0
- package/out/_next/static/chunks/3yk0hzfq5rcs6.js +1 -0
- package/out/_next/static/chunks/3z35loj4i-id4.js +1 -0
- package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 3zv5kyos9vtmm.js} +1 -1
- package/out/_next/static/chunks/{1hsvckd0sgdgr.js → 415g3asdds1ac.js} +1 -1
- package/out/_next/static/chunks/{1nasz7q3tvb53.js → 42lqt7ig40wk5.js} +1 -1
- package/out/_next/static/chunks/42s6ghsurq5q7.js +1 -0
- package/out/_next/static/chunks/42yctcfi2rfwr.js +1 -0
- package/out/_next/static/chunks/43_fau1gg69eo.js +1 -0
- package/out/_next/static/chunks/43ywrdzg_7af8.js +31 -0
- package/out/_next/static/chunks/{1ho02fc091nj2.js → 44m1ijc5cv80x.js} +1 -1
- package/out/_next/static/chunks/{3k-gz8qf-mj-p.js → 453_bg0lgesmp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3r8yn0j92tqw_.js → turbopack-1s36ieuku1ds3.js} +1 -1
- package/out/_not-found/__next._full.txt +9 -9
- package/out/_not-found/__next._head.txt +4 -4
- package/out/_not-found/__next._index.txt +4 -4
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +9 -9
- package/out/index.html +1 -1
- package/out/index.txt +11 -11
- package/package.json +14 -14
- package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
- package/out/_next/static/chunks/00o9hr_3hd0r8.js +0 -1
- package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
- package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
- package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
- package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
- package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
- package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
- package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
- package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
- package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
- package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
- package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
- package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
- package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
- package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
- package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
- package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
- package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
- package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
- package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
- package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
- package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
- package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
- package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
- package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
- package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
- package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
- package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
- package/out/_next/static/chunks/0yvevihll7sz-.js +0 -1
- package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
- package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
- package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
- package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
- package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
- package/out/_next/static/chunks/141tngxsk32hq.js +0 -1
- package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
- package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
- package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
- package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
- package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
- package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
- package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
- package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
- package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
- package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
- package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
- package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
- package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
- package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
- package/out/_next/static/chunks/1rb8wewjbdisv.js +0 -1
- package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
- package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
- package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
- package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
- package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
- package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
- package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
- package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
- package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
- package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
- package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
- package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
- package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
- package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
- package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
- package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
- package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
- package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
- package/out/_next/static/chunks/2ies66gmou203.js +0 -1
- package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
- package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
- package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
- package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
- package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
- package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
- package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
- package/out/_next/static/chunks/2zyjw8g4tiu51.js +0 -1
- package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
- package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
- package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
- package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
- package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
- package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
- package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
- package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
- package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
- package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
- package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
- package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
- package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
- package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
- package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
- package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
- package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
- package/out/_next/static/chunks/3rpm-1ryf073k.js +0 -1
- package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
- package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
- package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_buildManifest.js +0 -0
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87023,t=>{"use strict";var e,s,i=t.i(90629),n=t.i(95410),r=t.i(82579);(e=s||(s={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class a{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 a(Math.atan2(s.y,s.x))}static BetweenTwoVectors(t,e){let s=t.lengthSquared()*e.lengthSquared();if(0===s)return new a(Math.PI/2);s=Math.sqrt(s);let n=t.dot(e)/s;return new a(Math.acos(n=(0,i.Clamp)(n,-1,1)))}static FromRadians(t){return new a(t)}static FromDegrees(t){return new a(t*Math.PI/180)}}class o{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,o=(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)-o*(t.y-e.y))/h,((t.x-e.x)*o-(e.x-s.x)*r)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=a.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let u=a.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),c=a.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=a.FromDegrees(0===this.orientation?l-c:c-l)}}class h{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 a=new o(this._points[this._points.length-1],new n.Vector2(t,e),new n.Vector2(s,i)),h=a.angle.radians()/r;0===a.orientation&&(h*=-1);let l=a.startAngle.radians()+h;for(let t=0;t<r;t++){let t=Math.cos(l)*a.radius+a.centerPoint.x,e=Math.sin(l)*a.radius+a.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,a=this._points[this._points.length-1];for(let o=0;o<=n;o++){let h=o/n,l=r(h,a.x,t,s),u=r(h,a.y,e,i);this.addLineTo(l,u)}return this}addBezierCurveTo(t,e,s,i,n,r,a=36){if(this.closed)return this;let o=(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<=a;l++){let u=l/a,c=o(u,h.x,t,s,n),p=o(u,h.y,e,i,r);this.addLineTo(c,p)}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],a=r.x-s.x,o=r.y-s.y;if(Math.abs(o)>Number.EPSILON){if(o<0&&(s=this._points[n],a=-a,r=this._points[i],o=-o),t.y<s.y||t.y>r.y)continue;if(t.y===s.y&&t.x===s.x)return!0;{let i=o*(t.x-s.x)-a*(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],a=this._points[i].subtract(r),o=a.length()+s;if(e>=s&&e<=o){let t=a.normalize(),i=e-s;return new n.Vector2(r.x+t.x*i,r.y+t.y*i)}s=o}return n.Vector2.Zero()}static StartingAt(t,e){return new h(t,e)}}class l{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],a=this._curve[i+1].subtract(r).normalize(),o=this._distances[i+1]-this._distances[i+0],h=Math.min(Math.max(n.Vector3.Dot(a,t.subtract(r).normalize()),0)*n.Vector3.Distance(r,t)/o,1),l=n.Vector3.Distance(r.add(a.scale(h*o)),t);l<e&&(e=l,s=(this._distances[i+0]+o*h)/this.length())}return s}slice(t=0,e=1){if(t<0&&(t=1- -1*t%1),e<0&&(e=1- -1*e%1),t>e){let s=t;t=e,e=s}let s=this.getCurve(),i=this.getPointAt(t),n=this.getPreviousPointIndexAt(t),r=this.getPointAt(e),a=this.getPreviousPointIndexAt(e)+1,o=[];return 0!==t&&(n++,o.push(i)),o.push(...s.slice(n,a)),(1!==e||1===t)&&o.push(r),new l(o,this.getNormalAt(t),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,a,o,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],o=this._binormals[t-1],this._normals[t]=n.Vector3.Cross(o,r),this._raw||(0===this._normals[t].length()?(a=this._normals[t-1],this._normals[t]=a.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+1;)e++,s=this._curve[t].subtract(this._curve[t-e]);return s}_normalVector(t,e){let s,a=t.length();if(0===a&&(a=1),null==e){let e;e=(0,i.WithinEpsilon)(Math.abs(t.y)/a,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.x)/a,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.z)/a,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],a=0,o=t*this.length();for(let h=1;h<i.length;h++){s=i[h];let l=n.Vector3.Distance(r,s);if((a+=l)===o)return this._setPointAtData(t,1,s,h,e);if(a>o){let i=(a-o)/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(),a=this._tangents[e].clone(),o=this._normals[e].clone(),h=this._binormals[e].clone(),l=n.Quaternion.RotationQuaternionFromAxis(i,r,s),u=n.Quaternion.RotationQuaternionFromAxis(o,h,a);n.Quaternion.Slerp(l,u,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}class u{static CreateQuadraticBezier(t,e,s,i){i=i>2?i:3;let r=[],a=(t,e,s,i)=>(1-t)*(1-t)*e+2*t*(1-t)*s+t*t*i;for(let o=0;o<=i;o++)r.push(new n.Vector3(a(o/i,t.x,e.x,s.x),a(o/i,t.y,e.y,s.y),a(o/i,t.z,e.z,s.z)));return new u(r)}static CreateCubicBezier(t,e,s,i,r){r=r>3?r:4;let a=[],o=(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 h=0;h<=r;h++)a.push(new n.Vector3(o(h/r,t.x,e.x,s.x,i.x),o(h/r,t.y,e.y,s.y,i.y),o(h/r,t.z,e.z,s.z,i.z)));return new u(a)}static CreateHermiteSpline(t,e,s,i,r){let a=[],o=1/r;for(let h=0;h<=r;h++)a.push(n.Vector3.Hermite(t,e,s,i,h*o));return new u(a)}static CreateCatmullRomSpline(t,e,s){let i=[],r=1/e,a=0;if(s){let s=t.length;for(let o=0;o<s;o++){a=0;for(let h=0;h<e;h++)i.push(n.Vector3.CatmullRom(t[o%s],t[(o+1)%s],t[(o+2)%s],t[(o+3)%s],a)),a+=r}i.push(i[0])}else{let s=[];s.push(t[0].clone()),s.push(...t),s.push(t[t.length-1].clone());let o=0;for(;o<s.length-3;o++){a=0;for(let t=0;t<e;t++)i.push(n.Vector3.CatmullRom(s[o],s[o+1],s[o+2],s[o+3],a)),a+=r}o--,i.push(n.Vector3.CatmullRom(s[o],s[o+1],s[o+2],s[o+3],a))}return new u(i)}static ArcThru3Points(t,e,s,i=32,r=!1,a=!1){let o=[],h=e.subtract(t),l=s.subtract(e),c=t.subtract(s),p=n.Vector3.Cross(h,l),_=p.length();if(_<1e-8)return new u(o);let g=h.lengthSquared(),d=l.lengthSquared(),m=c.lengthSquared(),x=p.lengthSquared(),E=.5*h.length()*l.length()*c.length()/_,A=n.Vector3.Dot(h,c),M=n.Vector3.Dot(h,l),w=n.Vector3.Dot(l,c),P=t.scale(-.5*d*A/x).add(e.scale(-.5*m*M/x)).add(s.scale(-.5*g*w/x)),y=t.subtract(P).normalize(),f=n.Vector3.Cross(p,y).normalize();if(a){let e=2*Math.PI/i;for(let t=0;t<=2*Math.PI;t+=e)o.push(P.add(y.scale(E*Math.cos(t)).add(f.scale(E*Math.sin(t)))));o.push(t)}else{let e,n=1/i,a=0;do e=P.add(y.scale(E*Math.cos(a)).add(f.scale(E*Math.sin(a)))),o.push(e),a+=n;while(!e.equalsWithEpsilon(s,E*n*1.1))o.push(s),r&&o.push(t)}return new u(o)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(t){let e=this._points[this._points.length-1],s=this._points.slice(),i=t.getPoints();for(let t=1;t<i.length;t++)s.push(i[t].subtract(i[0]).add(e));return new u(s)}_computeLength(t){let e=0;for(let s=1;s<t.length;s++)e+=t[s].subtract(t[s-1]).length();return e}}t.s(["Angle",0,a,"Arc2",0,o,"BezierCurve",0,class{static Interpolate(t,e,s,i,n){if(0===t)return 0;let r=1-3*i+3*e,a=3*i-6*e,o=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,s=e*h*r+a*e+o*h,i=1/(3*r*e+2*a*h+o);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,u,"Orientation",0,s,"Path2",0,h,"Path3D",0,l])},15205,t=>{"use strict";var e=t.i(87023);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,a=Math.floor(Math.log(-(t*r)*(1-s)+1)/Math.log(s)),o=(1-Math.pow(s,a))/(n*r),h=(o+(1-Math.pow(s,a+1))/(n*r))*.5,l=t-h,u=h-o;return-Math.pow(1/s,e-a)/(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)}}])},66271,t=>{"use strict";var e,s,i=t.i(15205),n=t.i(37068),r=t.i(19434),a=t.i(38116);(e=s||(s={}))[e.CircleEase=0]="CircleEase",e[e.BackEase=1]="BackEase",e[e.BounceEase=2]="BounceEase",e[e.CubicEase=3]="CubicEase",e[e.ElasticEase=4]="ElasticEase",e[e.ExponentialEase=5]="ExponentialEase",e[e.PowerEase=6]="PowerEase",e[e.QuadraticEase=7]="QuadraticEase",e[e.QuarticEase=8]="QuarticEase",e[e.QuinticEase=9]="QuinticEase",e[e.SineEase=10]="SineEase",e[e.BezierCurveEase=11]="BezierCurveEase";class o extends n.FlowGraphBlock{constructor(t){super(t),this.config=t,this._easingFunctions={},this.type=this.registerDataInput("type",r.RichTypeAny,11),this.mode=this.registerDataInput("mode",r.RichTypeNumber,0),this.parameters=this.registerDataInput("parameters",r.RichTypeAny,[1,0,0,1]),this.easingFunction=this.registerDataOutput("easingFunction",r.RichTypeAny)}_updateOutputs(t){let e=this.type.getValue(t),s=this.mode.getValue(t),n=this.parameters.getValue(t);if(void 0===e||void 0===s)return;let r=`${e}-${s}-${n.join("-")}`;if(!this._easingFunctions[r]){let t=function(t,...e){switch(t){case 11:return new i.BezierCurveEase(...e);case 0:return new i.CircleEase;case 1:return new i.BackEase(...e);case 2:return new i.BounceEase(...e);case 3:return new i.CubicEase;case 4:return new i.ElasticEase(...e);case 5:return new i.ExponentialEase(...e);default:throw Error("Easing type not yet implemented")}}(e,...n);t.setEasingMode(s),this._easingFunctions[r]=t}this.easingFunction.setValue(this._easingFunctions[r],t)}getClassName(){return"FlowGraphEasingBlock"}}let h=!1;function l(){h||(h=!0,(0,a.RegisterClass)("FlowGraphEasingBlock",o))}t.s(["EasingFunctionType",0,s,"FlowGraphEasingBlock",0,o,"RegisterFlowGraphEasingBlock",0,l],125),l(),t.s([],13622),t.i(13622),t.i(125),t.s(["FlowGraphEasingBlock",0,o],66271)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29667,t=>{"use strict";var e,s,i=t.i(63235),n=t.i(69400),r=t.i(84106);(e=s||(s={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class a{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 a(Math.atan2(s.y,s.x))}static BetweenTwoVectors(t,e){let s=t.lengthSquared()*e.lengthSquared();if(0===s)return new a(Math.PI/2);s=Math.sqrt(s);let n=t.dot(e)/s;return new a(Math.acos(n=(0,i.Clamp)(n,-1,1)))}static FromRadians(t){return new a(t)}static FromDegrees(t){return new a(t*Math.PI/180)}}class o{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,o=(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)-o*(t.y-e.y))/h,((t.x-e.x)*o-(e.x-s.x)*r)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=a.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let u=a.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),c=a.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=a.FromDegrees(0===this.orientation?l-c:c-l)}}class h{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 a=new o(this._points[this._points.length-1],new n.Vector2(t,e),new n.Vector2(s,i)),h=a.angle.radians()/r;0===a.orientation&&(h*=-1);let l=a.startAngle.radians()+h;for(let t=0;t<r;t++){let t=Math.cos(l)*a.radius+a.centerPoint.x,e=Math.sin(l)*a.radius+a.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,a=this._points[this._points.length-1];for(let o=0;o<=n;o++){let h=o/n,l=r(h,a.x,t,s),u=r(h,a.y,e,i);this.addLineTo(l,u)}return this}addBezierCurveTo(t,e,s,i,n,r,a=36){if(this.closed)return this;let o=(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<=a;l++){let u=l/a,c=o(u,h.x,t,s,n),p=o(u,h.y,e,i,r);this.addLineTo(c,p)}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],a=r.x-s.x,o=r.y-s.y;if(Math.abs(o)>Number.EPSILON){if(o<0&&(s=this._points[n],a=-a,r=this._points[i],o=-o),t.y<s.y||t.y>r.y)continue;if(t.y===s.y&&t.x===s.x)return!0;{let i=o*(t.x-s.x)-a*(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],a=this._points[i].subtract(r),o=a.length()+s;if(e>=s&&e<=o){let t=a.normalize(),i=e-s;return new n.Vector2(r.x+t.x*i,r.y+t.y*i)}s=o}return n.Vector2.Zero()}static StartingAt(t,e){return new h(t,e)}}class l{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],a=this._curve[i+1].subtract(r).normalize(),o=this._distances[i+1]-this._distances[i+0],h=Math.min(Math.max(n.Vector3.Dot(a,t.subtract(r).normalize()),0)*n.Vector3.Distance(r,t)/o,1),l=n.Vector3.Distance(r.add(a.scale(h*o)),t);l<e&&(e=l,s=(this._distances[i+0]+o*h)/this.length())}return s}slice(t=0,e=1){if(t<0&&(t=1- -1*t%1),e<0&&(e=1- -1*e%1),t>e){let s=t;t=e,e=s}let s=this.getCurve(),i=this.getPointAt(t),n=this.getPreviousPointIndexAt(t),r=this.getPointAt(e),a=this.getPreviousPointIndexAt(e)+1,o=[];return 0!==t&&(n++,o.push(i)),o.push(...s.slice(n,a)),(1!==e||1===t)&&o.push(r),new l(o,this.getNormalAt(t),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,a,o,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],o=this._binormals[t-1],this._normals[t]=n.Vector3.Cross(o,r),this._raw||(0===this._normals[t].length()?(a=this._normals[t-1],this._normals[t]=a.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+1;)e++,s=this._curve[t].subtract(this._curve[t-e]);return s}_normalVector(t,e){let s,a=t.length();if(0===a&&(a=1),null==e){let e;e=(0,i.WithinEpsilon)(Math.abs(t.y)/a,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.x)/a,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.z)/a,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],a=0,o=t*this.length();for(let h=1;h<i.length;h++){s=i[h];let l=n.Vector3.Distance(r,s);if((a+=l)===o)return this._setPointAtData(t,1,s,h,e);if(a>o){let i=(a-o)/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(),a=this._tangents[e].clone(),o=this._normals[e].clone(),h=this._binormals[e].clone(),l=n.Quaternion.RotationQuaternionFromAxis(i,r,s),u=n.Quaternion.RotationQuaternionFromAxis(o,h,a);n.Quaternion.Slerp(l,u,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}class u{static CreateQuadraticBezier(t,e,s,i){i=i>2?i:3;let r=[],a=(t,e,s,i)=>(1-t)*(1-t)*e+2*t*(1-t)*s+t*t*i;for(let o=0;o<=i;o++)r.push(new n.Vector3(a(o/i,t.x,e.x,s.x),a(o/i,t.y,e.y,s.y),a(o/i,t.z,e.z,s.z)));return new u(r)}static CreateCubicBezier(t,e,s,i,r){r=r>3?r:4;let a=[],o=(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 h=0;h<=r;h++)a.push(new n.Vector3(o(h/r,t.x,e.x,s.x,i.x),o(h/r,t.y,e.y,s.y,i.y),o(h/r,t.z,e.z,s.z,i.z)));return new u(a)}static CreateHermiteSpline(t,e,s,i,r){let a=[],o=1/r;for(let h=0;h<=r;h++)a.push(n.Vector3.Hermite(t,e,s,i,h*o));return new u(a)}static CreateCatmullRomSpline(t,e,s){let i=[],r=1/e,a=0;if(s){let s=t.length;for(let o=0;o<s;o++){a=0;for(let h=0;h<e;h++)i.push(n.Vector3.CatmullRom(t[o%s],t[(o+1)%s],t[(o+2)%s],t[(o+3)%s],a)),a+=r}i.push(i[0])}else{let s=[];s.push(t[0].clone()),s.push(...t),s.push(t[t.length-1].clone());let o=0;for(;o<s.length-3;o++){a=0;for(let t=0;t<e;t++)i.push(n.Vector3.CatmullRom(s[o],s[o+1],s[o+2],s[o+3],a)),a+=r}o--,i.push(n.Vector3.CatmullRom(s[o],s[o+1],s[o+2],s[o+3],a))}return new u(i)}static ArcThru3Points(t,e,s,i=32,r=!1,a=!1){let o=[],h=e.subtract(t),l=s.subtract(e),c=t.subtract(s),p=n.Vector3.Cross(h,l),_=p.length();if(_<1e-8)return new u(o);let g=h.lengthSquared(),d=l.lengthSquared(),m=c.lengthSquared(),x=p.lengthSquared(),E=.5*h.length()*l.length()*c.length()/_,A=n.Vector3.Dot(h,c),M=n.Vector3.Dot(h,l),w=n.Vector3.Dot(l,c),P=t.scale(-.5*d*A/x).add(e.scale(-.5*m*M/x)).add(s.scale(-.5*g*w/x)),y=t.subtract(P).normalize(),f=n.Vector3.Cross(p,y).normalize();if(a){let e=2*Math.PI/i;for(let t=0;t<=2*Math.PI;t+=e)o.push(P.add(y.scale(E*Math.cos(t)).add(f.scale(E*Math.sin(t)))));o.push(t)}else{let e,n=1/i,a=0;do e=P.add(y.scale(E*Math.cos(a)).add(f.scale(E*Math.sin(a)))),o.push(e),a+=n;while(!e.equalsWithEpsilon(s,E*n*1.1))o.push(s),r&&o.push(t)}return new u(o)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(t){let e=this._points[this._points.length-1],s=this._points.slice(),i=t.getPoints();for(let t=1;t<i.length;t++)s.push(i[t].subtract(i[0]).add(e));return new u(s)}_computeLength(t){let e=0;for(let s=1;s<t.length;s++)e+=t[s].subtract(t[s-1]).length();return e}}t.s(["Angle",0,a,"Arc2",0,o,"BezierCurve",0,class{static Interpolate(t,e,s,i,n){if(0===t)return 0;let r=1-3*i+3*e,a=3*i-6*e,o=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,s=e*h*r+a*e+o*h,i=1/(3*r*e+2*a*h+o);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,u,"Orientation",0,s,"Path2",0,h,"Path3D",0,l])},40780,t=>{"use strict";var e=t.i(29667);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,a=Math.floor(Math.log(-(t*r)*(1-s)+1)/Math.log(s)),o=(1-Math.pow(s,a))/(n*r),h=(o+(1-Math.pow(s,a+1))/(n*r))*.5,l=t-h,u=h-o;return-Math.pow(1/s,e-a)/(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)}}])},63912,t=>{"use strict";var e,s,i=t.i(40780),n=t.i(17884),r=t.i(75105),a=t.i(44520);(e=s||(s={}))[e.CircleEase=0]="CircleEase",e[e.BackEase=1]="BackEase",e[e.BounceEase=2]="BounceEase",e[e.CubicEase=3]="CubicEase",e[e.ElasticEase=4]="ElasticEase",e[e.ExponentialEase=5]="ExponentialEase",e[e.PowerEase=6]="PowerEase",e[e.QuadraticEase=7]="QuadraticEase",e[e.QuarticEase=8]="QuarticEase",e[e.QuinticEase=9]="QuinticEase",e[e.SineEase=10]="SineEase",e[e.BezierCurveEase=11]="BezierCurveEase";class o extends n.FlowGraphBlock{constructor(t){super(t),this.config=t,this._easingFunctions={},this.type=this.registerDataInput("type",r.RichTypeAny,11),this.mode=this.registerDataInput("mode",r.RichTypeNumber,0),this.parameters=this.registerDataInput("parameters",r.RichTypeAny,[1,0,0,1]),this.easingFunction=this.registerDataOutput("easingFunction",r.RichTypeAny)}_updateOutputs(t){let e=this.type.getValue(t),s=this.mode.getValue(t),n=this.parameters.getValue(t);if(void 0===e||void 0===s)return;let r=`${e}-${s}-${n.join("-")}`;if(!this._easingFunctions[r]){let t=function(t,...e){switch(t){case 11:return new i.BezierCurveEase(...e);case 0:return new i.CircleEase;case 1:return new i.BackEase(...e);case 2:return new i.BounceEase(...e);case 3:return new i.CubicEase;case 4:return new i.ElasticEase(...e);case 5:return new i.ExponentialEase(...e);default:throw Error("Easing type not yet implemented")}}(e,...n);t.setEasingMode(s),this._easingFunctions[r]=t}this.easingFunction.setValue(this._easingFunctions[r],t)}getClassName(){return"FlowGraphEasingBlock"}}let h=!1;function l(){h||(h=!0,(0,a.RegisterClass)("FlowGraphEasingBlock",o))}t.s(["EasingFunctionType",0,s,"FlowGraphEasingBlock",0,o,"RegisterFlowGraphEasingBlock",0,l],99463),l(),t.s([],19035),t.i(19035),t.i(99463),t.s(["FlowGraphEasingBlock",0,o],63912)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22001,18718,42166,41991,e=>{"use strict";let t,r,i,o,n,a,s,l,g,c,h,u,_,m,p,y,T,x,b,f,d,M;var j,P,L=e.i(8265),C=e.i(69400),N=e.i(8829),v=e.i(19919),R=e.i(57575),w=e.i(9855),A=e.i(90160),D=e.i(26924);let S=(n=A.Light,a=[],j=class extends n{constructor(){super(...arguments),this._position=(0,R.__runInitializers)(this,a),this._needProjectionMatrixCompute=!0,this._viewMatrix=C.Matrix.Identity(),this._projectionMatrix=C.Matrix.Identity()}_setPosition(e){this._position=e}get position(){return this._position}set position(e){this._setPosition(e)}_setDirection(e){this._direction=e}get direction(){return this._direction}set direction(e){this._setDirection(e)}get shadowMinZ(){return this._shadowMinZ}set shadowMinZ(e){this._shadowMinZ=e,this.forceProjectionMatrixCompute()}get shadowMaxZ(){return this._shadowMaxZ}set shadowMaxZ(e){this._shadowMaxZ=e,this.forceProjectionMatrixCompute()}computeTransformedInformation(){return!!this.parent&&!!this.parent.getWorldMatrix&&(this.transformedPosition||(this.transformedPosition=C.Vector3.Zero()),C.Vector3.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this.transformedPosition),this.direction&&(this.transformedDirection||(this.transformedDirection=C.Vector3.Zero()),C.Vector3.TransformNormalToRef(this.direction,this.parent.getWorldMatrix(),this.transformedDirection)),!0)}getDepthScale(){return 50}getShadowDirection(e){return this.transformedDirection?this.transformedDirection:this.direction}getAbsolutePosition(){return this.transformedPosition?this.transformedPosition:this.position}setDirectionToTarget(e){return this.direction=C.Vector3.Normalize(e.subtract(this.position)),this.direction}getRotation(){this.direction.normalize();let e=C.Vector3.Cross(this.direction,D.Axis.Y),t=C.Vector3.Cross(e,this.direction);return C.Vector3.RotationFromAxis(e,t,this.direction)}needCube(){return!1}needProjectionMatrixCompute(){return this._needProjectionMatrixCompute}forceProjectionMatrixCompute(){this._needProjectionMatrixCompute=!0}_initCache(){super._initCache(),this._cache.position=C.Vector3.Zero()}_isSynchronized(){return!!this._cache.position.equals(this.position)}computeWorldMatrix(e){return!e&&this.isSynchronized()?this._currentRenderId=this.getScene().getRenderId():(this._updateCache(),this._cache.position.copyFrom(this.position),this._worldMatrix||(this._worldMatrix=C.Matrix.Identity()),C.Matrix.TranslationToRef(this.position.x,this.position.y,this.position.z,this._worldMatrix),this.parent&&this.parent.getWorldMatrix&&(this._worldMatrix.multiplyToRef(this.parent.getWorldMatrix(),this._worldMatrix),this._markSyncedWithParent()),this._worldMatrixDeterminantIsDirty=!0),this._worldMatrix}getDepthMinZ(e){return void 0!==this.shadowMinZ?this.shadowMinZ:e?.minZ||0}getDepthMaxZ(e){return void 0!==this.shadowMaxZ?this.shadowMaxZ:e?.maxZ||1e4}setShadowProjectionMatrix(e,t,r){return this.customProjectionMatrixBuilder?this.customProjectionMatrixBuilder(t,r,e):this._setDefaultShadowProjectionMatrix(e,t,r),this}_syncParentEnabledState(){super._syncParentEnabledState(),this.parent&&this.parent.getWorldMatrix||(this.transformedPosition=null,this.transformedDirection=null)}getViewMatrix(e){let t=C.TmpVectors.Vector3[0],r=this.position;this.computeTransformedInformation()&&(r=this.transformedPosition),C.Vector3.NormalizeToRef(this.getShadowDirection(e),t),1===Math.abs(C.Vector3.Dot(t,C.Vector3.Up()))&&(t.z=1e-13);let i=C.TmpVectors.Vector3[1];return r.addToRef(t,i),C.Matrix.LookAtLHToRef(r,i,C.Vector3.Up(),this._viewMatrix),this._viewMatrix}getProjectionMatrix(e,t){return this.setShadowProjectionMatrix(this._projectionMatrix,e??this._viewMatrix,t??[]),this._projectionMatrix}},s="function"==typeof Symbol&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0,t=[(0,w.serializeAsVector3)()],r=[(0,w.serializeAsVector3)()],i=[(0,w.serialize)()],o=[(0,w.serialize)()],(0,R.__esDecorate)(j,null,t,{kind:"getter",name:"position",static:!1,private:!1,access:{has:e=>"position"in e,get:e=>e.position},metadata:s},null,a),(0,R.__esDecorate)(j,null,r,{kind:"getter",name:"direction",static:!1,private:!1,access:{has:e=>"direction"in e,get:e=>e.direction},metadata:s},null,a),(0,R.__esDecorate)(j,null,i,{kind:"getter",name:"shadowMinZ",static:!1,private:!1,access:{has:e=>"shadowMinZ"in e,get:e=>e.shadowMinZ},metadata:s},null,a),(0,R.__esDecorate)(j,null,o,{kind:"getter",name:"shadowMaxZ",static:!1,private:!1,access:{has:e=>"shadowMaxZ"in e,get:e=>e.shadowMaxZ},metadata:s},null,a),s&&Object.defineProperty(j,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),j);e.s(["ShadowLight",0,S],18718);var V=e.i(20363),F=e.i(52624),Z=e.i(44520);let I=(y=S,T=[],x=[],b=[],f=[],d=[],P=class extends y{get iesProfileTexture(){return this._iesProfileTexture}set iesProfileTexture(e){this._iesProfileTexture!==e&&(this._iesProfileTexture=e,this._iesProfileTexture&&P._IsTexture(this._iesProfileTexture)&&this._iesProfileTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()}))}get angle(){return this._angle}set angle(e){this._angle=e,this._cosHalfAngle=Math.cos(.5*e),this._projectionTextureProjectionLightDirty=!0,this.forceProjectionMatrixCompute(),this._computeAngleValues()}get innerAngle(){return this._innerAngle}set innerAngle(e){this._innerAngle=e,this._computeAngleValues()}get shadowAngleScale(){return this._shadowAngleScale}set shadowAngleScale(e){this._shadowAngleScale=e,this.forceProjectionMatrixCompute()}get projectionTextureMatrix(){return this._projectionTextureMatrix}get projectionTextureLightNear(){return this._projectionTextureLightNear}set projectionTextureLightNear(e){this._projectionTextureLightNear=e,this._projectionTextureProjectionLightDirty=!0}get projectionTextureLightFar(){return this._projectionTextureLightFar}set projectionTextureLightFar(e){this._projectionTextureLightFar=e,this._projectionTextureProjectionLightDirty=!0}get projectionTextureUpDirection(){return this._projectionTextureUpDirection}set projectionTextureUpDirection(e){this._projectionTextureUpDirection=e,this._projectionTextureProjectionLightDirty=!0}get projectionTexture(){return this._projectionTexture}set projectionTexture(e){this._projectionTexture!==e&&(this._projectionTexture=e,this._projectionTextureDirty=!0,this._projectionTexture&&!this._projectionTexture.isReady()&&(P._IsProceduralTexture(this._projectionTexture)?this._projectionTexture.getEffect().executeWhenCompiled(()=>{this._markMeshesAsLightDirty()}):P._IsTexture(this._projectionTexture)&&this._projectionTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()})))}static _IsProceduralTexture(e){return void 0!==e.onGeneratedObservable}static _IsTexture(e){return void 0!==e.onLoadObservable}get projectionTextureProjectionLightMatrix(){return this._projectionTextureProjectionLightMatrix}set projectionTextureProjectionLightMatrix(e){this._projectionTextureProjectionLightMatrix=e,this._projectionTextureProjectionLightDirty=!1,this._projectionTextureDirty=!0}constructor(e,t,r,i,o,n,a){super(e,n,a),this._angle=(0,R.__runInitializers)(this,T),this._innerAngle=0,this._iesProfileTexture=null,this.exponent=(0,R.__runInitializers)(this,x,void 0),this._projectionTextureMatrix=((0,R.__runInitializers)(this,b),C.Matrix.Zero()),this._projectionTextureLightNear=1e-6,this._projectionTextureLightFar=1e3,this._projectionTextureUpDirection=C.Vector3.Up(),this._projectionTexture=(0,R.__runInitializers)(this,f,void 0),this._projectionTextureViewLightDirty=((0,R.__runInitializers)(this,d),!0),this._projectionTextureProjectionLightDirty=!0,this._projectionTextureDirty=!0,this._projectionTextureViewTargetVector=C.Vector3.Zero(),this._projectionTextureViewLightMatrix=C.Matrix.Zero(),this._projectionTextureProjectionLightMatrix=C.Matrix.Zero(),this._projectionTextureScalingMatrix=C.Matrix.FromValues(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1),this.position=t,this.direction=r,this.angle=i,this.exponent=o}getClassName(){return"SpotLight"}getTypeID(){return A.Light.LIGHTTYPEID_SPOTLIGHT}_setDirection(e){super._setDirection(e),this._projectionTextureViewLightDirty=!0}_setPosition(e){super._setPosition(e),this._projectionTextureViewLightDirty=!0}_setDefaultShadowProjectionMatrix(e,t,r){let i=this.getScene().activeCamera;if(!i)return;this._shadowAngleScale=this._shadowAngleScale||1;let o=this._shadowAngleScale*this._angle,n=void 0!==this.shadowMinZ?this.shadowMinZ:i.minZ,a=void 0!==this.shadowMaxZ?this.shadowMaxZ:i.maxZ,s=this.getScene().getEngine().useReverseDepthBuffer;C.Matrix.PerspectiveFovLHToRef(o,1,s?a:n,s?n:a,e,!0,this._scene.getEngine().isNDCHalfZRange,void 0,s)}_computeProjectionTextureViewLightMatrix(){this._projectionTextureViewLightDirty=!1,this._projectionTextureDirty=!0,this.getAbsolutePosition().addToRef(this.getShadowDirection(),this._projectionTextureViewTargetVector),C.Matrix.LookAtLHToRef(this.getAbsolutePosition(),this._projectionTextureViewTargetVector,this._projectionTextureUpDirection,this._projectionTextureViewLightMatrix)}_computeProjectionTextureProjectionLightMatrix(){this._projectionTextureProjectionLightDirty=!1,this._projectionTextureDirty=!0;let e=this.projectionTextureLightFar,t=this.projectionTextureLightNear,r=e/(e-t),i=1/Math.tan(this._angle/2);C.Matrix.FromValuesToRef(i/1,0,0,0,0,i,0,0,0,0,r,1,0,0,-r*t,0,this._projectionTextureProjectionLightMatrix)}_computeProjectionTextureMatrix(){if(this._projectionTextureDirty=!1,this._projectionTextureViewLightMatrix.multiplyToRef(this._projectionTextureProjectionLightMatrix,this._projectionTextureMatrix),this._projectionTexture instanceof V.Texture){let e=this._projectionTexture.uScale/2,t=this._projectionTexture.vScale/2;C.Matrix.FromValuesToRef(e,0,0,0,0,t,0,0,0,0,.5,0,.5,.5,.5,1,this._projectionTextureScalingMatrix)}this._projectionTextureMatrix.multiplyToRef(this._projectionTextureScalingMatrix,this._projectionTextureMatrix)}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightDirection",3),this._uniformBuffer.addUniform("vLightFalloff",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeAngleValues(){this._lightAngleScale=1/Math.max(.001,Math.cos(.5*this._innerAngle)-this._cosHalfAngle),this._lightAngleOffset=-this._cosHalfAngle*this._lightAngleScale}transferTexturesToEffect(e,t){return this.projectionTexture&&this.projectionTexture.isReady()&&(this._projectionTextureViewLightDirty&&this._computeProjectionTextureViewLightMatrix(),this._projectionTextureProjectionLightDirty&&this._computeProjectionTextureProjectionLightMatrix(),this._projectionTextureDirty&&this._computeProjectionTextureMatrix(),e.setMatrix("textureProjectionMatrix"+t,this._projectionTextureMatrix),e.setTexture("projectionLightTexture"+t,this.projectionTexture)),this._iesProfileTexture&&this._iesProfileTexture.isReady()&&e.setTexture("iesLightTexture"+t,this._iesProfileTexture),this}transferToEffect(e,t){let r,i=this._scene.floatingOriginOffset;return this.computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this.transformedPosition.x-i.x,this.transformedPosition.y-i.y,this.transformedPosition.z-i.z,this.exponent,t),r=C.Vector3.Normalize(this.transformedDirection)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-i.x,this.position.y-i.y,this.position.z-i.z,this.exponent,t),r=C.Vector3.Normalize(this.direction)),this._uniformBuffer.updateFloat4("vLightDirection",r.x,r.y,r.z,this._cosHalfAngle,t),this._uniformBuffer.updateFloat4("vLightFalloff",this.range,this._inverseSquaredRange,this._lightAngleScale,this._lightAngleOffset,t),this}transferToNodeMaterialEffect(e,t){let r;return r=this.computeTransformedInformation()?C.Vector3.Normalize(this.transformedDirection):C.Vector3.Normalize(this.direction),this.getScene().useRightHandedSystem?e.setFloat3(t,-r.x,-r.y,-r.z):e.setFloat3(t,r.x,r.y,r.z),this}dispose(){super.dispose(),this._projectionTexture&&this._projectionTexture.dispose(),this._iesProfileTexture&&(this._iesProfileTexture.dispose(),this._iesProfileTexture=null)}getDepthMinZ(e){let t=this._scene.getEngine(),r=void 0!==this.shadowMinZ?this.shadowMinZ:e?.minZ??0;return t.useReverseDepthBuffer&&t.isNDCHalfZRange?r:this._scene.getEngine().isNDCHalfZRange?0:r}getDepthMaxZ(e){let t=this._scene.getEngine(),r=void 0!==this.shadowMaxZ?this.shadowMaxZ:e?.maxZ??1e4;return t.useReverseDepthBuffer&&t.isNDCHalfZRange?0:r}areLightTexturesReady(){return(!this._projectionTexture||!!this._projectionTexture.isReadyOrNotBlocking())&&(!this._iesProfileTexture||!!this._iesProfileTexture.isReadyOrNotBlocking())}prepareLightSpecificDefines(e,t){e["SPOTLIGHT"+t]=!0,e["PROJECTEDLIGHTTEXTURE"+t]=!!(this.projectionTexture&&this.projectionTexture.isReady()),e["IESLIGHTTEXTURE"+t]=!!(this._iesProfileTexture&&this._iesProfileTexture.isReady())}},M="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0,l=[(0,w.serialize)()],g=[(0,w.serialize)()],c=[(0,w.serialize)()],h=[(0,w.serialize)()],u=[(0,w.serialize)()],_=[(0,w.serialize)()],m=[(0,w.serialize)()],p=[(0,w.serializeAsTexture)("projectedLightTexture")],(0,R.__esDecorate)(P,null,l,{kind:"getter",name:"angle",static:!1,private:!1,access:{has:e=>"angle"in e,get:e=>e.angle},metadata:M},null,T),(0,R.__esDecorate)(P,null,g,{kind:"getter",name:"innerAngle",static:!1,private:!1,access:{has:e=>"innerAngle"in e,get:e=>e.innerAngle},metadata:M},null,T),(0,R.__esDecorate)(P,null,c,{kind:"getter",name:"shadowAngleScale",static:!1,private:!1,access:{has:e=>"shadowAngleScale"in e,get:e=>e.shadowAngleScale},metadata:M},null,T),(0,R.__esDecorate)(P,null,u,{kind:"getter",name:"projectionTextureLightNear",static:!1,private:!1,access:{has:e=>"projectionTextureLightNear"in e,get:e=>e.projectionTextureLightNear},metadata:M},null,T),(0,R.__esDecorate)(P,null,_,{kind:"getter",name:"projectionTextureLightFar",static:!1,private:!1,access:{has:e=>"projectionTextureLightFar"in e,get:e=>e.projectionTextureLightFar},metadata:M},null,T),(0,R.__esDecorate)(P,null,m,{kind:"getter",name:"projectionTextureUpDirection",static:!1,private:!1,access:{has:e=>"projectionTextureUpDirection"in e,get:e=>e.projectionTextureUpDirection},metadata:M},null,T),(0,R.__esDecorate)(null,null,h,{kind:"field",name:"exponent",static:!1,private:!1,access:{has:e=>"exponent"in e,get:e=>e.exponent,set:(e,t)=>{e.exponent=t}},metadata:M},x,b),(0,R.__esDecorate)(null,null,p,{kind:"field",name:"_projectionTexture",static:!1,private:!1,access:{has:e=>"_projectionTexture"in e,get:e=>e._projectionTexture,set:(e,t)=>{e._projectionTexture=t}},metadata:M},f,d),M&&Object.defineProperty(P,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:M}),P),H=!1;e.s(["RegisterSpotLight",0,function(){H||(H=!0,F.Node.AddNodeConstructor("Light_Type_2",(e,t)=>()=>new I(e,C.Vector3.Zero(),C.Vector3.Zero(),0,0,t)),(0,Z.RegisterClass)("BABYLON.SpotLight",I))},"SpotLight",0,I],42166);let O=[{regex:RegExp("^/nodes/\\d+/extensions/")}];class z{constructor(e,t){this._gltf=e,this._infoTree=t}convert(e){let t,r=this._gltf,i=this._infoTree;if(!e.startsWith("/"))throw Error("Path must start with a /");let o=e.split("/");if(o.shift(),o[o.length-1].includes(".length")){let e=o[o.length-1].split(".");o.pop(),o.push(...e)}let n=!1;for(let a of o){let o="length"===a;if(o&&!i.__array__)throw Error(`Path ${e} is invalid`);if(i.__ignoreObjectTree__&&(n=!0),i.__array__&&!o)i=i.__array__;else if(!(i=i[a]))throw Error(`Path ${e} is invalid`);if(!n)if(void 0===r){if(!O.find(t=>t.regex.test(e)))throw Error(`Path ${e} is invalid`)}else o||(r=r?.[a]);(i.__target__||o)&&(t=r)}return{object:t,info:i}}}function K(e,t,r,i){let o=E(e,t);return i?o[r][i]:o[r]}function E(e,t,r){return e._data?.[r?.fillMode??N.Constants.MATERIAL_TriangleFillMode]?.babylonMaterial}function k(e,t){return{offset:{componentsCount:2,type:"Vector2",get:(r,i,o)=>{let n=K(r,o,e,t);return new C.Vector2(n?.uOffset,n?.vOffset)},getTarget:E,set:(r,i,o,n)=>{let a=K(i,n,e,t);a.uOffset=r.x,a.vOffset=r.y},getPropertyName:[()=>`${e}${t?"."+t:""}.uOffset`,()=>`${e}${t?"."+t:""}.vOffset`]},rotation:{type:"number",get:(r,i,o)=>K(r,o,e,t)?.wAng,getTarget:E,set:(r,i,o,n)=>K(i,n,e,t).wAng=r,getPropertyName:[()=>`${e}${t?"."+t:""}.wAng`]},scale:{componentsCount:2,type:"Vector2",get:(r,i,o)=>{let n=K(r,o,e,t);return new C.Vector2(n?.uScale,n?.vScale)},getTarget:E,set:(r,i,o,n)=>{let a=K(i,n,e,t);a.uScale=r.x,a.vScale=r.y},getPropertyName:[()=>`${e}${t?"."+t:""}.uScale`,()=>`${e}${t?"."+t:""}.vScale`]}}}let B={cameras:{__array__:{__target__:!0,orthographic:{xmag:{componentsCount:2,type:"Vector2",get:e=>new C.Vector2(e._babylonCamera?.orthoLeft??0,e._babylonCamera?.orthoRight??0),set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.orthoLeft=e.x,t._babylonCamera.orthoRight=e.y)},getTarget:e=>e,getPropertyName:[()=>"orthoLeft",()=>"orthoRight"]},ymag:{componentsCount:2,type:"Vector2",get:e=>new C.Vector2(e._babylonCamera?.orthoBottom??0,e._babylonCamera?.orthoTop??0),set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.orthoBottom=e.x,t._babylonCamera.orthoTop=e.y)},getTarget:e=>e,getPropertyName:[()=>"orthoBottom",()=>"orthoTop"]},zfar:{type:"number",get:e=>e._babylonCamera?.maxZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.maxZ=e)},getTarget:e=>e,getPropertyName:[()=>"maxZ"]},znear:{type:"number",get:e=>e._babylonCamera?.minZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.minZ=e)},getTarget:e=>e,getPropertyName:[()=>"minZ"]}},perspective:{aspectRatio:{type:"number",get:e=>e._babylonCamera?.getEngine().getAspectRatio(e._babylonCamera),getTarget:e=>e,getPropertyName:[()=>"aspectRatio"],isReadOnly:!0},yfov:{type:"number",get:e=>e._babylonCamera?.fov,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.fov=e)},getTarget:e=>e,getPropertyName:[()=>"fov"]},zfar:{type:"number",get:e=>e._babylonCamera?.maxZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.maxZ=e)},getTarget:e=>e,getPropertyName:[()=>"maxZ"]},znear:{type:"number",get:e=>e._babylonCamera?.minZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.minZ=e)},getTarget:e=>e,getPropertyName:[()=>"minZ"]}}}},nodes:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonTransformNode),getPropertyName:[()=>"length"]},__array__:{__target__:!0,translation:{type:"Vector3",get:e=>e._babylonTransformNode?.position,set:(e,t)=>t._babylonTransformNode?.position.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"position"]},rotation:{type:"Quaternion",get:e=>e._babylonTransformNode?.rotationQuaternion,set:(e,t)=>t._babylonTransformNode?.rotationQuaternion?.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"rotationQuaternion"]},scale:{type:"Vector3",get:e=>e._babylonTransformNode?.scaling,set:(e,t)=>t._babylonTransformNode?.scaling.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"scaling"]},weights:{length:{type:"number",get:e=>e._numMorphTargets,getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"influence"]},__array__:{__target__:!0,type:"number",get:(e,t)=>void 0!==t?e._primitiveBabylonMeshes?.[0].morphTargetManager?.getTarget(t).influence:void 0,getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"influence"]},type:"number[]",get:(e,t)=>[0],getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"influence"]},matrix:{type:"Matrix",get:e=>C.Matrix.Compose(e._babylonTransformNode?.scaling,e._babylonTransformNode?.rotationQuaternion,e._babylonTransformNode?.position),getTarget:e=>e._babylonTransformNode,isReadOnly:!0},globalMatrix:{type:"Matrix",get:e=>{let t=C.Matrix.Identity(),r=e.parent;for(;r&&r.parent;)r=r.parent;let i=e._babylonTransformNode?.position._isDirty||e._babylonTransformNode?.rotationQuaternion?._isDirty||e._babylonTransformNode?.scaling._isDirty;if(r){let o=r._babylonTransformNode?.computeWorldMatrix(!0).invert();o&&e._babylonTransformNode?.computeWorldMatrix(i)?.multiplyToRef(o,t)}else e._babylonTransformNode&&t.copyFrom(e._babylonTransformNode.computeWorldMatrix(i));return t},getTarget:e=>e._babylonTransformNode,isReadOnly:!0},extensions:{EXT_lights_ies:{multiplier:{type:"number",get:e=>e._babylonTransformNode?.getChildren(e=>e instanceof I,!0)[0]?.intensity,getTarget:e=>e._babylonTransformNode?.getChildren(e=>e instanceof I,!0)[0],set:(e,t)=>{if(t._babylonTransformNode){let r=t._babylonTransformNode.getChildren(e=>e instanceof I,!0)[0];r&&(r.intensity=e)}}},color:{type:"Color3",get:e=>e._babylonTransformNode?.getChildren(e=>e instanceof I,!0)[0]?.diffuse,getTarget:e=>e._babylonTransformNode?.getChildren(e=>e instanceof I,!0)[0],set:(e,t)=>{if(t._babylonTransformNode){let r=t._babylonTransformNode.getChildren(e=>e instanceof I,!0)[0];r&&(r.diffuse=e)}}}},KHR_node_visibility:{visible:{type:"boolean",get:e=>!!e._primitiveBabylonMeshes&&e._primitiveBabylonMeshes[0].isVisible,getTarget:()=>void 0,set:(e,t)=>{t._primitiveBabylonMeshes&&t._primitiveBabylonMeshes.forEach(t=>t.isVisible=e)}}}}}},materials:{__array__:{__target__:!0,emissiveFactor:{type:"Color3",get:(e,t,r)=>E(e,t,r).emissiveColor,set:(e,t,r,i)=>E(t,r,i).emissiveColor.copyFrom(e),getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"emissiveColor"]},emissiveTexture:{extensions:{KHR_texture_transform:k("emissiveTexture")}},normalTexture:{scale:{type:"number",get:(e,t,r)=>K(e,r,"bumpTexture")?.level,set:(e,t,r,i)=>{let o=K(t,i,"bumpTexture");o&&(o.level=e)},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"level"]},extensions:{KHR_texture_transform:k("bumpTexture")}},occlusionTexture:{strength:{type:"number",get:(e,t,r)=>E(e,t,r).ambientTextureStrength,set:(e,t,r,i)=>{let o=E(t,r,i);o&&(o.ambientTextureStrength=e)},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"ambientTextureStrength"]},extensions:{KHR_texture_transform:k("ambientTexture")}},pbrMetallicRoughness:{baseColorFactor:{type:"Color4",get:(e,t,r)=>{let i=E(e,t,r);return v.Color4.FromColor3(i.albedoColor,i.alpha)},set:(e,t,r,i)=>{let o=E(t,r,i);o.albedoColor.set(e.r,e.g,e.b),o.alpha=e.a},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"albedoColor",()=>"alpha"]},baseColorTexture:{extensions:{KHR_texture_transform:k("albedoTexture")}},metallicFactor:{type:"number",get:(e,t,r)=>E(e,t,r).metallic,set:(e,t,r,i)=>{let o=E(t,r,i);o&&(o.metallic=e)},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"metallic"]},roughnessFactor:{type:"number",get:(e,t,r)=>E(e,t,r).roughness,set:(e,t,r,i)=>{let o=E(t,r,i);o&&(o.roughness=e)},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"roughness"]},metallicRoughnessTexture:{extensions:{KHR_texture_transform:k("metallicTexture")}}},extensions:{KHR_materials_anisotropy:{anisotropyStrength:{type:"number",get:(e,t,r)=>E(e,t,r).anisotropy.intensity,set:(e,t,r,i)=>{E(t,r,i).anisotropy.intensity=e},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"anisotropy.intensity"]},anisotropyRotation:{type:"number",get:(e,t,r)=>E(e,t,r).anisotropy.angle,set:(e,t,r,i)=>{E(t,r,i).anisotropy.angle=e},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"anisotropy.angle"]},anisotropyTexture:{extensions:{KHR_texture_transform:k("anisotropy","texture")}}},KHR_materials_clearcoat:{clearcoatFactor:{type:"number",get:(e,t,r)=>E(e,t,r).clearCoat.intensity,set:(e,t,r,i)=>{E(t,r,i).clearCoat.intensity=e},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"clearCoat.intensity"]},clearcoatRoughnessFactor:{type:"number",get:(e,t,r)=>E(e,t,r).clearCoat.roughness,set:(e,t,r,i)=>{E(t,r,i).clearCoat.roughness=e},getTarget:(e,t,r)=>E(e,t,r),getPropertyName:[()=>"clearCoat.roughness"]},clearcoatTexture:{extensions:{KHR_texture_transform:k("clearCoat","texture")}},clearcoatNormalTexture:{scale:{type:"number",get:(e,t,r)=>E(e,t,r).clearCoat.bumpTexture?.level,getTarget:E,set:(e,t,r,i)=>E(t,r,i).clearCoat.bumpTexture.level=e},extensions:{KHR_texture_transform:k("clearCoat","bumpTexture")}},clearcoatRoughnessTexture:{extensions:{KHR_texture_transform:k("clearCoat","textureRoughness")}}},KHR_materials_dispersion:{dispersion:{type:"number",get:(e,t,r)=>E(e,t,r).subSurface.dispersion,getTarget:E,set:(e,t,r,i)=>E(t,r,i).subSurface.dispersion=e}},KHR_materials_emissive_strength:{emissiveStrength:{type:"number",get:(e,t,r)=>E(e,t,r).emissiveIntensity,getTarget:E,set:(e,t,r,i)=>E(t,r,i).emissiveIntensity=e}},KHR_materials_ior:{ior:{type:"number",get:(e,t,r)=>E(e,t,r).indexOfRefraction,getTarget:E,set:(e,t,r,i)=>E(t,r,i).indexOfRefraction=e}},KHR_materials_iridescence:{iridescenceFactor:{type:"number",get:(e,t,r)=>E(e,t,r).iridescence.intensity,getTarget:E,set:(e,t,r,i)=>E(t,r,i).iridescence.intensity=e},iridescenceIor:{type:"number",get:(e,t,r)=>E(e,t,r).iridescence.indexOfRefraction,getTarget:E,set:(e,t,r,i)=>E(t,r,i).iridescence.indexOfRefraction=e},iridescenceTexture:{extensions:{KHR_texture_transform:k("iridescence","texture")}},iridescenceThicknessMaximum:{type:"number",get:(e,t,r)=>E(e,t,r).iridescence.maximumThickness,getTarget:E,set:(e,t,r,i)=>E(t,r,i).iridescence.maximumThickness=e},iridescenceThicknessMinimum:{type:"number",get:(e,t,r)=>E(e,t,r).iridescence.minimumThickness,getTarget:E,set:(e,t,r,i)=>E(t,r,i).iridescence.minimumThickness=e},iridescenceThicknessTexture:{extensions:{KHR_texture_transform:k("iridescence","thicknessTexture")}}},KHR_materials_sheen:{sheenColorFactor:{type:"Color3",get:(e,t,r)=>E(e,t,r).sheen.color,getTarget:E,set:(e,t,r,i)=>E(t,r,i).sheen.color.copyFrom(e)},sheenColorTexture:{extensions:{KHR_texture_transform:k("sheen","texture")}},sheenRoughnessFactor:{type:"number",get:(e,t,r)=>E(e,t,r).sheen.intensity,getTarget:E,set:(e,t,r,i)=>E(t,r,i).sheen.intensity=e},sheenRoughnessTexture:{extensions:{KHR_texture_transform:k("sheen","thicknessTexture")}}},KHR_materials_specular:{specularFactor:{type:"number",get:(e,t,r)=>E(e,t,r).metallicF0Factor,getTarget:E,set:(e,t,r,i)=>E(t,r,i).metallicF0Factor=e,getPropertyName:[()=>"metallicF0Factor"]},specularColorFactor:{type:"Color3",get:(e,t,r)=>E(e,t,r).metallicReflectanceColor,getTarget:E,set:(e,t,r,i)=>E(t,r,i).metallicReflectanceColor.copyFrom(e),getPropertyName:[()=>"metallicReflectanceColor"]},specularTexture:{extensions:{KHR_texture_transform:k("metallicReflectanceTexture")}},specularColorTexture:{extensions:{KHR_texture_transform:k("reflectanceTexture")}}},KHR_materials_transmission:{transmissionFactor:{type:"number",get:(e,t,r)=>E(e,t,r).subSurface.refractionIntensity,getTarget:E,set:(e,t,r,i)=>E(t,r,i).subSurface.refractionIntensity=e,getPropertyName:[()=>"subSurface.refractionIntensity"]},transmissionTexture:{extensions:{KHR_texture_transform:k("subSurface","refractionIntensityTexture")}}},KHR_materials_diffuse_transmission:{diffuseTransmissionFactor:{type:"number",get:(e,t,r)=>E(e,t,r).subSurface.translucencyIntensity,getTarget:E,set:(e,t,r,i)=>E(t,r,i).subSurface.translucencyIntensity=e},diffuseTransmissionTexture:{extensions:{KHR_texture_transform:k("subSurface","translucencyIntensityTexture")}},diffuseTransmissionColorFactor:{type:"Color3",get:(e,t,r)=>E(e,t,r).subSurface.translucencyColor,getTarget:E,set:(e,t,r,i)=>e&&E(t,r,i).subSurface.translucencyColor?.copyFrom(e)},diffuseTransmissionColorTexture:{extensions:{KHR_texture_transform:k("subSurface","translucencyColorTexture")}}},KHR_materials_volume:{attenuationColor:{type:"Color3",get:(e,t,r)=>E(e,t,r).subSurface.tintColor,getTarget:E,set:(e,t,r,i)=>E(t,r,i).subSurface.tintColor.copyFrom(e)},attenuationDistance:{type:"number",get:(e,t,r)=>E(e,t,r).subSurface.tintColorAtDistance,getTarget:E,set:(e,t,r,i)=>E(t,r,i).subSurface.tintColorAtDistance=e},thicknessFactor:{type:"number",get:(e,t,r)=>E(e,t,r).subSurface.maximumThickness,getTarget:E,set:(e,t,r,i)=>E(t,r,i).subSurface.maximumThickness=e},thicknessTexture:{extensions:{KHR_texture_transform:k("subSurface","thicknessTexture")}}}}}},extensions:{KHR_lights_punctual:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonLight),getPropertyName:[e=>"length"]},__array__:{__target__:!0,color:{type:"Color3",get:e=>e._babylonLight?.diffuse,set:(e,t)=>t._babylonLight?.diffuse.copyFrom(e),getTarget:e=>e._babylonLight,getPropertyName:[e=>"diffuse"]},intensity:{type:"number",get:e=>e._babylonLight?.intensity,set:(e,t)=>t._babylonLight?t._babylonLight.intensity=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"intensity"]},range:{type:"number",get:e=>e._babylonLight?.range,set:(e,t)=>t._babylonLight?t._babylonLight.range=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"range"]},spot:{innerConeAngle:{type:"number",get:e=>e._babylonLight?.innerAngle,set:(e,t)=>t._babylonLight?t._babylonLight.innerAngle=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"innerConeAngle"]},outerConeAngle:{type:"number",get:e=>e._babylonLight?.angle,set:(e,t)=>t._babylonLight?t._babylonLight.angle=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"outerConeAngle"]}}}}},EXT_lights_area:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonLight),getPropertyName:[e=>"length"]},__array__:{__target__:!0,color:{type:"Color3",get:e=>e._babylonLight?.diffuse,set:(e,t)=>t._babylonLight?.diffuse.copyFrom(e),getTarget:e=>e._babylonLight,getPropertyName:[e=>"diffuse"]},intensity:{type:"number",get:e=>e._babylonLight?.intensity,set:(e,t)=>t._babylonLight?t._babylonLight.intensity=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"intensity"]},size:{type:"number",get:e=>e._babylonLight?.height,set:(e,t)=>t._babylonLight?t._babylonLight.height=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"size"]},rect:{aspect:{type:"number",get:e=>e._babylonLight?.width/e._babylonLight?.height,set:(e,t)=>t._babylonLight?t._babylonLight.width=e*t._babylonLight.height:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"aspect"]}}}}},EXT_lights_ies:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonLight),getPropertyName:[e=>"length"]}}},EXT_lights_image_based:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonTexture),getPropertyName:[e=>"length"]},__array__:{__target__:!0,intensity:{type:"number",get:e=>e._babylonTexture?.level,set:(e,t)=>{t._babylonTexture&&(t._babylonTexture.level=e)},getTarget:e=>e._babylonTexture},rotation:{type:"Quaternion",get:e=>e._babylonTexture&&C.Quaternion.FromRotationMatrix(e._babylonTexture?.getReflectionTextureMatrix()),set:(e,t)=>{t._babylonTexture&&(t._babylonTexture.getScene()?.useRightHandedSystem||(e=C.Quaternion.Inverse(e)),C.Matrix.FromQuaternionToRef(e,t._babylonTexture.getReflectionTextureMatrix()))},getTarget:e=>e._babylonTexture}}}}},animations:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonAnimationGroup),getPropertyName:[()=>"length"]},__array__:{}},meshes:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e.primitives[0]._instanceData?.babylonSourceMesh),getPropertyName:[()=>"length"]},__array__:{}}};function U(e,t){let r=e.split("/").map(e=>e.replace(/{}/g,"__array__")),i=B;for(let e of r)e&&(i=i[e]);i&&i.type&&i.get&&(i.interpolation=t)}function W(e,t,r,i){return C.Vector3.FromArray(t,r).scaleInPlace(i)}function $(e,t,r,i){return C.Quaternion.FromArray(t,r).scaleInPlace(i)}function Q(e,t,r,i){let o=Array(e._numMorphTargets);for(let e=0;e<o.length;e++)o[e]=t[r++]*i;return o}e.s(["AddObjectAccessorToKey",0,function(e,t){let r=e.split("/").map(e=>e.replace(/{}/g,"__array__")),i=B;for(let e of r)if(e){if(!i[e]){if("?"===e){i.__ignoreObjectTree__=!0;continue}i[e]={},"__array__"===e&&(i[e].__target__=!0)}i=i[e]}Object.assign(i,t)},"GetMappingForKey",0,function(e){let t=e.split("/").map(e=>e.replace(/{}/g,"__array__")),r=B;for(let e of t)e&&(r=r[e]);if(r&&r.type&&r.get)return r},"GetPathToObjectConverter",0,function(e){return new z(e,B)},"SetInterpolationForKey",0,U],41991);class G{constructor(e,t,r,i){this.type=e,this.name=t,this.getValue=r,this.getStride=i}_buildAnimation(e,t,r){let i=new L.Animation(e,this.name,t,this.type);return i.setKeys(r,!0),i}}class Y extends G{buildAnimations(e,t,r,i){let o=[];return o.push({babylonAnimatable:e._babylonTransformNode,babylonAnimation:this._buildAnimation(t,r,i)}),o}}class X extends G{buildAnimations(e,t,r,i){let o=[];if(e._numMorphTargets)for(let n=0;n<e._numMorphTargets;n++){let a=new L.Animation(`${t}_${n}`,this.name,r,this.type);if(a.setKeys(i.map(e=>({frame:e.frame,inTangent:e.inTangent?e.inTangent[n]:void 0,value:e.value[n],outTangent:e.outTangent?e.outTangent[n]:void 0,interpolation:e.interpolation})),!0),e._primitiveBabylonMeshes){for(let t of e._primitiveBabylonMeshes)if(t.morphTargetManager){let e=t.morphTargetManager.getTarget(n),r=a.clone();e.animations.push(r),o.push({babylonAnimatable:e,babylonAnimation:r})}}}return o}}U("/nodes/{}/translation",[new Y(L.Animation.ANIMATIONTYPE_VECTOR3,"position",W,()=>3)]),U("/nodes/{}/rotation",[new Y(L.Animation.ANIMATIONTYPE_QUATERNION,"rotationQuaternion",$,()=>4)]),U("/nodes/{}/scale",[new Y(L.Animation.ANIMATIONTYPE_VECTOR3,"scaling",W,()=>3)]),U("/nodes/{}/weights",[new X(L.Animation.ANIMATIONTYPE_FLOAT,"influence",Q,e=>e._numMorphTargets)]),e.s(["AnimationPropertyInfo",0,G,"TransformNodeAnimationPropertyInfo",0,Y,"WeightAnimationPropertyInfo",0,X,"getQuaternion",0,$,"getVector3",0,W,"getWeights",0,Q],22001)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31688,e=>{"use strict";var t,r,n,l,a,i,o=e.i(80434),u=e.i(90629),s=e.i(6351);function f(e,t){let r=new Uint8Array(e),n=0;for(;0!=r[t.value+n];)n+=1;let l=new TextDecoder().decode(r.slice(t.value,t.value+n));return t.value=t.value+n+1,l}function c(e,t){let r=e.getInt32(t.value,!0);return t.value+=4,r}function h(e,t){let r=e.getUint32(t.value,!0);return t.value+=4,r}function d(e,t){let r=e.getUint8(t.value);return t.value+=1,r}function p(e,t){let r=e.getUint16(t.value,!0);return t.value+=2,r}function y(e,t){let r=e[t.value];return t.value+=1,r}function w(e,t){let r=e.getFloat32(t.value,!0);return t.value+=4,r}function v(e,t){return(0,s.FromHalfFloat)(p(e,t))}function b(e,t){return(0,s.ToHalfFloat)((0,u.Clamp)(w(e,t),-s.MaxHalfFloat,s.MaxHalfFloat))}function S(e){for(let t=1;t<e.length;t++){let r=e[t-1]+e[t]-128;e[t]=r}}function E(e,t){let r=0,n=Math.floor((e.length+1)/2),l=0,a=e.length-1;for(;!(l>a)&&(t[l++]=e[r++],!(l>a));){;t[l++]=e[n++]}}function g(e,t){if(0x1312f76!=e.getUint32(0,!0))throw Error("Incorrect OpenEXR format");let r=e.getUint8(4),n=e.getUint8(5);t.value=8;let l={},i=!0;for(;i;){let r=f(e.buffer,t);if(r){let n=f(e.buffer,t),i=h(e,t),u=function(e,t,r,n){var l;switch(r){case"string":case"stringvector":case"iccProfile":let i;return l=e.buffer,i=new TextDecoder().decode(new Uint8Array(l).slice(t.value,t.value+n)),t.value=t.value+n,i;case"chlist":return function(e,t,r){let n=t.value,l=[];for(;t.value<n+r-1;){let r=f(e.buffer,t),n=c(e,t),a=d(e,t);t.value+=3;let i=c(e,t),o=c(e,t);l.push({name:r,pixelType:n,pLinear:a,xSampling:i,ySampling:o})}return t.value+=1,l}(e,t,n);case"chromaticities":let o,u,s,p,y,v;return o=w(e,t),u=w(e,t),s=w(e,t),p=w(e,t),y=w(e,t),v=w(e,t),{redX:o,redY:u,greenX:s,greenY:p,blueX:y,blueY:v,whiteX:w(e,t),whiteY:w(e,t)};case"compression":return d(e,t);case"box2i":let b,S;return b=c(e,t),S=c(e,t),{xMin:b,yMin:S,xMax:c(e,t),yMax:c(e,t)};case"lineOrder":return a[d(e,t)];case"float":return w(e,t);case"v2f":return[w(e,t),w(e,t)];case"v3f":let E;return E=w(e,t),[E,w(e,t),w(e,t)];case"int":return c(e,t);case"rational":return[c(e,t),h(e,t)];case"timecode":return[h(e,t),h(e,t)];case"preview":return t.value+=n,"skipped";default:t.value+=n;return}}(e,t,n,i);void 0===u?o.Logger.Warn(`Unknown header attribute type ${n}'.`):l[r]=u}else i=!1}if((-5&n)!=0)throw Error("Unsupported file format");return{version:r,spec:{singleTile:!!(2&n),longName:!!(4&n),deepFormat:!!(8&n),multiPart:!!(16&n)},...l}}(t=l||(l={}))[t.NO_COMPRESSION=0]="NO_COMPRESSION",t[t.RLE_COMPRESSION=1]="RLE_COMPRESSION",t[t.ZIPS_COMPRESSION=2]="ZIPS_COMPRESSION",t[t.ZIP_COMPRESSION=3]="ZIP_COMPRESSION",t[t.PIZ_COMPRESSION=4]="PIZ_COMPRESSION",t[t.PXR24_COMPRESSION=5]="PXR24_COMPRESSION",(r=a||(a={}))[r.INCREASING_Y=0]="INCREASING_Y",r[r.DECREASING_Y=1]="DECREASING_Y";function O(e,t,r,n,l){for(;r<e;)t=t<<8|y(n,l),r+=8;return{l:t>>(r-=e)&(1<<e)-1,c:t,lc:r}}function A(e,t,r,n){return{c:e=e<<8|y(r,n),lc:t+=8}}function C(e,t,r,n,l,a,i,o,u){if(e==t){if(n<8){let e=A(r,n,l,a);r=e.c,n=e.lc}let e=r>>(n-=8);if(e=new Uint8Array([e])[0],o.value+e>u)return null;let t=i[o.value-1];for(;e-- >0;)i[o.value++]=t}else{if(!(o.value<u))return null;i[o.value++]=e}return{c:r,lc:n}}let I=Array(59);function R(e){let t=65535&e;return t>32767?t-65536:t}function M(e,t){let r=R(e),n=R(t),l=r+(1&n)+(n>>1);return{a:l,b:l-n}}function x(e,t){let r=65535&t,n=(65535&e)-(r>>1)&65535;return{a:r+n-32768&65535,b:n}}function m(e){return new DataView(e.array.buffer,e.offset.value,e.size)}function P(e){let t=new Uint8Array(function(e){let t=e.byteLength,r=[],n=0,l=new DataView(e);for(;t>0;){let e=l.getInt8(n++);if(e<0){let a=-e;t-=a+1;for(let e=0;e<a;e++)r.push(l.getUint8(n++))}else{t-=2;let a=l.getUint8(n++);for(let t=0;t<e+1;t++)r.push(a)}}return r}(e.viewer.buffer.slice(e.offset.value,e.offset.value+e.size))),r=new Uint8Array(t.length);return S(t),E(t,r),new DataView(r.buffer)}function U(e){let t=e.array.slice(e.offset.value,e.offset.value+e.size),r=fflate.unzlibSync(t),n=new Uint8Array(r.length);return S(r),E(r,n),new DataView(n.buffer)}function F(e){let t=e.array.slice(e.offset.value,e.offset.value+e.size),r=fflate.unzlibSync(t),n=e.lines*e.channels*e.width,l=1==e.type?new Uint16Array(n):new Uint32Array(n),a=0,i=0,o=[,,,,];for(let t=0;t<e.lines;t++)for(let t=0;t<e.channels;t++){let t=0;switch(e.type){case 1:o[0]=a,o[1]=o[0]+e.width,a=o[1]+e.width;for(let n=0;n<e.width;++n)t+=r[o[0]++]<<8|r[o[1]++],l[i]=t,i++;break;case 2:o[0]=a,o[1]=o[0]+e.width,o[2]=o[1]+e.width,a=o[2]+e.width;for(let n=0;n<e.width;++n)t+=r[o[0]++]<<24|r[o[1]++]<<16|r[o[2]++]<<8,l[i]=t,i++}}return new DataView(l.buffer)}function N(e){let t=e.viewer,r={value:e.offset.value},n=new Uint16Array(e.width*e.scanlineBlockSize*(e.channels*e.type)),l=new Uint8Array(8192),a=0,i=Array(e.channels);for(let t=0;t<e.channels;t++)i[t]={},i[t].start=a,i[t].end=i[t].start,i[t].nx=e.width,i[t].ny=e.lines,i[t].size=e.type,a+=i[t].nx*i[t].ny*i[t].size;let o=p(t,r),u=p(t,r);if(u>=8192)throw Error("Wrong PIZ_COMPRESSION BITMAP_SIZE");if(o<=u)for(let e=0;e<u-o+1;e++)l[e+o]=d(t,r);let s=new Uint16Array(65536),f=function(e,t){let r=0;for(let n=0;n<65536;++n)(0==n||e[n>>3]&1<<(7&n))&&(t[r++]=n);let n=r-1;for(;r<65536;)t[r++]=0;return n}(l,s),c=h(t,r);!function(e,t,r,n,l,a){let i=r.value,o=h(t,r),u=h(t,r);r.value+=4;let s=h(t,r);if(r.value+=4,o<0||o>=65537||u<0||u>=65537)throw Error("Wrong HUF_ENCSIZE");let f=Array(65537),c=Array(16384);for(let e=0;e<16384;e++)c[e]={},c[e].len=0,c[e].lit=0,c[e].p=null;let d=n-(r.value-i);if(!function(e,t,r,n,l,a){let i=0,o=0;for(;n<=l;n++){if(t.value-t.value>r)return;let u=O(6,i,o,e,t),s=u.l;if(i=u.c,o=u.lc,a[n]=s,63==s){if(t.value-t.value>r)throw Error("Error in HufUnpackEncTable");let s=(u=O(8,i,o,e,t)).l+6;if(i=u.c,o=u.lc,n+s>l+1)throw Error("Error in HufUnpackEncTable");for(;s--;)a[n++]=0;n--}else if(s>=59){let e=s-59+2;if(n+e>l+1)throw Error("Error in HufUnpackEncTable");for(;e--;)a[n++]=0;n--}}!function(e){for(let e=0;e<=58;++e)I[e]=0;for(let t=0;t<65537;++t)I[e[t]]+=1;let t=0;for(let e=58;e>0;--e){let r=t+I[e]>>1;I[e]=t,t=r}for(let t=0;t<65537;++t){let r=e[t];r>0&&(e[t]=r|I[r]++<<6)}}(a)}(e,r,d,o,u,f),s>8*(n-(r.value-i)))throw Error("Wrong hufUncompress");!function(e,t,r,n){for(;t<=r;t++){let r=e[t]>>6,l=63&e[t];if(r>>l)throw Error("Invalid table entry");if(l>14){let e=n[r>>l-14];if(e.len)throw Error("Invalid table entry");if(e.lit++,e.p){let t=e.p;e.p=Array(e.lit);for(let r=0;r<e.lit-1;++r)e.p[r]=t[r]}else e.p=[,];e.p[e.lit-1]=t}else if(l){let e=0;for(let a=1<<14-l;a>0;a--){let a=n[(r<<14-l)+e];if(a.len||a.p)throw Error("Invalid table entry");a.len=l,a.lit=t,e++}}}}(f,o,u,c),function(e,t,r,n,l,a,i,o,u){let s=0,f=0,c=Math.trunc(n.value+(l+7)/8);for(;n.value<c;){let l=A(s,f,r,n);for(s=l.c,f=l.lc;f>=14;){let h=t[s>>f-14&16383];if(h.len){f-=h.len;let e=C(h.lit,a,s,f,r,n,o,u,i);e&&(s=e.c,f=e.lc)}else{let t;if(!h.p)throw Error("hufDecode issues");for(t=0;t<h.lit;t++){let d=63&e[h.p[t]];for(;f<d&&n.value<c;)s=(l=A(s,f,r,n)).c,f=l.lc;if(f>=d&&e[h.p[t]]>>6==(s>>f-d&(1<<d)-1)){f-=d;let e=C(h.p[t],a,s,f,r,n,o,u,i);e&&(s=e.c,f=e.lc);break}}if(t==h.lit)throw Error("HufDecode issues")}}}let h=8-l&7;for(s>>=h,f-=h;f>0;){let e=t[s<<14-f&16383];if(e.len){f-=e.len;let t=C(e.lit,a,s,f,r,n,o,u,i);t&&(s=t.c,f=t.lc)}else throw Error("HufDecode issues")}}(f,c,e,r,s,u,a,l,{value:0})}(e.array,t,r,c,n,a);for(let t=0;t<e.channels;++t){let e=i[t];for(let r=0;r<i[t].size;++r)!function(e,t,r,n,l,a,i){let o,u,s=i<16384,f=r>l?l:r,c=1;for(;c<=f;)c<<=1;for(c>>=1,o=c,c>>=1;c>=1;){let i,f,h,d,p=(u=0)+a*(l-o),y=a*c,w=a*o,v=n*c,b=n*o;for(;u<=p;u+=w){let l=u,a=u+n*(r-o);for(;l<=a;l+=b){let r=l+v,n=l+y,a=n+v;if(s){let o=M(e[l+t],e[n+t]);i=o.a,h=o.b,f=(o=M(e[r+t],e[a+t])).a,d=o.b,o=M(i,f),e[l+t]=o.a,e[r+t]=o.b,o=M(h,d),e[n+t]=o.a,e[a+t]=o.b}else{let o=x(e[l+t],e[n+t]);i=o.a,h=o.b,f=(o=x(e[r+t],e[a+t])).a,d=o.b,o=x(i,f),e[l+t]=o.a,e[r+t]=o.b,o=x(h,d),e[n+t]=o.a,e[a+t]=o.b}}if(r&c){let r,n=l+y;i=(r=s?M(e[l+t],e[n+t]):x(e[l+t],e[n+t])).a,e[n+t]=r.b,e[l+t]=i}}if(l&c){let l=u,a=u+n*(r-o);for(;l<=a;l+=b){let r,n=l+v;i=(r=s?M(e[l+t],e[n+t]):x(e[l+t],e[n+t])).a,e[n+t]=r.b,e[l+t]=i}}o=c,c>>=1}}(n,e.start+r,e.nx,e.size,e.ny,e.nx*e.size,f)}var y=a;for(let e=0;e<y;++e)n[e]=s[n[e]];let w=0,v=new Uint8Array(n.buffer.byteLength);for(let t=0;t<e.lines;t++)for(let t=0;t<e.channels;t++){let e=i[t],r=e.nx*e.size,l=new Uint8Array(n.buffer,2*e.end,2*r);v.set(l,w),w+=2*r,e.end+=r}return new DataView(v.buffer)}var T=e.i(13856);(n=i||(i={}))[n.Float=0]="Float",n[n.HalfFloat=1]="HalfFloat";class k{}async function z(e,t,r,n){let a={size:0,viewer:t,array:new Uint8Array(t.buffer),offset:r,width:e.dataWindow.xMax-e.dataWindow.xMin+1,height:e.dataWindow.yMax-e.dataWindow.yMin+1,channels:e.channels.length,channelLineOffsets:{},scanOrder:()=>0,bytesPerLine:0,outLineWidth:0,lines:0,scanlineBlockSize:0,inputSize:null,type:0,uncompress:null,getter:()=>0,format:5,outputChannels:0,decodeChannels:{},blockCount:null,byteArray:null,linearSpace:!1,textureType:0};switch(e.compression){case l.NO_COMPRESSION:a.lines=1,a.uncompress=m;break;case l.RLE_COMPRESSION:a.lines=1,a.uncompress=P;break;case l.ZIPS_COMPRESSION:a.lines=1,a.uncompress=U,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;case l.ZIP_COMPRESSION:a.lines=16,a.uncompress=U,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;case l.PIZ_COMPRESSION:a.lines=32,a.uncompress=N;break;case l.PXR24_COMPRESSION:a.lines=16,a.uncompress=F,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;default:throw Error(l[e.compression]+" is unsupported")}a.scanlineBlockSize=a.lines;let o={};for(let t of e.channels)switch(t.name){case"R":case"G":case"B":case"A":case"Y":o[t.name]=!0,a.type=t.pixelType}let u=!1;if(o.R&&o.G&&o.B&&o.A)a.outputChannels=4,a.decodeChannels={R:0,G:1,B:2,A:3};else if(o.R&&o.G&&o.B)u=!0,a.outputChannels=4,a.decodeChannels={R:0,G:1,B:2,A:3};else if(o.R&&o.G)a.outputChannels=2,a.decodeChannels={R:0,G:1};else if(o.R)a.outputChannels=1,a.decodeChannels={R:0};else if(o.Y)a.outputChannels=1,a.decodeChannels={Y:0};else throw Error("EXRLoader.parse: file contains unsupported data channels.");if(1===a.type)switch(n){case i.Float:a.getter=v,a.inputSize=2;break;case i.HalfFloat:a.getter=p,a.inputSize=2}else if(2===a.type)switch(n){case i.Float:a.getter=w,a.inputSize=4;break;case i.HalfFloat:a.getter=b,a.inputSize=4}else throw Error("Unsupported pixelType "+a.type+" for "+e.compression);a.blockCount=a.height/a.scanlineBlockSize;for(let e=0;e<a.blockCount;e++)!function(e,t){"getBigInt64"in DataView.prototype?e.getBigInt64(t.value,!0):(e.getUint32(t.value+4,!0),e.getUint32(t.value,!0)),t.value+=8}(t,r);let s=a.width*a.height*a.outputChannels;switch(n){case i.Float:a.byteArray=new Float32Array(s),a.textureType=1,u&&a.byteArray.fill(1,0,s);break;case i.HalfFloat:a.byteArray=new Uint16Array(s),a.textureType=2,u&&a.byteArray.fill(15360,0,s);break;default:throw Error("Unsupported type: "+n)}let f=0;for(let t of e.channels)void 0!==a.decodeChannels[t.name]&&(a.channelLineOffsets[t.name]=f*a.width),f+=2*t.pixelType;return a.bytesPerLine=a.width*f,a.outLineWidth=a.width*a.outputChannels,"INCREASING_Y"===e.lineOrder?a.scanOrder=e=>e:a.scanOrder=e=>a.height-1-e,4==a.outputChannels?(a.format=5,a.linearSpace=!0):(a.format=6,a.linearSpace=!1),a}function L(e,t,r,n){let l={value:0};for(let a=0;a<e.height/e.scanlineBlockSize;a++){let i=c(r,n)-t.dataWindow.yMin;e.size=h(r,n),e.lines=i+e.scanlineBlockSize>e.height?e.height-i:e.scanlineBlockSize;let o=e.size<e.lines*e.bytesPerLine&&e.uncompress?e.uncompress(e):m(e);n.value+=e.size;for(let r=0;r<e.scanlineBlockSize;r++){let n=a*e.scanlineBlockSize,i=r+e.scanOrder(n);if(i>=e.height)continue;let u=r*e.bytesPerLine,s=(e.height-1-i)*e.outLineWidth;for(let r=0;r<e.channels;r++){let n=t.channels[r].name,a=e.channelLineOffsets[n],i=e.decodeChannels[n];if(void 0!==i){l.value=u+a;for(let t=0;t<e.width;t++){let r=s+t*e.outputChannels+i;e.byteArray&&(e.byteArray[r]=e.getter(o,l))}}}}}}async function _(e){let t=new DataView(e),r={value:0},n=g(t,r);try{let e=await z(n,t,r,i.Float);if(L(e,n,t,r),!e.byteArray)return o.Logger.Error("Failed to decode EXR data: No byte array available."),{width:0,height:0,data:null};return{width:n.dataWindow.xMax-n.dataWindow.xMin+1,height:n.dataWindow.yMax-n.dataWindow.yMin+1,data:new Float32Array(e.byteArray)}}catch(e){o.Logger.Error("Failed to load EXR data: ",e)}return{width:0,height:0,data:null}}k.DefaultOutputType=i.HalfFloat,k.FFLATEUrl="https://unpkg.com/fflate@0.8.2",e.s(["ReadExrDataAsync",0,_,"_ExrTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,t,r,n,l){throw".exr not supported in Cube."}loadData(e,t,r){let n=new DataView(e.buffer),l={value:0},a=g(n,l);z(a,n,l,k.DefaultOutputType).then(e=>{L(e,a,n,l),r(a.dataWindow.xMax-a.dataWindow.xMin+1,a.dataWindow.yMax-a.dataWindow.yMin+1,t.generateMipMaps,!1,()=>{let r=t.getEngine();t.format=a.format,t.type=e.textureType,t.invertY=!1,t._gammaSpace=!a.linearSpace,e.byteArray&&r._uploadDataToTextureDirectly(t,e.byteArray,0,0,void 0,!0)})}).catch(e=>{o.Logger.Error("Failed to load EXR texture: ",e)})}}],31688)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57009,e=>{"use strict";var t,r,n,l,a,i,o=e.i(16347),u=e.i(63235),s=e.i(6563);function f(e,t){let r=new Uint8Array(e),n=0;for(;0!=r[t.value+n];)n+=1;let l=new TextDecoder().decode(r.slice(t.value,t.value+n));return t.value=t.value+n+1,l}function c(e,t){let r=e.getInt32(t.value,!0);return t.value+=4,r}function h(e,t){let r=e.getUint32(t.value,!0);return t.value+=4,r}function d(e,t){let r=e.getUint8(t.value);return t.value+=1,r}function p(e,t){let r=e.getUint16(t.value,!0);return t.value+=2,r}function y(e,t){let r=e[t.value];return t.value+=1,r}function w(e,t){let r=e.getFloat32(t.value,!0);return t.value+=4,r}function v(e,t){return(0,s.FromHalfFloat)(p(e,t))}function b(e,t){return(0,s.ToHalfFloat)((0,u.Clamp)(w(e,t),-s.MaxHalfFloat,s.MaxHalfFloat))}function S(e){for(let t=1;t<e.length;t++){let r=e[t-1]+e[t]-128;e[t]=r}}function E(e,t){let r=0,n=Math.floor((e.length+1)/2),l=0,a=e.length-1;for(;!(l>a)&&(t[l++]=e[r++],!(l>a));){;t[l++]=e[n++]}}function g(e,t){if(0x1312f76!=e.getUint32(0,!0))throw Error("Incorrect OpenEXR format");let r=e.getUint8(4),n=e.getUint8(5);t.value=8;let l={},i=!0;for(;i;){let r=f(e.buffer,t);if(r){let n=f(e.buffer,t),i=h(e,t),u=function(e,t,r,n){var l;switch(r){case"string":case"stringvector":case"iccProfile":let i;return l=e.buffer,i=new TextDecoder().decode(new Uint8Array(l).slice(t.value,t.value+n)),t.value=t.value+n,i;case"chlist":return function(e,t,r){let n=t.value,l=[];for(;t.value<n+r-1;){let r=f(e.buffer,t),n=c(e,t),a=d(e,t);t.value+=3;let i=c(e,t),o=c(e,t);l.push({name:r,pixelType:n,pLinear:a,xSampling:i,ySampling:o})}return t.value+=1,l}(e,t,n);case"chromaticities":let o,u,s,p,y,v;return o=w(e,t),u=w(e,t),s=w(e,t),p=w(e,t),y=w(e,t),v=w(e,t),{redX:o,redY:u,greenX:s,greenY:p,blueX:y,blueY:v,whiteX:w(e,t),whiteY:w(e,t)};case"compression":return d(e,t);case"box2i":let b,S;return b=c(e,t),S=c(e,t),{xMin:b,yMin:S,xMax:c(e,t),yMax:c(e,t)};case"lineOrder":return a[d(e,t)];case"float":return w(e,t);case"v2f":return[w(e,t),w(e,t)];case"v3f":let E;return E=w(e,t),[E,w(e,t),w(e,t)];case"int":return c(e,t);case"rational":return[c(e,t),h(e,t)];case"timecode":return[h(e,t),h(e,t)];case"preview":return t.value+=n,"skipped";default:t.value+=n;return}}(e,t,n,i);void 0===u?o.Logger.Warn(`Unknown header attribute type ${n}'.`):l[r]=u}else i=!1}if((-5&n)!=0)throw Error("Unsupported file format");return{version:r,spec:{singleTile:!!(2&n),longName:!!(4&n),deepFormat:!!(8&n),multiPart:!!(16&n)},...l}}(t=l||(l={}))[t.NO_COMPRESSION=0]="NO_COMPRESSION",t[t.RLE_COMPRESSION=1]="RLE_COMPRESSION",t[t.ZIPS_COMPRESSION=2]="ZIPS_COMPRESSION",t[t.ZIP_COMPRESSION=3]="ZIP_COMPRESSION",t[t.PIZ_COMPRESSION=4]="PIZ_COMPRESSION",t[t.PXR24_COMPRESSION=5]="PXR24_COMPRESSION",(r=a||(a={}))[r.INCREASING_Y=0]="INCREASING_Y",r[r.DECREASING_Y=1]="DECREASING_Y";function O(e,t,r,n,l){for(;r<e;)t=t<<8|y(n,l),r+=8;return{l:t>>(r-=e)&(1<<e)-1,c:t,lc:r}}function A(e,t,r,n){return{c:e=e<<8|y(r,n),lc:t+=8}}function C(e,t,r,n,l,a,i,o,u){if(e==t){if(n<8){let e=A(r,n,l,a);r=e.c,n=e.lc}let e=r>>(n-=8);if(e=new Uint8Array([e])[0],o.value+e>u)return null;let t=i[o.value-1];for(;e-- >0;)i[o.value++]=t}else{if(!(o.value<u))return null;i[o.value++]=e}return{c:r,lc:n}}let I=Array(59);function R(e){let t=65535&e;return t>32767?t-65536:t}function M(e,t){let r=R(e),n=R(t),l=r+(1&n)+(n>>1);return{a:l,b:l-n}}function x(e,t){let r=65535&t,n=(65535&e)-(r>>1)&65535;return{a:r+n-32768&65535,b:n}}function m(e){return new DataView(e.array.buffer,e.offset.value,e.size)}function P(e){let t=new Uint8Array(function(e){let t=e.byteLength,r=[],n=0,l=new DataView(e);for(;t>0;){let e=l.getInt8(n++);if(e<0){let a=-e;t-=a+1;for(let e=0;e<a;e++)r.push(l.getUint8(n++))}else{t-=2;let a=l.getUint8(n++);for(let t=0;t<e+1;t++)r.push(a)}}return r}(e.viewer.buffer.slice(e.offset.value,e.offset.value+e.size))),r=new Uint8Array(t.length);return S(t),E(t,r),new DataView(r.buffer)}function U(e){let t=e.array.slice(e.offset.value,e.offset.value+e.size),r=fflate.unzlibSync(t),n=new Uint8Array(r.length);return S(r),E(r,n),new DataView(n.buffer)}function F(e){let t=e.array.slice(e.offset.value,e.offset.value+e.size),r=fflate.unzlibSync(t),n=e.lines*e.channels*e.width,l=1==e.type?new Uint16Array(n):new Uint32Array(n),a=0,i=0,o=[,,,,];for(let t=0;t<e.lines;t++)for(let t=0;t<e.channels;t++){let t=0;switch(e.type){case 1:o[0]=a,o[1]=o[0]+e.width,a=o[1]+e.width;for(let n=0;n<e.width;++n)t+=r[o[0]++]<<8|r[o[1]++],l[i]=t,i++;break;case 2:o[0]=a,o[1]=o[0]+e.width,o[2]=o[1]+e.width,a=o[2]+e.width;for(let n=0;n<e.width;++n)t+=r[o[0]++]<<24|r[o[1]++]<<16|r[o[2]++]<<8,l[i]=t,i++}}return new DataView(l.buffer)}function N(e){let t=e.viewer,r={value:e.offset.value},n=new Uint16Array(e.width*e.scanlineBlockSize*(e.channels*e.type)),l=new Uint8Array(8192),a=0,i=Array(e.channels);for(let t=0;t<e.channels;t++)i[t]={},i[t].start=a,i[t].end=i[t].start,i[t].nx=e.width,i[t].ny=e.lines,i[t].size=e.type,a+=i[t].nx*i[t].ny*i[t].size;let o=p(t,r),u=p(t,r);if(u>=8192)throw Error("Wrong PIZ_COMPRESSION BITMAP_SIZE");if(o<=u)for(let e=0;e<u-o+1;e++)l[e+o]=d(t,r);let s=new Uint16Array(65536),f=function(e,t){let r=0;for(let n=0;n<65536;++n)(0==n||e[n>>3]&1<<(7&n))&&(t[r++]=n);let n=r-1;for(;r<65536;)t[r++]=0;return n}(l,s),c=h(t,r);!function(e,t,r,n,l,a){let i=r.value,o=h(t,r),u=h(t,r);r.value+=4;let s=h(t,r);if(r.value+=4,o<0||o>=65537||u<0||u>=65537)throw Error("Wrong HUF_ENCSIZE");let f=Array(65537),c=Array(16384);for(let e=0;e<16384;e++)c[e]={},c[e].len=0,c[e].lit=0,c[e].p=null;let d=n-(r.value-i);if(!function(e,t,r,n,l,a){let i=0,o=0;for(;n<=l;n++){if(t.value-t.value>r)return;let u=O(6,i,o,e,t),s=u.l;if(i=u.c,o=u.lc,a[n]=s,63==s){if(t.value-t.value>r)throw Error("Error in HufUnpackEncTable");let s=(u=O(8,i,o,e,t)).l+6;if(i=u.c,o=u.lc,n+s>l+1)throw Error("Error in HufUnpackEncTable");for(;s--;)a[n++]=0;n--}else if(s>=59){let e=s-59+2;if(n+e>l+1)throw Error("Error in HufUnpackEncTable");for(;e--;)a[n++]=0;n--}}!function(e){for(let e=0;e<=58;++e)I[e]=0;for(let t=0;t<65537;++t)I[e[t]]+=1;let t=0;for(let e=58;e>0;--e){let r=t+I[e]>>1;I[e]=t,t=r}for(let t=0;t<65537;++t){let r=e[t];r>0&&(e[t]=r|I[r]++<<6)}}(a)}(e,r,d,o,u,f),s>8*(n-(r.value-i)))throw Error("Wrong hufUncompress");!function(e,t,r,n){for(;t<=r;t++){let r=e[t]>>6,l=63&e[t];if(r>>l)throw Error("Invalid table entry");if(l>14){let e=n[r>>l-14];if(e.len)throw Error("Invalid table entry");if(e.lit++,e.p){let t=e.p;e.p=Array(e.lit);for(let r=0;r<e.lit-1;++r)e.p[r]=t[r]}else e.p=[,];e.p[e.lit-1]=t}else if(l){let e=0;for(let a=1<<14-l;a>0;a--){let a=n[(r<<14-l)+e];if(a.len||a.p)throw Error("Invalid table entry");a.len=l,a.lit=t,e++}}}}(f,o,u,c),function(e,t,r,n,l,a,i,o,u){let s=0,f=0,c=Math.trunc(n.value+(l+7)/8);for(;n.value<c;){let l=A(s,f,r,n);for(s=l.c,f=l.lc;f>=14;){let h=t[s>>f-14&16383];if(h.len){f-=h.len;let e=C(h.lit,a,s,f,r,n,o,u,i);e&&(s=e.c,f=e.lc)}else{let t;if(!h.p)throw Error("hufDecode issues");for(t=0;t<h.lit;t++){let d=63&e[h.p[t]];for(;f<d&&n.value<c;)s=(l=A(s,f,r,n)).c,f=l.lc;if(f>=d&&e[h.p[t]]>>6==(s>>f-d&(1<<d)-1)){f-=d;let e=C(h.p[t],a,s,f,r,n,o,u,i);e&&(s=e.c,f=e.lc);break}}if(t==h.lit)throw Error("HufDecode issues")}}}let h=8-l&7;for(s>>=h,f-=h;f>0;){let e=t[s<<14-f&16383];if(e.len){f-=e.len;let t=C(e.lit,a,s,f,r,n,o,u,i);t&&(s=t.c,f=t.lc)}else throw Error("HufDecode issues")}}(f,c,e,r,s,u,a,l,{value:0})}(e.array,t,r,c,n,a);for(let t=0;t<e.channels;++t){let e=i[t];for(let r=0;r<i[t].size;++r)!function(e,t,r,n,l,a,i){let o,u,s=i<16384,f=r>l?l:r,c=1;for(;c<=f;)c<<=1;for(c>>=1,o=c,c>>=1;c>=1;){let i,f,h,d,p=(u=0)+a*(l-o),y=a*c,w=a*o,v=n*c,b=n*o;for(;u<=p;u+=w){let l=u,a=u+n*(r-o);for(;l<=a;l+=b){let r=l+v,n=l+y,a=n+v;if(s){let o=M(e[l+t],e[n+t]);i=o.a,h=o.b,f=(o=M(e[r+t],e[a+t])).a,d=o.b,o=M(i,f),e[l+t]=o.a,e[r+t]=o.b,o=M(h,d),e[n+t]=o.a,e[a+t]=o.b}else{let o=x(e[l+t],e[n+t]);i=o.a,h=o.b,f=(o=x(e[r+t],e[a+t])).a,d=o.b,o=x(i,f),e[l+t]=o.a,e[r+t]=o.b,o=x(h,d),e[n+t]=o.a,e[a+t]=o.b}}if(r&c){let r,n=l+y;i=(r=s?M(e[l+t],e[n+t]):x(e[l+t],e[n+t])).a,e[n+t]=r.b,e[l+t]=i}}if(l&c){let l=u,a=u+n*(r-o);for(;l<=a;l+=b){let r,n=l+v;i=(r=s?M(e[l+t],e[n+t]):x(e[l+t],e[n+t])).a,e[n+t]=r.b,e[l+t]=i}}o=c,c>>=1}}(n,e.start+r,e.nx,e.size,e.ny,e.nx*e.size,f)}var y=a;for(let e=0;e<y;++e)n[e]=s[n[e]];let w=0,v=new Uint8Array(n.buffer.byteLength);for(let t=0;t<e.lines;t++)for(let t=0;t<e.channels;t++){let e=i[t],r=e.nx*e.size,l=new Uint8Array(n.buffer,2*e.end,2*r);v.set(l,w),w+=2*r,e.end+=r}return new DataView(v.buffer)}var T=e.i(92180);(n=i||(i={}))[n.Float=0]="Float",n[n.HalfFloat=1]="HalfFloat";class k{}async function z(e,t,r,n){let a={size:0,viewer:t,array:new Uint8Array(t.buffer),offset:r,width:e.dataWindow.xMax-e.dataWindow.xMin+1,height:e.dataWindow.yMax-e.dataWindow.yMin+1,channels:e.channels.length,channelLineOffsets:{},scanOrder:()=>0,bytesPerLine:0,outLineWidth:0,lines:0,scanlineBlockSize:0,inputSize:null,type:0,uncompress:null,getter:()=>0,format:5,outputChannels:0,decodeChannels:{},blockCount:null,byteArray:null,linearSpace:!1,textureType:0};switch(e.compression){case l.NO_COMPRESSION:a.lines=1,a.uncompress=m;break;case l.RLE_COMPRESSION:a.lines=1,a.uncompress=P;break;case l.ZIPS_COMPRESSION:a.lines=1,a.uncompress=U,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;case l.ZIP_COMPRESSION:a.lines=16,a.uncompress=U,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;case l.PIZ_COMPRESSION:a.lines=32,a.uncompress=N;break;case l.PXR24_COMPRESSION:a.lines=16,a.uncompress=F,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;default:throw Error(l[e.compression]+" is unsupported")}a.scanlineBlockSize=a.lines;let o={};for(let t of e.channels)switch(t.name){case"R":case"G":case"B":case"A":case"Y":o[t.name]=!0,a.type=t.pixelType}let u=!1;if(o.R&&o.G&&o.B&&o.A)a.outputChannels=4,a.decodeChannels={R:0,G:1,B:2,A:3};else if(o.R&&o.G&&o.B)u=!0,a.outputChannels=4,a.decodeChannels={R:0,G:1,B:2,A:3};else if(o.R&&o.G)a.outputChannels=2,a.decodeChannels={R:0,G:1};else if(o.R)a.outputChannels=1,a.decodeChannels={R:0};else if(o.Y)a.outputChannels=1,a.decodeChannels={Y:0};else throw Error("EXRLoader.parse: file contains unsupported data channels.");if(1===a.type)switch(n){case i.Float:a.getter=v,a.inputSize=2;break;case i.HalfFloat:a.getter=p,a.inputSize=2}else if(2===a.type)switch(n){case i.Float:a.getter=w,a.inputSize=4;break;case i.HalfFloat:a.getter=b,a.inputSize=4}else throw Error("Unsupported pixelType "+a.type+" for "+e.compression);a.blockCount=a.height/a.scanlineBlockSize;for(let e=0;e<a.blockCount;e++)!function(e,t){"getBigInt64"in DataView.prototype?e.getBigInt64(t.value,!0):(e.getUint32(t.value+4,!0),e.getUint32(t.value,!0)),t.value+=8}(t,r);let s=a.width*a.height*a.outputChannels;switch(n){case i.Float:a.byteArray=new Float32Array(s),a.textureType=1,u&&a.byteArray.fill(1,0,s);break;case i.HalfFloat:a.byteArray=new Uint16Array(s),a.textureType=2,u&&a.byteArray.fill(15360,0,s);break;default:throw Error("Unsupported type: "+n)}let f=0;for(let t of e.channels)void 0!==a.decodeChannels[t.name]&&(a.channelLineOffsets[t.name]=f*a.width),f+=2*t.pixelType;return a.bytesPerLine=a.width*f,a.outLineWidth=a.width*a.outputChannels,"INCREASING_Y"===e.lineOrder?a.scanOrder=e=>e:a.scanOrder=e=>a.height-1-e,4==a.outputChannels?(a.format=5,a.linearSpace=!0):(a.format=6,a.linearSpace=!1),a}function L(e,t,r,n){let l={value:0};for(let a=0;a<e.height/e.scanlineBlockSize;a++){let i=c(r,n)-t.dataWindow.yMin;e.size=h(r,n),e.lines=i+e.scanlineBlockSize>e.height?e.height-i:e.scanlineBlockSize;let o=e.size<e.lines*e.bytesPerLine&&e.uncompress?e.uncompress(e):m(e);n.value+=e.size;for(let r=0;r<e.scanlineBlockSize;r++){let n=a*e.scanlineBlockSize,i=r+e.scanOrder(n);if(i>=e.height)continue;let u=r*e.bytesPerLine,s=(e.height-1-i)*e.outLineWidth;for(let r=0;r<e.channels;r++){let n=t.channels[r].name,a=e.channelLineOffsets[n],i=e.decodeChannels[n];if(void 0!==i){l.value=u+a;for(let t=0;t<e.width;t++){let r=s+t*e.outputChannels+i;e.byteArray&&(e.byteArray[r]=e.getter(o,l))}}}}}}async function _(e){let t=new DataView(e),r={value:0},n=g(t,r);try{let e=await z(n,t,r,i.Float);if(L(e,n,t,r),!e.byteArray)return o.Logger.Error("Failed to decode EXR data: No byte array available."),{width:0,height:0,data:null};return{width:n.dataWindow.xMax-n.dataWindow.xMin+1,height:n.dataWindow.yMax-n.dataWindow.yMin+1,data:new Float32Array(e.byteArray)}}catch(e){o.Logger.Error("Failed to load EXR data: ",e)}return{width:0,height:0,data:null}}k.DefaultOutputType=i.HalfFloat,k.FFLATEUrl="https://unpkg.com/fflate@0.8.2",e.s(["ReadExrDataAsync",0,_,"_ExrTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,t,r,n,l){throw".exr not supported in Cube."}loadData(e,t,r){let n=new DataView(e.buffer),l={value:0},a=g(n,l);z(a,n,l,k.DefaultOutputType).then(e=>{L(e,a,n,l),r(a.dataWindow.xMax-a.dataWindow.xMin+1,a.dataWindow.yMax-a.dataWindow.yMin+1,t.generateMipMaps,!1,()=>{let r=t.getEngine();t.format=a.format,t.type=e.textureType,t.invertY=!1,t._gammaSpace=!a.linearSpace,e.byteArray&&r._uploadDataToTextureDirectly(t,e.byteArray,0,0,void 0,!0)})}).catch(e=>{o.Logger.Error("Failed to load EXR texture: ",e)})}}],57009)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84684,e=>{"use strict";var t=e.i(69400),r=e.i(63235),a=e.i(88),o=e.i(84106),l=e.i(19919);class i{constructor(e,t,r,a){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=a}}class n{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let a=e.getSize().width,o=e._sphericalPolynomialTargetSize,l=o>0?this._NearestPow2Floor(o):0,i=!e.noMipmap&&e._texture?.generateMipMaps===!0,n=l>0&&l<a&&i,s=n?Math.max(0,Math.round(Math.log2(a/l))):0,f=n?Math.max(1,Math.floor(a/Math.pow(2,s))):a,u=e.readPixels(0,s,void 0,!1),c=e.readPixels(1,s,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,s,void 0,!1),r=e.readPixels(2,s,void 0,!1)):(t=e.readPixels(2,s,void 0,!1),r=e.readPixels(3,s,void 0,!1));let p=e.readPixels(4,s,void 0,!1),m=e.readPixels(5,s,void 0,!1),h=e.gammaSpace,A=l>0&&l<a&&!n;return new Promise(e=>{Promise.all([c,u,t,r,p,m]).then(([t,r,o,i,n,s])=>{let u=f;A&&(t=this._DownsampleFace(t,a,l,4),r=this._DownsampleFace(r,a,l,4),o=this._DownsampleFace(o,a,l,4),i=this._DownsampleFace(i,a,l,4),n=this._DownsampleFace(n,a,l,4),s=this._DownsampleFace(s,a,l,4),u=l);let c={size:u,right:r,left:t,up:o,down:i,front:n,back:s,format:5,type:+(t instanceof Float32Array),gammaSpace:h};e(this.ConvertCubeMapToSphericalPolynomial(c))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,a){let o=e instanceof Float32Array?e:Float32Array.from(e),l=r*r*a,i=new Float32Array(l),n=t/r,s=1/(n*n);for(let e=0;e<r;e++){let l=Math.floor(e*n),f=Math.floor((e+1)*n);for(let u=0;u<r;u++){let c=Math.floor(u*n),p=Math.floor((u+1)*n),m=(e*r+u)*a;for(let e=0;e<a;e++){let r=0;for(let i=l;i<f;i++)for(let l=c;l<p;l++)r+=o[(i*t+l)*a+e];i[m+e]=r*s}}}if(e instanceof Float32Array)return i;let f=new e.constructor(l);for(let e=0;e<l;e++)f[e]=i[e]+.5|0;return f}static ConvertCubeMapToSphericalPolynomial(e,t=0){let i=t>0?this._NearestPow2Floor(t):0;if(i>0&&e.size>i){let t=5===e.format?4:3,r={};for(let a of["right","left","up","down","front","back"])r[a]=this._DownsampleFace(e[a],e.size,i,t);e={...e,...r,size:i}}let n=new a.SphericalHarmonics,s=0,f=2/e.size,u=.5*f,c=u-1;for(let t=0;t<6;t++){let a=this._FileFaces[t],i=e[a.name],p=c,m=5===e.format?4:3;for(let t=0;t<e.size;t++){let h=c;for(let c=0;c<e.size;c++){let A=a.worldAxisForFileX.scale(h).add(a.worldAxisForFileY.scale(p)).add(a.worldAxisForNormal);A.normalize();let F=this._AreaElement(h-u,p-u)-this._AreaElement(h-u,p+u)-this._AreaElement(h+u,p-u)+this._AreaElement(h+u,p+u),d=i[t*e.size*m+c*m+0],y=i[t*e.size*m+c*m+1],w=i[t*e.size*m+c*m+2];isNaN(d)&&(d=0),isNaN(y)&&(y=0),isNaN(w)&&(w=0),0===e.type&&(d/=255,y/=255,w/=255),e.gammaSpace&&(d=Math.pow((0,r.Clamp)(d),o.ToLinearSpace),y=Math.pow((0,r.Clamp)(y),o.ToLinearSpace),w=Math.pow((0,r.Clamp)(w),o.ToLinearSpace));let C=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(d,y,w);if(e>C){let t=C/e;d*=t,y*=t,w*=t}}else d=(0,r.Clamp)(d,0,C),y=(0,r.Clamp)(y,0,C),w=(0,r.Clamp)(w,0,C);let _=new l.Color3(d,y,w);n.addLight(A,_,F),s+=F,h+=f}p+=f}}let p=4*Math.PI*6/6/s;return n.scaleInPlace(p),n.convertIncidentRadianceToIrradiance(),n.convertIrradianceToLambertianRadiance(),a.SphericalPolynomial.FromHarmonics(n)}}n._FileFaces=[new i("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new i("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new i("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new i("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new i("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new i("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],n.MAX_HDRI_VALUE=4096,n.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,n])},84467,e=>{"use strict";var t=e.i(63235),r=e.i(16347),a=e.i(84684),o=e.i(6563);function l(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}let i=l("DXT1"),n=l("DXT3"),s=l("DXT5"),f=l("DX10");class u{static GetDDSInfo(e){let t=new Int32Array(e.buffer,e.byteOffset,31),r=new Int32Array(e.buffer,e.byteOffset,35),a=1;131072&t[2]&&(a=Math.max(1,t[7]));let o=t[21],l=o===f?r[32]:0,u=0;switch(o){case 113:u=2;break;case 116:u=1;break;case f:if(10===l){u=2;break}2===l&&(u=1)}return{width:t[4],height:t[3],mipmapCount:a,isFourCC:(4&t[20])==4,isRGB:(64&t[20])==64,isLuminance:(131072&t[20])==131072,isCube:(512&t[28])==512,isCompressed:o===i||o===n||o===s,dxgiFormat:l,textureType:u}}static _GetHalfFloatAsFloatRGBAArrayBuffer(e,t,r,a,l,i){let n=new Float32Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;n[f]=(0,o.FromHalfFloat)(s[a]),n[f+1]=(0,o.FromHalfFloat)(s[a+1]),n[f+2]=(0,o.FromHalfFloat)(s[a+2]),u.StoreLODInAlphaChannel?n[f+3]=i:n[f+3]=(0,o.FromHalfFloat)(s[a+3]),f+=4}return n}static _GetHalfFloatRGBAArrayBuffer(e,t,r,a,l,i){if(u.StoreLODInAlphaChannel){let n=new Uint16Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;n[f]=s[a],n[f+1]=s[a+1],n[f+2]=s[a+2],n[f+3]=(0,o.ToHalfFloat)(i),f+=4}return n}return new Uint16Array(l,r,a)}static _GetFloatRGBAArrayBuffer(e,t,r,a,o,l){if(u.StoreLODInAlphaChannel){let i=new Float32Array(a),n=new Float32Array(o,r),s=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;i[s]=n[a],i[s+1]=n[a+1],i[s+2]=n[a+2],i[s+3]=l,s+=4}return i}return new Float32Array(o,r,a)}static _GetFloatAsHalfFloatRGBAArrayBuffer(e,t,r,a,l,i){let n=new Uint16Array(a),s=new Float32Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++)n[f]=(0,o.ToHalfFloat)(s[f]),n[f+1]=(0,o.ToHalfFloat)(s[f+1]),n[f+2]=(0,o.ToHalfFloat)(s[f+2]),u.StoreLODInAlphaChannel?n[f+3]=(0,o.ToHalfFloat)(i):n[f+3]=(0,o.ToHalfFloat)(s[f+3]),f+=4;return n}static _GetFloatAsUIntRGBAArrayBuffer(e,r,a,o,l,i){let n=new Uint8Array(o),s=new Float32Array(l,a),f=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let o=(r+a*e)*4;n[f]=255*(0,t.Clamp)(s[o]),n[f+1]=255*(0,t.Clamp)(s[o+1]),n[f+2]=255*(0,t.Clamp)(s[o+2]),u.StoreLODInAlphaChannel?n[f+3]=i:n[f+3]=255*(0,t.Clamp)(s[o+3]),f+=4}return n}static _GetHalfFloatAsUIntRGBAArrayBuffer(e,r,a,l,i,n){let s=new Uint8Array(l),f=new Uint16Array(i,a),c=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let l=(r+a*e)*4;s[c]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l])),s[c+1]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+1])),s[c+2]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+2])),u.StoreLODInAlphaChannel?s[c+3]=n:s[c+3]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+3])),c+=4}return s}static _GetRGBAArrayBuffer(e,t,r,a,o,l,i,n,s){let f=new Uint8Array(a),u=new Uint8Array(o,r),c=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;f[c]=u[a+l],f[c+1]=u[a+i],f[c+2]=u[a+n],f[c+3]=u[a+s],c+=4}return f}static _ExtractLongWordOrder(e){return 0===e||255===e||-0x1000000===e?0:1+u._ExtractLongWordOrder(e>>8)}static _GetRGBArrayBuffer(e,t,r,a,o,l,i,n){let s=new Uint8Array(a),f=new Uint8Array(o,r),u=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*3;s[u]=f[a+l],s[u+1]=f[a+i],s[u+2]=f[a+n],u+=3}return s}static _GetLuminanceArrayBuffer(e,t,r,a,o){let l=new Uint8Array(a),i=new Uint8Array(o,r),n=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=t+r*e;l[n]=i[a],n++}return l}static UploadDDSLevels(e,t,o,l,c,p,m=-1,h,A=!0){let F,d,y,w=null;l.sphericalPolynomial&&(w=[]);let C=!!e.getCaps().s3tc;t.generateMipMaps=c;let _=new Int32Array(o.buffer,o.byteOffset,31),b,D,G,g=0,B,M=0,S=1;if(0x20534444!==_[0])return void r.Logger.Error("Invalid magic number in DDS header");if(!l.isFourCC&&!l.isRGB&&!l.isLuminance)return void r.Logger.Error("Unsupported format, must contain a FourCC, RGB or LUMINANCE code");if(l.isCompressed&&!C)return void r.Logger.Error("Compressed textures are not supported on this platform.");let x=_[22];B=_[1]+4;let T=!1;if(l.isFourCC)switch(b=_[21]){case i:S=8,M=33777;break;case n:S=16,M=33778;break;case s:S=16,M=33779;break;case 113:T=!0,x=64;break;case 116:T=!0,x=128;break;case f:{B+=20;let e=!1;switch(l.dxgiFormat){case 10:T=!0,x=64,e=!0;break;case 2:T=!0,x=128,e=!0;break;case 88:l.isRGB=!0,l.isFourCC=!1,x=32,e=!0}if(e)break}default:r.Logger.Error(["Unsupported FourCC code:",String.fromCharCode(255&b,b>>8&255,b>>16&255,b>>24&255)]);return}let R=u._ExtractLongWordOrder(_[23]),L=u._ExtractLongWordOrder(_[24]),O=u._ExtractLongWordOrder(_[25]),P=u._ExtractLongWordOrder(_[26]);T&&(M=e._getRGBABufferInternalSizedFormat(l.textureType)),d=1,131072&_[2]&&!1!==c&&(d=Math.max(1,_[7]));let H=h||0,U=e.getCaps();for(let r=H;r<p;r++){for(y=0,D=_[4],G=_[3];y<d;++y){if(-1===m||m===y){let a=-1===m?y:0;if(!l.isCompressed&&l.isFourCC){t.format=5,g=D*G*4;let l=null;if(e._badOS||e._badDesktopOS||!U.textureHalfFloat&&!U.textureFloat)128===x?(l=u._GetFloatAsUIntRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a),w&&0==a&&w.push(u._GetFloatRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a))):64===x&&(l=u._GetHalfFloatAsUIntRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a),w&&0==a&&w.push(u._GetHalfFloatAsFloatRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a))),t.type=0;else{let e,r=U.textureFloat&&(A&&U.textureFloatLinearFiltering||!A),i=U.textureHalfFloat&&(A&&U.textureHalfFloatLinearFiltering||!A),n=(128===x||64===x&&!i)&&r?1:(64===x||128===x&&!r)&&i?2:0,s=null;if(128===x)switch(n){case 1:e=u._GetFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetFloatAsHalfFloatRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer;break;case 0:e=u._GetFloatAsUIntRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer}else switch(n){case 1:e=u._GetHalfFloatAsFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetHalfFloatRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer;break;case 0:e=u._GetHalfFloatAsUIntRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer}t.type=n,l=e(D,G,o.byteOffset+B,g,o.buffer,a),w&&0==a&&w.push(s?s(D,G,o.byteOffset+B,g,o.buffer,a):l)}l&&e._uploadDataToTextureDirectly(t,l,r,a)}else if(l.isRGB)t.type=0,24===x?(t.format=4,g=D*G*3,F=u._GetRGBArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,R,L,O)):(t.format=5,g=D*G*4,F=u._GetRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,R,L,O,P)),e._uploadDataToTextureDirectly(t,F,r,a);else if(l.isLuminance){let l=e._getUnpackAlignement(),i=D;g=Math.floor((D+l-1)/l)*l*(G-1)+i,F=u._GetLuminanceArrayBuffer(D,G,o.byteOffset+B,g,o.buffer),t.format=1,t.type=0,e._uploadDataToTextureDirectly(t,F,r,a)}else g=Math.max(4,D)/4*Math.max(4,G)/4*S,F=new Uint8Array(o.buffer,o.byteOffset+B,g),t.type=0,e._uploadCompressedDataToTextureDirectly(t,M,D,G,F,r,a)}B+=x?D*G*(x/8):g,D*=.5,G*=.5,D=Math.max(1,D),G=Math.max(1,G)}if(void 0!==h)break}w&&w.length>0?l.sphericalPolynomial=a.CubeMapToSphericalPolynomialTools.ConvertCubeMapToSphericalPolynomial({size:_[4],right:w[0],left:w[1],up:w[2],down:w[3],front:w[4],back:w[5],format:5,type:1,gammaSpace:!1}):l.sphericalPolynomial=void 0}}u.StoreLODInAlphaChannel=!1,e.s(["DDSTools",0,u])},98134,e=>{"use strict";var t=e.i(88),r=e.i(84467);e.s(["_DDSTextureLoader",0,class{constructor(){this.supportCascades=!0}loadCubeData(e,a,o,l){let i,n=a.getEngine(),s=!1,f=1e3;if(Array.isArray(e))for(let t=0;t<e.length;t++){let o=e[t];a.width=(i=r.DDSTools.GetDDSInfo(o)).width,a.height=i.height,s=(i.isRGB||i.isLuminance||i.mipmapCount>1)&&a.generateMipMaps,n._unpackFlipY(i.isCompressed),r.DDSTools.UploadDDSLevels(n,a,o,i,s,6,-1,t),i.isFourCC||1!==i.mipmapCount?f=i.mipmapCount-1:n.generateMipMapsForCubemap(a)}else a.width=(i=r.DDSTools.GetDDSInfo(e)).width,a.height=i.height,o&&(i.sphericalPolynomial=new t.SphericalPolynomial),s=(i.isRGB||i.isLuminance||i.mipmapCount>1)&&a.generateMipMaps,n._unpackFlipY(i.isCompressed),r.DDSTools.UploadDDSLevels(n,a,e,i,s,6),i.isFourCC||1!==i.mipmapCount?f=i.mipmapCount-1:n.generateMipMapsForCubemap(a,!1);n._setCubeMapTextureParams(a,s,f),a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),l&&l({isDDS:!0,width:a.width,info:i,data:e,texture:a})}loadData(e,t,a){let o=r.DDSTools.GetDDSInfo(e),l=(o.isRGB||o.isLuminance||o.mipmapCount>1)&&t.generateMipMaps&&Math.max(o.width,o.height)>>o.mipmapCount-1==1;a(o.width,o.height,l,o.isFourCC,()=>{r.DDSTools.UploadDDSLevels(t.getEngine(),t,e,o,l,1)})}}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47150,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},8636,e=>{"use strict";var t,i,s=e.i(3864);class r{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,i=1,s=1,r=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=i,this._cachedAnisotropicFilteringLevel=s,this.samplingMode=r,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=i||(i={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends r{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,i=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new s.Observable,this.onErrorObservable=new s.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,i||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,i=1){this._engine.updateTextureDimensions(this,e,t,i),this.width=e,this.height=t,this.depth=i,this.baseWidth=e,this.baseHeight=t,this.baseDepth=i,this._size=e*t*i}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let i=this._engine.getLoadedTexturesCache(),s=i.indexOf(this);-1!==s&&i.splice(s,1),-1===(s=i.indexOf(e))&&i.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],8636)},96042,e=>{"use strict";var t=e.i(69400);class i{constructor(e,i,s,r){this.normal=new t.Vector3(e,i,s),this.d=r}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let e=this.normal.getHashCode();return 397*e^this.d}normalize(){let e=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),t=0;return 0!==e&&(t=1/e),this.normal.x*=t,this.normal.y*=t,this.normal.z*=t,this.d*=t,this}transform(e){let t=i._TmpMatrix;e.invertToRef(t);let s=t.m,r=this.normal.x,a=this.normal.y,h=this.normal.z,n=this.d;return new i(r*s[0]+a*s[1]+h*s[2]+n*s[3],r*s[4]+a*s[5]+h*s[6]+n*s[7],r*s[8]+a*s[9]+h*s[10]+n*s[11],r*s[12]+a*s[13]+h*s[14]+n*s[15])}dotCoordinate(e){return this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z+this.d}copyFromPoints(e,t,i){let s,r=t.x-e.x,a=t.y-e.y,h=t.z-e.z,n=i.x-e.x,o=i.y-e.y,l=i.z-e.z,u=a*l-h*o,c=h*n-r*l,d=r*o-a*n,_=Math.sqrt(u*u+c*c+d*d);return s=0!==_?1/_:0,this.normal.x=u*s,this.normal.y=c*s,this.normal.z=d*s,this.d=-(this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z),this}isFrontFacingTo(e,i){return t.Vector3.Dot(this.normal,e)<=i}signedDistanceTo(e){return t.Vector3.Dot(e,this.normal)+this.d}static FromArray(e){return new i(e[0],e[1],e[2],e[3])}static FromPoints(e,t,s){let r=new i(0,0,0,0);return r.copyFromPoints(e,t,s),r}static FromPositionAndNormal(e,t){let s=new i(0,0,0,0);return this.FromPositionAndNormalToRef(e,t,s)}static FromPositionAndNormalToRef(e,t,i){return i.normal.copyFrom(t),i.normal.normalize(),i.d=-e.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(e,i,s){let r=-(i.x*e.x+i.y*e.y+i.z*e.z);return t.Vector3.Dot(s,i)+r}}i._TmpMatrix=t.Matrix.Identity(),e.s(["Plane",0,i])},372,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},88725,e=>{"use strict";e.s([],49110),e.i(49110);var t=e.i(16347),i=e.i(20363),s=e.i(44265),r=e.i(94559),a=e.i(8636);let h=!1;class n extends i.Texture{constructor(e,t,n,o=!1,l=3,u=5,c){const d=!n||n._isScene;super(null,d?n:n?.scene,d?!o:n,c,l,void 0,void 0,void 0,void 0,u),h||(h=!0,r.ThinEngine.prototype.createDynamicTexture=function(e,t,i,r){let h=new a.InternalTexture(this,4);return h.baseWidth=e,h.baseHeight=t,i&&(e=this.needPOTTextures?(0,s.GetExponentOfTwo)(e,this._caps.maxTextureSize):e,t=this.needPOTTextures?(0,s.GetExponentOfTwo)(t,this._caps.maxTextureSize):t),h.width=e,h.height=t,h.isReady=!1,h.generateMipMaps=i,h.samplingMode=r,this.updateTextureSamplingMode(r,h),this._internalTexturesCache.push(h),h},r.ThinEngine.prototype.updateDynamicTexture=function(e,t,i,s=!1,r,a=!1,h=!1){if(!e)return;let n=this._gl,o=n.TEXTURE_2D,l=this._bindTextureDirectly(o,e,!0,a);this._unpackFlipY(void 0===i?e.invertY:i),s&&n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);let u=this._getWebGLTextureType(e.type),c=this._getInternalFormat(r||e.format),d=this._getRGBABufferInternalSizedFormat(e.type,c);n.texImage2D(o,0,d,c,u,t),e.generateMipMaps&&n.generateMipmap(o),l||this._bindTextureDirectly(o,null),s&&n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),r&&(e.format=r),e._dynamicTextureSource=t,e._premulAlpha=s,e.invertY=i||!1,e.isReady=!0}),this.name=e,this.wrapU=i.Texture.CLAMP_ADDRESSMODE,this.wrapV=i.Texture.CLAMP_ADDRESSMODE,this._generateMipMaps=o;const _=this._getEngine();if(!_)return;t.getContext?(this._canvas=t,this._ownCanvas=!1,this._texture=_.createDynamicTexture(this._canvas.width,this._canvas.height,o,l)):(this._canvas=_.createCanvas(1,1),this._ownCanvas=!0,t.width||0===t.width?this._texture=_.createDynamicTexture(t.width,t.height,o,l):this._texture=_.createDynamicTexture(t,t,o,l));const p=this.getSize();this._canvas.width!==p.width&&(this._canvas.width=p.width),this._canvas.height!==p.height&&(this._canvas.height=p.height),this._context=this._canvas.getContext("2d")}getClassName(){return"DynamicTexture"}get canRescale(){return!0}_recreate(e){this._canvas.width=e.width,this._canvas.height=e.height,this.releaseInternalTexture(),this._texture=this._getEngine().createDynamicTexture(e.width,e.height,this._generateMipMaps,this.samplingMode)}scale(e){let t=this.getSize();t.width*=e,t.height*=e,this._recreate(t)}scaleTo(e,t){let i=this.getSize();i.width=e,i.height=t,this._recreate(i)}getContext(){return this._context}clear(e){let t=this.getSize();e&&(this._context.fillStyle=e),this._context.clearRect(0,0,t.width,t.height)}update(e,t=!1,i=!1){this._texture&&this._getEngine().updateDynamicTexture(this._texture,this._canvas,void 0===e||e,t,this._format||void 0,void 0,i)}drawText(e,t,i,s,r,a,h,n=!0){let o=this.getSize();if(a&&(this._context.fillStyle=a,this._context.fillRect(0,0,o.width,o.height)),this._context.font=s,null==t){let i=this._context.measureText(e);t=(o.width-i.width)/2}if(null==i){let e=parseInt(s.replace(/\D/g,""));i=o.height/2+e/3.65}this._context.fillStyle=r||"",this._context.fillText(e,t,i),n&&this.update(h)}dispose(){super.dispose(),this._ownCanvas&&this._canvas?.remove?.(),this._canvas=null,this._context=null}clone(){let e=this.getScene();if(!e)return this;let t=this.getSize(),i=new n(this.name,t,e,this._generateMipMaps);return i.hasAlpha=this.hasAlpha,i.level=this.level,i.wrapU=this.wrapU,i.wrapV=this.wrapV,i}serialize(){let e=this.getScene();e&&!e.isReady()&&t.Logger.Warn("The scene must be ready before serializing the dynamic texture");let i=super.serialize();return n._IsCanvasElement(this._canvas)&&(i.base64String=this._canvas.toDataURL()),i.invertY=this._invertY,i.samplingMode=this.samplingMode,i}static _IsCanvasElement(e){return void 0!==e.toDataURL}_rebuild(){this.update()}}e.s(["DynamicTexture",0,n],10037),e.i(10037),e.s(["DynamicTexture",0,n],88725)}]);
|
|
@@ -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,64153,t=>{"use strict";var e=t.i(62478),o=t.i(75105),s=t.i(44520);class i extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.sound=this.registerDataInput("sound",o.RichTypeAny),this.volume=this.registerDataInput("volume",o.RichTypeNumber,1),this.startOffset=this.registerDataInput("startOffset",o.RichTypeNumber,0),this.loop=this.registerDataInput("loop",o.RichTypeBoolean,!1)}_execute(t,e){let o=this.sound.getValue(t);if(!o){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}let s=this.volume.getValue(t),i=this.startOffset.getValue(t),l=this.loop.getValue(t);o.play({volume:s,startOffset:i,loop:l}),this.out._activateSignal(t)}getClassName(){return"FlowGraphPlaySoundBlock"}}let l=!1;function a(){l||(l=!0,(0,s.RegisterClass)("FlowGraphPlaySoundBlock",i))}t.s(["FlowGraphPlaySoundBlock",0,i,"RegisterFlowGraphPlaySoundBlock",0,a],94611),a(),t.s([],35769),t.i(35769),t.i(94611),t.s(["FlowGraphPlaySoundBlock",0,i],64153)}]);
|