@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.
Files changed (347) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +4 -4
  6. package/out/__next._tree.txt +2 -2
  7. package/out/_next/static/chunks/{2o8k8x5zcepfy.js → 0-k4hp87gwues.js} +1 -1
  8. package/out/_next/static/chunks/{0s84ekz_f9ngx.js → 0-laj-bivzp4x.js} +1 -1
  9. package/out/_next/static/chunks/{3tdzweqszru4y.js → 04zj0yf1qhk1o.js} +1 -1
  10. package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
  11. package/out/_next/static/chunks/{1e_-_7biavwmb.js → 06fbalmyyfpsy.js} +1 -1
  12. package/out/_next/static/chunks/{3yr66ufoli71t.js → 07hgbbqksqd1g.js} +1 -1
  13. package/out/_next/static/chunks/08ou2nvy48e0u.js +1 -0
  14. package/out/_next/static/chunks/08y5-irjbsiy8.js +1 -0
  15. package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 0_jrfk2u1u3fi.js} +1 -1
  16. package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 0a475u_q5i_dd.js} +2 -2
  17. package/out/_next/static/chunks/0aad2r4s4wl1x.js +5 -0
  18. package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 0cmyc-uvk93kl.js} +52 -52
  19. package/out/_next/static/chunks/{1ozi46t8jajqh.js → 0d9pxx1w_zqr9.js} +1 -1
  20. package/out/_next/static/chunks/{3-x7522okdy-7.js → 0e5dcxmkprebg.js} +1 -1
  21. package/out/_next/static/chunks/{1n_gxvu31aofy.js → 0gk5rnci1hznh.js} +2 -2
  22. package/out/_next/static/chunks/0gnjtwq-474uc.js +1 -0
  23. package/out/_next/static/chunks/0gsh_d0m5xss1.js +1 -0
  24. package/out/_next/static/chunks/0i9wa8hjd-5tc.js +1 -0
  25. package/out/_next/static/chunks/0ibzpjo0h731v.js +1 -0
  26. package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 0j0a0wvmmghxj.js} +1 -1
  27. package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0j2ygtc_-bo3m.js} +1 -1
  28. package/out/_next/static/chunks/{0dck67in84de0.js → 0j_3k5qhv_mdx.js} +1 -1
  29. package/out/_next/static/chunks/0jap7l5-bskj4.js +114 -0
  30. package/out/_next/static/chunks/{0n92hec_jb_-_.js → 0jis2w2mfx062.js} +1 -1
  31. package/out/_next/static/chunks/0jjvp2slpf7d6.js +1 -0
  32. package/out/_next/static/chunks/0ko10wo4rc9-b.js +1 -0
  33. package/out/_next/static/chunks/0lqmvz6k2h_of.js +1 -0
  34. package/out/_next/static/chunks/0lwjmr8efrlbt.js +17 -0
  35. package/out/_next/static/chunks/0noxyupihh8dk.js +1 -0
  36. package/out/_next/static/chunks/{2-hdejef-mpka.js → 0o0qtv35dqv3i.js} +219 -16
  37. package/out/_next/static/chunks/{43hwl25uke0l_.js → 0o1vph7x9shzu.js} +1 -1
  38. package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 0o73w0cn5n_vl.js} +1 -1
  39. package/out/_next/static/chunks/0p6phe9kjlxn8.js +1 -0
  40. package/out/_next/static/chunks/0ptxb9dcwsw3o.js +1 -0
  41. package/out/_next/static/chunks/{31ei992g8gqz9.js → 0q0i4pdyq66gb.js} +1 -1
  42. package/out/_next/static/chunks/0q8pt8fd0ma30.js +1 -0
  43. package/out/_next/static/chunks/0qqx9aoz8l5d2.js +1 -0
  44. package/out/_next/static/chunks/0r-x702_jvhud.js +112 -0
  45. package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 0rykrf_vofbad.js} +1 -1
  46. package/out/_next/static/chunks/0tsk32q-88t_7.js +1 -0
  47. package/out/_next/static/chunks/0u7577db_ivyr.js +1 -0
  48. package/out/_next/static/chunks/0unnrt0un064x.js +1 -0
  49. package/out/_next/static/chunks/{3mvaub8qjdyuc.js → 0uygtr4mo3h0v.js} +1 -1
  50. package/out/_next/static/chunks/0vf3facit951s.js +1 -0
  51. package/out/_next/static/chunks/{2pcdnd4nzcw4c.js → 0vzo-8t8c26k9.js} +1 -1
  52. package/out/_next/static/chunks/0xx7_7y5jdlh4.js +1 -0
  53. package/out/_next/static/chunks/0xyija62b6txc.js +1 -0
  54. package/out/_next/static/chunks/{0vso09vdz38sr.js → 0xzamrecplwzw.js} +1 -1
  55. package/out/_next/static/chunks/{2khh_pmm224k5.js → 0yd4_xh476fjn.js} +14 -217
  56. package/out/_next/static/chunks/0ypejzd74ixbw.js +338 -0
  57. package/out/_next/static/chunks/0zeb37703zcz3.js +1 -0
  58. package/out/_next/static/chunks/0zu5ato7-1-q9.js +1 -0
  59. package/out/_next/static/chunks/0zydv7y47dxgh.js +1 -0
  60. package/out/_next/static/chunks/103x4jwovb6d-.js +1 -0
  61. package/out/_next/static/chunks/107wfq84g9-kn.js +1 -0
  62. package/out/_next/static/chunks/10afagk8yn__n.js +1 -0
  63. package/out/_next/static/chunks/12ory_c78yl31.js +1 -0
  64. package/out/_next/static/chunks/{1ccn725by19i1.js → 133dqp8_7_yo6.js} +1 -1
  65. package/out/_next/static/chunks/1365lgwdd4vuo.js +1 -0
  66. package/out/_next/static/chunks/146ou-ohb_qhs.js +1 -0
  67. package/out/_next/static/chunks/{425epvuw3yy-n.js → 14e4k-718qadd.js} +31 -31
  68. package/out/_next/static/chunks/14orr68xgdykd.js +1 -0
  69. package/out/_next/static/chunks/15qfoj-vl9thu.js +1 -0
  70. package/out/_next/static/chunks/{0okbyggxe6mx5.js → 161yjxmdz9obc.js} +1 -1
  71. package/out/_next/static/chunks/166yqx3_qvbpy.js +1 -0
  72. package/out/_next/static/chunks/16gwjao676ieb.js +1 -0
  73. package/out/_next/static/chunks/{0n-zml1gn0o1u.js → 16rmmzhy2p7bw.js} +1 -1
  74. package/out/_next/static/chunks/{442e2l3jzxd-_.js → 17_jjyx4jz9dd.js} +1 -1
  75. package/out/_next/static/chunks/{0zf26k6juhlzo.js → 184pz6z3dflfm.js} +13 -10
  76. package/out/_next/static/chunks/18h9ugdz6igdb.js +1 -0
  77. package/out/_next/static/chunks/19d8n5t7ka2fb.js +1 -0
  78. package/out/_next/static/chunks/{1mvadj46owrck.js → 1_4hh3dfop93j.js} +1 -1
  79. package/out/_next/static/chunks/1_rbzw3n4fk0g.js +1 -0
  80. package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 1a94whad0y57f.js} +1 -1
  81. package/out/_next/static/chunks/{1vmpltnr0cyos.js → 1aa9g197l4twm.js} +1 -1
  82. package/out/_next/static/chunks/1bq0fcnt1wy86.js +1 -0
  83. package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 1bv-jzy_2jiqs.js} +1 -1
  84. package/out/_next/static/chunks/1c6mho7e0enta.js +1 -0
  85. package/out/_next/static/chunks/{2ymtumj-hfrjo.js → 1dfaheve77dhi.js} +1 -1
  86. package/out/_next/static/chunks/1dgf112ehnhm1.js +1 -0
  87. package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1eirucr9s6-h5.js} +1 -1
  88. package/out/_next/static/chunks/{0dva036n8ab62.js → 1f07l3q77zat1.js} +1 -1
  89. package/out/_next/static/chunks/1fervgvgv10r-.js +1 -0
  90. package/out/_next/static/chunks/1fsof7un7igrn.js +1 -0
  91. package/out/_next/static/chunks/{3gyyjsot8mdav.js → 1gvu5a6ffbs7l.js} +1 -1
  92. package/out/_next/static/chunks/{0t89-lfct-7m6.js → 1h1gixjbjkbsl.js} +5 -5
  93. package/out/_next/static/chunks/1iel4pzhhh-c3.js +1 -0
  94. package/out/_next/static/chunks/1iojfx3-g4_n9.js +1 -0
  95. package/out/_next/static/chunks/{1__nujzr9e352.js → 1j4c0nvdo5q68.js} +1 -1
  96. package/out/_next/static/chunks/{1o3ggu95lfu6i.js → 1j4jt5q7px8sy.js} +1 -1
  97. package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 1jjw9hxgi2vzi.js} +1 -1
  98. package/out/_next/static/chunks/1k_8olnprvi8r.js +1 -0
  99. package/out/_next/static/chunks/1l0rt7d4m-xdk.js +5 -0
  100. package/out/_next/static/chunks/{1oljzgz5jistn.js → 1lu7rjfvxj8yj.js} +1 -1
  101. package/out/_next/static/chunks/{2c2dspoukng-5.js → 1mt4cnd_d6jvf.js} +1 -1
  102. package/out/_next/static/chunks/1my968s78he8g.js +272 -0
  103. package/out/_next/static/chunks/{03zip1uidm6x9.js → 1s0dpdqy480hg.js} +1 -1
  104. package/out/_next/static/chunks/1t-yolk97lmot.js +12 -0
  105. package/out/_next/static/chunks/1t2g1v0ubcsam.js +1 -0
  106. package/out/_next/static/chunks/{18wa83g0qfh-b.js → 1tbes2sv-qzcx.js} +1 -1
  107. package/out/_next/static/chunks/1upy8a5cb75kt.js +1 -0
  108. package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1x0j78ohufpul.js} +1 -1
  109. package/out/_next/static/chunks/1xed71f608m4b.js +1 -0
  110. package/out/_next/static/chunks/1z790xxb46gxy.js +1 -0
  111. package/out/_next/static/chunks/{22rl_arnzs-ve.js → 1zmx71cvc6ksk.js} +1 -1
  112. package/out/_next/static/chunks/{3kalvwsf11-ss.js → 2-_a-v1xeo5hb.js} +15 -12
  113. package/out/_next/static/chunks/2-i29-jdbwww6.js +532 -0
  114. package/out/_next/static/chunks/{1solqr18og2ot.js → 2117sv2qzo6yq.js} +1 -1
  115. package/out/_next/static/chunks/219n3q-_eengm.js +1 -0
  116. package/out/_next/static/chunks/21wo3vdr_uby8.js +1 -0
  117. package/out/_next/static/chunks/{1nqojcig-0m3c.js → 22yht3s7c-xih.js} +1 -1
  118. package/out/_next/static/chunks/{3go-mst7n3udd.js → 23-y1f_zw56vo.js} +1 -1
  119. package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 25brs445bjbik.js} +2 -2
  120. package/out/_next/static/chunks/25gep78-izw79.js +4 -0
  121. package/out/_next/static/chunks/{099ilz3dmm1jw.js → 26i7dn31afdtm.js} +1 -1
  122. package/out/_next/static/chunks/27hbplu797elx.js +1 -0
  123. package/out/_next/static/chunks/{3n-7bcmfbh299.js → 27z7j17kcrty_.js} +11 -11
  124. package/out/_next/static/chunks/{380ivzcfb4o_3.js → 287hakn2ijupp.js} +2 -2
  125. package/out/_next/static/chunks/28i3wgvgn_at1.js +1 -0
  126. package/out/_next/static/chunks/2992eiy52nazj.js +1 -0
  127. package/out/_next/static/chunks/29_n5j-hg_gsa.js +1 -0
  128. package/out/_next/static/chunks/29bxq-67oazfg.js +1 -0
  129. package/out/_next/static/chunks/{309f81l5ucsb_.js → 29hkkj9raxte9.js} +50 -50
  130. package/out/_next/static/chunks/29ings58w7kp1.js +1 -0
  131. package/out/_next/static/chunks/{2e46-2ubc90do.js → 2_6b9lraq-exh.js} +5 -5
  132. package/out/_next/static/chunks/{3w4qettzp7khe.js → 2_lw4d7t-xcqi.js} +32 -32
  133. package/out/_next/static/chunks/2_n0cpkdsjzli.js +1 -0
  134. package/out/_next/static/chunks/2a3iy701j4r_y.js +1 -0
  135. package/out/_next/static/chunks/2al9dh3_1ixhv.js +1 -0
  136. package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2as_br1awqk6k.js} +69 -69
  137. package/out/_next/static/chunks/{0c5d3qn2mb3ew.js → 2awr1c_vfsutb.js} +1 -1
  138. package/out/_next/static/chunks/{2q0rz76kj6h5z.js → 2b5nt7yn-pq3a.js} +1 -1
  139. package/out/_next/static/chunks/2bxe3kjr17tdp.js +1 -0
  140. package/out/_next/static/chunks/{2z9mdtudj8crz.js → 2c8rmxz151fxa.js} +20 -18
  141. package/out/_next/static/chunks/{35aagg46wp139.js → 2clevl_9ayd0x.js} +1 -1
  142. package/out/_next/static/chunks/{41qxc142snm22.js → 2dvbzar93ooc-.js} +1 -1
  143. package/out/_next/static/chunks/2e-vp0e11g9ew.js +1 -0
  144. package/out/_next/static/chunks/{2-p206i_ihx09.js → 2epukrz6paj9n.js} +1 -1
  145. package/out/_next/static/chunks/2exj9-0p6n9x-.js +1 -0
  146. package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 2fspbfbxbswzd.js} +1 -1
  147. package/out/_next/static/chunks/2gf8l6hbmt7v3.js +1 -0
  148. package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 2h07np207nlx7.js} +1 -1
  149. package/out/_next/static/chunks/{11p92pnn5el0v.js → 2h9i_adbqaxs4.js} +1 -1
  150. package/out/_next/static/chunks/{0bj_310rugcn1.js → 2iu0_3cx-ny74.js} +11 -11
  151. package/out/_next/static/chunks/2jio3sio-_43z.js +1 -0
  152. package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 2kk_vvmr2xm3d.js} +29 -29
  153. package/out/_next/static/chunks/2kmmk9coo9_b0.js +505 -0
  154. package/out/_next/static/chunks/{055baac5e-c2o.js → 2laz1v9fg2a2z.js} +1 -1
  155. package/out/_next/static/chunks/{1qsut_e3msg0l.js → 2mjjo0yj-4ro4.js} +1 -1
  156. package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 2mrkv0z2i74pv.js} +2 -2
  157. package/out/_next/static/chunks/{04_3ri5emyfcu.js → 2neieeo9g2u56.js} +1 -1
  158. package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 2oacwtbslo90t.js} +84 -84
  159. package/out/_next/static/chunks/2pb_uosb-aa8x.js +1 -0
  160. package/out/_next/static/chunks/2qu-gpm3ux1l6.js +1 -0
  161. package/out/_next/static/chunks/2rsi6v7qmqx2b.js +1 -0
  162. package/out/_next/static/chunks/2s4fzgzkwjluu.js +2 -0
  163. package/out/_next/static/chunks/2tdvuc-27khif.js +1 -0
  164. package/out/_next/static/chunks/{2bm95r0011asw.js → 2trolrgd7neax.js} +1 -1
  165. package/out/_next/static/chunks/2uyuafmoe5wi0.js +3 -0
  166. package/out/_next/static/chunks/2w2e0pxgs-n8f.js +1 -0
  167. package/out/_next/static/chunks/{1qxhgauuomthl.js → 2wgh5i70bzelt.js} +60 -60
  168. package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 2x-7kbwq8tl-o.js} +59 -59
  169. package/out/_next/static/chunks/{1t2exh89lnazc.js → 2xe4bgir5l-9b.js} +32 -99
  170. package/out/_next/static/chunks/2xujlsx3stqig.js +1 -0
  171. package/out/_next/static/chunks/{267q_eg-c6f6m.js → 3-yhe6rcsjh88.js} +1 -1
  172. package/out/_next/static/chunks/30y71dxdpv52d.js +1 -0
  173. package/out/_next/static/chunks/32c-e_v8_2xkf.js +1 -0
  174. package/out/_next/static/chunks/32oj0iudhp8bm.js +1 -0
  175. package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 336ckqpboqmbn.js} +1 -1
  176. package/out/_next/static/chunks/33p9du6y9eegg.js +1 -0
  177. package/out/_next/static/chunks/{3w_umk1xtj6to.js → 36pz_ews7u0xb.js} +1 -1
  178. package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 374lzksboll-t.js} +1 -1
  179. package/out/_next/static/chunks/38om-j0h0rryk.js +1 -0
  180. package/out/_next/static/chunks/{3oyuoqr8y2g9r.js → 38q0enmlg5q9o.js} +2 -2
  181. package/out/_next/static/chunks/{25gf6xn9u1c57.js → 39cou9lia_g7l.js} +1 -1
  182. package/out/_next/static/chunks/39pkya0_bvcaj.js +1 -0
  183. package/out/_next/static/chunks/{1x99m91nt1m3b.js → 39rhmj_32ujyj.js} +1 -1
  184. package/out/_next/static/chunks/3_1zzmx92j9c0.js +1 -0
  185. package/out/_next/static/chunks/{3z4suna4kq4j5.js → 3_dm45k0vk1aa.js} +34 -35
  186. package/out/_next/static/chunks/3_earszshuz4n.js +1 -0
  187. package/out/_next/static/chunks/{1ephzzweysylq.js → 3_gfl66zf638s.js} +38 -105
  188. package/out/_next/static/chunks/3ap_uxc8lx7ni.js +1 -0
  189. package/out/_next/static/chunks/{0pv2wirx45e1m.js → 3b6na8zrex8jo.js} +1 -1
  190. package/out/_next/static/chunks/3c0cxt72vilyz.js +1 -0
  191. package/out/_next/static/chunks/3cp5nmtwxq4gr.js +1 -0
  192. package/out/_next/static/chunks/{0tn-9w46cwydp.js → 3d43gd91r06y6.js} +39 -40
  193. package/out/_next/static/chunks/3g78x0pdaoi_4.js +1 -0
  194. package/out/_next/static/chunks/{1di5enkavl9vx.js → 3gjvl1p-tugfe.js} +2 -2
  195. package/out/_next/static/chunks/{1mrvp94tietcv.js → 3i8iro1gas1vx.js} +1 -1
  196. package/out/_next/static/chunks/{3-_08i4_7yhno.js → 3ioxfi3bvznhh.js} +1 -1
  197. package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3j3ol_d1vsdhx.js} +1 -1
  198. package/out/_next/static/chunks/3kpqfqr99vo7z.js +1 -0
  199. package/out/_next/static/chunks/3lladf_wemm-2.js +1 -0
  200. package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 3mmy9zsb7zo-m.js} +12 -9
  201. package/out/_next/static/chunks/{17aahvhpls1l7.js → 3my05px5mv_s5.js} +83 -16
  202. package/out/_next/static/chunks/3n62hbywoknop.js +1 -0
  203. package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3nr48h9zwum-3.js} +1 -1
  204. package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3nwaovnpiyrt8.js} +1 -1
  205. package/out/_next/static/chunks/3o_dmzpahx-5g.js +1 -0
  206. package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 3p03l0z65c8vc.js} +27 -25
  207. package/out/_next/static/chunks/{00xc-0pj7on2s.js → 3puu2_-t0lln9.js} +29 -29
  208. package/out/_next/static/chunks/{077eo-0dhbxz-.js → 3qo7e6b73mfxq.js} +1 -1
  209. package/out/_next/static/chunks/3r7v7un976sn7.js +1 -0
  210. package/out/_next/static/chunks/{255knovck7pv2.js → 3rj-5v0j_2-_2.js} +4 -4
  211. package/out/_next/static/chunks/3rl_nhqwew40w.js +1 -0
  212. package/out/_next/static/chunks/3s7hqij6xp_4e.js +1 -0
  213. package/out/_next/static/chunks/{1ng-fqh2_n984.js → 3si3migsmvz9o.js} +1 -1
  214. package/out/_next/static/chunks/3t4ys6th6gf2w.js +1 -0
  215. package/out/_next/static/chunks/{1og49_atcksim.js → 3twr9ds68-9us.js} +1 -1
  216. package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3txu-i5qn183a.js} +65 -65
  217. package/out/_next/static/chunks/{3y_51bmdnc0ey.js → 3uarw1i1ij1er.js} +1 -1
  218. package/out/_next/static/chunks/3un-w6wutw1qn.js +1 -0
  219. package/out/_next/static/chunks/3v8kgnjk27wbe.js +1 -0
  220. package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 3vtmucpx25o7q.js} +61 -61
  221. package/out/_next/static/chunks/{04j9pexbmysdy.js → 3vu5y270muh-7.js} +1 -1
  222. package/out/_next/static/chunks/3we1khqfexh3x.js +1 -0
  223. package/out/_next/static/chunks/3yk0hzfq5rcs6.js +1 -0
  224. package/out/_next/static/chunks/3z35loj4i-id4.js +1 -0
  225. package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 3zv5kyos9vtmm.js} +1 -1
  226. package/out/_next/static/chunks/{1hsvckd0sgdgr.js → 415g3asdds1ac.js} +1 -1
  227. package/out/_next/static/chunks/{1nasz7q3tvb53.js → 42lqt7ig40wk5.js} +1 -1
  228. package/out/_next/static/chunks/42s6ghsurq5q7.js +1 -0
  229. package/out/_next/static/chunks/42yctcfi2rfwr.js +1 -0
  230. package/out/_next/static/chunks/43_fau1gg69eo.js +1 -0
  231. package/out/_next/static/chunks/43ywrdzg_7af8.js +31 -0
  232. package/out/_next/static/chunks/{1ho02fc091nj2.js → 44m1ijc5cv80x.js} +1 -1
  233. package/out/_next/static/chunks/{3k-gz8qf-mj-p.js → 453_bg0lgesmp.js} +1 -1
  234. package/out/_next/static/chunks/{turbopack-3r8yn0j92tqw_.js → turbopack-1s36ieuku1ds3.js} +1 -1
  235. package/out/_not-found/__next._full.txt +9 -9
  236. package/out/_not-found/__next._head.txt +4 -4
  237. package/out/_not-found/__next._index.txt +4 -4
  238. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  239. package/out/_not-found/__next._not-found.txt +3 -3
  240. package/out/_not-found/__next._tree.txt +2 -2
  241. package/out/_not-found.html +1 -1
  242. package/out/_not-found.txt +9 -9
  243. package/out/index.html +1 -1
  244. package/out/index.txt +11 -11
  245. package/package.json +14 -14
  246. package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
  247. package/out/_next/static/chunks/00o9hr_3hd0r8.js +0 -1
  248. package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
  249. package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
  250. package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
  251. package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
  252. package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
  253. package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
  254. package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
  255. package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
  256. package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
  257. package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
  258. package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
  259. package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
  260. package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
  261. package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
  262. package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
  263. package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
  264. package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
  265. package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
  266. package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
  267. package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
  268. package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
  269. package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
  270. package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
  271. package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
  272. package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
  273. package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
  274. package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
  275. package/out/_next/static/chunks/0yvevihll7sz-.js +0 -1
  276. package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
  277. package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
  278. package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
  279. package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
  280. package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
  281. package/out/_next/static/chunks/141tngxsk32hq.js +0 -1
  282. package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
  283. package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
  284. package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
  285. package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
  286. package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
  287. package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
  288. package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
  289. package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
  290. package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
  291. package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
  292. package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
  293. package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
  294. package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
  295. package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
  296. package/out/_next/static/chunks/1rb8wewjbdisv.js +0 -1
  297. package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
  298. package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
  299. package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
  300. package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
  301. package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
  302. package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
  303. package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
  304. package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
  305. package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
  306. package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
  307. package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
  308. package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
  309. package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
  310. package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
  311. package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
  312. package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
  313. package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
  314. package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
  315. package/out/_next/static/chunks/2ies66gmou203.js +0 -1
  316. package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
  317. package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
  318. package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
  319. package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
  320. package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
  321. package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
  322. package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
  323. package/out/_next/static/chunks/2zyjw8g4tiu51.js +0 -1
  324. package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
  325. package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
  326. package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
  327. package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
  328. package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
  329. package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
  330. package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
  331. package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
  332. package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
  333. package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
  334. package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
  335. package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
  336. package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
  337. package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
  338. package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
  339. package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
  340. package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
  341. package/out/_next/static/chunks/3rpm-1ryf073k.js +0 -1
  342. package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
  343. package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
  344. package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
  345. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_buildManifest.js +0 -0
  346. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_clientMiddlewareManifest.js +0 -0
  347. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57660,e=>{"use strict";var t=e.i(96042);class r{static GetPlanes(e){let i=[];for(let e=0;e<6;e++)i.push(new t.Plane(0,0,0,0));return r.GetPlanesToRef(e,i),i}static GetNearPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[2],t.normal.y=r[7]+r[6],t.normal.z=r[11]+r[10],t.d=r[15]+r[14],t.normalize()}static GetFarPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[2],t.normal.y=r[7]-r[6],t.normal.z=r[11]-r[10],t.d=r[15]-r[14],t.normalize()}static GetLeftPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[0],t.normal.y=r[7]+r[4],t.normal.z=r[11]+r[8],t.d=r[15]+r[12],t.normalize()}static GetRightPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[0],t.normal.y=r[7]-r[4],t.normal.z=r[11]-r[8],t.d=r[15]-r[12],t.normalize()}static GetTopPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[1],t.normal.y=r[7]-r[5],t.normal.z=r[11]-r[9],t.d=r[15]-r[13],t.normalize()}static GetBottomPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[1],t.normal.y=r[7]+r[5],t.normal.z=r[11]+r[9],t.d=r[15]+r[13],t.normalize()}static GetPlanesToRef(e,t){r.GetNearPlaneToRef(e,t[0]),r.GetFarPlaneToRef(e,t[1]),r.GetLeftPlaneToRef(e,t[2]),r.GetRightPlaneToRef(e,t[3]),r.GetTopPlaneToRef(e,t[4]),r.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let r=0;r<6;r++)if(0>t[r].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,r])},92247,e=>{"use strict";var t=e.i(69400),r=e.i(41041);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let s;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(r.VertexBuffer.NormalKind))return null;let a=this.pickedMesh.getIndices();a?.length===0&&(a=null);let n=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],l=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],n):n.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),h=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],l):l.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);i=i.scale(this.bu),h=h.scale(this.bv),c=c.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+h.x+c.x,i.y+h.y+c.y,i.z+h.z+c.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],n):n.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),h=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],l):l.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(h),d=c.subtract(h);s=t.Vector3.Cross(u,d)}let h=(e,r)=>{if(-1!==this.thinInstanceIndex){let i=e._thinInstanceDataStorage.matrixData,s=this.thinInstanceIndex<<4;if(i&&i.length>s){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(i,s,e),t.Vector3.TransformNormalToRef(r,e,r)}}let i=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(i),(i=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),i.invert(),i.transposeToRef(t.TmpVectors.Matrix[1]),i=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(r,i,r)};if(e&&h(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||h(this.pickedMesh,r),t.Vector3.Dot(r,this.ray.direction)>0&&s.negateInPlace()}return s.normalize(),s}getTextureCoordinates(e=r.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let i=this.pickedMesh.getIndices();if(!i)return null;let s=this.pickedMesh.getVerticesData(e);if(!s)return null;let a=t.Vector2.FromArray(s,2*i[3*this.faceId]),n=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return a=a.scale(this.bu),n=n.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(a.x+n.x+o.x,a.y+n.y+o.y)}}])},84964,e=>{"use strict";var t=e.i(69400);class r{}r.POINTERDOWN=1,r.POINTERUP=2,r.POINTERMOVE=4,r.POINTERWHEEL=8,r.POINTERPICK=16,r.POINTERTAP=32,r.POINTERDOUBLETAP=64;class i{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,r,"PointerInfo",0,class extends i{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,r,i=null){super(e,t),this._pickInfo=r,this._inputManager=i}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends i{constructor(e,r,i,s){super(e,r),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(i,s)}}])},71092,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,r,"KeyboardInfoPre",0,class extends r{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},4021,e=>{"use strict";var t,r;(r=t||(t={}))[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp";class i{}i.DOM_DELTA_PIXEL=0,i.DOM_DELTA_LINE=1,i.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,i])},3524,69680,e=>{"use strict";var t=e.i(41041),r=e.i(3864);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new r.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let r=0;r<e.length;r++){let i=e[r];i&&t.push(i)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let r=this._scene.activeCamera;return!!r&&!!(t=t||this._getActivePostProcesses(r._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(r,e,null!=t),!0)}directRender(e,t=null,r=!1,i=0,s=0,a=!1,n=e.length){let o=this._scene.getEngine();for(let l=0;l<n;l++){l<e.length-1?e[l+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):a||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[l].name} output`));let n=e[l],h=n.apply();h&&(n.onBeforeRenderObservable.notifyObservers(h),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,h),o.drawElementsType(0,0,6),n.onAfterRenderObservable.notifyObservers(h))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let a=this._scene.activeCamera;if(!a||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(a._postProcesses)).length||!this._scene.postProcessesEnabled))return;let n=this._scene.getEngine();for(let o=0,l=i.length;o<l;o++){let h=i[o];if(o<l-1?h._outputTexture=i[o+1].activate(a,t?.texture):(t?(n.bindFramebuffer(t,r,void 0,void 0,s),h._outputTexture=t):(n.restoreDefaultFramebuffer(),h._outputTexture=null),n._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let c=h.apply();c&&(h.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),n.bindBuffers(this._vertexBuffers,this._indexBuffer,c),n.drawElementsType(0,0,6),h.onAfterRenderObservable.notifyObservers(c))}n.setDepthBuffer(!0),n.setDepthWrite(!0),n.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],3524);var i=e.i(32451),s=e.i(69400);class a{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=a.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=a.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=a.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,a=null){this.index=e,this._opaqueSubMeshes=new i.SmartArray(256),this._transparentSubMeshes=new i.SmartArray(256),this._alphaTestSubMeshes=new i.SmartArray(256),this._depthOnlySubMeshes=new i.SmartArray(256),this._particleSystems=new i.SmartArray(256),this._spriteManagers=new i.SmartArray(256),this._empty=!0,this._edgesRenderers=new i.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=r,this.alphaTestSortCompareFn=s,this.transparentSortCompareFn=a}render(e,t,r,i,s=!0,a=!0,n=!0,o=!0,l){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let h=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(h.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),h.setColorWrite(!0)),a&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),n&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let c=h.getStencilBuffer();if(h.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(l||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(h.setStencilBuffer(c),l)l(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);h.setAlphaMode(0)}if(h.setStencilBuffer(!1),a&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();h.setAlphaMode(0)}h.setStencilBuffer(c)}_renderOpaqueSorted(e){a._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){a._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){a._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,n){let o,l=0,h=r?r.globalPosition:a._ZeroVector;if(i)for(;l<e.length;l++)(o=e.data[l])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,h);let c=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&c.sort(t);let u=c[0].getMesh().getScene();for(l=0;l<c.length;l++)if(o=c[l],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!n){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),o.render(!1),t.setColorWrite(!0)}}o.render(i)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:a.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let r=e.getMesh(),i=t.getMesh();return r.material&&i.material?r.material.uniqueId-i.material.uniqueId:r.uniqueId-i.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),void 0===r&&(r=e.getMaterial()),null!=r&&(r.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):r.needAlphaTestingForMesh(t)?(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let r=0;r<this._particleSystems.length;r++){let i=this._particleSystems.data[r];if(0===(t&&t.layerMask&i.layerMask))continue;let s=i.emitter;s.position&&e&&-1===e.indexOf(s)||this._scene._activeParticles.addCount(i.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let r=this._spriteManagers.data[t];0!==(e&&e.layerMask&r.layerMask)&&r.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}a._ZeroVector=s.Vector3.Zero();class n{}class o{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new n,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,r,i,s=!0,a=!0,n=!0,l=!0,h){let c=this._renderingGroupInfo;if(c.scene=this._scene,c.camera=this._scene.activeCamera,c.renderingManager=this,this._scene.spriteManagers&&i)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=o.MIN_RENDERINGGROUPS;u<o.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===o.MIN_RENDERINGGROUPS;let d=this._renderingGroups[u];if(!d||d._empty)continue;let p=1<<u;if(c.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(c,p),o.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let o of(d.render(e,i,r,t,s,a,n,l,h),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(c,p)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new a(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,r))}setRenderingOrder(e,t=null,r=null,i=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=r,this._customTransparentSortCompareFn[e]=i,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,r=!0,i=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:r,stencil:i}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}o.MAX_RENDERINGGROUPS=4,o.MIN_RENDERINGGROUPS=0,o.AUTOCLEAR=!0,e.s(["RenderingManager",0,o],69680)},372,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},20363,38329,e=>{"use strict";let t,r,i,s,a,n,o,l,h,c,u,d,p,f,_,m,g,x,S,T,R,b,v,y,M,P,I,C,w,A,E,O,F,B,D,V,L,G,N,U;var z,k=e.i(57575),W=e.i(9855),j=e.i(3864),q=e.i(69400),Y=e.i(74868),K=e.i(44520),H=e.i(85050),X=e.i(44816),$=e.i(78755),Z=e.i(96042),J=e.i(1229);function Q(e,t,r=!1){let i=t.width,s=t.height;if(e instanceof Float32Array){let t=e.byteLength/e.BYTES_PER_ELEMENT,r=new Uint8Array(t);for(;--t>=0;){let i=e[t];i<0?i=0:i>1&&(i=1),r[t]=255*i}e=r}let a=document.createElement("canvas");a.width=i,a.height=s;let n=a.getContext("2d");if(!n)return null;let o=n.createImageData(i,s);if(o.data.set(e),n.putImageData(o,0,0),r){let e=document.createElement("canvas");e.width=i,e.height=s;let t=e.getContext("2d");return t?(t.translate(0,s),t.scale(1,-1),t.drawImage(a,0,0),e.toDataURL("image/png")):null}return a.toDataURL("image/png")}function ee(e,t=0,r=0){let i=e.getInternalTexture();if(!i)return null;let s=e._readPixelsSync(t,r);return s?Q(s,e.getSize(),i.invertY):null}async function et(e,t=0,r=0){let i=e.getInternalTexture();if(!i)return null;let s=await e.readPixels(t,r);return s?Q(s,e.getSize(),i.invertY):null}e.s(["GenerateBase64StringFromTexture",0,ee,"GenerateBase64StringFromTextureAsync",0,et],38329);var er=e.i(372),ei=e.i(2060);let es=(f=Y.BaseTexture,_=[],m=[],g=[],x=[],S=[],T=[],R=[],b=[],v=[],y=[],M=[],P=[],I=[],C=[],w=[],A=[],E=[],O=[],F=[],B=[],D=[],V=[],L=[],G=[],N=[],z=class extends f{static _CreateVideoTexture(e,t,r,i=!1,s=!1,a=z.TRILINEAR_SAMPLINGMODE,n={},o,l=5){throw(0,H._WarnImport)("VideoTexture")}get noMipmap(){return this._noMipmap}get mimeType(){return this._mimeType}set isBlocking(e){this._isBlocking=e}get isBlocking(){return this._isBlocking}get invertY(){return this._invertY}constructor(e,t,r,i,s=z.TRILINEAR_SAMPLINGMODE,a=null,n=null,o=null,l=!1,h,c,u,d,p){let f;super(t),this.url=((0,k.__runInitializers)(this,_),(0,k.__runInitializers)(this,m,null)),this.uOffset=((0,k.__runInitializers)(this,g),(0,k.__runInitializers)(this,x,0)),this.vOffset=((0,k.__runInitializers)(this,S),(0,k.__runInitializers)(this,T,0)),this.uScale=((0,k.__runInitializers)(this,R),(0,k.__runInitializers)(this,b,1)),this.vScale=((0,k.__runInitializers)(this,v),(0,k.__runInitializers)(this,y,1)),this.uAng=((0,k.__runInitializers)(this,M),(0,k.__runInitializers)(this,P,0)),this.vAng=((0,k.__runInitializers)(this,I),(0,k.__runInitializers)(this,C,0)),this.wAng=((0,k.__runInitializers)(this,w),(0,k.__runInitializers)(this,A,0)),this.uRotationCenter=((0,k.__runInitializers)(this,E),(0,k.__runInitializers)(this,O,.5)),this.vRotationCenter=((0,k.__runInitializers)(this,F),(0,k.__runInitializers)(this,B,.5)),this.wRotationCenter=((0,k.__runInitializers)(this,D),(0,k.__runInitializers)(this,V,.5)),this.homogeneousRotationInUVTransform=((0,k.__runInitializers)(this,L),(0,k.__runInitializers)(this,G,!1)),this.inspectableCustomProperties=((0,k.__runInitializers)(this,N),null),this._noMipmap=!1,this._invertY=!1,this._rowGenerationMatrix=null,this._cachedTextureMatrix=null,this._projectionModeMatrix=null,this._t0=null,this._t1=null,this._t2=null,this._cachedUOffset=-1,this._cachedVOffset=-1,this._cachedUScale=0,this._cachedVScale=0,this._cachedUAng=-1,this._cachedVAng=-1,this._cachedWAng=-1,this._cachedReflectionProjectionMatrixId=-1,this._cachedURotationCenter=-1,this._cachedVRotationCenter=-1,this._cachedWRotationCenter=-1,this._cachedHomogeneousRotationInUVTransform=!1,this._cachedIdentity3x2=!0,this._cachedReflectionTextureMatrix=null,this._cachedReflectionUOffset=-1,this._cachedReflectionVOffset=-1,this._cachedReflectionUScale=0,this._cachedReflectionVScale=0,this._cachedReflectionCoordinatesMode=-1,this._buffer=null,this._deleteBuffer=!1,this._format=null,this._delayedOnLoad=null,this._delayedOnError=null,this.onLoadObservable=new j.Observable,this._isBlocking=!0,this.name=e||"",this.url=e;let U=!1,W=null,q=!0;"object"==typeof r&&null!==r?(f=r.noMipmap??!1,i=r.invertY??!er.useOpenGLOrientationForUV,s=r.samplingMode??z.TRILINEAR_SAMPLINGMODE,a=r.onLoad??null,n=r.onError??null,o=r.buffer??null,l=r.deleteBuffer??!1,h=r.format,c=r.mimeType,u=r.loaderOptions,d=r.creationFlags,U=r.useSRGBBuffer??!1,W=r.internalTexture??null,q=r.gammaSpace??q,p=r.forcedExtension??p):f=!!r,this._gammaSpace=q,this._noMipmap=f,this._invertY=void 0===i?!er.useOpenGLOrientationForUV:i,this._initialSamplingMode=s,this._buffer=o,this._deleteBuffer=l,this._mimeType=c,this._loaderOptions=u,this._creationFlags=d,this._useSRGBBuffer=U,this._forcedExtension=p,void 0!==h&&(this._format=h);const Y=this.getScene(),K=this._getEngine();if(!K)return;K.onBeforeTextureInitObservable.notifyObservers(this);const H=()=>{this._texture&&(this._texture._invertVScale&&(this.vScale*=-1,this.vOffset+=1),null!==this._texture._cachedWrapU&&(this.wrapU=this._texture._cachedWrapU,this._texture._cachedWrapU=null),null!==this._texture._cachedWrapV&&(this.wrapV=this._texture._cachedWrapV,this._texture._cachedWrapV=null),null!==this._texture._cachedWrapR&&(this.wrapR=this._texture._cachedWrapR,this._texture._cachedWrapR=null)),this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),a&&a(),!this.isBlocking&&Y&&Y.resetCachedMaterial()},$=(e,t)=>{this._loadingError=!0,this._errorObject={message:e,exception:t},n&&n(e,t),z.OnTextureLoadErrorObservable.notifyObservers(this)};if(!this.url&&!W){this._delayedOnLoad=H,this._delayedOnError=$;return}if(this._texture=W??this._getFromCache(this.url,f,s,this._invertY,U,this.isCube),this._texture)if(this._texture.isReady)X.TimingTools.SetImmediate(()=>H());else{const e=this._texture.onLoadedObservable.add(H);this._texture.onErrorObservable.add(t=>{$(t.message,t.exception),this._texture?.onLoadedObservable.remove(e)})}else if(Y&&Y.useDelayedTextureLoading)this.delayLoadState=4,this._delayedOnLoad=H,this._delayedOnError=$;else{try{this._texture=K.createTexture(this.url,f,this._invertY,Y,s,H,$,this._buffer,void 0,this._format,this._forcedExtension,c,u,d,U)}catch(e){throw $("error loading",e),e}l&&(this._buffer=null)}}updateURL(e,t=null,r,i){this.url&&(this.releaseInternalTexture(),this.getScene().markAllMaterialsAsDirty(1,e=>e.hasTexture(this))),(!this.name||this.name.startsWith("data:"))&&(this.name=e),this.url=e,this._buffer=t,this._forcedExtension=i,this.delayLoadState=4;let s=this._delayedOnLoad,a=()=>{s?s():this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),r&&r()};this._delayedOnLoad=a,this.delayLoad()}delayLoad(){if(4!==this.delayLoadState)return;let e=this.getScene();if(!e)return;let t=this.url;!t&&(this.name.indexOf("://")>0||this.name.startsWith("data:"))&&(t=this.name),this.delayLoadState=1,this._texture=this._getFromCache(t,this._noMipmap,this.samplingMode,this._invertY,this._useSRGBBuffer,this.isCube),this._texture?this._delayedOnLoad&&(this._texture.isReady?X.TimingTools.SetImmediate(this._delayedOnLoad):this._texture.onLoadedObservable.add(this._delayedOnLoad)):(this._texture=e.getEngine().createTexture(t,this._noMipmap,this._invertY,e,this.samplingMode,this._delayedOnLoad,this._delayedOnError,this._buffer,null,this._format,this._forcedExtension,this._mimeType,this._loaderOptions,this._creationFlags,this._useSRGBBuffer),this._deleteBuffer&&(this._buffer=null)),this._delayedOnLoad=null,this._delayedOnError=null}_prepareRowForTextureGeneration(e,t,r,i){e*=this._cachedUScale,t*=this._cachedVScale,e-=this.uRotationCenter*this._cachedUScale,t-=this.vRotationCenter*this._cachedVScale,r-=this.wRotationCenter,q.Vector3.TransformCoordinatesFromFloatsToRef(e,t,r,this._rowGenerationMatrix,i),i.x+=this.uRotationCenter*this._cachedUScale+this._cachedUOffset,i.y+=this.vRotationCenter*this._cachedVScale+this._cachedVOffset,i.z+=this.wRotationCenter}getTextureMatrix(e=1){if(this.uOffset===this._cachedUOffset&&this.vOffset===this._cachedVOffset&&this.uScale*e===this._cachedUScale&&this.vScale===this._cachedVScale&&this.uAng===this._cachedUAng&&this.vAng===this._cachedVAng&&this.wAng===this._cachedWAng&&this.uRotationCenter===this._cachedURotationCenter&&this.vRotationCenter===this._cachedVRotationCenter&&this.wRotationCenter===this._cachedWRotationCenter&&this.homogeneousRotationInUVTransform===this._cachedHomogeneousRotationInUVTransform)return this._cachedTextureMatrix;this._cachedUOffset=this.uOffset,this._cachedVOffset=this.vOffset,this._cachedUScale=this.uScale*e,this._cachedVScale=this.vScale,this._cachedUAng=this.uAng,this._cachedVAng=this.vAng,this._cachedWAng=this.wAng,this._cachedURotationCenter=this.uRotationCenter,this._cachedVRotationCenter=this.vRotationCenter,this._cachedWRotationCenter=this.wRotationCenter,this._cachedHomogeneousRotationInUVTransform=this.homogeneousRotationInUVTransform,this._cachedTextureMatrix&&this._rowGenerationMatrix||(this._cachedTextureMatrix=q.Matrix.Zero(),this._rowGenerationMatrix=new q.Matrix,this._t0=q.Vector3.Zero(),this._t1=q.Vector3.Zero(),this._t2=q.Vector3.Zero()),q.Matrix.RotationYawPitchRollToRef(this.vAng,this.uAng,this.wAng,this._rowGenerationMatrix),this.homogeneousRotationInUVTransform?(q.Matrix.TranslationToRef(-this._cachedURotationCenter,-this._cachedVRotationCenter,-this._cachedWRotationCenter,q.TmpVectors.Matrix[0]),q.Matrix.TranslationToRef(this._cachedURotationCenter,this._cachedVRotationCenter,this._cachedWRotationCenter,q.TmpVectors.Matrix[1]),q.Matrix.ScalingToRef(this._cachedUScale,this._cachedVScale,0,q.TmpVectors.Matrix[2]),q.Matrix.TranslationToRef(this._cachedUOffset,this._cachedVOffset,0,q.TmpVectors.Matrix[3]),q.TmpVectors.Matrix[0].multiplyToRef(this._rowGenerationMatrix,this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(q.TmpVectors.Matrix[1],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(q.TmpVectors.Matrix[2],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(q.TmpVectors.Matrix[3],this._cachedTextureMatrix),this._cachedTextureMatrix.setRowFromFloats(2,this._cachedTextureMatrix.m[12],this._cachedTextureMatrix.m[13],this._cachedTextureMatrix.m[14],1)):(this._prepareRowForTextureGeneration(0,0,0,this._t0),this._prepareRowForTextureGeneration(1,0,0,this._t1),this._prepareRowForTextureGeneration(0,1,0,this._t2),this._t1.subtractInPlace(this._t0),this._t2.subtractInPlace(this._t0),q.Matrix.FromValuesToRef(this._t1.x,this._t1.y,this._t1.z,0,this._t2.x,this._t2.y,this._t2.z,0,this._t0.x,this._t0.y,this._t0.z,0,0,0,0,1,this._cachedTextureMatrix));let t=this.getScene();if(!t)return this._cachedTextureMatrix;let r=this._cachedIdentity3x2;return this._cachedIdentity3x2=this._cachedTextureMatrix.isIdentityAs3x2(),this.optimizeUVAllocation&&r!==this._cachedIdentity3x2&&t.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedTextureMatrix}getReflectionTextureMatrix(){let e=this.getScene();if(!e)return this._cachedReflectionTextureMatrix;if(this.uOffset===this._cachedReflectionUOffset&&this.vOffset===this._cachedReflectionVOffset&&this.uScale===this._cachedReflectionUScale&&this.vScale===this._cachedReflectionVScale&&this.coordinatesMode===this._cachedReflectionCoordinatesMode){if(this.coordinatesMode!==z.PROJECTION_MODE)return this._cachedReflectionTextureMatrix;else if(this._cachedReflectionProjectionMatrixId===e.getProjectionMatrix().updateFlag)return this._cachedReflectionTextureMatrix}this._cachedReflectionTextureMatrix||(this._cachedReflectionTextureMatrix=q.Matrix.Zero()),this._projectionModeMatrix||(this._projectionModeMatrix=q.Matrix.Zero());let t=this._cachedReflectionCoordinatesMode!==this.coordinatesMode;switch(this._cachedReflectionUOffset=this.uOffset,this._cachedReflectionVOffset=this.vOffset,this._cachedReflectionUScale=this.uScale,this._cachedReflectionVScale=this.vScale,this._cachedReflectionCoordinatesMode=this.coordinatesMode,this.coordinatesMode){case z.PLANAR_MODE:q.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix),this._cachedReflectionTextureMatrix[0]=this.uScale,this._cachedReflectionTextureMatrix[5]=this.vScale,this._cachedReflectionTextureMatrix[12]=this.uOffset,this._cachedReflectionTextureMatrix[13]=this.vOffset;break;case z.PROJECTION_MODE:{q.Matrix.FromValuesToRef(.5,0,0,0,0,-.5,0,0,0,0,0,0,.5,.5,1,1,this._projectionModeMatrix);let t=e.getProjectionMatrix();this._cachedReflectionProjectionMatrixId=t.updateFlag,t.multiplyToRef(this._projectionModeMatrix,this._cachedReflectionTextureMatrix);break}default:q.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix)}return t&&e.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedReflectionTextureMatrix}clone(){let e={noMipmap:this._noMipmap,invertY:this._invertY,samplingMode:this.samplingMode,onLoad:void 0,onError:void 0,buffer:this._texture?this._texture._buffer:void 0,deleteBuffer:this._deleteBuffer,format:this.textureFormat,mimeType:this.mimeType,loaderOptions:this._loaderOptions,creationFlags:this._creationFlags,useSRGBBuffer:this._useSRGBBuffer};return ei.SerializationHelper.Clone(()=>new z(this._texture?this._texture.url:null,this.getScene(),e),this)}serialize(){let e=this.name;!z.SerializeBuffers&&this.name.startsWith("data:")&&(this.name=""),this.name.startsWith("data:")&&this.url===this.name&&(this.url="");let t=super.serialize(z._SerializeInternalTextureUniqueId);if(!t)return null;if(z.SerializeBuffers||z.ForceSerializeBuffers)if("string"==typeof this._buffer&&this._buffer.startsWith("data:"))t.base64String=this._buffer,t.name=t.name.replace("data:","");else if(this.url&&this.url.startsWith("data:")&&this._buffer instanceof Uint8Array){let e=this.mimeType||"image/png";t.base64String=`data:${e};base64,${(0,J.EncodeArrayBufferToBase64)(this._buffer)}`}else(z.ForceSerializeBuffers||this.url&&this.url.startsWith("blob:")||this._forceSerialize)&&(t.base64String=!this._engine||this._engine._features.supportSyncTextureRead?ee(this):et(this));return t.invertY=this._invertY,t.samplingMode=this.samplingMode,t._creationFlags=this._creationFlags,t._useSRGBBuffer=this._useSRGBBuffer,z._SerializeInternalTextureUniqueId&&(t.internalTextureUniqueId=this._texture?.uniqueId),t.internalTextureLabel=this._texture?.label,t.noMipmap=this._noMipmap,this.name=e,t}getClassName(){return"Texture"}dispose(){super.dispose(),this.onLoadObservable.clear(),this._delayedOnLoad=null,this._delayedOnError=null,this._buffer=null}static Parse(e,t,r){let i;if(e.customType){let i=$.InstantiationTools.Instantiate(e.customType).Parse(e,t,r);return e.samplingMode&&i.updateSamplingMode&&i._samplingMode&&i._samplingMode!==e.samplingMode&&i.updateSamplingMode(e.samplingMode),i}if(e.isCube&&!e.isRenderTarget)return z._CubeTextureParser(e,t,r);let s=void 0!==e.internalTextureUniqueId;if(!e.name&&!e.isRenderTarget&&!s)return null;if(s){for(let r of t.getEngine().getLoadedTexturesCache())if(r.uniqueId===e.internalTextureUniqueId){i=r;break}}let a=t=>{if(t&&t._texture&&(t._texture._cachedWrapU=null,t._texture._cachedWrapV=null,t._texture._cachedWrapR=null),e.samplingMode){let r=e.samplingMode;t&&t.samplingMode!==r&&t.updateSamplingMode(r)}if(t&&e.animations)for(let r=0;r<e.animations.length;r++){let i=e.animations[r],s=(0,K.GetClass)("BABYLON.Animation");s&&t.animations.push(s.Parse(i))}t&&t._texture&&(s&&!i&&t._texture._setUniqueId(e.internalTextureUniqueId),t._texture.label=e.internalTextureLabel)};return ei.SerializationHelper.Parse(()=>{let s=!0;if(e.noMipmap&&(s=!1),e.mirrorPlane){let r=z._CreateMirror(e.name,e.renderTargetSize,t,s);return r._waitingRenderList=e.renderList,r.mirrorPlane=Z.Plane.FromArray(e.mirrorPlane),a(r),r}if(e.isRenderTarget&&!e.base64String){let r=null;if(e.isCube){if(t.reflectionProbes)for(let r=0;r<t.reflectionProbes.length;r++){let i=t.reflectionProbes[r];if(i.name===e.name)return i.cubeTexture}}else(r=z._CreateRenderTargetTexture(e.name,e.renderTargetSize,t,s,e._creationFlags??0))._waitingRenderList=e.renderList;return a(r),r}if(e.isVideo){let i=z._CreateVideoTexture(r+(e.url||e.name),r+(e.src||e.url),t,s,e.invertY,e.samplingMode,e.settings||{});return a(i),i}{let n;if("string"==typeof e.base64String&&e.base64String&&!i){let r={buffer:e.base64String,noMipmap:!s,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{a(n)}},i=e.base64String,o=i.startsWith("data:")?i.substring(5):i;(n=z.CreateFromBase64String("",o,t,r)).name=e.name}else{let o;o=e.name&&(e.name.indexOf("://")>0||e.name.startsWith("data:"))?e.name:r+e.name,e.url&&(e.url.startsWith("data:")||z.UseSerializedUrlIfAny)&&(o=e.url);let l={noMipmap:!s,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{a(n)},internalTexture:i};n=new z(o,t,l)}return n}},e,t)}static CreateFromBase64String(e,t,r,i,s,a=z.TRILINEAR_SAMPLINGMODE,n=null,o=null,l=5,h,c){return new z("data:"+t,r,i,s,a,n,o,e,!1,l,void 0,void 0,h,c)}static LoadFromDataString(e,t,r,i=!1,s,a=!0,n=z.TRILINEAR_SAMPLINGMODE,o=null,l=null,h=5,c,u){return"data:"!==e.substring(0,5)&&(e="data:"+e),new z(e,r,s,a,n,o,l,t,i,h,void 0,void 0,c,u)}},U="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0,t=[(0,W.serialize)()],r=[(0,W.serialize)()],i=[(0,W.serialize)()],s=[(0,W.serialize)()],a=[(0,W.serialize)()],n=[(0,W.serialize)()],o=[(0,W.serialize)()],l=[(0,W.serialize)()],h=[(0,W.serialize)()],c=[(0,W.serialize)()],u=[(0,W.serialize)()],d=[(0,W.serialize)()],p=[(0,W.serialize)()],(0,k.__esDecorate)(z,null,p,{kind:"getter",name:"isBlocking",static:!1,private:!1,access:{has:e=>"isBlocking"in e,get:e=>e.isBlocking},metadata:U},null,_),(0,k.__esDecorate)(null,null,t,{kind:"field",name:"url",static:!1,private:!1,access:{has:e=>"url"in e,get:e=>e.url,set:(e,t)=>{e.url=t}},metadata:U},m,g),(0,k.__esDecorate)(null,null,r,{kind:"field",name:"uOffset",static:!1,private:!1,access:{has:e=>"uOffset"in e,get:e=>e.uOffset,set:(e,t)=>{e.uOffset=t}},metadata:U},x,S),(0,k.__esDecorate)(null,null,i,{kind:"field",name:"vOffset",static:!1,private:!1,access:{has:e=>"vOffset"in e,get:e=>e.vOffset,set:(e,t)=>{e.vOffset=t}},metadata:U},T,R),(0,k.__esDecorate)(null,null,s,{kind:"field",name:"uScale",static:!1,private:!1,access:{has:e=>"uScale"in e,get:e=>e.uScale,set:(e,t)=>{e.uScale=t}},metadata:U},b,v),(0,k.__esDecorate)(null,null,a,{kind:"field",name:"vScale",static:!1,private:!1,access:{has:e=>"vScale"in e,get:e=>e.vScale,set:(e,t)=>{e.vScale=t}},metadata:U},y,M),(0,k.__esDecorate)(null,null,n,{kind:"field",name:"uAng",static:!1,private:!1,access:{has:e=>"uAng"in e,get:e=>e.uAng,set:(e,t)=>{e.uAng=t}},metadata:U},P,I),(0,k.__esDecorate)(null,null,o,{kind:"field",name:"vAng",static:!1,private:!1,access:{has:e=>"vAng"in e,get:e=>e.vAng,set:(e,t)=>{e.vAng=t}},metadata:U},C,w),(0,k.__esDecorate)(null,null,l,{kind:"field",name:"wAng",static:!1,private:!1,access:{has:e=>"wAng"in e,get:e=>e.wAng,set:(e,t)=>{e.wAng=t}},metadata:U},A,E),(0,k.__esDecorate)(null,null,h,{kind:"field",name:"uRotationCenter",static:!1,private:!1,access:{has:e=>"uRotationCenter"in e,get:e=>e.uRotationCenter,set:(e,t)=>{e.uRotationCenter=t}},metadata:U},O,F),(0,k.__esDecorate)(null,null,c,{kind:"field",name:"vRotationCenter",static:!1,private:!1,access:{has:e=>"vRotationCenter"in e,get:e=>e.vRotationCenter,set:(e,t)=>{e.vRotationCenter=t}},metadata:U},B,D),(0,k.__esDecorate)(null,null,u,{kind:"field",name:"wRotationCenter",static:!1,private:!1,access:{has:e=>"wRotationCenter"in e,get:e=>e.wRotationCenter,set:(e,t)=>{e.wRotationCenter=t}},metadata:U},V,L),(0,k.__esDecorate)(null,null,d,{kind:"field",name:"homogeneousRotationInUVTransform",static:!1,private:!1,access:{has:e=>"homogeneousRotationInUVTransform"in e,get:e=>e.homogeneousRotationInUVTransform,set:(e,t)=>{e.homogeneousRotationInUVTransform=t}},metadata:U},G,N),U&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:U}),z.SerializeBuffers=!0,z.ForceSerializeBuffers=!1,z.OnTextureLoadErrorObservable=new j.Observable,z._SerializeInternalTextureUniqueId=!1,z._CubeTextureParser=(e,t,r)=>{throw(0,H._WarnImport)("CubeTexture")},z._CreateMirror=(e,t,r,i)=>{throw(0,H._WarnImport)("MirrorTexture")},z._CreateRenderTargetTexture=(e,t,r,i,s)=>{throw(0,H._WarnImport)("RenderTargetTexture")},z.NEAREST_SAMPLINGMODE=1,z.NEAREST_NEAREST_MIPLINEAR=8,z.BILINEAR_SAMPLINGMODE=2,z.LINEAR_LINEAR_MIPNEAREST=11,z.TRILINEAR_SAMPLINGMODE=3,z.LINEAR_LINEAR_MIPLINEAR=3,z.NEAREST_NEAREST_MIPNEAREST=4,z.NEAREST_LINEAR_MIPNEAREST=5,z.NEAREST_LINEAR_MIPLINEAR=6,z.NEAREST_LINEAR=7,z.NEAREST_NEAREST=1,z.LINEAR_NEAREST_MIPNEAREST=9,z.LINEAR_NEAREST_MIPLINEAR=10,z.LINEAR_LINEAR=2,z.LINEAR_NEAREST=12,z.EXPLICIT_MODE=0,z.SPHERICAL_MODE=1,z.PLANAR_MODE=2,z.CUBIC_MODE=3,z.PROJECTION_MODE=4,z.SKYBOX_MODE=5,z.INVCUBIC_MODE=6,z.EQUIRECTANGULAR_MODE=7,z.FIXED_EQUIRECTANGULAR_MODE=8,z.FIXED_EQUIRECTANGULAR_MIRRORED_MODE=9,z.CLAMP_ADDRESSMODE=0,z.WRAP_ADDRESSMODE=1,z.MIRROR_ADDRESSMODE=2,z.UseSerializedUrlIfAny=!1,z),ea=!1;e.s(["RegisterTexture",0,function(){ea||(ea=!0,(0,K.RegisterClass)("BABYLON.Texture",es),ei.SerializationHelper._TextureParser=es.Parse)},"Texture",0,es],20363)},84684,e=>{"use strict";var t=e.i(69400),r=e.i(63235),i=e.i(88),s=e.i(84106),a=e.i(19919);class n{constructor(e,t,r,i){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=i}}class o{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let i=e.getSize().width,s=e._sphericalPolynomialTargetSize,a=s>0?this._NearestPow2Floor(s):0,n=!e.noMipmap&&e._texture?.generateMipMaps===!0,o=a>0&&a<i&&n,l=o?Math.max(0,Math.round(Math.log2(i/a))):0,h=o?Math.max(1,Math.floor(i/Math.pow(2,l))):i,c=e.readPixels(0,l,void 0,!1),u=e.readPixels(1,l,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,l,void 0,!1),r=e.readPixels(2,l,void 0,!1)):(t=e.readPixels(2,l,void 0,!1),r=e.readPixels(3,l,void 0,!1));let d=e.readPixels(4,l,void 0,!1),p=e.readPixels(5,l,void 0,!1),f=e.gammaSpace,_=a>0&&a<i&&!o;return new Promise(e=>{Promise.all([u,c,t,r,d,p]).then(([t,r,s,n,o,l])=>{let c=h;_&&(t=this._DownsampleFace(t,i,a,4),r=this._DownsampleFace(r,i,a,4),s=this._DownsampleFace(s,i,a,4),n=this._DownsampleFace(n,i,a,4),o=this._DownsampleFace(o,i,a,4),l=this._DownsampleFace(l,i,a,4),c=a);let u={size:c,right:r,left:t,up:s,down:n,front:o,back:l,format:5,type:+(t instanceof Float32Array),gammaSpace:f};e(this.ConvertCubeMapToSphericalPolynomial(u))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,i){let s=e instanceof Float32Array?e:Float32Array.from(e),a=r*r*i,n=new Float32Array(a),o=t/r,l=1/(o*o);for(let e=0;e<r;e++){let a=Math.floor(e*o),h=Math.floor((e+1)*o);for(let c=0;c<r;c++){let u=Math.floor(c*o),d=Math.floor((c+1)*o),p=(e*r+c)*i;for(let e=0;e<i;e++){let r=0;for(let n=a;n<h;n++)for(let a=u;a<d;a++)r+=s[(n*t+a)*i+e];n[p+e]=r*l}}}if(e instanceof Float32Array)return n;let h=new e.constructor(a);for(let e=0;e<a;e++)h[e]=n[e]+.5|0;return h}static ConvertCubeMapToSphericalPolynomial(e,t=0){let n=t>0?this._NearestPow2Floor(t):0;if(n>0&&e.size>n){let t=5===e.format?4:3,r={};for(let i of["right","left","up","down","front","back"])r[i]=this._DownsampleFace(e[i],e.size,n,t);e={...e,...r,size:n}}let o=new i.SphericalHarmonics,l=0,h=2/e.size,c=.5*h,u=c-1;for(let t=0;t<6;t++){let i=this._FileFaces[t],n=e[i.name],d=u,p=5===e.format?4:3;for(let t=0;t<e.size;t++){let f=u;for(let u=0;u<e.size;u++){let _=i.worldAxisForFileX.scale(f).add(i.worldAxisForFileY.scale(d)).add(i.worldAxisForNormal);_.normalize();let m=this._AreaElement(f-c,d-c)-this._AreaElement(f-c,d+c)-this._AreaElement(f+c,d-c)+this._AreaElement(f+c,d+c),g=n[t*e.size*p+u*p+0],x=n[t*e.size*p+u*p+1],S=n[t*e.size*p+u*p+2];isNaN(g)&&(g=0),isNaN(x)&&(x=0),isNaN(S)&&(S=0),0===e.type&&(g/=255,x/=255,S/=255),e.gammaSpace&&(g=Math.pow((0,r.Clamp)(g),s.ToLinearSpace),x=Math.pow((0,r.Clamp)(x),s.ToLinearSpace),S=Math.pow((0,r.Clamp)(S),s.ToLinearSpace));let T=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(g,x,S);if(e>T){let t=T/e;g*=t,x*=t,S*=t}}else g=(0,r.Clamp)(g,0,T),x=(0,r.Clamp)(x,0,T),S=(0,r.Clamp)(S,0,T);let R=new a.Color3(g,x,S);o.addLight(_,R,m),l+=m,f+=h}d+=h}}let d=4*Math.PI*6/6/l;return o.scaleInPlace(d),o.convertIncidentRadianceToIrradiance(),o.convertIrradianceToLambertianRadiance(),i.SphericalPolynomial.FromHarmonics(o)}}o._FileFaces=[new n("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new n("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new n("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new n("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new n("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new n("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],o.MAX_HDRI_VALUE=4096,o.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,o])},12877,e=>{"use strict";class t{constructor(e,t,r,i){this.x=e,this.y=t,this.width=r,this.height=i}toGlobal(e,r){return new t(this.x*e,this.y*r,this.width*e,this.height*r)}toGlobalToRef(e,t,r){return r.x=this.x*e,r.y=this.y*t,r.width=this.width*e,r.height=this.height*t,this}clone(){return new t(this.x,this.y,this.width,this.height)}}e.s(["Viewport",0,t])},16771,e=>{"use strict";var t=e.i(44816);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,r=!0){this.effect=e,void 0!==t&&(this.defines=t),r&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let r=this.effect;e?r.dispose():t.TimingTools.SetImmediate(()=>{r.getEngine().onEndFrameObservable.addOnce(()=>{r.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},11829,e=>{"use strict";var t=e.i(41041),r=e.i(12877),i=e.i(3864),s=e.i(59052),a=e.i(16771);let n={positions:[1,1,-1,1,-1,-1,1,-1],indices:[0,1,2,0,2,3]};class o{static RegisterShaderCodeProcessing(e,t){t?o._CustomShaderCodeProcessing[e??""]=t:delete o._CustomShaderCodeProcessing[e??""]}static _GetShaderCodeProcessing(e){return o._CustomShaderCodeProcessing[e]??o._CustomShaderCodeProcessing[""]}get name(){return this.options.name}set name(e){this.options.name=e}isReady(){return this._drawWrapper.effect?.isReady()??!1}get drawWrapper(){return this._drawWrapper}get effect(){return this._drawWrapper.effect}set effect(e){this._drawWrapper.effect=e}constructor(e){this.alphaMode=0,this.onEffectCreatedObservable=new i.Observable(void 0,!0),this.onApplyObservable=new i.Observable,this._shadersLoaded=!1,this._webGPUReady=!1,this._importPromises=[],this.options={...e,name:e.name||"effectWrapper",engine:e.engine,uniforms:e.uniforms||e.uniformNames||[],uniformNames:void 0,samplers:e.samplers||e.samplerNames||[],samplerNames:void 0,attributeNames:e.attributeNames||["position"],uniformBuffers:e.uniformBuffers||[],defines:e.defines||"",useShaderStore:e.useShaderStore||!1,vertexUrl:e.vertexUrl||e.vertexShader||"postprocess",vertexShader:void 0,fragmentShader:e.fragmentShader||"pass",indexParameters:e.indexParameters,blockCompilation:e.blockCompilation||!1,shaderLanguage:e.shaderLanguage||0,onCompiled:e.onCompiled||void 0,extraInitializations:e.extraInitializations||void 0,extraInitializationsAsync:e.extraInitializationsAsync||void 0,useAsPostProcess:e.useAsPostProcess??!1,allowEmptySourceTexture:e.allowEmptySourceTexture??!1},this.options.uniformNames=this.options.uniforms,this.options.samplerNames=this.options.samplers,this.options.vertexShader=this.options.vertexUrl,this.options.useAsPostProcess&&(this.options.allowEmptySourceTexture||-1!==this.options.samplers.indexOf("textureSampler")||this.options.samplers.push("textureSampler"),-1===this.options.uniforms.indexOf("scale")&&this.options.uniforms.push("scale")),e.vertexUrl||e.vertexShader?this._shaderPath={vertexSource:this.options.vertexShader}:(this.options.useAsPostProcess||(this.options.uniforms.push("scale"),this.onApplyObservable.add(()=>{this.effect.setFloat2("scale",1,1)})),this._shaderPath={vertex:this.options.vertexShader}),this._shaderPath.fragmentSource=this.options.fragmentShader,this._shaderPath.spectorName=this.options.name,this.options.useShaderStore&&(this._shaderPath.fragment=this._shaderPath.fragmentSource,this._shaderPath.vertex||(this._shaderPath.vertex=this._shaderPath.vertexSource),delete this._shaderPath.fragmentSource,delete this._shaderPath.vertexSource),this.onApplyObservable.add(()=>{this.bind()}),this.options.useShaderStore||(this._onContextRestoredObserver=this.options.engine.onContextRestoredObservable.add(()=>{this.effect._pipelineContext=null,this.effect._prepareEffect()})),this._drawWrapper=new a.DrawWrapper(this.options.engine),this._webGPUReady=1===this.options.shaderLanguage;const t=Array.isArray(this.options.defines)?this.options.defines.join("\n"):this.options.defines;this._postConstructor(this.options.blockCompilation,t,this.options.extraInitializations)}_gatherImports(e=!1,t){}_postConstructor(t,r=null,i,s){this._importPromises.length=0,s&&this._importPromises.push(...s);let a=this.options.engine.isWebGPU&&!o.ForceGLSL;this._gatherImports(a,this._importPromises),this.options.useShaderStore&&"postprocess"===this._shaderPath.vertex&&this._importPromises.push(a&&this._webGPUReady?e.A(99691):e.A(75856)),void 0!==i&&i(a,this._importPromises),a&&this._webGPUReady&&(this.options.shaderLanguage=1),t||this.updateEffect(r)}updateEffect(e=null,t=null,r=null,i,a,n,l,h){let c,u=o._GetShaderCodeProcessing(this.name);if(u?.defineCustomBindings){let i=t?.slice()??[];i.push(...this.options.uniforms);let s=r?.slice()??[];s.push(...this.options.samplers),e=u.defineCustomBindings(this.name,e,i,s),t=i,r=s}this.options.defines=e||"";let d=this._shadersLoaded||0===this._importPromises.length?void 0:async()=>{await Promise.all(this._importPromises),this._shadersLoaded=!0};c=this.options.extraInitializationsAsync?async()=>{await d?.(),await this.options.extraInitializationsAsync()}:d,this.options.useShaderStore?this._drawWrapper.effect=this.options.engine.createEffect({vertex:l??this._shaderPath.vertex,fragment:h??this._shaderPath.fragment},{attributes:this.options.attributeNames,uniformsNames:t||this.options.uniforms,uniformBuffersNames:this.options.uniformBuffers,samplers:r||this.options.samplers,defines:null!==e?e:"",fallbacks:null,onCompiled:a??this.options.onCompiled,onError:n??null,indexParameters:i||this.options.indexParameters,processCodeAfterIncludes:u?.processCodeAfterIncludes?(e,t)=>u.processCodeAfterIncludes(this.name,e,t):null,processFinalCode:u?.processFinalCode?(e,t)=>u.processFinalCode(this.name,e,t):null,shaderLanguage:this.options.shaderLanguage,extraInitializationsAsync:c},this.options.engine):this._drawWrapper.effect=new s.Effect(this._shaderPath,this.options.attributeNames,t||this.options.uniforms,r||this.options.samplerNames,this.options.engine,e,void 0,a||this.options.onCompiled,void 0,void 0,void 0,this.options.shaderLanguage,c),this.onEffectCreatedObservable.notifyObservers(this._drawWrapper.effect)}bind(e=!1){this.options.useAsPostProcess&&!e&&(this.options.engine.setAlphaMode(this.alphaMode),this.drawWrapper.effect.setFloat2("scale",1,1)),o._GetShaderCodeProcessing(this.name)?.bindCustomBindings?.(this.name,this._drawWrapper.effect)}dispose(e=!1){this._onContextRestoredObserver&&(this.effect.getEngine().onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null),this.onEffectCreatedObservable.clear(),this._drawWrapper.dispose(!0)}}o.ForceGLSL=!1,o._CustomShaderCodeProcessing={},e.s(["EffectRenderer",0,class{constructor(e,i=n){this._fullscreenViewport=new r.Viewport(0,0,1,1);const s=i.positions??n.positions,a=i.indices??n.indices;this.engine=e,this._vertexBuffers={[t.VertexBuffer.PositionKind]:new t.VertexBuffer(e,s,t.VertexBuffer.PositionKind,!1,!1,2)},this._indexBuffer=e.createIndexBuffer(a),this._indexBufferLength=a.length,this._onContextRestoredObserver=e.onContextRestoredObservable.add(()=>{for(let t in this._indexBuffer=e.createIndexBuffer(a),this._vertexBuffers)this._vertexBuffers[t]._rebuild()})}setViewport(e=this._fullscreenViewport){this.engine.setViewport(e)}bindBuffers(e){this.engine.bindBuffers(this._vertexBuffers,this._indexBuffer,e)}applyEffectWrapper(e,t=!1,r=!1){this.engine.setState(!0),this.engine.depthCullingState.depthTest=t,this.engine.stencilState.stencilTest=r,this.engine.enableEffect(e.drawWrapper),this.bindBuffers(e.effect),e.onApplyObservable.notifyObservers({})}saveStates(){this._savedStateDepthTest=this.engine.depthCullingState.depthTest,this._savedStateStencilTest=this.engine.stencilState.stencilTest}restoreStates(){this.engine.depthCullingState.depthTest=this._savedStateDepthTest,this.engine.stencilState.stencilTest=this._savedStateStencilTest}draw(){this.engine.drawElementsType(0,0,this._indexBufferLength)}_isRenderTargetTexture(e){return void 0!==e.renderTarget}render(e,t=null){if(!e.effect.isReady())return;this.saveStates(),this.setViewport();let r=null===t?null:this._isRenderTargetTexture(t)?t.renderTarget:t;r&&this.engine.bindFramebuffer(r),this.applyEffectWrapper(e),this.draw(),r&&this.engine.unBindFramebuffer(r),this.restoreStates()}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),delete this._vertexBuffers[t.VertexBuffer.PositionKind]),this._indexBuffer&&this.engine._releaseBuffer(this._indexBuffer),this._onContextRestoredObserver&&(this.engine.onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null)}},"EffectWrapper",0,o])},84953,e=>{"use strict";let t,r,i;var s,a=e.i(57575),n=e.i(11829),o=e.i(92180),l=e.i(63235),h=e.i(23003),c=e.i(16347),u=e.i(1229),d=e.i(9855);let p=null;async function f(){let t=h.EngineStore.LastCreatedEngine?.createCanvas(100,100)??new OffscreenCanvas(100,100);t instanceof OffscreenCanvas&&c.Logger.Warn("DumpData: OffscreenCanvas will be used for dumping data. This may result in lossy alpha values.");let{ThinEngine:r}=await e.A(1155);if(!r.IsSupported)throw Error("DumpData: No WebGL context available. Cannot dump data.");let i=new r(t,!1,{preserveDrawingBuffer:!0,depth:!1,stencil:!1,alpha:!0,premultipliedAlpha:!1,antialias:!1,failIfMajorPerformanceCaveat:!1});h.EngineStore.Instances.pop(),h.EngineStore.OnEnginesDisposedObservable.add(e=>{i&&e!==i&&!i.isDisposed&&0===h.EngineStore.Instances.length&&R()}),i.getCaps().parallelShaderCompile=void 0;let s=new n.EffectRenderer(i),{passPixelShader:a}=await e.A(34796),o=new n.EffectWrapper({engine:i,name:a.name,fragmentShader:a.shader,samplerNames:["textureSampler"]});return{canvas:t,dumpEngine:{engine:i,renderer:s,wrapper:o}}}async function _(){return p||(p=f()),await p}let m=(r=[],s=class{static async EncodeImageAsync(e,t,r,i,s,a){let n=await _(),l=n.dumpEngine;l.engine.setSize(t,r,!0);let h=l.engine.createRawTexture(e,t,r,5,!1,!s,1);return l.renderer.setViewport(),l.renderer.applyEffectWrapper(l.wrapper),l.wrapper.effect._bindTexture("textureSampler",h),l.renderer.draw(),h.dispose(),await new Promise((e,t)=>{o.Tools.ToBlob(n.canvas,r=>{r?e(r):t(Error("EncodeImageAsync: Failed to convert canvas to blob."))},i,a)})}},i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[d.nativeOverride],(0,a.__esDecorate)(s,null,t,{kind:"method",name:"EncodeImageAsync",static:!0,private:!1,access:{has:e=>"EncodeImageAsync"in e,get:e=>e.EncodeImageAsync},metadata:i},null,r),i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),(0,a.__runInitializers)(s,r),s),g=m.EncodeImageAsync;async function x(e,t,r,i,s="image/png",a,n){let o=new Uint8Array((await r.readPixels(0,0,e,t)).buffer);T(e,t,o,i,s,a,!0,void 0,n)}async function S(e,t,r,i="image/png",s,a=!1,n=!1,h){if(r instanceof Float32Array){let e=new Uint8Array(r.length),t=r.length;for(;t--;){let i=r[t];e[t]=Math.round(255*(0,l.Clamp)(i))}r=e}let d=await m.EncodeImageAsync(r,e,t,i,a,h);void 0!==s&&o.Tools.DownloadBlob(d,s),d.type!==i&&c.Logger.Warn(`DumpData: The requested mimeType '${i}' is not supported. The result has mimeType '${d.type}' instead.`);let p=await d.arrayBuffer();return n?p:`data:${i};base64,${(0,u.EncodeArrayBufferToBase64)(p)}`}function T(e,t,r,i,s="image/png",a,n=!1,o=!1,l){void 0!==a||i||(a=""),S(e,t,r,s,a,n,o,l).then(e=>{i&&i(e)})}function R(){p&&(p?.then(e=>{e.canvas instanceof HTMLCanvasElement&&e.canvas.remove(),e.dumpEngine&&(e.dumpEngine.engine.dispose(),e.dumpEngine.renderer.dispose(),e.dumpEngine.wrapper.dispose())}),p=null)}let b=!1;e.s(["Dispose",0,R,"DumpData",0,T,"DumpDataAsync",0,S,"DumpFramebuffer",0,x,"DumpTools",0,{DumpData:T,DumpDataAsync:S,DumpFramebuffer:x,Dispose:R},"EncodeImageAsync",0,g,"RegisterDumpTools",0,function(){b||(b=!0,o.Tools.DumpData=T,o.Tools.DumpDataAsync=S,o.Tools.DumpFramebuffer=x)}])},34010,e=>{"use strict";var t=e.i(44265),r=e.i(69400),i=e.i(63235),s=e.i(88),a=e.i(8636),n=e.i(74868),o=(e.i(66460),e.i(62575)),l=e.i(16347),h=e.i(48747),c=e.i(84953),u=e.i(83592);let d="image/png",p=[134,22,135,150,246,214,150,54];function f(e){if(e.version>2)throw Error(`Unsupported babylon environment map version "${e.version}". Latest supported version is "2".`);return 2===e.version?e:e={...e,version:2,imageType:d}}async function _(e,t,r,i,s,a,n,o,l,h,c){return await new Promise((u,d)=>{if(r){let r=t.createTexture(null,!0,!0,null,1,null,e=>{d(e)},e);i?.onEffectCreatedObservable.addOnce(o=>{o.executeWhenCompiled(()=>{i.externalTextureSamplerBinding=!0,i.onApply=i=>{i._bindTexture("textureSampler",r),i.setFloat2("scale",1,t._features.needsInvertingBitmap&&e instanceof ImageBitmap?-1:1)},t.scenes.length&&(t.scenes[0].postProcessManager.directRender([i],h,!0,a,n),t.restoreDefaultFramebuffer(),r.dispose(),URL.revokeObjectURL(s),u())})})}else{if(t._uploadImageToTexture(c,e,a,n),o){let r=l[n];r&&t._uploadImageToTexture(r._texture,e,a,0)}u()}})}async function m(e,t,r=d){let i=e.getEngine();e.format=5,e.type=0,e.generateMipMaps=!0,e._cachedAnisotropicFilteringLevel=null,i.updateTextureSamplingMode(3,e),await x(e,t,!0,r),e.isReady=!0}async function g(e,t,r,i=d,s=null){let o=e.getEngine(),l=new a.InternalTexture(o,5),h=new n.BaseTexture(o,l);e._irradianceTexture=h,h._dominantDirection=s,l.isCube=!0,l.format=5,l.type=0,l.generateMipMaps=!0,l._cachedAnisotropicFilteringLevel=null,l.generateMipMaps=!0,l.width=r,l.height=r,o.updateTextureSamplingMode(3,l),await x(l,[t],!1,i),o.generateMipMapsForCubemap(l),l.isReady=!0}async function x(r,s,l,h=d){if(!(0,t.IsExponentOfTwo)(r.width))throw Error("Texture size must be a power of two");let c=(0,i.ILog2)(r.width)+1,p=r.getEngine(),f=!1,m=!1,g=null,S=null,T=null,R=p.getCaps();R.textureLOD?p._features.supportRenderAndCopyToLodForFloatTextures?R.textureHalfFloatRender&&R.textureHalfFloatLinearFiltering?(f=!0,r.type=2):R.textureFloatRender&&R.textureFloatLinearFiltering&&(f=!0,r.type=1):f=!1:(f=!1,m=l);let b=0;if(f)p.isWebGPU?(b=1,await e.A(18585)):await e.A(94589),g=new o.PostProcess("rgbdDecode","rgbdDecode",null,null,1,null,3,p,!1,void 0,r.type,void 0,null,!1,void 0,b),r._isRGBD=!1,r.invertY=!1,S=p.createRenderTargetCubeTexture(r.width,{generateDepthBuffer:!1,generateMipMaps:!0,generateStencilBuffer:!1,samplingMode:3,type:r.type,format:5});else if(r._isRGBD=!0,r.invertY=!0,m){T={};let e=r._lodGenerationScale,t=r._lodGenerationOffset;for(let i=0;i<3;i++){let s=(c-1)*e+t,o=Math.round(Math.min(Math.max(t+(s-t)*(1-i/2),0),s)),l=new a.InternalTexture(p,2);l.isCube=!0,l.invertY=!0,l.generateMipMaps=!1,p.updateTextureSamplingMode(2,l);let h=new n.BaseTexture(null);switch(h._isCube=!0,h._texture=l,T[o]=h,i){case 0:r._lodTextureLow=h;break;case 1:r._lodTextureMid=h;break;case 2:r._lodTextureHigh=h}}}let v=[];for(let e=0;e<s.length;e++)for(let t=0;t<6;t++){let i,a=s[e][t],n=new Blob([(0,u.GetBlobBufferSource)(a)],{type:h}),o=URL.createObjectURL(n);if(p._features.forceBitmapOverHTMLImageElement)i=p.createImageBitmap(n,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(async i=>await _(i,p,f,g,o,t,e,m,T,S,r));else{let s=new Image;s.src=o,i=new Promise((i,a)=>{s.onload=()=>{_(s,p,f,g,o,t,e,m,T,S,r).then(()=>i()).catch(e=>{a(e)})},s.onerror=e=>{a(e)}})}v.push(i)}if(await Promise.all(v),s.length<c){let e,t=Math.pow(2,c-1-s.length),i=t*t*4;switch(r.type){case 0:e=new Uint8Array(i);break;case 2:e=new Uint16Array(i);break;case 1:e=new Float32Array(i)}for(let t=s.length;t<c;t++)for(let i=0;i<6;i++)p._uploadArrayBufferViewToTexture(S?.texture||r,e,i,t)}if(S){let e=r._irradianceTexture;r._irradianceTexture=null,p._releaseTexture(r),S._swapAndDie(r),r._irradianceTexture=e}g&&g.dispose(),m&&(r._lodTextureHigh&&r._lodTextureHigh._texture&&(r._lodTextureHigh._texture.isReady=!0),r._lodTextureMid&&r._lodTextureMid._texture&&(r._lodTextureMid._texture.isReady=!0),r._lodTextureLow&&r._lodTextureLow._texture&&(r._lodTextureLow._texture.isReady=!0))}e.s(["GetEnvInfo",0,function(e){let t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=0;for(let e=0;e<p.length;e++)if(r.getUint8(i++)!==p[e])return l.Logger.Error("Not a babylon environment map"),null;let s="";for(;t=r.getUint8(i++);)s+=String.fromCharCode(t);let a=JSON.parse(s);return(a=f(a)).binaryDataPosition=i,a.specular&&(a.specular.lodGenerationScale=a.specular.lodGenerationScale||.8),a},"UploadEnvLevelsAsync",0,function(e,t,i){let s=(i=f(i)).specular;if(!s)return Promise.resolve([]);e._lodGenerationScale=s.lodGenerationScale;let a=[],n=function(e,t){let r=(t=f(t)).specular,i=Math.log2(t.width);if(i=Math.round(i)+1,r.mipmaps.length!==6*i)throw Error(`Unsupported specular mipmaps number "${r.mipmaps.length}"`);let s=Array(i);for(let a=0;a<i;a++){s[a]=Array(6);for(let i=0;i<6;i++){let n=r.mipmaps[6*a+i];s[a][i]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+n.position,n.length)}}return s}(t,i);a.push(m(e,n,i.imageType));let o=i.irradiance?.irradianceTexture;if(o){let s=function(e,t){t=f(t);let r=Array(6),i=t.irradiance?.irradianceTexture;if(i){if(6!==i.faces.length)throw Error(`Incorrect irradiance texture faces number "${i.faces.length}"`);for(let s=0;s<6;s++){let a=i.faces[s];r[s]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+a.position,a.length)}}return r}(t,i),n=null;i.irradiance?.irradianceTexture?.dominantDirection&&(n=r.Vector3.FromArray(i.irradiance.irradianceTexture.dominantDirection)),a.push(g(e,s,o.size,i.imageType,n))}return Promise.all(a)},"UploadEnvSpherical",0,function(e,t){let i=(t=f(t)).irradiance;if(!i)return;let a=new s.SphericalPolynomial;r.Vector3.FromArrayToRef(i.x,0,a.x),r.Vector3.FromArrayToRef(i.y,0,a.y),r.Vector3.FromArrayToRef(i.z,0,a.z),r.Vector3.FromArrayToRef(i.xx,0,a.xx),r.Vector3.FromArrayToRef(i.yy,0,a.yy),r.Vector3.FromArrayToRef(i.zz,0,a.zz),r.Vector3.FromArrayToRef(i.yz,0,a.yz),r.Vector3.FromArrayToRef(i.zx,0,a.zx),r.Vector3.FromArrayToRef(i.xy,0,a.xy),e._sphericalPolynomial=a},"_UpdateRGBDAsync",0,function(e,t,r,i,s){let a=m(e.getEngine().createRawCubeTexture(null,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression),t).then(()=>e);return e.onRebuildCallback=e=>({proxy:a,isReady:!0,isAsync:!0}),e._source=13,e._bufferViewArrayArray=t,e._lodGenerationScale=i,e._lodGenerationOffset=s,e._sphericalPolynomial=r,m(e,t).then(()=>(e.isReady=!0,e))}])},74208,e=>{"use strict";var t=e.i(34010),r=e.i(84684),i=e.i(74868);let s=!1;e.s(["_ENVTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,a,n,o,l){if(Array.isArray(e))return;let h=(0,t.GetEnvInfo)(e);if(h){a.width=h.width,a.height=h.width;try{s||(s=!0,i.BaseTexture.prototype._sphericalPolynomialTargetSize=0,i.BaseTexture.prototype.forceSphericalPolynomialsRecompute=function(){this._texture&&(this._texture._sphericalPolynomial=null,this._texture._sphericalPolynomialPromise=null,this._texture._sphericalPolynomialComputed=!1)},Object.defineProperty(i.BaseTexture.prototype,"sphericalPolynomial",{get:function(){if(this._texture){if(this._texture._sphericalPolynomial||this._texture._sphericalPolynomialComputed)return this._texture._sphericalPolynomial;this._texture.isReady&&(this._texture._sphericalPolynomialPromise||(this._texture._sphericalPolynomialPromise=r.CubeMapToSphericalPolynomialTools.ConvertCubeMapTextureToSphericalPolynomial(this),null===this._texture._sphericalPolynomialPromise?this._texture._sphericalPolynomialComputed=!0:this._texture._sphericalPolynomialPromise.then(e=>{this._texture._sphericalPolynomial=e,this._texture._sphericalPolynomialComputed=!0})))}return null},set:function(e){this._texture&&(this._texture._sphericalPolynomial=e)},enumerable:!0,configurable:!0})),(0,t.UploadEnvSpherical)(a,h),(0,t.UploadEnvLevelsAsync)(a,e,h).then(()=>{a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),o&&o()},e=>{l?.("Can not upload environment levels",e)})}catch(e){l?.("Can not upload environment file",e)}}else l&&l("Can not parse the environment file",null)}loadData(){throw".env not supported in 2d."}}],74208)},75856,e=>{e.v(t=>Promise.all(["static/chunks/2117sv2qzo6yq.js"].map(t=>e.l(t))).then(()=>t(37145)))},99691,e=>{e.v(t=>Promise.all(["static/chunks/2clevl_9ayd0x.js"].map(t=>e.l(t))).then(()=>t(36257)))},60624,e=>{e.v(t=>Promise.all(["static/chunks/1j4jt5q7px8sy.js"].map(t=>e.l(t))).then(()=>t(44449)))},34796,e=>{e.v(t=>Promise.all(["static/chunks/3twr9ds68-9us.js"].map(t=>e.l(t))).then(()=>t(11681)))},77151,e=>{e.v(t=>Promise.all(["static/chunks/3ioxfi3bvznhh.js"].map(t=>e.l(t))).then(()=>t(64489)))},62237,e=>{e.v(t=>Promise.all(["static/chunks/1lu7rjfvxj8yj.js"].map(t=>e.l(t))).then(()=>t(65185)))},58869,e=>{e.v(t=>Promise.all(["static/chunks/1x0j78ohufpul.js"].map(t=>e.l(t))).then(()=>t(30728)))},77607,e=>{e.v(t=>Promise.all(["static/chunks/1a94whad0y57f.js"].map(t=>e.l(t))).then(()=>t(3536)))},10896,e=>{e.v(t=>Promise.all(["static/chunks/2epukrz6paj9n.js"].map(t=>e.l(t))).then(()=>t(7940)))},60434,e=>{e.v(t=>Promise.all(["static/chunks/3nr48h9zwum-3.js"].map(t=>e.l(t))).then(()=>t(58395)))},89634,e=>{e.v(t=>Promise.all(["static/chunks/3-yhe6rcsjh88.js"].map(t=>e.l(t))).then(()=>t(69241)))},57528,e=>{e.v(t=>Promise.all(["static/chunks/22yht3s7c-xih.js"].map(t=>e.l(t))).then(()=>t(8406)))},96465,e=>{e.v(t=>Promise.all(["static/chunks/1j4c0nvdo5q68.js"].map(t=>e.l(t))).then(()=>t(48820)))},94589,e=>{e.v(t=>Promise.all(["static/chunks/0gk5rnci1hznh.js"].map(t=>e.l(t))).then(()=>t(3449)))},18585,e=>{e.v(t=>Promise.all(["static/chunks/25brs445bjbik.js"].map(t=>e.l(t))).then(()=>t(98959)))},96401,e=>{e.v(t=>Promise.all(["static/chunks/287hakn2ijupp.js"].map(t=>e.l(t))).then(()=>t(66860)))},85357,e=>{e.v(t=>Promise.all(["static/chunks/2mrkv0z2i74pv.js"].map(t=>e.l(t))).then(()=>t(25124)))},1155,e=>{e.v(t=>Promise.all(["static/chunks/0zu5ato7-1-q9.js"].map(t=>e.l(t))).then(()=>t(13600)))}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86409,e=>{"use strict";var r=e.i(37875);let t="lodCubePixelShader",u=`const GammaEncodePowerApprox=1.0/2.2;varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_cube<f32>;uniform lod: f32;uniform gamma: i32;@fragment
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7940,e=>{"use strict";var r=e.i(47150);let t="lodCubePixelShader",u=`const GammaEncodePowerApprox=1.0/2.2;varying vUV: vec2f;var textureSamplerSampler: sampler;var textureSampler: texture_cube<f32>;uniform lod: f32;uniform gamma: i32;@fragment
2
2
  fn main(input: FragmentInputs)->FragmentOutputs {let uv=fragmentInputs.vUV*2.0-1.0;
3
3
  #ifdef POSITIVEX
4
4
  fragmentOutputs.color=textureSampleLevel(textureSampler,textureSamplerSampler,vec3f(1.001,uv.y,uv.x),uniforms.lod);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2348,2413,e=>{"use strict";let t=1/1.2;e.s(["ZOOM_IN_FACTOR",0,t,"ZOOM_OUT_FACTOR",0,1.2,"attachDoubleClickFocus",0,function(e,t,n){let s=()=>{let t=e.pick(e.pointerX,e.pointerY);t?.hit&&t.pickedPoint&&n.setTarget(t.pickedPoint)};return t.addEventListener("dblclick",s),()=>t.removeEventListener("dblclick",s)},"disableWheelZoom",0,function(e){e.inputs.removeByType("ArcRotateCameraMouseWheelInput")},"resetFocus",0,function(e,t){e.setTarget(t.target),e.alpha=t.alpha,e.beta=t.beta,e.radius=t.radius},"stepZoom",0,function(e,t){let n=e.lowerRadiusLimit??.01,s=e.upperRadiusLimit??1/0;e.radius=Math.min(s,Math.max(n,e.radius*t))}],2348);var n=e.i(79047);e.s(["ZoomButtons",0,function({onZoom:e,onReset:s}){let a="grid h-8 w-8 place-items-center rounded-md border border-edge bg-ink/80 text-lg leading-none text-fg backdrop-blur transition hover:bg-ink hover:text-white";return(0,n.jsxs)("div",{className:"absolute right-3 top-3 flex flex-col gap-1",children:[(0,n.jsx)("button",{type:"button","aria-label":"Zoom in",className:a,onClick:()=>e(t),children:"+"}),(0,n.jsx)("button",{type:"button","aria-label":"Zoom out",className:a,onClick:()=>e(1.2),children:"−"}),s?(0,n.jsx)("button",{type:"button","aria-label":"Reset camera focus to center",title:"Reset focus to center",className:a,onClick:s,children:(0,n.jsxs)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"3"}),(0,n.jsx)("path",{d:"M8 1v2.5M8 12.5V15M1 8h2.5M12.5 8H15"})]})}):null]})}],2413)},87456,e=>{"use strict";e.s(["attachMeshHover",0,function(e,t,n){let s=0,a=null,i=t=>{let i=t.offsetX,l=t.offsetY;s||(s=requestAnimationFrame(()=>{var t,o;let r;s=0;let u=e.pick(i,l,e=>e.isPickable&&e.isEnabled()),c=u?.pickedMesh?(t=u.pickedMesh,o=u.thinInstanceIndex??-1,(r=t.metadata)?o>=0&&r.hoverLabels?r.hoverLabels[o]??null:r.hoverLabel??null:null):null;c?n({label:c,x:i,y:l}):null!==a&&n(null),a=c}))},l=()=>{s&&(cancelAnimationFrame(s),s=0),null!==a&&(a=null,n(null))};return t.addEventListener("pointermove",i),t.addEventListener("pointerleave",l),()=>{t.removeEventListener("pointermove",i),t.removeEventListener("pointerleave",l),s&&cancelAnimationFrame(s)}}])},19399,e=>{"use strict";var t=e.i(79047),n=e.i(57431);let s="__other_sp__",a="__other_mesh__";function i(e){return`${e[0]}|${e[1]}|${e[2]}`}function l(e,t){return t<=1?0:1.4-e/(t-1)*2.8}var o=e.i(56054),r=e.i(2348),u=e.i(87456),c=e.i(18637),h=e.i(2413);let d="__all__",m={maxStandpoints:6,maxMeshes:10,maxRibbons:70};function f(e,t){return`${e}|${t}`}function g(e){let t=e.aabb;return[(t[0]+t[3])/2,(t[1]+t[4])/2,(t[2]+t[5])/2]}function p(e){let t=0;for(let n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Math.abs(t)}function b({label:e,value:n,onChange:s,allLabel:a,options:i}){return(0,t.jsxs)("label",{className:"flex items-center gap-1.5 rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg backdrop-blur",children:[(0,t.jsx)("span",{className:"font-medium text-fg-muted",children:e}),(0,t.jsxs)("select",{className:"max-w-[12rem] bg-transparent text-white outline-none",value:n,onChange:e=>s(e.target.value),children:[(0,t.jsx)("option",{value:d,children:a}),i.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]})}function x({active:e,onClick:n,children:s,disabled:a=!1,title:i}){return(0,t.jsx)("button",{type:"button",onClick:n,disabled:a,title:i,className:`rounded px-2 py-0.5 font-medium transition ${a?"cursor-not-allowed text-fg-muted/40":e?"bg-amber text-ink":"text-fg-muted hover:text-fg"}`,children:s})}function k({standpoints:e,proxyMeshes:s,selectedKey:a,onSelect:i}){let l=(0,n.useRef)(null),o=(0,n.useMemo)(()=>e.filter(e=>e.origin),[e]),r=(0,n.useMemo)(()=>{let e=1/0,t=-1/0,n=1/0,a=-1/0,i=(s,i)=>{e=Math.min(e,s),t=Math.max(t,s),n=Math.min(n,i),a=Math.max(a,i)};for(let e of s)i(e.aabb[0],e.aabb[2]),i(e.aabb[3],e.aabb[5]);for(let e of o)i(e.origin[0],e.origin[2]);return Number.isFinite(e)?(t-e<.001&&(e-=1,t+=1),a-n<.001&&(n-=1,a+=1),{minX:e,maxX:t,minZ:n,maxZ:a}):{minX:-1,maxX:1,minZ:-1,maxZ:1}},[s,o]),u=(0,n.useMemo)(()=>{let e=Math.min(134/(r.maxX-r.minX),94/(r.maxZ-r.minZ));return(t,n)=>[8+(t-r.minX)*e,8+(n-r.minZ)*e]},[r]),c=(0,n.useMemo)(()=>o.reduce((e,t)=>Math.max(e,t.count),1),[o]);return(0,n.useEffect)(()=>{let e=l.current,t=e?.getContext("2d");if(!t)return;let n=window.devicePixelRatio||1;for(let a of(e.width=150*n,e.height=110*n,t.setTransform(n,0,0,n,0,0),t.clearRect(0,0,150,110),t.fillStyle="rgba(8,10,14,0.85)",t.fillRect(0,0,150,110),t.strokeStyle="rgba(120,140,170,0.35)",t.lineWidth=1,s)){let[e,n]=u(a.aabb[0],a.aabb[2]),[s,i]=u(a.aabb[3],a.aabb[5]);t.strokeRect(Math.min(e,s),Math.min(n,i),Math.abs(s-e),Math.abs(i-n))}for(let e of o){let[n,s]=u(e.origin[0],e.origin[2]),i=2+e.count/c*4,l=e.key===a;t.beginPath(),t.arc(n,s,i,0,2*Math.PI),t.fillStyle=l?"rgba(242,115,242,1)":"rgba(242,115,242,0.55)",t.fill(),l&&(t.beginPath(),t.arc(n,s,i+2.5,0,2*Math.PI),t.strokeStyle="rgba(255,255,255,0.9)",t.lineWidth=1.5,t.stroke())}},[s,o,u,c,a]),(0,t.jsxs)("div",{className:"absolute right-3 top-3 rounded-md border border-edge bg-ink/80 p-1 backdrop-blur",children:[(0,t.jsx)("div",{className:"px-1 pb-0.5 text-[10px] font-medium text-fg-muted",children:"Standpoints (top view)"}),(0,t.jsx)("canvas",{ref:l,className:"h-27.5 w-37.5 cursor-pointer rounded",onClick:e=>{let t=l.current;if(!t||0===o.length)return;let n=t.getBoundingClientRect(),s=(e.clientX-n.left)/n.width*150,a=(e.clientY-n.top)/n.height*110,r=null,c=1/0;for(let e of o){let[t,n]=u(e.origin[0],e.origin[2]),i=(t-s)**2+(n-a)**2;i<c&&(c=i,r=e)}r&&c<=196&&i(r.key)}})]})}e.s(["FlowSankey3DView",0,function({links:v,gridSize:j,proxyMeshes:w=[],maxLinks:M=80,api:z,flowQuery:_,hasFirstPerson:y=!1}){let $=(0,n.useRef)(null),I=(0,n.useRef)(null),C=(0,n.useRef)(null),[P,B]=(0,n.useState)("loading"),[R,S]=(0,n.useState)(null),[L,N]=(0,n.useState)(d),[A,E]=(0,n.useState)(d),[O,Z]=(0,n.useState)(d),[q,T]=(0,n.useState)("aggregate"),[F,V]=(0,n.useState)(null),[W,X]=(0,n.useState)("all"),[H,D]=(0,n.useState)(v),U=!!(z&&_),K=(0,n.useMemo)(()=>_?JSON.stringify(_):"",[_]),Y=(0,n.useRef)(!1);(0,n.useEffect)(()=>{!Y.current&&y&&(X("first-person"),Y.current=!0)},[y]),(0,n.useEffect)(()=>{y&&"viewer"===W&&X("first-person")},[y,W]),(0,n.useEffect)(()=>{U||D(v)},[v,U]),(0,n.useEffect)(()=>{if(!z||!_)return;let e=!1,t="all"===W?void 0:W;return z.flowHeatmap({..._,bins:j,limit:400,groupByOrigin:!0,cameraMode:t}).then(t=>{e||D(t)}).catch(()=>{e||D([])}),()=>{e=!0}},[z,K,W,j]);let G=(0,n.useMemo)(()=>{let e=new Map;for(let t of H){if(!t.originVoxel)continue;let n=i(t.originVoxel),s=t.origin,a=e.get(n);a?(a.count+=t.count,s&&(a.ox+=s[0]*t.count,a.oy+=s[1]*t.count,a.oz+=s[2]*t.count,a.wsum+=t.count)):e.set(n,{key:n,voxel:t.originVoxel,count:t.count,ox:s?s[0]*t.count:0,oy:s?s[1]*t.count:0,oz:s?s[2]*t.count:0,wsum:s?t.count:0})}return[...e.values()].map(e=>({key:e.key,voxel:e.voxel,count:e.count,origin:e.wsum>0?[e.ox/e.wsum,e.oy/e.wsum,e.oz/e.wsum]:void 0})).sort((e,t)=>t.count-e.count)},[H]),J=G.length>0,Q=(0,n.useMemo)(()=>O===d?null:G.find(e=>e.key===O)??null,[G,O]),ee=(0,n.useMemo)(()=>(function(e,t,n,o){let r=e.filter(e=>e.originVoxel);if(0===r.length)return{standpoints:[],gazes:[],meshes:[],ribbons:[],maxCount:1};let u=t.slice(0,Math.max(1,o.maxStandpoints)),c=new Set(u.map(e=>e.key)),h=e=>{let t=e.originVoxel?i(e.originVoxel):s;return c.has(t)?t:s},d=new Map;for(let e of r)d.set(e.mesh,(d.get(e.mesh)??0)+e.count);let m=new Set([...d.entries()].sort((e,t)=>t[1]-e[1]).slice(0,Math.max(1,o.maxMeshes)).map(([e])=>e)),f=e=>m.has(e)?e:a,g=new Map;for(let e of r){let t=h(e),n=f(e.mesh),s=`${t}|${e.azimuth_bin}|${e.elevation_bin}|${n}`,a=g.get(s);a?a.count+=e.count:g.set(s,{standpointId:t,gazeId:`${t}|${e.azimuth_bin}|${e.elevation_bin}`,meshId:n,azimuthBin:e.azimuth_bin,elevationBin:e.elevation_bin,count:e.count})}let p=[...g.values()].sort((e,t)=>t.count-e.count),b=p.slice(0,Math.max(1,o.maxRibbons)),x=p.slice(Math.max(1,o.maxRibbons));if(x.length>0){let e=new Map(b.map(e=>[`${e.standpointId}|${e.azimuthBin}|${e.elevationBin}|${a}`,e]));for(let t of x){let n=`${t.standpointId}|${t.azimuthBin}|${t.elevationBin}|${a}`,s=e.get(n);if(s)s.count+=t.count;else{let s={standpointId:t.standpointId,gazeId:t.gazeId,meshId:a,azimuthBin:t.azimuthBin,elevationBin:t.elevationBin,count:t.count};e.set(n,s),b.push(s)}}}let k=new Set(b.map(e=>e.standpointId)),v=new Set(b.map(e=>e.meshId)),j=[...u.filter(e=>k.has(e.key)).map(e=>e.key),...k.has(s)?[s]:[]],w=j.map((e,t)=>{let n=u.find(t=>t.key===e),a=b.filter(t=>t.standpointId===e).reduce((e,t)=>e+t.count,0);return{id:e,kind:"standpoint",pos:[-2.6,l(t,j.length),0],count:a,label:n?`[${n.voxel[0]}, ${n.voxel[1]}, ${n.voxel[2]}]`:"Other standpoints",isOther:e===s}}),M=new Map(w.map(e=>[e.id,e.pos[1]])),z=new Map;for(let e of b)z.set(e.meshId,(z.get(e.meshId)??0)+e.count);let _=[...v].sort((e,t)=>(z.get(t)??0)-(z.get(e)??0));_.sort((e,t)=>(e===a)-(t===a));let y=_.map((e,t)=>({id:e,kind:"mesh",pos:[2.6,l(t,_.length),0],count:z.get(e)??0,label:e===a?"Other meshes":e,isOther:e===a})),$=new Map;for(let e of b){let t=$.get(e.gazeId);t?t.count+=e.count:$.set(e.gazeId,{az:e.azimuthBin,el:e.elevationBin,sp:e.standpointId,count:e.count})}let I=[...$.entries()].map(([e,t])=>{let s=M.get(t.sp)??0,a=(t.az+.5)/n-.5;return{id:e,kind:"gaze",pos:[0,s+((t.el+.5)/n-.5)*.85,1.6*a],count:t.count,label:`(${t.az}, ${t.el})`,isOther:!1}}),C=b.reduce((e,t)=>Math.max(e,t.count),1);return{standpoints:w,gazes:I,meshes:y,ribbons:b,maxCount:C}})(H,G,j,m),[H,G,j]),et="twostage"===q&&J;(0,n.useEffect)(()=>{"twostage"!==q||J||T("aggregate")},[q,J]);let en=(0,n.useMemo)(()=>{if(O!==d&&J)return H.filter(e=>e.originVoxel&&i(e.originVoxel)===O);if(!J)return H;let e=new Map;for(let t of H){let n=`${t.azimuth_bin}|${t.elevation_bin}|${t.mesh}`,s=e.get(n);s?s.count+=t.count:e.set(n,{azimuth_bin:t.azimuth_bin,elevation_bin:t.elevation_bin,mesh:t.mesh,count:t.count})}return[...e.values()]},[H,O,J]),es=(0,n.useMemo)(()=>[...en].sort((e,t)=>t.count-e.count).slice(0,Math.max(1,M)),[en,M]),ea=(0,n.useMemo)(()=>{let e=new Map;for(let t of es)e.set(t.mesh,(e.get(t.mesh)??0)+t.count);return[...e.entries()].sort((e,t)=>t[1]-e[1])},[es]),ei=(0,n.useMemo)(()=>{let e=new Map;for(let t of es){let n=f(t.azimuth_bin,t.elevation_bin),s=e.get(n);s?s.count+=t.count:e.set(n,{azimuthBin:t.azimuth_bin,elevationBin:t.elevation_bin,count:t.count})}return[...e.values()].sort((e,t)=>t.count-e.count)},[es]);(0,n.useEffect)(()=>{!et&&L!==d&&(ea.some(([e])=>e===L)||N(d))},[et,L,ea]),(0,n.useEffect)(()=>{!et&&A!==d&&(ei.some(e=>f(e.azimuthBin,e.elevationBin)===A)||E(d))},[et,A,ei]),(0,n.useEffect)(()=>{!et&&O!==d&&(G.some(e=>e.key===O)||Z(d))},[et,O,G]),(0,n.useEffect)(()=>{N(d),E(d),Z(d)},[q]);let el=(0,n.useMemo)(()=>et?ee.ribbons.filter(e=>{let t=O===d||e.standpointId===O,n=A===d||f(e.azimuthBin,e.elevationBin)===A,s=L===d||e.meshId===L;return t&&n&&s}).length:es.filter(e=>{let t=A===d||f(e.azimuth_bin,e.elevation_bin)===A,n=L===d||e.mesh===L;return t&&n}).length,[et,ee,es,L,A,O]),eo=et?ee.ribbons.length:es.length,er=(0,n.useMemo)(()=>et?ee.standpoints.map(e=>({value:e.id,label:`${e.label} \xb7 ${e.count}`})):G.slice(0,24).map(e=>({value:e.key,label:`[${e.voxel[0]}, ${e.voxel[1]}, ${e.voxel[2]}] \xb7 ${e.count}`})),[et,ee,G]),eu=(0,n.useMemo)(()=>{if(et){let e=new Map;for(let t of ee.ribbons){let n=f(t.azimuthBin,t.elevationBin),s=e.get(n);s?s.count+=t.count:e.set(n,{az:t.azimuthBin,el:t.elevationBin,count:t.count})}return[...e.values()].sort((e,t)=>t.count-e.count).map(e=>({value:f(e.az,e.el),label:`(${e.az}, ${e.el}) \xb7 ${e.count}`}))}return ei.map(e=>({value:f(e.azimuthBin,e.elevationBin),label:`(${e.azimuthBin}, ${e.elevationBin}) \xb7 ${e.count}`}))},[et,ee,ei]),ec=(0,n.useMemo)(()=>et?ee.meshes.map(e=>({value:e.id,label:`${e.label} \xb7 ${e.count}`})):ea.map(([e,t])=>({value:e,label:`${e} \xb7 ${t}`})),[et,ee,ea]),eh=(0,n.useRef)(es);eh.current=es;let ed=(0,n.useRef)(ee);ed.current=ee;let em=(0,n.useRef)(w);em.current=w;let ef=(0,n.useRef)(ea);ef.current=ea;let eg=(0,n.useRef)(L);eg.current=L;let ep=(0,n.useRef)(A);ep.current=A;let eb=(0,n.useRef)(O);eb.current=O;let ex=(0,n.useRef)(Q);ex.current=Q;let ek=(0,n.useRef)(null),ev=et?ee.ribbons.length>0:es.length>0;return(0,n.useEffect)(()=>{let t=$.current;if(!t)return;if(!ev)return void B("empty");let n=!1,s=null;return B("loading"),S(null),(async()=>{try{let a,[{Engine:i},{Scene:l},{ArcRotateCamera:c},{HemisphericLight:h},{Vector3:m,Color3:b,Color4:x},{MeshBuilder:k},{StandardMaterial:v}]=await Promise.all([e.A(48159),e.A(7614),e.A(41656),e.A(84694),e.A(13160),e.A(9786),e.A(33664),e.A(4977)]);if(n)return;let w=new i(t,!0,{preserveDrawingBuffer:!1}),M=new l(w);M.clearColor=new x(.04,.05,.07,1);let z=[],_=()=>{for(let e of z)e.dispose();z=[]};if(et){let e=m.Zero();(a=new c("ts-cam",Math.PI/2,Math.PI/2.4,8.5,e,M)).attachControl(t,!0),(0,r.disableWheelZoom)(a),I.current=a,C.current={target:e,alpha:a.alpha,beta:a.beta,radius:a.radius},new h("ts-light",new m(.3,1,.2),M);let n={standpoint:[.95,.45,.95],gaze:[.45,.75,1],mesh:[1,.82,.42]},s={standpoint:.26,gaze:.13,mesh:.22},i=(e,t,n)=>{let s=e[0],a=e[1],i=e[2],l=t[0],o=t[1],r=t[2],u=[(s+l)/2,(a+o)/2+n,(i+r)/2],c=[];for(let e=0;e<=12;e++){let t=e/12,n=1-t;c.push(new m(n*n*s+2*n*t*u[0]+t*t*l,n*n*a+2*n*t*u[1]+t*t*o,n*n*i+2*n*t*u[2]+t*t*r))}return c},l=()=>{_();let e=ed.current;if(0===e.ribbons.length)return;let t=eb.current,a=ep.current,l=eg.current,r=e=>{let n=t===d||e.standpointId===t,s=a===d||f(e.azimuthBin,e.elevationBin)===a,i=l===d||e.meshId===l;return n&&s&&i},u=t!==d||a!==d||l!==d,c=new Set;for(let t of e.ribbons)r(t)&&(c.add(t.standpointId),c.add(t.gazeId),c.add(t.meshId));let h=[...e.standpoints,...e.gazes,...e.meshes],g=new Map(h.map(e=>[e.id,e.pos])),p=new Map(h.map(e=>[e.id,e.label]));for(let e of h){let t=k.CreateSphere(`ts-node-${e.kind}-${e.id}`,{diameter:s[e.kind],segments:8},M);t.position=new m(e.pos[0],e.pos[1],e.pos[2]);let a=new v(`ts-node-mat-${e.kind}-${e.id}`,M);a.disableLighting=!0;let[i,l,o]=n[e.kind];a.emissiveColor=new b(i,l,o),a.alpha=!u||c.has(e.id)?1:.2,t.material=a,t.isPickable=!0,t.metadata={hoverLabel:e.label},z.push(t,a)}for(let t of e.ribbons){let n=g.get(t.standpointId),s=g.get(t.gazeId),a=g.get(t.meshId);if(!n||!s||!a)continue;let l=t.count/e.maxCount,c=.18+.5*l,h=[...i(n,s,c),...i(s,a,c).slice(1)],d=r(t),[m,f,x]=(0,o.heatRgb)(l),j=k.CreateTube(`ts-link-${t.standpointId}-${t.gazeId}-${t.meshId}`,{path:h,radius:(d?1:.4)*(.012+.04*l),tessellation:8,cap:0,sideOrientation:0},M),w=new v(`ts-link-mat-${t.standpointId}-${t.gazeId}-${t.meshId}`,M);w.disableLighting=!0,w.emissiveColor=new b(m,f,x),w.alpha=d?.35+.65*l:u?.06:.18,j.material=w,j.isPickable=!0,j.metadata={hoverLabel:p.get(t.meshId)??t.meshId},z.push(j,w)}};ek.current=l,l()}else{let e=new Map;for(let t of em.current)e.set(t.name,g(t));let n=new Map,s=ef.current.map(([e])=>e).filter(t=>!e.has(t));for(let e=0;e<s.length;e++){let t=s[e],a=p(t),i=e/Math.max(1,s.length)*Math.PI*2+a%100/100*.35;n.set(t,[2.2*Math.cos(i),-.35+(a%7-3)*.06,2.2*Math.sin(i)])}for(let[t,s]of e.entries())n.set(t,s);let i=0,l=0,u=0,x=0;for(let e of n.values())i+=e[0],l+=e[1],u+=e[2],x++;let w=new m(i/Math.max(1,x),l/Math.max(1,x),u/Math.max(1,x)),y=1.8;for(let e of n.values()){let t=e[0]-w.x,n=e[1]-w.y,s=e[2]-w.z;y=Math.max(y,Math.sqrt(t*t+n*n+s*s))}let $=.75*y+1,P=Math.max(1,y/1.8);(a=new c("flow-cam",Math.PI/4,Math.PI/3,3.4*y,w,M)).attachControl(t,!0),(0,r.disableWheelZoom)(a),I.current=a,C.current={target:w,alpha:a.alpha,beta:a.beta,radius:a.radius},new h("flow-light",new m(.3,1,.2),M);let B=k.CreateSphere("flow-source-dome",{diameter:2*$,segments:20},M);B.position=w;let R=new v("flow-source-dome-mat",M);R.wireframe=!0,R.disableLighting=!0,R.emissiveColor=new b(.16,.2,.28),R.alpha=.35,B.material=R,B.isPickable=!1;let S=()=>{_();let e=eh.current;if(0===e.length)return;let t=eg.current,n=ep.current,s=ex.current,a=new Map;for(let e of em.current)a.set(e.name,g(e));let i=new Map,l=ef.current.map(([e])=>e).filter(e=>!a.has(e));for(let e=0;e<l.length;e++){let t=l[e],n=p(t),s=e/Math.max(1,l.length)*Math.PI*2+n%100/100*.35;i.set(t,[2.2*Math.cos(s),-.35+(n%7-3)*.06,2.2*Math.sin(s)])}for(let[e,t]of a.entries())i.set(e,t);let r=e.reduce((e,t)=>Math.max(e,t.count),1),u=new v("flow-source-node",M);u.disableLighting=!0,u.emissiveColor=new b(.45,.75,1);let c=new v("flow-target-node",M);c.disableLighting=!0,c.emissiveColor=new b(1,.82,.42),z.push(u,c);let h=new Set,x=new Set,y=e=>{let s=n===d||f(e.azimuth_bin,e.elevation_bin)===n,a=t===d||e.mesh===t;return s&&a},I=new Set,C=new Set;for(let t of e)y(t)&&(I.add(f(t.azimuth_bin,t.elevation_bin)),C.add(t.mesh));for(let s of e){let e=`${s.azimuth_bin}|${s.elevation_bin}`,a=i.get(s.mesh);if(!a)continue;let l=y(s),f=(s.azimuth_bin+.5)/j*Math.PI*2-Math.PI,g=(s.elevation_bin+.5)/j*Math.PI-Math.PI/2,p=Math.cos(g),_=p*Math.cos(f),B=Math.sin(g),R=p*Math.sin(f),S=new m(w.x+_*$,w.y+B*$,w.z+R*$),L=new m(a[0],a[1],a[2]);if(!h.has(e)){let s=k.CreateSphere(`flow-src-${e}`,{diameter:.12*P,segments:6},M);s.position=S;let a=u.clone(`flow-src-mat-${e}`);a.alpha=I.has(e)||t===d&&n===d?1:.22,s.material=a,s.isPickable=!1,h.add(e),z.push(s,a)}if(!x.has(s.mesh)){let e=k.CreateSphere(`flow-target-${s.mesh}`,{diameter:.2*P,segments:7},M);e.position=L;let a=c.clone(`flow-target-mat-${s.mesh}`);a.alpha=C.has(s.mesh)||t===d&&n===d?1:.22,e.material=a,e.isPickable=!0,e.metadata={hoverLabel:s.mesh},x.add(s.mesh),z.push(e,a)}let N=S.add(L).scale(.5),A=N.subtract(w),E=Math.sqrt(A.x*A.x+A.y*A.y+A.z*A.z),O=E>1e-6?A.x/E:0,Z=E>1e-6?A.y/E:1,q=E>1e-6?A.z/E:0,T=(.35+s.count/r*.75)*P,F=new m(N.x+O*T,N.y+Z*T+.12*P,N.z+q*T),V=[];for(let e=0;e<=18;e++){let t=e/18,n=1-t;V.push(new m(n*n*S.x+2*n*t*F.x+t*t*L.x,n*n*S.y+2*n*t*F.y+t*t*L.y,n*n*S.z+2*n*t*F.z+t*t*L.z))}let W=s.count/r,[X,H,D]=(0,o.heatRgb)(W),U=k.CreateTube(`flow-link-${s.mesh}-${e}`,{path:V,radius:(l?1:.4)*(.012+.04*W)*P,tessellation:8,cap:0,sideOrientation:0},M),K=new v(`flow-link-mat-${s.mesh}-${e}`,M);K.disableLighting=!0,K.emissiveColor=new b(X,H,D),K.alpha=l?.35+.65*W:.08,U.material=K,U.isPickable=!0,U.metadata={hoverLabel:s.mesh},z.push(U,K)}let B=s?.origin;if(B){let e=new m(B[0],B[1],B[2]),t=k.CreateSphere("flow-standpoint",{diameter:.26*P,segments:10},M);t.position=e;let n=new v("flow-standpoint-mat",M);n.disableLighting=!0,n.emissiveColor=new b(.95,.45,.95),t.material=n,t.isPickable=!1;let s=k.CreateLines("flow-standpoint-stem",{points:[e,new m(e.x,w.y,e.z)]},M);s.color=new b(.95,.45,.95),s.isPickable=!1,z.push(t,n,s)}};ek.current=S,S()}w.runRenderLoop(()=>M.render());let y=()=>w.resize();window.addEventListener("resize",y);let $=(0,u.attachMeshHover)(M,t,V),P=(0,r.attachDoubleClickFocus)(M,t,a);B("ready"),s=()=>{window.removeEventListener("resize",y),$(),P(),V(null),ek.current=null,I.current=null,C.current=null,_(),M.dispose(),w.dispose()}}catch(e){if(n)return;B("error"),S(e instanceof Error?e.message:"Failed to render flow links.")}})(),()=>{n=!0,s?.()}},[et,j,ev]),(0,n.useEffect)(()=>{ek.current?.()},[es,ee,w,L,A,O,Q]),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("canvas",{ref:$,className:"aspect-video w-full rounded-lg border border-edge bg-ink"}),F?(0,t.jsx)("div",{className:"pointer-events-none absolute z-10 max-w-[16rem] truncate rounded border border-edge bg-ink/90 px-1.5 py-0.5 text-xs text-white shadow backdrop-blur",style:{left:F.x+12,top:F.y+12},children:F.label}):null,"ready"===P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"absolute left-3 top-3 flex flex-wrap gap-2",children:[J?(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-edge bg-ink/80 p-0.5 text-xs backdrop-blur",children:[(0,t.jsx)(x,{active:!et,onClick:()=>T("aggregate"),children:"Aggregate"}),(0,t.jsx)(x,{active:et,onClick:()=>T("twostage"),children:"Two-stage"})]}):null,U?(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-edge bg-ink/80 p-0.5 text-xs backdrop-blur",children:[(0,t.jsx)(x,{active:"first-person"===W,onClick:()=>X("first-person"),children:"Walk"}),(0,t.jsx)(x,{active:"viewer"===W,onClick:()=>X("viewer"),disabled:y,title:y?"Orbit (viewer) flow isn't available for walkable scenes":void 0,children:"Orbit"}),(0,t.jsx)(x,{active:"all"===W,onClick:()=>X("all"),children:"All"})]}):null,J?(0,t.jsx)(b,{label:"Standpoint",value:O,onChange:Z,allLabel:"All standpoints",options:er}):null,(0,t.jsx)(b,{label:et?"Gaze":"Source",value:A,onChange:E,allLabel:et?"All gaze sectors":"All sources",options:eu}),(0,t.jsx)(b,{label:"Mesh",value:L,onChange:N,allLabel:"All meshes",options:ec})]}),et?(0,t.jsx)(k,{standpoints:G,proxyMeshes:w,selectedKey:O,onSelect:e=>Z(t=>t===e?d:e)}):null,(0,t.jsxs)("div",{className:"pointer-events-none absolute bottom-3 right-3 flex max-w-[20rem] flex-col items-end gap-2",children:[U&&!y?(0,t.jsxs)("div",{className:"rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg-muted backdrop-blur",children:["Orbit-dominated scene — viewer ",(0,t.jsx)("em",{children:"position"})," adds little here. Use the"," ",(0,t.jsx)("strong",{children:"View dome"})," (§7.5) above for where viewers looked."]}):null,(0,t.jsxs)("div",{className:"rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs text-fg backdrop-blur",children:["Active links: ",el,"/",eo]})]}),(0,t.jsx)(h.ZoomButtons,{onZoom:e=>I.current&&(0,r.stepZoom)(I.current,e),onReset:()=>I.current&&C.current&&(0,r.resetFocus)(I.current,C.current)}),(0,t.jsx)(c.HeatLegend,{title:"Flow volume",lowLabel:"fewer links",highLabel:"dominant links",note:et?"Three columns: standpoint → gaze sector → mesh. Top standpoints/meshes are kept; the tail folds into an “Other” node. Pick a standpoint (or click the minimap), gaze sector, or mesh to emphasize matching ribbons.":"Each arc aggregates clicks from one camera-direction bin to a mesh. Pick a source or mesh to emphasize matching links and dim the rest."})]}):(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-sm text-fg-muted",children:"loading"===P?"Rendering…":"empty"===P?"No aggregate flow links in range.":"error"===P?R??"Flow view unavailable.":null})]})}],19399)},48159,e=>{e.v(t=>Promise.all(["static/chunks/1365lgwdd4vuo.js","static/chunks/27hbplu797elx.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/3rl_nhqwew40w.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/103x4jwovb6d-.js","static/chunks/12ory_c78yl31.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/1dgf112ehnhm1.js"].map(t=>e.l(t))).then(()=>t(85303)))},7614,e=>{e.v(t=>Promise.all(["static/chunks/2pb_uosb-aa8x.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/3lladf_wemm-2.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/0u7577db_ivyr.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/2s4fzgzkwjluu.js"].map(t=>e.l(t))).then(()=>t(34769)))},41656,e=>{e.v(t=>Promise.all(["static/chunks/2gf8l6hbmt7v3.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/0gsh_d0m5xss1.js","static/chunks/0u7577db_ivyr.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/3r7v7un976sn7.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/15qfoj-vl9thu.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/2a3iy701j4r_y.js","static/chunks/3lladf_wemm-2.js","static/chunks/3gjvl1p-tugfe.js"].map(t=>e.l(t))).then(()=>t(29183)))},84694,e=>{e.v(t=>Promise.all(["static/chunks/1iojfx3-g4_n9.js","static/chunks/1upy8a5cb75kt.js","static/chunks/0u7577db_ivyr.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/43_fau1gg69eo.js"].map(t=>e.l(t))).then(()=>t(5153)))},13160,e=>{e.v(t=>Promise.all(["static/chunks/18h9ugdz6igdb.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/1iojfx3-g4_n9.js"].map(t=>e.l(t))).then(()=>t(82297)))},9786,e=>{e.v(t=>Promise.all(["static/chunks/2gf8l6hbmt7v3.js","static/chunks/39pkya0_bvcaj.js","static/chunks/0zydv7y47dxgh.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/3lladf_wemm-2.js","static/chunks/3s7hqij6xp_4e.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/15qfoj-vl9thu.js","static/chunks/0u7577db_ivyr.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/3v8kgnjk27wbe.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/166yqx3_qvbpy.js","static/chunks/2a3iy701j4r_y.js"].map(t=>e.l(t))).then(()=>t(40810)))},33664,e=>{e.v(t=>Promise.all(["static/chunks/146ou-ohb_qhs.js","static/chunks/1iojfx3-g4_n9.js","static/chunks/16gwjao676ieb.js","static/chunks/0u7577db_ivyr.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/25gep78-izw79.js","static/chunks/2jio3sio-_43z.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/0q8pt8fd0ma30.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/3lladf_wemm-2.js","static/chunks/15qfoj-vl9thu.js","static/chunks/2s4fzgzkwjluu.js"].map(t=>e.l(t))).then(()=>t(754)))},4977,e=>{e.v(t=>Promise.all(["static/chunks/1iojfx3-g4_n9.js","static/chunks/3lladf_wemm-2.js","static/chunks/1iel4pzhhh-c3.js","static/chunks/0tsk32q-88t_7.js","static/chunks/1xed71f608m4b.js","static/chunks/3o_dmzpahx-5g.js","static/chunks/0u7577db_ivyr.js","static/chunks/3gjvl1p-tugfe.js","static/chunks/2s4fzgzkwjluu.js","static/chunks/0q8pt8fd0ma30.js"].map(t=>e.l(t))).then(()=>t(12675)))}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46716,t=>{"use strict";var e=t.i(79957),i=t.i(19434),s=t.i(30302),n=t.i(38116);class l extends e.FlowGraphExecutionBlock{constructor(t){super(t),this.config=t,this.outputSignals=[],this.reset=this._registerSignalInput("reset"),this.lastIndex=this.registerDataOutput("lastIndex",i.RichTypeFlowGraphInteger,new s.FlowGraphInteger(-1)),this.setNumberOfOutputSignals(t?.outputSignalCount)}_getNextIndex(t){if(!t.includes(!1)&&this.config.isLoop&&t.fill(!1),!this.config.isRandom)return t.indexOf(!1);{let e=t.map((t,e)=>t?-1:e).filter(t=>-1!==t);return e.length?e[Math.floor(Math.random()*e.length)]:-1}}setNumberOfOutputSignals(t=1){for(;this.outputSignals.length>t;){let t=this.outputSignals.pop();t&&(t.disconnectFromAll(),this._unregisterSignalOutput(t.name))}for(;this.outputSignals.length<t;)this.outputSignals.push(this._registerSignalOutput(`out_${this.outputSignals.length}`))}_execute(t,e){if(t._hasExecutionVariable(this,"indexesUsed")||t._setExecutionVariable(this,"indexesUsed",this.outputSignals.map(()=>!1)),e===this.reset){t._deleteExecutionVariable(this,"indexesUsed"),this.lastIndex.setValue(new s.FlowGraphInteger(-1),t);return}let i=t._getExecutionVariable(this,"indexesUsed",[]),n=this._getNextIndex(i);n>-1&&(this.lastIndex.setValue(new s.FlowGraphInteger(n),t),i[n]=!0,t._setExecutionVariable(this,"indexesUsed",i),this.outputSignals[n]._activateSignal(t))}getClassName(){return"FlowGraphMultiGateBlock"}serialize(t){super.serialize(t),t.config.outputSignalCount=this.config.outputSignalCount,t.config.isRandom=this.config.isRandom,t.config.loop=this.config.isLoop,t.config.startIndex=this.config.startIndex}}let o=!1;function a(){o||(o=!0,(0,n.RegisterClass)("FlowGraphMultiGateBlock",l))}t.s(["FlowGraphMultiGateBlock",0,l,"RegisterFlowGraphMultiGateBlock",0,a],74725),a(),t.s([],14034),t.i(14034),t.i(74725),t.s(["FlowGraphMultiGateBlock",0,l],46716)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67685,t=>{"use strict";var e=t.i(44938),i=t.i(75105),s=t.i(32304),n=t.i(44520);class l extends e.FlowGraphExecutionBlock{constructor(t){super(t),this.config=t,this.outputSignals=[],this.reset=this._registerSignalInput("reset"),this.lastIndex=this.registerDataOutput("lastIndex",i.RichTypeFlowGraphInteger,new s.FlowGraphInteger(-1)),this.setNumberOfOutputSignals(t?.outputSignalCount)}_getNextIndex(t){if(!t.includes(!1)&&this.config.isLoop&&t.fill(!1),!this.config.isRandom)return t.indexOf(!1);{let e=t.map((t,e)=>t?-1:e).filter(t=>-1!==t);return e.length?e[Math.floor(Math.random()*e.length)]:-1}}setNumberOfOutputSignals(t=1){for(;this.outputSignals.length>t;){let t=this.outputSignals.pop();t&&(t.disconnectFromAll(),this._unregisterSignalOutput(t.name))}for(;this.outputSignals.length<t;)this.outputSignals.push(this._registerSignalOutput(`out_${this.outputSignals.length}`))}_execute(t,e){if(t._hasExecutionVariable(this,"indexesUsed")||t._setExecutionVariable(this,"indexesUsed",this.outputSignals.map(()=>!1)),e===this.reset){t._deleteExecutionVariable(this,"indexesUsed"),this.lastIndex.setValue(new s.FlowGraphInteger(-1),t);return}let i=t._getExecutionVariable(this,"indexesUsed",[]),n=this._getNextIndex(i);n>-1&&(this.lastIndex.setValue(new s.FlowGraphInteger(n),t),i[n]=!0,t._setExecutionVariable(this,"indexesUsed",i),this.outputSignals[n]._activateSignal(t))}getClassName(){return"FlowGraphMultiGateBlock"}serialize(t){super.serialize(t),t.config.outputSignalCount=this.config.outputSignalCount,t.config.isRandom=this.config.isRandom,t.config.loop=this.config.isLoop,t.config.startIndex=this.config.startIndex}}let o=!1;function a(){o||(o=!0,(0,n.RegisterClass)("FlowGraphMultiGateBlock",l))}t.s(["FlowGraphMultiGateBlock",0,l,"RegisterFlowGraphMultiGateBlock",0,a],49123),a(),t.s([],76741),t.i(76741),t.i(49123),t.s(["FlowGraphMultiGateBlock",0,l],67685)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12877,t=>{"use strict";class e{constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}toGlobal(t,i){return new e(this.x*t,this.y*i,this.width*t,this.height*i)}toGlobalToRef(t,e,i){return i.x=this.x*t,i.y=this.y*e,i.width=this.width*t,i.height=this.height*e,this}clone(){return new e(this.x,this.y,this.width,this.height)}}t.s(["Viewport",0,e])},67213,t=>{"use strict";var e=t.i(51843);let i=!1;t.s(["RegisterAbstractEngineRenderPass",0,function(){i||(i=!0,e.AbstractEngine.prototype.getRenderPassNames=function(){return this._renderPassNames},e.AbstractEngine.prototype.getCurrentRenderPassName=function(){return this._renderPassNames[this.currentRenderPassId]},e.AbstractEngine.prototype.createRenderPassId=function(t){let i=++e.AbstractEngine._RenderPassIdCounter;return this._renderPassNames[i]=t??"NONAME",i},e.AbstractEngine.prototype.releaseRenderPassId=function(t){this._renderPassNames[t]=void 0;for(let e=0;e<this.scenes.length;++e){let i=this.scenes[e];for(let e=0;e<i.meshes.length;++e){let s=i.meshes[e];if(s._releaseRenderPassId(t),s.subMeshes)for(let e=0;e<s.subMeshes.length;++e)s.subMeshes[e]._removeDrawWrapper(t)}}})}])},55288,t=>{"use strict";let e,i,s,r,a,o,h,n,c,l,_,m,u,g,d,p,f,R,P,M,C,v,x,b,I,E,S,O,T,A,y,V,D,z,Z,w,L,N,F,j,k,H,q,B,G;var W,U=t.i(57575),X=t.i(9855),Y=t.i(32451),K=t.i(3864),Q=t.i(69400),$=t.i(52624),J=t.i(16347),tt=t.i(44520),te=t.i(85050),ti=t.i(12877),ts=t.i(57660),tr=t.i(67213),ta=t.i(2060);let to=(P=$.Node,M=[],C=[],v=[],x=[],b=[],I=[],E=[],S=[],O=[],T=[],A=[],y=[],V=[],D=[],z=[],Z=[],w=[],L=[],N=[],F=[],j=[],k=[],H=[],q=[],B=[],W=class extends P{get position(){return this._position}set position(t){this._position=t}set upVector(t){this._upVector=t}get upVector(){return this._upVector}get screenArea(){let t,e;if(this.mode===W.PERSPECTIVE_CAMERA)this.fovMode===W.FOVMODE_VERTICAL_FIXED?(e=2*this.minZ*Math.tan(this.fov/2),t=this.getEngine().getAspectRatio(this)*e):e=(t=2*this.minZ*Math.tan(this.fov/2))/this.getEngine().getAspectRatio(this);else{let i=this.getEngine().getRenderWidth()/2,s=this.getEngine().getRenderHeight()/2;t=(this.orthoRight??i)-(this.orthoLeft??-i),e=(this.orthoTop??s)-(this.orthoBottom??-s)}return t*e}set orthoLeft(t){for(let e of(this._orthoLeft=t,this._rigCameras))e.orthoLeft=t}get orthoLeft(){return this._orthoLeft}set orthoRight(t){for(let e of(this._orthoRight=t,this._rigCameras))e.orthoRight=t}get orthoRight(){return this._orthoRight}set orthoBottom(t){for(let e of(this._orthoBottom=t,this._rigCameras))e.orthoBottom=t}get orthoBottom(){return this._orthoBottom}set orthoTop(t){for(let e of(this._orthoTop=t,this._rigCameras))e.orthoTop=t}get orthoTop(){return this._orthoTop}setFocalLength(t,e=36){this.fov=2*Math.atan(e/(2*t))}get inertia(){return this._baseInertia}set inertia(t){this._baseInertia=t}set mode(t){for(let e of(this._mode=t,this._rigCameras))e.mode=t}get mode(){return this._mode}get hasMoved(){return this._hasMoved}constructor(t,e,i,s=!0){(0,tr.RegisterAbstractEngineRenderPass)(),super(t,i,!1),this.inputs=(0,U.__runInitializers)(this,M),this._position=(0,U.__runInitializers)(this,C,Q.Vector3.Zero()),this._upVector=((0,U.__runInitializers)(this,v),(0,U.__runInitializers)(this,x,Q.Vector3.Up())),this.oblique=((0,U.__runInitializers)(this,b),null),this._orthoLeft=null,this._orthoRight=null,this._orthoBottom=null,this._orthoTop=null,this.fov=(0,U.__runInitializers)(this,I,.8),this.projectionPlaneTilt=((0,U.__runInitializers)(this,E),(0,U.__runInitializers)(this,S,0)),this.minZ=((0,U.__runInitializers)(this,O),(0,U.__runInitializers)(this,T,1)),this.maxZ=((0,U.__runInitializers)(this,A),(0,U.__runInitializers)(this,y,1e4)),this._baseInertia=((0,U.__runInitializers)(this,V),.9),this._mode=W.PERSPECTIVE_CAMERA,this.isIntermediate=!1,this.viewport=new ti.Viewport(0,0,1,1),this.layerMask=(0,U.__runInitializers)(this,D,0xfffffff),this.fovMode=((0,U.__runInitializers)(this,z),(0,U.__runInitializers)(this,Z,W.FOVMODE_VERTICAL_FIXED)),this.cameraRigMode=((0,U.__runInitializers)(this,w),(0,U.__runInitializers)(this,L,W.RIG_MODE_NONE)),this.interaxialDistance=((0,U.__runInitializers)(this,N),(0,U.__runInitializers)(this,F,void 0)),this.isStereoscopicSideBySide=((0,U.__runInitializers)(this,j),(0,U.__runInitializers)(this,k,void 0)),this.ignoreCameraMaxZ=((0,U.__runInitializers)(this,H),(0,U.__runInitializers)(this,q,!1)),this.customRenderTargets=((0,U.__runInitializers)(this,B),[]),this.outputRenderTarget=null,this.onViewMatrixChangedObservable=new K.Observable,this.onProjectionMatrixChangedObservable=new K.Observable,this.onAfterCheckInputsObservable=new K.Observable,this.onRestoreStateObservable=new K.Observable,this.isRigCamera=!1,this._hasMoved=!1,this._rigCameras=[],this._skipRendering=!1,this._projectionMatrix=new Q.Matrix,this._postProcesses=[],this._activeMeshes=new Y.SmartArray(256),this._globalPosition=Q.Vector3.Zero(),this._computedViewMatrix=Q.Matrix.Identity(),this._doNotComputeProjectionMatrix=!1,this._transformMatrix=Q.Matrix.Zero(),this._refreshFrustumPlanes=!0,this._absoluteRotation=Q.Quaternion.Identity(),this._isCamera=!0,this._isLeftCamera=!1,this._isRightCamera=!1,this.layerMask=this.getScene().defaultCameraLayerMask,this.getScene().addCamera(this),s&&!this.getScene().activeCamera&&(this.getScene().activeCamera=this),this.position=e,this.renderPassId=this.getScene().getEngine().createRenderPassId(`Camera ${t}`)}storeState(){return this._stateStored=!0,this._storedFov=this.fov,this}hasStateStored(){return!!this._stateStored}_restoreStateValues(){return!!this._stateStored&&(this.fov=this._storedFov,!0)}restoreState(){return!!this._restoreStateValues()&&(this.onRestoreStateObservable.notifyObservers(this),!0)}getClassName(){return"Camera"}toString(t){let e="Name: "+this.name;if(e+=", type: "+this.getClassName(),this.animations)for(let i=0;i<this.animations.length;i++)e+=", animation[0]: "+this.animations[i].toString(t);return e}applyVerticalCorrection(){let t=this.absoluteRotation.toEulerAngles();this.projectionPlaneTilt=this._scene.useRightHandedSystem?-t.x:t.x}get globalPosition(){return this._globalPosition}getActiveMeshes(){return this._activeMeshes}isActiveMesh(t){return -1!==this._activeMeshes.indexOf(t)}isReady(t=!1){if(t){for(let t of this._postProcesses)if(t&&!t.isReady())return!1}return super.isReady(t)}_initCache(){super._initCache(),this._cache.position=new Q.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.upVector=new Q.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.mode=void 0,this._cache.minZ=void 0,this._cache.maxZ=void 0,this._cache.fov=void 0,this._cache.fovMode=void 0,this._cache.aspectRatio=void 0,this._cache.orthoLeft=void 0,this._cache.orthoRight=void 0,this._cache.orthoBottom=void 0,this._cache.orthoTop=void 0,this._cache.obliqueAngle=void 0,this._cache.obliqueLength=void 0,this._cache.obliqueOffset=void 0,this._cache.renderWidth=void 0,this._cache.renderHeight=void 0}_updateCache(t){t||super._updateCache(),this._cache.position.copyFrom(this.position),this._cache.upVector.copyFrom(this.upVector)}_isSynchronized(){return this._isSynchronizedViewMatrix()&&this._isSynchronizedProjectionMatrix()}_isSynchronizedViewMatrix(){return!!super._isSynchronized()&&this._cache.position.equals(this.position)&&this._cache.upVector.equals(this.upVector)&&this.isSynchronizedWithParent()}_isSynchronizedProjectionMatrix(){let t=this.ignoreCameraMaxZ?0:this.maxZ,e=this._cache.mode===this.mode&&this._cache.minZ===this.minZ&&this._cache.maxZ===t;if(!e)return!1;let i=this.getEngine();return this.mode===W.PERSPECTIVE_CAMERA?e=this._cache.fov===this.fov&&this._cache.fovMode===this.fovMode&&this._cache.aspectRatio===i.getAspectRatio(this)&&this._cache.projectionPlaneTilt===this.projectionPlaneTilt:(e=this._cache.orthoLeft===this.orthoLeft&&this._cache.orthoRight===this.orthoRight&&this._cache.orthoBottom===this.orthoBottom&&this._cache.orthoTop===this.orthoTop&&this._cache.renderWidth===i.getRenderWidth()&&this._cache.renderHeight===i.getRenderHeight(),this.oblique&&(e=e&&this._cache.obliqueAngle===this.oblique.angle&&this._cache.obliqueLength===this.oblique.length&&this._cache.obliqueOffset===this.oblique.offset)),e}attachControl(t,e){}detachControl(t){}update(){this._hasMoved=!1,this._checkInputs(),this.cameraRigMode!==W.RIG_MODE_NONE&&this._updateRigCameras(),this.getViewMatrix(),this.getProjectionMatrix()}_checkInputs(){this.onAfterCheckInputsObservable.notifyObservers(this)}get rigCameras(){return this._rigCameras}get rigPostProcess(){return this._rigPostProcess}_getFirstPostProcess(){for(let t=0;t<this._postProcesses.length;t++)if(null!==this._postProcesses[t])return this._postProcesses[t];return null}_cascadePostProcessesToRigCams(){let t=this._getFirstPostProcess();t&&t.markTextureDirty();for(let t=0,e=this._rigCameras.length;t<e;t++){let e=this._rigCameras[t],i=e._rigPostProcess;i?("pass"===i.getEffectName()&&(e.isIntermediate=0===this._postProcesses.length),e._postProcesses=this._postProcesses.slice(0).concat(i),i.markTextureDirty()):e._postProcesses=this._postProcesses.slice(0)}}attachPostProcess(t,e=null){return!t.isReusable()&&this._postProcesses.indexOf(t)>-1?(J.Logger.Error("You're trying to reuse a post process not defined as reusable."),0):(null==e||e<0?this._postProcesses.push(t):null===this._postProcesses[e]?this._postProcesses[e]=t:this._postProcesses.splice(e,0,t),this._cascadePostProcessesToRigCams(),this._scene.prePassRenderer&&this._scene.prePassRenderer.markAsDirty(),this._postProcesses.indexOf(t))}detachPostProcess(t){let e=this._postProcesses.indexOf(t);-1!==e&&(this._postProcesses[e]=null),this._scene.prePassRenderer&&this._scene.prePassRenderer.markAsDirty(),this._cascadePostProcessesToRigCams()}getWorldMatrix(){return this._isSynchronizedViewMatrix()||this.getViewMatrix(),this._worldMatrix}_getViewMatrix(){return Q.Matrix.Identity()}getViewMatrix(t){return!t&&this._isSynchronizedViewMatrix()||(this._hasMoved=!0,this.updateCache(),this._computedViewMatrix=this._getViewMatrix(),this._currentRenderId=this.getScene().getRenderId(),this._childUpdateId++,this._refreshFrustumPlanes=!0,this._cameraRigParams&&this._cameraRigParams.vrPreViewMatrix&&this._computedViewMatrix.multiplyToRef(this._cameraRigParams.vrPreViewMatrix,this._computedViewMatrix),this.parent&&this.parent.onViewMatrixChangedObservable&&this.parent.onViewMatrixChangedObservable.notifyObservers(this.parent),this.onViewMatrixChangedObservable.notifyObservers(this),this._computedViewMatrix.invertToRef(this._worldMatrix),this._worldMatrix.getTranslationToRef(this._globalPosition)),this._computedViewMatrix}freezeProjectionMatrix(t){this._doNotComputeProjectionMatrix=!0,void 0!==t&&(this._projectionMatrix=t)}unfreezeProjectionMatrix(){this._doNotComputeProjectionMatrix=!1}getProjectionMatrix(t){if(this._doNotComputeProjectionMatrix||!t&&this._isSynchronizedProjectionMatrix())return this._projectionMatrix;let e=this.ignoreCameraMaxZ?0:this.maxZ;this._cache.mode=this.mode,this._cache.minZ=this.minZ,this._cache.maxZ=e,this._refreshFrustumPlanes=!0;let i=this.getEngine(),s=this.getScene(),r=i.useReverseDepthBuffer;if(this.mode===W.PERSPECTIVE_CAMERA)this._cache.fov=this.fov,this._cache.fovMode=this.fovMode,this._cache.aspectRatio=i.getAspectRatio(this),this._cache.projectionPlaneTilt=this.projectionPlaneTilt,this.minZ<=0&&(this.minZ=.1),(s.useRightHandedSystem?Q.Matrix.PerspectiveFovRHToRef:Q.Matrix.PerspectiveFovLHToRef)(this.fov,i.getAspectRatio(this),r?e:this.minZ,r?this.minZ:e,this._projectionMatrix,this.fovMode===W.FOVMODE_VERTICAL_FIXED,i.isNDCHalfZRange,this.projectionPlaneTilt,r);else{let t=i.getRenderWidth()/2,a=i.getRenderHeight()/2;s.useRightHandedSystem?this.oblique?Q.Matrix.ObliqueOffCenterRHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this.oblique.length,this.oblique.angle,this._computeObliqueDistance(this.oblique.offset),this._projectionMatrix,i.isNDCHalfZRange):Q.Matrix.OrthoOffCenterRHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this._projectionMatrix,i.isNDCHalfZRange):this.oblique?Q.Matrix.ObliqueOffCenterLHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this.oblique.length,this.oblique.angle,this._computeObliqueDistance(this.oblique.offset),this._projectionMatrix,i.isNDCHalfZRange):Q.Matrix.OrthoOffCenterLHToRef(this.orthoLeft??-t,this.orthoRight??t,this.orthoBottom??-a,this.orthoTop??a,r?e:this.minZ,r?this.minZ:e,this._projectionMatrix,i.isNDCHalfZRange),this._cache.orthoLeft=this.orthoLeft,this._cache.orthoRight=this.orthoRight,this._cache.orthoBottom=this.orthoBottom,this._cache.orthoTop=this.orthoTop,this._cache.obliqueAngle=this.oblique?.angle,this._cache.obliqueLength=this.oblique?.length,this._cache.obliqueOffset=this.oblique?.offset,this._cache.renderWidth=i.getRenderWidth(),this._cache.renderHeight=i.getRenderHeight()}return this.onProjectionMatrixChangedObservable.notifyObservers(this),this._projectionMatrix}getTransformationMatrix(){return this._computedViewMatrix.multiplyToRef(this._projectionMatrix,this._transformMatrix),this._transformMatrix}_computeObliqueDistance(t){return(this.radius||(this.target?Q.Vector3.Distance(this.position,this.target):this.position.length()))+t}_updateFrustumPlanes(){this._refreshFrustumPlanes&&(this.getTransformationMatrix(),this._frustumPlanes?ts.Frustum.GetPlanesToRef(this._transformMatrix,this._frustumPlanes):this._frustumPlanes=ts.Frustum.GetPlanes(this._transformMatrix),this._refreshFrustumPlanes=!1)}isInFrustum(t,e=!1){if(this._updateFrustumPlanes(),!e||!(this.rigCameras.length>0))return t.isInFrustum(this._frustumPlanes);{let e=!1;for(let i of this.rigCameras)i._updateFrustumPlanes(),e=e||t.isInFrustum(i._frustumPlanes);return e}}isCompletelyInFrustum(t){return this._updateFrustumPlanes(),t.isCompletelyInFrustum(this._frustumPlanes)}getForwardRay(t=100,e,i){throw(0,te._WarnImport)("Ray")}getForwardRayToRef(t,e=100,i,s){throw(0,te._WarnImport)("Ray")}dispose(t,e=!1){for(this.onViewMatrixChangedObservable.clear(),this.onProjectionMatrixChangedObservable.clear(),this.onAfterCheckInputsObservable.clear(),this.onRestoreStateObservable.clear(),this.inputs&&this.inputs.clear(),this.getScene().stopAnimation(this),this.getScene().removeCamera(this);this._rigCameras.length>0;){let t=this._rigCameras.pop();t&&t.dispose()}if(this._parentContainer){let t=this._parentContainer.cameras.indexOf(this);t>-1&&this._parentContainer.cameras.splice(t,1),this._parentContainer=null}if(this._rigPostProcess)this._rigPostProcess.dispose(this),this._rigPostProcess=null,this._postProcesses.length=0;else if(this.cameraRigMode!==W.RIG_MODE_NONE)this._rigPostProcess=null,this._postProcesses.length=0;else{let t=this._postProcesses.length;for(;--t>=0;){let e=this._postProcesses[t];e&&e.dispose(this)}}let i=this.customRenderTargets.length;for(;--i>=0;)this.customRenderTargets[i].dispose();this.customRenderTargets.length=0,this._activeMeshes.dispose(),this.getScene().getEngine().releaseRenderPassId(this.renderPassId),super.dispose(t,e)}get isLeftCamera(){return this._isLeftCamera}get isRightCamera(){return this._isRightCamera}get leftCamera(){return this._rigCameras.length<1?null:this._rigCameras[0]}get rightCamera(){return this._rigCameras.length<2?null:this._rigCameras[1]}getLeftTarget(){return this._rigCameras.length<1?null:this._rigCameras[0].getTarget()}getRightTarget(){return this._rigCameras.length<2?null:this._rigCameras[1].getTarget()}setCameraRigMode(t,e){if(this.cameraRigMode!==t){for(;this._rigCameras.length>0;){let t=this._rigCameras.pop();t&&t.dispose()}if(this.cameraRigMode=t,this._cameraRigParams={},this._cameraRigParams.interaxialDistance=e.interaxialDistance||.0637,this._cameraRigParams.stereoHalfAngle=this._cameraRigParams.interaxialDistance/.0637*(Math.PI/180),this.cameraRigMode!==W.RIG_MODE_NONE){let t=this.createRigCamera(this.name+"_L",0);t&&(t._isLeftCamera=!0);let e=this.createRigCamera(this.name+"_R",1);e&&(e._isRightCamera=!0),t&&e&&(this._rigCameras.push(t),this._rigCameras.push(e))}this._setRigMode(e),this._cascadePostProcessesToRigCams(),this.update()}}_setRigMode(t){}_getVRProjectionMatrix(){return Q.Matrix.PerspectiveFovLHToRef(this._cameraRigParams.vrMetrics.aspectRatioFov,this._cameraRigParams.vrMetrics.aspectRatio,this.minZ,this.ignoreCameraMaxZ?0:this.maxZ,this._cameraRigParams.vrWorkMatrix,!0,this.getEngine().isNDCHalfZRange),this._cameraRigParams.vrWorkMatrix.multiplyToRef(this._cameraRigParams.vrHMatrix,this._projectionMatrix),this._projectionMatrix}setCameraRigParameter(t,e){this._cameraRigParams||(this._cameraRigParams={}),this._cameraRigParams[t]=e,"interaxialDistance"===t&&(this._cameraRigParams.stereoHalfAngle=e/.0637*(Math.PI/180))}createRigCamera(t,e){return null}_updateRigCameras(){for(let t=0;t<this._rigCameras.length;t++)this._rigCameras[t].minZ=this.minZ,this._rigCameras[t].maxZ=this.ignoreCameraMaxZ?0:this.maxZ,this._rigCameras[t].fov=this.fov,this._rigCameras[t].upVector.copyFrom(this.upVector);this.cameraRigMode===W.RIG_MODE_STEREOSCOPIC_ANAGLYPH&&(this._rigCameras[0].viewport=this._rigCameras[1].viewport=this.viewport)}_setupInputs(){}serialize(){let t=ta.SerializationHelper.Serialize(this);return t.uniqueId=this.uniqueId,t.type=this.getClassName(),this.parent&&this.parent._serializeAsParent(t),this.inputs&&this.inputs.serialize(t),ta.SerializationHelper.AppendSerializedAnimations(this,t),t.ranges=this.serializeAnimationRanges(),t.isEnabled=this.isEnabled(),t}clone(t,e=null){let i=ta.SerializationHelper.Clone(W.GetConstructorFromName(this.getClassName(),t,this.getScene(),this.interaxialDistance,this.isStereoscopicSideBySide),this);return i.name=t,i.parent=e,this.onClonedObservable.notifyObservers(i),i}getDirection(t){let e=Q.Vector3.Zero();return this.getDirectionToRef(t,e),e}get absoluteRotation(){return this.getWorldMatrix().decompose(void 0,this._absoluteRotation),this._absoluteRotation}getDirectionToRef(t,e){Q.Vector3.TransformNormalToRef(t,this.getWorldMatrix(),e)}static GetConstructorFromName(t,e,i,s=0,r=!0){let a=$.Node.Construct(t,e,i,{interaxial_distance:s,isStereoscopicSideBySide:r});return a||(()=>W._CreateDefaultParsedCamera(e,i))}computeWorldMatrix(){return this.getWorldMatrix()}_calculateHandednessMultiplier(){let t=this.getScene().useRightHandedSystem?-1:1;return this.parent&&0>this.parent._getWorldMatrixDeterminant()&&(t*=-1),t}},G="function"==typeof Symbol&&Symbol.metadata?Object.create(P[Symbol.metadata]??null):void 0,e=[(0,X.serializeAsVector3)("position")],i=[(0,X.serializeAsVector3)("upVector")],s=[(0,X.serialize)()],r=[(0,X.serialize)()],a=[(0,X.serialize)()],o=[(0,X.serialize)()],h=[(0,X.serialize)()],n=[(0,X.serialize)()],c=[(0,X.serialize)()],l=[(0,X.serialize)()],_=[(0,X.serialize)()],m=[(0,X.serialize)()],u=[(0,X.serialize)()],g=[(0,X.serialize)()],d=[(0,X.serialize)()],p=[(0,X.serialize)()],f=[(0,X.serialize)()],R=[(0,X.serialize)()],(0,U.__esDecorate)(W,null,s,{kind:"getter",name:"orthoLeft",static:!1,private:!1,access:{has:t=>"orthoLeft"in t,get:t=>t.orthoLeft},metadata:G},null,M),(0,U.__esDecorate)(W,null,r,{kind:"getter",name:"orthoRight",static:!1,private:!1,access:{has:t=>"orthoRight"in t,get:t=>t.orthoRight},metadata:G},null,M),(0,U.__esDecorate)(W,null,a,{kind:"getter",name:"orthoBottom",static:!1,private:!1,access:{has:t=>"orthoBottom"in t,get:t=>t.orthoBottom},metadata:G},null,M),(0,U.__esDecorate)(W,null,o,{kind:"getter",name:"orthoTop",static:!1,private:!1,access:{has:t=>"orthoTop"in t,get:t=>t.orthoTop},metadata:G},null,M),(0,U.__esDecorate)(W,null,_,{kind:"getter",name:"inertia",static:!1,private:!1,access:{has:t=>"inertia"in t,get:t=>t.inertia},metadata:G},null,M),(0,U.__esDecorate)(W,null,m,{kind:"getter",name:"mode",static:!1,private:!1,access:{has:t=>"mode"in t,get:t=>t.mode},metadata:G},null,M),(0,U.__esDecorate)(null,null,e,{kind:"field",name:"_position",static:!1,private:!1,access:{has:t=>"_position"in t,get:t=>t._position,set:(t,e)=>{t._position=e}},metadata:G},C,v),(0,U.__esDecorate)(null,null,i,{kind:"field",name:"_upVector",static:!1,private:!1,access:{has:t=>"_upVector"in t,get:t=>t._upVector,set:(t,e)=>{t._upVector=e}},metadata:G},x,b),(0,U.__esDecorate)(null,null,h,{kind:"field",name:"fov",static:!1,private:!1,access:{has:t=>"fov"in t,get:t=>t.fov,set:(t,e)=>{t.fov=e}},metadata:G},I,E),(0,U.__esDecorate)(null,null,n,{kind:"field",name:"projectionPlaneTilt",static:!1,private:!1,access:{has:t=>"projectionPlaneTilt"in t,get:t=>t.projectionPlaneTilt,set:(t,e)=>{t.projectionPlaneTilt=e}},metadata:G},S,O),(0,U.__esDecorate)(null,null,c,{kind:"field",name:"minZ",static:!1,private:!1,access:{has:t=>"minZ"in t,get:t=>t.minZ,set:(t,e)=>{t.minZ=e}},metadata:G},T,A),(0,U.__esDecorate)(null,null,l,{kind:"field",name:"maxZ",static:!1,private:!1,access:{has:t=>"maxZ"in t,get:t=>t.maxZ,set:(t,e)=>{t.maxZ=e}},metadata:G},y,V),(0,U.__esDecorate)(null,null,u,{kind:"field",name:"layerMask",static:!1,private:!1,access:{has:t=>"layerMask"in t,get:t=>t.layerMask,set:(t,e)=>{t.layerMask=e}},metadata:G},D,z),(0,U.__esDecorate)(null,null,g,{kind:"field",name:"fovMode",static:!1,private:!1,access:{has:t=>"fovMode"in t,get:t=>t.fovMode,set:(t,e)=>{t.fovMode=e}},metadata:G},Z,w),(0,U.__esDecorate)(null,null,d,{kind:"field",name:"cameraRigMode",static:!1,private:!1,access:{has:t=>"cameraRigMode"in t,get:t=>t.cameraRigMode,set:(t,e)=>{t.cameraRigMode=e}},metadata:G},L,N),(0,U.__esDecorate)(null,null,p,{kind:"field",name:"interaxialDistance",static:!1,private:!1,access:{has:t=>"interaxialDistance"in t,get:t=>t.interaxialDistance,set:(t,e)=>{t.interaxialDistance=e}},metadata:G},F,j),(0,U.__esDecorate)(null,null,f,{kind:"field",name:"isStereoscopicSideBySide",static:!1,private:!1,access:{has:t=>"isStereoscopicSideBySide"in t,get:t=>t.isStereoscopicSideBySide,set:(t,e)=>{t.isStereoscopicSideBySide=e}},metadata:G},k,H),(0,U.__esDecorate)(null,null,R,{kind:"field",name:"ignoreCameraMaxZ",static:!1,private:!1,access:{has:t=>"ignoreCameraMaxZ"in t,get:t=>t.ignoreCameraMaxZ,set:(t,e)=>{t.ignoreCameraMaxZ=e}},metadata:G},q,B),G&&Object.defineProperty(W,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:G}),W._CreateDefaultParsedCamera=(t,e)=>{throw(0,te._WarnImport)("UniversalCamera")},W.PERSPECTIVE_CAMERA=0,W.ORTHOGRAPHIC_CAMERA=1,W.FOVMODE_VERTICAL_FIXED=0,W.FOVMODE_HORIZONTAL_FIXED=1,W.RIG_MODE_NONE=0,W.RIG_MODE_STEREOSCOPIC_ANAGLYPH=10,W.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL=11,W.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED=12,W.RIG_MODE_STEREOSCOPIC_OVERUNDER=13,W.RIG_MODE_STEREOSCOPIC_INTERLACED=14,W.RIG_MODE_VR=20,W.RIG_MODE_CUSTOM=22,W.ForceAttachControlToAlwaysPreventDefault=!1,W);function th(t,e){let i=t.type,s=to.GetConstructorFromName(i,t.name,e,t.interaxial_distance,t.isStereoscopicSideBySide),r=ta.SerializationHelper.Parse(s,t,e);if(void 0!==t.parentId&&(r._waitingParentId=t.parentId),void 0!==t.parentInstanceIndex&&(r._waitingParentInstanceIndex=t.parentInstanceIndex),r.inputs&&(r.inputs.parse(t),r._setupInputs()),t.upVector&&(r.upVector=Q.Vector3.FromArray(t.upVector)),r.setPosition&&(r.position.copyFromFloats(0,0,0),r.setPosition(Q.Vector3.FromArray(t.position))),t.target&&r.setTarget&&r.setTarget(Q.Vector3.FromArray(t.target)),t.cameraRigMode){let e=t.interaxial_distance?{interaxialDistance:t.interaxial_distance}:{};r.setCameraRigMode(t.cameraRigMode,e)}if(t.animations){for(let e=0;e<t.animations.length;e++){let i=t.animations[e],s=(0,tt.GetClass)("BABYLON.Animation");s&&r.animations.push(s.Parse(i))}$.Node.ParseAnimationRanges(r,t,e)}return t.autoAnimate&&e.beginAnimation(r,t.autoAnimateFrom,t.autoAnimateTo,t.autoAnimateLoop,t.autoAnimateSpeed||1),void 0!==t.isEnabled&&r.setEnabled(t.isEnabled),r}let tn=!1;t.s(["Camera",0,to,"RegisterCamera",0,function(){tn||(tn=!0,to.Parse=th)}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75560,t=>{"use strict";var e=t.i(37068),i=t.i(19434);class s extends e.FlowGraphBlock{constructor(t){super(t),this.config=t,this.executionFunction=this.registerDataInput("function",i.RichTypeAny),this.value=this.registerDataInput("value",i.RichTypeAny),this.result=this.registerDataOutput("result",i.RichTypeAny)}_updateOutputs(t){let e=this.executionFunction.getValue(t),i=this.value.getValue(t);e&&this.result.setValue(e(i,t),t)}getClassName(){return"FlowGraphCodeExecutionBlock"}}t.s(["FlowGraphCodeExecutionBlock",0,s])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47682,t=>{"use strict";var e=t.i(17884),i=t.i(75105);class s extends e.FlowGraphBlock{constructor(t){super(t),this.config=t,this.executionFunction=this.registerDataInput("function",i.RichTypeAny),this.value=this.registerDataInput("value",i.RichTypeAny),this.result=this.registerDataOutput("result",i.RichTypeAny)}_updateOutputs(t){let e=this.executionFunction.getValue(t),i=this.value.getValue(t);e&&this.result.setValue(e(i,t),t)}getClassName(){return"FlowGraphCodeExecutionBlock"}}t.s(["FlowGraphCodeExecutionBlock",0,s])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94517,t=>{"use strict";var e=t.i(37068),o=t.i(19434),s=t.i(89694),i=t.i(38116);class a extends e.FlowGraphBlock{constructor(t){super(t),this.config=t,this.output=this.registerDataOutput("output",(0,o.getRichTypeFromValue)(t.value))}_updateOutputs(t){this.output.setValue(this.config.value,t)}getClassName(){return"FlowGraphConstantBlock"}serialize(t={},e=s.defaultValueSerializationFunction){super.serialize(t),e("value",this.config.value,t.config)}}let l=!1;function u(){l||(l=!0,(0,i.RegisterClass)("FlowGraphConstantBlock",a))}t.s(["FlowGraphConstantBlock",0,a,"RegisterFlowGraphConstantBlock",0,u],18264),u(),t.s([],37150),t.i(37150),t.i(18264),t.s(["FlowGraphConstantBlock",0,a],94517)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68077,t=>{"use strict";var e=t.i(17884),o=t.i(75105),s=t.i(14967),i=t.i(44520);class a extends e.FlowGraphBlock{constructor(t){super(t),this.config=t,this.output=this.registerDataOutput("output",(0,o.getRichTypeFromValue)(t.value))}_updateOutputs(t){this.output.setValue(this.config.value,t)}getClassName(){return"FlowGraphConstantBlock"}serialize(t={},e=s.defaultValueSerializationFunction){super.serialize(t),e("value",this.config.value,t.config)}}let l=!1;function u(){l||(l=!0,(0,i.RegisterClass)("FlowGraphConstantBlock",a))}t.s(["FlowGraphConstantBlock",0,a,"RegisterFlowGraphConstantBlock",0,u],73156),u(),t.s([],90610),t.i(90610),t.i(73156),t.s(["FlowGraphConstantBlock",0,a],68077)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24735,e=>{"use strict";var i=e.i(37875),n=e.i(44178),a=e.i(15937),r=e.i(44994);let f="pbrFragmentDeclaration",o=`uniform vec4 vEyePosition;uniform vec3 vReflectionColor;uniform vec4 vAlbedoColor;uniform float baseWeight;uniform float baseDiffuseRoughness;uniform vec4 vLightingIntensity;uniform vec4 vReflectivityColor;uniform vec4 vMetallicReflectanceFactors;uniform vec3 vEmissiveColor;uniform float visibility;uniform vec3 vAmbientColor;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11506,e=>{"use strict";var i=e.i(47150),n=e.i(64150),a=e.i(23767),r=e.i(11450);let f="pbrFragmentDeclaration",o=`uniform vec4 vEyePosition;uniform vec3 vReflectionColor;uniform vec4 vAlbedoColor;uniform float baseWeight;uniform float baseDiffuseRoughness;uniform vec4 vLightingIntensity;uniform vec4 vReflectivityColor;uniform vec4 vMetallicReflectanceFactors;uniform vec3 vEmissiveColor;uniform float visibility;uniform vec3 vAmbientColor;
2
2
  #ifdef ALBEDO
3
3
  uniform vec2 vAlbedoInfos;
4
4
  #endif
@@ -149,7 +149,7 @@ uniform vec3 vSphericalX;uniform vec3 vSphericalY;uniform vec3 vSphericalZ;unifo
149
149
  uniform vec4 vTextureRepetitionHexTilingParams;
150
150
  #endif
151
151
  #define ADDITIONAL_FRAGMENT_DECLARATION
152
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=o);var t=e.i(23044),c=e.i(64010),l=e.i(11692),d=e.i(46349),s=e.i(91138),E=e.i(41298),R=e.i(46860),S=e.i(32172);let C="samplerFragmentAlternateDeclaration",u=`#ifdef _DEFINENAME_
152
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=o);var t=e.i(67827),c=e.i(38605),l=e.i(73205),d=e.i(30868),s=e.i(18582),E=e.i(85401),R=e.i(80774),S=e.i(844);let C="samplerFragmentAlternateDeclaration",u=`#ifdef _DEFINENAME_
153
153
  #if _DEFINENAME_DIRECTUV==1
154
154
  #define v_VARYINGNAME_UV vMainUV1
155
155
  #elif _DEFINENAME_DIRECTUV==2
@@ -166,7 +166,7 @@ uniform vec4 vTextureRepetitionHexTilingParams;
166
166
  varying vec2 v_VARYINGNAME_UV;
167
167
  #endif
168
168
  #endif
169
- `;i.ShaderStore.IncludesShadersStore[C]||(i.ShaderStore.IncludesShadersStore[C]=u);var A=e.i(82784);let I="pbrFragmentSamplersDeclaration",m=`#include<samplerFragmentDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_SAMPLERNAME_,albedo)
169
+ `;i.ShaderStore.IncludesShadersStore[C]||(i.ShaderStore.IncludesShadersStore[C]=u);var A=e.i(64242);let I="pbrFragmentSamplersDeclaration",m=`#include<samplerFragmentDeclaration>(_DEFINENAME_,ALBEDO,_VARYINGNAME_,Albedo,_SAMPLERNAME_,albedo)
170
170
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_WEIGHT,_VARYINGNAME_,BaseWeight,_SAMPLERNAME_,baseWeight)
171
171
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_DIFFUSE_ROUGHNESS,_VARYINGNAME_,BaseDiffuseRoughness,_SAMPLERNAME_,baseDiffuseRoughness)
172
172
  #include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)
@@ -233,7 +233,7 @@ uniform sampler2D refractionSamplerLow;uniform sampler2D refractionSamplerHigh;
233
233
  #ifdef IBL_CDF_FILTERING
234
234
  uniform sampler2D icdfSampler;
235
235
  #endif
236
- `;i.ShaderStore.IncludesShadersStore[I]||(i.ShaderStore.IncludesShadersStore[I]=m);var v=e.i(57005),T=e.i(39780),N=e.i(85394),O=e.i(3107),p=e.i(13989),L=e.i(87027),_=e.i(79587),D=e.i(43899),M=e.i(16687),h=e.i(3142),F=e.i(13230),g=e.i(98932),P=e.i(56090),U=e.i(79671),b=e.i(47939),y=e.i(85916),B=e.i(46960),G=e.i(73088),V=e.i(91468),H=e.i(33053),x=e.i(73525),X=e.i(33165),W=e.i(582);let Y="pbrBlockAlbedoOpacity",k=`struct albedoOpacityOutParams
236
+ `;i.ShaderStore.IncludesShadersStore[I]||(i.ShaderStore.IncludesShadersStore[I]=m);var v=e.i(72284),T=e.i(57487),N=e.i(68381),O=e.i(76578),p=e.i(8808),L=e.i(3954),_=e.i(74197),D=e.i(83900),M=e.i(3707),h=e.i(27613),F=e.i(41628),g=e.i(88913),P=e.i(93663),U=e.i(83025),b=e.i(7629),y=e.i(98680),B=e.i(86563),G=e.i(74188),V=e.i(72306),H=e.i(40766),x=e.i(32274),X=e.i(40676),W=e.i(75351);let Y="pbrBlockAlbedoOpacity",k=`struct albedoOpacityOutParams
237
237
  {vec3 surfaceAlbedo;float alpha;};
238
238
  #define pbr_inline
239
239
  albedoOpacityOutParams albedoOpacityBlock(
@@ -1679,7 +1679,7 @@ outParams.refractionIrradiance=refractionIrradiance.rgb;
1679
1679
  #endif
1680
1680
  return outParams;}
1681
1681
  #endif
1682
- `;i.ShaderStore.IncludesShadersStore[et]||(i.ShaderStore.IncludesShadersStore[et]=ec);var el=e.i(53868);let ed="pbrBlockReflectance0",es=`float reflectanceF0=reflectivityOut.reflectanceF0;vec3 specularEnvironmentR0=reflectivityOut.colorReflectanceF0;vec3 specularEnvironmentR90=reflectivityOut.colorReflectanceF90;
1682
+ `;i.ShaderStore.IncludesShadersStore[et]||(i.ShaderStore.IncludesShadersStore[et]=ec);var el=e.i(805);let ed="pbrBlockReflectance0",es=`float reflectanceF0=reflectivityOut.reflectanceF0;vec3 specularEnvironmentR0=reflectivityOut.colorReflectanceF0;vec3 specularEnvironmentR90=reflectivityOut.colorReflectanceF90;
1683
1683
  #ifdef ALPHAFRESNEL
1684
1684
  float reflectance90=fresnelGrazingReflectance(reflectanceF0);specularEnvironmentR90=specularEnvironmentR90*reflectance90;
1685
1685
  #endif
@@ -1796,7 +1796,7 @@ result.sheen+=info.sheen;
1796
1796
  batchOffset+=CLUSTLIGHT_BATCH;}
1797
1797
  return result;}
1798
1798
  #endif
1799
- `;i.ShaderStore.IncludesShadersStore[eE]||(i.ShaderStore.IncludesShadersStore[eE]=eR);var eS=e.i(83958),eC=e.i(79795),eu=e.i(31814);let eA="pbrBlockNormalFinal",eI=`#if defined(FORCENORMALFORWARD) && defined(NORMAL)
1799
+ `;i.ShaderStore.IncludesShadersStore[eE]||(i.ShaderStore.IncludesShadersStore[eE]=eR);var eS=e.i(70402),eC=e.i(97657),eu=e.i(67538);let eA="pbrBlockNormalFinal",eI=`#if defined(FORCENORMALFORWARD) && defined(NORMAL)
1800
1800
  vec3 faceNormal=normalize(cross(dFdx(vPositionW),dFdy(vPositionW)))*vEyePosition.w;
1801
1801
  #if defined(TWOSIDEDLIGHTING)
1802
1802
  faceNormal=gl_FrontFacing ? faceNormal : -faceNormal;
@@ -1810,7 +1810,7 @@ normalW=gl_FrontFacing ? -normalW : normalW;
1810
1810
  normalW=gl_FrontFacing ? normalW : -normalW;
1811
1811
  #endif
1812
1812
  #endif
1813
- `;i.ShaderStore.IncludesShadersStore[eA]||(i.ShaderStore.IncludesShadersStore[eA]=eI);var em=e.i(84852);let ev="pbrBlockLightmapInit",eT=`#ifdef LIGHTMAP
1813
+ `;i.ShaderStore.IncludesShadersStore[eA]||(i.ShaderStore.IncludesShadersStore[eA]=eI);var em=e.i(61241);let ev="pbrBlockLightmapInit",eT=`#ifdef LIGHTMAP
1814
1814
  vec4 lightmapColor=TEXRD(lightmapSampler,vLightmapUV+uvOffset);
1815
1815
  #ifdef RGBDLIGHTMAP
1816
1816
  lightmapColor.rgb=fromRGBD(lightmapColor);
@@ -1891,7 +1891,7 @@ float aggShadow=0.;float numLights=0.;
1891
1891
  #if defined(CLEARCOAT) && defined(CLEARCOAT_TINT)
1892
1892
  vec3 absorption=vec3(0.);
1893
1893
  #endif
1894
- `;i.ShaderStore.IncludesShadersStore[e_]||(i.ShaderStore.IncludesShadersStore[e_]=eD);var eM=e.i(11989);let eh="pbrBlockFinalLitComponents",eF=`aggShadow=aggShadow/numLights;
1894
+ `;i.ShaderStore.IncludesShadersStore[e_]||(i.ShaderStore.IncludesShadersStore[e_]=eD);var eM=e.i(69855);let eh="pbrBlockFinalLitComponents",eF=`aggShadow=aggShadow/numLights;
1895
1895
  #if defined(ENVIRONMENTBRDF)
1896
1896
  #ifdef MS_BRDF_ENERGY_CONSERVATION
1897
1897
  vec3 baseSpecularEnergyConservationFactor=getEnergyConservationFactor(vec3(reflectanceF0),environmentBrdf);vec3 coloredEnergyConservationFactor=getEnergyConservationFactor(clearcoatOut.specularEnvironmentR0,environmentBrdf);
@@ -2063,7 +2063,7 @@ finalColor.rgb+=lightmapColor.rgb;
2063
2063
  finalColor.rgb+=finalEmissive;
2064
2064
  #define CUSTOM_FRAGMENT_BEFORE_FOG
2065
2065
  finalColor=max(finalColor,0.0);
2066
- `;i.ShaderStore.IncludesShadersStore[eU]||(i.ShaderStore.IncludesShadersStore[eU]=eb);var ey=e.i(98008),eB=e.i(51464),eG=e.i(2834);let eV="pbrBlockPrePass",eH=`#if SCENE_MRT_COUNT>0
2066
+ `;i.ShaderStore.IncludesShadersStore[eU]||(i.ShaderStore.IncludesShadersStore[eU]=eb);var ey=e.i(35047),eB=e.i(2216),eG=e.i(10891);let eV="pbrBlockPrePass",eH=`#if SCENE_MRT_COUNT>0
2067
2067
  float writeGeometryInfo=finalColor.a>ALPHATESTVALUE ? 1.0 : 0.0;
2068
2068
  #ifdef PREPASS_POSITION
2069
2069
  gl_FragData[PREPASS_POSITION_INDEX]=vec4(vPositionW,writeGeometryInfo);
@@ -2145,7 +2145,7 @@ gl_FragData[PREPASS_REFLECTIVITY_INDEX]=vec4( 0.0,0.0,0.0,1.0 )*writeGeometryInf
2145
2145
  #endif
2146
2146
  #endif
2147
2147
  #endif
2148
- `;i.ShaderStore.IncludesShadersStore[eV]||(i.ShaderStore.IncludesShadersStore[eV]=eH);var ex=e.i(46525),eX=e.i(14253);let eW="pbrPixelShader",eY=`#define PBR_FRAGMENT_SHADER
2148
+ `;i.ShaderStore.IncludesShadersStore[eV]||(i.ShaderStore.IncludesShadersStore[eV]=eH);var ex=e.i(45041),eX=e.i(20904);let eW="pbrPixelShader",eY=`#define PBR_FRAGMENT_SHADER
2149
2149
  #define CUSTOM_FRAGMENT_EXTENSION
2150
2150
  #if defined(BUMP) || !defined(NORMAL) || defined(FORCENORMALFORWARD) || defined(SPECULARAA) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
2151
2151
  #extension GL_OES_standard_derivatives : enable
@@ -2709,4 +2709,4 @@ if (fragDepth==nearestDepth) {frontColor.rgb+=finalColor.rgb*finalColor.a*alphaM
2709
2709
  #include<pbrDebug>
2710
2710
  #define CUSTOM_FRAGMENT_MAIN_END
2711
2711
  }
2712
- `;for(let e of(i.ShaderStore.ShadersStore[eW]||(i.ShaderStore.ShadersStore[eW]=eY),[n.prePassDeclaration,a.oitDeclaration,r.decalFragmentDeclaration,{name:f,shader:o},t.sceneUboDeclaration,c.meshUboDeclaration,l.pbrUboDeclaration,d.mainUVVaryingDeclaration,s.pbrFragmentExtraDeclaration,E.lightFragmentDeclaration,R.lightUboDeclaration,S.samplerFragmentDeclaration,{name:C,shader:u},A.pbrFragmentReflectionDeclaration,{name:I,shader:m},v.imageProcessingDeclaration,T.clipPlaneFragmentDeclaration,N.logDepthDeclaration,O.fogFragmentDeclaration,p.textureRepetitionFunctions,L.helperFunctions,_.subSurfaceScatteringFunctions,D.importanceSampling,M.pbrHelperFunctions,h.imageProcessingFunctions,F.shadowsFragmentFunctions,g.harmonicsFunctions,P.ltcHelperFunctions,U.pbrDirectLightingSetupFunctions,b.pbrDirectLightingFalloffFunctions,y.pbrBRDFFunctions,B.hdrFilteringFunctions,G.pbrDirectLightingFunctions,V.pbrIBLFunctions,H.bumpFragmentMainFunctions,x.bumpFragmentFunctions,X.reflectionFunction,W.decalFragment,{name:Y,shader:k},{name:w,shader:K},{name:z,shader:Z},{name:q,shader:J},{name:j,shader:Q},{name:$,shader:ee},{name:ei,shader:en},{name:ea,shader:er},{name:ef,shader:eo},{name:et,shader:ec},el.clusteredLightingFunctions,{name:ed,shader:es},{name:eE,shader:eR},eS.clipPlaneFragment,eC.pbrBlockNormalGeometric,eu.bumpFragment,{name:eA,shader:eI},em.depthPrePass,{name:ev,shader:eT},{name:eN,shader:eO},{name:ep,shader:eL},{name:e_,shader:eD},eM.lightFragment,{name:eh,shader:eF},{name:eg,shader:eP},{name:eU,shader:eb},ey.logDepthFragment,eB.fogFragment,eG.pbrBlockImageProcessing,{name:eV,shader:eH},ex.oitFragment,eX.pbrDebug]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["pbrPixelShader",0,{name:eW,shader:eY}],24735)}]);
2712
+ `;for(let e of(i.ShaderStore.ShadersStore[eW]||(i.ShaderStore.ShadersStore[eW]=eY),[n.prePassDeclaration,a.oitDeclaration,r.decalFragmentDeclaration,{name:f,shader:o},t.sceneUboDeclaration,c.meshUboDeclaration,l.pbrUboDeclaration,d.mainUVVaryingDeclaration,s.pbrFragmentExtraDeclaration,E.lightFragmentDeclaration,R.lightUboDeclaration,S.samplerFragmentDeclaration,{name:C,shader:u},A.pbrFragmentReflectionDeclaration,{name:I,shader:m},v.imageProcessingDeclaration,T.clipPlaneFragmentDeclaration,N.logDepthDeclaration,O.fogFragmentDeclaration,p.textureRepetitionFunctions,L.helperFunctions,_.subSurfaceScatteringFunctions,D.importanceSampling,M.pbrHelperFunctions,h.imageProcessingFunctions,F.shadowsFragmentFunctions,g.harmonicsFunctions,P.ltcHelperFunctions,U.pbrDirectLightingSetupFunctions,b.pbrDirectLightingFalloffFunctions,y.pbrBRDFFunctions,B.hdrFilteringFunctions,G.pbrDirectLightingFunctions,V.pbrIBLFunctions,H.bumpFragmentMainFunctions,x.bumpFragmentFunctions,X.reflectionFunction,W.decalFragment,{name:Y,shader:k},{name:w,shader:K},{name:z,shader:Z},{name:q,shader:J},{name:j,shader:Q},{name:$,shader:ee},{name:ei,shader:en},{name:ea,shader:er},{name:ef,shader:eo},{name:et,shader:ec},el.clusteredLightingFunctions,{name:ed,shader:es},{name:eE,shader:eR},eS.clipPlaneFragment,eC.pbrBlockNormalGeometric,eu.bumpFragment,{name:eA,shader:eI},em.depthPrePass,{name:ev,shader:eT},{name:eN,shader:eO},{name:ep,shader:eL},{name:e_,shader:eD},eM.lightFragment,{name:eh,shader:eF},{name:eg,shader:eP},{name:eU,shader:eb},ey.logDepthFragment,eB.fogFragment,eG.pbrBlockImageProcessing,{name:eV,shader:eH},ex.oitFragment,eX.pbrDebug]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["pbrPixelShader",0,{name:eW,shader:eY}],11506)}]);