framefields 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio/index.d.mts +6 -5
- package/dist/audio/index.mjs +13 -13
- package/dist/{audio-afTBdB3U.d.mts → audio-CHV33Od9.d.mts} +3 -4
- package/dist/audio-CHV33Od9.d.mts.map +1 -0
- package/dist/{audio-DHLoNcxD.mjs → audio-DHzLQ_RG.mjs} +4 -4
- package/dist/{audio-DHLoNcxD.mjs.map → audio-DHzLQ_RG.mjs.map} +1 -1
- package/dist/{audio-KHBadECb.mjs → audio-DS9Jg2ls.mjs} +1 -1
- package/dist/{audio-KHBadECb.mjs.map → audio-DS9Jg2ls.mjs.map} +1 -1
- package/dist/{check-result-Culfu7Nx.mjs → check-result-DZWx73V8.mjs} +1 -1
- package/dist/{check-result-Culfu7Nx.mjs.map → check-result-DZWx73V8.mjs.map} +1 -1
- package/dist/cli/check-worker.mjs +51 -51
- package/dist/cli/check-worker.mjs.map +1 -1
- package/dist/cli/local-worker.d.mts +28 -0
- package/dist/cli/local-worker.d.mts.map +1 -0
- package/dist/cli/local-worker.mjs +83 -0
- package/dist/cli/local-worker.mjs.map +1 -0
- package/dist/cli.mjs +229 -54
- package/dist/cli.mjs.map +1 -1
- package/dist/cloud/index.d.mts +2 -0
- package/dist/cloud/index.d.mts.map +1 -1
- package/dist/cloud/index.mjs +1 -1
- package/dist/{cloud-COid1Ipa.mjs → cloud-Cj1TIme8.mjs} +306 -7
- package/dist/cloud-Cj1TIme8.mjs.map +1 -0
- package/dist/components/index.d.mts +15 -14
- package/dist/components/index.mjs +47 -47
- package/dist/{dist-CySGkG54.mjs → dist-BSKAbyea.mjs} +2 -2
- package/dist/{dist-CySGkG54.mjs.map → dist-BSKAbyea.mjs.map} +1 -1
- package/dist/{dist-BwtxciN4.mjs → dist-B_rSWeOz.mjs} +1 -1
- package/dist/{dist-Bf2_efYP.mjs → dist-C8XSqfTx.mjs} +1 -1
- package/dist/{dist-Bf2_efYP.mjs.map → dist-C8XSqfTx.mjs.map} +1 -1
- package/dist/{dist-BSqeChht.mjs → dist-CUNvNDS3.mjs} +129 -82
- package/dist/dist-CUNvNDS3.mjs.map +1 -0
- package/dist/dist-CiTgmfUw.mjs +502 -0
- package/dist/dist-CiTgmfUw.mjs.map +1 -0
- package/dist/{dist-B-OPY7Cs.mjs → dist-D3BeAZ7X.mjs} +44 -10
- package/dist/dist-D3BeAZ7X.mjs.map +1 -0
- package/dist/{dist-BIE8fvlv.mjs → dist-DgZpN6IK.mjs} +1 -1
- package/dist/{dist-BIE8fvlv.mjs.map → dist-DgZpN6IK.mjs.map} +1 -1
- package/dist/{dist-2_lT3Dwc.mjs → dist-Kbf-JTry.mjs} +2 -2
- package/dist/{dist-2_lT3Dwc.mjs.map → dist-Kbf-JTry.mjs.map} +1 -1
- package/dist/effects/index.d.mts +6 -6
- package/dist/effects/index.mjs +36 -36
- package/dist/{effects-C8CL9cOq.mjs → effects-BiDgCK1L.mjs} +3 -3
- package/dist/{effects-C8CL9cOq.mjs.map → effects-BiDgCK1L.mjs.map} +1 -1
- package/dist/fonts/index.d.mts +1 -1
- package/dist/fonts/index.mjs +3 -3
- package/dist/{fonts-BQrDjnpV.mjs → fonts-DeDPWdvJ.mjs} +2 -2
- package/dist/{fonts-BQrDjnpV.mjs.map → fonts-DeDPWdvJ.mjs.map} +1 -1
- package/dist/{gpu-DHa-3Dou.mjs → gpu-CWjgql4C.mjs} +2 -2
- package/dist/{gpu-DHa-3Dou.mjs.map → gpu-CWjgql4C.mjs.map} +1 -1
- package/dist/index-BFTtXosj.d.mts +63 -0
- package/dist/index-BFTtXosj.d.mts.map +1 -0
- package/dist/{index-BW0Q1ygn.d.mts → index-C5sgRLlG.d.mts} +1 -1
- package/dist/{index-BW0Q1ygn.d.mts.map → index-C5sgRLlG.d.mts.map} +1 -1
- package/dist/{index-CdCrae-I.d.mts → index-CnZhBlob.d.mts} +2 -2
- package/dist/index-CnZhBlob.d.mts.map +1 -0
- package/dist/{index-CTv9ZieD.d.mts → index-D68eGFNE.d.mts} +3 -30
- package/dist/index-D68eGFNE.d.mts.map +1 -0
- package/dist/{index-WwuuX8ZJ.d.mts → index-DBh3WphX.d.mts} +2 -2
- package/dist/{index-WwuuX8ZJ.d.mts.map → index-DBh3WphX.d.mts.map} +1 -1
- package/dist/{index-gOVtTm-P.d.mts → index-DQ1U3HC3.d.mts} +14 -6
- package/dist/index-DQ1U3HC3.d.mts.map +1 -0
- package/dist/{index-CAuNuvIg.d.mts → index-Dibc_xpC.d.mts} +5 -5
- package/dist/{index-CAuNuvIg.d.mts.map → index-Dibc_xpC.d.mts.map} +1 -1
- package/dist/{index-BNClElng.d.mts → index-E2IXX0Cz.d.mts} +282 -284
- package/dist/index-E2IXX0Cz.d.mts.map +1 -0
- package/dist/{index-Fliv2Z-w.d.mts → index-X2u96TEo.d.mts} +131 -5
- package/dist/index-X2u96TEo.d.mts.map +1 -0
- package/dist/{index-Drk6HC2k.d.mts → index-YB9j9KUx.d.mts} +3 -3
- package/dist/{index-Drk6HC2k.d.mts.map → index-YB9j9KUx.d.mts.map} +1 -1
- package/dist/{index-COYNQ_mf.d.mts → index-a6JrbAK0.d.mts} +1 -1
- package/dist/{index-COYNQ_mf.d.mts.map → index-a6JrbAK0.d.mts.map} +1 -1
- package/dist/{index-DQa7mhzq.d.mts → index-rtCXNxGO.d.mts} +2 -2
- package/dist/{index-DQa7mhzq.d.mts.map → index-rtCXNxGO.d.mts.map} +1 -1
- package/dist/index.d.mts +16 -15
- package/dist/index.mjs +58 -58
- package/dist/preview/index.d.mts +5 -4
- package/dist/preview/index.mjs +12 -12
- package/dist/{preview-BUtt481A.mjs → preview-PDz7o2xg.mjs} +323 -35
- package/dist/preview-PDz7o2xg.mjs.map +1 -0
- package/dist/preview-engine/audio.mjs +1 -1
- package/dist/preview-engine/chunk-4P3MMJWD.mjs +1 -0
- package/dist/preview-engine/{chunk-4JNIEQS2.mjs → chunk-77WWW75O.mjs} +1 -1
- package/dist/preview-engine/{chunk-UKZVUYB6.mjs → chunk-7M5LE6EM.mjs} +1 -1
- package/dist/preview-engine/{chunk-KBCZKIIQ.mjs → chunk-CYM75INB.mjs} +1 -1
- package/dist/preview-engine/chunk-FRJPXWAG.mjs +1 -0
- package/dist/preview-engine/{chunk-FJTURGJV.mjs → chunk-IEEV5RB3.mjs} +1 -1
- package/dist/preview-engine/chunk-LZNHGH56.mjs +5 -0
- package/dist/preview-engine/{chunk-RGKS6YIA.mjs → chunk-N2VISDTG.mjs} +1 -1
- package/dist/preview-engine/{chunk-O75BFM4S.mjs → chunk-NVXFEDJS.mjs} +1 -1
- package/dist/preview-engine/{chunk-VUO4K52B.mjs → chunk-PD2HKW2S.mjs} +1 -1
- package/dist/preview-engine/{chunk-HTAHYSCW.mjs → chunk-R4H52Q7S.mjs} +1 -1
- package/dist/preview-engine/{chunk-6O7UDVNL.mjs → chunk-RYSV44B4.mjs} +1 -1
- package/dist/preview-engine/{chunk-JAUMCOOJ.mjs → chunk-SMHEMYCV.mjs} +1 -1
- package/dist/preview-engine/{chunk-TKXOSEIJ.mjs → chunk-SV3ZNZQU.mjs} +1 -1
- package/dist/preview-engine/{chunk-32WC4FRR.mjs → chunk-UE7Y65C3.mjs} +3 -3
- package/dist/preview-engine/chunk-UFPA36D2.mjs +2227 -0
- package/dist/preview-engine/{chunk-M4QVCQ3O.mjs → chunk-VMXJZ4KQ.mjs} +1 -1
- package/dist/preview-engine/{chunk-EYKN2VET.mjs → chunk-XYCR3STG.mjs} +1 -1
- package/dist/preview-engine/components.mjs +1 -1
- package/dist/preview-engine/effects.mjs +1 -1
- package/dist/preview-engine/framefields.mjs +1 -1
- package/dist/preview-engine/player.mjs +5 -5
- package/dist/preview-engine/{renderers-L6GFGHS6.mjs → renderers-AFTUFMQQ.mjs} +1 -1
- package/dist/preview-engine/renderers-DU7KPFVV.mjs +1 -1
- package/dist/preview-engine/{renderers-PREFONJG.mjs → renderers-EPSF5CSQ.mjs} +1 -1
- package/dist/preview-engine/{renderers-R22CDFO4.mjs → renderers-OJWWIVNW.mjs} +1 -1
- package/dist/preview-engine/{renderers-TS32FDV7.mjs → renderers-RHMRWX46.mjs} +1 -1
- package/dist/preview-engine/{renderers-PSBTV2DO.mjs → renderers-TTXTV4PC.mjs} +1 -1
- package/dist/preview-engine/renderers-VEHYARKY.mjs +1 -0
- package/dist/preview-engine/renderers-VRXAG3FR.mjs +1 -0
- package/dist/preview-engine/renderers-ZHSOWEMQ.mjs +1 -0
- package/dist/preview-engine/renderers-ZMDRNYSS.mjs +1 -0
- package/dist/preview-engine/signals.mjs +1 -1
- package/dist/preview-engine/{src-GPF7RIBU.mjs → src-YXNX4MLK.mjs} +1 -1
- package/dist/{program-Cvv_nb9T.mjs → program-Bn6ko_I4.mjs} +4 -4
- package/dist/{program-Cvv_nb9T.mjs.map → program-Bn6ko_I4.mjs.map} +1 -1
- package/dist/renderer/index.d.mts +4 -3
- package/dist/renderer/index.mjs +3 -3
- package/dist/{renderer-CZClDMgF.mjs → renderer--Q0pM9Vh.mjs} +5 -5
- package/dist/{renderer-CZClDMgF.mjs.map → renderer--Q0pM9Vh.mjs.map} +1 -1
- package/dist/renderer-1aSF5BmY.mjs +5 -0
- package/dist/{renderer-tRi3KNoG.mjs → renderer-45ifiDkn.mjs} +5 -5
- package/dist/{renderer-tRi3KNoG.mjs.map → renderer-45ifiDkn.mjs.map} +1 -1
- package/dist/{renderer-BTd6tFcS.mjs → renderer-549d94qG.mjs} +5 -5
- package/dist/{renderer-BTd6tFcS.mjs.map → renderer-549d94qG.mjs.map} +1 -1
- package/dist/{renderer-CMCmljb0.mjs → renderer-B-LUGB9h.mjs} +3 -3
- package/dist/{renderer-CMCmljb0.mjs.map → renderer-B-LUGB9h.mjs.map} +1 -1
- package/dist/renderer-B2e4Gr9u.mjs +5 -0
- package/dist/{renderer-sMFJtt_H.mjs → renderer-B5b-ehRb.mjs} +3 -3
- package/dist/{renderer-sMFJtt_H.mjs.map → renderer-B5b-ehRb.mjs.map} +1 -1
- package/dist/renderer-B6fz4j50.mjs +5 -0
- package/dist/{renderer-BJEexai1.mjs → renderer-BCTUqJG7.mjs} +5 -5
- package/dist/{renderer-BJEexai1.mjs.map → renderer-BCTUqJG7.mjs.map} +1 -1
- package/dist/renderer-BEftIYw-.mjs +5 -0
- package/dist/{renderer-smP1F57W.mjs → renderer-BHPgkoEL.mjs} +4 -4
- package/dist/{renderer-smP1F57W.mjs.map → renderer-BHPgkoEL.mjs.map} +1 -1
- package/dist/renderer-BHTnO-7e.mjs +5 -0
- package/dist/{renderer-LrAldCWN.mjs → renderer-BIieU9pY.mjs} +5 -5
- package/dist/{renderer-LrAldCWN.mjs.map → renderer-BIieU9pY.mjs.map} +1 -1
- package/dist/{renderer-snjhPaP-.mjs → renderer-BKi6jDi_.mjs} +4 -4
- package/dist/{renderer-snjhPaP-.mjs.map → renderer-BKi6jDi_.mjs.map} +1 -1
- package/dist/renderer-BMlnQqTO.mjs +5 -0
- package/dist/{renderer-C2kFIZ4r.mjs → renderer-BMpmmYOq.mjs} +4 -4
- package/dist/{renderer-C2kFIZ4r.mjs.map → renderer-BMpmmYOq.mjs.map} +1 -1
- package/dist/{renderer-_KIBvES8.mjs → renderer-BO_wuUKA.mjs} +5 -5
- package/dist/{renderer-_KIBvES8.mjs.map → renderer-BO_wuUKA.mjs.map} +1 -1
- package/dist/renderer-BOzcFezY.mjs +5 -0
- package/dist/{renderer-DLaUT6JZ.mjs → renderer-BPOh9x5X.mjs} +4 -4
- package/dist/{renderer-DLaUT6JZ.mjs.map → renderer-BPOh9x5X.mjs.map} +1 -1
- package/dist/{renderer-CNpq7rL-.mjs → renderer-BPiWsrC2.mjs} +3 -3
- package/dist/{renderer-CNpq7rL-.mjs.map → renderer-BPiWsrC2.mjs.map} +1 -1
- package/dist/{renderer-t1sXDiqm.mjs → renderer-BUj7jE6t.mjs} +3 -3
- package/dist/{renderer-t1sXDiqm.mjs.map → renderer-BUj7jE6t.mjs.map} +1 -1
- package/dist/renderer-BVbjJIKJ.mjs +5 -0
- package/dist/renderer-BXsHKf4k.mjs +5 -0
- package/dist/{renderer-rKw5_EjG.mjs → renderer-BZgJj8Cl.mjs} +4 -4
- package/dist/{renderer-rKw5_EjG.mjs.map → renderer-BZgJj8Cl.mjs.map} +1 -1
- package/dist/{renderer-5fGj_tqN.mjs → renderer-BgjPbgbn.mjs} +6 -6
- package/dist/{renderer-5fGj_tqN.mjs.map → renderer-BgjPbgbn.mjs.map} +1 -1
- package/dist/{renderer-D3QPNBEj.mjs → renderer-BjgFpwVK.mjs} +5 -5
- package/dist/{renderer-D3QPNBEj.mjs.map → renderer-BjgFpwVK.mjs.map} +1 -1
- package/dist/renderer-Bks49NVl.mjs +5 -0
- package/dist/{renderer-HhJPFidU.mjs → renderer-BlZgyBSo.mjs} +5 -5
- package/dist/{renderer-HhJPFidU.mjs.map → renderer-BlZgyBSo.mjs.map} +1 -1
- package/dist/{renderer-DO_zXwMJ.mjs → renderer-BqUAyzCZ.mjs} +5 -5
- package/dist/{renderer-DO_zXwMJ.mjs.map → renderer-BqUAyzCZ.mjs.map} +1 -1
- package/dist/{renderer-O4y02xkD.mjs → renderer-Br8km655.mjs} +4 -4
- package/dist/{renderer-O4y02xkD.mjs.map → renderer-Br8km655.mjs.map} +1 -1
- package/dist/{renderer-DEoerd-j.mjs → renderer-BsMZ5Iaq.mjs} +4 -4
- package/dist/{renderer-DEoerd-j.mjs.map → renderer-BsMZ5Iaq.mjs.map} +1 -1
- package/dist/{renderer-BBjkX0Vt.mjs → renderer-BtgqTg2K.mjs} +3 -3
- package/dist/{renderer-BOg8i8eF.mjs → renderer-BuvKGwk3.mjs} +1 -1
- package/dist/{renderer-BOg8i8eF.mjs.map → renderer-BuvKGwk3.mjs.map} +1 -1
- package/dist/{renderer-DsPLMzy1.mjs → renderer-C-3qhk5x.mjs} +2 -2
- package/dist/{renderer-DsPLMzy1.mjs.map → renderer-C-3qhk5x.mjs.map} +1 -1
- package/dist/{renderer-BwV-o_1b.mjs → renderer-C-GTxnfv.mjs} +4 -4
- package/dist/{renderer-BwV-o_1b.mjs.map → renderer-C-GTxnfv.mjs.map} +1 -1
- package/dist/renderer-C-t7qFKr.mjs +5 -0
- package/dist/{renderer-Bxiiar50.mjs → renderer-C1ctHdXl.mjs} +4 -4
- package/dist/{renderer-Bxiiar50.mjs.map → renderer-C1ctHdXl.mjs.map} +1 -1
- package/dist/renderer-C24n-6CX.mjs +6 -0
- package/dist/{renderer-xNOKSN3V.mjs → renderer-C7m7Yxgc.mjs} +5 -5
- package/dist/{renderer-xNOKSN3V.mjs.map → renderer-C7m7Yxgc.mjs.map} +1 -1
- package/dist/{renderer-4uZGSmUD.mjs → renderer-C9dqx3U7.mjs} +5 -5
- package/dist/{renderer-4uZGSmUD.mjs.map → renderer-C9dqx3U7.mjs.map} +1 -1
- package/dist/renderer-CCReX-7M.mjs +5 -0
- package/dist/{renderer-CtpEzVBn.mjs → renderer-CE4535aW.mjs} +3 -3
- package/dist/{renderer-CtpEzVBn.mjs.map → renderer-CE4535aW.mjs.map} +1 -1
- package/dist/renderer-CIxFQrAm.mjs +5 -0
- package/dist/{renderer-6g1ri445.mjs → renderer-CL-vyXgX.mjs} +5 -5
- package/dist/{renderer-6g1ri445.mjs.map → renderer-CL-vyXgX.mjs.map} +1 -1
- package/dist/renderer-CLHBMIqJ.mjs +5 -0
- package/dist/renderer-CMJKi-Ye.mjs +5 -0
- package/dist/{renderer-Bf7Z7WT5.mjs → renderer-CMnlgAGs.mjs} +4 -4
- package/dist/{renderer-Bf7Z7WT5.mjs.map → renderer-CMnlgAGs.mjs.map} +1 -1
- package/dist/{renderer-uA0UCxjA.mjs → renderer-CQFMyC_c.mjs} +4 -4
- package/dist/{renderer-uA0UCxjA.mjs.map → renderer-CQFMyC_c.mjs.map} +1 -1
- package/dist/{renderer-DKFaVaRJ.mjs → renderer-CYwVNbUh.mjs} +4 -4
- package/dist/{renderer-DKFaVaRJ.mjs.map → renderer-CYwVNbUh.mjs.map} +1 -1
- package/dist/{renderer-DZIxduEt.mjs → renderer-CZ5mwBW1.mjs} +3 -3
- package/dist/{renderer-DZIxduEt.mjs.map → renderer-CZ5mwBW1.mjs.map} +1 -1
- package/dist/{renderer-BSsKlcHk.mjs → renderer-C_1eqfI0.mjs} +5 -5
- package/dist/{renderer-BSsKlcHk.mjs.map → renderer-C_1eqfI0.mjs.map} +1 -1
- package/dist/renderer-C_H3mHZa.mjs +5 -0
- package/dist/{renderer-CGpi8CDT.mjs → renderer-CciiDHuU.mjs} +4 -4
- package/dist/{renderer-CGpi8CDT.mjs.map → renderer-CciiDHuU.mjs.map} +1 -1
- package/dist/renderer-CfkTdR5B.mjs +5 -0
- package/dist/{renderer-DGXqspB9.mjs → renderer-CgK7Q1G8.mjs} +3 -3
- package/dist/{renderer-B09I95bo.mjs → renderer-CnL8Cmmr.mjs} +3 -3
- package/dist/renderer-CnhkXJ0R.mjs +5 -0
- package/dist/{renderer-BwJ0nXXu.mjs → renderer-Cp_HOmp7.mjs} +5 -5
- package/dist/{renderer-BwJ0nXXu.mjs.map → renderer-Cp_HOmp7.mjs.map} +1 -1
- package/dist/renderer-CqpyVsq_.mjs +5 -0
- package/dist/renderer-CtWgIpTE.mjs +5 -0
- package/dist/{renderer-C3CGYjrC.mjs → renderer-Cu3iKMSJ.mjs} +5 -5
- package/dist/{renderer-C3CGYjrC.mjs.map → renderer-Cu3iKMSJ.mjs.map} +1 -1
- package/dist/{renderer-BzTj_CeK.mjs → renderer-CuPAQjDK.mjs} +4 -4
- package/dist/{renderer-BzTj_CeK.mjs.map → renderer-CuPAQjDK.mjs.map} +1 -1
- package/dist/{renderer-FvvywNvv.mjs → renderer-CwlY8Tb-.mjs} +3 -3
- package/dist/{renderer-FvvywNvv.mjs.map → renderer-CwlY8Tb-.mjs.map} +1 -1
- package/dist/{renderer-ByFPmHBC.mjs → renderer-CxSFvKd1.mjs} +4 -4
- package/dist/{renderer-ByFPmHBC.mjs.map → renderer-CxSFvKd1.mjs.map} +1 -1
- package/dist/{renderer-DL3o_lG1.mjs → renderer-CyUiXLRa.mjs} +5 -5
- package/dist/{renderer-DL3o_lG1.mjs.map → renderer-CyUiXLRa.mjs.map} +1 -1
- package/dist/renderer-CyuKr5ca.mjs +5 -0
- package/dist/renderer-CzgcZXKH.mjs +3 -0
- package/dist/{renderer-DCMoBppL.mjs → renderer-D-GWBoVT.mjs} +3 -3
- package/dist/{renderer-DCMoBppL.mjs.map → renderer-D-GWBoVT.mjs.map} +1 -1
- package/dist/{renderer-IAffbHXx.mjs → renderer-D-fzEZfX.mjs} +4 -4
- package/dist/{renderer-IAffbHXx.mjs.map → renderer-D-fzEZfX.mjs.map} +1 -1
- package/dist/renderer-D5yp74NL.mjs +3 -0
- package/dist/{renderer-BC_Nse6h.mjs → renderer-D8gN7aqk.mjs} +4 -4
- package/dist/{renderer-BC_Nse6h.mjs.map → renderer-D8gN7aqk.mjs.map} +1 -1
- package/dist/renderer-D9ON_1Hf.mjs +5 -0
- package/dist/renderer-DAnTgh4o.mjs +5 -0
- package/dist/{renderer-Dak_wVh9.mjs → renderer-DGOMfyh8.mjs} +2 -2
- package/dist/{renderer-Dak_wVh9.mjs.map → renderer-DGOMfyh8.mjs.map} +1 -1
- package/dist/{renderer-CInMMs5x.mjs → renderer-DGb_wgTW.mjs} +6 -6
- package/dist/{renderer-CInMMs5x.mjs.map → renderer-DGb_wgTW.mjs.map} +1 -1
- package/dist/{renderer-DO1SZ5xY.mjs → renderer-DJPZs_zV.mjs} +5 -5
- package/dist/{renderer-DO1SZ5xY.mjs.map → renderer-DJPZs_zV.mjs.map} +1 -1
- package/dist/renderer-DKJOon6y.d.mts +1 -0
- package/dist/{renderer-DQJHjU0L.mjs → renderer-DOZPZTxe.mjs} +5 -5
- package/dist/{renderer-DQJHjU0L.mjs.map → renderer-DOZPZTxe.mjs.map} +1 -1
- package/dist/{renderer-DaY04IyU.mjs → renderer-DRal7Goa.mjs} +5 -5
- package/dist/{renderer-DaY04IyU.mjs.map → renderer-DRal7Goa.mjs.map} +1 -1
- package/dist/renderer-DWgpivA3.mjs +5 -0
- package/dist/{renderer-qVJdxbXB.mjs → renderer-DXFJv_e6.mjs} +4 -4
- package/dist/{renderer-qVJdxbXB.mjs.map → renderer-DXFJv_e6.mjs.map} +1 -1
- package/dist/renderer-Dh_qNNwR.mjs +5 -0
- package/dist/renderer-DkCpXPMP.mjs +5 -0
- package/dist/{renderer-PnnkUWm-.mjs → renderer-Dp5ChuOs.mjs} +4 -4
- package/dist/{renderer-PnnkUWm-.mjs.map → renderer-Dp5ChuOs.mjs.map} +1 -1
- package/dist/{renderer-C_gR2H3R.mjs → renderer-DpZballM.mjs} +3 -3
- package/dist/{renderer-C_gR2H3R.mjs.map → renderer-DpZballM.mjs.map} +1 -1
- package/dist/renderer-Dre-6cDR.mjs +5 -0
- package/dist/renderer-Ds5z4_HX.mjs +5 -0
- package/dist/{renderer-b0H3oDae.mjs → renderer-DwGlDNOV.mjs} +3 -3
- package/dist/{renderer-b0H3oDae.mjs.map → renderer-DwGlDNOV.mjs.map} +1 -1
- package/dist/{renderer-oBgCEqaM.mjs → renderer-DxB_OfLs.mjs} +4 -4
- package/dist/{renderer-oBgCEqaM.mjs.map → renderer-DxB_OfLs.mjs.map} +1 -1
- package/dist/{renderer-BvRM3OZ6.mjs → renderer-Dz6P-rPI.mjs} +3 -3
- package/dist/{renderer-BvRM3OZ6.mjs.map → renderer-Dz6P-rPI.mjs.map} +1 -1
- package/dist/{renderer-DrL3J9ci.mjs → renderer-FPiLBwj5.mjs} +4 -4
- package/dist/{renderer-DrL3J9ci.mjs.map → renderer-FPiLBwj5.mjs.map} +1 -1
- package/dist/renderer-HGSCOMyP.mjs +5 -0
- package/dist/renderer-KMY8W-cJ.mjs +5 -0
- package/dist/{renderer-BXGuCnCJ.mjs → renderer-KgsVk9c6.mjs} +4 -4
- package/dist/{renderer-BXGuCnCJ.mjs.map → renderer-KgsVk9c6.mjs.map} +1 -1
- package/dist/{renderer-CLTRTtQ8.mjs → renderer-LXhEPCmy.mjs} +5 -5
- package/dist/{renderer-CLTRTtQ8.mjs.map → renderer-LXhEPCmy.mjs.map} +1 -1
- package/dist/{renderer-CN-mCIoI.mjs → renderer-NBMmvqWl.mjs} +5 -5
- package/dist/{renderer-CN-mCIoI.mjs.map → renderer-NBMmvqWl.mjs.map} +1 -1
- package/dist/{renderer-HXw4cJZx.mjs → renderer-Nnu32rqg.mjs} +3 -3
- package/dist/{renderer-HXw4cJZx.mjs.map → renderer-Nnu32rqg.mjs.map} +1 -1
- package/dist/renderer-R21YvXz3.mjs +5 -0
- package/dist/{renderer-Dj54y3h3.mjs → renderer-RAq3LnNy.mjs} +3 -3
- package/dist/{renderer-Dj54y3h3.mjs.map → renderer-RAq3LnNy.mjs.map} +1 -1
- package/dist/renderer-RtzCz37W.mjs +5 -0
- package/dist/{renderer-CiHVnhUk.mjs → renderer-RzkU_O1i.mjs} +5 -5
- package/dist/{renderer-CiHVnhUk.mjs.map → renderer-RzkU_O1i.mjs.map} +1 -1
- package/dist/{renderer-D3YbHjRG.mjs → renderer-S9tVGneU.mjs} +95 -80
- package/dist/renderer-S9tVGneU.mjs.map +1 -0
- package/dist/{renderer-DP9ScNM6.mjs → renderer-SJyp9-62.mjs} +3 -3
- package/dist/{renderer-DP9ScNM6.mjs.map → renderer-SJyp9-62.mjs.map} +1 -1
- package/dist/{renderer-TiaHrU5z.mjs → renderer-_54hiCq0.mjs} +5 -5
- package/dist/{renderer-TiaHrU5z.mjs.map → renderer-_54hiCq0.mjs.map} +1 -1
- package/dist/{renderer-CcmxR6Fy.d.mts → renderer-aRk849b3.d.mts} +2 -2
- package/dist/{renderer-CcmxR6Fy.d.mts.map → renderer-aRk849b3.d.mts.map} +1 -1
- package/dist/{renderer-Dy1xQOTu.mjs → renderer-dGEMVaZ3.mjs} +4 -4
- package/dist/{renderer-Dy1xQOTu.mjs.map → renderer-dGEMVaZ3.mjs.map} +1 -1
- package/dist/{renderer-Dp9FQKVP.mjs → renderer-dRXP2dJU.mjs} +5 -5
- package/dist/{renderer-Dp9FQKVP.mjs.map → renderer-dRXP2dJU.mjs.map} +1 -1
- package/dist/{renderer-DwH5e3hx.mjs → renderer-g9SstkTz.mjs} +3 -3
- package/dist/renderer-iMrqAjix.mjs +5 -0
- package/dist/{renderer-DX60Kr20.mjs → renderer-opVuiAQR.mjs} +3 -3
- package/dist/{renderer-DX60Kr20.mjs.map → renderer-opVuiAQR.mjs.map} +1 -1
- package/dist/{renderer-DrK6pyfz.mjs → renderer-puQhVfDS.mjs} +5 -5
- package/dist/{renderer-DrK6pyfz.mjs.map → renderer-puQhVfDS.mjs.map} +1 -1
- package/dist/renderer-sMed1u1O.mjs +5 -0
- package/dist/renderer-tsAuo46l.mjs +5 -0
- package/dist/{renderer-DaLy1dFA.mjs → renderer-vll8LX0I.mjs} +9 -9
- package/dist/{renderer-DaLy1dFA.mjs.map → renderer-vll8LX0I.mjs.map} +1 -1
- package/dist/{renderers-CP8CFWDs-DWRjjeUg.mjs → renderers-CP8CFWDs-BRQyvcut.mjs} +4 -4
- package/dist/{renderers-CP8CFWDs-DWRjjeUg.mjs.map → renderers-CP8CFWDs-BRQyvcut.mjs.map} +1 -1
- package/dist/sam/index.d.mts +3 -3
- package/dist/sam/index.mjs +1 -1
- package/dist/signals/index.d.mts +7 -7
- package/dist/signals/index.mjs +8 -8
- package/dist/{signals-BfJ1aqpT.mjs → signals-tiho_9fp.mjs} +4 -4
- package/dist/{signals-BfJ1aqpT.mjs.map → signals-tiho_9fp.mjs.map} +1 -1
- package/dist/{src-BU6vm9sP-DFJ3phW0.mjs → src-BU6vm9sP-DdTHmCr4.mjs} +3 -3
- package/dist/{src-BU6vm9sP-DFJ3phW0.mjs.map → src-BU6vm9sP-DdTHmCr4.mjs.map} +1 -1
- package/dist/{src-D7M8VTzv.mjs → src-BzFGotRc.mjs} +11 -11
- package/dist/{src-D7M8VTzv.mjs.map → src-BzFGotRc.mjs.map} +1 -1
- package/dist/storage/index.d.mts +206 -0
- package/dist/storage/index.d.mts.map +1 -0
- package/dist/storage/index.mjs +3 -0
- package/package.json +67 -59
- package/dist/audio-afTBdB3U.d.mts.map +0 -1
- package/dist/cloud-COid1Ipa.mjs.map +0 -1
- package/dist/dist-B-OPY7Cs.mjs.map +0 -1
- package/dist/dist-BSqeChht.mjs.map +0 -1
- package/dist/index-BNClElng.d.mts.map +0 -1
- package/dist/index-CTv9ZieD.d.mts.map +0 -1
- package/dist/index-CdCrae-I.d.mts.map +0 -1
- package/dist/index-Fliv2Z-w.d.mts.map +0 -1
- package/dist/index-gOVtTm-P.d.mts.map +0 -1
- package/dist/preview-BUtt481A.mjs.map +0 -1
- package/dist/preview-engine/chunk-5SLBE2FX.mjs +0 -1
- package/dist/preview-engine/chunk-74J4DJQA.mjs +0 -1
- package/dist/preview-engine/chunk-KIPXBOYG.mjs +0 -1974
- package/dist/preview-engine/chunk-P4Y3PMJF.mjs +0 -1
- package/dist/preview-engine/chunk-SE2C623Z.mjs +0 -5
- package/dist/preview-engine/renderers-TEKHQHCL.mjs +0 -1
- package/dist/preview-engine/renderers-U3RLYFCN.mjs +0 -1
- package/dist/preview-engine/renderers-V5HM6PZ2.mjs +0 -1
- package/dist/preview-engine/renderers-ZGX3A3QZ.mjs +0 -1
- package/dist/renderer--RJepuOy.mjs +0 -5
- package/dist/renderer-B1U6YRRV.d.mts +0 -117
- package/dist/renderer-B1U6YRRV.d.mts.map +0 -1
- package/dist/renderer-B4NFnaty.mjs +0 -5
- package/dist/renderer-B6g4ts0e.mjs +0 -5
- package/dist/renderer-BGoAr-tl.mjs +0 -5
- package/dist/renderer-BSOdBgdE.mjs +0 -5
- package/dist/renderer-BU6O0fpM.mjs +0 -5
- package/dist/renderer-BZ97iidG.mjs +0 -5
- package/dist/renderer-B_Klh1VT.mjs +0 -5
- package/dist/renderer-BaWQM1y-.mjs +0 -5
- package/dist/renderer-Bc0jvAj0.mjs +0 -5
- package/dist/renderer-Bd-NuU3M.mjs +0 -3
- package/dist/renderer-Bm077kZ6.mjs +0 -5
- package/dist/renderer-BtzE_e_Y.mjs +0 -5
- package/dist/renderer-C225eCAo.mjs +0 -5
- package/dist/renderer-CC4fhNup.mjs +0 -3
- package/dist/renderer-CLXdR4vz.mjs +0 -5
- package/dist/renderer-CszM8B3C.mjs +0 -5
- package/dist/renderer-Ctp8ZYfk.mjs +0 -5
- package/dist/renderer-CxQdSp8I.mjs +0 -5
- package/dist/renderer-D3YbHjRG.mjs.map +0 -1
- package/dist/renderer-D4GMRtDd.mjs +0 -6
- package/dist/renderer-DEsGIvTZ.mjs +0 -5
- package/dist/renderer-DIaUQ0EP.mjs +0 -5
- package/dist/renderer-DLjqcNzQ.mjs +0 -5
- package/dist/renderer-DMuQZa51.mjs +0 -5
- package/dist/renderer-DOgi2aF2.mjs +0 -5
- package/dist/renderer-DSh7cvi4.mjs +0 -5
- package/dist/renderer-DV1LVBBP.mjs +0 -5
- package/dist/renderer-Dhrj2bJz.mjs +0 -5
- package/dist/renderer-DoFUu1R4.mjs +0 -5
- package/dist/renderer-DsydX3cx.mjs +0 -5
- package/dist/renderer-DxVSoeYi.mjs +0 -5
- package/dist/renderer-Nc9bHb0n.mjs +0 -5
- package/dist/renderer-TFaSD2Db.mjs +0 -5
- package/dist/renderer-Z61ctppe.mjs +0 -5
- package/dist/renderer-awXf3sNS.mjs +0 -5
- package/dist/renderer-cHT28oYI.mjs +0 -5
- package/dist/renderer-g7Y3bFot.mjs +0 -5
- package/dist/renderer-qVv0OzVc.mjs +0 -5
- /package/dist/{chunk-W71TSjRM.mjs → chunk-DOL2i2sR.mjs} +0 -0
- /package/dist/{renderer-B6rZUBwE.mjs → renderer-Co2YqWX0.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as aa,s as Co,t as sa,x as aA}from"./chunk-UKZVUYB6.mjs";import{c as Zi}from"./chunk-CJ4CSVU3.mjs";import{a as Ki,c as zi,i as Yi,j as Wi}from"./chunk-HOV6DDBZ.mjs";import{h as qi,l as Xi}from"./chunk-RECQ74RP.mjs";import{e as ra}from"./chunk-GXFYRMJZ.mjs";import{h as Ji}from"./chunk-ULOFDFHJ.mjs";import{A as ia,j as fr,w as na,x as oa,y as We,z as Aa}from"./chunk-64L4GUOF.mjs";import{r as Re,s as ta,t as Pt}from"./chunk-QEWDIPJ7.mjs";import{a as qr}from"./chunk-354GX6IB.mjs";import{c as $i,e as ea}from"./chunk-5RRKGN2U.mjs";import{o as $e}from"./chunk-BDZ3TSOT.mjs";import{b as qn,d as iA,e as Vi,f as me,g as $}from"./chunk-Y4NIR77Z.mjs";var ma=qn(($u,ha)=>{$();var wo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":wo(),apply:()=>wo(),construct:()=>wo()});ha.exports=wo()});var wa=qn((pA,So)=>{$();var L=L||{};L.scope={};L.ASSUME_ES2020=!1;L.ASSUME_ES6=L.ASSUME_ES2020;L.ASSUME_ES5=L.ASSUME_ES6;L.ASSUME_NO_NATIVE_MAP=!1;L.ASSUME_NO_NATIVE_SET=!1;L.ISOLATE_POLYFILLS=!1;L.FORCE_POLYFILL_PROMISE=!1;L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;L.INSTRUMENT_ASYNC_CONTEXT=!0;L.objectCreate=L.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};L.defineProperty=L.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};L.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};L.global=L.ASSUME_ES2020?globalThis:L.getGlobal(pA);L.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";L.TRUST_ES6_POLYFILLS=!L.ISOLATE_POLYFILLS||L.IS_SYMBOL_NATIVE;L.polyfills={};L.propertyToPolyfillSymbol={};L.POLYFILL_PREFIX="$jscp$";L.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return L.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();L.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<L.TYPED_ARRAY_CLASSES.length;o++){var A=L.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;L.ISOLATE_POLYFILLS?L.polyfillIsolated(A,t,r,n):L.polyfillUnisolated(A,t,r,n)}};L.polyfill=function(e,t,r,n){t&&(L.ISOLATE_POLYFILLS?L.polyfillIsolated(e,t,r,n):L.polyfillUnisolated(e,t,r,n))};L.polyfillUnisolated=function(e,t,r,n){for(r=L.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&L.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};L.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in L.polyfills?L.polyfills:L.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=L.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?L.defineProperty(L.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(L.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,L.propertyToPolyfillSymbol[o]=L.IS_SYMBOL_NATIVE?L.global.Symbol(o):L.POLYFILL_PREFIX+r+"$"+o),L.defineProperty(n,L.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};L.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(L.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=L.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};L.construct={valueOf:L.getConstructImplementation}.valueOf();L.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};L.setPrototypeOf=L.ASSUME_ES6||L.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:L.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;L.inherits=function(e,t){if(e.prototype=L.objectCreate(t.prototype),e.prototype.constructor=e,L.ASSUME_ES6||L.setPrototypeOf){var r=L.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};L.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};L.arrayIterator=function(e){return{next:L.arrayIteratorImpl(e)}};L.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return L.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};L.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};L.arrayFromIterable=function(e){return e instanceof Array?e:L.arrayFromIterator(L.makeIterator(e))};L.createTemplateTagFirstArg=function(e){return L.createTemplateTagFirstArgWithRaw(e,e)};L.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};L.generator={};L.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};L.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};L.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};L.generator.Context.prototype.stop_=function(){this.isRunning_=!1};L.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};L.generator.Context.prototype.next_=function(e){this.yieldResult=e};L.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.return=L.generator.Context.prototype.return;L.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.jumpThroughFinallyBlocks=L.generator.Context.prototype.jumpThroughFinallyBlocks;L.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};L.generator.Context.prototype.yield=L.generator.Context.prototype.yield;L.generator.Context.prototype.yieldAll=function(e,t){e=L.makeIterator(e);var r=e.next();if(L.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};L.generator.Context.prototype.yieldAll=L.generator.Context.prototype.yieldAll;L.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};L.generator.Context.prototype.jumpTo=L.generator.Context.prototype.jumpTo;L.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};L.generator.Context.prototype.jumpToEnd=L.generator.Context.prototype.jumpToEnd;L.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};L.generator.Context.prototype.setCatchFinallyBlocks=L.generator.Context.prototype.setCatchFinallyBlocks;L.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};L.generator.Context.prototype.setFinallyBlock=L.generator.Context.prototype.setFinallyBlock;L.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};L.generator.Context.prototype.leaveTryBlock=L.generator.Context.prototype.leaveTryBlock;L.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};L.generator.Context.prototype.enterCatchBlock=L.generator.Context.prototype.enterCatchBlock;L.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};L.generator.Context.prototype.enterFinallyBlock=L.generator.Context.prototype.enterFinallyBlock;L.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};L.generator.Context.prototype.leaveFinallyBlock=L.generator.Context.prototype.leaveFinallyBlock;L.generator.Context.prototype.forIn=function(e){return new L.generator.Context.PropertyIterator(e)};L.generator.Context.prototype.forIn=L.generator.Context.prototype.forIn;L.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};L.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};L.generator.Context.PropertyIterator.prototype.getNext=L.generator.Context.PropertyIterator.prototype.getNext;L.generator.Engine_=function(e){this.context_=new L.generator.Context,this.program_=e};L.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};L.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};L.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};L.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(L.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};L.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};L.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};L.generator.createGenerator=function(e,t){return t=new L.generator.Generator_(new L.generator.Engine_(t)),L.setPrototypeOf&&e.prototype&&L.setPrototypeOf(t,e.prototype),t};L.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};L.asyncExecutePromiseGeneratorFunction=function(e){return L.asyncExecutePromiseGenerator(e())};L.asyncExecutePromiseGeneratorProgram=function(e){return L.asyncExecutePromiseGenerator(new L.generator.Generator_(new L.generator.Engine_(e)))};L.polyfill("globalThis",function(e){return e||L.global},"es_2020","es3");L.polyfill("Reflect",function(e){return e||{}},"es6","es3");L.polyfill("Reflect.construct",function(e){return L.construct},"es6","es3");L.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(L.setPrototypeOf){var t=L.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");L.initSymbol=function(){};L.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,L.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");L.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),L.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return L.iteratorPrototype(L.arrayIteratorImpl(this))}}),e)},"es6","es3");L.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};L.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(L.FORCE_POLYFILL_PROMISE||L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof L.global.PromiseRejectionEvent>"u")||!L.global.Promise||L.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=L.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=L.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=L.global.CustomEvent,a=L.global.Event,s=L.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=L.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=L.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=L.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");L.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};L.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=L.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");L.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=L.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var gA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(ee){ee&&typeof ee=="object"&&(ee=ee.ptr),this.ptr=Dn(ee),j(o)[this.ptr]=this}function A(){this.ptr=mn(),j(A)[this.ptr]=this}function i(){this.ptr=Fe(),j(i)[this.ptr]=this}function a(){this.ptr=C(),j(a)[this.ptr]=this}function s(){this.ptr=Lr(),j(s)[this.ptr]=this}function c(){this.ptr=Nr(),j(c)[this.ptr]=this}function l(){this.ptr=kr(),j(l)[this.ptr]=this}function u(){this.ptr=Gr(),j(u)[this.ptr]=this}function g(){this.ptr=Mr(),j(g)[this.ptr]=this}function p(){this.ptr=ir(),j(p)[this.ptr]=this}function f(){this.ptr=ct(),j(f)[this.ptr]=this}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function h(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Ar),D=E/4,P=0;P<ee.length;P++)Ar[D+P]=ee[P];return E}return ee}function I(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Nt),D=E/4,P=0;P<ee.length;P++)Nt[D+P]=ee[P];return E}return ee}function b(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,or),D=E/2,P=0;P<ee.length;P++)or[D+P]=ee[P];return E}return ee}function Q(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function m(ee){if(typeof ee=="string"){ee=ht(ee);for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function w(ee){return ee.__class__}function v(ee){return ee.ptr}function S(ee,E){return ee.ptr===E.ptr}function N(ee){if(!ee.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ee.__destroy__(),delete j(ee.__class__)[ee.ptr]}function _(ee,E){return G(ee.ptr,E)}function G(ee,E){var D=j(E),P=D[ee];return P||(P=Object.create((E||R).prototype),P.ptr=ee,D[ee]=P)}function j(ee){return(ee||R).__cache__}function R(){}function K(){var ee,E,D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return oe(),ee=F.setStatus,ee?(ee("Running..."),P.yield(new Promise(function(Y){return setTimeout(Y,1)}),3)):P.jumpTo(2);if(P.getNextAddressJsc()!=2&&setTimeout(ee,1,""),Ue)return P.return();je=!0,nt(_t),Hr.e(),(D=(E=F).onRuntimeInitialized)==null||D.call(E),re(),P.jumpToEnd()})}function z(){function ee(U){return U=Hr=U.exports,F._webidl_free=U.f,F._free=U.g,F._webidl_malloc=U.h,F._malloc=U.i,wr=F._emscripten_bind_VoidPtr___destroy___0=U.j,ct=F._emscripten_bind_GeometryAttribute_GeometryAttribute_0=U.k,Wt=F._emscripten_bind_GeometryAttribute___destroy___0=U.l,ir=F._emscripten_bind_PointAttribute_PointAttribute_0=U.m,it=F._emscripten_bind_PointAttribute_size_0=U.n,wt=F._emscripten_bind_PointAttribute_attribute_type_0=U.o,Tt=F._emscripten_bind_PointAttribute_data_type_0=U.p,qt=F._emscripten_bind_PointAttribute_num_components_0=U.q,Xt=F._emscripten_bind_PointAttribute_normalized_0=U.r,Zt=F._emscripten_bind_PointAttribute_byte_stride_0=U.s,$t=F._emscripten_bind_PointAttribute_byte_offset_0=U.t,vr=F._emscripten_bind_PointAttribute_unique_id_0=U.u,Dr=F._emscripten_bind_PointAttribute___destroy___0=U.v,Mr=F._emscripten_bind_PointCloud_PointCloud_0=U.w,_r=F._emscripten_bind_PointCloud_num_attributes_0=U.x,Sr=F._emscripten_bind_PointCloud_num_points_0=U.y,Pr=F._emscripten_bind_PointCloud___destroy___0=U.z,Gr=F._emscripten_bind_Mesh_Mesh_0=U.A,Rr=F._emscripten_bind_Mesh_num_faces_0=U.B,Fr=F._emscripten_bind_Mesh_num_attributes_0=U.C,ar=F._emscripten_bind_Mesh_num_points_0=U.D,Lt=F._emscripten_bind_Mesh_set_num_points_1=U.E,Ur=F._emscripten_bind_Mesh___destroy___0=U.F,kr=F._emscripten_bind_Metadata_Metadata_0=U.G,sr=F._emscripten_bind_Metadata___destroy___0=U.H,Nr=F._emscripten_bind_DracoInt8Array_DracoInt8Array_0=U.I,cr=F._emscripten_bind_DracoInt8Array_GetValue_1=U.J,Ot=F._emscripten_bind_DracoInt8Array_size_0=U.K,Tr=F._emscripten_bind_DracoInt8Array___destroy___0=U.L,Lr=F._emscripten_bind_MetadataBuilder_MetadataBuilder_0=U.M,lr=F._emscripten_bind_MetadataBuilder_AddStringEntry_3=U.N,er=F._emscripten_bind_MetadataBuilder_AddIntEntry_3=U.O,lt=F._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=U.P,Ht=F._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=U.Q,ur=F._emscripten_bind_MetadataBuilder___destroy___0=U.R,C=F._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=U.S,x=F._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=U.T,k=F._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=U.U,V=F._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=U.V,q=F._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=U.W,te=F._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=U.X,ae=F._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=U.Y,se=F._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=U.Z,pe=F._emscripten_bind_PointCloudBuilder_AddMetadata_2=U._,ue=F._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=U.$,de=F._emscripten_bind_PointCloudBuilder_SetNormalizedFlagForAttribute_3=U.aa,ve=F._emscripten_bind_PointCloudBuilder___destroy___0=U.ba,Fe=F._emscripten_bind_MeshBuilder_MeshBuilder_0=U.ca,Ke=F._emscripten_bind_MeshBuilder_AddFacesToMesh_3=U.da,Ne=F._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=U.ea,rt=F._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=U.fa,at=F._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=U.ga,St=F._emscripten_bind_MeshBuilder_AddFloatAttribute_5=U.ha,ut=F._emscripten_bind_MeshBuilder_AddInt8Attribute_5=U.ia,gr=F._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=U.ja,pr=F._emscripten_bind_MeshBuilder_AddInt16Attribute_5=U.ka,ln=F._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=U.la,un=F._emscripten_bind_MeshBuilder_AddInt32Attribute_5=U.ma,gn=F._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=U.na,pn=F._emscripten_bind_MeshBuilder_AddMetadata_2=U.oa,fn=F._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=U.pa,dn=F._emscripten_bind_MeshBuilder_SetNormalizedFlagForAttribute_3=U.qa,hn=F._emscripten_bind_MeshBuilder___destroy___0=U.ra,mn=F._emscripten_bind_Encoder_Encoder_0=U.sa,In=F._emscripten_bind_Encoder_SetEncodingMethod_1=U.ta,Bn=F._emscripten_bind_Encoder_SetAttributeQuantization_2=U.ua,bn=F._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=U.va,En=F._emscripten_bind_Encoder_SetSpeedOptions_2=U.wa,yn=F._emscripten_bind_Encoder_SetTrackEncodedProperties_1=U.xa,Cn=F._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=U.ya,Qn=F._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=U.za,xn=F._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=U.Aa,wn=F._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=U.Ba,vn=F._emscripten_bind_Encoder___destroy___0=U.Ca,Dn=F._emscripten_bind_ExpertEncoder_ExpertEncoder_1=U.Da,Mn=F._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=U.Ea,_n=F._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=U.Fa,Sn=F._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=U.Ga,Pn=F._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=U.Ha,Gn=F._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=U.Ia,Rn=F._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=U.Ja,Fn=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=U.Ka,Un=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=U.La,kn=F._emscripten_bind_ExpertEncoder___destroy___0=U.Ma,Nn=F._emscripten_enum_draco_GeometryAttribute_Type_INVALID=U.Na,Tn=F._emscripten_enum_draco_GeometryAttribute_Type_POSITION=U.Oa,Ln=F._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=U.Pa,On=F._emscripten_enum_draco_GeometryAttribute_Type_COLOR=U.Qa,Hn=F._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=U.Ra,jn=F._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=U.Sa,Vn=F._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=U.Ta,Jn=F._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=U.Ua,Kn=F._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=U.Va,zn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=U.Wa,Yn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=U.Xa,Or=U.d,ne(),Hr}var E,D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){return U.getNextAddressJsc()==1?(E={a:Wn},(D=F.instantiateWasm)?U.return(new Promise(function(Ce){D(E,function(ot){return Ce(ee(ot))})})):(Le!=null||(Le=ie("draco_encoder.wasm")),U.yield(J(Ge,Le,E),2))):(P=U.getYieldResultJsc(),Y=ee(P.instance),U.return(Y))})}function J(ee,E,D){var P,Y,U;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Ce){switch(Ce.getNextAddressJsc()){case 1:if(ee||Me(E)||ye){Ce.jumpTo(2);break}return Ce.setCatchFinallyBlocks(3),P=fetch(E,{credentials:"same-origin"}),Ce.yield(WebAssembly.instantiateStreaming(P,D),5);case 5:return Y=Ce.getYieldResultJsc(),Ce.return(Y);case 3:U=Ce.enterCatchBlock(),_e("wasm streaming compile failed: "+U),_e("falling back to ArrayBuffer instantiation");case 2:return Ce.return(W(E,D))}})}function W(ee,E){var D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){switch(U.getNextAddressJsc()){case 1:return U.setCatchFinallyBlocks(2),U.yield(X(ee),4);case 4:return D=U.getYieldResultJsc(),U.yield(WebAssembly.instantiate(D,E),5);case 5:return P=U.getYieldResultJsc(),U.return(P);case 2:Y=U.enterCatchBlock(),_e("failed to asynchronously prepare wasm: "+Y),Ae(Y),U.jumpToEnd()}})}function X(ee){var E;return(0,L.asyncExecutePromiseGeneratorProgram)(function(D){switch(D.getNextAddressJsc()){case 1:if(Ge){D.jumpTo(2);break}return D.setCatchFinallyBlocks(3),D.yield(ge(ee),5);case 5:return E=D.getYieldResultJsc(),D.return(new Uint8Array(E));case 3:D.enterCatchBlock();case 2:var P=D.return;if(ee==Le&&Ge)var Y=new Uint8Array(Ge);else if(be)Y=be(ee);else throw"both async and sync fetching of the wasm failed";return P.call(D,Y)}})}function Ae(ee){var E,D;throw(D=(E=F).onAbort)==null||D.call(E,ee),ee="Aborted("+ee+")",_e(ee),Ue=!0,new WebAssembly.RuntimeError(ee+". Build with -sASSERTIONS for more info.")}function re(){var ee=F.postRun;ee&&(typeof ee=="function"&&(ee=[ee]),qe.push.apply(qe,(0,L.arrayFromIterable)(ee))),nt(qe)}function oe(){var ee=F.preRun;ee&&(typeof ee=="function"&&(ee=[ee]),yt.push.apply(yt,(0,L.arrayFromIterable)(ee))),nt(yt)}function ne(){var ee,E;!((ee=Je)==null||(E=ee.buffer)==null)&&E.resizable||(ee=Or.buffer,F.HEAP8=Je=new Int8Array(ee),F.HEAP16=or=new Int16Array(ee),F.HEAPU8=dt=new Uint8Array(ee),F.HEAPU16=new Uint16Array(ee),F.HEAP32=Nt=new Int32Array(ee),F.HEAPU32=ze=new Uint32Array(ee),F.HEAPF32=Ar=new Float32Array(ee),F.HEAPF64=new Float64Array(ee))}function ie(ee){return F.locateFile?F.locateFile(ee,le):le+ee}function he(ee){return typeof ee!="string"?!1:(ee=ee.split("."),ee.length<2||ee.length>3?!1:ee[0]==1&&ee[1]>=0&&ee[1]<=5?!0:!(ee[0]!=0||ee[1]>10))}n=n===void 0?{}:n;var F,Be,Se,Pe,Ie,y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,xr,or,Nt,Ar,xt,wr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,vr,Dr,Mr,_r,Sr,Pr,Gr,Rr,Fr,ar,Lt,Ur,kr,sr,Nr,cr,Ot,Tr,Lr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Yn,Or,Wn,Hr,De;return(0,L.asyncExecutePromiseGeneratorProgram)(function(ee){if(ee.getNextAddressJsc()==1){if(F=n,Be=!!globalThis.window,Se=!!globalThis.WorkerGlobalScope,ye=((Pe=globalThis.process)==null||(Ie=Pe.versions)==null?void 0:Ie.node)&&((y=globalThis.process)==null?void 0:y.type)!="renderer",xe=Qe=!1,F.onRuntimeInitialized=function(){Qe=!0,xe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.onModuleParsed=function(){xe=!0,Qe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.isVersionSupported=he,typeof __filename<"u"?r=__filename:Se&&(r=self.location.href),le="",ye)we=(Pt(),Vi(ta)),le=__dirname+"/",be=function(E){return E=Me(E)?new URL(E):E,we.readFileSync(E)},ge=function(E,D){D=D===void 0?!0:D;var P;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Y){return E=Me(E)?new URL(E):E,P=we.readFileSync(E,D?void 0:"utf8"),Y.return(P)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(Be||Se){try{le=new URL(".",r).href}catch{}Se&&(be=function(E){var D=new XMLHttpRequest;return D.open("GET",E,!1),D.responseType="arraybuffer",D.send(null),new Uint8Array(D.response)}),ge=function(E){var D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return Me(E)?P.return(new Promise(function(Y,U){var Ce=new XMLHttpRequest;Ce.open("GET",E,!0),Ce.responseType="arraybuffer",Ce.onload=function(){Ce.status==200||Ce.status==0&&Ce.response?Y(Ce.response):U(Ce.status)},Ce.onerror=U,Ce.send(null)})):P.yield(fetch(E,{credentials:"same-origin"}),2);if(D=P.getYieldResultJsc(),D.ok)return P.return(D.arrayBuffer());throw Error(D.status+" : "+D.url)})}}if(console.log.bind(console),_e=console.error.bind(console),Ue=!1,Me=function(E){return E.startsWith("file://")},He=function(){},Te=function(){return He.apply(this,arguments)||this},L.inherits(Te,He),je=!1,nt=function(E){for(;E.length>0;)E.shift()(F)},qe=[],yt=[],Ve=function(E){this.excPtr=E,this.ptr=E-24},Ve.prototype.set_type=function(E){ze[this.ptr+4>>2]=E},Ve.prototype.get_type=function(){return ze[this.ptr+4>>2]},Ve.prototype.set_destructor=function(E){ze[this.ptr+8>>2]=E},Ve.prototype.get_destructor=function(){return ze[this.ptr+8>>2]},Ve.prototype.set_caught=function(E){Je[this.ptr+12]=E?1:0},Ve.prototype.get_caught=function(){return Je[this.ptr+12]!=0},Ve.prototype.set_rethrown=function(E){Je[this.ptr+13]=E?1:0},Ve.prototype.get_rethrown=function(){return Je[this.ptr+13]!=0},Ve.prototype.init=function(E,D){this.set_adjusted_ptr(0),this.set_type(E),this.set_destructor(D)},Ve.prototype.set_adjusted_ptr=function(E){ze[this.ptr+16>>2]=E},Ve.prototype.get_adjusted_ptr=function(){return ze[this.ptr+16>>2]},Ct=0,pt=function(E){Ae()},Qt=function(E,D,P){new Ve(E).init(D,P),Ct++,pt(E)},ft=function(){return Ae("")},Xe=function(){return 2147483648},It=function(E,D){return Math.ceil(E/D)*D},Ut=function(E){var D=Or.buffer.byteLength;try{return Or.grow((E-D+65535)/65536|0),ne(),1}catch{}},Yt=function(E){var D=dt.length;E>>>=0;var P=Xe();if(E>P)return!1;for(var Y=1;Y<=4;Y*=2){var U=D*(1+.2/Y);if(U=Math.min(U,E+100663296),U=Math.min(P,It(Math.max(E,U),65536)),Ut(U))return!0}return!1},st=function(E){for(var D=0,P=0;P<E.length;++P){var Y=E.charCodeAt(P);Y<=127?D++:Y<=2047?D+=2:Y>=55296&&Y<=57343?(D+=4,++P):D+=3}return D},kt=function(E,D,P,Y){if(!(Y>0))return 0;var U=P;Y=P+Y-1;for(var Ce=0;Ce<E.length;++Ce){var ot=E.codePointAt(Ce);if(ot<=127){if(P>=Y)break;D[P++]=ot}else if(ot<=2047){if(P+1>=Y)break;D[P++]=192|ot>>6,D[P++]=128|ot&63}else if(ot<=65535){if(P+2>=Y)break;D[P++]=224|ot>>12,D[P++]=128|ot>>6&63,D[P++]=128|ot&63}else{if(P+3>=Y)break;D[P++]=240|ot>>18,D[P++]=128|ot>>12&63,D[P++]=128|ot>>6&63,D[P++]=128|ot&63,Ce++}}return D[P]=0,P-U},ht=function(E,D,P){return P=P>0?P:st(E)+1,P=Array(P),E=kt(E,P,0,P.length),D&&(P.length=E),P},globalThis.TextDecoder&&new TextDecoder,_t=[],xr=function(E){return _t.push(E)},F.printErr&&(_e=F.printErr),F.wasmBinary&&(Ge=F.wasmBinary),xt=F.preInit)for(typeof xt=="function"&&(F.preInit=xt=[xt]);xt.length>0;)xt.shift()();return Wn={a:Qt,c:ft,b:Yt},ee.yield(z(),2)}return ee.getNextAddressJsc()!=3?(Hr=ee.getYieldResultJsc(),ee.yield(K(),3)):(R.prototype=Object.create(R.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},F.WrapperObject=R,F.getCache=j,F.wrapPointer=G,F.castObject=_,F.NULL=G(0),F.destroy=N,F.compare=S,F.getPointer=v,F.getClass=w,De={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(De.needed){for(var E=0;E<De.temps.length;E++)F._webidl_free(De.temps[E]);De.temps.length=0,F._webidl_free(De.buffer),De.buffer=0,De.size+=De.needed,De.needed=0}De.buffer||(De.size+=128,De.buffer=F._webidl_malloc(De.size),De.buffer||Ae(void 0)),De.pos=0},alloc:function(E,D){return De.buffer||Ae(void 0),E=E.length*D.BYTES_PER_ELEMENT,E=It(E,8),De.pos+E>=De.size?(E>0||Ae(void 0),De.needed+=E,D=F._webidl_malloc(E),De.temps.push(D)):(D=De.buffer+De.pos,De.pos+=E),D}},d.prototype=Object.create(R.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},F.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){wr(this.ptr)},f.prototype=Object.create(R.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},F.GeometryAttribute=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){Wt(this.ptr)},p.prototype=Object.create(R.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},F.PointAttribute=p,p.prototype.size=p.prototype.size=function(){return it(this.ptr)},p.prototype.attribute_type=p.prototype.attribute_type=function(){return wt(this.ptr)},p.prototype.data_type=p.prototype.data_type=function(){return Tt(this.ptr)},p.prototype.num_components=p.prototype.num_components=function(){return qt(this.ptr)},p.prototype.normalized=p.prototype.normalized=function(){return!!Xt(this.ptr)},p.prototype.byte_stride=p.prototype.byte_stride=function(){return Zt(this.ptr)},p.prototype.byte_offset=p.prototype.byte_offset=function(){return $t(this.ptr)},p.prototype.unique_id=p.prototype.unique_id=function(){return vr(this.ptr)},p.prototype.__destroy__=p.prototype.__destroy__=function(){Dr(this.ptr)},g.prototype=Object.create(R.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},F.PointCloud=g,g.prototype.num_attributes=g.prototype.num_attributes=function(){return _r(this.ptr)},g.prototype.num_points=g.prototype.num_points=function(){return Sr(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){Pr(this.ptr)},u.prototype=Object.create(R.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},F.Mesh=u,u.prototype.num_faces=u.prototype.num_faces=function(){return Rr(this.ptr)},u.prototype.num_attributes=u.prototype.num_attributes=function(){return Fr(this.ptr)},u.prototype.num_points=u.prototype.num_points=function(){return ar(this.ptr)},u.prototype.set_num_points=u.prototype.set_num_points=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Lt(D,E)},u.prototype.__destroy__=u.prototype.__destroy__=function(){Ur(this.ptr)},l.prototype=Object.create(R.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},F.Metadata=l,l.prototype.__destroy__=l.prototype.__destroy__=function(){sr(this.ptr)},c.prototype=Object.create(R.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},F.DracoInt8Array=c,c.prototype.GetValue=c.prototype.GetValue=function(E){var D=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),cr(D,E)},c.prototype.size=c.prototype.size=function(){return Ot(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){Tr(this.ptr)},s.prototype=Object.create(R.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},F.MetadataBuilder=s,s.prototype.AddStringEntry=s.prototype.AddStringEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P=P&&typeof P=="object"?P.ptr:m(P),!!lr(Y,E,D,P)},s.prototype.AddIntEntry=s.prototype.AddIntEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!er(Y,E,D,P)},s.prototype.AddIntEntryArray=s.prototype.AddIntEntryArray=function(E,D,P,Y){var U=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),typeof P=="object"&&(P=I(P)),Y&&typeof Y=="object"&&(Y=Y.ptr),!!lt(U,E,D,P,Y)},s.prototype.AddDoubleEntry=s.prototype.AddDoubleEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!Ht(Y,E,D,P)},s.prototype.__destroy__=s.prototype.__destroy__=function(){ur(this.ptr)},a.prototype=Object.create(R.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},F.PointCloudBuilder=a,a.prototype.AddFloatAttribute=a.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),x(Ce,E,D,P,Y,U)},a.prototype.AddInt8Attribute=a.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),k(Ce,E,D,P,Y,U)},a.prototype.AddUInt8Attribute=a.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),V(Ce,E,D,P,Y,U)},a.prototype.AddInt16Attribute=a.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),q(Ce,E,D,P,Y,U)},a.prototype.AddUInt16Attribute=a.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),te(Ce,E,D,P,Y,U)},a.prototype.AddInt32Attribute=a.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),ae(Ce,E,D,P,Y,U)},a.prototype.AddUInt32Attribute=a.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),se(Ce,E,D,P,Y,U)},a.prototype.AddMetadata=a.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!pe(P,E,D)},a.prototype.SetMetadataForAttribute=a.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!ue(Y,E,D,P)},a.prototype.SetNormalizedFlagForAttribute=a.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!de(Y,E,D,P)},a.prototype.__destroy__=a.prototype.__destroy__=function(){ve(this.ptr)},i.prototype=Object.create(R.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},F.MeshBuilder=i,i.prototype.AddFacesToMesh=i.prototype.AddFacesToMesh=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),typeof P=="object"&&(P=I(P)),!!Ke(Y,E,D,P)},i.prototype.AddFloatAttributeToMesh=i.prototype.AddFloatAttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),Ne(Ce,E,D,P,Y,U)},i.prototype.AddInt32AttributeToMesh=i.prototype.AddInt32AttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),rt(Ce,E,D,P,Y,U)},i.prototype.AddMetadataToMesh=i.prototype.AddMetadataToMesh=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!at(P,E,D)},i.prototype.AddFloatAttribute=i.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),St(Ce,E,D,P,Y,U)},i.prototype.AddInt8Attribute=i.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),ut(Ce,E,D,P,Y,U)},i.prototype.AddUInt8Attribute=i.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),gr(Ce,E,D,P,Y,U)},i.prototype.AddInt16Attribute=i.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),pr(Ce,E,D,P,Y,U)},i.prototype.AddUInt16Attribute=i.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),ln(Ce,E,D,P,Y,U)},i.prototype.AddInt32Attribute=i.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),un(Ce,E,D,P,Y,U)},i.prototype.AddUInt32Attribute=i.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),gn(Ce,E,D,P,Y,U)},i.prototype.AddMetadata=i.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!pn(P,E,D)},i.prototype.SetMetadataForAttribute=i.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!fn(Y,E,D,P)},i.prototype.SetNormalizedFlagForAttribute=i.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!dn(Y,E,D,P)},i.prototype.__destroy__=i.prototype.__destroy__=function(){hn(this.ptr)},A.prototype=Object.create(R.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},F.Encoder=A,A.prototype.SetEncodingMethod=A.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),In(D,E)},A.prototype.SetAttributeQuantization=A.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Bn(P,E,D)},A.prototype.SetAttributeExplicitQuantization=A.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),bn(Ce,E,D,P,Y,U)},A.prototype.SetSpeedOptions=A.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),En(P,E,D)},A.prototype.SetTrackEncodedProperties=A.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),yn(D,E)},A.prototype.EncodeMeshToDracoBuffer=A.prototype.EncodeMeshToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Cn(P,E,D)},A.prototype.EncodePointCloudToDracoBuffer=A.prototype.EncodePointCloudToDracoBuffer=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Qn(Y,E,D,P)},A.prototype.GetNumberOfEncodedPoints=A.prototype.GetNumberOfEncodedPoints=function(){return xn(this.ptr)},A.prototype.GetNumberOfEncodedFaces=A.prototype.GetNumberOfEncodedFaces=function(){return wn(this.ptr)},A.prototype.__destroy__=A.prototype.__destroy__=function(){vn(this.ptr)},o.prototype=Object.create(R.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},F.ExpertEncoder=o,o.prototype.SetEncodingMethod=o.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Mn(D,E)},o.prototype.SetAttributeQuantization=o.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),_n(P,E,D)},o.prototype.SetAttributeExplicitQuantization=o.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),Sn(Ce,E,D,P,Y,U)},o.prototype.SetSpeedOptions=o.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Pn(P,E,D)},o.prototype.SetTrackEncodedProperties=o.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Gn(D,E)},o.prototype.EncodeToDracoBuffer=o.prototype.EncodeToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Rn(P,E,D)},o.prototype.GetNumberOfEncodedPoints=o.prototype.GetNumberOfEncodedPoints=function(){return Fn(this.ptr)},o.prototype.GetNumberOfEncodedFaces=o.prototype.GetNumberOfEncodedFaces=function(){return Un(this.ptr)},o.prototype.__destroy__=o.prototype.__destroy__=function(){kn(this.ptr)},(function(){function E(){F.INVALID=Nn(),F.POSITION=Tn(),F.NORMAL=Ln(),F.COLOR=On(),F.TEX_COORD=Hn(),F.GENERIC=jn(),F.INVALID_GEOMETRY_TYPE=Vn(),F.POINT_CLOUD=Jn(),F.TRIANGULAR_MESH=Kn(),F.MESH_SEQUENTIAL_ENCODING=zn(),F.MESH_EDGEBREAKER_ENCODING=Yn()}je?E():xr(E)})(),typeof F.onModuleParsed=="function"&&F.onModuleParsed(),ee.return(F))})}})();typeof pA=="object"&&typeof So=="object"?(So.exports=gA,So.exports.default=gA):typeof define=="function"&&define.amd&&define([],function(){return gA})});var va=qn((dA,Po)=>{$();var O=O||{};O.scope={};O.ASSUME_ES2020=!1;O.ASSUME_ES6=O.ASSUME_ES2020;O.ASSUME_ES5=O.ASSUME_ES6;O.ASSUME_NO_NATIVE_MAP=!1;O.ASSUME_NO_NATIVE_SET=!1;O.ISOLATE_POLYFILLS=!1;O.FORCE_POLYFILL_PROMISE=!1;O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;O.INSTRUMENT_ASYNC_CONTEXT=!0;O.objectCreate=O.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};O.defineProperty=O.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};O.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};O.global=O.ASSUME_ES2020?globalThis:O.getGlobal(dA);O.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";O.TRUST_ES6_POLYFILLS=!O.ISOLATE_POLYFILLS||O.IS_SYMBOL_NATIVE;O.polyfills={};O.propertyToPolyfillSymbol={};O.POLYFILL_PREFIX="$jscp$";O.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return O.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();O.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<O.TYPED_ARRAY_CLASSES.length;o++){var A=O.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;O.ISOLATE_POLYFILLS?O.polyfillIsolated(A,t,r,n):O.polyfillUnisolated(A,t,r,n)}};O.polyfill=function(e,t,r,n){t&&(O.ISOLATE_POLYFILLS?O.polyfillIsolated(e,t,r,n):O.polyfillUnisolated(e,t,r,n))};O.polyfillUnisolated=function(e,t,r,n){for(r=O.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&O.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};O.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in O.polyfills?O.polyfills:O.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=O.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?O.defineProperty(O.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(O.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,O.propertyToPolyfillSymbol[o]=O.IS_SYMBOL_NATIVE?O.global.Symbol(o):O.POLYFILL_PREFIX+r+"$"+o),O.defineProperty(n,O.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};O.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(O.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=O.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};O.construct={valueOf:O.getConstructImplementation}.valueOf();O.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};O.setPrototypeOf=O.ASSUME_ES6||O.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:O.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;O.inherits=function(e,t){if(e.prototype=O.objectCreate(t.prototype),e.prototype.constructor=e,O.ASSUME_ES6||O.setPrototypeOf){var r=O.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};O.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};O.arrayIterator=function(e){return{next:O.arrayIteratorImpl(e)}};O.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return O.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};O.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};O.arrayFromIterable=function(e){return e instanceof Array?e:O.arrayFromIterator(O.makeIterator(e))};O.createTemplateTagFirstArg=function(e){return O.createTemplateTagFirstArgWithRaw(e,e)};O.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};O.generator={};O.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};O.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};O.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};O.generator.Context.prototype.stop_=function(){this.isRunning_=!1};O.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};O.generator.Context.prototype.next_=function(e){this.yieldResult=e};O.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.return=O.generator.Context.prototype.return;O.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.jumpThroughFinallyBlocks=O.generator.Context.prototype.jumpThroughFinallyBlocks;O.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};O.generator.Context.prototype.yield=O.generator.Context.prototype.yield;O.generator.Context.prototype.yieldAll=function(e,t){e=O.makeIterator(e);var r=e.next();if(O.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};O.generator.Context.prototype.yieldAll=O.generator.Context.prototype.yieldAll;O.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};O.generator.Context.prototype.jumpTo=O.generator.Context.prototype.jumpTo;O.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};O.generator.Context.prototype.jumpToEnd=O.generator.Context.prototype.jumpToEnd;O.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};O.generator.Context.prototype.setCatchFinallyBlocks=O.generator.Context.prototype.setCatchFinallyBlocks;O.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};O.generator.Context.prototype.setFinallyBlock=O.generator.Context.prototype.setFinallyBlock;O.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};O.generator.Context.prototype.leaveTryBlock=O.generator.Context.prototype.leaveTryBlock;O.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};O.generator.Context.prototype.enterCatchBlock=O.generator.Context.prototype.enterCatchBlock;O.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};O.generator.Context.prototype.enterFinallyBlock=O.generator.Context.prototype.enterFinallyBlock;O.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};O.generator.Context.prototype.leaveFinallyBlock=O.generator.Context.prototype.leaveFinallyBlock;O.generator.Context.prototype.forIn=function(e){return new O.generator.Context.PropertyIterator(e)};O.generator.Context.prototype.forIn=O.generator.Context.prototype.forIn;O.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};O.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};O.generator.Context.PropertyIterator.prototype.getNext=O.generator.Context.PropertyIterator.prototype.getNext;O.generator.Engine_=function(e){this.context_=new O.generator.Context,this.program_=e};O.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};O.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};O.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};O.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(O.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};O.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};O.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};O.generator.createGenerator=function(e,t){return t=new O.generator.Generator_(new O.generator.Engine_(t)),O.setPrototypeOf&&e.prototype&&O.setPrototypeOf(t,e.prototype),t};O.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};O.asyncExecutePromiseGeneratorFunction=function(e){return O.asyncExecutePromiseGenerator(e())};O.asyncExecutePromiseGeneratorProgram=function(e){return O.asyncExecutePromiseGenerator(new O.generator.Generator_(new O.generator.Engine_(e)))};O.polyfill("globalThis",function(e){return e||O.global},"es_2020","es3");O.polyfill("Reflect",function(e){return e||{}},"es6","es3");O.polyfill("Reflect.construct",function(e){return O.construct},"es6","es3");O.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(O.setPrototypeOf){var t=O.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");O.initSymbol=function(){};O.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,O.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");O.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),O.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return O.iteratorPrototype(O.arrayIteratorImpl(this))}}),e)},"es6","es3");O.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};O.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(O.FORCE_POLYFILL_PROMISE||O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof O.global.PromiseRejectionEvent>"u")||!O.global.Promise||O.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=O.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=O.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=O.global.CustomEvent,a=O.global.Event,s=O.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=O.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=O.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=O.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");O.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};O.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=O.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");O.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=O.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var fA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(){this.ptr=Hn(),W(o)[this.ptr]=this}function A(){this.ptr=Gn(),W(A)[this.ptr]=this}function i(){this.ptr=Mn(),W(i)[this.ptr]=this}function a(){this.ptr=xn(),W(a)[this.ptr]=this}function s(){this.ptr=En(),W(s)[this.ptr]=this}function c(){this.ptr=mn(),W(c)[this.ptr]=this}function l(){this.ptr=pn(),W(l)[this.ptr]=this}function u(){this.ptr=pr(),W(u)[this.ptr]=this}function g(){this.ptr=at(),W(g)[this.ptr]=this}function p(){throw"cannot construct a Status, no constructor in IDL"}function f(){this.ptr=de(),W(f)[this.ptr]=this}function d(){this.ptr=te(),W(d)[this.ptr]=this}function h(){this.ptr=x(),W(h)[this.ptr]=this}function I(){this.ptr=lt(),W(I)[this.ptr]=this}function b(){this.ptr=cr(),W(b)[this.ptr]=this}function Q(){this.ptr=Sr(),W(Q)[this.ptr]=this}function m(){this.ptr=Mr(),W(m)[this.ptr]=this}function w(){this.ptr=$t(),W(w)[this.ptr]=this}function v(){this.ptr=qt(),W(v)[this.ptr]=this}function S(){throw"cannot construct a VoidPtr, no constructor in IDL"}function N(ce){if(typeof ce=="object"){for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function _(ce){if(typeof ce=="string"){ce=Ar(ce);for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function G(ce){return ce.__class__}function j(ce){return ce.ptr}function R(ce,B){return ce.ptr===B.ptr}function K(ce){if(!ce.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ce.__destroy__(),delete W(ce.__class__)[ce.ptr]}function z(ce,B){return J(ce.ptr,B)}function J(ce,B){var M=W(B),T=M[ce];return T||(T=Object.create((B||X).prototype),T.ptr=ce,M[ce]=T)}function W(ce){return(ce||X).__cache__}function X(){}function Ae(){var ce,B,M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Be(),ce=y.setStatus,ce?(ce("Running..."),T.yield(new Promise(function(fe){return setTimeout(fe,1)}),3)):T.jumpTo(2);if(T.getNextAddressJsc()!=2&&setTimeout(ce,1,""),Le)return T.return();yt=!0,Ct(ir),yo.e(),(M=(B=y).onRuntimeInitialized)==null||M.call(B),F(),T.jumpToEnd()})}function re(){function ce(H){return H=yo=H.exports,y._webidl_free=H.f,y._free=H.g,y._webidl_malloc=H.h,y._malloc=H.i,Tt=y._emscripten_bind_VoidPtr___destroy___0=H.j,qt=y._emscripten_bind_DecoderBuffer_DecoderBuffer_0=H.k,Xt=y._emscripten_bind_DecoderBuffer_Init_2=H.l,Zt=y._emscripten_bind_DecoderBuffer___destroy___0=H.m,$t=y._emscripten_bind_AttributeTransformData_AttributeTransformData_0=H.n,vr=y._emscripten_bind_AttributeTransformData_transform_type_0=H.o,Dr=y._emscripten_bind_AttributeTransformData___destroy___0=H.p,Mr=y._emscripten_bind_GeometryAttribute_GeometryAttribute_0=H.q,_r=y._emscripten_bind_GeometryAttribute___destroy___0=H.r,Sr=y._emscripten_bind_PointAttribute_PointAttribute_0=H.s,Pr=y._emscripten_bind_PointAttribute_size_0=H.t,Gr=y._emscripten_bind_PointAttribute_GetAttributeTransformData_0=H.u,Rr=y._emscripten_bind_PointAttribute_attribute_type_0=H.v,Fr=y._emscripten_bind_PointAttribute_data_type_0=H.w,ar=y._emscripten_bind_PointAttribute_num_components_0=H.x,Lt=y._emscripten_bind_PointAttribute_normalized_0=H.y,Ur=y._emscripten_bind_PointAttribute_byte_stride_0=H.z,kr=y._emscripten_bind_PointAttribute_byte_offset_0=H.A,sr=y._emscripten_bind_PointAttribute_unique_id_0=H.B,Nr=y._emscripten_bind_PointAttribute___destroy___0=H.C,cr=y._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=H.D,Ot=y._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=H.E,Tr=y._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=H.F,Lr=y._emscripten_bind_AttributeQuantizationTransform_min_value_1=H.G,lr=y._emscripten_bind_AttributeQuantizationTransform_range_0=H.H,er=y._emscripten_bind_AttributeQuantizationTransform___destroy___0=H.I,lt=y._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=H.J,Ht=y._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=H.K,ur=y._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=H.L,C=y._emscripten_bind_AttributeOctahedronTransform___destroy___0=H.M,x=y._emscripten_bind_PointCloud_PointCloud_0=H.N,k=y._emscripten_bind_PointCloud_num_attributes_0=H.O,V=y._emscripten_bind_PointCloud_num_points_0=H.P,q=y._emscripten_bind_PointCloud___destroy___0=H.Q,te=y._emscripten_bind_Mesh_Mesh_0=H.R,ae=y._emscripten_bind_Mesh_num_faces_0=H.S,se=y._emscripten_bind_Mesh_num_attributes_0=H.T,pe=y._emscripten_bind_Mesh_num_points_0=H.U,ue=y._emscripten_bind_Mesh___destroy___0=H.V,de=y._emscripten_bind_Metadata_Metadata_0=H.W,ve=y._emscripten_bind_Metadata___destroy___0=H.X,Fe=y._emscripten_bind_Status_code_0=H.Y,Ke=y._emscripten_bind_Status_ok_0=H.Z,Ne=y._emscripten_bind_Status_error_msg_0=H._,rt=y._emscripten_bind_Status___destroy___0=H.$,at=y._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=H.aa,St=y._emscripten_bind_DracoFloat32Array_GetValue_1=H.ba,ut=y._emscripten_bind_DracoFloat32Array_size_0=H.ca,gr=y._emscripten_bind_DracoFloat32Array___destroy___0=H.da,pr=y._emscripten_bind_DracoInt8Array_DracoInt8Array_0=H.ea,ln=y._emscripten_bind_DracoInt8Array_GetValue_1=H.fa,un=y._emscripten_bind_DracoInt8Array_size_0=H.ga,gn=y._emscripten_bind_DracoInt8Array___destroy___0=H.ha,pn=y._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=H.ia,fn=y._emscripten_bind_DracoUInt8Array_GetValue_1=H.ja,dn=y._emscripten_bind_DracoUInt8Array_size_0=H.ka,hn=y._emscripten_bind_DracoUInt8Array___destroy___0=H.la,mn=y._emscripten_bind_DracoInt16Array_DracoInt16Array_0=H.ma,In=y._emscripten_bind_DracoInt16Array_GetValue_1=H.na,Bn=y._emscripten_bind_DracoInt16Array_size_0=H.oa,bn=y._emscripten_bind_DracoInt16Array___destroy___0=H.pa,En=y._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=H.qa,yn=y._emscripten_bind_DracoUInt16Array_GetValue_1=H.ra,Cn=y._emscripten_bind_DracoUInt16Array_size_0=H.sa,Qn=y._emscripten_bind_DracoUInt16Array___destroy___0=H.ta,xn=y._emscripten_bind_DracoInt32Array_DracoInt32Array_0=H.ua,wn=y._emscripten_bind_DracoInt32Array_GetValue_1=H.va,vn=y._emscripten_bind_DracoInt32Array_size_0=H.wa,Dn=y._emscripten_bind_DracoInt32Array___destroy___0=H.xa,Mn=y._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=H.ya,_n=y._emscripten_bind_DracoUInt32Array_GetValue_1=H.za,Sn=y._emscripten_bind_DracoUInt32Array_size_0=H.Aa,Pn=y._emscripten_bind_DracoUInt32Array___destroy___0=H.Ba,Gn=y._emscripten_bind_MetadataQuerier_MetadataQuerier_0=H.Ca,Rn=y._emscripten_bind_MetadataQuerier_HasEntry_2=H.Da,Fn=y._emscripten_bind_MetadataQuerier_GetIntEntry_2=H.Ea,Un=y._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=H.Fa,kn=y._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=H.Ga,Nn=y._emscripten_bind_MetadataQuerier_GetStringEntry_2=H.Ha,Tn=y._emscripten_bind_MetadataQuerier_NumEntries_1=H.Ia,Ln=y._emscripten_bind_MetadataQuerier_GetEntryName_2=H.Ja,On=y._emscripten_bind_MetadataQuerier___destroy___0=H.Ka,Hn=y._emscripten_bind_Decoder_Decoder_0=H.La,jn=y._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=H.Ma,Vn=y._emscripten_bind_Decoder_DecodeArrayToMesh_3=H.Na,Jn=y._emscripten_bind_Decoder_GetAttributeId_2=H.Oa,Kn=y._emscripten_bind_Decoder_GetAttributeIdByName_2=H.Pa,zn=y._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=H.Qa,Yn=y._emscripten_bind_Decoder_GetAttribute_2=H.Ra,Or=y._emscripten_bind_Decoder_GetAttributeByUniqueId_2=H.Sa,Wn=y._emscripten_bind_Decoder_GetMetadata_1=H.Ta,Hr=y._emscripten_bind_Decoder_GetAttributeMetadata_2=H.Ua,De=y._emscripten_bind_Decoder_GetFaceFromMesh_3=H.Va,ee=y._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=H.Wa,E=y._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=H.Xa,D=y._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=H.Ya,P=y._emscripten_bind_Decoder_GetAttributeFloat_3=H.Za,Y=y._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=H._a,U=y._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=H.$a,Ce=y._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=H.ab,ot=y._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=H.bb,ti=y._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=H.cb,ri=y._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=H.db,ni=y._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=H.eb,oi=y._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=H.fb,Ai=y._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=H.gb,ii=y._emscripten_bind_Decoder_SkipAttributeTransform_1=H.hb,ai=y._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=H.ib,si=y._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=H.jb,ci=y._emscripten_bind_Decoder_DecodeBufferToMesh_2=H.kb,li=y._emscripten_bind_Decoder___destroy___0=H.lb,ui=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=H.mb,gi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=H.nb,pi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=H.ob,fi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=H.pb,di=y._emscripten_enum_draco_GeometryAttribute_Type_INVALID=H.qb,hi=y._emscripten_enum_draco_GeometryAttribute_Type_POSITION=H.rb,mi=y._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=H.sb,Ii=y._emscripten_enum_draco_GeometryAttribute_Type_COLOR=H.tb,Bi=y._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=H.ub,bi=y._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=H.vb,Ei=y._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=H.wb,yi=y._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=H.xb,Ci=y._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=H.yb,Qi=y._emscripten_enum_draco_DataType_DT_INVALID=H.zb,xi=y._emscripten_enum_draco_DataType_DT_INT8=H.Ab,wi=y._emscripten_enum_draco_DataType_DT_UINT8=H.Bb,vi=y._emscripten_enum_draco_DataType_DT_INT16=H.Cb,Di=y._emscripten_enum_draco_DataType_DT_UINT16=H.Db,Mi=y._emscripten_enum_draco_DataType_DT_INT32=H.Eb,_i=y._emscripten_enum_draco_DataType_DT_UINT32=H.Fb,Si=y._emscripten_enum_draco_DataType_DT_INT64=H.Gb,Pi=y._emscripten_enum_draco_DataType_DT_UINT64=H.Hb,Gi=y._emscripten_enum_draco_DataType_DT_FLOAT32=H.Ib,Ri=y._emscripten_enum_draco_DataType_DT_FLOAT64=H.Jb,Fi=y._emscripten_enum_draco_DataType_DT_BOOL=H.Kb,Ui=y._emscripten_enum_draco_DataType_DT_TYPES_COUNT=H.Lb,ki=y._emscripten_enum_draco_StatusCode_OK=H.Mb,Ni=y._emscripten_enum_draco_StatusCode_DRACO_ERROR=H.Nb,Ti=y._emscripten_enum_draco_StatusCode_IO_ERROR=H.Ob,Li=y._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=H.Pb,Oi=y._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=H.Qb,Hi=y._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=H.Rb,Eo=H.d,Se(),yo}var B,M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){return H.getNextAddressJsc()==1?(B={a:ji},(M=y.instantiateWasm)?H.return(new Promise(function(Oe){M(B,function(At){return Oe(ce(At))})})):(ze!=null||(ze=Pe("draco_decoder_gltf.wasm")),H.yield(oe(je,ze,B),2))):(T=H.getYieldResultJsc(),fe=ce(T.instance),H.return(fe))})}function oe(ce,B,M){var T,fe,H;return(0,O.asyncExecutePromiseGeneratorProgram)(function(Oe){switch(Oe.getNextAddressJsc()){case 1:if(ce||Je(B)||be){Oe.jumpTo(2);break}return Oe.setCatchFinallyBlocks(3),T=fetch(B,{credentials:"same-origin"}),Oe.yield(WebAssembly.instantiateStreaming(T,M),5);case 5:return fe=Oe.getYieldResultJsc(),Oe.return(fe);case 3:H=Oe.enterCatchBlock(),Te("wasm streaming compile failed: "+H),Te("falling back to ArrayBuffer instantiation");case 2:return Oe.return(ne(B,M))}})}function ne(ce,B){var M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){switch(H.getNextAddressJsc()){case 1:return H.setCatchFinallyBlocks(2),H.yield(ie(ce),4);case 4:return M=H.getYieldResultJsc(),H.yield(WebAssembly.instantiate(M,B),5);case 5:return T=H.getYieldResultJsc(),H.return(T);case 2:fe=H.enterCatchBlock(),Te("failed to asynchronously prepare wasm: "+fe),he(fe),H.jumpToEnd()}})}function ie(ce){var B;return(0,O.asyncExecutePromiseGeneratorProgram)(function(M){switch(M.getNextAddressJsc()){case 1:if(je){M.jumpTo(2);break}return M.setCatchFinallyBlocks(3),M.yield(Ue(ce),5);case 5:return B=M.getYieldResultJsc(),M.return(new Uint8Array(B));case 3:M.enterCatchBlock();case 2:var T=M.return;if(ce==ze&&je)var fe=new Uint8Array(je);else if(Me)fe=Me(ce);else throw"both async and sync fetching of the wasm failed";return T.call(M,fe)}})}function he(ce){var B,M;throw(M=(B=y).onAbort)==null||M.call(B,ce),ce="Aborted("+ce+")",Te(ce),Le=!0,new WebAssembly.RuntimeError(ce+". Build with -sASSERTIONS for more info.")}function F(){var ce=y.postRun;ce&&(typeof ce=="function"&&(ce=[ce]),pt.push.apply(pt,(0,O.arrayFromIterable)(ce))),Ct(pt)}function Be(){var ce=y.preRun;ce&&(typeof ce=="function"&&(ce=[ce]),Qt.push.apply(Qt,(0,O.arrayFromIterable)(ce))),Ct(Qt)}function Se(){var ce,B;!((ce=Ve)==null||(B=ce.buffer)==null)&&B.resizable||(ce=Eo.buffer,y.HEAP8=Ve=new Int8Array(ce),y.HEAP16=new Int16Array(ce),y.HEAPU8=_t=new Uint8Array(ce),y.HEAPU16=new Uint16Array(ce),y.HEAP32=new Int32Array(ce),y.HEAPU32=ft=new Uint32Array(ce),y.HEAPF32=new Float32Array(ce),y.HEAPF64=new Float64Array(ce))}function Pe(ce){return y.locateFile?y.locateFile(ce,Ge):Ge+ce}function Ie(ce){return typeof ce!="string"?!1:(ce=ce.split("."),ce.length<2||ce.length>3?!1:ce[0]==1&&ce[1]>=0&&ce[1]<=5?!0:!(ce[0]!=0||ce[1]>10))}n=n===void 0?{}:n;var y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,xr,or,Nt,Ar,xt,wr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,vr,Dr,Mr,_r,Sr,Pr,Gr,Rr,Fr,ar,Lt,Ur,kr,sr,Nr,cr,Ot,Tr,Lr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Yn,Or,Wn,Hr,De,ee,E,D,P,Y,U,Ce,ot,ti,ri,ni,oi,Ai,ii,ai,si,ci,li,ui,gi,pi,fi,di,hi,mi,Ii,Bi,bi,Ei,yi,Ci,Qi,xi,wi,vi,Di,Mi,_i,Si,Pi,Gi,Ri,Fi,Ui,ki,Ni,Ti,Li,Oi,Hi,Eo,ji,yo,ke;return(0,O.asyncExecutePromiseGeneratorProgram)(function(ce){if(ce.getNextAddressJsc()==1){if(y=n,ye=!!globalThis.window,Qe=!!globalThis.WorkerGlobalScope,be=((xe=globalThis.process)==null||(le=xe.versions)==null?void 0:le.node)&&((ge=globalThis.process)==null?void 0:ge.type)!="renderer",_e=we=!1,y.onRuntimeInitialized=function(){we=!0,_e&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.onModuleParsed=function(){_e=!0,we&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.isVersionSupported=Ie,typeof __filename<"u"?r=__filename:Qe&&(r=self.location.href),Ge="",be)He=(Pt(),Vi(ta)),Ge=__dirname+"/",Me=function(B){return B=Je(B)?new URL(B):B,He.readFileSync(B)},Ue=function(B,M){M=M===void 0?!0:M;var T;return(0,O.asyncExecutePromiseGeneratorProgram)(function(fe){return B=Je(B)?new URL(B):B,T=He.readFileSync(B,M?void 0:"utf8"),fe.return(T)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(ye||Qe){try{Ge=new URL(".",r).href}catch{}Qe&&(Me=function(B){var M=new XMLHttpRequest;return M.open("GET",B,!1),M.responseType="arraybuffer",M.send(null),new Uint8Array(M.response)}),Ue=function(B){var M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Je(B)?T.return(new Promise(function(fe,H){var Oe=new XMLHttpRequest;Oe.open("GET",B,!0),Oe.responseType="arraybuffer",Oe.onload=function(){Oe.status==200||Oe.status==0&&Oe.response?fe(Oe.response):H(Oe.status)},Oe.onerror=H,Oe.send(null)})):T.yield(fetch(B,{credentials:"same-origin"}),2);if(M=T.getYieldResultJsc(),M.ok)return T.return(M.arrayBuffer());throw Error(M.status+" : "+M.url)})}}if(console.log.bind(console),Te=console.error.bind(console),Le=!1,Je=function(B){return B.startsWith("file://")},nt=function(){},qe=function(){return nt.apply(this,arguments)||this},O.inherits(qe,nt),yt=!1,Ct=function(B){for(;B.length>0;)B.shift()(y)},pt=[],Qt=[],Xe=function(B){this.excPtr=B,this.ptr=B-24},Xe.prototype.set_type=function(B){ft[this.ptr+4>>2]=B},Xe.prototype.get_type=function(){return ft[this.ptr+4>>2]},Xe.prototype.set_destructor=function(B){ft[this.ptr+8>>2]=B},Xe.prototype.get_destructor=function(){return ft[this.ptr+8>>2]},Xe.prototype.set_caught=function(B){Ve[this.ptr+12]=B?1:0},Xe.prototype.get_caught=function(){return Ve[this.ptr+12]!=0},Xe.prototype.set_rethrown=function(B){Ve[this.ptr+13]=B?1:0},Xe.prototype.get_rethrown=function(){return Ve[this.ptr+13]!=0},Xe.prototype.init=function(B,M){this.set_adjusted_ptr(0),this.set_type(B),this.set_destructor(M)},Xe.prototype.set_adjusted_ptr=function(B){ft[this.ptr+16>>2]=B},Xe.prototype.get_adjusted_ptr=function(){return ft[this.ptr+16>>2]},It=0,Ut=function(B){he()},dt=function(B,M,T){new Xe(B).init(M,T),It++,Ut(B)},Yt=function(){return he("")},st=function(){return 2147483648},kt=function(B,M){return Math.ceil(B/M)*M},ht=function(B){var M=Eo.buffer.byteLength;try{return Eo.grow((B-M+65535)/65536|0),Se(),1}catch{}},xr=function(B){var M=_t.length;B>>>=0;var T=st();if(B>T)return!1;for(var fe=1;fe<=4;fe*=2){var H=M*(1+.2/fe);if(H=Math.min(H,B+100663296),H=Math.min(T,kt(Math.max(B,H),65536)),ht(H))return!0}return!1},or=function(B){for(var M=0,T=0;T<B.length;++T){var fe=B.charCodeAt(T);fe<=127?M++:fe<=2047?M+=2:fe>=55296&&fe<=57343?(M+=4,++T):M+=3}return M},Nt=function(B,M,T,fe){if(!(fe>0))return 0;var H=T;fe=T+fe-1;for(var Oe=0;Oe<B.length;++Oe){var At=B.codePointAt(Oe);if(At<=127){if(T>=fe)break;M[T++]=At}else if(At<=2047){if(T+1>=fe)break;M[T++]=192|At>>6,M[T++]=128|At&63}else if(At<=65535){if(T+2>=fe)break;M[T++]=224|At>>12,M[T++]=128|At>>6&63,M[T++]=128|At&63}else{if(T+3>=fe)break;M[T++]=240|At>>18,M[T++]=128|At>>12&63,M[T++]=128|At>>6&63,M[T++]=128|At&63,Oe++}}return M[T]=0,T-H},Ar=function(B,M,T){return T=T>0?T:or(B)+1,T=Array(T),B=Nt(B,T,0,T.length),M&&(T.length=B),T},xt=globalThis.TextDecoder&&new TextDecoder,wr=function(B,M,T,fe){if(T=M+T,fe)return T;for(;B[M]&&!(M>=T);)++M;return M},ct=function(B,M,T,fe){if(M=M===void 0?0:M,T=wr(B,M,T,fe),T-M>16&&B.buffer&&xt)return xt.decode(B.subarray(M,T));for(fe="";M<T;){var H=B[M++];if(H&128){var Oe=B[M++]&63;if((H&224)==192)fe+=String.fromCharCode((H&31)<<6|Oe);else{var At=B[M++]&63;H=(H&240)==224?(H&15)<<12|Oe<<6|At:(H&7)<<18|Oe<<12|At<<6|B[M++]&63,H<65536?fe+=String.fromCharCode(H):(H-=65536,fe+=String.fromCharCode(55296|H>>10,56320|H&1023))}}else fe+=String.fromCharCode(H)}return fe},Wt=function(B,M,T){return B?ct(_t,B,M,T):""},ir=[],it=function(B){return ir.push(B)},y.printErr&&(Te=y.printErr),y.wasmBinary&&(je=y.wasmBinary),wt=y.preInit)for(typeof wt=="function"&&(y.preInit=wt=[wt]);wt.length>0;)wt.shift()();return ji={a:dt,c:Yt,b:xr},ce.yield(re(),2)}return ce.getNextAddressJsc()!=3?(yo=ce.getYieldResultJsc(),ce.yield(Ae(),3)):(X.prototype=Object.create(X.prototype),X.prototype.constructor=X,X.prototype.__class__=X,X.__cache__={},y.WrapperObject=X,y.getCache=W,y.wrapPointer=J,y.castObject=z,y.NULL=J(0),y.destroy=K,y.compare=R,y.getPointer=j,y.getClass=G,ke={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ke.needed){for(var B=0;B<ke.temps.length;B++)y._webidl_free(ke.temps[B]);ke.temps.length=0,y._webidl_free(ke.buffer),ke.buffer=0,ke.size+=ke.needed,ke.needed=0}ke.buffer||(ke.size+=128,ke.buffer=y._webidl_malloc(ke.size),ke.buffer||he(void 0)),ke.pos=0},alloc:function(B,M){return ke.buffer||he(void 0),B=B.length*M.BYTES_PER_ELEMENT,B=kt(B,8),ke.pos+B>=ke.size?(B>0||he(void 0),ke.needed+=B,M=y._webidl_malloc(B),ke.temps.push(M)):(M=ke.buffer+ke.pos,ke.pos+=B),M}},S.prototype=Object.create(X.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},y.VoidPtr=S,S.prototype.__destroy__=S.prototype.__destroy__=function(){Tt(this.ptr)},v.prototype=Object.create(X.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},y.DecoderBuffer=v,v.prototype.Init=v.prototype.Init=function(B,M){var T=this.ptr;ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),Xt(T,B,M)},v.prototype.__destroy__=v.prototype.__destroy__=function(){Zt(this.ptr)},w.prototype=Object.create(X.prototype),w.prototype.constructor=w,w.prototype.__class__=w,w.__cache__={},y.AttributeTransformData=w,w.prototype.transform_type=w.prototype.transform_type=function(){return vr(this.ptr)},w.prototype.__destroy__=w.prototype.__destroy__=function(){Dr(this.ptr)},m.prototype=Object.create(X.prototype),m.prototype.constructor=m,m.prototype.__class__=m,m.__cache__={},y.GeometryAttribute=m,m.prototype.__destroy__=m.prototype.__destroy__=function(){_r(this.ptr)},Q.prototype=Object.create(X.prototype),Q.prototype.constructor=Q,Q.prototype.__class__=Q,Q.__cache__={},y.PointAttribute=Q,Q.prototype.size=Q.prototype.size=function(){return Pr(this.ptr)},Q.prototype.GetAttributeTransformData=Q.prototype.GetAttributeTransformData=function(){return J(Gr(this.ptr),w)},Q.prototype.attribute_type=Q.prototype.attribute_type=function(){return Rr(this.ptr)},Q.prototype.data_type=Q.prototype.data_type=function(){return Fr(this.ptr)},Q.prototype.num_components=Q.prototype.num_components=function(){return ar(this.ptr)},Q.prototype.normalized=Q.prototype.normalized=function(){return!!Lt(this.ptr)},Q.prototype.byte_stride=Q.prototype.byte_stride=function(){return Ur(this.ptr)},Q.prototype.byte_offset=Q.prototype.byte_offset=function(){return kr(this.ptr)},Q.prototype.unique_id=Q.prototype.unique_id=function(){return sr(this.ptr)},Q.prototype.__destroy__=Q.prototype.__destroy__=function(){Nr(this.ptr)},b.prototype=Object.create(X.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},y.AttributeQuantizationTransform=b,b.prototype.InitFromAttribute=b.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ot(M,B)},b.prototype.quantization_bits=b.prototype.quantization_bits=function(){return Tr(this.ptr)},b.prototype.min_value=b.prototype.min_value=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Lr(M,B)},b.prototype.range=b.prototype.range=function(){return lr(this.ptr)},b.prototype.__destroy__=b.prototype.__destroy__=function(){er(this.ptr)},I.prototype=Object.create(X.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},y.AttributeOctahedronTransform=I,I.prototype.InitFromAttribute=I.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ht(M,B)},I.prototype.quantization_bits=I.prototype.quantization_bits=function(){return ur(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){C(this.ptr)},h.prototype=Object.create(X.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},y.PointCloud=h,h.prototype.num_attributes=h.prototype.num_attributes=function(){return k(this.ptr)},h.prototype.num_points=h.prototype.num_points=function(){return V(this.ptr)},h.prototype.__destroy__=h.prototype.__destroy__=function(){q(this.ptr)},d.prototype=Object.create(X.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},y.Mesh=d,d.prototype.num_faces=d.prototype.num_faces=function(){return ae(this.ptr)},d.prototype.num_attributes=d.prototype.num_attributes=function(){return se(this.ptr)},d.prototype.num_points=d.prototype.num_points=function(){return pe(this.ptr)},d.prototype.__destroy__=d.prototype.__destroy__=function(){ue(this.ptr)},f.prototype=Object.create(X.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},y.Metadata=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){ve(this.ptr)},p.prototype=Object.create(X.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},y.Status=p,p.prototype.code=p.prototype.code=function(){return Fe(this.ptr)},p.prototype.ok=p.prototype.ok=function(){return!!Ke(this.ptr)},p.prototype.error_msg=p.prototype.error_msg=function(){return Wt(Ne(this.ptr))},p.prototype.__destroy__=p.prototype.__destroy__=function(){rt(this.ptr)},g.prototype=Object.create(X.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},y.DracoFloat32Array=g,g.prototype.GetValue=g.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),St(M,B)},g.prototype.size=g.prototype.size=function(){return ut(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){gr(this.ptr)},u.prototype=Object.create(X.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},y.DracoInt8Array=u,u.prototype.GetValue=u.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),ln(M,B)},u.prototype.size=u.prototype.size=function(){return un(this.ptr)},u.prototype.__destroy__=u.prototype.__destroy__=function(){gn(this.ptr)},l.prototype=Object.create(X.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},y.DracoUInt8Array=l,l.prototype.GetValue=l.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),fn(M,B)},l.prototype.size=l.prototype.size=function(){return dn(this.ptr)},l.prototype.__destroy__=l.prototype.__destroy__=function(){hn(this.ptr)},c.prototype=Object.create(X.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},y.DracoInt16Array=c,c.prototype.GetValue=c.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),In(M,B)},c.prototype.size=c.prototype.size=function(){return Bn(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){bn(this.ptr)},s.prototype=Object.create(X.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},y.DracoUInt16Array=s,s.prototype.GetValue=s.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),yn(M,B)},s.prototype.size=s.prototype.size=function(){return Cn(this.ptr)},s.prototype.__destroy__=s.prototype.__destroy__=function(){Qn(this.ptr)},a.prototype=Object.create(X.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},y.DracoInt32Array=a,a.prototype.GetValue=a.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),wn(M,B)},a.prototype.size=a.prototype.size=function(){return vn(this.ptr)},a.prototype.__destroy__=a.prototype.__destroy__=function(){Dn(this.ptr)},i.prototype=Object.create(X.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},y.DracoUInt32Array=i,i.prototype.GetValue=i.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),_n(M,B)},i.prototype.size=i.prototype.size=function(){return Sn(this.ptr)},i.prototype.__destroy__=i.prototype.__destroy__=function(){Pn(this.ptr)},A.prototype=Object.create(X.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},y.MetadataQuerier=A,A.prototype.HasEntry=A.prototype.HasEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),!!Rn(T,B,M)},A.prototype.GetIntEntry=A.prototype.GetIntEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Fn(T,B,M)},A.prototype.GetIntEntryArray=A.prototype.GetIntEntryArray=function(B,M,T){var fe=this.ptr;ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T&&typeof T=="object"&&(T=T.ptr),Un(fe,B,M,T)},A.prototype.GetDoubleEntry=A.prototype.GetDoubleEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),kn(T,B,M)},A.prototype.GetStringEntry=A.prototype.GetStringEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Wt(Nn(T,B,M))},A.prototype.NumEntries=A.prototype.NumEntries=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Tn(M,B)},A.prototype.GetEntryName=A.prototype.GetEntryName=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Wt(Ln(T,B,M))},A.prototype.__destroy__=A.prototype.__destroy__=function(){On(this.ptr)},o.prototype=Object.create(X.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},y.Decoder=o,o.prototype.DecodeArrayToPointCloud=o.prototype.DecodeArrayToPointCloud=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(jn(fe,B,M,T),p)},o.prototype.DecodeArrayToMesh=o.prototype.DecodeArrayToMesh=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(Vn(fe,B,M,T),p)},o.prototype.GetAttributeId=o.prototype.GetAttributeId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Jn(T,B,M)},o.prototype.GetAttributeIdByName=o.prototype.GetAttributeIdByName=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Kn(T,B,M)},o.prototype.GetAttributeIdByMetadataEntry=o.prototype.GetAttributeIdByMetadataEntry=function(B,M,T){var fe=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T=T&&typeof T=="object"?T.ptr:_(T),zn(fe,B,M,T)},o.prototype.GetAttribute=o.prototype.GetAttribute=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Yn(T,B,M),Q)},o.prototype.GetAttributeByUniqueId=o.prototype.GetAttributeByUniqueId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Or(T,B,M),Q)},o.prototype.GetMetadata=o.prototype.GetMetadata=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),J(Wn(M,B),f)},o.prototype.GetAttributeMetadata=o.prototype.GetAttributeMetadata=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Hr(T,B,M),f)},o.prototype.GetFaceFromMesh=o.prototype.GetFaceFromMesh=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!De(fe,B,M,T)},o.prototype.GetTriangleStripsFromMesh=o.prototype.GetTriangleStripsFromMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),ee(T,B,M)},o.prototype.GetTrianglesUInt16Array=o.prototype.GetTrianglesUInt16Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!E(fe,B,M,T)},o.prototype.GetTrianglesUInt32Array=o.prototype.GetTrianglesUInt32Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!D(fe,B,M,T)},o.prototype.GetAttributeFloat=o.prototype.GetAttributeFloat=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!P(fe,B,M,T)},o.prototype.GetAttributeFloatForAllPoints=o.prototype.GetAttributeFloatForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Y(fe,B,M,T)},o.prototype.GetAttributeIntForAllPoints=o.prototype.GetAttributeIntForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!U(fe,B,M,T)},o.prototype.GetAttributeInt8ForAllPoints=o.prototype.GetAttributeInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Ce(fe,B,M,T)},o.prototype.GetAttributeUInt8ForAllPoints=o.prototype.GetAttributeUInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ot(fe,B,M,T)},o.prototype.GetAttributeInt16ForAllPoints=o.prototype.GetAttributeInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ti(fe,B,M,T)},o.prototype.GetAttributeUInt16ForAllPoints=o.prototype.GetAttributeUInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ri(fe,B,M,T)},o.prototype.GetAttributeInt32ForAllPoints=o.prototype.GetAttributeInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ni(fe,B,M,T)},o.prototype.GetAttributeUInt32ForAllPoints=o.prototype.GetAttributeUInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!oi(fe,B,M,T)},o.prototype.GetAttributeDataArrayForAllPoints=o.prototype.GetAttributeDataArrayForAllPoints=function(B,M,T,fe,H){var Oe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),H&&typeof H=="object"&&(H=H.ptr),!!Ai(Oe,B,M,T,fe,H)},o.prototype.SkipAttributeTransform=o.prototype.SkipAttributeTransform=function(B){var M=this.ptr;B&&typeof B=="object"&&(B=B.ptr),ii(M,B)},o.prototype.GetEncodedGeometryType_Deprecated=o.prototype.GetEncodedGeometryType_Deprecated=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),ai(M,B)},o.prototype.DecodeBufferToPointCloud=o.prototype.DecodeBufferToPointCloud=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(si(T,B,M),p)},o.prototype.DecodeBufferToMesh=o.prototype.DecodeBufferToMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(ci(T,B,M),p)},o.prototype.__destroy__=o.prototype.__destroy__=function(){li(this.ptr)},(function(){function B(){y.ATTRIBUTE_INVALID_TRANSFORM=ui(),y.ATTRIBUTE_NO_TRANSFORM=gi(),y.ATTRIBUTE_QUANTIZATION_TRANSFORM=pi(),y.ATTRIBUTE_OCTAHEDRON_TRANSFORM=fi(),y.INVALID=di(),y.POSITION=hi(),y.NORMAL=mi(),y.COLOR=Ii(),y.TEX_COORD=Bi(),y.GENERIC=bi(),y.INVALID_GEOMETRY_TYPE=Ei(),y.POINT_CLOUD=yi(),y.TRIANGULAR_MESH=Ci(),y.DT_INVALID=Qi(),y.DT_INT8=xi(),y.DT_UINT8=wi(),y.DT_INT16=vi(),y.DT_UINT16=Di(),y.DT_INT32=Mi(),y.DT_UINT32=_i(),y.DT_INT64=Si(),y.DT_UINT64=Pi(),y.DT_FLOAT32=Gi(),y.DT_FLOAT64=Ri(),y.DT_BOOL=Fi(),y.DT_TYPES_COUNT=Ui(),y.OK=ki(),y.DRACO_ERROR=Ni(),y.IO_ERROR=Ti(),y.INVALID_PARAMETER=Li(),y.UNSUPPORTED_VERSION=Oi(),y.UNKNOWN_VERSION=Hi()}yt?B():it(B)})(),y.Decoder.prototype.GetEncodedGeometryType=function(B){if(B.__class__&&B.__class__===y.DecoderBuffer)return y.Decoder.prototype.GetEncodedGeometryType_Deprecated(B);if(B.byteLength<8)return y.INVALID_GEOMETRY_TYPE;switch(B[7]){case 0:return y.POINT_CLOUD;case 1:return y.TRIANGULAR_MESH;default:return y.INVALID_GEOMETRY_TYPE}},typeof y.onModuleParsed=="function"&&y.onModuleParsed(),ce.return(y))})}})();typeof dA=="object"&&typeof Po=="object"?(Po.exports=fA,Po.exports.default=fA):typeof define=="function"&&define.amd&&define([],function(){return fA})});var Ma=qn((Fg,Da)=>{$();var sc=wa(),cc=va();Da.exports={createEncoderModule:sc,createDecoderModule:cc}});var us=qn((od,ls)=>{$();var Zo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":Zo(),apply:()=>Zo(),construct:()=>Zo()});ls.exports=Zo()});$();var la=new Float32Array(2048);for(let e=0;e<2048;e++)la[e]=.5*(1-Math.cos(2*Math.PI*e/2047));var ua=new Uint16Array(2048);for(let e=0;e<2048;e++){let t=0,r=e;for(let n=0;n<11;n++)t=t<<1|r&1,r>>=1;ua[e]=t}var ga=new Float32Array(2048/2),pa=new Float32Array(2048/2);for(let e=0;e<2048/2;e++){let t=-2*Math.PI*e/2048;ga[e]=Math.cos(t),pa[e]=Math.sin(t)}function zs(e,t){for(let r=0;r<2048;r++){let n=ua[r]??0;if(n>r){let o=e[r]??0;e[r]=e[n]??0,e[n]=o;let A=t[r]??0;t[r]=t[n]??0,t[n]=A}}for(let r=2;r<=2048;r<<=1){let n=r>>1,o=2048/r;for(let A=0;A<2048;A+=r)for(let i=0;i<n;i++){let a=i*o,s=ga[a]??1,c=pa[a]??0,l=e[A+i]??0,u=t[A+i]??0,g=e[A+i+n]??0,p=t[A+i+n]??0,f=g*s-p*c,d=g*c+p*s;e[A+i]=l+f,t[A+i]=u+d,e[A+i+n]=l-f,t[A+i+n]=u-d}}}var Qo=class e{tempReal=new Float32Array(2048);tempImag=new Float32Array(2048);previousBins=new Float32Array(1024);extractAtTime(t,r,n){let o=t.length,A=o>0?t[0]?.length??0:0,a=Math.round(n*r)-1024;for(let w=0;w<2048;w++){let v=a+w,S=0;v>=0&&v<A&&(o===1?S=t[0]?.[v]??0:o>=2&&(S=((t[0]?.[v]??0)+(t[1]?.[v]??0))*.5)),this.tempReal[w]=S*(la[w]??1),this.tempImag[w]=0}zs(this.tempReal,this.tempImag);let s=new Float32Array(1024),c=2/2048;for(let w=0;w<1024;w++){let v=this.tempReal[w]??0,S=this.tempImag[w]??0;s[w]=Math.sqrt(v*v+S*S)*c*2}let l=r/2048,u=Math.max(1,Math.round(20/l)),g=Math.max(u+1,Math.round(150/l)),p=0;for(let w=u;w<=g&&w<1024;w++)p+=(s[w]??0)*(s[w]??0);let f=Math.min(1,Math.sqrt(p/(g-u+1))*4),d=0;for(let w=0;w<1024;w++){let v=(s[w]??0)-(this.previousBins[w]??0);v>0&&(d+=v),this.previousBins[w]=s[w]??0}let h=Math.min(1,d*.15),I=Math.round(300/l),b=Math.min(1023,Math.round(3400/l)),Q=0;for(let w=I;w<=b;w++)Q+=(s[w]??0)*(s[w]??0);let m=Math.min(1,Math.sqrt(Q/(b-I+1))*3.5);return{fftBins:s,bassEnergy:f,drumTransient:h,vocalEnergy:m,timeMs:n*1e3}}static packBufferData(t){let r=new Float32Array(1028);return r.set(t.fftBins,0),r[1024]=t.bassEnergy,r[1025]=t.drumTransient,r[1026]=t.vocalEnergy,r[1027]=t.timeMs,r}static createGpuBuffer(t,r){let n=r?e.packBufferData(r):new Float32Array(1028),o=t.createBuffer({label:"AudioLatentBuffer",size:4112,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,mappedAtCreation:!0});return new Float32Array(o.getMappedRange()).set(n),o.unmap(),o}static updateGpuBuffer(t,r,n){let o=e.packBufferData(n);t.queue.writeBuffer(r,0,o)}},ca=class{constructor(t,r,n,o){this.channels=t;this.sampleRate=r;this.fps=n;this.totalFrames=o;let A=new Qo,i=r||48e3,a=n||30,s=t[0]?.length??0,c=Math.max(10,Math.ceil(s/i*a)+10),l=typeof o=="number"&&Number.isFinite(o)&&o>0?Math.round(o):c;this.frames=new Array(l);for(let u=0;u<l;u++){let g=u/a;this.frames[u]=A.extractAtTime(t,i,g)}}channels;sampleRate;fps;totalFrames;frames=[];gpuBuffers=new WeakMap;getFrameData(t){let r=Math.max(0,Math.min(this.totalFrames-1,Math.round(t)));return this.frames[r]??{fftBins:new Float32Array(1024),bassEnergy:0,drumTransient:0,vocalEnergy:0,timeMs:r/this.fps*1e3}}getGpuBuffer(t,r){let n=this.gpuBuffers.get(t);n||(n=new Map,this.gpuBuffers.set(t,n));let o=Math.max(0,Math.min(this.totalFrames-1,Math.round(r))),A=n.get(o);if(!A){let i=this.getFrameData(o);A=Qo.createGpuBuffer(t,i),n.set(o,A)}return A}};$();var Z={create(e=0,t=0,r=0){return[e,t,r]},copy(e){return[e[0],e[1],e[2]]},set(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e},add(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]},subtract(e,t){return[e[0]-t[0],e[1]-t[1],e[2]-t[2]]},multiplyScalar(e,t){return[e[0]*t,e[1]*t,e[2]*t]},dot(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},cross(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]},lengthSq(e){return e[0]*e[0]+e[1]*e[1]+e[2]*e[2]},length(e){return Math.hypot(e[0],e[1],e[2])},distance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},normalize(e){let t=Math.hypot(e[0],e[1],e[2]);if(t===0)return[0,0,0];let r=1/t;return[e[0]*r,e[1]*r,e[2]*r]},lerp(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},equals(e,t,r=1e-6){return Math.abs(e[0]-t[0])<=r&&Math.abs(e[1]-t[1])<=r&&Math.abs(e[2]-t[2])<=r}};$();var Ee={identity(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},copy(e){return[...e]},multiply(e,t){let r=new Array(16);for(let n=0;n<4;n++)for(let o=0;o<4;o++)r[o*4+n]=e[0+n]*t[o*4+0]+e[4+n]*t[o*4+1]+e[8+n]*t[o*4+2]+e[12+n]*t[o*4+3];return r},translate(e,t,r=0){return[1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]},scale(e,t,r=1){return[e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1]},rotateX(e){let t=Math.cos(e),r=Math.sin(e);return[1,0,0,0,0,t,r,0,0,-r,t,0,0,0,0,1]},rotateY(e){let t=Math.cos(e),r=Math.sin(e);return[t,0,-r,0,0,1,0,0,r,0,t,0,0,0,0,1]},rotateZ(e){let t=Math.cos(e),r=Math.sin(e);return[t,r,0,0,-r,t,0,0,0,0,1,0,0,0,0,1]},rotateAxis(e,t){let r=Z.normalize(e),n=r[0],o=r[1],A=r[2],i=Math.cos(t),a=Math.sin(t),s=1-i;return[s*n*n+i,s*n*o+a*A,s*n*A-a*o,0,s*n*o-a*A,s*o*o+i,s*o*A+a*n,0,s*n*A+a*o,s*o*A-a*n,s*A*A+i,0,0,0,0,1]},lookAt(e,t,r=[0,-1,0]){let n=Z.subtract(t,e);Z.lengthSq(n)===0?n=[0,0,1]:n=Z.normalize(n);let o=Z.cross(n,r);Z.lengthSq(o)===0?o=[1,0,0]:o=Z.normalize(o);let A=Z.cross(o,n);return[o[0],A[0],n[0],0,o[1],A[1],n[1],0,o[2],A[2],n[2],0,-Z.dot(o,e),-Z.dot(A,e),-Z.dot(n,e),1]},perspective(e,t,r,n){let o=1/Math.tan(e/2),A=1/(n-r);return[o/t,0,0,0,0,o,0,0,0,0,n*A,1,0,0,-r*n*A,0]},orthographic(e,t,r,n,o,A){let i=1/(t-e),a=1/(n-r),s=1/(A-o);return[2*i,0,0,0,0,2*a,0,0,0,0,s,0,-(t+e)*i,-(n+r)*a,-o*s,1]},invert(e){let t=new Array(16);t[0]=e[5]*e[10]*e[15]-e[5]*e[11]*e[14]-e[9]*e[6]*e[15]+e[9]*e[7]*e[14]+e[13]*e[6]*e[11]-e[13]*e[7]*e[10],t[4]=-e[4]*e[10]*e[15]+e[4]*e[11]*e[14]+e[8]*e[6]*e[15]-e[8]*e[7]*e[14]-e[12]*e[6]*e[11]+e[12]*e[7]*e[10],t[8]=e[4]*e[9]*e[15]-e[4]*e[11]*e[13]-e[8]*e[5]*e[15]+e[8]*e[7]*e[13]+e[12]*e[5]*e[11]-e[12]*e[7]*e[9],t[12]=-e[4]*e[9]*e[14]+e[4]*e[10]*e[13]+e[8]*e[5]*e[14]-e[8]*e[6]*e[13]-e[12]*e[5]*e[10]+e[12]*e[6]*e[9],t[1]=-e[1]*e[10]*e[15]+e[1]*e[11]*e[14]+e[9]*e[2]*e[15]-e[9]*e[3]*e[14]-e[13]*e[2]*e[11]+e[13]*e[3]*e[10],t[5]=e[0]*e[10]*e[15]-e[0]*e[11]*e[14]-e[8]*e[2]*e[15]+e[8]*e[3]*e[14]+e[12]*e[2]*e[11]-e[12]*e[3]*e[10],t[9]=-e[0]*e[9]*e[15]+e[0]*e[11]*e[13]+e[8]*e[1]*e[15]-e[8]*e[3]*e[13]-e[12]*e[1]*e[11]+e[12]*e[3]*e[9],t[13]=e[0]*e[9]*e[14]-e[0]*e[10]*e[13]-e[8]*e[1]*e[14]+e[8]*e[2]*e[13]+e[12]*e[1]*e[10]-e[12]*e[2]*e[9],t[2]=e[1]*e[6]*e[15]-e[1]*e[7]*e[14]-e[5]*e[2]*e[15]+e[5]*e[3]*e[14]+e[13]*e[2]*e[7]-e[13]*e[3]*e[6],t[6]=-e[0]*e[6]*e[15]+e[0]*e[7]*e[14]+e[4]*e[2]*e[15]-e[4]*e[3]*e[14]-e[12]*e[2]*e[7]+e[12]*e[3]*e[6],t[10]=e[0]*e[5]*e[15]-e[0]*e[7]*e[13]-e[4]*e[1]*e[15]+e[4]*e[3]*e[13]+e[12]*e[1]*e[7]-e[12]*e[3]*e[5],t[14]=-e[0]*e[5]*e[14]+e[0]*e[6]*e[13]+e[4]*e[1]*e[14]-e[4]*e[2]*e[13]-e[12]*e[1]*e[6]+e[12]*e[2]*e[5],t[3]=-e[1]*e[6]*e[11]+e[1]*e[7]*e[10]+e[5]*e[2]*e[11]-e[5]*e[3]*e[10]-e[9]*e[2]*e[7]+e[9]*e[3]*e[6],t[7]=e[0]*e[6]*e[11]-e[0]*e[7]*e[10]-e[4]*e[2]*e[11]+e[4]*e[3]*e[10]+e[8]*e[2]*e[7]-e[8]*e[3]*e[6],t[11]=-e[0]*e[5]*e[11]+e[0]*e[7]*e[9]+e[4]*e[1]*e[11]-e[4]*e[3]*e[9]-e[8]*e[1]*e[7]+e[8]*e[3]*e[5],t[15]=e[0]*e[5]*e[10]-e[0]*e[6]*e[9]-e[4]*e[1]*e[10]+e[4]*e[2]*e[9]+e[8]*e[1]*e[6]-e[8]*e[2]*e[5];let r=e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12];if(Math.abs(r)<1e-12)return null;r=1/r;for(let n=0;n<16;n++)t[n]*=r;return t},transpose(e){return[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]]},projectPoint(e,t){let r=t[0],n=t[1],o=t[2],A=e[0]*r+e[4]*n+e[8]*o+e[12],i=e[1]*r+e[5]*n+e[9]*o+e[13],a=e[2]*r+e[6]*n+e[10]*o+e[14],s=e[3]*r+e[7]*n+e[11]*o+e[15],c=Math.abs(s)>1e-6?1/s:1;return[A*c,i*c,a*c]},projectRectangle(e,t,r){return[Ee.projectPoint(e,[0,0,0]),Ee.projectPoint(e,[t,0,0]),Ee.projectPoint(e,[t,r,0]),Ee.projectPoint(e,[0,r,0])]},toFloat32Array(e){return new Float32Array(e)}};$();function Xn(e,t,r=3){let n=0,o=1,A=1,i=0;for(let a=0;a<r;a++){let s=Math.sin(e*o*2*Math.PI+t+a*1.7),c=Math.cos(e*o*1.414*Math.PI+t*2.1+a*.9);n+=(s*.6+c*.4)*A,i+=A,o*=2,A*=.5}return i>0?n/i:0}var Xr={createDefaultCamera(e,t,r=50){let n=r*Math.PI/180,o=t/2/Math.tan(n/2);return{eye:[e/2,t/2,-o],target:[e/2,t/2,0],up:[0,-1,0],fov:r,aspect:Math.max(1e-4,e/t),near:1,far:5e4,zoom:1,focusDistance:o,fStop:2.8,maxBlurRadius:32}},computeViewMatrix(e){return Ee.lookAt(e.eye,e.target,e.up)},computeProjectionMatrix(e){let t=e.fov*Math.PI/180,r=Ee.perspective(t,e.aspect,e.near,e.far);return e.zoom!==1&&e.zoom>0&&(r[0]*=e.zoom,r[5]*=e.zoom),r},computeViewProjectionMatrix(e){let t=Xr.computeViewMatrix(e),r=Xr.computeProjectionMatrix(e);return Ee.multiply(r,t)},dolly(e,t,r){let n=Z.normalize(Z.subtract(t,e)),o=Z.multiplyScalar(n,r);return{eye:Z.add(e,o),target:t}},truckPedestal(e,t,r,n,o){let A=Z.normalize(Z.subtract(t,e)),i=Z.normalize(Z.cross(A,r)),a=Z.cross(i,A),s=Z.multiplyScalar(i,n),c=Z.multiplyScalar(a,o),l=Z.add(s,c);return{eye:Z.add(e,l),target:Z.add(t,l)}},orbit(e,t,r,n){let o=r*Math.PI/180,A=n*Math.PI/180,i=Math.cos(A),a=Math.sin(A),s=Math.cos(o),c=Math.sin(o),l=e[0]+t*i*c,u=e[1]-t*a,g=e[2]-t*i*s;return[l,u,g]},applyOrientation(e,t,r,n){if(t===0&&r===0&&n===0)return e;let o=Z.normalize(Z.subtract(e.target,e.eye)),A=Z.normalize(Z.cross(o,e.up)),i=Z.cross(A,o),a=Z.distance(e.eye,e.target),s=o,c=i;if(r!==0){let g=r*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.subtract(Z.multiplyScalar(s,p),Z.multiplyScalar(A,f)))}let l=Z.normalize(Z.cross(s,c));if(t!==0){let g=t*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.add(Z.multiplyScalar(s,p),Z.multiplyScalar(c,f))),c=Z.normalize(Z.cross(l,s))}if(n!==0){let g=n*Math.PI/180,p=Math.cos(g),f=Math.sin(g);c=Z.normalize(Z.add(Z.multiplyScalar(c,p),Z.multiplyScalar(l,f)))}let u=Z.add(e.eye,Z.multiplyScalar(s,a));return{...e,target:u,up:c}},applyCameraShake(e,t,r){let{translationAmplitude:n,rotationAmplitude:o,frequency:A=2.5,octaves:i=3,seed:a=42}=r;if(n<=0&&o<=0)return e;let s=t*A,c=Xn(s,a,i)*n,l=Xn(s,a+101.5,i)*n,u=Xn(s,a+203.7,i)*(n*.5),g=Xn(s,a+307.1,i)*o,p=Xn(s,a+409.3,i)*o,f=Z.normalize(Z.subtract(e.target,e.eye)),d=Z.normalize(Z.cross(f,e.up)),h=Z.cross(d,f),I=Z.add(Z.multiplyScalar(d,c),Z.add(Z.multiplyScalar(h,l),Z.multiplyScalar(f,u))),b=Z.add(e.eye,I),Q=Z.add(e.target,Z.add(Z.multiplyScalar(d,p*10),Z.multiplyScalar(h,g*10)));return{...e,eye:b,target:Q}},computeCircleOfConfusion(e,t,r,n,o=32){if(t<=0||n<=0||e<=0)return 0;let A=Math.abs(e-t),i=r/n,a=A/e*i*.5;return Math.min(o,Math.max(0,a))},computeCameraFrustumPlanes(e){let t=r=>{let n=Math.hypot(r[0],r[1],r[2]);return n===0?r:[r[0]/n,r[1]/n,r[2]/n,r[3]/n]};return{left:t([e[3]+e[0],e[7]+e[4],e[11]+e[8],e[15]+e[12]]),right:t([e[3]-e[0],e[7]-e[4],e[11]-e[8],e[15]-e[12]]),bottom:t([e[3]+e[1],e[7]+e[5],e[11]+e[9],e[15]+e[13]]),top:t([e[3]-e[1],e[7]-e[5],e[11]-e[9],e[15]-e[13]]),near:t([e[2],e[6],e[10],e[14]]),far:t([e[3]-e[2],e[7]-e[6],e[11]-e[10],e[15]-e[14]])}},isBoxInFrustum(e,t,r){let n=[r.left,r.right,r.bottom,r.top,r.near,r.far];for(let o of n){let A=o[0]>0?t[0]:e[0],i=o[1]>0?t[1]:e[1],a=o[2]>0?t[2]:e[2];if(o[0]*A+o[1]*i+o[2]*a+o[3]<0)return!1}return!0}};$();var Ys={studio:{top:"#9da3ad",horizon:"#5d626b",bottom:"#202226",softboxes:3.5},soft:{top:"#f1efea",horizon:"#cfcac1",bottom:"#77726a",softboxes:1.2},sunset:{top:"#4d63a3",horizon:"#ff9a5c",bottom:"#3b2a28",softboxes:1},night:{top:"#121a3a",horizon:"#1f2950",bottom:"#05060b",softboxes:.5},neutral:{top:"#9a9a9a",horizon:"#808080",bottom:"#5c5c5c",softboxes:0}},Ws={none:0,aces:1,agx:2,neutral:3};function jr(e){let t=$i(e)??[0,0,0,1],r=n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4;return[r(t[0]),r(t[1]),r(t[2])]}function fa(e){let t=Ys[e.preset??"studio"],r=e.intensity??1,n=o=>[o[0]*r,o[1]*r,o[2]*r];return{top:n(jr(e.top??t.top)),horizon:n(jr(e.horizon??t.horizon)),bottom:n(jr(e.bottom??t.bottom)),softboxes:(e.softboxes??t.softboxes)*r,rotationRad:(e.rotation??0)*Math.PI/180,exposureMultiplier:2**(e.exposure??0),toneMapping:Ws[e.toneMapping??"neutral"],fog:e.fog?{color:jr(e.fog.color),start:e.fog.start,end:e.fog.end,opacity:Math.max(0,Math.min(1,e.fog.opacity??1))}:void 0,floor:e.floor?{y:e.floor.y,color:jr(e.floor.color??"#08070a"),reflectivity:Math.max(0,Math.min(1,e.floor.reflectivity??.35)),roughness:Math.max(0,Math.min(1,e.floor.roughness??.35)),fadeDistance:Math.max(0,e.floor.fadeDistance??900),opacity:Math.max(0,Math.min(1,e.floor.opacity??1))}:void 0}}$();var da=8,cA=768;function sA(e){if(!e)return[1,1,1];if(Array.isArray(e)){let o=e[0]??1,A=e[1]??1,i=e[2]??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e=="object"&&e!==null){let o=e.r??1,A=e.g??1,i=e.b??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e!="string")return[1,1,1];let t=e.trim().toLowerCase();if(t.startsWith("#")){let o=t.slice(1);if(o.length===3){let A=Number.parseInt(o[0]+o[0],16)/255,i=Number.parseInt(o[1]+o[1],16)/255,a=Number.parseInt(o[2]+o[2],16)/255;return[A,i,a]}if(o.length>=6){let A=Number.parseInt(o.slice(0,2),16)/255,i=Number.parseInt(o.slice(2,4),16)/255,a=Number.parseInt(o.slice(4,6),16)/255;return[A,i,a]}}let r=t.match(/rgba?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(r){let o=Number.parseFloat(r[1])/255,A=Number.parseFloat(r[2])/255,i=Number.parseFloat(r[3])/255;return[Math.max(0,Math.min(1,o)),Math.max(0,Math.min(1,A)),Math.max(0,Math.min(1,i))]}let n=t.match(/hsla?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)%?\s*,\s*([\d.]+)%?/);if(n){let o=Number.parseFloat(n[1])/360,A=Number.parseFloat(n[2])/100,i=Number.parseFloat(n[3])/100;return qs(o,A,i)}return[1,1,1]}function qs(e,t,r){if(t===0)return[r,r,r];let n=(i,a,s)=>{let c=s;return c<0&&(c+=1),c>1&&(c-=1),c<1/6?i+(a-i)*6*c:c<1/2?a:c<2/3?i+(a-i)*(2/3-c)*6:i},o=r<.5?r*(1+t):r+t-r*t,A=2*r-o;return[n(A,o,e+1/3),n(A,o,e),n(A,o,e-1/3)]}var vt={computeNormalMatrix(e){let t=Ee.invert(e);return t?[t[0],t[4],t[8],0,t[1],t[5],t[9],0,t[2],t[6],t[10],0,0,0,0,1]:Ee.identity()},processLight(e){let t=sA(e.color),r=e.intensity??1,n=e.position?e.position[0]:e.x??0,o=e.position?e.position[1]:e.y??0,A=e.position?e.position[2]:e.z??0,i=e.lightType??e.type??"directional",a=1;i==="ambient"?a=0:i==="directional"?a=1:i==="point"?a=2:i==="spot"&&(a=3);let s=[0,0,-1];if(e.direction)s=Z.normalize(e.direction);else if(e.target||e.targetX!==void 0||e.targetY!==void 0||e.targetZ!==void 0){let I=e.target?e.target[0]:e.targetX??n,b=e.target?e.target[1]:e.targetY??o,Q=e.target?e.target[2]:e.targetZ??A,m=[I,b,Q],w=Z.subtract(m,[n,o,A]);Z.length(w)>1e-4&&(s=Z.normalize(w))}let c=Math.max(1,e.radius??1e3),l=e.decay??2,u=Math.max(.1,Math.min(180,e.angle??45)),g=Math.max(0,Math.min(1,e.penumbra??.2)),p=u*Math.PI/180,f=p*(1-g),d=Math.cos(p),h=Math.cos(f);return{posType:[n,o,A,a],dirRadius:[s[0],s[1],s[2],c],colorIntensity:[t[0],t[1],t[2],r],spotParams:[d,h,l,0]}},packLightsUniforms(e,t,r,n=!1){let o=new Float32Array(cA/4);if(vt.packPhysicalBlock(o,e??[],t,r,n),(!e||e.length===0)&&!t)return o[4]=0,o[5]=0,o;let A=0,i=0,a=0,s=[];for(let l of e)if((l.lightType??l.type)==="ambient"){let g=sA(l.color),p=l.intensity??1;A+=g[0]*p,i+=g[1]*p,a+=g[2]*p}else s.push(vt.processLight(l));o[0]=A,o[1]=i,o[2]=a,o[3]=1,o[4]=s.length,o[5]=1;let c=8;for(let l=0;l<da;l++){if(l<s.length){let u=s[l];o[c+0]=u.posType[0],o[c+1]=u.posType[1],o[c+2]=u.posType[2],o[c+3]=u.posType[3],o[c+4]=u.dirRadius[0],o[c+5]=u.dirRadius[1],o[c+6]=u.dirRadius[2],o[c+7]=u.dirRadius[3],o[c+8]=u.colorIntensity[0],o[c+9]=u.colorIntensity[1],o[c+10]=u.colorIntensity[2],o[c+11]=u.colorIntensity[3],o[c+12]=u.spotParams[0],o[c+13]=u.spotParams[1],o[c+14]=u.spotParams[2],o[c+15]=u.spotParams[3]}else for(let u=0;u<16;u++)o[c+u]=0;c+=16}return o},packDirectLights(e,t=[]){let r=e.filter(A=>(A.lightType??A.type)!=="ambient"),n=new Float32Array(Math.max(1,r.length)*40),o=new Map(t.map((A,i)=>[A.lightIndex,i]));for(let[A,i]of r.entries()){let a=vt.processLight(i),s=A*40;n.set(a.posType,s),n.set(a.dirRadius,s+4),n.set(a.colorIntensity,s+8),n.set(a.spotParams,s+12);let c=o.get(A),l=c===void 0?void 0:t[c];if(l&&c!==void 0){for(let u=0;u<16;u++)n[s+16+u]=l.matrix[u]??0;n.set([l.softness,l.mapSize,c,1],s+32),n.set([l.bias,l.normalOffset,l.darkness,0],s+36)}}return n},shadowCasterIndex(e){let t=0;for(let r of e){let n=r.lightType??r.type;if(n!=="ambient"){if(r.castShadow&&(n==="directional"||n==="spot"))return t;t++}}return-1},packPhysicalBlock(e,t,r,n,o=!1){let A=8+da*16,i=0,a=0,s=0;for(let c of t){if((c.lightType??c.type)!=="ambient")continue;let[l,u,g]=sA(c.color),p=c.intensity??1,f=d=>d<=.04045?d/12.92:((d+.055)/1.055)**2.4;i+=f(l)*p,a+=f(u)*p,s+=f(g)*p}if(e[A+0]=i,e[A+1]=a,e[A+2]=s,e[A+3]=1,r){let c=fa(r);e[6]=1,e[7]=c.toneMapping,e[A+3]=c.exposureMultiplier,e.set([...c.top,c.rotationRad],A+4),e.set([...c.horizon,c.softboxes],A+8),e.set([...c.bottom,1],A+12),c.fog&&(e.set([...c.fog.color,1],A+16),e.set([c.fog.start,c.fog.end,c.fog.opacity,0],A+20))}if(n&&n.lightIndex>=0){e.set([1,n.lightIndex,n.softness,n.mapSize],A+24),e.set([n.bias,n.normalOffset,n.darkness,0],A+28);for(let c=0;c<16;c++)e[A+32+c]=n.matrix[c]??0}r?.floor?(e[A+48]=r.floor.y,e[A+49]=r.floor.fadeDistance??900,e[A+50]=o?1:0,e[A+51]=0):(e[A+48]=0,e[A+49]=0,e[A+50]=0,e[A+51]=0)}};$();var dr=class e{samples=[];frames=[];totalLength=0;constructor(t){if(t.length<2)throw new Error("Path3D requires at least 2 coordinate samples");this.samples=t,this.totalLength=t[t.length-1].distance,this.computeRotationMinimizingFrames()}computeRotationMinimizingFrames(){let t=this.samples.length;this.frames=new Array(t);let r=this.samples[0].tangent,n=[0,-1,0];Math.abs(Z.dot(r,n))>.95&&(n=[0,0,1]);let o=Z.normalize(Z.subtract(n,Z.multiplyScalar(r,Z.dot(n,r))));Z.lengthSq(o)<1e-4&&(o=[1,0,0]);let A=Z.normalize(Z.cross(r,o));this.frames[0]={normal:o,binormal:A,rotation:this.eulerFromFrame(r,o,A)};for(let i=0;i<t-1;i++){let a=this.samples[i].position,s=this.samples[i+1].position,c=this.samples[i].tangent,l=this.samples[i+1].tangent,u=this.frames[i].normal,g=Z.subtract(s,a),p=Z.dot(g,g),f;if(p>1e-8){let h=Z.subtract(c,Z.multiplyScalar(g,2*Z.dot(g,c)/p)),I=Z.subtract(u,Z.multiplyScalar(g,2*Z.dot(g,u)/p)),b=Z.subtract(l,h),Q=Z.dot(b,b);Q>1e-8?f=Z.subtract(I,Z.multiplyScalar(b,2*Z.dot(b,I)/Q)):f=I}else f=u;f=Z.normalize(Z.subtract(f,Z.multiplyScalar(l,Z.dot(l,f))));let d=Z.normalize(Z.cross(l,f));this.frames[i+1]={normal:f,binormal:d,rotation:this.eulerFromFrame(l,f,d)}}}eulerFromFrame(t,r,n){let o=Math.asin(Math.max(-1,Math.min(1,-t[1])))*(180/Math.PI),A=Math.atan2(t[0],t[2])*(180/Math.PI),i=Math.atan2(r[0],r[1])*(180/Math.PI);return[o,A,i]}getSamples(){return this.samples}getPoints(t=64){let r=Math.max(2,Math.round(t)),n=[];for(let o=0;o<r;o++)n.push(this.getPointAt(o/(r-1)).position);return n}getPointAt(t){let n=Math.max(0,Math.min(1,t))*this.totalLength;return this.getPointAtDistance(n)}getPointAtDistance(t){let r=Math.max(0,Math.min(this.totalLength,t)),n=this.samples.length,o=0,A=n-1;for(;o<A;){let Q=o+A>>1;this.samples[Q].distance<r?o=Q+1:A=Q}let i=Math.max(1,o),a=i-1,s=this.samples[a],c=this.samples[i],l=c.distance-s.distance,u=l>1e-6?(r-s.distance)/l:0,g=Z.lerp(s.position,c.position,u),p=Z.normalize(Z.lerp(s.tangent,c.tangent,u)),f=this.frames[a],d=this.frames[i],h=Z.normalize(Z.lerp(f.normal,d.normal,u)),I=Z.normalize(Z.cross(p,h)),b=[f.rotation[0]+(d.rotation[0]-f.rotation[0])*u,f.rotation[1]+(d.rotation[1]-f.rotation[1])*u,f.rotation[2]+(d.rotation[2]-f.rotation[2])*u];return{position:g,tangent:p,normal:h,binormal:I,distance:r,t:this.totalLength>0?r/this.totalLength:0,rotation:b}}static catmullRom(t,r={}){if(t.length<2)throw new Error("Catmull-Rom spline requires at least 2 waypoints");let n=!!r.closed,o=r.samplesPerSegment??40,A=[];if(n)A.push(t[t.length-1]),A.push(...t),A.push(t[0]),A.push(t[1]);else{let s=t[0],c=t[1],l=t[t.length-1],u=t[t.length-2];A.push(Z.subtract(s,Z.subtract(c,s))),A.push(...t),A.push(Z.add(l,Z.subtract(l,u)))}let i=n?t.length:t.length-1,a=[];for(let s=0;s<i;s++){let c=A[s],l=A[s+1],u=A[s+2],g=A[s+3],p=s===i-1?o:o-1;for(let f=0;f<=p;f++){let d=f/o,h=d*d,I=h*d,b=-.5*I+h-.5*d,Q=1.5*I-2.5*h+1,m=-1.5*I+2*h+.5*d,w=.5*I-.5*h,v=[b*c[0]+Q*l[0]+m*u[0]+w*g[0],b*c[1]+Q*l[1]+m*u[1]+w*g[1],b*c[2]+Q*l[2]+m*u[2]+w*g[2]],S=-1.5*h+2*d-.5,N=4.5*h-5*d,_=-4.5*h+4*d+.5,G=1.5*h-1*d,j=[S*c[0]+N*l[0]+_*u[0]+G*g[0],S*c[1]+N*l[1]+_*u[1]+G*g[1],S*c[2]+N*l[2]+_*u[2]+G*g[2]],R=Z.normalize(j);a.push({position:v,tangent:R})}}return e.fromRawSamples(a)}static fromRawSamples(t){let r=0,n=t.map((o,A)=>(A>0&&(r+=Z.distance(o.position,t[A-1].position)),{position:o.position,tangent:o.tangent,distance:r}));if(n.length===0)throw new TypeError("Path3D needs samples");return new e(n)}static bezier(t,r=50){if(t.length===0)throw new Error("Bezier path requires at least 1 segment");let n=[];for(let o=0;o<t.length;o++){let A=t[o],i=o===t.length-1?r:r-1;for(let a=0;a<=i;a++){let s=a/r,c=1-s,l=c*c,u=l*c,g=s*s,p=g*s,f=[u*A.p0[0]+3*l*s*A.p1[0]+3*c*g*A.p2[0]+p*A.p3[0],u*A.p0[1]+3*l*s*A.p1[1]+3*c*g*A.p2[1]+p*A.p3[1],u*A.p0[2]+3*l*s*A.p1[2]+3*c*g*A.p2[2]+p*A.p3[2]],d=[3*l*(A.p1[0]-A.p0[0])+6*c*s*(A.p2[0]-A.p1[0])+3*g*(A.p3[0]-A.p2[0]),3*l*(A.p1[1]-A.p0[1])+6*c*s*(A.p2[1]-A.p1[1])+3*g*(A.p3[1]-A.p2[1]),3*l*(A.p1[2]-A.p0[2])+6*c*s*(A.p2[2]-A.p1[2])+3*g*(A.p3[2]-A.p2[2])],h=Z.normalize(d);n.push({position:f,tangent:h})}}return e.fromRawSamples(n)}static helix(t){let{center:r,radius:n,pitch:o,turns:A,axis:i="z",samplesPerTurn:a=60}=t,s=Math.max(10,Math.round(A*a)),c=[];for(let l=0;l<=s;l++){let u=l/s,g=u*A*Math.PI*2,p=(u-.5)*o*A,f=Math.cos(g),d=Math.sin(g),h,I;i==="z"?(h=[r[0]+n*f,r[1]+n*d,r[2]+p],I=[-n*d,n*f,o*A/(A*Math.PI*2)]):i==="y"?(h=[r[0]+n*f,r[1]+p,r[2]+n*d],I=[-n*d,o*A/(A*Math.PI*2),n*f]):(h=[r[0]+p,r[1]+n*f,r[2]+n*d],I=[o*A/(A*Math.PI*2),-n*d,n*f]),c.push({position:h,tangent:Z.normalize(I)})}return e.fromRawSamples(c)}static circle(t){let{center:r,radius:n,startAngleDeg:o=0,endAngleDeg:A=360,samples:i=128}=t,a=o*Math.PI/180,s=A*Math.PI/180,c=[];for(let l=0;l<=i;l++){let u=a+(s-a)*(l/i),g=Math.cos(u),p=Math.sin(u),f=[r[0]+n*g,r[1],r[2]+n*p],d=[-n*p,0,n*g];c.push({position:f,tangent:Z.normalize(d)})}return e.fromRawSamples(c)}};$();Pt();$();Pt();var lA={".ktx2":"image/ktx2",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".tif":"image/tiff",".tiff":"image/tiff",".avif":"image/avif"};function Zn(e){return lA[$e.extname(e).toLowerCase()]??"image/png"}function xo(e){let t=$e.extname(e.replace(/\\/g,"/")).toLowerCase();return!t||t in lA}function $n(e,t){if(!e||typeof Re>"u"||!Re.existsSync||!xo(e))return;let r=e.trim().replace(/^file:\/\//,"");try{r=decodeURIComponent(r)}catch{}let n=r.replace(/\\/g,"/"),o=n.split("/").pop()??n,A=[];if($e.isAbsolute(n)&&A.push(n),t){A.push($e.resolve(t,n)),A.push($e.join(t,o)),A.push($e.join(t,"textures",o));try{for(let i of Re.readdirSync(t))i.toLowerCase().endsWith(".fbm")&&A.push($e.join(t,i,o))}catch{}}for(let i of A)try{if(Re.existsSync(i)&&Re.statSync(i).isFile())return{bytes:new Uint8Array(Re.readFileSync(i)),mime:Zn(i)}}catch{}}function Zr(e,t,r){let n=xo(r)?"was not found":`is in an unsupported format (use ${Object.keys(lA).join(", ")})`;console.warn(`[${e}] Texture "${r}" for material "${t}" ${n}; the material renders without it.`)}var eo=class e{static parse(t,r,n){let o=typeof r=="object"&&r!==null?r:n??{},A=typeof r=="string"?r:o.mtlText,i=[],a=[],s=[],c=[],l={materialName:"default",faces:[]};c.push(l);let u={};A&&Object.assign(u,e.loadTextures(e.parseMtl(A),o.basePath));let g=t.split(/\r?\n/);for(let y=0;y<g.length;y++){let ye=g[y]?.trim();if(!ye||ye.startsWith("#"))continue;let Qe=ye.split(/\s+/),xe=Qe[0]?.toLowerCase();if(xe==="mtllib"){let le=Qe.slice(1).join(" ").trim();if(o.basePath&&typeof Re<"u"&&Re.existsSync)try{let ge=$e.resolve(o.basePath,le);if(Re.existsSync(ge)){let be=Re.readFileSync(ge,"utf-8");Object.assign(u,e.loadTextures(e.parseMtl(be),$e.dirname(ge)))}}catch{}}else if(xe==="v"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");i.push([le,ge,be])}else if(xe==="vn"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");a.push([le,ge,be])}else if(xe==="vt"){let le=Number.parseFloat(Qe[1]??"0"),ge=Qe[2]!==void 0?Number.parseFloat(Qe[2]):0;s.push([le,ge])}else if(xe==="usemtl"){let le=Qe[1]??"default";l.faces.length>0?(l={materialName:le,faces:[]},c.push(l)):l.materialName=le}else if(xe==="f"){let le=[];for(let ge=1;ge<Qe.length;ge++){let be=Qe[ge];if(!be)continue;let we=be.split("/"),_e=Number.parseInt(we[0]??"0",10),Ge=we[1]&&we[1].length>0?Number.parseInt(we[1],10):0,Ue=we[2]&&we[2].length>0?Number.parseInt(we[2],10):0;_e<0&&(_e=i.length+_e+1),Ge<0&&(Ge=s.length+Ge+1),Ue<0&&(Ue=a.length+Ue+1),le.push({v:_e-1,vt:Ge-1,vn:Ue-1})}if(le.length>=3)for(let ge=1;ge<le.length-1;ge++){let be=le[0],we=le[ge],_e=le[ge+1];be&&we&&_e&&l.faces.push([be,we,_e])}}}let p=1/0,f=1/0,d=1/0,h=-1/0,I=-1/0,b=-1/0;for(let y of i){let[ye,Qe,xe]=y;ye===void 0||Qe===void 0||xe===void 0||(ye<p&&(p=ye),Qe<f&&(f=Qe),xe<d&&(d=xe),ye>h&&(h=ye),Qe>I&&(I=Qe),xe>b&&(b=xe))}Number.isFinite(p)||(p=-1,f=-1,d=-1,h=1,I=1,b=1);let Q=(p+h)*.5,m=(f+I)*.5,w=(d+b)*.5,v=Math.max(1e-4,h-p),S=Math.max(1e-4,I-f),N=Math.max(1e-4,b-d),_=Math.max(v,S,N),G=1;o.normalizeSize&&o.normalizeSize>0&&(G=o.normalizeSize/_),typeof o.scale=="number"&&(G*=o.scale);let j=o.center??!1,R=j?Q:0,K=j?m:0,z=j?w:0,J=[];for(let y=0;y<c.length;y++){let ye=c[y];if(!ye||ye.faces.length===0)continue;let Qe=new Map,xe=[],le=[],ge=[],be=[],we=!1;for(let Ue of ye.faces)for(let Me of Ue){let He=`${Me.v}_${Me.vt}_${Me.vn}`,Te=Qe.get(He);if(Te===void 0){Te=xe.length/3,Qe.set(He,Te);let je=i[Me.v]??[0,0,0],Le=((je[0]??0)-R)*G,Je=((je[1]??0)-K)*G,nt=((je[2]??0)-z)*G;if(xe.push(Le,Je,nt),Me.vt>=0&&s[Me.vt]){let qe=s[Me.vt];ge.push(qe[0]??0,1-(qe[1]??0))}else ge.push(0,0);if(Me.vn>=0&&a[Me.vn]){we=!0;let qe=a[Me.vn];le.push(qe[0]??0,qe[1]??0,qe[2]??0)}else le.push(0,0,0)}be.push(Te)}if(!we||o.smoothNormals){let Ue=new Float32Array(xe.length);for(let Me=0;Me<be.length;Me+=3){let He=be[Me],Te=be[Me+1],je=be[Me+2],Le=[xe[He*3],xe[He*3+1],xe[He*3+2]],Je=[xe[Te*3],xe[Te*3+1],xe[Te*3+2]],nt=[xe[je*3],xe[je*3+1],xe[je*3+2]],qe=Z.subtract(Je,Le),yt=Z.subtract(nt,Le),ze=Z.cross(qe,yt);Ue[He*3]+=ze[0],Ue[He*3+1]+=ze[1],Ue[He*3+2]+=ze[2],Ue[Te*3]+=ze[0],Ue[Te*3+1]+=ze[1],Ue[Te*3+2]+=ze[2],Ue[je*3]+=ze[0],Ue[je*3+1]+=ze[1],Ue[je*3+2]+=ze[2]}for(let Me=0;Me<xe.length/3;Me++){let He=Ue[Me*3],Te=Ue[Me*3+1],je=Ue[Me*3+2],Le=Math.hypot(He,Te,je)||1;le[Me*3]=He/Le,le[Me*3+1]=Te/Le,le[Me*3+2]=je/Le}}let Ge=xe.length/3>65535?new Uint32Array(be):new Uint16Array(be);J.push({id:`mesh_${y}`,name:ye.materialName,positions:new Float32Array(xe),normals:new Float32Array(le),uvs:new Float32Array(ge),indices:Ge,materialName:ye.materialName})}let W=(p-R)*G,X=(f-K)*G,Ae=(d-z)*G,re=(h-R)*G,oe=(I-K)*G,ne=(b-z)*G,ie=re-W,he=oe-X,F=ne-Ae,Be=(W+re)*.5,Se=(X+oe)*.5,Pe=(Ae+ne)*.5,Ie=Math.hypot(ie,he,F)*.5;return{meshes:J,materials:u,animations:[],bounds:{min:[W,X,Ae],max:[re,oe,ne],center:[Be,Se,Pe],size:[ie,he,F],boundingSphereRadius:Ie}}}static parseMtl(t){let r={},n=null,o=t.split(/\r?\n/);for(let A of o){let i=A.trim();if(!i||i.startsWith("#"))continue;let a=i.split(/\s+/),s=a[0]?.toLowerCase();if(s==="newmtl"){let c=a[1]??"default";n={name:c,diffuseColor:[1,1,1,1],specularColor:[1,1,1],ambientColor:[.2,.2,.2],shininess:32,opacity:1},r[c]=n}else if(n)if(s==="kd"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.diffuseColor=[c,l,u,n.diffuseColor?.[3]??1]}else if(s==="ks"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.specularColor=[c,l,u],n.specularIntensity=(c+l+u)/3}else if(s==="ka"){let c=Number.parseFloat(a[1]??"0.2"),l=Number.parseFloat(a[2]??"0.2"),u=Number.parseFloat(a[3]??"0.2");n.ambientColor=[c,l,u]}else if(s==="ns")n.shininess=Number.parseFloat(a[1]??"32");else if(s==="d"||s==="tr"){let c=Number.parseFloat(a[1]??"1");n.opacity=s==="d"?c:1-c,n.diffuseColor&&(n.diffuseColor[3]=n.opacity)}else if(s==="map_kd"){n.diffuseTexture=e.mapFileName(a);let c=a.findIndex(l=>l.toLowerCase()==="-clamp");n.textureWrap=c>0&&a[c+1]?.toLowerCase()==="on"?"clamp":"repeat"}else(s==="norm"||s==="map_kn")&&(n.normalTexture=e.mapFileName(a))}return r}static MAP_OPTION_ARGS={"-blendu":1,"-blendv":1,"-cc":1,"-clamp":1,"-texres":1,"-bm":1,"-boost":1,"-imfchan":1,"-type":1,"-mm":2};static mapFileName(t){let r=1;for(;r<t.length&&t[r]?.startsWith("-");){let n=t[r].toLowerCase();if(r++,n==="-o"||n==="-s"||n==="-t")for(let o=0;o<3&&r<t.length&&!Number.isNaN(Number(t[r]));o++)r++;else r+=e.MAP_OPTION_ARGS[n]??0}return t.slice(r).join(" ")}static loadTextures(t,r){if(!r)return t;for(let n of Object.values(t)){if(n.diffuseTexture&&!n.diffuseTextureBuffer){let o=$n(n.diffuseTexture,r);o?(n.diffuseTextureBuffer=o.bytes,n.diffuseTextureMime=o.mime):Zr("ObjLoader",n.name,n.diffuseTexture)}if(n.normalTexture&&!n.normalTextureBuffer){let o=$n(n.normalTexture,r);o?n.normalTextureBuffer=o.bytes:Zr("ObjLoader",n.name,n.normalTexture)}}return t}};function Wu(e,t,r={}){return eo.parse(e,t,r)}function qu(e){return eo.parseMtl(e)}function to(e,t,r={}){let n;if(typeof e!="string")n=new TextDecoder().decode(e);else{let o=e.trim();if(!(o.startsWith("v ")||o.startsWith("#")||o.includes(`
|
|
1
|
+
import{p as aa,s as Co,t as sa,x as aA}from"./chunk-7M5LE6EM.mjs";import{c as Zi}from"./chunk-CJ4CSVU3.mjs";import{a as Ki,c as zi,i as Yi,j as Wi}from"./chunk-HOV6DDBZ.mjs";import{h as qi,l as Xi}from"./chunk-RECQ74RP.mjs";import{e as ra}from"./chunk-GXFYRMJZ.mjs";import{h as Ji}from"./chunk-ULOFDFHJ.mjs";import{A as ia,j as fr,w as na,x as oa,y as We,z as Aa}from"./chunk-64L4GUOF.mjs";import{r as Re,s as ta,t as Pt}from"./chunk-QEWDIPJ7.mjs";import{a as qr}from"./chunk-354GX6IB.mjs";import{c as $i,e as ea}from"./chunk-5RRKGN2U.mjs";import{o as $e}from"./chunk-BDZ3TSOT.mjs";import{b as qn,d as iA,e as Vi,f as me,g as $}from"./chunk-Y4NIR77Z.mjs";var ma=qn(($u,ha)=>{$();var wo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":wo(),apply:()=>wo(),construct:()=>wo()});ha.exports=wo()});var wa=qn((pA,So)=>{$();var L=L||{};L.scope={};L.ASSUME_ES2020=!1;L.ASSUME_ES6=L.ASSUME_ES2020;L.ASSUME_ES5=L.ASSUME_ES6;L.ASSUME_NO_NATIVE_MAP=!1;L.ASSUME_NO_NATIVE_SET=!1;L.ISOLATE_POLYFILLS=!1;L.FORCE_POLYFILL_PROMISE=!1;L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;L.INSTRUMENT_ASYNC_CONTEXT=!0;L.objectCreate=L.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};L.defineProperty=L.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};L.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};L.global=L.ASSUME_ES2020?globalThis:L.getGlobal(pA);L.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";L.TRUST_ES6_POLYFILLS=!L.ISOLATE_POLYFILLS||L.IS_SYMBOL_NATIVE;L.polyfills={};L.propertyToPolyfillSymbol={};L.POLYFILL_PREFIX="$jscp$";L.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return L.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();L.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<L.TYPED_ARRAY_CLASSES.length;o++){var A=L.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;L.ISOLATE_POLYFILLS?L.polyfillIsolated(A,t,r,n):L.polyfillUnisolated(A,t,r,n)}};L.polyfill=function(e,t,r,n){t&&(L.ISOLATE_POLYFILLS?L.polyfillIsolated(e,t,r,n):L.polyfillUnisolated(e,t,r,n))};L.polyfillUnisolated=function(e,t,r,n){for(r=L.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&L.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};L.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in L.polyfills?L.polyfills:L.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=L.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?L.defineProperty(L.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(L.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,L.propertyToPolyfillSymbol[o]=L.IS_SYMBOL_NATIVE?L.global.Symbol(o):L.POLYFILL_PREFIX+r+"$"+o),L.defineProperty(n,L.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};L.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(L.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=L.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};L.construct={valueOf:L.getConstructImplementation}.valueOf();L.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};L.setPrototypeOf=L.ASSUME_ES6||L.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:L.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;L.inherits=function(e,t){if(e.prototype=L.objectCreate(t.prototype),e.prototype.constructor=e,L.ASSUME_ES6||L.setPrototypeOf){var r=L.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};L.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};L.arrayIterator=function(e){return{next:L.arrayIteratorImpl(e)}};L.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return L.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};L.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};L.arrayFromIterable=function(e){return e instanceof Array?e:L.arrayFromIterator(L.makeIterator(e))};L.createTemplateTagFirstArg=function(e){return L.createTemplateTagFirstArgWithRaw(e,e)};L.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};L.generator={};L.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};L.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};L.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};L.generator.Context.prototype.stop_=function(){this.isRunning_=!1};L.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};L.generator.Context.prototype.next_=function(e){this.yieldResult=e};L.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.return=L.generator.Context.prototype.return;L.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.jumpThroughFinallyBlocks=L.generator.Context.prototype.jumpThroughFinallyBlocks;L.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};L.generator.Context.prototype.yield=L.generator.Context.prototype.yield;L.generator.Context.prototype.yieldAll=function(e,t){e=L.makeIterator(e);var r=e.next();if(L.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};L.generator.Context.prototype.yieldAll=L.generator.Context.prototype.yieldAll;L.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};L.generator.Context.prototype.jumpTo=L.generator.Context.prototype.jumpTo;L.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};L.generator.Context.prototype.jumpToEnd=L.generator.Context.prototype.jumpToEnd;L.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};L.generator.Context.prototype.setCatchFinallyBlocks=L.generator.Context.prototype.setCatchFinallyBlocks;L.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};L.generator.Context.prototype.setFinallyBlock=L.generator.Context.prototype.setFinallyBlock;L.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};L.generator.Context.prototype.leaveTryBlock=L.generator.Context.prototype.leaveTryBlock;L.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};L.generator.Context.prototype.enterCatchBlock=L.generator.Context.prototype.enterCatchBlock;L.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};L.generator.Context.prototype.enterFinallyBlock=L.generator.Context.prototype.enterFinallyBlock;L.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};L.generator.Context.prototype.leaveFinallyBlock=L.generator.Context.prototype.leaveFinallyBlock;L.generator.Context.prototype.forIn=function(e){return new L.generator.Context.PropertyIterator(e)};L.generator.Context.prototype.forIn=L.generator.Context.prototype.forIn;L.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};L.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};L.generator.Context.PropertyIterator.prototype.getNext=L.generator.Context.PropertyIterator.prototype.getNext;L.generator.Engine_=function(e){this.context_=new L.generator.Context,this.program_=e};L.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};L.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};L.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};L.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(L.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};L.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};L.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};L.generator.createGenerator=function(e,t){return t=new L.generator.Generator_(new L.generator.Engine_(t)),L.setPrototypeOf&&e.prototype&&L.setPrototypeOf(t,e.prototype),t};L.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};L.asyncExecutePromiseGeneratorFunction=function(e){return L.asyncExecutePromiseGenerator(e())};L.asyncExecutePromiseGeneratorProgram=function(e){return L.asyncExecutePromiseGenerator(new L.generator.Generator_(new L.generator.Engine_(e)))};L.polyfill("globalThis",function(e){return e||L.global},"es_2020","es3");L.polyfill("Reflect",function(e){return e||{}},"es6","es3");L.polyfill("Reflect.construct",function(e){return L.construct},"es6","es3");L.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(L.setPrototypeOf){var t=L.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");L.initSymbol=function(){};L.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,L.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");L.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),L.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return L.iteratorPrototype(L.arrayIteratorImpl(this))}}),e)},"es6","es3");L.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};L.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(L.FORCE_POLYFILL_PROMISE||L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof L.global.PromiseRejectionEvent>"u")||!L.global.Promise||L.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=L.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=L.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=L.global.CustomEvent,a=L.global.Event,s=L.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=L.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=L.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=L.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");L.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};L.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=L.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");L.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=L.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var gA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(ee){ee&&typeof ee=="object"&&(ee=ee.ptr),this.ptr=Dn(ee),j(o)[this.ptr]=this}function A(){this.ptr=mn(),j(A)[this.ptr]=this}function i(){this.ptr=Fe(),j(i)[this.ptr]=this}function a(){this.ptr=C(),j(a)[this.ptr]=this}function s(){this.ptr=Lr(),j(s)[this.ptr]=this}function c(){this.ptr=Nr(),j(c)[this.ptr]=this}function l(){this.ptr=kr(),j(l)[this.ptr]=this}function u(){this.ptr=Gr(),j(u)[this.ptr]=this}function g(){this.ptr=Mr(),j(g)[this.ptr]=this}function p(){this.ptr=ir(),j(p)[this.ptr]=this}function f(){this.ptr=ct(),j(f)[this.ptr]=this}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function h(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Ar),D=E/4,P=0;P<ee.length;P++)Ar[D+P]=ee[P];return E}return ee}function I(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Nt),D=E/4,P=0;P<ee.length;P++)Nt[D+P]=ee[P];return E}return ee}function b(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,or),D=E/2,P=0;P<ee.length;P++)or[D+P]=ee[P];return E}return ee}function Q(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function m(ee){if(typeof ee=="string"){ee=ht(ee);for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function w(ee){return ee.__class__}function v(ee){return ee.ptr}function S(ee,E){return ee.ptr===E.ptr}function N(ee){if(!ee.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ee.__destroy__(),delete j(ee.__class__)[ee.ptr]}function _(ee,E){return G(ee.ptr,E)}function G(ee,E){var D=j(E),P=D[ee];return P||(P=Object.create((E||R).prototype),P.ptr=ee,D[ee]=P)}function j(ee){return(ee||R).__cache__}function R(){}function K(){var ee,E,D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return oe(),ee=F.setStatus,ee?(ee("Running..."),P.yield(new Promise(function(Y){return setTimeout(Y,1)}),3)):P.jumpTo(2);if(P.getNextAddressJsc()!=2&&setTimeout(ee,1,""),Ue)return P.return();je=!0,nt(_t),Hr.e(),(D=(E=F).onRuntimeInitialized)==null||D.call(E),re(),P.jumpToEnd()})}function z(){function ee(U){return U=Hr=U.exports,F._webidl_free=U.f,F._free=U.g,F._webidl_malloc=U.h,F._malloc=U.i,wr=F._emscripten_bind_VoidPtr___destroy___0=U.j,ct=F._emscripten_bind_GeometryAttribute_GeometryAttribute_0=U.k,Wt=F._emscripten_bind_GeometryAttribute___destroy___0=U.l,ir=F._emscripten_bind_PointAttribute_PointAttribute_0=U.m,it=F._emscripten_bind_PointAttribute_size_0=U.n,wt=F._emscripten_bind_PointAttribute_attribute_type_0=U.o,Tt=F._emscripten_bind_PointAttribute_data_type_0=U.p,qt=F._emscripten_bind_PointAttribute_num_components_0=U.q,Xt=F._emscripten_bind_PointAttribute_normalized_0=U.r,Zt=F._emscripten_bind_PointAttribute_byte_stride_0=U.s,$t=F._emscripten_bind_PointAttribute_byte_offset_0=U.t,vr=F._emscripten_bind_PointAttribute_unique_id_0=U.u,Dr=F._emscripten_bind_PointAttribute___destroy___0=U.v,Mr=F._emscripten_bind_PointCloud_PointCloud_0=U.w,_r=F._emscripten_bind_PointCloud_num_attributes_0=U.x,Sr=F._emscripten_bind_PointCloud_num_points_0=U.y,Pr=F._emscripten_bind_PointCloud___destroy___0=U.z,Gr=F._emscripten_bind_Mesh_Mesh_0=U.A,Rr=F._emscripten_bind_Mesh_num_faces_0=U.B,Fr=F._emscripten_bind_Mesh_num_attributes_0=U.C,ar=F._emscripten_bind_Mesh_num_points_0=U.D,Lt=F._emscripten_bind_Mesh_set_num_points_1=U.E,Ur=F._emscripten_bind_Mesh___destroy___0=U.F,kr=F._emscripten_bind_Metadata_Metadata_0=U.G,sr=F._emscripten_bind_Metadata___destroy___0=U.H,Nr=F._emscripten_bind_DracoInt8Array_DracoInt8Array_0=U.I,cr=F._emscripten_bind_DracoInt8Array_GetValue_1=U.J,Ot=F._emscripten_bind_DracoInt8Array_size_0=U.K,Tr=F._emscripten_bind_DracoInt8Array___destroy___0=U.L,Lr=F._emscripten_bind_MetadataBuilder_MetadataBuilder_0=U.M,lr=F._emscripten_bind_MetadataBuilder_AddStringEntry_3=U.N,er=F._emscripten_bind_MetadataBuilder_AddIntEntry_3=U.O,lt=F._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=U.P,Ht=F._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=U.Q,ur=F._emscripten_bind_MetadataBuilder___destroy___0=U.R,C=F._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=U.S,x=F._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=U.T,k=F._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=U.U,V=F._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=U.V,q=F._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=U.W,te=F._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=U.X,ae=F._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=U.Y,se=F._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=U.Z,pe=F._emscripten_bind_PointCloudBuilder_AddMetadata_2=U._,ue=F._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=U.$,de=F._emscripten_bind_PointCloudBuilder_SetNormalizedFlagForAttribute_3=U.aa,ve=F._emscripten_bind_PointCloudBuilder___destroy___0=U.ba,Fe=F._emscripten_bind_MeshBuilder_MeshBuilder_0=U.ca,Ke=F._emscripten_bind_MeshBuilder_AddFacesToMesh_3=U.da,Ne=F._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=U.ea,rt=F._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=U.fa,at=F._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=U.ga,St=F._emscripten_bind_MeshBuilder_AddFloatAttribute_5=U.ha,ut=F._emscripten_bind_MeshBuilder_AddInt8Attribute_5=U.ia,gr=F._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=U.ja,pr=F._emscripten_bind_MeshBuilder_AddInt16Attribute_5=U.ka,ln=F._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=U.la,un=F._emscripten_bind_MeshBuilder_AddInt32Attribute_5=U.ma,gn=F._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=U.na,pn=F._emscripten_bind_MeshBuilder_AddMetadata_2=U.oa,fn=F._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=U.pa,dn=F._emscripten_bind_MeshBuilder_SetNormalizedFlagForAttribute_3=U.qa,hn=F._emscripten_bind_MeshBuilder___destroy___0=U.ra,mn=F._emscripten_bind_Encoder_Encoder_0=U.sa,In=F._emscripten_bind_Encoder_SetEncodingMethod_1=U.ta,Bn=F._emscripten_bind_Encoder_SetAttributeQuantization_2=U.ua,bn=F._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=U.va,En=F._emscripten_bind_Encoder_SetSpeedOptions_2=U.wa,yn=F._emscripten_bind_Encoder_SetTrackEncodedProperties_1=U.xa,Cn=F._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=U.ya,Qn=F._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=U.za,xn=F._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=U.Aa,wn=F._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=U.Ba,vn=F._emscripten_bind_Encoder___destroy___0=U.Ca,Dn=F._emscripten_bind_ExpertEncoder_ExpertEncoder_1=U.Da,Mn=F._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=U.Ea,_n=F._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=U.Fa,Sn=F._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=U.Ga,Pn=F._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=U.Ha,Gn=F._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=U.Ia,Rn=F._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=U.Ja,Fn=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=U.Ka,Un=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=U.La,kn=F._emscripten_bind_ExpertEncoder___destroy___0=U.Ma,Nn=F._emscripten_enum_draco_GeometryAttribute_Type_INVALID=U.Na,Tn=F._emscripten_enum_draco_GeometryAttribute_Type_POSITION=U.Oa,Ln=F._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=U.Pa,On=F._emscripten_enum_draco_GeometryAttribute_Type_COLOR=U.Qa,Hn=F._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=U.Ra,jn=F._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=U.Sa,Vn=F._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=U.Ta,Jn=F._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=U.Ua,Kn=F._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=U.Va,zn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=U.Wa,Yn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=U.Xa,Or=U.d,ne(),Hr}var E,D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){return U.getNextAddressJsc()==1?(E={a:Wn},(D=F.instantiateWasm)?U.return(new Promise(function(Ce){D(E,function(ot){return Ce(ee(ot))})})):(Le!=null||(Le=ie("draco_encoder.wasm")),U.yield(J(Ge,Le,E),2))):(P=U.getYieldResultJsc(),Y=ee(P.instance),U.return(Y))})}function J(ee,E,D){var P,Y,U;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Ce){switch(Ce.getNextAddressJsc()){case 1:if(ee||Me(E)||ye){Ce.jumpTo(2);break}return Ce.setCatchFinallyBlocks(3),P=fetch(E,{credentials:"same-origin"}),Ce.yield(WebAssembly.instantiateStreaming(P,D),5);case 5:return Y=Ce.getYieldResultJsc(),Ce.return(Y);case 3:U=Ce.enterCatchBlock(),_e("wasm streaming compile failed: "+U),_e("falling back to ArrayBuffer instantiation");case 2:return Ce.return(W(E,D))}})}function W(ee,E){var D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){switch(U.getNextAddressJsc()){case 1:return U.setCatchFinallyBlocks(2),U.yield(X(ee),4);case 4:return D=U.getYieldResultJsc(),U.yield(WebAssembly.instantiate(D,E),5);case 5:return P=U.getYieldResultJsc(),U.return(P);case 2:Y=U.enterCatchBlock(),_e("failed to asynchronously prepare wasm: "+Y),Ae(Y),U.jumpToEnd()}})}function X(ee){var E;return(0,L.asyncExecutePromiseGeneratorProgram)(function(D){switch(D.getNextAddressJsc()){case 1:if(Ge){D.jumpTo(2);break}return D.setCatchFinallyBlocks(3),D.yield(ge(ee),5);case 5:return E=D.getYieldResultJsc(),D.return(new Uint8Array(E));case 3:D.enterCatchBlock();case 2:var P=D.return;if(ee==Le&&Ge)var Y=new Uint8Array(Ge);else if(be)Y=be(ee);else throw"both async and sync fetching of the wasm failed";return P.call(D,Y)}})}function Ae(ee){var E,D;throw(D=(E=F).onAbort)==null||D.call(E,ee),ee="Aborted("+ee+")",_e(ee),Ue=!0,new WebAssembly.RuntimeError(ee+". Build with -sASSERTIONS for more info.")}function re(){var ee=F.postRun;ee&&(typeof ee=="function"&&(ee=[ee]),qe.push.apply(qe,(0,L.arrayFromIterable)(ee))),nt(qe)}function oe(){var ee=F.preRun;ee&&(typeof ee=="function"&&(ee=[ee]),yt.push.apply(yt,(0,L.arrayFromIterable)(ee))),nt(yt)}function ne(){var ee,E;!((ee=Je)==null||(E=ee.buffer)==null)&&E.resizable||(ee=Or.buffer,F.HEAP8=Je=new Int8Array(ee),F.HEAP16=or=new Int16Array(ee),F.HEAPU8=dt=new Uint8Array(ee),F.HEAPU16=new Uint16Array(ee),F.HEAP32=Nt=new Int32Array(ee),F.HEAPU32=ze=new Uint32Array(ee),F.HEAPF32=Ar=new Float32Array(ee),F.HEAPF64=new Float64Array(ee))}function ie(ee){return F.locateFile?F.locateFile(ee,le):le+ee}function he(ee){return typeof ee!="string"?!1:(ee=ee.split("."),ee.length<2||ee.length>3?!1:ee[0]==1&&ee[1]>=0&&ee[1]<=5?!0:!(ee[0]!=0||ee[1]>10))}n=n===void 0?{}:n;var F,Be,Se,Pe,Ie,y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,xr,or,Nt,Ar,xt,wr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,vr,Dr,Mr,_r,Sr,Pr,Gr,Rr,Fr,ar,Lt,Ur,kr,sr,Nr,cr,Ot,Tr,Lr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Yn,Or,Wn,Hr,De;return(0,L.asyncExecutePromiseGeneratorProgram)(function(ee){if(ee.getNextAddressJsc()==1){if(F=n,Be=!!globalThis.window,Se=!!globalThis.WorkerGlobalScope,ye=((Pe=globalThis.process)==null||(Ie=Pe.versions)==null?void 0:Ie.node)&&((y=globalThis.process)==null?void 0:y.type)!="renderer",xe=Qe=!1,F.onRuntimeInitialized=function(){Qe=!0,xe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.onModuleParsed=function(){xe=!0,Qe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.isVersionSupported=he,typeof __filename<"u"?r=__filename:Se&&(r=self.location.href),le="",ye)we=(Pt(),Vi(ta)),le=__dirname+"/",be=function(E){return E=Me(E)?new URL(E):E,we.readFileSync(E)},ge=function(E,D){D=D===void 0?!0:D;var P;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Y){return E=Me(E)?new URL(E):E,P=we.readFileSync(E,D?void 0:"utf8"),Y.return(P)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(Be||Se){try{le=new URL(".",r).href}catch{}Se&&(be=function(E){var D=new XMLHttpRequest;return D.open("GET",E,!1),D.responseType="arraybuffer",D.send(null),new Uint8Array(D.response)}),ge=function(E){var D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return Me(E)?P.return(new Promise(function(Y,U){var Ce=new XMLHttpRequest;Ce.open("GET",E,!0),Ce.responseType="arraybuffer",Ce.onload=function(){Ce.status==200||Ce.status==0&&Ce.response?Y(Ce.response):U(Ce.status)},Ce.onerror=U,Ce.send(null)})):P.yield(fetch(E,{credentials:"same-origin"}),2);if(D=P.getYieldResultJsc(),D.ok)return P.return(D.arrayBuffer());throw Error(D.status+" : "+D.url)})}}if(console.log.bind(console),_e=console.error.bind(console),Ue=!1,Me=function(E){return E.startsWith("file://")},He=function(){},Te=function(){return He.apply(this,arguments)||this},L.inherits(Te,He),je=!1,nt=function(E){for(;E.length>0;)E.shift()(F)},qe=[],yt=[],Ve=function(E){this.excPtr=E,this.ptr=E-24},Ve.prototype.set_type=function(E){ze[this.ptr+4>>2]=E},Ve.prototype.get_type=function(){return ze[this.ptr+4>>2]},Ve.prototype.set_destructor=function(E){ze[this.ptr+8>>2]=E},Ve.prototype.get_destructor=function(){return ze[this.ptr+8>>2]},Ve.prototype.set_caught=function(E){Je[this.ptr+12]=E?1:0},Ve.prototype.get_caught=function(){return Je[this.ptr+12]!=0},Ve.prototype.set_rethrown=function(E){Je[this.ptr+13]=E?1:0},Ve.prototype.get_rethrown=function(){return Je[this.ptr+13]!=0},Ve.prototype.init=function(E,D){this.set_adjusted_ptr(0),this.set_type(E),this.set_destructor(D)},Ve.prototype.set_adjusted_ptr=function(E){ze[this.ptr+16>>2]=E},Ve.prototype.get_adjusted_ptr=function(){return ze[this.ptr+16>>2]},Ct=0,pt=function(E){Ae()},Qt=function(E,D,P){new Ve(E).init(D,P),Ct++,pt(E)},ft=function(){return Ae("")},Xe=function(){return 2147483648},It=function(E,D){return Math.ceil(E/D)*D},Ut=function(E){var D=Or.buffer.byteLength;try{return Or.grow((E-D+65535)/65536|0),ne(),1}catch{}},Yt=function(E){var D=dt.length;E>>>=0;var P=Xe();if(E>P)return!1;for(var Y=1;Y<=4;Y*=2){var U=D*(1+.2/Y);if(U=Math.min(U,E+100663296),U=Math.min(P,It(Math.max(E,U),65536)),Ut(U))return!0}return!1},st=function(E){for(var D=0,P=0;P<E.length;++P){var Y=E.charCodeAt(P);Y<=127?D++:Y<=2047?D+=2:Y>=55296&&Y<=57343?(D+=4,++P):D+=3}return D},kt=function(E,D,P,Y){if(!(Y>0))return 0;var U=P;Y=P+Y-1;for(var Ce=0;Ce<E.length;++Ce){var ot=E.codePointAt(Ce);if(ot<=127){if(P>=Y)break;D[P++]=ot}else if(ot<=2047){if(P+1>=Y)break;D[P++]=192|ot>>6,D[P++]=128|ot&63}else if(ot<=65535){if(P+2>=Y)break;D[P++]=224|ot>>12,D[P++]=128|ot>>6&63,D[P++]=128|ot&63}else{if(P+3>=Y)break;D[P++]=240|ot>>18,D[P++]=128|ot>>12&63,D[P++]=128|ot>>6&63,D[P++]=128|ot&63,Ce++}}return D[P]=0,P-U},ht=function(E,D,P){return P=P>0?P:st(E)+1,P=Array(P),E=kt(E,P,0,P.length),D&&(P.length=E),P},globalThis.TextDecoder&&new TextDecoder,_t=[],xr=function(E){return _t.push(E)},F.printErr&&(_e=F.printErr),F.wasmBinary&&(Ge=F.wasmBinary),xt=F.preInit)for(typeof xt=="function"&&(F.preInit=xt=[xt]);xt.length>0;)xt.shift()();return Wn={a:Qt,c:ft,b:Yt},ee.yield(z(),2)}return ee.getNextAddressJsc()!=3?(Hr=ee.getYieldResultJsc(),ee.yield(K(),3)):(R.prototype=Object.create(R.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},F.WrapperObject=R,F.getCache=j,F.wrapPointer=G,F.castObject=_,F.NULL=G(0),F.destroy=N,F.compare=S,F.getPointer=v,F.getClass=w,De={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(De.needed){for(var E=0;E<De.temps.length;E++)F._webidl_free(De.temps[E]);De.temps.length=0,F._webidl_free(De.buffer),De.buffer=0,De.size+=De.needed,De.needed=0}De.buffer||(De.size+=128,De.buffer=F._webidl_malloc(De.size),De.buffer||Ae(void 0)),De.pos=0},alloc:function(E,D){return De.buffer||Ae(void 0),E=E.length*D.BYTES_PER_ELEMENT,E=It(E,8),De.pos+E>=De.size?(E>0||Ae(void 0),De.needed+=E,D=F._webidl_malloc(E),De.temps.push(D)):(D=De.buffer+De.pos,De.pos+=E),D}},d.prototype=Object.create(R.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},F.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){wr(this.ptr)},f.prototype=Object.create(R.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},F.GeometryAttribute=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){Wt(this.ptr)},p.prototype=Object.create(R.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},F.PointAttribute=p,p.prototype.size=p.prototype.size=function(){return it(this.ptr)},p.prototype.attribute_type=p.prototype.attribute_type=function(){return wt(this.ptr)},p.prototype.data_type=p.prototype.data_type=function(){return Tt(this.ptr)},p.prototype.num_components=p.prototype.num_components=function(){return qt(this.ptr)},p.prototype.normalized=p.prototype.normalized=function(){return!!Xt(this.ptr)},p.prototype.byte_stride=p.prototype.byte_stride=function(){return Zt(this.ptr)},p.prototype.byte_offset=p.prototype.byte_offset=function(){return $t(this.ptr)},p.prototype.unique_id=p.prototype.unique_id=function(){return vr(this.ptr)},p.prototype.__destroy__=p.prototype.__destroy__=function(){Dr(this.ptr)},g.prototype=Object.create(R.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},F.PointCloud=g,g.prototype.num_attributes=g.prototype.num_attributes=function(){return _r(this.ptr)},g.prototype.num_points=g.prototype.num_points=function(){return Sr(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){Pr(this.ptr)},u.prototype=Object.create(R.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},F.Mesh=u,u.prototype.num_faces=u.prototype.num_faces=function(){return Rr(this.ptr)},u.prototype.num_attributes=u.prototype.num_attributes=function(){return Fr(this.ptr)},u.prototype.num_points=u.prototype.num_points=function(){return ar(this.ptr)},u.prototype.set_num_points=u.prototype.set_num_points=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Lt(D,E)},u.prototype.__destroy__=u.prototype.__destroy__=function(){Ur(this.ptr)},l.prototype=Object.create(R.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},F.Metadata=l,l.prototype.__destroy__=l.prototype.__destroy__=function(){sr(this.ptr)},c.prototype=Object.create(R.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},F.DracoInt8Array=c,c.prototype.GetValue=c.prototype.GetValue=function(E){var D=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),cr(D,E)},c.prototype.size=c.prototype.size=function(){return Ot(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){Tr(this.ptr)},s.prototype=Object.create(R.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},F.MetadataBuilder=s,s.prototype.AddStringEntry=s.prototype.AddStringEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P=P&&typeof P=="object"?P.ptr:m(P),!!lr(Y,E,D,P)},s.prototype.AddIntEntry=s.prototype.AddIntEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!er(Y,E,D,P)},s.prototype.AddIntEntryArray=s.prototype.AddIntEntryArray=function(E,D,P,Y){var U=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),typeof P=="object"&&(P=I(P)),Y&&typeof Y=="object"&&(Y=Y.ptr),!!lt(U,E,D,P,Y)},s.prototype.AddDoubleEntry=s.prototype.AddDoubleEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!Ht(Y,E,D,P)},s.prototype.__destroy__=s.prototype.__destroy__=function(){ur(this.ptr)},a.prototype=Object.create(R.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},F.PointCloudBuilder=a,a.prototype.AddFloatAttribute=a.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),x(Ce,E,D,P,Y,U)},a.prototype.AddInt8Attribute=a.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),k(Ce,E,D,P,Y,U)},a.prototype.AddUInt8Attribute=a.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),V(Ce,E,D,P,Y,U)},a.prototype.AddInt16Attribute=a.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),q(Ce,E,D,P,Y,U)},a.prototype.AddUInt16Attribute=a.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),te(Ce,E,D,P,Y,U)},a.prototype.AddInt32Attribute=a.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),ae(Ce,E,D,P,Y,U)},a.prototype.AddUInt32Attribute=a.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),se(Ce,E,D,P,Y,U)},a.prototype.AddMetadata=a.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!pe(P,E,D)},a.prototype.SetMetadataForAttribute=a.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!ue(Y,E,D,P)},a.prototype.SetNormalizedFlagForAttribute=a.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!de(Y,E,D,P)},a.prototype.__destroy__=a.prototype.__destroy__=function(){ve(this.ptr)},i.prototype=Object.create(R.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},F.MeshBuilder=i,i.prototype.AddFacesToMesh=i.prototype.AddFacesToMesh=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),typeof P=="object"&&(P=I(P)),!!Ke(Y,E,D,P)},i.prototype.AddFloatAttributeToMesh=i.prototype.AddFloatAttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),Ne(Ce,E,D,P,Y,U)},i.prototype.AddInt32AttributeToMesh=i.prototype.AddInt32AttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),rt(Ce,E,D,P,Y,U)},i.prototype.AddMetadataToMesh=i.prototype.AddMetadataToMesh=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!at(P,E,D)},i.prototype.AddFloatAttribute=i.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),St(Ce,E,D,P,Y,U)},i.prototype.AddInt8Attribute=i.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),ut(Ce,E,D,P,Y,U)},i.prototype.AddUInt8Attribute=i.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),gr(Ce,E,D,P,Y,U)},i.prototype.AddInt16Attribute=i.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),pr(Ce,E,D,P,Y,U)},i.prototype.AddUInt16Attribute=i.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),ln(Ce,E,D,P,Y,U)},i.prototype.AddInt32Attribute=i.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),un(Ce,E,D,P,Y,U)},i.prototype.AddUInt32Attribute=i.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),gn(Ce,E,D,P,Y,U)},i.prototype.AddMetadata=i.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!pn(P,E,D)},i.prototype.SetMetadataForAttribute=i.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!fn(Y,E,D,P)},i.prototype.SetNormalizedFlagForAttribute=i.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!dn(Y,E,D,P)},i.prototype.__destroy__=i.prototype.__destroy__=function(){hn(this.ptr)},A.prototype=Object.create(R.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},F.Encoder=A,A.prototype.SetEncodingMethod=A.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),In(D,E)},A.prototype.SetAttributeQuantization=A.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Bn(P,E,D)},A.prototype.SetAttributeExplicitQuantization=A.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),bn(Ce,E,D,P,Y,U)},A.prototype.SetSpeedOptions=A.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),En(P,E,D)},A.prototype.SetTrackEncodedProperties=A.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),yn(D,E)},A.prototype.EncodeMeshToDracoBuffer=A.prototype.EncodeMeshToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Cn(P,E,D)},A.prototype.EncodePointCloudToDracoBuffer=A.prototype.EncodePointCloudToDracoBuffer=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Qn(Y,E,D,P)},A.prototype.GetNumberOfEncodedPoints=A.prototype.GetNumberOfEncodedPoints=function(){return xn(this.ptr)},A.prototype.GetNumberOfEncodedFaces=A.prototype.GetNumberOfEncodedFaces=function(){return wn(this.ptr)},A.prototype.__destroy__=A.prototype.__destroy__=function(){vn(this.ptr)},o.prototype=Object.create(R.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},F.ExpertEncoder=o,o.prototype.SetEncodingMethod=o.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Mn(D,E)},o.prototype.SetAttributeQuantization=o.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),_n(P,E,D)},o.prototype.SetAttributeExplicitQuantization=o.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),Sn(Ce,E,D,P,Y,U)},o.prototype.SetSpeedOptions=o.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Pn(P,E,D)},o.prototype.SetTrackEncodedProperties=o.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Gn(D,E)},o.prototype.EncodeToDracoBuffer=o.prototype.EncodeToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Rn(P,E,D)},o.prototype.GetNumberOfEncodedPoints=o.prototype.GetNumberOfEncodedPoints=function(){return Fn(this.ptr)},o.prototype.GetNumberOfEncodedFaces=o.prototype.GetNumberOfEncodedFaces=function(){return Un(this.ptr)},o.prototype.__destroy__=o.prototype.__destroy__=function(){kn(this.ptr)},(function(){function E(){F.INVALID=Nn(),F.POSITION=Tn(),F.NORMAL=Ln(),F.COLOR=On(),F.TEX_COORD=Hn(),F.GENERIC=jn(),F.INVALID_GEOMETRY_TYPE=Vn(),F.POINT_CLOUD=Jn(),F.TRIANGULAR_MESH=Kn(),F.MESH_SEQUENTIAL_ENCODING=zn(),F.MESH_EDGEBREAKER_ENCODING=Yn()}je?E():xr(E)})(),typeof F.onModuleParsed=="function"&&F.onModuleParsed(),ee.return(F))})}})();typeof pA=="object"&&typeof So=="object"?(So.exports=gA,So.exports.default=gA):typeof define=="function"&&define.amd&&define([],function(){return gA})});var va=qn((dA,Po)=>{$();var O=O||{};O.scope={};O.ASSUME_ES2020=!1;O.ASSUME_ES6=O.ASSUME_ES2020;O.ASSUME_ES5=O.ASSUME_ES6;O.ASSUME_NO_NATIVE_MAP=!1;O.ASSUME_NO_NATIVE_SET=!1;O.ISOLATE_POLYFILLS=!1;O.FORCE_POLYFILL_PROMISE=!1;O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;O.INSTRUMENT_ASYNC_CONTEXT=!0;O.objectCreate=O.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};O.defineProperty=O.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};O.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};O.global=O.ASSUME_ES2020?globalThis:O.getGlobal(dA);O.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";O.TRUST_ES6_POLYFILLS=!O.ISOLATE_POLYFILLS||O.IS_SYMBOL_NATIVE;O.polyfills={};O.propertyToPolyfillSymbol={};O.POLYFILL_PREFIX="$jscp$";O.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return O.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();O.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<O.TYPED_ARRAY_CLASSES.length;o++){var A=O.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;O.ISOLATE_POLYFILLS?O.polyfillIsolated(A,t,r,n):O.polyfillUnisolated(A,t,r,n)}};O.polyfill=function(e,t,r,n){t&&(O.ISOLATE_POLYFILLS?O.polyfillIsolated(e,t,r,n):O.polyfillUnisolated(e,t,r,n))};O.polyfillUnisolated=function(e,t,r,n){for(r=O.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&O.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};O.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in O.polyfills?O.polyfills:O.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=O.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?O.defineProperty(O.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(O.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,O.propertyToPolyfillSymbol[o]=O.IS_SYMBOL_NATIVE?O.global.Symbol(o):O.POLYFILL_PREFIX+r+"$"+o),O.defineProperty(n,O.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};O.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(O.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=O.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};O.construct={valueOf:O.getConstructImplementation}.valueOf();O.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};O.setPrototypeOf=O.ASSUME_ES6||O.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:O.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;O.inherits=function(e,t){if(e.prototype=O.objectCreate(t.prototype),e.prototype.constructor=e,O.ASSUME_ES6||O.setPrototypeOf){var r=O.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};O.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};O.arrayIterator=function(e){return{next:O.arrayIteratorImpl(e)}};O.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return O.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};O.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};O.arrayFromIterable=function(e){return e instanceof Array?e:O.arrayFromIterator(O.makeIterator(e))};O.createTemplateTagFirstArg=function(e){return O.createTemplateTagFirstArgWithRaw(e,e)};O.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};O.generator={};O.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};O.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};O.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};O.generator.Context.prototype.stop_=function(){this.isRunning_=!1};O.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};O.generator.Context.prototype.next_=function(e){this.yieldResult=e};O.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.return=O.generator.Context.prototype.return;O.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.jumpThroughFinallyBlocks=O.generator.Context.prototype.jumpThroughFinallyBlocks;O.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};O.generator.Context.prototype.yield=O.generator.Context.prototype.yield;O.generator.Context.prototype.yieldAll=function(e,t){e=O.makeIterator(e);var r=e.next();if(O.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};O.generator.Context.prototype.yieldAll=O.generator.Context.prototype.yieldAll;O.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};O.generator.Context.prototype.jumpTo=O.generator.Context.prototype.jumpTo;O.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};O.generator.Context.prototype.jumpToEnd=O.generator.Context.prototype.jumpToEnd;O.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};O.generator.Context.prototype.setCatchFinallyBlocks=O.generator.Context.prototype.setCatchFinallyBlocks;O.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};O.generator.Context.prototype.setFinallyBlock=O.generator.Context.prototype.setFinallyBlock;O.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};O.generator.Context.prototype.leaveTryBlock=O.generator.Context.prototype.leaveTryBlock;O.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};O.generator.Context.prototype.enterCatchBlock=O.generator.Context.prototype.enterCatchBlock;O.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};O.generator.Context.prototype.enterFinallyBlock=O.generator.Context.prototype.enterFinallyBlock;O.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};O.generator.Context.prototype.leaveFinallyBlock=O.generator.Context.prototype.leaveFinallyBlock;O.generator.Context.prototype.forIn=function(e){return new O.generator.Context.PropertyIterator(e)};O.generator.Context.prototype.forIn=O.generator.Context.prototype.forIn;O.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};O.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};O.generator.Context.PropertyIterator.prototype.getNext=O.generator.Context.PropertyIterator.prototype.getNext;O.generator.Engine_=function(e){this.context_=new O.generator.Context,this.program_=e};O.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};O.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};O.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};O.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(O.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};O.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};O.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};O.generator.createGenerator=function(e,t){return t=new O.generator.Generator_(new O.generator.Engine_(t)),O.setPrototypeOf&&e.prototype&&O.setPrototypeOf(t,e.prototype),t};O.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};O.asyncExecutePromiseGeneratorFunction=function(e){return O.asyncExecutePromiseGenerator(e())};O.asyncExecutePromiseGeneratorProgram=function(e){return O.asyncExecutePromiseGenerator(new O.generator.Generator_(new O.generator.Engine_(e)))};O.polyfill("globalThis",function(e){return e||O.global},"es_2020","es3");O.polyfill("Reflect",function(e){return e||{}},"es6","es3");O.polyfill("Reflect.construct",function(e){return O.construct},"es6","es3");O.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(O.setPrototypeOf){var t=O.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");O.initSymbol=function(){};O.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,O.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");O.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),O.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return O.iteratorPrototype(O.arrayIteratorImpl(this))}}),e)},"es6","es3");O.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};O.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(O.FORCE_POLYFILL_PROMISE||O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof O.global.PromiseRejectionEvent>"u")||!O.global.Promise||O.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=O.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=O.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=O.global.CustomEvent,a=O.global.Event,s=O.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=O.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=O.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=O.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");O.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};O.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=O.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");O.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=O.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var fA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(){this.ptr=Hn(),W(o)[this.ptr]=this}function A(){this.ptr=Gn(),W(A)[this.ptr]=this}function i(){this.ptr=Mn(),W(i)[this.ptr]=this}function a(){this.ptr=xn(),W(a)[this.ptr]=this}function s(){this.ptr=En(),W(s)[this.ptr]=this}function c(){this.ptr=mn(),W(c)[this.ptr]=this}function l(){this.ptr=pn(),W(l)[this.ptr]=this}function u(){this.ptr=pr(),W(u)[this.ptr]=this}function g(){this.ptr=at(),W(g)[this.ptr]=this}function p(){throw"cannot construct a Status, no constructor in IDL"}function f(){this.ptr=de(),W(f)[this.ptr]=this}function d(){this.ptr=te(),W(d)[this.ptr]=this}function h(){this.ptr=x(),W(h)[this.ptr]=this}function I(){this.ptr=lt(),W(I)[this.ptr]=this}function b(){this.ptr=cr(),W(b)[this.ptr]=this}function Q(){this.ptr=Sr(),W(Q)[this.ptr]=this}function m(){this.ptr=Mr(),W(m)[this.ptr]=this}function w(){this.ptr=$t(),W(w)[this.ptr]=this}function v(){this.ptr=qt(),W(v)[this.ptr]=this}function S(){throw"cannot construct a VoidPtr, no constructor in IDL"}function N(ce){if(typeof ce=="object"){for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function _(ce){if(typeof ce=="string"){ce=Ar(ce);for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function G(ce){return ce.__class__}function j(ce){return ce.ptr}function R(ce,B){return ce.ptr===B.ptr}function K(ce){if(!ce.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ce.__destroy__(),delete W(ce.__class__)[ce.ptr]}function z(ce,B){return J(ce.ptr,B)}function J(ce,B){var M=W(B),T=M[ce];return T||(T=Object.create((B||X).prototype),T.ptr=ce,M[ce]=T)}function W(ce){return(ce||X).__cache__}function X(){}function Ae(){var ce,B,M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Be(),ce=y.setStatus,ce?(ce("Running..."),T.yield(new Promise(function(fe){return setTimeout(fe,1)}),3)):T.jumpTo(2);if(T.getNextAddressJsc()!=2&&setTimeout(ce,1,""),Le)return T.return();yt=!0,Ct(ir),yo.e(),(M=(B=y).onRuntimeInitialized)==null||M.call(B),F(),T.jumpToEnd()})}function re(){function ce(H){return H=yo=H.exports,y._webidl_free=H.f,y._free=H.g,y._webidl_malloc=H.h,y._malloc=H.i,Tt=y._emscripten_bind_VoidPtr___destroy___0=H.j,qt=y._emscripten_bind_DecoderBuffer_DecoderBuffer_0=H.k,Xt=y._emscripten_bind_DecoderBuffer_Init_2=H.l,Zt=y._emscripten_bind_DecoderBuffer___destroy___0=H.m,$t=y._emscripten_bind_AttributeTransformData_AttributeTransformData_0=H.n,vr=y._emscripten_bind_AttributeTransformData_transform_type_0=H.o,Dr=y._emscripten_bind_AttributeTransformData___destroy___0=H.p,Mr=y._emscripten_bind_GeometryAttribute_GeometryAttribute_0=H.q,_r=y._emscripten_bind_GeometryAttribute___destroy___0=H.r,Sr=y._emscripten_bind_PointAttribute_PointAttribute_0=H.s,Pr=y._emscripten_bind_PointAttribute_size_0=H.t,Gr=y._emscripten_bind_PointAttribute_GetAttributeTransformData_0=H.u,Rr=y._emscripten_bind_PointAttribute_attribute_type_0=H.v,Fr=y._emscripten_bind_PointAttribute_data_type_0=H.w,ar=y._emscripten_bind_PointAttribute_num_components_0=H.x,Lt=y._emscripten_bind_PointAttribute_normalized_0=H.y,Ur=y._emscripten_bind_PointAttribute_byte_stride_0=H.z,kr=y._emscripten_bind_PointAttribute_byte_offset_0=H.A,sr=y._emscripten_bind_PointAttribute_unique_id_0=H.B,Nr=y._emscripten_bind_PointAttribute___destroy___0=H.C,cr=y._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=H.D,Ot=y._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=H.E,Tr=y._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=H.F,Lr=y._emscripten_bind_AttributeQuantizationTransform_min_value_1=H.G,lr=y._emscripten_bind_AttributeQuantizationTransform_range_0=H.H,er=y._emscripten_bind_AttributeQuantizationTransform___destroy___0=H.I,lt=y._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=H.J,Ht=y._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=H.K,ur=y._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=H.L,C=y._emscripten_bind_AttributeOctahedronTransform___destroy___0=H.M,x=y._emscripten_bind_PointCloud_PointCloud_0=H.N,k=y._emscripten_bind_PointCloud_num_attributes_0=H.O,V=y._emscripten_bind_PointCloud_num_points_0=H.P,q=y._emscripten_bind_PointCloud___destroy___0=H.Q,te=y._emscripten_bind_Mesh_Mesh_0=H.R,ae=y._emscripten_bind_Mesh_num_faces_0=H.S,se=y._emscripten_bind_Mesh_num_attributes_0=H.T,pe=y._emscripten_bind_Mesh_num_points_0=H.U,ue=y._emscripten_bind_Mesh___destroy___0=H.V,de=y._emscripten_bind_Metadata_Metadata_0=H.W,ve=y._emscripten_bind_Metadata___destroy___0=H.X,Fe=y._emscripten_bind_Status_code_0=H.Y,Ke=y._emscripten_bind_Status_ok_0=H.Z,Ne=y._emscripten_bind_Status_error_msg_0=H._,rt=y._emscripten_bind_Status___destroy___0=H.$,at=y._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=H.aa,St=y._emscripten_bind_DracoFloat32Array_GetValue_1=H.ba,ut=y._emscripten_bind_DracoFloat32Array_size_0=H.ca,gr=y._emscripten_bind_DracoFloat32Array___destroy___0=H.da,pr=y._emscripten_bind_DracoInt8Array_DracoInt8Array_0=H.ea,ln=y._emscripten_bind_DracoInt8Array_GetValue_1=H.fa,un=y._emscripten_bind_DracoInt8Array_size_0=H.ga,gn=y._emscripten_bind_DracoInt8Array___destroy___0=H.ha,pn=y._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=H.ia,fn=y._emscripten_bind_DracoUInt8Array_GetValue_1=H.ja,dn=y._emscripten_bind_DracoUInt8Array_size_0=H.ka,hn=y._emscripten_bind_DracoUInt8Array___destroy___0=H.la,mn=y._emscripten_bind_DracoInt16Array_DracoInt16Array_0=H.ma,In=y._emscripten_bind_DracoInt16Array_GetValue_1=H.na,Bn=y._emscripten_bind_DracoInt16Array_size_0=H.oa,bn=y._emscripten_bind_DracoInt16Array___destroy___0=H.pa,En=y._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=H.qa,yn=y._emscripten_bind_DracoUInt16Array_GetValue_1=H.ra,Cn=y._emscripten_bind_DracoUInt16Array_size_0=H.sa,Qn=y._emscripten_bind_DracoUInt16Array___destroy___0=H.ta,xn=y._emscripten_bind_DracoInt32Array_DracoInt32Array_0=H.ua,wn=y._emscripten_bind_DracoInt32Array_GetValue_1=H.va,vn=y._emscripten_bind_DracoInt32Array_size_0=H.wa,Dn=y._emscripten_bind_DracoInt32Array___destroy___0=H.xa,Mn=y._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=H.ya,_n=y._emscripten_bind_DracoUInt32Array_GetValue_1=H.za,Sn=y._emscripten_bind_DracoUInt32Array_size_0=H.Aa,Pn=y._emscripten_bind_DracoUInt32Array___destroy___0=H.Ba,Gn=y._emscripten_bind_MetadataQuerier_MetadataQuerier_0=H.Ca,Rn=y._emscripten_bind_MetadataQuerier_HasEntry_2=H.Da,Fn=y._emscripten_bind_MetadataQuerier_GetIntEntry_2=H.Ea,Un=y._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=H.Fa,kn=y._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=H.Ga,Nn=y._emscripten_bind_MetadataQuerier_GetStringEntry_2=H.Ha,Tn=y._emscripten_bind_MetadataQuerier_NumEntries_1=H.Ia,Ln=y._emscripten_bind_MetadataQuerier_GetEntryName_2=H.Ja,On=y._emscripten_bind_MetadataQuerier___destroy___0=H.Ka,Hn=y._emscripten_bind_Decoder_Decoder_0=H.La,jn=y._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=H.Ma,Vn=y._emscripten_bind_Decoder_DecodeArrayToMesh_3=H.Na,Jn=y._emscripten_bind_Decoder_GetAttributeId_2=H.Oa,Kn=y._emscripten_bind_Decoder_GetAttributeIdByName_2=H.Pa,zn=y._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=H.Qa,Yn=y._emscripten_bind_Decoder_GetAttribute_2=H.Ra,Or=y._emscripten_bind_Decoder_GetAttributeByUniqueId_2=H.Sa,Wn=y._emscripten_bind_Decoder_GetMetadata_1=H.Ta,Hr=y._emscripten_bind_Decoder_GetAttributeMetadata_2=H.Ua,De=y._emscripten_bind_Decoder_GetFaceFromMesh_3=H.Va,ee=y._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=H.Wa,E=y._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=H.Xa,D=y._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=H.Ya,P=y._emscripten_bind_Decoder_GetAttributeFloat_3=H.Za,Y=y._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=H._a,U=y._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=H.$a,Ce=y._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=H.ab,ot=y._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=H.bb,ti=y._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=H.cb,ri=y._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=H.db,ni=y._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=H.eb,oi=y._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=H.fb,Ai=y._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=H.gb,ii=y._emscripten_bind_Decoder_SkipAttributeTransform_1=H.hb,ai=y._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=H.ib,si=y._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=H.jb,ci=y._emscripten_bind_Decoder_DecodeBufferToMesh_2=H.kb,li=y._emscripten_bind_Decoder___destroy___0=H.lb,ui=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=H.mb,gi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=H.nb,pi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=H.ob,fi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=H.pb,di=y._emscripten_enum_draco_GeometryAttribute_Type_INVALID=H.qb,hi=y._emscripten_enum_draco_GeometryAttribute_Type_POSITION=H.rb,mi=y._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=H.sb,Ii=y._emscripten_enum_draco_GeometryAttribute_Type_COLOR=H.tb,Bi=y._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=H.ub,bi=y._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=H.vb,Ei=y._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=H.wb,yi=y._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=H.xb,Ci=y._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=H.yb,Qi=y._emscripten_enum_draco_DataType_DT_INVALID=H.zb,xi=y._emscripten_enum_draco_DataType_DT_INT8=H.Ab,wi=y._emscripten_enum_draco_DataType_DT_UINT8=H.Bb,vi=y._emscripten_enum_draco_DataType_DT_INT16=H.Cb,Di=y._emscripten_enum_draco_DataType_DT_UINT16=H.Db,Mi=y._emscripten_enum_draco_DataType_DT_INT32=H.Eb,_i=y._emscripten_enum_draco_DataType_DT_UINT32=H.Fb,Si=y._emscripten_enum_draco_DataType_DT_INT64=H.Gb,Pi=y._emscripten_enum_draco_DataType_DT_UINT64=H.Hb,Gi=y._emscripten_enum_draco_DataType_DT_FLOAT32=H.Ib,Ri=y._emscripten_enum_draco_DataType_DT_FLOAT64=H.Jb,Fi=y._emscripten_enum_draco_DataType_DT_BOOL=H.Kb,Ui=y._emscripten_enum_draco_DataType_DT_TYPES_COUNT=H.Lb,ki=y._emscripten_enum_draco_StatusCode_OK=H.Mb,Ni=y._emscripten_enum_draco_StatusCode_DRACO_ERROR=H.Nb,Ti=y._emscripten_enum_draco_StatusCode_IO_ERROR=H.Ob,Li=y._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=H.Pb,Oi=y._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=H.Qb,Hi=y._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=H.Rb,Eo=H.d,Se(),yo}var B,M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){return H.getNextAddressJsc()==1?(B={a:ji},(M=y.instantiateWasm)?H.return(new Promise(function(Oe){M(B,function(At){return Oe(ce(At))})})):(ze!=null||(ze=Pe("draco_decoder_gltf.wasm")),H.yield(oe(je,ze,B),2))):(T=H.getYieldResultJsc(),fe=ce(T.instance),H.return(fe))})}function oe(ce,B,M){var T,fe,H;return(0,O.asyncExecutePromiseGeneratorProgram)(function(Oe){switch(Oe.getNextAddressJsc()){case 1:if(ce||Je(B)||be){Oe.jumpTo(2);break}return Oe.setCatchFinallyBlocks(3),T=fetch(B,{credentials:"same-origin"}),Oe.yield(WebAssembly.instantiateStreaming(T,M),5);case 5:return fe=Oe.getYieldResultJsc(),Oe.return(fe);case 3:H=Oe.enterCatchBlock(),Te("wasm streaming compile failed: "+H),Te("falling back to ArrayBuffer instantiation");case 2:return Oe.return(ne(B,M))}})}function ne(ce,B){var M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){switch(H.getNextAddressJsc()){case 1:return H.setCatchFinallyBlocks(2),H.yield(ie(ce),4);case 4:return M=H.getYieldResultJsc(),H.yield(WebAssembly.instantiate(M,B),5);case 5:return T=H.getYieldResultJsc(),H.return(T);case 2:fe=H.enterCatchBlock(),Te("failed to asynchronously prepare wasm: "+fe),he(fe),H.jumpToEnd()}})}function ie(ce){var B;return(0,O.asyncExecutePromiseGeneratorProgram)(function(M){switch(M.getNextAddressJsc()){case 1:if(je){M.jumpTo(2);break}return M.setCatchFinallyBlocks(3),M.yield(Ue(ce),5);case 5:return B=M.getYieldResultJsc(),M.return(new Uint8Array(B));case 3:M.enterCatchBlock();case 2:var T=M.return;if(ce==ze&&je)var fe=new Uint8Array(je);else if(Me)fe=Me(ce);else throw"both async and sync fetching of the wasm failed";return T.call(M,fe)}})}function he(ce){var B,M;throw(M=(B=y).onAbort)==null||M.call(B,ce),ce="Aborted("+ce+")",Te(ce),Le=!0,new WebAssembly.RuntimeError(ce+". Build with -sASSERTIONS for more info.")}function F(){var ce=y.postRun;ce&&(typeof ce=="function"&&(ce=[ce]),pt.push.apply(pt,(0,O.arrayFromIterable)(ce))),Ct(pt)}function Be(){var ce=y.preRun;ce&&(typeof ce=="function"&&(ce=[ce]),Qt.push.apply(Qt,(0,O.arrayFromIterable)(ce))),Ct(Qt)}function Se(){var ce,B;!((ce=Ve)==null||(B=ce.buffer)==null)&&B.resizable||(ce=Eo.buffer,y.HEAP8=Ve=new Int8Array(ce),y.HEAP16=new Int16Array(ce),y.HEAPU8=_t=new Uint8Array(ce),y.HEAPU16=new Uint16Array(ce),y.HEAP32=new Int32Array(ce),y.HEAPU32=ft=new Uint32Array(ce),y.HEAPF32=new Float32Array(ce),y.HEAPF64=new Float64Array(ce))}function Pe(ce){return y.locateFile?y.locateFile(ce,Ge):Ge+ce}function Ie(ce){return typeof ce!="string"?!1:(ce=ce.split("."),ce.length<2||ce.length>3?!1:ce[0]==1&&ce[1]>=0&&ce[1]<=5?!0:!(ce[0]!=0||ce[1]>10))}n=n===void 0?{}:n;var y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,xr,or,Nt,Ar,xt,wr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,vr,Dr,Mr,_r,Sr,Pr,Gr,Rr,Fr,ar,Lt,Ur,kr,sr,Nr,cr,Ot,Tr,Lr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Yn,Or,Wn,Hr,De,ee,E,D,P,Y,U,Ce,ot,ti,ri,ni,oi,Ai,ii,ai,si,ci,li,ui,gi,pi,fi,di,hi,mi,Ii,Bi,bi,Ei,yi,Ci,Qi,xi,wi,vi,Di,Mi,_i,Si,Pi,Gi,Ri,Fi,Ui,ki,Ni,Ti,Li,Oi,Hi,Eo,ji,yo,ke;return(0,O.asyncExecutePromiseGeneratorProgram)(function(ce){if(ce.getNextAddressJsc()==1){if(y=n,ye=!!globalThis.window,Qe=!!globalThis.WorkerGlobalScope,be=((xe=globalThis.process)==null||(le=xe.versions)==null?void 0:le.node)&&((ge=globalThis.process)==null?void 0:ge.type)!="renderer",_e=we=!1,y.onRuntimeInitialized=function(){we=!0,_e&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.onModuleParsed=function(){_e=!0,we&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.isVersionSupported=Ie,typeof __filename<"u"?r=__filename:Qe&&(r=self.location.href),Ge="",be)He=(Pt(),Vi(ta)),Ge=__dirname+"/",Me=function(B){return B=Je(B)?new URL(B):B,He.readFileSync(B)},Ue=function(B,M){M=M===void 0?!0:M;var T;return(0,O.asyncExecutePromiseGeneratorProgram)(function(fe){return B=Je(B)?new URL(B):B,T=He.readFileSync(B,M?void 0:"utf8"),fe.return(T)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(ye||Qe){try{Ge=new URL(".",r).href}catch{}Qe&&(Me=function(B){var M=new XMLHttpRequest;return M.open("GET",B,!1),M.responseType="arraybuffer",M.send(null),new Uint8Array(M.response)}),Ue=function(B){var M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Je(B)?T.return(new Promise(function(fe,H){var Oe=new XMLHttpRequest;Oe.open("GET",B,!0),Oe.responseType="arraybuffer",Oe.onload=function(){Oe.status==200||Oe.status==0&&Oe.response?fe(Oe.response):H(Oe.status)},Oe.onerror=H,Oe.send(null)})):T.yield(fetch(B,{credentials:"same-origin"}),2);if(M=T.getYieldResultJsc(),M.ok)return T.return(M.arrayBuffer());throw Error(M.status+" : "+M.url)})}}if(console.log.bind(console),Te=console.error.bind(console),Le=!1,Je=function(B){return B.startsWith("file://")},nt=function(){},qe=function(){return nt.apply(this,arguments)||this},O.inherits(qe,nt),yt=!1,Ct=function(B){for(;B.length>0;)B.shift()(y)},pt=[],Qt=[],Xe=function(B){this.excPtr=B,this.ptr=B-24},Xe.prototype.set_type=function(B){ft[this.ptr+4>>2]=B},Xe.prototype.get_type=function(){return ft[this.ptr+4>>2]},Xe.prototype.set_destructor=function(B){ft[this.ptr+8>>2]=B},Xe.prototype.get_destructor=function(){return ft[this.ptr+8>>2]},Xe.prototype.set_caught=function(B){Ve[this.ptr+12]=B?1:0},Xe.prototype.get_caught=function(){return Ve[this.ptr+12]!=0},Xe.prototype.set_rethrown=function(B){Ve[this.ptr+13]=B?1:0},Xe.prototype.get_rethrown=function(){return Ve[this.ptr+13]!=0},Xe.prototype.init=function(B,M){this.set_adjusted_ptr(0),this.set_type(B),this.set_destructor(M)},Xe.prototype.set_adjusted_ptr=function(B){ft[this.ptr+16>>2]=B},Xe.prototype.get_adjusted_ptr=function(){return ft[this.ptr+16>>2]},It=0,Ut=function(B){he()},dt=function(B,M,T){new Xe(B).init(M,T),It++,Ut(B)},Yt=function(){return he("")},st=function(){return 2147483648},kt=function(B,M){return Math.ceil(B/M)*M},ht=function(B){var M=Eo.buffer.byteLength;try{return Eo.grow((B-M+65535)/65536|0),Se(),1}catch{}},xr=function(B){var M=_t.length;B>>>=0;var T=st();if(B>T)return!1;for(var fe=1;fe<=4;fe*=2){var H=M*(1+.2/fe);if(H=Math.min(H,B+100663296),H=Math.min(T,kt(Math.max(B,H),65536)),ht(H))return!0}return!1},or=function(B){for(var M=0,T=0;T<B.length;++T){var fe=B.charCodeAt(T);fe<=127?M++:fe<=2047?M+=2:fe>=55296&&fe<=57343?(M+=4,++T):M+=3}return M},Nt=function(B,M,T,fe){if(!(fe>0))return 0;var H=T;fe=T+fe-1;for(var Oe=0;Oe<B.length;++Oe){var At=B.codePointAt(Oe);if(At<=127){if(T>=fe)break;M[T++]=At}else if(At<=2047){if(T+1>=fe)break;M[T++]=192|At>>6,M[T++]=128|At&63}else if(At<=65535){if(T+2>=fe)break;M[T++]=224|At>>12,M[T++]=128|At>>6&63,M[T++]=128|At&63}else{if(T+3>=fe)break;M[T++]=240|At>>18,M[T++]=128|At>>12&63,M[T++]=128|At>>6&63,M[T++]=128|At&63,Oe++}}return M[T]=0,T-H},Ar=function(B,M,T){return T=T>0?T:or(B)+1,T=Array(T),B=Nt(B,T,0,T.length),M&&(T.length=B),T},xt=globalThis.TextDecoder&&new TextDecoder,wr=function(B,M,T,fe){if(T=M+T,fe)return T;for(;B[M]&&!(M>=T);)++M;return M},ct=function(B,M,T,fe){if(M=M===void 0?0:M,T=wr(B,M,T,fe),T-M>16&&B.buffer&&xt)return xt.decode(B.subarray(M,T));for(fe="";M<T;){var H=B[M++];if(H&128){var Oe=B[M++]&63;if((H&224)==192)fe+=String.fromCharCode((H&31)<<6|Oe);else{var At=B[M++]&63;H=(H&240)==224?(H&15)<<12|Oe<<6|At:(H&7)<<18|Oe<<12|At<<6|B[M++]&63,H<65536?fe+=String.fromCharCode(H):(H-=65536,fe+=String.fromCharCode(55296|H>>10,56320|H&1023))}}else fe+=String.fromCharCode(H)}return fe},Wt=function(B,M,T){return B?ct(_t,B,M,T):""},ir=[],it=function(B){return ir.push(B)},y.printErr&&(Te=y.printErr),y.wasmBinary&&(je=y.wasmBinary),wt=y.preInit)for(typeof wt=="function"&&(y.preInit=wt=[wt]);wt.length>0;)wt.shift()();return ji={a:dt,c:Yt,b:xr},ce.yield(re(),2)}return ce.getNextAddressJsc()!=3?(yo=ce.getYieldResultJsc(),ce.yield(Ae(),3)):(X.prototype=Object.create(X.prototype),X.prototype.constructor=X,X.prototype.__class__=X,X.__cache__={},y.WrapperObject=X,y.getCache=W,y.wrapPointer=J,y.castObject=z,y.NULL=J(0),y.destroy=K,y.compare=R,y.getPointer=j,y.getClass=G,ke={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ke.needed){for(var B=0;B<ke.temps.length;B++)y._webidl_free(ke.temps[B]);ke.temps.length=0,y._webidl_free(ke.buffer),ke.buffer=0,ke.size+=ke.needed,ke.needed=0}ke.buffer||(ke.size+=128,ke.buffer=y._webidl_malloc(ke.size),ke.buffer||he(void 0)),ke.pos=0},alloc:function(B,M){return ke.buffer||he(void 0),B=B.length*M.BYTES_PER_ELEMENT,B=kt(B,8),ke.pos+B>=ke.size?(B>0||he(void 0),ke.needed+=B,M=y._webidl_malloc(B),ke.temps.push(M)):(M=ke.buffer+ke.pos,ke.pos+=B),M}},S.prototype=Object.create(X.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},y.VoidPtr=S,S.prototype.__destroy__=S.prototype.__destroy__=function(){Tt(this.ptr)},v.prototype=Object.create(X.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},y.DecoderBuffer=v,v.prototype.Init=v.prototype.Init=function(B,M){var T=this.ptr;ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),Xt(T,B,M)},v.prototype.__destroy__=v.prototype.__destroy__=function(){Zt(this.ptr)},w.prototype=Object.create(X.prototype),w.prototype.constructor=w,w.prototype.__class__=w,w.__cache__={},y.AttributeTransformData=w,w.prototype.transform_type=w.prototype.transform_type=function(){return vr(this.ptr)},w.prototype.__destroy__=w.prototype.__destroy__=function(){Dr(this.ptr)},m.prototype=Object.create(X.prototype),m.prototype.constructor=m,m.prototype.__class__=m,m.__cache__={},y.GeometryAttribute=m,m.prototype.__destroy__=m.prototype.__destroy__=function(){_r(this.ptr)},Q.prototype=Object.create(X.prototype),Q.prototype.constructor=Q,Q.prototype.__class__=Q,Q.__cache__={},y.PointAttribute=Q,Q.prototype.size=Q.prototype.size=function(){return Pr(this.ptr)},Q.prototype.GetAttributeTransformData=Q.prototype.GetAttributeTransformData=function(){return J(Gr(this.ptr),w)},Q.prototype.attribute_type=Q.prototype.attribute_type=function(){return Rr(this.ptr)},Q.prototype.data_type=Q.prototype.data_type=function(){return Fr(this.ptr)},Q.prototype.num_components=Q.prototype.num_components=function(){return ar(this.ptr)},Q.prototype.normalized=Q.prototype.normalized=function(){return!!Lt(this.ptr)},Q.prototype.byte_stride=Q.prototype.byte_stride=function(){return Ur(this.ptr)},Q.prototype.byte_offset=Q.prototype.byte_offset=function(){return kr(this.ptr)},Q.prototype.unique_id=Q.prototype.unique_id=function(){return sr(this.ptr)},Q.prototype.__destroy__=Q.prototype.__destroy__=function(){Nr(this.ptr)},b.prototype=Object.create(X.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},y.AttributeQuantizationTransform=b,b.prototype.InitFromAttribute=b.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ot(M,B)},b.prototype.quantization_bits=b.prototype.quantization_bits=function(){return Tr(this.ptr)},b.prototype.min_value=b.prototype.min_value=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Lr(M,B)},b.prototype.range=b.prototype.range=function(){return lr(this.ptr)},b.prototype.__destroy__=b.prototype.__destroy__=function(){er(this.ptr)},I.prototype=Object.create(X.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},y.AttributeOctahedronTransform=I,I.prototype.InitFromAttribute=I.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ht(M,B)},I.prototype.quantization_bits=I.prototype.quantization_bits=function(){return ur(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){C(this.ptr)},h.prototype=Object.create(X.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},y.PointCloud=h,h.prototype.num_attributes=h.prototype.num_attributes=function(){return k(this.ptr)},h.prototype.num_points=h.prototype.num_points=function(){return V(this.ptr)},h.prototype.__destroy__=h.prototype.__destroy__=function(){q(this.ptr)},d.prototype=Object.create(X.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},y.Mesh=d,d.prototype.num_faces=d.prototype.num_faces=function(){return ae(this.ptr)},d.prototype.num_attributes=d.prototype.num_attributes=function(){return se(this.ptr)},d.prototype.num_points=d.prototype.num_points=function(){return pe(this.ptr)},d.prototype.__destroy__=d.prototype.__destroy__=function(){ue(this.ptr)},f.prototype=Object.create(X.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},y.Metadata=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){ve(this.ptr)},p.prototype=Object.create(X.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},y.Status=p,p.prototype.code=p.prototype.code=function(){return Fe(this.ptr)},p.prototype.ok=p.prototype.ok=function(){return!!Ke(this.ptr)},p.prototype.error_msg=p.prototype.error_msg=function(){return Wt(Ne(this.ptr))},p.prototype.__destroy__=p.prototype.__destroy__=function(){rt(this.ptr)},g.prototype=Object.create(X.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},y.DracoFloat32Array=g,g.prototype.GetValue=g.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),St(M,B)},g.prototype.size=g.prototype.size=function(){return ut(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){gr(this.ptr)},u.prototype=Object.create(X.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},y.DracoInt8Array=u,u.prototype.GetValue=u.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),ln(M,B)},u.prototype.size=u.prototype.size=function(){return un(this.ptr)},u.prototype.__destroy__=u.prototype.__destroy__=function(){gn(this.ptr)},l.prototype=Object.create(X.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},y.DracoUInt8Array=l,l.prototype.GetValue=l.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),fn(M,B)},l.prototype.size=l.prototype.size=function(){return dn(this.ptr)},l.prototype.__destroy__=l.prototype.__destroy__=function(){hn(this.ptr)},c.prototype=Object.create(X.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},y.DracoInt16Array=c,c.prototype.GetValue=c.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),In(M,B)},c.prototype.size=c.prototype.size=function(){return Bn(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){bn(this.ptr)},s.prototype=Object.create(X.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},y.DracoUInt16Array=s,s.prototype.GetValue=s.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),yn(M,B)},s.prototype.size=s.prototype.size=function(){return Cn(this.ptr)},s.prototype.__destroy__=s.prototype.__destroy__=function(){Qn(this.ptr)},a.prototype=Object.create(X.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},y.DracoInt32Array=a,a.prototype.GetValue=a.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),wn(M,B)},a.prototype.size=a.prototype.size=function(){return vn(this.ptr)},a.prototype.__destroy__=a.prototype.__destroy__=function(){Dn(this.ptr)},i.prototype=Object.create(X.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},y.DracoUInt32Array=i,i.prototype.GetValue=i.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),_n(M,B)},i.prototype.size=i.prototype.size=function(){return Sn(this.ptr)},i.prototype.__destroy__=i.prototype.__destroy__=function(){Pn(this.ptr)},A.prototype=Object.create(X.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},y.MetadataQuerier=A,A.prototype.HasEntry=A.prototype.HasEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),!!Rn(T,B,M)},A.prototype.GetIntEntry=A.prototype.GetIntEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Fn(T,B,M)},A.prototype.GetIntEntryArray=A.prototype.GetIntEntryArray=function(B,M,T){var fe=this.ptr;ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T&&typeof T=="object"&&(T=T.ptr),Un(fe,B,M,T)},A.prototype.GetDoubleEntry=A.prototype.GetDoubleEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),kn(T,B,M)},A.prototype.GetStringEntry=A.prototype.GetStringEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Wt(Nn(T,B,M))},A.prototype.NumEntries=A.prototype.NumEntries=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Tn(M,B)},A.prototype.GetEntryName=A.prototype.GetEntryName=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Wt(Ln(T,B,M))},A.prototype.__destroy__=A.prototype.__destroy__=function(){On(this.ptr)},o.prototype=Object.create(X.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},y.Decoder=o,o.prototype.DecodeArrayToPointCloud=o.prototype.DecodeArrayToPointCloud=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(jn(fe,B,M,T),p)},o.prototype.DecodeArrayToMesh=o.prototype.DecodeArrayToMesh=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(Vn(fe,B,M,T),p)},o.prototype.GetAttributeId=o.prototype.GetAttributeId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Jn(T,B,M)},o.prototype.GetAttributeIdByName=o.prototype.GetAttributeIdByName=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Kn(T,B,M)},o.prototype.GetAttributeIdByMetadataEntry=o.prototype.GetAttributeIdByMetadataEntry=function(B,M,T){var fe=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T=T&&typeof T=="object"?T.ptr:_(T),zn(fe,B,M,T)},o.prototype.GetAttribute=o.prototype.GetAttribute=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Yn(T,B,M),Q)},o.prototype.GetAttributeByUniqueId=o.prototype.GetAttributeByUniqueId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Or(T,B,M),Q)},o.prototype.GetMetadata=o.prototype.GetMetadata=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),J(Wn(M,B),f)},o.prototype.GetAttributeMetadata=o.prototype.GetAttributeMetadata=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Hr(T,B,M),f)},o.prototype.GetFaceFromMesh=o.prototype.GetFaceFromMesh=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!De(fe,B,M,T)},o.prototype.GetTriangleStripsFromMesh=o.prototype.GetTriangleStripsFromMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),ee(T,B,M)},o.prototype.GetTrianglesUInt16Array=o.prototype.GetTrianglesUInt16Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!E(fe,B,M,T)},o.prototype.GetTrianglesUInt32Array=o.prototype.GetTrianglesUInt32Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!D(fe,B,M,T)},o.prototype.GetAttributeFloat=o.prototype.GetAttributeFloat=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!P(fe,B,M,T)},o.prototype.GetAttributeFloatForAllPoints=o.prototype.GetAttributeFloatForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Y(fe,B,M,T)},o.prototype.GetAttributeIntForAllPoints=o.prototype.GetAttributeIntForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!U(fe,B,M,T)},o.prototype.GetAttributeInt8ForAllPoints=o.prototype.GetAttributeInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Ce(fe,B,M,T)},o.prototype.GetAttributeUInt8ForAllPoints=o.prototype.GetAttributeUInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ot(fe,B,M,T)},o.prototype.GetAttributeInt16ForAllPoints=o.prototype.GetAttributeInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ti(fe,B,M,T)},o.prototype.GetAttributeUInt16ForAllPoints=o.prototype.GetAttributeUInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ri(fe,B,M,T)},o.prototype.GetAttributeInt32ForAllPoints=o.prototype.GetAttributeInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ni(fe,B,M,T)},o.prototype.GetAttributeUInt32ForAllPoints=o.prototype.GetAttributeUInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!oi(fe,B,M,T)},o.prototype.GetAttributeDataArrayForAllPoints=o.prototype.GetAttributeDataArrayForAllPoints=function(B,M,T,fe,H){var Oe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),H&&typeof H=="object"&&(H=H.ptr),!!Ai(Oe,B,M,T,fe,H)},o.prototype.SkipAttributeTransform=o.prototype.SkipAttributeTransform=function(B){var M=this.ptr;B&&typeof B=="object"&&(B=B.ptr),ii(M,B)},o.prototype.GetEncodedGeometryType_Deprecated=o.prototype.GetEncodedGeometryType_Deprecated=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),ai(M,B)},o.prototype.DecodeBufferToPointCloud=o.prototype.DecodeBufferToPointCloud=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(si(T,B,M),p)},o.prototype.DecodeBufferToMesh=o.prototype.DecodeBufferToMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(ci(T,B,M),p)},o.prototype.__destroy__=o.prototype.__destroy__=function(){li(this.ptr)},(function(){function B(){y.ATTRIBUTE_INVALID_TRANSFORM=ui(),y.ATTRIBUTE_NO_TRANSFORM=gi(),y.ATTRIBUTE_QUANTIZATION_TRANSFORM=pi(),y.ATTRIBUTE_OCTAHEDRON_TRANSFORM=fi(),y.INVALID=di(),y.POSITION=hi(),y.NORMAL=mi(),y.COLOR=Ii(),y.TEX_COORD=Bi(),y.GENERIC=bi(),y.INVALID_GEOMETRY_TYPE=Ei(),y.POINT_CLOUD=yi(),y.TRIANGULAR_MESH=Ci(),y.DT_INVALID=Qi(),y.DT_INT8=xi(),y.DT_UINT8=wi(),y.DT_INT16=vi(),y.DT_UINT16=Di(),y.DT_INT32=Mi(),y.DT_UINT32=_i(),y.DT_INT64=Si(),y.DT_UINT64=Pi(),y.DT_FLOAT32=Gi(),y.DT_FLOAT64=Ri(),y.DT_BOOL=Fi(),y.DT_TYPES_COUNT=Ui(),y.OK=ki(),y.DRACO_ERROR=Ni(),y.IO_ERROR=Ti(),y.INVALID_PARAMETER=Li(),y.UNSUPPORTED_VERSION=Oi(),y.UNKNOWN_VERSION=Hi()}yt?B():it(B)})(),y.Decoder.prototype.GetEncodedGeometryType=function(B){if(B.__class__&&B.__class__===y.DecoderBuffer)return y.Decoder.prototype.GetEncodedGeometryType_Deprecated(B);if(B.byteLength<8)return y.INVALID_GEOMETRY_TYPE;switch(B[7]){case 0:return y.POINT_CLOUD;case 1:return y.TRIANGULAR_MESH;default:return y.INVALID_GEOMETRY_TYPE}},typeof y.onModuleParsed=="function"&&y.onModuleParsed(),ce.return(y))})}})();typeof dA=="object"&&typeof Po=="object"?(Po.exports=fA,Po.exports.default=fA):typeof define=="function"&&define.amd&&define([],function(){return fA})});var Ma=qn((Fg,Da)=>{$();var sc=wa(),cc=va();Da.exports={createEncoderModule:sc,createDecoderModule:cc}});var us=qn((od,ls)=>{$();var Zo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":Zo(),apply:()=>Zo(),construct:()=>Zo()});ls.exports=Zo()});$();var la=new Float32Array(2048);for(let e=0;e<2048;e++)la[e]=.5*(1-Math.cos(2*Math.PI*e/2047));var ua=new Uint16Array(2048);for(let e=0;e<2048;e++){let t=0,r=e;for(let n=0;n<11;n++)t=t<<1|r&1,r>>=1;ua[e]=t}var ga=new Float32Array(2048/2),pa=new Float32Array(2048/2);for(let e=0;e<2048/2;e++){let t=-2*Math.PI*e/2048;ga[e]=Math.cos(t),pa[e]=Math.sin(t)}function zs(e,t){for(let r=0;r<2048;r++){let n=ua[r]??0;if(n>r){let o=e[r]??0;e[r]=e[n]??0,e[n]=o;let A=t[r]??0;t[r]=t[n]??0,t[n]=A}}for(let r=2;r<=2048;r<<=1){let n=r>>1,o=2048/r;for(let A=0;A<2048;A+=r)for(let i=0;i<n;i++){let a=i*o,s=ga[a]??1,c=pa[a]??0,l=e[A+i]??0,u=t[A+i]??0,g=e[A+i+n]??0,p=t[A+i+n]??0,f=g*s-p*c,d=g*c+p*s;e[A+i]=l+f,t[A+i]=u+d,e[A+i+n]=l-f,t[A+i+n]=u-d}}}var Qo=class e{tempReal=new Float32Array(2048);tempImag=new Float32Array(2048);previousBins=new Float32Array(1024);extractAtTime(t,r,n){let o=t.length,A=o>0?t[0]?.length??0:0,a=Math.round(n*r)-1024;for(let w=0;w<2048;w++){let v=a+w,S=0;v>=0&&v<A&&(o===1?S=t[0]?.[v]??0:o>=2&&(S=((t[0]?.[v]??0)+(t[1]?.[v]??0))*.5)),this.tempReal[w]=S*(la[w]??1),this.tempImag[w]=0}zs(this.tempReal,this.tempImag);let s=new Float32Array(1024),c=2/2048;for(let w=0;w<1024;w++){let v=this.tempReal[w]??0,S=this.tempImag[w]??0;s[w]=Math.sqrt(v*v+S*S)*c*2}let l=r/2048,u=Math.max(1,Math.round(20/l)),g=Math.max(u+1,Math.round(150/l)),p=0;for(let w=u;w<=g&&w<1024;w++)p+=(s[w]??0)*(s[w]??0);let f=Math.min(1,Math.sqrt(p/(g-u+1))*4),d=0;for(let w=0;w<1024;w++){let v=(s[w]??0)-(this.previousBins[w]??0);v>0&&(d+=v),this.previousBins[w]=s[w]??0}let h=Math.min(1,d*.15),I=Math.round(300/l),b=Math.min(1023,Math.round(3400/l)),Q=0;for(let w=I;w<=b;w++)Q+=(s[w]??0)*(s[w]??0);let m=Math.min(1,Math.sqrt(Q/(b-I+1))*3.5);return{fftBins:s,bassEnergy:f,drumTransient:h,vocalEnergy:m,timeMs:n*1e3}}static packBufferData(t){let r=new Float32Array(1028);return r.set(t.fftBins,0),r[1024]=t.bassEnergy,r[1025]=t.drumTransient,r[1026]=t.vocalEnergy,r[1027]=t.timeMs,r}static createGpuBuffer(t,r){let n=r?e.packBufferData(r):new Float32Array(1028),o=t.createBuffer({label:"AudioLatentBuffer",size:4112,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,mappedAtCreation:!0});return new Float32Array(o.getMappedRange()).set(n),o.unmap(),o}static updateGpuBuffer(t,r,n){let o=e.packBufferData(n);t.queue.writeBuffer(r,0,o)}},ca=class{constructor(t,r,n,o){this.channels=t;this.sampleRate=r;this.fps=n;this.totalFrames=o;let A=new Qo,i=r||48e3,a=n||30,s=t[0]?.length??0,c=Math.max(10,Math.ceil(s/i*a)+10),l=typeof o=="number"&&Number.isFinite(o)&&o>0?Math.round(o):c;this.frames=new Array(l);for(let u=0;u<l;u++){let g=u/a;this.frames[u]=A.extractAtTime(t,i,g)}}channels;sampleRate;fps;totalFrames;frames=[];gpuBuffers=new WeakMap;getFrameData(t){let r=Math.max(0,Math.min(this.totalFrames-1,Math.round(t)));return this.frames[r]??{fftBins:new Float32Array(1024),bassEnergy:0,drumTransient:0,vocalEnergy:0,timeMs:r/this.fps*1e3}}getGpuBuffer(t,r){let n=this.gpuBuffers.get(t);n||(n=new Map,this.gpuBuffers.set(t,n));let o=Math.max(0,Math.min(this.totalFrames-1,Math.round(r))),A=n.get(o);if(!A){let i=this.getFrameData(o);A=Qo.createGpuBuffer(t,i),n.set(o,A)}return A}};$();var Z={create(e=0,t=0,r=0){return[e,t,r]},copy(e){return[e[0],e[1],e[2]]},set(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e},add(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]},subtract(e,t){return[e[0]-t[0],e[1]-t[1],e[2]-t[2]]},multiplyScalar(e,t){return[e[0]*t,e[1]*t,e[2]*t]},dot(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},cross(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]},lengthSq(e){return e[0]*e[0]+e[1]*e[1]+e[2]*e[2]},length(e){return Math.hypot(e[0],e[1],e[2])},distance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},normalize(e){let t=Math.hypot(e[0],e[1],e[2]);if(t===0)return[0,0,0];let r=1/t;return[e[0]*r,e[1]*r,e[2]*r]},lerp(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},equals(e,t,r=1e-6){return Math.abs(e[0]-t[0])<=r&&Math.abs(e[1]-t[1])<=r&&Math.abs(e[2]-t[2])<=r}};$();var Ee={identity(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},copy(e){return[...e]},multiply(e,t){let r=new Array(16);for(let n=0;n<4;n++)for(let o=0;o<4;o++)r[o*4+n]=e[0+n]*t[o*4+0]+e[4+n]*t[o*4+1]+e[8+n]*t[o*4+2]+e[12+n]*t[o*4+3];return r},translate(e,t,r=0){return[1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]},scale(e,t,r=1){return[e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1]},rotateX(e){let t=Math.cos(e),r=Math.sin(e);return[1,0,0,0,0,t,r,0,0,-r,t,0,0,0,0,1]},rotateY(e){let t=Math.cos(e),r=Math.sin(e);return[t,0,-r,0,0,1,0,0,r,0,t,0,0,0,0,1]},rotateZ(e){let t=Math.cos(e),r=Math.sin(e);return[t,r,0,0,-r,t,0,0,0,0,1,0,0,0,0,1]},rotateAxis(e,t){let r=Z.normalize(e),n=r[0],o=r[1],A=r[2],i=Math.cos(t),a=Math.sin(t),s=1-i;return[s*n*n+i,s*n*o+a*A,s*n*A-a*o,0,s*n*o-a*A,s*o*o+i,s*o*A+a*n,0,s*n*A+a*o,s*o*A-a*n,s*A*A+i,0,0,0,0,1]},lookAt(e,t,r=[0,-1,0]){let n=Z.subtract(t,e);Z.lengthSq(n)===0?n=[0,0,1]:n=Z.normalize(n);let o=Z.cross(n,r);Z.lengthSq(o)===0?o=[1,0,0]:o=Z.normalize(o);let A=Z.cross(o,n);return[o[0],A[0],n[0],0,o[1],A[1],n[1],0,o[2],A[2],n[2],0,-Z.dot(o,e),-Z.dot(A,e),-Z.dot(n,e),1]},perspective(e,t,r,n){let o=1/Math.tan(e/2),A=1/(n-r);return[o/t,0,0,0,0,o,0,0,0,0,n*A,1,0,0,-r*n*A,0]},orthographic(e,t,r,n,o,A){let i=1/(t-e),a=1/(n-r),s=1/(A-o);return[2*i,0,0,0,0,2*a,0,0,0,0,s,0,-(t+e)*i,-(n+r)*a,-o*s,1]},invert(e){let t=new Array(16);t[0]=e[5]*e[10]*e[15]-e[5]*e[11]*e[14]-e[9]*e[6]*e[15]+e[9]*e[7]*e[14]+e[13]*e[6]*e[11]-e[13]*e[7]*e[10],t[4]=-e[4]*e[10]*e[15]+e[4]*e[11]*e[14]+e[8]*e[6]*e[15]-e[8]*e[7]*e[14]-e[12]*e[6]*e[11]+e[12]*e[7]*e[10],t[8]=e[4]*e[9]*e[15]-e[4]*e[11]*e[13]-e[8]*e[5]*e[15]+e[8]*e[7]*e[13]+e[12]*e[5]*e[11]-e[12]*e[7]*e[9],t[12]=-e[4]*e[9]*e[14]+e[4]*e[10]*e[13]+e[8]*e[5]*e[14]-e[8]*e[6]*e[13]-e[12]*e[5]*e[10]+e[12]*e[6]*e[9],t[1]=-e[1]*e[10]*e[15]+e[1]*e[11]*e[14]+e[9]*e[2]*e[15]-e[9]*e[3]*e[14]-e[13]*e[2]*e[11]+e[13]*e[3]*e[10],t[5]=e[0]*e[10]*e[15]-e[0]*e[11]*e[14]-e[8]*e[2]*e[15]+e[8]*e[3]*e[14]+e[12]*e[2]*e[11]-e[12]*e[3]*e[10],t[9]=-e[0]*e[9]*e[15]+e[0]*e[11]*e[13]+e[8]*e[1]*e[15]-e[8]*e[3]*e[13]-e[12]*e[1]*e[11]+e[12]*e[3]*e[9],t[13]=e[0]*e[9]*e[14]-e[0]*e[10]*e[13]-e[8]*e[1]*e[14]+e[8]*e[2]*e[13]+e[12]*e[1]*e[10]-e[12]*e[2]*e[9],t[2]=e[1]*e[6]*e[15]-e[1]*e[7]*e[14]-e[5]*e[2]*e[15]+e[5]*e[3]*e[14]+e[13]*e[2]*e[7]-e[13]*e[3]*e[6],t[6]=-e[0]*e[6]*e[15]+e[0]*e[7]*e[14]+e[4]*e[2]*e[15]-e[4]*e[3]*e[14]-e[12]*e[2]*e[7]+e[12]*e[3]*e[6],t[10]=e[0]*e[5]*e[15]-e[0]*e[7]*e[13]-e[4]*e[1]*e[15]+e[4]*e[3]*e[13]+e[12]*e[1]*e[7]-e[12]*e[3]*e[5],t[14]=-e[0]*e[5]*e[14]+e[0]*e[6]*e[13]+e[4]*e[1]*e[14]-e[4]*e[2]*e[13]-e[12]*e[1]*e[6]+e[12]*e[2]*e[5],t[3]=-e[1]*e[6]*e[11]+e[1]*e[7]*e[10]+e[5]*e[2]*e[11]-e[5]*e[3]*e[10]-e[9]*e[2]*e[7]+e[9]*e[3]*e[6],t[7]=e[0]*e[6]*e[11]-e[0]*e[7]*e[10]-e[4]*e[2]*e[11]+e[4]*e[3]*e[10]+e[8]*e[2]*e[7]-e[8]*e[3]*e[6],t[11]=-e[0]*e[5]*e[11]+e[0]*e[7]*e[9]+e[4]*e[1]*e[11]-e[4]*e[3]*e[9]-e[8]*e[1]*e[7]+e[8]*e[3]*e[5],t[15]=e[0]*e[5]*e[10]-e[0]*e[6]*e[9]-e[4]*e[1]*e[10]+e[4]*e[2]*e[9]+e[8]*e[1]*e[6]-e[8]*e[2]*e[5];let r=e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12];if(Math.abs(r)<1e-12)return null;r=1/r;for(let n=0;n<16;n++)t[n]*=r;return t},transpose(e){return[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]]},projectPoint(e,t){let r=t[0],n=t[1],o=t[2],A=e[0]*r+e[4]*n+e[8]*o+e[12],i=e[1]*r+e[5]*n+e[9]*o+e[13],a=e[2]*r+e[6]*n+e[10]*o+e[14],s=e[3]*r+e[7]*n+e[11]*o+e[15],c=Math.abs(s)>1e-6?1/s:1;return[A*c,i*c,a*c]},projectRectangle(e,t,r){return[Ee.projectPoint(e,[0,0,0]),Ee.projectPoint(e,[t,0,0]),Ee.projectPoint(e,[t,r,0]),Ee.projectPoint(e,[0,r,0])]},toFloat32Array(e){return new Float32Array(e)}};$();function Xn(e,t,r=3){let n=0,o=1,A=1,i=0;for(let a=0;a<r;a++){let s=Math.sin(e*o*2*Math.PI+t+a*1.7),c=Math.cos(e*o*1.414*Math.PI+t*2.1+a*.9);n+=(s*.6+c*.4)*A,i+=A,o*=2,A*=.5}return i>0?n/i:0}var Xr={createDefaultCamera(e,t,r=50){let n=r*Math.PI/180,o=t/2/Math.tan(n/2);return{eye:[e/2,t/2,-o],target:[e/2,t/2,0],up:[0,-1,0],fov:r,aspect:Math.max(1e-4,e/t),near:1,far:5e4,zoom:1,focusDistance:o,fStop:2.8,maxBlurRadius:32}},computeViewMatrix(e){return Ee.lookAt(e.eye,e.target,e.up)},computeProjectionMatrix(e){let t=e.fov*Math.PI/180,r=Ee.perspective(t,e.aspect,e.near,e.far);return e.zoom!==1&&e.zoom>0&&(r[0]*=e.zoom,r[5]*=e.zoom),r},computeViewProjectionMatrix(e){let t=Xr.computeViewMatrix(e),r=Xr.computeProjectionMatrix(e);return Ee.multiply(r,t)},dolly(e,t,r){let n=Z.normalize(Z.subtract(t,e)),o=Z.multiplyScalar(n,r);return{eye:Z.add(e,o),target:t}},truckPedestal(e,t,r,n,o){let A=Z.normalize(Z.subtract(t,e)),i=Z.normalize(Z.cross(A,r)),a=Z.cross(i,A),s=Z.multiplyScalar(i,n),c=Z.multiplyScalar(a,o),l=Z.add(s,c);return{eye:Z.add(e,l),target:Z.add(t,l)}},orbit(e,t,r,n){let o=r*Math.PI/180,A=n*Math.PI/180,i=Math.cos(A),a=Math.sin(A),s=Math.cos(o),c=Math.sin(o),l=e[0]+t*i*c,u=e[1]-t*a,g=e[2]-t*i*s;return[l,u,g]},applyOrientation(e,t,r,n){if(t===0&&r===0&&n===0)return e;let o=Z.normalize(Z.subtract(e.target,e.eye)),A=Z.normalize(Z.cross(o,e.up)),i=Z.cross(A,o),a=Z.distance(e.eye,e.target),s=o,c=i;if(r!==0){let g=r*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.subtract(Z.multiplyScalar(s,p),Z.multiplyScalar(A,f)))}let l=Z.normalize(Z.cross(s,c));if(t!==0){let g=t*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.add(Z.multiplyScalar(s,p),Z.multiplyScalar(c,f))),c=Z.normalize(Z.cross(l,s))}if(n!==0){let g=n*Math.PI/180,p=Math.cos(g),f=Math.sin(g);c=Z.normalize(Z.add(Z.multiplyScalar(c,p),Z.multiplyScalar(l,f)))}let u=Z.add(e.eye,Z.multiplyScalar(s,a));return{...e,target:u,up:c}},applyCameraShake(e,t,r){let{translationAmplitude:n,rotationAmplitude:o,frequency:A=2.5,octaves:i=3,seed:a=42}=r;if(n<=0&&o<=0)return e;let s=t*A,c=Xn(s,a,i)*n,l=Xn(s,a+101.5,i)*n,u=Xn(s,a+203.7,i)*(n*.5),g=Xn(s,a+307.1,i)*o,p=Xn(s,a+409.3,i)*o,f=Z.normalize(Z.subtract(e.target,e.eye)),d=Z.normalize(Z.cross(f,e.up)),h=Z.cross(d,f),I=Z.add(Z.multiplyScalar(d,c),Z.add(Z.multiplyScalar(h,l),Z.multiplyScalar(f,u))),b=Z.add(e.eye,I),Q=Z.add(e.target,Z.add(Z.multiplyScalar(d,p*10),Z.multiplyScalar(h,g*10)));return{...e,eye:b,target:Q}},computeCircleOfConfusion(e,t,r,n,o=32){if(t<=0||n<=0||e<=0)return 0;let A=Math.abs(e-t),i=r/n,a=A/e*i*.5;return Math.min(o,Math.max(0,a))},computeCameraFrustumPlanes(e){let t=r=>{let n=Math.hypot(r[0],r[1],r[2]);return n===0?r:[r[0]/n,r[1]/n,r[2]/n,r[3]/n]};return{left:t([e[3]+e[0],e[7]+e[4],e[11]+e[8],e[15]+e[12]]),right:t([e[3]-e[0],e[7]-e[4],e[11]-e[8],e[15]-e[12]]),bottom:t([e[3]+e[1],e[7]+e[5],e[11]+e[9],e[15]+e[13]]),top:t([e[3]-e[1],e[7]-e[5],e[11]-e[9],e[15]-e[13]]),near:t([e[2],e[6],e[10],e[14]]),far:t([e[3]-e[2],e[7]-e[6],e[11]-e[10],e[15]-e[14]])}},isBoxInFrustum(e,t,r){let n=[r.left,r.right,r.bottom,r.top,r.near,r.far];for(let o of n){let A=o[0]>0?t[0]:e[0],i=o[1]>0?t[1]:e[1],a=o[2]>0?t[2]:e[2];if(o[0]*A+o[1]*i+o[2]*a+o[3]<0)return!1}return!0}};$();var Ys={studio:{top:"#9da3ad",horizon:"#5d626b",bottom:"#202226",softboxes:3.5},soft:{top:"#f1efea",horizon:"#cfcac1",bottom:"#77726a",softboxes:1.2},sunset:{top:"#4d63a3",horizon:"#ff9a5c",bottom:"#3b2a28",softboxes:1},night:{top:"#121a3a",horizon:"#1f2950",bottom:"#05060b",softboxes:.5},neutral:{top:"#9a9a9a",horizon:"#808080",bottom:"#5c5c5c",softboxes:0}},Ws={none:0,aces:1,agx:2,neutral:3};function jr(e){let t=$i(e)??[0,0,0,1],r=n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4;return[r(t[0]),r(t[1]),r(t[2])]}function fa(e){let t=Ys[e.preset??"studio"],r=e.intensity??1,n=o=>[o[0]*r,o[1]*r,o[2]*r];return{top:n(jr(e.top??t.top)),horizon:n(jr(e.horizon??t.horizon)),bottom:n(jr(e.bottom??t.bottom)),softboxes:(e.softboxes??t.softboxes)*r,rotationRad:(e.rotation??0)*Math.PI/180,exposureMultiplier:2**(e.exposure??0),toneMapping:Ws[e.toneMapping??"neutral"],fog:e.fog?{color:jr(e.fog.color),start:e.fog.start,end:e.fog.end,opacity:Math.max(0,Math.min(1,e.fog.opacity??1))}:void 0,floor:e.floor?{y:e.floor.y,color:jr(e.floor.color??"#08070a"),reflectivity:Math.max(0,Math.min(1,e.floor.reflectivity??.35)),roughness:Math.max(0,Math.min(1,e.floor.roughness??.35)),fadeDistance:Math.max(0,e.floor.fadeDistance??900),opacity:Math.max(0,Math.min(1,e.floor.opacity??1))}:void 0}}$();var da=8,cA=768;function sA(e){if(!e)return[1,1,1];if(Array.isArray(e)){let o=e[0]??1,A=e[1]??1,i=e[2]??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e=="object"&&e!==null){let o=e.r??1,A=e.g??1,i=e.b??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e!="string")return[1,1,1];let t=e.trim().toLowerCase();if(t.startsWith("#")){let o=t.slice(1);if(o.length===3){let A=Number.parseInt(o[0]+o[0],16)/255,i=Number.parseInt(o[1]+o[1],16)/255,a=Number.parseInt(o[2]+o[2],16)/255;return[A,i,a]}if(o.length>=6){let A=Number.parseInt(o.slice(0,2),16)/255,i=Number.parseInt(o.slice(2,4),16)/255,a=Number.parseInt(o.slice(4,6),16)/255;return[A,i,a]}}let r=t.match(/rgba?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(r){let o=Number.parseFloat(r[1])/255,A=Number.parseFloat(r[2])/255,i=Number.parseFloat(r[3])/255;return[Math.max(0,Math.min(1,o)),Math.max(0,Math.min(1,A)),Math.max(0,Math.min(1,i))]}let n=t.match(/hsla?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)%?\s*,\s*([\d.]+)%?/);if(n){let o=Number.parseFloat(n[1])/360,A=Number.parseFloat(n[2])/100,i=Number.parseFloat(n[3])/100;return qs(o,A,i)}return[1,1,1]}function qs(e,t,r){if(t===0)return[r,r,r];let n=(i,a,s)=>{let c=s;return c<0&&(c+=1),c>1&&(c-=1),c<1/6?i+(a-i)*6*c:c<1/2?a:c<2/3?i+(a-i)*(2/3-c)*6:i},o=r<.5?r*(1+t):r+t-r*t,A=2*r-o;return[n(A,o,e+1/3),n(A,o,e),n(A,o,e-1/3)]}var vt={computeNormalMatrix(e){let t=Ee.invert(e);return t?[t[0],t[4],t[8],0,t[1],t[5],t[9],0,t[2],t[6],t[10],0,0,0,0,1]:Ee.identity()},processLight(e){let t=sA(e.color),r=e.intensity??1,n=e.position?e.position[0]:e.x??0,o=e.position?e.position[1]:e.y??0,A=e.position?e.position[2]:e.z??0,i=e.lightType??e.type??"directional",a=1;i==="ambient"?a=0:i==="directional"?a=1:i==="point"?a=2:i==="spot"&&(a=3);let s=[0,0,-1];if(e.direction)s=Z.normalize(e.direction);else if(e.target||e.targetX!==void 0||e.targetY!==void 0||e.targetZ!==void 0){let I=e.target?e.target[0]:e.targetX??n,b=e.target?e.target[1]:e.targetY??o,Q=e.target?e.target[2]:e.targetZ??A,m=[I,b,Q],w=Z.subtract(m,[n,o,A]);Z.length(w)>1e-4&&(s=Z.normalize(w))}let c=Math.max(1,e.radius??1e3),l=e.decay??2,u=Math.max(.1,Math.min(180,e.angle??45)),g=Math.max(0,Math.min(1,e.penumbra??.2)),p=u*Math.PI/180,f=p*(1-g),d=Math.cos(p),h=Math.cos(f);return{posType:[n,o,A,a],dirRadius:[s[0],s[1],s[2],c],colorIntensity:[t[0],t[1],t[2],r],spotParams:[d,h,l,0]}},packLightsUniforms(e,t,r,n=!1){let o=new Float32Array(cA/4);if(vt.packPhysicalBlock(o,e??[],t,r,n),(!e||e.length===0)&&!t)return o[4]=0,o[5]=0,o;let A=0,i=0,a=0,s=[];for(let l of e)if((l.lightType??l.type)==="ambient"){let g=sA(l.color),p=l.intensity??1;A+=g[0]*p,i+=g[1]*p,a+=g[2]*p}else s.push(vt.processLight(l));o[0]=A,o[1]=i,o[2]=a,o[3]=1,o[4]=s.length,o[5]=1;let c=8;for(let l=0;l<da;l++){if(l<s.length){let u=s[l];o[c+0]=u.posType[0],o[c+1]=u.posType[1],o[c+2]=u.posType[2],o[c+3]=u.posType[3],o[c+4]=u.dirRadius[0],o[c+5]=u.dirRadius[1],o[c+6]=u.dirRadius[2],o[c+7]=u.dirRadius[3],o[c+8]=u.colorIntensity[0],o[c+9]=u.colorIntensity[1],o[c+10]=u.colorIntensity[2],o[c+11]=u.colorIntensity[3],o[c+12]=u.spotParams[0],o[c+13]=u.spotParams[1],o[c+14]=u.spotParams[2],o[c+15]=u.spotParams[3]}else for(let u=0;u<16;u++)o[c+u]=0;c+=16}return o},packDirectLights(e,t=[]){let r=e.filter(A=>(A.lightType??A.type)!=="ambient"),n=new Float32Array(Math.max(1,r.length)*40),o=new Map(t.map((A,i)=>[A.lightIndex,i]));for(let[A,i]of r.entries()){let a=vt.processLight(i),s=A*40;n.set(a.posType,s),n.set(a.dirRadius,s+4),n.set(a.colorIntensity,s+8),n.set(a.spotParams,s+12);let c=o.get(A),l=c===void 0?void 0:t[c];if(l&&c!==void 0){for(let u=0;u<16;u++)n[s+16+u]=l.matrix[u]??0;n.set([l.softness,l.mapSize,c,1],s+32),n.set([l.bias,l.normalOffset,l.darkness,0],s+36)}}return n},shadowCasterIndex(e){let t=0;for(let r of e){let n=r.lightType??r.type;if(n!=="ambient"){if(r.castShadow&&(n==="directional"||n==="spot"))return t;t++}}return-1},packPhysicalBlock(e,t,r,n,o=!1){let A=8+da*16,i=0,a=0,s=0;for(let c of t){if((c.lightType??c.type)!=="ambient")continue;let[l,u,g]=sA(c.color),p=c.intensity??1,f=d=>d<=.04045?d/12.92:((d+.055)/1.055)**2.4;i+=f(l)*p,a+=f(u)*p,s+=f(g)*p}if(e[A+0]=i,e[A+1]=a,e[A+2]=s,e[A+3]=1,r){let c=fa(r);e[6]=1,e[7]=c.toneMapping,e[A+3]=c.exposureMultiplier,e.set([...c.top,c.rotationRad],A+4),e.set([...c.horizon,c.softboxes],A+8),e.set([...c.bottom,1],A+12),c.fog&&(e.set([...c.fog.color,1],A+16),e.set([c.fog.start,c.fog.end,c.fog.opacity,0],A+20))}if(n&&n.lightIndex>=0){e.set([1,n.lightIndex,n.softness,n.mapSize],A+24),e.set([n.bias,n.normalOffset,n.darkness,0],A+28);for(let c=0;c<16;c++)e[A+32+c]=n.matrix[c]??0}r?.floor?(e[A+48]=r.floor.y,e[A+49]=r.floor.fadeDistance??900,e[A+50]=o?1:0,e[A+51]=0):(e[A+48]=0,e[A+49]=0,e[A+50]=0,e[A+51]=0)}};$();var dr=class e{samples=[];frames=[];totalLength=0;constructor(t){if(t.length<2)throw new Error("Path3D requires at least 2 coordinate samples");this.samples=t,this.totalLength=t[t.length-1].distance,this.computeRotationMinimizingFrames()}computeRotationMinimizingFrames(){let t=this.samples.length;this.frames=new Array(t);let r=this.samples[0].tangent,n=[0,-1,0];Math.abs(Z.dot(r,n))>.95&&(n=[0,0,1]);let o=Z.normalize(Z.subtract(n,Z.multiplyScalar(r,Z.dot(n,r))));Z.lengthSq(o)<1e-4&&(o=[1,0,0]);let A=Z.normalize(Z.cross(r,o));this.frames[0]={normal:o,binormal:A,rotation:this.eulerFromFrame(r,o,A)};for(let i=0;i<t-1;i++){let a=this.samples[i].position,s=this.samples[i+1].position,c=this.samples[i].tangent,l=this.samples[i+1].tangent,u=this.frames[i].normal,g=Z.subtract(s,a),p=Z.dot(g,g),f;if(p>1e-8){let h=Z.subtract(c,Z.multiplyScalar(g,2*Z.dot(g,c)/p)),I=Z.subtract(u,Z.multiplyScalar(g,2*Z.dot(g,u)/p)),b=Z.subtract(l,h),Q=Z.dot(b,b);Q>1e-8?f=Z.subtract(I,Z.multiplyScalar(b,2*Z.dot(b,I)/Q)):f=I}else f=u;f=Z.normalize(Z.subtract(f,Z.multiplyScalar(l,Z.dot(l,f))));let d=Z.normalize(Z.cross(l,f));this.frames[i+1]={normal:f,binormal:d,rotation:this.eulerFromFrame(l,f,d)}}}eulerFromFrame(t,r,n){let o=Math.asin(Math.max(-1,Math.min(1,-t[1])))*(180/Math.PI),A=Math.atan2(t[0],t[2])*(180/Math.PI),i=Math.atan2(r[0],r[1])*(180/Math.PI);return[o,A,i]}getSamples(){return this.samples}getPoints(t=64){let r=Math.max(2,Math.round(t)),n=[];for(let o=0;o<r;o++)n.push(this.getPointAt(o/(r-1)).position);return n}getPointAt(t){let n=Math.max(0,Math.min(1,t))*this.totalLength;return this.getPointAtDistance(n)}getPointAtDistance(t){let r=Math.max(0,Math.min(this.totalLength,t)),n=this.samples.length,o=0,A=n-1;for(;o<A;){let Q=o+A>>1;this.samples[Q].distance<r?o=Q+1:A=Q}let i=Math.max(1,o),a=i-1,s=this.samples[a],c=this.samples[i],l=c.distance-s.distance,u=l>1e-6?(r-s.distance)/l:0,g=Z.lerp(s.position,c.position,u),p=Z.normalize(Z.lerp(s.tangent,c.tangent,u)),f=this.frames[a],d=this.frames[i],h=Z.normalize(Z.lerp(f.normal,d.normal,u)),I=Z.normalize(Z.cross(p,h)),b=[f.rotation[0]+(d.rotation[0]-f.rotation[0])*u,f.rotation[1]+(d.rotation[1]-f.rotation[1])*u,f.rotation[2]+(d.rotation[2]-f.rotation[2])*u];return{position:g,tangent:p,normal:h,binormal:I,distance:r,t:this.totalLength>0?r/this.totalLength:0,rotation:b}}static catmullRom(t,r={}){if(t.length<2)throw new Error("Catmull-Rom spline requires at least 2 waypoints");let n=!!r.closed,o=r.samplesPerSegment??40,A=[];if(n)A.push(t[t.length-1]),A.push(...t),A.push(t[0]),A.push(t[1]);else{let s=t[0],c=t[1],l=t[t.length-1],u=t[t.length-2];A.push(Z.subtract(s,Z.subtract(c,s))),A.push(...t),A.push(Z.add(l,Z.subtract(l,u)))}let i=n?t.length:t.length-1,a=[];for(let s=0;s<i;s++){let c=A[s],l=A[s+1],u=A[s+2],g=A[s+3],p=s===i-1?o:o-1;for(let f=0;f<=p;f++){let d=f/o,h=d*d,I=h*d,b=-.5*I+h-.5*d,Q=1.5*I-2.5*h+1,m=-1.5*I+2*h+.5*d,w=.5*I-.5*h,v=[b*c[0]+Q*l[0]+m*u[0]+w*g[0],b*c[1]+Q*l[1]+m*u[1]+w*g[1],b*c[2]+Q*l[2]+m*u[2]+w*g[2]],S=-1.5*h+2*d-.5,N=4.5*h-5*d,_=-4.5*h+4*d+.5,G=1.5*h-1*d,j=[S*c[0]+N*l[0]+_*u[0]+G*g[0],S*c[1]+N*l[1]+_*u[1]+G*g[1],S*c[2]+N*l[2]+_*u[2]+G*g[2]],R=Z.normalize(j);a.push({position:v,tangent:R})}}return e.fromRawSamples(a)}static fromRawSamples(t){let r=0,n=t.map((o,A)=>(A>0&&(r+=Z.distance(o.position,t[A-1].position)),{position:o.position,tangent:o.tangent,distance:r}));if(n.length===0)throw new TypeError("Path3D needs samples");return new e(n)}static bezier(t,r=50){if(t.length===0)throw new Error("Bezier path requires at least 1 segment");let n=[];for(let o=0;o<t.length;o++){let A=t[o],i=o===t.length-1?r:r-1;for(let a=0;a<=i;a++){let s=a/r,c=1-s,l=c*c,u=l*c,g=s*s,p=g*s,f=[u*A.p0[0]+3*l*s*A.p1[0]+3*c*g*A.p2[0]+p*A.p3[0],u*A.p0[1]+3*l*s*A.p1[1]+3*c*g*A.p2[1]+p*A.p3[1],u*A.p0[2]+3*l*s*A.p1[2]+3*c*g*A.p2[2]+p*A.p3[2]],d=[3*l*(A.p1[0]-A.p0[0])+6*c*s*(A.p2[0]-A.p1[0])+3*g*(A.p3[0]-A.p2[0]),3*l*(A.p1[1]-A.p0[1])+6*c*s*(A.p2[1]-A.p1[1])+3*g*(A.p3[1]-A.p2[1]),3*l*(A.p1[2]-A.p0[2])+6*c*s*(A.p2[2]-A.p1[2])+3*g*(A.p3[2]-A.p2[2])],h=Z.normalize(d);n.push({position:f,tangent:h})}}return e.fromRawSamples(n)}static helix(t){let{center:r,radius:n,pitch:o,turns:A,axis:i="z",samplesPerTurn:a=60}=t,s=Math.max(10,Math.round(A*a)),c=[];for(let l=0;l<=s;l++){let u=l/s,g=u*A*Math.PI*2,p=(u-.5)*o*A,f=Math.cos(g),d=Math.sin(g),h,I;i==="z"?(h=[r[0]+n*f,r[1]+n*d,r[2]+p],I=[-n*d,n*f,o*A/(A*Math.PI*2)]):i==="y"?(h=[r[0]+n*f,r[1]+p,r[2]+n*d],I=[-n*d,o*A/(A*Math.PI*2),n*f]):(h=[r[0]+p,r[1]+n*f,r[2]+n*d],I=[o*A/(A*Math.PI*2),-n*d,n*f]),c.push({position:h,tangent:Z.normalize(I)})}return e.fromRawSamples(c)}static circle(t){let{center:r,radius:n,startAngleDeg:o=0,endAngleDeg:A=360,samples:i=128}=t,a=o*Math.PI/180,s=A*Math.PI/180,c=[];for(let l=0;l<=i;l++){let u=a+(s-a)*(l/i),g=Math.cos(u),p=Math.sin(u),f=[r[0]+n*g,r[1],r[2]+n*p],d=[-n*p,0,n*g];c.push({position:f,tangent:Z.normalize(d)})}return e.fromRawSamples(c)}};$();Pt();$();Pt();var lA={".ktx2":"image/ktx2",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".tif":"image/tiff",".tiff":"image/tiff",".avif":"image/avif"};function Zn(e){return lA[$e.extname(e).toLowerCase()]??"image/png"}function xo(e){let t=$e.extname(e.replace(/\\/g,"/")).toLowerCase();return!t||t in lA}function $n(e,t){if(!e||typeof Re>"u"||!Re.existsSync||!xo(e))return;let r=e.trim().replace(/^file:\/\//,"");try{r=decodeURIComponent(r)}catch{}let n=r.replace(/\\/g,"/"),o=n.split("/").pop()??n,A=[];if($e.isAbsolute(n)&&A.push(n),t){A.push($e.resolve(t,n)),A.push($e.join(t,o)),A.push($e.join(t,"textures",o));try{for(let i of Re.readdirSync(t))i.toLowerCase().endsWith(".fbm")&&A.push($e.join(t,i,o))}catch{}}for(let i of A)try{if(Re.existsSync(i)&&Re.statSync(i).isFile())return{bytes:new Uint8Array(Re.readFileSync(i)),mime:Zn(i)}}catch{}}function Zr(e,t,r){let n=xo(r)?"was not found":`is in an unsupported format (use ${Object.keys(lA).join(", ")})`;console.warn(`[${e}] Texture "${r}" for material "${t}" ${n}; the material renders without it.`)}var eo=class e{static parse(t,r,n){let o=typeof r=="object"&&r!==null?r:n??{},A=typeof r=="string"?r:o.mtlText,i=[],a=[],s=[],c=[],l={materialName:"default",faces:[]};c.push(l);let u={};A&&Object.assign(u,e.loadTextures(e.parseMtl(A),o.basePath));let g=t.split(/\r?\n/);for(let y=0;y<g.length;y++){let ye=g[y]?.trim();if(!ye||ye.startsWith("#"))continue;let Qe=ye.split(/\s+/),xe=Qe[0]?.toLowerCase();if(xe==="mtllib"){let le=Qe.slice(1).join(" ").trim();if(o.basePath&&typeof Re<"u"&&Re.existsSync)try{let ge=$e.resolve(o.basePath,le);if(Re.existsSync(ge)){let be=Re.readFileSync(ge,"utf-8");Object.assign(u,e.loadTextures(e.parseMtl(be),$e.dirname(ge)))}}catch{}}else if(xe==="v"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");i.push([le,ge,be])}else if(xe==="vn"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");a.push([le,ge,be])}else if(xe==="vt"){let le=Number.parseFloat(Qe[1]??"0"),ge=Qe[2]!==void 0?Number.parseFloat(Qe[2]):0;s.push([le,ge])}else if(xe==="usemtl"){let le=Qe[1]??"default";l.faces.length>0?(l={materialName:le,faces:[]},c.push(l)):l.materialName=le}else if(xe==="f"){let le=[];for(let ge=1;ge<Qe.length;ge++){let be=Qe[ge];if(!be)continue;let we=be.split("/"),_e=Number.parseInt(we[0]??"0",10),Ge=we[1]&&we[1].length>0?Number.parseInt(we[1],10):0,Ue=we[2]&&we[2].length>0?Number.parseInt(we[2],10):0;_e<0&&(_e=i.length+_e+1),Ge<0&&(Ge=s.length+Ge+1),Ue<0&&(Ue=a.length+Ue+1),le.push({v:_e-1,vt:Ge-1,vn:Ue-1})}if(le.length>=3)for(let ge=1;ge<le.length-1;ge++){let be=le[0],we=le[ge],_e=le[ge+1];be&&we&&_e&&l.faces.push([be,we,_e])}}}let p=1/0,f=1/0,d=1/0,h=-1/0,I=-1/0,b=-1/0;for(let y of i){let[ye,Qe,xe]=y;ye===void 0||Qe===void 0||xe===void 0||(ye<p&&(p=ye),Qe<f&&(f=Qe),xe<d&&(d=xe),ye>h&&(h=ye),Qe>I&&(I=Qe),xe>b&&(b=xe))}Number.isFinite(p)||(p=-1,f=-1,d=-1,h=1,I=1,b=1);let Q=(p+h)*.5,m=(f+I)*.5,w=(d+b)*.5,v=Math.max(1e-4,h-p),S=Math.max(1e-4,I-f),N=Math.max(1e-4,b-d),_=Math.max(v,S,N),G=1;o.normalizeSize&&o.normalizeSize>0&&(G=o.normalizeSize/_),typeof o.scale=="number"&&(G*=o.scale);let j=o.center??!1,R=j?Q:0,K=j?m:0,z=j?w:0,J=[];for(let y=0;y<c.length;y++){let ye=c[y];if(!ye||ye.faces.length===0)continue;let Qe=new Map,xe=[],le=[],ge=[],be=[],we=!1;for(let Ue of ye.faces)for(let Me of Ue){let He=`${Me.v}_${Me.vt}_${Me.vn}`,Te=Qe.get(He);if(Te===void 0){Te=xe.length/3,Qe.set(He,Te);let je=i[Me.v]??[0,0,0],Le=((je[0]??0)-R)*G,Je=((je[1]??0)-K)*G,nt=((je[2]??0)-z)*G;if(xe.push(Le,Je,nt),Me.vt>=0&&s[Me.vt]){let qe=s[Me.vt];ge.push(qe[0]??0,1-(qe[1]??0))}else ge.push(0,0);if(Me.vn>=0&&a[Me.vn]){we=!0;let qe=a[Me.vn];le.push(qe[0]??0,qe[1]??0,qe[2]??0)}else le.push(0,0,0)}be.push(Te)}if(!we||o.smoothNormals){let Ue=new Float32Array(xe.length);for(let Me=0;Me<be.length;Me+=3){let He=be[Me],Te=be[Me+1],je=be[Me+2],Le=[xe[He*3],xe[He*3+1],xe[He*3+2]],Je=[xe[Te*3],xe[Te*3+1],xe[Te*3+2]],nt=[xe[je*3],xe[je*3+1],xe[je*3+2]],qe=Z.subtract(Je,Le),yt=Z.subtract(nt,Le),ze=Z.cross(qe,yt);Ue[He*3]+=ze[0],Ue[He*3+1]+=ze[1],Ue[He*3+2]+=ze[2],Ue[Te*3]+=ze[0],Ue[Te*3+1]+=ze[1],Ue[Te*3+2]+=ze[2],Ue[je*3]+=ze[0],Ue[je*3+1]+=ze[1],Ue[je*3+2]+=ze[2]}for(let Me=0;Me<xe.length/3;Me++){let He=Ue[Me*3],Te=Ue[Me*3+1],je=Ue[Me*3+2],Le=Math.hypot(He,Te,je)||1;le[Me*3]=He/Le,le[Me*3+1]=Te/Le,le[Me*3+2]=je/Le}}let Ge=xe.length/3>65535?new Uint32Array(be):new Uint16Array(be);J.push({id:`mesh_${y}`,name:ye.materialName,positions:new Float32Array(xe),normals:new Float32Array(le),uvs:new Float32Array(ge),indices:Ge,materialName:ye.materialName})}let W=(p-R)*G,X=(f-K)*G,Ae=(d-z)*G,re=(h-R)*G,oe=(I-K)*G,ne=(b-z)*G,ie=re-W,he=oe-X,F=ne-Ae,Be=(W+re)*.5,Se=(X+oe)*.5,Pe=(Ae+ne)*.5,Ie=Math.hypot(ie,he,F)*.5;return{meshes:J,materials:u,animations:[],bounds:{min:[W,X,Ae],max:[re,oe,ne],center:[Be,Se,Pe],size:[ie,he,F],boundingSphereRadius:Ie}}}static parseMtl(t){let r={},n=null,o=t.split(/\r?\n/);for(let A of o){let i=A.trim();if(!i||i.startsWith("#"))continue;let a=i.split(/\s+/),s=a[0]?.toLowerCase();if(s==="newmtl"){let c=a[1]??"default";n={name:c,diffuseColor:[1,1,1,1],specularColor:[1,1,1],ambientColor:[.2,.2,.2],shininess:32,opacity:1},r[c]=n}else if(n)if(s==="kd"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.diffuseColor=[c,l,u,n.diffuseColor?.[3]??1]}else if(s==="ks"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.specularColor=[c,l,u],n.specularIntensity=(c+l+u)/3}else if(s==="ka"){let c=Number.parseFloat(a[1]??"0.2"),l=Number.parseFloat(a[2]??"0.2"),u=Number.parseFloat(a[3]??"0.2");n.ambientColor=[c,l,u]}else if(s==="ns")n.shininess=Number.parseFloat(a[1]??"32");else if(s==="d"||s==="tr"){let c=Number.parseFloat(a[1]??"1");n.opacity=s==="d"?c:1-c,n.diffuseColor&&(n.diffuseColor[3]=n.opacity)}else if(s==="map_kd"){n.diffuseTexture=e.mapFileName(a);let c=a.findIndex(l=>l.toLowerCase()==="-clamp");n.textureWrap=c>0&&a[c+1]?.toLowerCase()==="on"?"clamp":"repeat"}else(s==="norm"||s==="map_kn")&&(n.normalTexture=e.mapFileName(a))}return r}static MAP_OPTION_ARGS={"-blendu":1,"-blendv":1,"-cc":1,"-clamp":1,"-texres":1,"-bm":1,"-boost":1,"-imfchan":1,"-type":1,"-mm":2};static mapFileName(t){let r=1;for(;r<t.length&&t[r]?.startsWith("-");){let n=t[r].toLowerCase();if(r++,n==="-o"||n==="-s"||n==="-t")for(let o=0;o<3&&r<t.length&&!Number.isNaN(Number(t[r]));o++)r++;else r+=e.MAP_OPTION_ARGS[n]??0}return t.slice(r).join(" ")}static loadTextures(t,r){if(!r)return t;for(let n of Object.values(t)){if(n.diffuseTexture&&!n.diffuseTextureBuffer){let o=$n(n.diffuseTexture,r);o?(n.diffuseTextureBuffer=o.bytes,n.diffuseTextureMime=o.mime):Zr("ObjLoader",n.name,n.diffuseTexture)}if(n.normalTexture&&!n.normalTextureBuffer){let o=$n(n.normalTexture,r);o?n.normalTextureBuffer=o.bytes:Zr("ObjLoader",n.name,n.normalTexture)}}return t}};function Wu(e,t,r={}){return eo.parse(e,t,r)}function qu(e){return eo.parseMtl(e)}function to(e,t,r={}){let n;if(typeof e!="string")n=new TextDecoder().decode(e);else{let o=e.trim();if(!(o.startsWith("v ")||o.startsWith("#")||o.includes(`
|
|
2
2
|
v `)||o.includes("\rv "))&&typeof Re<"u"&&Re.existsSync)try{let i=e.startsWith("file://")?e.slice(7):e;try{i=decodeURIComponent(i)}catch{}Re.existsSync(i)?(n=Re.readFileSync(i,"utf-8"),r={basePath:r.basePath??$e.dirname(i),...r}):n=e}catch{n=e}else n=e}return eo.parse(n,t,r)}$();Pt();var Ca=iA(ma(),1);$();function hr(e,t,r){let n=o=>[e[o*3],e[o*3+1],e[o*3+2]];for(let o=0;o<t.length;o+=3){let A=t[o],i=t[o+1],a=t[o+2],s=n(A),c=Z.cross(Z.subtract(n(i),s),Z.subtract(n(a),s));for(let l of[A,i,a])r[l*3]+=c[0],r[l*3+1]+=c[1],r[l*3+2]+=c[2]}for(let o=0;o<r.length;o+=3){let A=r[o],i=r[o+1],a=r[o+2],s=Math.hypot(A,i,a)||1;r[o]=A/s,r[o+1]=i/s,r[o+2]=a/s}}function jt(...e){let t=1/0,r=1/0,n=1/0,o=-1/0,A=-1/0,i=-1/0;for(let a of e)for(let s=0;s<a.length;s+=3){let c=a[s],l=a[s+1],u=a[s+2];c<t&&(t=c),c>o&&(o=c),l<r&&(r=l),l>A&&(A=l),u<n&&(n=u),u>i&&(i=u)}return Number.isFinite(t)||(t=r=n=0,o=A=i=0),{min:[t,r,n],max:[o,A,i],center:[(t+o)*.5,(r+A)*.5,(n+i)*.5],size:[o-t,A-r,i-n]}}function Dt(e,t){let r=Math.max(...e.size,1e-4),n=1;t.normalizeSize&&t.normalizeSize>0&&(n=t.normalizeSize/r);let o=[n,n,n];return typeof t.scale=="number"?(o[0]*=t.scale,o[1]*=t.scale,o[2]*=t.scale):Array.isArray(t.scale)&&(o[0]*=t.scale[0],o[1]*=t.scale[1],o[2]*=t.scale[2]),{offset:t.center?e.center:[0,0,0],scale:o}}function Vt(e,{offset:t,scale:r}){let n=new Float32Array(e.length);for(let o=0;o<e.length;o+=3)n[o]=(e[o]-t[0])*r[0],n[o+1]=(e[o+1]-t[1])*r[1],n[o+2]=(e[o+2]-t[2])*r[2];return n}function Jt(e,t){return t>65535?new Uint32Array(e):new Uint16Array(e)}function Kt(e,{offset:t,scale:r}){let n=[(e.min[0]-t[0])*r[0],(e.min[1]-t[1])*r[1],(e.min[2]-t[2])*r[2]],o=[(e.max[0]-t[0])*r[0],(e.max[1]-t[1])*r[1],(e.max[2]-t[2])*r[2]];return{min:n,max:o,center:[(n[0]+o[0])*.5,(n[1]+o[1])*.5,(n[2]+o[2])*.5],size:[o[0]-n[0],o[1]-n[1],o[2]-n[2]],boundingSphereRadius:Math.hypot(o[0]-n[0],o[1]-n[1],o[2]-n[2])*.5}}$();function Xs(e,t,r){let[n,o,A,i]=t,a=n*n,s=o*o,c=A*A,l=n*o,u=n*A,g=o*A,p=i*n,f=i*o,d=i*A;return[(1-2*(s+c))*r[0],2*(l+d)*r[0],2*(u-f)*r[0],0,2*(l-d)*r[1],(1-2*(a+c))*r[1],2*(g+p)*r[1],0,2*(u+f)*r[2],2*(g-p)*r[2],(1-2*(a+s))*r[2],0,e[0],e[1],e[2],1]}function Ia(e){let t=Math.hypot(e[0],e[1],e[2],e[3])||1;return[e[0]/t,e[1]/t,e[2]/t,e[3]/t]}function Zs(e,t,r){let n=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],o=n<0?-1:1;if(n*=o,n>.9995)return Ia([e[0]+(o*t[0]-e[0])*r,e[1]+(o*t[1]-e[1])*r,e[2]+(o*t[2]-e[2])*r,e[3]+(o*t[3]-e[3])*r]);let A=Math.acos(n),i=Math.sin(A),a=Math.sin((1-r)*A)/i,s=o*Math.sin(r*A)/i;return[e[0]*a+t[0]*s,e[1]*a+t[1]*s,e[2]*a+t[2]*s,e[3]*a+t[3]*s]}function $s(e,t){let r=0,n=e.length-1;for(;r<n;){let o=r+n+1>>1;(e[o]??0)<=t?r=o:n=o-1}return r}function Vr(e,t,r,n,o=1){let A=n?(t*3+o)*r:t*r;return Array.from(e.subarray(A,A+r))}function vo(e,t,r,n,o=!1){let{times:A}=e,i=e.interpolation==="cubic",a=A.length-1;if(n<=(A[0]??0))return Vr(t,0,r,i);if(n>=(A[a]??0))return Vr(t,a,r,i);let s=$s(A,n);if(e.interpolation==="step")return Vr(t,s,r,i);let c=A[s]??0,l=(A[s+1]??c)-c,u=l>0?(n-c)/l:0,g=Vr(t,s,r,i),p=Vr(t,s+1,r,i);if(i){let f=Vr(t,s,r,!0,2),d=Vr(t,s+1,r,!0,0),h=u*u,I=h*u,b=g.map((Q,m)=>(2*I-3*h+1)*Q+(I-2*h+u)*l*(f[m]??0)+(-2*I+3*h)*(p[m]??0)+(I-h)*l*(d[m]??0));return o?Ia(b):b}return o?Zs(g,p,u):g.map((f,d)=>f+((p[d]??f)-f)*u)}function Ag(e,t,r){let n=e.morphTargets?.length??0;if(!n)return[];let o=t?.tracks.find(A=>A.node===e.node&&A.weights&&A.times.length>0);return o?.weights?vo(o,o.weights,n,r):e.morphWeights??Array(n).fill(0)}function ec(e,t,r){let n=e.map(a=>[...a.translation]),o=e.map(a=>[...a.rotation]),A=e.map(a=>[...a.scale]),i=new Map(e.map((a,s)=>[a.name,s]));for(let a of t?.tracks??[]){let s=a.node??i.get(a.nodeName);s===void 0||!a.times.length||(a.translations&&(n[s]=vo(a,a.translations,3,r)),a.rotations&&(o[s]=vo(a,a.rotations,4,r,!0)),a.scales&&(A[s]=vo(a,a.scales,3,r)))}return e.map((a,s)=>a.matrix??Xs(n[s],o[s],A[s]))}function Do(e,t,r){let n=e.nodes??[],o=ec(n,t,r),A=new Array(n.length),i=a=>{let s=A[a];if(s)return s;let c=n[a].parent,l=c<0?o[a]:Ee.multiply(i(c),o[a]);return A[a]=l,l};return n.map((a,s)=>i(s))}function ig(e,t,r){let n=e.skins?.[t];if(!n)throw new Error(`model has no skin ${t}`);let o=new Float32Array(Math.max(1,n.joints.length)*16);for(let A=0;A<Math.max(1,n.joints.length);A++){let i=n.joints[A];if(i===void 0){o.set(Ee.identity(),A*16);continue}let a=Array.from(n.inverseBindMatrices.subarray(A*16,A*16+16));o.set(Ee.multiply(r[i],a),A*16)}return o}var Jr=class e{static FBX_KTIME=46186158e3;static parse(t,r={}){let n=typeof t=="string"?e.parseAscii(t):e.isBinary(t)?e.parseBinary(t):e.parseAscii(new TextDecoder().decode(t));return e.buildModelFromTree(n,r)}static isBinary(t){let r=t instanceof Uint8Array?t:new Uint8Array(t);if(r.length<27)return!1;let n="Kaydara FBX Binary \0\0";for(let o=0;o<n.length;o++)if(r[o]!==n.charCodeAt(o))return!1;return!0}static parseBinary(t){let r=t instanceof Uint8Array?t:new Uint8Array(t),n=new DataView(r.buffer,r.byteOffset,r.byteLength),A=n.getUint32(23,!0)>=7500,i=27,a={name:"Root",props:[],children:[]},s=()=>{if(i>=r.byteLength)return null;let c,l,u;if(A){if(i+25>r.byteLength)return null;c=Number(n.getBigUint64(i,!0)),l=Number(n.getBigUint64(i+8,!0)),u=n.getUint8(i+24),i+=25}else{if(i+13>r.byteLength)return null;c=n.getUint32(i,!0),l=n.getUint32(i+4,!0),u=n.getUint8(i+12),i+=13}if(c===0)return null;let g=new TextDecoder().decode(r.subarray(i,i+u));i+=u;let p=[];for(let d=0;d<l;d++){let h=String.fromCharCode(r[i]);switch(i+=1,h){case"Y":{p.push(n.getInt16(i,!0)),i+=2;break}case"C":case"B":{p.push(n.getUint8(i)!==0),i+=1;break}case"I":{p.push(n.getInt32(i,!0)),i+=4;break}case"F":{p.push(n.getFloat32(i,!0)),i+=4;break}case"D":{p.push(n.getFloat64(i,!0)),i+=8;break}case"L":{p.push(Number(n.getBigInt64(i,!0))),i+=8;break}case"S":{let I=n.getUint32(i,!0);i+=4;let b=new TextDecoder().decode(r.subarray(i,i+I));p.push(b),i+=I;break}case"R":{let I=n.getUint32(i,!0);i+=4;let b=r.subarray(i,i+I);p.push(b),i+=I;break}case"f":case"d":case"i":case"l":case"b":case"c":{let I=n.getUint32(i,!0),b=n.getUint32(i+4,!0),Q=n.getUint32(i+8,!0);i+=12;let m;if(b===1){let v=r.subarray(i,i+Q);m=(0,Ca.inflateSync)(v),i+=Q}else{let S=I*(h==="d"||h==="l"?8:h==="f"||h==="i"?4:1);m=r.subarray(i,i+S),i+=S}let w=new DataView(m.buffer,m.byteOffset,m.byteLength);if(h==="f"){let v=new Float32Array(I);for(let S=0;S<I;S++)v[S]=w.getFloat32(S*4,!0);p.push(v)}else if(h==="d"){let v=new Float64Array(I);for(let S=0;S<I;S++)v[S]=w.getFloat64(S*8,!0);p.push(v)}else if(h==="i"){let v=new Int32Array(I);for(let S=0;S<I;S++)v[S]=w.getInt32(S*4,!0);p.push(v)}else if(h==="l"){let v=new Float64Array(I);for(let S=0;S<I;S++)v[S]=Number(w.getBigInt64(S*8,!0));p.push(v)}else if(h==="b"){let v=new Uint8Array(I);for(let S=0;S<I;S++)v[S]=w.getUint8(S);p.push(v)}else p.push(m);break}default:break}}let f=[];for(;i<c;){let d=s();if(d)f.push(d);else break}return i=c,{name:g,props:p,children:f}};for(;i<r.byteLength-(A?25:13);){let c=s();if(c)a.children.push(c);else break}return a}static parseAscii(t){let r={name:"Root",props:[],children:[]},n=[r],o=t.split(/\r?\n/);for(let A=0;A<o.length;A++){let i=o[A]?.trim();if(!i||i.startsWith(";"))continue;if(i==="}"){n.length>1&&n.pop();continue}let a=i.indexOf(":");if(a===-1)continue;let s=i.substring(0,a).trim(),c=i.substring(a+1).trim(),l=c.endsWith("{"),u=l?c.slice(0,-1).trim():c,g=[];if(u){let d=u.split(",").map(h=>h.trim());for(let h of d)h.startsWith('"')&&h.endsWith('"')?g.push(h.slice(1,-1)):Number.isNaN(Number(h))?g.push(h):g.push(Number(h))}let p={name:s,props:g,children:[]},f=n[n.length-1];f&&f.children.push(p),l&&n.push(p)}return r}static textureSlot(t){let r=t.toLowerCase();if(r==="diffusecolor"||r==="diffuse"||r.endsWith("|basecolor")||r.endsWith("|base_color")||r==="basecolor")return"diffuse";if(r==="normalmap"||r.endsWith("|normalcamera")||r.endsWith("|bump_map"))return"normal"}static attachTextures(t,r,n,o,A){let i=(a,s)=>{let c=a?.children.find(l=>l.name===s)?.props[0];return typeof c=="string"&&c?c:void 0};for(let a of o){if(a.parentId!==r||!a.propName)continue;let s=e.textureSlot(a.propName),c=n.get(a.childId);if(!s||c?.node.name!=="Texture"||(s==="diffuse"?t.diffuseTextureBuffer:t.normalTextureBuffer))continue;let l=o.filter(f=>f.parentId===a.childId&&!f.propName).map(f=>n.get(f.childId)?.node).find(f=>f?.name==="Video"),u=i(c.node,"RelativeFilename")??i(c.node,"FileName")??i(l,"RelativeFilename")??i(l,"Filename");if(u&&!xo(u)){Zr("FbxLoader",t.name,u);continue}let g,p=l?.children.find(f=>f.name==="Content")?.props[0];if(p instanceof Uint8Array&&p.length>0?g=p:u&&(g=$n(u,A)?.bytes),!g){u&&Zr("FbxLoader",t.name,u);continue}s==="diffuse"?(t.diffuseTextureBuffer=g,t.diffuseTextureMime=Zn(u??""),u&&(t.diffuseTexture=u),t.textureWrap="repeat"):(t.normalTextureBuffer=g,u&&(t.normalTexture=u))}}static buildModelFromTree(t,r={}){let n=t.children.find(_=>_.name==="Objects"),o=t.children.find(_=>_.name==="Connections"),A=new Map;if(n)for(let _ of n.children){let G=_.props[0]??0,R=String(_.props[1]??"").split("::"),K=R.length>1?R[1]:R[0],z=String(_.props[2]??_.name);A.set(G,{id:G,name:K,type:z,node:_})}let i=[];if(o){for(let _ of o.children)if(_.name==="C"||_.name==="Connect"){let G=String(_.props[0]),j=_.props[1]??0,R=_.props[2]??0,K=G==="OP"?String(_.props[3]):void 0;i.push({childId:j,parentId:R,propName:K})}}let a=_=>{for(let G of i){let j=G.parentId===_?A.get(G.childId):void 0;if(j?.node.name==="Material"&&!G.propName)return j.name}for(let G of i)if(!(G.childId!==_||G.propName))for(let j of i){if(j.parentId!==G.parentId||j.propName)continue;let R=A.get(j.childId);if(R?.node.name==="Material")return R.name}},s=[],c={};function l(_){if(!_)return[];if(_.props[0]instanceof Float32Array||_.props[0]instanceof Float64Array||_.props[0]instanceof Int32Array||Array.isArray(_.props[0]))return _.props[0];let G=_.children.find(j=>j.name==="a");return G&&G.props.length>0?G.props:Array.isArray(_.props)&&_.props.length>0&&typeof _.props[0]=="number"?_.props:[]}let u=[...A.values()].filter(_=>_.node.name==="Model").map(_=>_.id),g=new Map(u.map((_,G)=>[_,G])),p=u.map(_=>{let G=A.get(_),j=i.find(R=>R.childId===_&&!R.propName&&g.has(R.parentId));return{name:G.name,parent:j?g.get(j.parentId):-1,translation:ro(G.node,"Lcl Translation",0),rotation:ba(G.node,Mo(ro(G.node,"Lcl Rotation",0),Qa(G.node))),scale:ro(G.node,"Lcl Scaling",1)}}),f=_=>i.find(G=>G.childId===_&&!G.propName&&g.has(G.parentId))?.parentId,d=[];for(let[_,G]of A)if(G.node.name==="Geometry"&&(G.type==="Mesh"||G.node.props[2]==="Mesh"||G.type==="")){let j=G.node,R=j.children.find(le=>le.name==="Vertices"),K=j.children.find(le=>le.name==="PolygonVertexIndex");if(!R||!K)continue;let z=l(R),J=l(K),W=(le,ge,be,we)=>{let _e=j.children.find(Ge=>Ge.name===le);if(_e)return tc(_e,l(_e.children.find(Ge=>Ge.name===ge)),l(_e.children.find(Ge=>Ge.name===be)),we)},X=W("LayerElementNormal","Normals","NormalsIndex",3),Ae=W("LayerElementUV","UV","UVIndex",2),re=[],oe=[],ne=0;for(let le=0;le<J.length;le++){let ge=J[le];if(oe.push({cp:ge<0?-(ge+1):ge,pv:le}),!(ge>=0)){for(let be=1;be<oe.length-1;be++)for(let we of[oe[0],oe[be],oe[be+1]])re.push({...we,poly:ne});oe=[],ne++}}let ie=re.length,he=new Float32Array(ie*3),F=new Float32Array(ie*3),Be=new Float32Array(ie*2),Se=new Array(ie);re.forEach(({cp:le,pv:ge,poly:be},we)=>{he[we*3]=z[le*3]??0,he[we*3+1]=z[le*3+1]??0,he[we*3+2]=z[le*3+2]??0;let _e=X?.(le,ge,be);F.set(_e??[0,0,1],we*3);let Ge=Ae?.(le,ge,be);Be[we*2]=Ge?.[0]??0,Be[we*2+1]=1-(Ge?.[1]??0),Se[we]=we}),(!X||r.smoothNormals)&&(F.fill(0),hr(he,Se,F));let Pe=i.find(le=>le.parentId===_&&A.get(le.childId)?.node.name==="Deformer"&&A.get(le.childId)?.node.props[2]==="Skin"),Ie,y,ye;if(Pe){let le=[],ge=[],be=new Map;for(let we of i){let _e=A.get(we.childId);if(we.parentId!==Pe.childId||_e?.node.name!=="Deformer"||_e.node.props[2]!=="Cluster")continue;let Ge=i.find(Le=>Le.parentId===_e.id&&g.has(Le.childId))?.childId;if(Ge===void 0)continue;let Ue=le.length;le.push(g.get(Ge));let Me=Ea(_e.node,"Transform"),He=Ea(_e.node,"TransformLink");ge.push(...Ee.multiply(Ee.invert(He)??Ee.identity(),Me));let Te=l(_e.node.children.find(Le=>Le.name==="Indexes")),je=l(_e.node.children.find(Le=>Le.name==="Weights"));for(let Le=0;Le<Te.length;Le++){let Je=Number(je[Le]??0);if(!(Je>0))continue;let nt=Number(Te[Le]),qe=be.get(nt)??[];qe.push([Ue,Je]),be.set(nt,qe)}}le.length>0&&(ye=d.length,d.push({joints:le,inverseBindMatrices:new Float32Array(ge)}),Ie=new Float32Array(ie*4),y=new Float32Array(ie*4),re.forEach(({cp:we},_e)=>{let Ge=(be.get(we)??[]).sort((Me,He)=>He[1]-Me[1]).slice(0,4),Ue=Ge.reduce((Me,[,He])=>Me+He,0);Ge.forEach(([Me,He],Te)=>{Ie[_e*4+Te]=Me,y[_e*4+Te]=Ue>0?He/Ue:0})}))}let Qe=f(_),xe=ie>65535;s.push({id:`fbx_mesh_${_}`,name:G.name,positions:he,normals:F,uvs:Be,indices:xe?new Uint32Array(Se):new Uint16Array(Se),jointIndices:Ie,jointWeights:y,materialName:a(_)??G.name,node:Qe!==void 0?g.get(Qe):void 0,skin:ye})}for(let[,_]of A)if(_.node.name==="Material"){let j=_.node.children.find(W=>W.name==="Properties70"),R=[1,1,1,1],K=32,z=1;if(j){for(let W of j.children)if(W.name==="P"){let X=String(W.props[0]);if(X==="DiffuseColor"||X==="Color"){let Ae=Number(W.props[4]??1),re=Number(W.props[5]??1),oe=Number(W.props[6]??1);R=[Ae,re,oe,1]}else X==="Shininess"||X==="ShininessExponent"?K=Number(W.props[4]??32):X==="Opacity"&&(z=Number(W.props[4]??1),R[3]=z)}}let J={name:_.name,diffuseColor:R,shininess:K,opacity:z};e.attachTextures(J,_.id,A,i,r.basePath),c[_.name]=J}let h=[];for(let[_,G]of A)if(G.node.name==="AnimationStack"){let j=G.name||"Take 001",R=[],K=i.find(J=>J.parentId===_&&A.get(J.childId)?.node.name==="AnimationLayer");if(K){let J=i.filter(X=>X.parentId===K.childId&&A.get(X.childId)?.node.name==="AnimationCurveNode"),W=new Map;for(let X of J){let Ae=A.get(X.childId);if(!Ae)continue;let re=i.find(Be=>Be.childId===Ae.id&&A.get(Be.parentId)?.node.name==="Model"),oe=re?A.get(re.parentId):void 0,ne=ya(re?.propName)??ya(Ae.name);if(!ne)continue;let ie=`${oe?.id??Ae.id}|${ne}`,he=W.get(ie);if(!he){let Be=oe?.node;he={nodeName:oe?.name??Ae.name,modelId:oe?.id,model:Be,kind:ne,defaults:nc(Be,Ae.node,ne),channels:[void 0,void 0,void 0]},W.set(ie,he)}i.filter(Be=>Be.parentId===Ae.id&&A.get(Be.childId)?.node.name==="AnimationCurve").forEach((Be,Se)=>{let Pe=rc(Be.propName)??Se;if(Pe>2)return;let Ie=A.get(Be.childId)?.node,y=l(Ie?.children.find(xe=>xe.name==="KeyTime")),ye=l(Ie?.children.find(xe=>xe.name==="KeyValueFloat")),Qe=Math.min(y.length,ye.length);Qe!==0&&(he.channels[Pe]={times:Array.from(y.slice(0,Qe),xe=>Number(xe)),values:Array.from(ye.slice(0,Qe),xe=>Number(xe))})})}for(let X of W.values()){let Ae=ic(X);if(Ae){if(X.modelId!==void 0&&(Ae.node=g.get(X.modelId)),Ae.rotations&&X.model)for(let re=0;re<Ae.rotations.length;re+=4){let oe=Array.from(Ae.rotations.subarray(re,re+4));Ae.rotations.set(ba(X.model,oe),re)}R.push(Ae)}}}let z=1;for(let J of R)if(J.times.length>0){let W=J.times[J.times.length-1]??0;W>z&&(z=W)}h.push({name:j,duration:z,fps:30,tracks:R})}let I={meshes:s,materials:c,animations:h,nodes:p,skins:d,bounds:{min:[0,0,0],max:[0,0,0],center:[0,0,0],size:[0,0,0],boundingSphereRadius:0}},b=Do(I,void 0,0),Q=[1/0,1/0,1/0],m=[-1/0,-1/0,-1/0];for(let _ of s){let G=_.node!==void 0?b[_.node]:void 0;for(let j=0;j<_.positions.length;j+=3){let R=[_.positions[j],_.positions[j+1],_.positions[j+2]],K=G?Ee.projectPoint(G,R):R;for(let z=0;z<3;z++)K[z]<Q[z]&&(Q[z]=K[z]),K[z]>m[z]&&(m[z]=K[z])}}Number.isFinite(Q[0])||(Q.fill(-1),m.fill(1));let{offset:w,scale:v}=Dt({min:Q,max:m,center:[(Q[0]+m[0])*.5,(Q[1]+m[1])*.5,(Q[2]+m[2])*.5],size:[m[0]-Q[0],m[1]-Q[1],m[2]-Q[2]]},r);I.rootTransform=Ee.multiply(Ee.scale(v[0],v[1],v[2]),Ee.translate(-w[0],-w[1],-w[2]));let S=[0,1,2].map(_=>(Q[_]-w[_])*v[_]),N=[0,1,2].map(_=>(m[_]-w[_])*v[_]);return I.bounds={min:S,max:N,center:[(S[0]+N[0])*.5,(S[1]+N[1])*.5,(S[2]+N[2])*.5],size:[N[0]-S[0],N[1]-S[1],N[2]-S[2]],boundingSphereRadius:Math.hypot(N[0]-S[0],N[1]-S[1],N[2]-S[2])*.5},I}};function ro(e,t,r){let n=$r(e,t);return[0,1,2].map(o=>{let A=n?.[o];return A!==void 0&&Number.isFinite(A)?A:r})}function Ba(e,t){return[e[3]*t[0]+e[0]*t[3]+e[1]*t[2]-e[2]*t[1],e[3]*t[1]-e[0]*t[2]+e[1]*t[3]+e[2]*t[0],e[3]*t[2]+e[0]*t[1]-e[1]*t[0]+e[2]*t[3],e[3]*t[3]-e[0]*t[0]-e[1]*t[1]-e[2]*t[2]]}function ba(e,t){let r=$r(e,"PreRotation"),n=$r(e,"PostRotation"),o=t;if(r&&(o=Ba(Mo(ro(e,"PreRotation",0)),o)),n){let A=Mo(ro(e,"PostRotation",0));o=Ba(o,[-A[0],-A[1],-A[2],A[3]])}return o}function Ea(e,t){let r=e.children.find(A=>A.name===t),n=r?.children.find(A=>A.name==="a")?.props??r?.props,o=n?.[0]instanceof Float64Array||n?.[0]instanceof Float32Array?Array.from(n[0]):(n??[]).map(Number);return o.length===16?o:Ee.identity()}function tc(e,t,r,n){if(t.length===0)return;let o=a=>String(e.children.find(s=>s.name===a)?.props[0]??""),A=o("MappingInformationType"),i=/^Index/.test(o("ReferenceInformationType"))&&r.length>0;return(a,s,c)=>{let l=A==="ByPolygonVertex"?s:A==="ByPolygon"?c:A==="AllSame"?0:a;return i&&(l=Number(r[l]??l)),Array.from({length:n},(u,g)=>Number(t[l*n+g]??0))}}function ya(e){switch(e){case"Lcl Translation":case"T":return"T";case"Lcl Rotation":case"R":return"R";case"Lcl Scaling":case"S":return"S";default:return}}function rc(e){switch(e){case"d|X":return 0;case"d|Y":return 1;case"d|Z":return 2;default:return}}function $r(e,t){let n=e?.children.find(o=>o.name==="Properties70")?.children.find(o=>o.name==="P"&&o.props[0]===t);if(n)return n.props.slice(4).map(o=>Number(o))}function nc(e,t,r){let n=r==="S"?1:0,o=$r(e,r==="T"?"Lcl Translation":r==="R"?"Lcl Rotation":"Lcl Scaling"),A=[n,n,n];for(let i=0;i<3;i++){let a=o?.[i],s=$r(t,`d|${"XYZ"[i]}`)?.[0],c=a??s;c!==void 0&&Number.isFinite(c)&&(A[i]=c)}return A}var oc=["XYZ","XZY","YZX","YXZ","ZXY","ZYX"];function Qa(e){let t=$r(e,"RotationOrder")?.[0]??0;return oc[t]??"XYZ"}function Mo(e,t="XYZ"){let r=[0,0,0,1];for(let n of t){let o="XYZ".indexOf(n),A=(e[o]??0)*Math.PI/360,i=Math.sin(A),a=[0,0,0,Math.cos(A)];a[o]=i,r=[a[3]*r[0]+a[0]*r[3]+a[1]*r[2]-a[2]*r[1],a[3]*r[1]-a[0]*r[2]+a[1]*r[3]+a[2]*r[0],a[3]*r[2]+a[0]*r[1]-a[1]*r[0]+a[2]*r[3],a[3]*r[3]-a[0]*r[0]-a[1]*r[1]-a[2]*r[2]]}return r}function Ac(e,t){let{times:r,values:n}=e,o=r.length-1;if(t<=r[0])return n[0];if(t>=r[o])return n[o];let A=0;for(;A<o-1&&r[A+1]<=t;)A++;let i=r[A],a=r[A+1],s=a>i?(t-i)/(a-i):0;return n[A]+(n[A+1]-n[A])*s}function ic(e){let t=new Set;for(let s of e.channels)for(let c of s?.times??[])t.add(c);if(t.size===0)return;let r=[...t].sort((s,c)=>s-c),n=new Float32Array(r.length),o=e.kind==="R",A=new Float32Array(r.length*(o?4:3)),i=o?Qa(e.model):"XYZ",a;return r.forEach((s,c)=>{n[c]=s/Jr.FBX_KTIME;let l=[0,1,2].map(g=>{let p=e.channels[g];return p?Ac(p,s):e.defaults[g]});if(!o){A.set(l,c*3);return}let u=Mo(l,i);if(a&&a[0]*u[0]+a[1]*u[1]+a[2]*u[2]+a[3]*u[3]<0)for(let g=0;g<4;g++)u[g]=-u[g];a=u,A.set(u,c*4)}),{nodeName:e.nodeName,times:n,translations:e.kind==="T"?A:void 0,rotations:o?A:void 0,scales:e.kind==="S"?A:void 0}}function dg(e,t={}){return Jr.parse(e,t)}function no(e,t={}){let r=e;if(typeof e=="string"){let n=e.trim();if(!(n.includes("FBXHeaderExtension")||n.includes("Kaydara FBX"))&&typeof Re<"u"&&Re.existsSync)try{let A=e.startsWith("file://")?e.slice(7):e;try{A=decodeURIComponent(A)}catch{}if(Re.existsSync(A)){let i=Re.readFileSync(A);r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength),t={basePath:$e.dirname(A),...t}}}catch{}}return Jr.parse(r,t)}$();$();var xa=`
|
|
3
3
|
struct AudioLatentBuffer {
|
|
4
4
|
fftBins : array<f32, 1024>,
|