@volter/game-editor 0.5.118 → 0.5.120
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/BUNDLED_NOTICES +22 -22
- package/catalog/entries/blender.json +2 -2
- package/catalog/entries/music.json +2 -2
- package/dist/.vite/manifest.json +2191 -2191
- package/dist/assets/{AssetBudgetPanel-HqXuzq3a.js → AssetBudgetPanel-CSaVZJMr.js} +3 -3
- package/dist/assets/{AudioViewer-DQVH0hNK.js → AudioViewer-DmstwNl8.js} +1 -1
- package/dist/assets/{CanvasBoardDocument-BSu5ZZWY.js → CanvasBoardDocument-MfbwJ2gC.js} +1 -1
- package/dist/assets/{CanvasSceneViewport-C5RoaG7I.js → CanvasSceneViewport-CIJKswuE.js} +1 -1
- package/dist/assets/{ColorInput-DVD-8awT.js → ColorInput-CljFpyiQ.js} +1 -1
- package/dist/assets/{ColorPicker-BZI7zqQx.js → ColorPicker-CyYuiiaO.js} +1 -1
- package/dist/assets/{EntityModelDocument-Bzuj9RRw.js → EntityModelDocument-ib1xZ41z.js} +1 -1
- package/dist/assets/{EnvironmentAssetDocument-B8Yx6hdu.js → EnvironmentAssetDocument-DjDXsXjH.js} +1 -1
- package/dist/assets/{GameplaySessionTimeline-BEbFFHE0.js → GameplaySessionTimeline-DwZk6T5j.js} +1 -1
- package/dist/assets/{ImageViewer-vfZT5nGX.js → ImageViewer-ClSSadp3.js} +1 -1
- package/dist/assets/InspectorObjectPreview-C-A5gb8F.js +1 -0
- package/dist/assets/{JsonAssetDocument-Bwvz7zsL.js → JsonAssetDocument-Wh3Z7Nhd.js} +1 -1
- package/dist/assets/{LiveModuleDocument-DYJl03Cs.js → LiveModuleDocument-Cm-XE3zB.js} +1 -1
- package/dist/assets/{LutAssetDocument-D9cd-cAQ.js → LutAssetDocument-WHJzMq0F.js} +1 -1
- package/dist/assets/{ModelAssetDocument-Bzw9ZSLy.js → ModelAssetDocument-V4ZUJEoR.js} +1 -1
- package/dist/assets/{NonThreeAuthoringBootstrap-ptbJfPLv.js → NonThreeAuthoringBootstrap-Cu9F5OEl.js} +1 -1
- package/dist/assets/{Object3DDocumentToolbar-vnVDSoG8.js → Object3DDocumentToolbar-BV3V8BId.js} +1 -1
- package/dist/assets/Object3DDocumentViewport-Bj73qmCs.js +2 -0
- package/dist/assets/{Object3DPreview-B-jygv_z.js → Object3DPreview-DMy0n-q_.js} +1 -1
- package/dist/assets/{OnlineAssetDetail-Bzu7E1Pr.js → OnlineAssetDetail-DgP8CWyX.js} +1 -1
- package/dist/assets/{PlayBar-CSBeiHyp.js → PlayBar-MGKmshUK.js} +1 -1
- package/dist/assets/{QuarksAssetDocument-XTVTfvcn.js → QuarksAssetDocument-BA2Xj1dX.js} +1 -1
- package/dist/assets/{ReactCanvasControls-CmX1xMIz.js → ReactCanvasControls-Bz7PSwIv.js} +1 -1
- package/dist/assets/{RootSelectionOverlay-DMTg_M22.js → RootSelectionOverlay-miDRqA7h.js} +1 -1
- package/dist/assets/{ShaderAssetDocument-BD-gA9si.js → ShaderAssetDocument-mz6bbuwT.js} +1 -1
- package/dist/assets/{ShadowEditor-DQlwf09O.js → ShadowEditor-DLOd341Y.js} +1 -1
- package/dist/assets/{SourceAssetViewer-CE0AbdsH.js → SourceAssetViewer-BNiaxMzB.js} +1 -1
- package/dist/assets/{StageHost-D94S-LXy.js → StageHost-fIqk2WVe.js} +2 -2
- package/dist/assets/{StoryPreviewMount-CCFugHBf.js → StoryPreviewMount-Btsz23Ly.js} +1 -1
- package/dist/assets/{ThreeBoardDocument-Dw8kQu3e.js → ThreeBoardDocument-DnUyJDYo.js} +2 -2
- package/dist/assets/{ThreeIsolationSceneContent-BUOG6DR0.js → ThreeIsolationSceneContent-DXKIDQPS.js} +1 -1
- package/dist/assets/{ToolObject3DPreview-DXn3BZXl.js → ToolObject3DPreview-CvFAZV6F.js} +1 -1
- package/dist/assets/{Toolbar-CKfCB7C5.js → Toolbar-IeEf5wxv.js} +1 -1
- package/dist/assets/{TransientHint-C_znI6kF.js → TransientHint-tIuS07MA.js} +1 -1
- package/dist/assets/{VideoViewer-ByKN3zV8.js → VideoViewer-Cd1pAYbV.js} +1 -1
- package/dist/assets/{ViewportShadingMenu-CiwDFdZ3.js → ViewportShadingMenu-PtKWgqZO.js} +1 -1
- package/dist/assets/{active-ingest-D7vF0_WM.js → active-ingest-s3egQKSv.js} +2 -2
- package/dist/assets/{animation-clock-9uOmSLnh.js → animation-clock-BsWKUzdF.js} +1 -1
- package/dist/assets/{animation-mixers.service-CezYh0uP.js → animation-mixers.service-DjcQdCV4.js} +1 -1
- package/dist/assets/{animation-timeline.utility-N08ogFNx.js → animation-timeline.utility-DslqWZcA.js} +1 -1
- package/dist/assets/{asset-budget-asset.menu-CNb7-JeF.js → asset-budget-asset.menu-Cqh140ye.js} +1 -1
- package/dist/assets/{asset-budget.action-t7yUxtux.js → asset-budget.action-B1RoKCJQ.js} +1 -1
- package/dist/assets/{asset-budget.document-CepgaRk2.js → asset-budget.document-B24rO9-c.js} +1 -1
- package/dist/assets/{asset-budget.menu-CTikGjea.js → asset-budget.menu-kRX1iN7h.js} +1 -1
- package/dist/assets/{asset-editor-persistence-BeOkWj7s.js → asset-editor-persistence-DCa-ygy1.js} +1 -1
- package/dist/assets/{asset-loaders-DUlmV2N7.js → asset-loaders-DdC57Iia.js} +1 -1
- package/dist/assets/{asset-preview-AyKlHOUG.js → asset-preview-B341ASnd.js} +1 -1
- package/dist/assets/{audio-unlock.service-D9EB2KFU.js → audio-unlock.service-rFDAbcLB.js} +1 -1
- package/dist/assets/{audio.utility-DTA2tIvc.js → audio.utility-CKTX3bfP.js} +1 -1
- package/dist/assets/autoplay.service-BEriwgPJ.js +1 -0
- package/dist/assets/{babylon-authoring-adapter-B9wh_FNi.js → babylon-authoring-adapter-Cbw8-4bz.js} +1 -1
- package/dist/assets/{binding-resolver-Bj4lXGJM.js → binding-resolver-lQVYKPVL.js} +2 -2
- package/dist/assets/{blender-emscripten-engine-BYbXicWU.js → blender-emscripten-engine-BZ5Kbnzg.js} +1 -1
- package/dist/assets/{blender-node-editor.document-GFtxXIGD.js → blender-node-editor.document-DUngyxVO.js} +1 -1
- package/dist/assets/{blender-properties-tab-D8P-ENR0.js → blender-properties-tab-DW0E8Kh1.js} +1 -1
- package/dist/assets/blender-runtime-host-wU7y-wpf.js +7 -0
- package/dist/assets/{blender-runtime-skin-CsQYIDah.js → blender-runtime-skin-C17h-8-1.js} +1 -1
- package/dist/assets/{blender-runtime.document-BkLGZyCs.js → blender-runtime.document-CPGO_kki.js} +1 -1
- package/dist/assets/{blender-screenshot.menu-BxULFKVG.js → blender-screenshot.menu-jns0MRDu.js} +1 -1
- package/dist/assets/{blender-timeline.document-qanxaCRV.js → blender-timeline.document-CCj3zAwV.js} +1 -1
- package/dist/assets/{blender-uv-editor.document-Dupon7VB.js → blender-uv-editor.document-BfvDkZ5q.js} +1 -1
- package/dist/assets/{blender-version.status-C0QhIFZf.js → blender-version.status-9MymZnai.js} +1 -1
- package/dist/assets/{blender-wali-engine-DfoYluoA.js → blender-wali-engine-BR_7xG5U.js} +1 -1
- package/dist/assets/{blender.command-CAbLvvLY.js → blender.command-7nmOstGg.js} +1 -1
- package/dist/assets/{board-guides-D5c2iM0M.js → board-guides-C9tYtDcB.js} +1 -1
- package/dist/assets/{bridge.command-jsbw5GvJ.js → bridge.command-DAoW5cUi.js} +3 -3
- package/dist/assets/{browserAll-Bq2ZxEEc.js → browserAll-CofUb68o.js} +1 -1
- package/dist/assets/{build-player.document-BKv66fYH.js → build-player.document-DhRas6bI.js} +1 -1
- package/dist/assets/{build-profiles.document-DUMRQcWP.js → build-profiles.document-BtsuTqAw.js} +1 -1
- package/dist/assets/{build-progress.status-CSLBDvVn.js → build-progress.status-CCDXj0LG.js} +1 -1
- package/dist/assets/{build-session-CoVPhaCV.js → build-session-Bh8kGqih.js} +1 -1
- package/dist/assets/{build.action-C8Pu0Qaa.js → build.action-CL58YA1E.js} +1 -1
- package/dist/assets/{build.command-Y7ZFB16B.js → build.command-Dc4VkWvv.js} +1 -1
- package/dist/assets/{build.header-C9cApJlp.js → build.header-DZ5qHMV2.js} +1 -1
- package/dist/assets/{build.menu-zKiRZ-GW.js → build.menu-B33JSm_s.js} +1 -1
- package/dist/assets/{build.service-BGdLfM7q.js → build.service-DNU2Nsm-.js} +1 -1
- package/dist/assets/{camera-Birs8s_0.js → camera-DFk9mXRK.js} +1 -1
- package/dist/assets/{camera-runtime.inspector-CUNGATjE.js → camera-runtime.inspector-BkWl1xT4.js} +1 -1
- package/dist/assets/{canvas-design-mount-BJse4KWh.js → canvas-design-mount-BEJr8eAO.js} +3 -3
- package/dist/assets/{canvas-entry-runtime-C2m3kEjI.js → canvas-entry-runtime-D77agRGC.js} +2 -2
- package/dist/assets/{canvas-preview-frames-BGCULuzb.js → canvas-preview-frames-BSlaQjdI.js} +1 -1
- package/dist/assets/{canvas-story-capture.service-D6lgNuqO.js → canvas-story-capture.service-BfRpYYiv.js} +2 -2
- package/dist/assets/{capability-coverage-l_R9gCUV.js → capability-coverage-XXeBRJaq.js} +1 -1
- package/dist/assets/{collaboration-presence-6bJbIMPv.js → collaboration-presence-CiLrf-HA.js} +1 -1
- package/dist/assets/{collider-DCENOEQ6.js → collider-CZX6C2eN.js} +1 -1
- package/dist/assets/{component-board.service-BmFiXn58.js → component-board.service-BULHiRDa.js} +2 -2
- package/dist/assets/{component-board.service-CIMa_5-V.js → component-board.service-C2qjYYxX.js} +2 -2
- package/dist/assets/{component-board.service-MkNl3te3.js → component-board.service-DSrEY28R.js} +2 -2
- package/dist/assets/{component-contracts.service-B-EpU1r1.js → component-contracts.service-R2LafEV9.js} +1 -1
- package/dist/assets/{component-instance-root-1XORgnxr.js → component-instance-root-CQnDPnQF.js} +1 -1
- package/dist/assets/{component-verbs.command-CStHQ_Bz.js → component-verbs.command-BfARyc_p.js} +1 -1
- package/dist/assets/{component-verbs.service-Wp5bZlu9.js → component-verbs.service-B1JSlW1l.js} +1 -1
- package/dist/assets/{config-DKBEKx6m.js → config-DL5fZkX9.js} +2 -2
- package/dist/assets/{configurations-CYmpAbNH.js → configurations-Bzr_aNF8.js} +1 -1
- package/dist/assets/{connection.status-BnD4-dZT.js → connection.status-D9Ib0Dn-.js} +1 -1
- package/dist/assets/{constraints.inspector-lGhV8mr_.js → constraints.inspector-BqZsF4BV.js} +1 -1
- package/dist/assets/{content-bounds-Dm610thJ.js → content-bounds-BPojL_uU.js} +1 -1
- package/dist/assets/{contract-system-adapters-BOsHzp5j.js → contract-system-adapters-DFh99Njg.js} +1 -1
- package/dist/assets/{coverage.service-G_1NEc3Q.js → coverage.service-CUYaBS5U.js} +1 -1
- package/dist/assets/{create-runtime-BEEjK4hH.js → create-runtime-7JRBTPS5.js} +1 -1
- package/dist/assets/{curve-C6m7I0EV.js → curve-CbyoMSBv.js} +1 -1
- package/dist/assets/{data-asset-DwoqAORY.js → data-asset-oZSWu3Kn.js} +1 -1
- package/dist/assets/{data-ref-BhZ1uPKR.js → data-ref-DWlZRlL2.js} +1 -1
- package/dist/assets/{debug-bridge-TB8wZAZ5.js → debug-bridge-NKtt3rA4.js} +1 -1
- package/dist/assets/{debug-registry-BHb12FP7.js → debug-registry-XS6_UBkH.js} +1 -1
- package/dist/assets/{deferred-ingest-play-CpmJ0gP7.js → deferred-ingest-play-CMocyzWU.js} +2 -2
- package/dist/assets/{design-time-canvas-mount-C4-MrRaz.js → design-time-canvas-mount-DZBzIPsc.js} +2 -2
- package/dist/assets/{design-time-layers-BuyHIesr.js → design-time-layers-BBDzrlKH.js} +1 -1
- package/dist/assets/{design-time-mount.service-DBGcEAWr.js → design-time-mount.service-CKgbduga.js} +2 -2
- package/dist/assets/{design-time-mount.service-BlAOrzrK.js → design-time-mount.service-FF_Q_cyN.js} +2 -2
- package/dist/assets/{design-time-react-mount-BYw17WQh.js → design-time-react-mount-CphtdJp5.js} +1 -1
- package/dist/assets/{document-preview-three-CE0Ac35n.js → document-preview-three-DGr_6jbL.js} +1 -1
- package/dist/assets/{dom-authoring-adapter-nF3yjN7P.js → dom-authoring-adapter-Coz9gs6A.js} +1 -1
- package/dist/assets/{draco3d-B-Z1CpIy.js → draco3d-C4APJzos.js} +1 -1
- package/dist/assets/{edit-mode-audio.service-FZej7fwZ.js → edit-mode-audio.service-CqiAlFDF.js} +1 -1
- package/dist/assets/{edit-mode-authoring-fpFMRgys.js → edit-mode-authoring-BgbtPv8m.js} +1 -1
- package/dist/assets/{edit-mode-networking.service-DNWxywj7.js → edit-mode-networking.service-C7-sAuQk.js} +1 -1
- package/dist/assets/{editor-api-CI_Qw-N0.js → editor-api-DMM293ko.js} +1 -1
- package/dist/assets/{editor-layers-Cuup-Y7g.js → editor-layers-CJRVD2PN.js} +1 -1
- package/dist/assets/{editor-shell-store-DE5vHuYk.js → editor-shell-store-C79fRE24.js} +1 -1
- package/dist/assets/{entity-object-DExVBckP.js → entity-object-CGHyQ_DL.js} +1 -1
- package/dist/assets/{extend-xDmv3OxU.js → extend-BJYo5O1z.js} +1 -1
- package/dist/assets/{fork-menu-7xaPK_gU.js → fork-menu-CRozo4qk.js} +1 -1
- package/dist/assets/{frame-debugger-store-BlhhH3pp.js → frame-debugger-store-BrBQ246t.js} +1 -1
- package/dist/assets/{game-contract-seams-CKqbpHvU.js → game-contract-seams-BxoGeNBJ.js} +1 -1
- package/dist/assets/{game-css-scope-transform-UkxSXYmn.js → game-css-scope-transform-DTKwxzJ7.js} +1 -1
- package/dist/assets/{game-document.service-Ciz46KwF.js → game-document.service-XXKNQD5S.js} +1 -1
- package/dist/assets/{game-eval.command-Df1bHfKA.js → game-eval.command-kr-PJAC8.js} +1 -1
- package/dist/assets/{game-module-access-1zbEtLRW.js → game-module-access-BpGyDJc6.js} +1 -1
- package/dist/assets/{game-network-DDTDYWaq.js → game-network-DYMWKBif.js} +3 -3
- package/dist/assets/{gameplay-export-BDwW4ZeA.js → gameplay-export-CJ2EK2l6.js} +1 -1
- package/dist/assets/{gameplay-replay-BbxpFQrx.js → gameplay-replay-DLm4oCt_.js} +1 -1
- package/dist/assets/{gameplay.command-DtsNBOvd.js → gameplay.command-CHgwRgZK.js} +1 -1
- package/dist/assets/{generation-jobs-BP43G8_Q.js → generation-jobs-CpHDdK09.js} +1 -1
- package/dist/assets/{generation.service-BScQu8Sg.js → generation.service-CaG_YZjo.js} +1 -1
- package/dist/assets/{generations-BtJzN99e.js → generations-Bq5dVBwH.js} +1 -1
- package/dist/assets/{generations.status-Cp38CoT7.js → generations.status-TYernpI4.js} +1 -1
- package/dist/assets/{hierarchy-marks-Dz55bvuk.js → hierarchy-marks-B5KEbeGq.js} +1 -1
- package/dist/assets/{hosted-asset-materialization-Bsc70fRl.js → hosted-asset-materialization-D1sQcErI.js} +1 -1
- package/dist/assets/{index-C4oYQeJh.js → index--oqpG28I.js} +1 -1
- package/dist/assets/{index-BC5NeEVa.js → index-B0Mb2Rh4.js} +2 -2
- package/dist/assets/{index-D1xtpB4l.js → index-C3kJ7H7Z.js} +1 -1
- package/dist/assets/{index-CL8BNyV7.js → index-CFDgz8lE.js} +1 -1
- package/dist/assets/{index-DAQswRB0.js → index-DpCGt7vi.js} +1 -1
- package/dist/assets/{index-CBAvzZFY.js → index-h4HSTCAg.js} +1 -1
- package/dist/assets/{index-C2LW-ago.js → index-i1xOMXSI.js} +1 -1
- package/dist/assets/{index-BInT63XM.js → index-jX7Y44nK.js} +1 -1
- package/dist/assets/{index-CIvW6PQY.js → index-tL-Bqvcj.js} +7 -7
- package/dist/assets/{inference-diagnostics-BopptVH6.js → inference-diagnostics-ChbX7Dx3.js} +1 -1
- package/dist/assets/{ingest-boot-viewport-DDnhjnTi.js → ingest-boot-viewport-CbrP5DNK.js} +1 -1
- package/dist/assets/{ingest-siblings-CRdWhngP.js → ingest-siblings-CIN8WYTa.js} +1 -1
- package/dist/assets/{ingest-source-persistence-By_F6LJR.js → ingest-source-persistence-BTwqqZuT.js} +1 -1
- package/dist/assets/{ingest.service-DlAsqV7Q.js → ingest.service-Bjowoyar.js} +1 -1
- package/dist/assets/{inspect-CzUqDCsp.js → inspect-B6AzKWKt.js} +1 -1
- package/dist/assets/instances.command-QbAj-IJh.js +1 -0
- package/dist/assets/{json-history-resource-vSNgROIK.js → json-history-resource-eTOazsm2.js} +1 -1
- package/dist/assets/{layered-pick-BT_GgsY-.js → layered-pick-C_kVOVN1.js} +1 -1
- package/dist/assets/{light-5_m5IbUA.js → light-g2xz68N1.js} +1 -1
- package/dist/assets/{live-project-verbs-BDRLedOB.js → live-project-verbs-ylR0msD9.js} +1 -1
- package/dist/assets/{machine.document-BjRrgqHf.js → machine.document-DKbcR9BV.js} +1 -1
- package/dist/assets/{machines.finder-CBDSpnDe.js → machines.finder-BkrsoqvM.js} +1 -1
- package/dist/assets/{material-CM-xU0DE.js → material-CVVOauJQ.js} +1 -1
- package/dist/assets/{material-factory-CUWU6Zu0.js → material-factory-C3GOuNDx.js} +1 -1
- package/dist/assets/{mesh-Cu4CDso3.js → mesh-DIGd3NcR.js} +1 -1
- package/dist/assets/{model-asset-sections.service-CL2WtGng.js → model-asset-sections.service-Bm9iRN-e.js} +1 -1
- package/dist/assets/{model-inspection-Dao1B-ji.js → model-inspection-DnLjM9Zk.js} +1 -1
- package/dist/assets/{model-thumbnail-BiA0hed5.js → model-thumbnail-DMhLQnAF.js} +1 -1
- package/dist/assets/{models.finder-Cs4ldn9p.js → models.finder-BUWj4PCL.js} +1 -1
- package/dist/assets/{module-mode-D7OVp-ls.js → module-mode-WPyqXXZ8.js} +2 -2
- package/dist/assets/{mount-canvas-ingest-root-BahyyoSm.js → mount-canvas-ingest-root-bhgPHV6C.js} +2 -2
- package/dist/assets/{mount-dom-ingest-root-BRJIxA08.js → mount-dom-ingest-root-qZf9a2cu.js} +2 -2
- package/dist/assets/{mount-ingest-root-Bzp__CIu.js → mount-ingest-root-DMlA2q1F.js} +2 -2
- package/dist/assets/{mount-manifest-DnvIhEMH.js → mount-manifest-DcQ_cJgh.js} +1 -1
- package/dist/assets/{mount-three-ingest-root-CFwkgF-d.js → mount-three-ingest-root-DEWgya3J.js} +1 -1
- package/dist/assets/{mounted-authoring-BLnHIXL0.js → mounted-authoring-DLp0vOyN.js} +1 -1
- package/dist/assets/{mounted-story-viewport-source-BTc7aSjb.js → mounted-story-viewport-source-Du80bkSJ.js} +1 -1
- package/dist/assets/{native-debug-module-D4aoSlIt.js → native-debug-module-Bb0TIIrt.js} +1 -1
- package/dist/assets/{navigation-B5NuXfr8.js → navigation-C5fA8EEl.js} +1 -1
- package/dist/assets/{navmesh.menu-D6TyIUuc.js → navmesh.menu-PU_qQ2Wl.js} +1 -1
- package/dist/assets/{navmesh.service-DAWrobDD.js → navmesh.service-BeasBxDA.js} +1 -1
- package/dist/assets/network-observer.service-D4nLWVFz.js +1 -0
- package/dist/assets/{network.utility-D0lqV8bb.js → network.utility-oscyHxOr.js} +1 -1
- package/dist/assets/{object3d-document-session-registry-D8ERLHaX.js → object3d-document-session-registry-Che2ZzGi.js} +2 -2
- package/dist/assets/{oid-transform-7cVqkub5.js → oid-transform-CzZKNBho.js} +1 -1
- package/dist/assets/{particles-C_j1vf_7.js → particles-B00_lmO8.js} +1 -1
- package/dist/assets/{pixi-authoring-adapter-DxhYKDJ8.js → pixi-authoring-adapter-BqbpSwhT.js} +1 -1
- package/dist/assets/{pixi-live-write-target-Lr5agPuW.js → pixi-live-write-target-CtiFC7Wu.js} +1 -1
- package/dist/assets/{play.command-Ds-4_rH8.js → play.command-m_2d6Vtv.js} +2 -2
- package/dist/assets/{presentation-Dgs5jGc2.js → presentation-DlnHPKpe.js} +1 -1
- package/dist/assets/{product-BccUu3Jb.js → product-D96gWK26.js} +1 -1
- package/dist/assets/{profiler.action-Zq2jf4o4.js → profiler.action-T6nxir7Z.js} +1 -1
- package/dist/assets/{profiler.menu-sXzn65nz.js → profiler.menu-CwvmIJBk.js} +1 -1
- package/dist/assets/{profiler.utility-DZZAqxgp.js → profiler.utility-Cgt1ZkyU.js} +1 -1
- package/dist/assets/{project-authoring-session-C927zHSE.js → project-authoring-session-BqydwIiL.js} +2 -2
- package/dist/assets/{properties-bone-constraints.inspector-CUIOVDQV.js → properties-bone-constraints.inspector-BO_mrtSy.js} +1 -1
- package/dist/assets/{properties-bone.inspector-DiWlK9Tg.js → properties-bone.inspector-BeN9UaAr.js} +1 -1
- package/dist/assets/{properties-collection.inspector-DCjnGSMu.js → properties-collection.inspector-_FIGLaye.js} +1 -1
- package/dist/assets/{properties-constraints.inspector-DvZWlM_N.js → properties-constraints.inspector-OytVCnbc.js} +1 -1
- package/dist/assets/{properties-data.inspector-BIlswH2t.js → properties-data.inspector-D6ae-Z-K.js} +1 -1
- package/dist/assets/{properties-material.inspector-DIMuUuQF.js → properties-material.inspector-Bkdak5qW.js} +1 -1
- package/dist/assets/{properties-modifiers.inspector-CdLYLU78.js → properties-modifiers.inspector-BsfLMsfc.js} +1 -1
- package/dist/assets/{properties-object.inspector-D10d_Lz3.js → properties-object.inspector-BSYsxp29.js} +1 -1
- package/dist/assets/{properties-output.inspector-DnzQmOKt.js → properties-output.inspector-DBHId8IL.js} +1 -1
- package/dist/assets/{properties-particles.inspector-DrZViJE-.js → properties-particles.inspector-BdVgh6j2.js} +1 -1
- package/dist/assets/{properties-physics.inspector-Hpgu-3dC.js → properties-physics.inspector-gME38X9o.js} +1 -1
- package/dist/assets/{properties-render.inspector-DKfPTQiU.js → properties-render.inspector-DW6OWy-q.js} +1 -1
- package/dist/assets/{properties-scene.inspector-J4fSpzXT.js → properties-scene.inspector-BNDXfloZ.js} +1 -1
- package/dist/assets/{properties-texture.inspector-BKqdvqgo.js → properties-texture.inspector-CNzkkXz-.js} +1 -1
- package/dist/assets/{properties-view-layer.inspector-COm8b5K-.js → properties-view-layer.inspector-Cxda2MbS.js} +1 -1
- package/dist/assets/{properties-world.inspector-Bj3KKJ_C.js → properties-world.inspector-CU2F5tWW.js} +1 -1
- package/dist/assets/{r3f-design-session-BEATXGy2.js → r3f-design-session-CkF9VjaX.js} +2 -2
- package/dist/assets/{r3f-physics-binding-sqfaF1ib.js → r3f-physics-binding-rxeklLCQ.js} +1 -1
- package/dist/assets/{r3f-source-authoring-adapter-DZdYQWzy.js → r3f-source-authoring-adapter-BnUAXa7Z.js} +1 -1
- package/dist/assets/{react-canvas-navigation-p37EiJMh.js → react-canvas-navigation-Ht9PfXz_.js} +1 -1
- package/dist/assets/{react-inspector.service-mbf-R-2Q.js → react-inspector.service-BPtNxt0P.js} +1 -1
- package/dist/assets/{react-story-board-B33NoSzW.js → react-story-board-DaSmfkn7.js} +1 -1
- package/dist/assets/{react-three-rapier.esm-DtMZOCKx.js → react-three-rapier.esm-C16hxrDX.js} +1 -1
- package/dist/assets/{react-world-authoring-adapter-DxDW0ty7.js → react-world-authoring-adapter-Cdqeogjl.js} +1 -1
- package/dist/assets/{realm-services-F7Kj_vrK.js → realm-services-DAleTPsr.js} +1 -1
- package/dist/assets/{reflection-probe-capture.inspector-C-2IOPHX.js → reflection-probe-capture.inspector-BzUHGb6-.js} +1 -1
- package/dist/assets/{registry-BFgdbozc.js → registry-6kY3MpBx.js} +1 -1
- package/dist/assets/{relative-import-specifier-Bi2_a2rG.js → relative-import-specifier-DqRR5Db5.js} +1 -1
- package/dist/assets/{render-env-miIZ6IrK.js → render-env-MIVTBcE5.js} +1 -1
- package/dist/assets/{render-features-BO6TVhcc.js → render-features-B7-2E86R.js} +1 -1
- package/dist/assets/{render-settings-L80fXhuT.js → render-settings-Cde6N-0H.js} +1 -1
- package/dist/assets/{resolve-three-Be3HCdVu.js → resolve-three-Cun2YTH0.js} +3 -3
- package/dist/assets/{root-seam-contract-ITdzkz3q.js → root-seam-contract-B_bFUV7d.js} +1 -1
- package/dist/assets/{run-selection-CVuEJNpv.js → run-selection-DexOCMor.js} +1 -1
- package/dist/assets/{scene-capture-CLnRf-ay.js → scene-capture-BfRENzTO.js} +1 -1
- package/dist/assets/{scene-document.service-C1WttMW4.js → scene-document.service-CWcNepUB.js} +2 -2
- package/dist/assets/{scene-framing-hzkM8H3d.js → scene-framing-CQM6CxMv.js} +1 -1
- package/dist/assets/{seeded-random-bWJ1RCY7.js → seeded-random-BVQkvYb5.js} +1 -1
- package/dist/assets/{session-CAnO1WpE.js → session-CUkTPVzt.js} +15 -2
- package/dist/assets/{setup-renderer-o_UHSQ11.js → setup-renderer-DACa8JQC.js} +1 -1
- package/dist/assets/{source-object3d-authoring-adapter-DLz7rWxd.js → source-object3d-authoring-adapter-zvXCuY62.js} +1 -1
- package/dist/assets/{source-persistence-backend-CQAxNrZO.js → source-persistence-backend-CzYQbGBw.js} +1 -1
- package/dist/assets/{stage-keyboard-D6SLGzpO.js → stage-keyboard-0kKcP2wD.js} +1 -1
- package/dist/assets/{stage-overlay-set-BiJpW1Z1.js → stage-overlay-set-D-MJdsSX.js} +1 -1
- package/dist/assets/{stage-presence-markers-DyX7CTfo.js → stage-presence-markers-DnV34k9R.js} +1 -1
- package/dist/assets/{stage-transform-tools-BGu616ns.js → stage-transform-tools-DHnPn4Ag.js} +1 -1
- package/dist/assets/{standard-viewport-dressing-6Jw1V5qc.js → standard-viewport-dressing-B6B7GQYv.js} +1 -1
- package/dist/assets/{state-watch.action-D8ZNvRzJ.js → state-watch.action-DEHQYmqI.js} +1 -1
- package/dist/assets/{state-watch.menu-xtLjviBo.js → state-watch.menu-CMka-ECF.js} +1 -1
- package/dist/assets/{state-watch.utility-B9aBTWo1.js → state-watch.utility-BTNIHvtG.js} +1 -1
- package/dist/assets/{story-capture-CD5mQix-.js → story-capture-D0LoK6i-.js} +1 -1
- package/dist/assets/{story-documents-6Ju7lp6l.js → story-documents-7mlr0Ueu.js} +1 -1
- package/dist/assets/{story-documents.service-BnJA-Peb.js → story-documents.service-B34fa-hq.js} +1 -1
- package/dist/assets/{story-documents.service-4qxegHX4.js → story-documents.service-tQf6U0hj.js} +1 -1
- package/dist/assets/{story-media-presence-jZL4cO64.js → story-media-presence-CfJJ9XHl.js} +1 -1
- package/dist/assets/{story-pixi-preview-BQp48tx-.js → story-pixi-preview-fI4zWQrK.js} +1 -1
- package/dist/assets/{story-presentation-NqyFbI4F.js → story-presentation-BvkxyHEM.js} +1 -1
- package/dist/assets/{story-three-preview-BmU6ZF6y.js → story-three-preview-HbvBBMYM.js} +2 -2
- package/dist/assets/{studio-environment-iufbXOBi.js → studio-environment-C-iMV8Nq.js} +1 -1
- package/dist/assets/{surface-state-DXubqNo5.js → surface-state-DhHidz2O.js} +1 -1
- package/dist/assets/{syntactic-prop-specs-BM3YTEOR.js → syntactic-prop-specs-BlsU1FqX.js} +1 -1
- package/dist/assets/{team-playtest.service-BykmNzR-.js → team-playtest.service-BL_Fn1mH.js} +1 -1
- package/dist/assets/{three-CLmOBdem.js → three-B5cuexfd.js} +1 -1
- package/dist/assets/{three-authoring-adapter-Cm5jfSwc.js → three-authoring-adapter-DubBR4MT.js} +1 -1
- package/dist/assets/three-authoring.service-D8RVeVOR.js +2 -0
- package/dist/assets/{three-ingest-runtime-CYpDOZTv.js → three-ingest-runtime-BrP8DJGx.js} +1 -1
- package/dist/assets/{three-integration-CoYYjm63.js → three-integration-sYT0uWqE.js} +2 -2
- package/dist/assets/three-integration.service-CzNgMIHq.js +1 -0
- package/dist/assets/{three-projection-core-DZTszel5.js → three-projection-core-BWRxpVdL.js} +1 -1
- package/dist/assets/{three-state-DrJWKuiO.js → three-state-52TTqZUy.js} +1 -1
- package/dist/assets/{three-story-capture.service-BClm29Ug.js → three-story-capture.service-CL-iO8q1.js} +2 -2
- package/dist/assets/{three-story-model-CPRkC3Z7.js → three-story-model-DzUnxVYK.js} +1 -1
- package/dist/assets/{three-viewport-presentation-FMAOITDK.js → three-viewport-presentation-BsZTh_GR.js} +1 -1
- package/dist/assets/{transform-mode-request-N66cicyJ.js → transform-mode-request-7dyypKfO.js} +1 -1
- package/dist/assets/{transport-strip-D7f4gfsu.js → transport-strip-C8s-BoSP.js} +1 -1
- package/dist/assets/transport.header-jQdbw0c1.js +1 -0
- package/dist/assets/{tuples-BEd4OCzm.js → tuples-BSQi9Ckv.js} +1 -1
- package/dist/assets/{ui-board-document-D5ynSZAE.js → ui-board-document-Cjd0N6Ta.js} +2 -2
- package/dist/assets/{user-data-ewYRLR68.js → user-data-BuwLwh1n.js} +1 -1
- package/dist/assets/{utility-view-state-BON-K1XX.js → utility-view-state-DaSsWmth.js} +1 -1
- package/dist/assets/{viewport-door-Bk2lmKCe.js → viewport-door-CbKQKccl.js} +1 -1
- package/dist/assets/{viewport-root-presentation-CtKgppro.js → viewport-root-presentation-DpFhAywt.js} +1 -1
- package/dist/assets/{viewport-surface-status-4TZe3TJM.js → viewport-surface-status-dY-Z8OSj.js} +1 -1
- package/dist/assets/{webworkerAll-yldn-lq8.js → webworkerAll-DRu19UK-.js} +1 -1
- package/dist/assets/worker-COx0p1F-.js +2 -0
- package/dist/assets/{workspace-arrangement-Bykd8P3-.js → workspace-arrangement-Dok3UHIa.js} +1 -1
- package/dist/assets/{world-documents-C8B1VJMM.js → world-documents-BU5QlWty.js} +1 -1
- package/dist/assets/{world-root-stage-binding-CskI2r49.js → world-root-stage-binding-CApWhcG3.js} +1 -1
- package/dist/assets/{xstate-animation-binding-BT4gAJE-.js → xstate-animation-binding-0ceRjznz.js} +1 -1
- package/dist/assets/{xstate-animation-meta-pJUO-heu.js → xstate-animation-meta-CPWlOUZO.js} +1 -1
- package/dist-node/cli.js +24 -25
- package/package.json +16 -16
- package/dist/assets/InspectorObjectPreview-ZX3qJB89.js +0 -1
- package/dist/assets/Object3DDocumentViewport-_Ta156Nu.js +0 -2
- package/dist/assets/autoplay.service-BaV1jauU.js +0 -1
- package/dist/assets/blender-runtime-host-DDpok1JE.js +0 -7
- package/dist/assets/instances.command-Bx5I5SFi.js +0 -1
- package/dist/assets/network-observer.service-CwU_C1Ir.js +0 -1
- package/dist/assets/three-authoring.service-D-d2Gcx8.js +0 -2
- package/dist/assets/three-integration.service-DtpqKgz-.js +0 -1
- package/dist/assets/transport.header-BmL-sNkq.js +0 -1
- package/dist/assets/worker-D3-3vOkS.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ab as a}from"./index-
|
|
1
|
+
import{ab as a}from"./index-tL-Bqvcj.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-DYMWKBif.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-OZVqp6xS.js";import"./index-Da9JhEvW.js";import"./native-debug-module-Bb0TIIrt.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-XS6_UBkH.js";import"./contract-system-adapters-DFh99Njg.js";import"./game-contract-seams-BxoGeNBJ.js";import"./seeded-random-BVQkvYb5.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-bQE2NA0D.js";import"./live-project-verbs-ylR0msD9.js";import"./capability-coverage-XXeBRJaq.js";import"./edit-mode-authoring-BgbtPv8m.js";import"./json-history-resource-eTOazsm2.js";import"./binding-resolver-lQVYKPVL.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-DAleTPsr.js";import"./canvas-entry-runtime-D77agRGC.js";import"./three-ingest-runtime-BrP8DJGx.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./relative-path-guard-GiM7Lsz8.js";import"./react-root-BHA-cdrW.js";import"./editor-presentation-activity-CqJH4G9t.js";import"./active-ingest-s3egQKSv.js";import"./ingest-source-persistence-BTwqqZuT.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-DpFhAywt.js";import"./mounted-authoring-DLp0vOyN.js";import"./entity-object-CGHyQ_DL.js";import"./user-data-BuwLwh1n.js";import"./workspace-arrangement-Dok3UHIa.js";import"./three-contract-Dkt6PmWY.js";import"./three-B5cuexfd.js";import"./editor-layers-CJRVD2PN.js";import"./component-instance-root-CQnDPnQF.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-DubBR4MT.js";import"./source-persistence-backend-CzYQbGBw.js";import"./three-projection-core-BWRxpVdL.js";import"./body-marks-C1LxJtQb.js";import"./user-data-CODoGZqA.js";import"./object-marks-BnvSuCTt.js";import"./structural-ids-BOo2BRoY.js";import"./object3d-authoring-subject-XccsO0xG.js";import"./r3f-physics-binding-rxeklLCQ.js";import"./deferred-ingest-play-CMocyzWU.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-Cdqeogjl.js";import"./board-guides-C9tYtDcB.js";import"./relative-import-specifier-DqRR5Db5.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-B6AzKWKt.js";import"./inference-diagnostics-ChbX7Dx3.js";import"./writer-tw6EcuVO.js";import"./three-state-52TTqZUy.js";import"./editor-shell-store-C79fRE24.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-CbKQKccl.js";import"./game-surface-defaults-D8S4cRxi.js";const Le="workspace.command",Ue={"list-gameplay-state":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{providers:e.providers()}}:p()?{ok:!0,data:{providers:[]}}:s()}},"inspect-gameplay-state":{derivedRefresh:"if-content-changed",handle:e=>{const t=a().debug;if(!t)return p()?{ok:!0,data:{state:null}}:s();const r=e.keys;try{const o={};if(r&&r.length>0)for(const i of r)o[i]=t.state(i);else Object.assign(o,t.stateAll());return{ok:!0,data:{state:o}}}catch(o){return n(o)}}},"list-debug-commands":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{commands:e.commands()}}:p()?{ok:!0,data:{commands:[]}}:s()}},"invoke-debug-command":{derivedRefresh:"always",handle:async e=>{const t=a().debug;if(!t)return p()?{ok:!1,error:`debug: no command registered under "${e.name}" — this game exposes no debug adapter`,data:{code:"DEBUG_COMMAND_NOT_REGISTERED",registered:[]}}:s();try{return{ok:!0,data:{result:await t.invoke(e.name,e.args??[])}}}catch(r){return n(r)}}},"inject-input":{derivedRefresh:"none",handle:e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before injecting input"};let r;try{r=t.getInputTarget(e.worldId)}catch(o){return n(o)}if(!r)return{ok:!1,error:"this play session has no input door: no root entry exports `debug.input`"};try{if(e.kind==="action"){const i=e.atTick;return typeof i=="number"?(r.scheduleActionAtTick(i,e.action,e.value),{ok:!0,data:{scheduled:!0,tick:i}}):{ok:!0,data:r.setVirtualAction(e.action,e.value)}}const o=e.sourceId;switch(e.kind){case"axis":r.injectAxis(o,e.value);break;case"vector2":r.injectVector2(o,e.value);break;case"pointerDelta":r.injectPointerDelta(o,e.value);break;case"pointerPosition":r.injectPointerPosition(o,e.value);break;default:return{ok:!1,error:`unknown injection kind "${e.kind}"`}}return{ok:!0,data:{delivered:!0}}}catch(o){return n(o)}}},"set-time-scale":{derivedRefresh:"none",handle:e=>{const t=m();return t?(t.loop.timeScale=e.timeScale,{ok:!0,data:{timeScale:t.loop.timeScale}}):{ok:!1,error:"not in play mode — start play before setting time-scale"}}},"set-seed":{derivedRefresh:"none",handle:e=>{const t=m();return t?t.determinismDeclared?t.random?(t.random.reseed(e.seed),{ok:!0,data:{seed:t.random.seed}}):{ok:!1,error:"this play session has no first-party ctx.random to reseed"}:{ok:!1,error:"this project's manifest does not declare determinism.seededRandom — play.seed.set has no documented contract to reseed against (D15)",data:{code:"DETERMINISM_NOT_DECLARED"}}:{ok:!1,error:"not in play mode — start play before setting the seed"}}},"run-ticks":{derivedRefresh:"none",handle:async e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before running ticks"};if(!t.runTicks)return{ok:!1,error:"this play session has no first-party Game to run ticks on",data:{code:"RUN_TICKS_UNAVAILABLE"}};try{const r=e.n,o=e.render;return t.runTicksSettled?await t.runTicksSettled(r,o?{render:o}:void 0):t.runTicks(r,o?{render:o}:void 0),{ok:!0}}catch(r){return n(r)}}}};export{Ue as commands,Le as point};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a3 as l,a4 as a,ac as c}from"./index-
|
|
1
|
+
import{a3 as l,a4 as a,ac as c}from"./index-tL-Bqvcj.js";const g={version:1,jobs:[]};let u=g,i=null,s=0,o=!1;const r=new Set;function w(e,n=null){u=e,i=n,s++;for(const d of r)d()}function J(){return u}function v(){return i}function E(){return s}function y(e){return r.add(e),()=>r.delete(e)}function p(e){return e.status==="queued"||e.status==="running"}function h(e){return!p(e)&&(!e.readAt||Date.parse(e.readAt)<Date.parse(e.updatedAt))}function b(e){return e.filter(h).length}async function t(){try{const e=await fetch("/__editor/generations");w(await l(e,"Generation activity request failed"))}catch(e){i=e instanceof Error?e.message:String(e),s++;for(const n of r)n()}}async function G(){if(!o){o=!0;try{const e=await fetch("/__editor/generations/reconcile",{method:"POST"});a(e,"Generation reconciliation failed"),await t()}finally{o=!1}}}async function _(e){const n=await c(e.poll.tool,e.poll.input);if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);return await t(),await f(e.id),n.data}async function S(e){if(!e.accept)throw new Error("This completed generation has no project asset to add.");const n=await c(e.accept.tool,e.accept.input,{confirm:!0});if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);await t(),await f(e.id)}async function f(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}/read`,{method:"POST"});a(n,"Mark generation read failed"),await t()}async function T(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}`,{method:"DELETE"});a(n,"Forget generation job failed"),await t()}function A(){t();const e=window.setInterval(()=>void t(),2e3);return()=>{window.clearInterval(e)}}export{b as a,p as b,S as c,v as d,h as e,T as f,J as g,A as h,_ as i,E as j,f as m,G as p,t as r,y as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jn as K,jo as Q,fc as I,dN as O,h2 as E,jp as Y,jq as A,aN as X,a6 as g,h4 as Z,fo as H,jr as ee,js as te,jt as w,ju as ne,jv as re,jw as oe,jx as ae,jy as se,jz as ie,bv as le,aL as h,hV as ce,eB as P,hF as R,bQ as B,Z as de,a7 as _,gi as ue,jA as me,jB as pe,jC as ge,g$ as ve,jD as fe,b7 as he,jE as xe,f6 as je,ad as ye,f8 as Ne}from"./index-CIvW6PQY.js";import{a as t}from"./jsx-runtime-DPjLkJKQ.js";import{r as u}from"./index-nmcBqr7Y.js";import{m as Ce}from"./model-thumbnail-BiA0hed5.js";import"./index-CtzuWnCS.js";import{s as T,g as x,c as z,f as M,i as Ee,b as F,p as Se,r as J,d as ke,e as Te,m as $e,h as be,j as Ae,a as we}from"./generation-jobs-BP43G8_Q.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./renderer-ownership-BovSEcLv.js";import"./studio-environment-iufbXOBi.js";import"./user-data-ewYRLR68.js";import"./workspace-arrangement-Bykd8P3-.js";import"./KTX2Loader-CaqVE6nY.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./GLTFLoader-KeoruJgS.js";import"./BufferGeometryUtils-B22h7jo4.js";import"./environment-Dg-YaLsA.js";import"./RoomEnvironment-BkknvS_I.js";import"./EXRLoader-CITMBvGd.js";import"./HDRLoader-BTGuGhVo.js";function j(e){switch(e.status){case"queued":return"queued";case"running":return"running";case"failed":return"failed";case"cancelled":return"cancelled";default:return e.acceptedAt?"ready":e.accept?e.pollError?"save-failed":"saving":"no-asset"}}function L(e){const n=j(e);return n!=="queued"&&n!=="running"&&n!=="saving"}function U(e,n){return e.status==="succeeded"&&!!e.accept&&!e.acceptedAt&&!!(e.pollError??n)}const $={queued:"Queued",running:"Running",saving:"Saving","save-failed":"Couldn't save",ready:"In project","no-asset":"No file",failed:"Failed",cancelled:"Cancelled"},Re=new Map([...["png","jpg","jpeg","webp","gif","avif","svg","bmp"].map(e=>[e,"image"]),...["mp4","webm","ogv","mov","m4v"].map(e=>[e,"video"]),...["mp3","wav","ogg","oga","m4a","flac","aac"].map(e=>[e,"audio"]),...["glb","gltf","fbx","obj","stl","ply","dae","3ds","usdz","spz"].map(e=>[e,"model"])]);function De(e){const n=e.slice(e.lastIndexOf("/")+1).toLowerCase(),r=n.lastIndexOf(".");return r>0?n.slice(r+1):""}function q(e){return(e.outputPaths??[]).map(n=>{const r=K.find(o=>n.startsWith(`${o}/`)),a=r?Q(r,n.slice(r.length+1)):null;return{path:n,name:n.slice(n.lastIndexOf("/")+1),kind:Re.get(De(n))??"file",url:a}})}function D(e,n){const r=e.trim();return r.length<=n?r:`${r.slice(0,n-1).trimEnd()}…`}function C(e){const n=Oe(e);if(n)return n;const r=q(e);if(r.length===0)return D(e.label,64);const a=r[0],o=Ie(a.path);return r.length>1?o?`${o} · ${r.length} files`:`${r.length} files`:Ge.test(a.name)?o?`${o}/${a.name}`:D(e.label,64):a.name}const Ge=/^(image|video|audio|model|panorama|output)(-\d+)?\./;function Ie(e){const n=e.split("/").slice(-2,-1)[0];return n?/^[0-9a-f]{8,}$/i.test(n)||/^[0-9a-f-]{16,}$/i.test(n)?null:n:null}function Oe(e){const n=e.accept?.input;if(!n||typeof n!="object")return null;const r=n.outputName;return typeof r=="string"&&r.trim().length>0?r.trim():null}function Pe(e){for(const n of[e.accept?.input,e.poll.input]){const r=W(n,0);if(r)return r}return null}function W(e,n){if(n>3||typeof e!="object"||e===null)return null;const r=e,a=r.prompt;if(typeof a=="string"&&a.trim().length>0)return a.trim();for(const o of Object.values(r)){const l=W(o,n+1);if(l)return l}return null}function G(e){return e.operation}function Be(e){return e.mode==="managed"?"Volter subscription":e.mode==="direct"?"Your provider key":"Mock"}function _e(e){return e.route==="mock"?"Free · mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Credit estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)}`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"USD estimate unavailable"}function ze(e){return e.route==="mock"?!0:e.route==="managed"?e.settledCredits!==void 0:e.settledAmount!==void 0}function Me(e){const n=Math.floor((Date.now()-Date.parse(e))/6e4);if(!Number.isFinite(n)||n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const a=Math.floor(r/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}const S="generation:",Fe="generation:create";function Je(e){return e.route==="mock"?"Free mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits settled`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Volter subscription · estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)} settled`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"BYOK · estimate unavailable"}function V(e){return I({id:`${S}${e.id}`,title:e.label,kind:"generation",workspaceRole:"authored-subject",provenance:{origin:`${e.provider}:${e.externalId}`},Content:qe,closeable:!0,presentation:()=>({kind:"generation",id:e.id})})}function k(){return I({id:Fe,title:"Create Asset",kind:"generation",workspaceRole:"workspace-task",provenance:{origin:"registered generation tools"},Content:Le,closeable:!0,presentation:()=>({kind:"generation",id:"create"})})}function Le(){u.useSyncExternalStore(O,E),u.useSyncExternalStore(Y,A,A);const e=ee(),[n,r]=u.useState(""),a=n.trim().toLowerCase(),o=E().filter(i=>i.point==="workspace.document"&&i.tool?.generation?.role==="submit").filter(i=>a?[i.title,i.tool?.generation?.provider,i.tool?.summary,i.tool?.description].filter(Boolean).some(c=>String(c).toLowerCase().includes(a)):!0),l=new Map;for(const i of o){const c=i.tool?.generation?.provider??"other";l.set(c,[...l.get(c)??[],i])}return t.jsxs("div",{className:"volter-tool-page","data-testid":"generation-create-catalog",children:[t.jsxs("header",{className:"volter-tool-header",children:[t.jsx("div",{className:"volter-tool-eyebrow",children:"Installed provider extensions"}),t.jsx("h2",{className:"volter-tool-title",children:"Create an asset"}),t.jsxs("p",{className:"volter-tool-description",children:["Choose a native provider operation. Mock, managed, and BYOK execution remain explicit in the operation you open. Current default: ",e.preferredRoute,"."]})]}),t.jsx(X,{type:"search","aria-label":"Search generation tools",placeholder:"Search operations or providers…",value:n,onChange:i=>r(i.target.value)}),[...l.entries()].map(([i,c])=>t.jsxs("section",{className:"volter-tool-card",children:[t.jsx("h3",{className:"volter-tool-section-title",children:i}),t.jsx("div",{className:"volter-generation-create-grid",children:c.map(m=>t.jsxs(g,{variant:"ghost",className:"volter-generation-create-card",onClick:()=>Z(m.id),children:[t.jsx("strong",{children:m.title}),t.jsx("span",{children:m.tool?.summary})]},m.id))})]},i)),o.length===0&&t.jsx("div",{className:"volter-generation-document-empty",children:"No installed generation operation matches this search."})]})}function Ue({job:e,result:n,documentId:r,active:a}){u.useSyncExternalStore(O,E),u.useSyncExternalStore(te,w,w);const o=ne(e.poll.tool,e,n);if(!o)return t.jsx("pre",{className:"volter-generation-native-result",children:JSON.stringify(n,null,2)});const l=o.Component;return t.jsx(re,{file:o.file,children:t.jsx(l,{tool:o.tool,contributionId:o.id,client:ie(),surfaces:oe,account:se(),play:ae(),documentId:r,active:a,job:e,result:n})})}function qe({documentId:e,active:n}){const{jobs:r}=u.useSyncExternalStore(T,x,x),a=e.startsWith(S)?e.slice(S.length):e,o=r.find(d=>d.id===a),[l,i]=u.useState(),[c,m]=u.useState(!1),[s,p]=u.useState(null),[v,f]=u.useState(!1),y=async d=>{m(!0),p(null);try{i(await Ee(d))}catch(N){p(N instanceof Error?N.message:String(N))}finally{m(!1)}};if(u.useEffect(()=>{o&&y(o)},[o?.id,o?.status]),!o)return t.jsx("div",{className:"volter-generation-document-empty",children:"This generation is no longer in project activity."});const b=s??(j(o)==="save-failed"?`Could not save into the project: ${o.pollError}`:null);return t.jsxs("div",{className:"volter-generation-document","data-status":o.status,children:[t.jsxs("header",{className:"volter-generation-document-header",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"volter-tool-eyebrow",children:[o.provider," · ",o.operation]}),t.jsx("h2",{className:"volter-tool-title",children:o.label}),t.jsxs("div",{className:"volter-generation-job-meta",children:[$[j(o)]," · ",Je(o.billing)]})]}),t.jsxs("div",{className:"volter-tool-actions",children:[t.jsx(g,{size:"compact",variant:"ghost",disabled:c,onClick:()=>void y(o),children:c?"Refreshing…":"Refresh"}),U(o,s)&&t.jsx(g,{size:"compact",variant:"primary",disabled:v,onClick:()=>{f(!0),p(null),z(o).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:v?"Saving…":"Retry save"})]})]}),o.message&&t.jsx("div",{className:"volter-tool-status",children:o.message}),b&&t.jsx("div",{className:"volter-tool-status","data-tone":"error",role:"alert",children:b}),t.jsx("section",{className:"volter-generation-result","aria-label":"Generation result",children:l===void 0?t.jsx("div",{className:"volter-generation-document-empty",children:c?"Loading provider result…":"No provider result is available yet."}):t.jsx(Ue,{job:o,result:l,documentId:e,active:n})}),o.outputPaths&&o.outputPaths.length>0&&t.jsxs("section",{className:"volter-generation-output-paths",children:[t.jsx("strong",{children:"Project assets"}),o.outputPaths.map(d=>t.jsx("code",{children:d},d))]}),L(o)&&t.jsx("div",{className:"volter-generation-document-footer",children:t.jsx(g,{size:"compact",variant:"ghost",disabled:v,onClick:()=>{f(!0),M(o.id).then(()=>H(e)).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:"Remove from activity"})})]})}function We({output:e,onOpen:n}){const r=e.url;if(r&&e.kind==="image"){const a=t.jsx("img",{className:"volter-generation-output-media",src:r,alt:e.name,loading:"lazy"});return n?t.jsx(g,{variant:"ghost",className:"volter-generation-output-open",onClick:n,"aria-label":`Open ${e.name}`,children:a}):a}return r&&e.kind==="video"?t.jsx("video",{className:"volter-generation-output-media",src:r,controls:!0,preload:"metadata",playsInline:!0,title:e.name}):r&&e.kind==="audio"?t.jsxs("div",{className:"volter-generation-output-audio",children:[t.jsx(me,{url:r,name:e.name}),t.jsx("audio",{src:r,controls:!0,preload:"metadata",title:e.name})]}):e.url&&e.kind==="model"&&Ce(e.url)?t.jsx(pe,{url:e.url}):t.jsxs("div",{className:"volter-generation-output-file",children:[t.jsx(_,{icon:e.kind==="model"?ge:ve}),t.jsx(h,{variant:"caption",tone:"muted",children:e.name}),n&&t.jsx(g,{size:"compact",variant:"ghost",onClick:n,children:"Open file"})]})}const Ve={queued:"loading",running:"loading",saving:"loading","save-failed":"error",ready:"success","no-asset":"neutral",failed:"error",cancelled:"neutral"},Ke={queued:e=>e.queuePosition===void 0?"Waiting for the provider to start.":`Position ${e.queuePosition} in the provider queue.`,running:e=>e.message??"The provider is working on it.",saving:()=>"Downloading the finished output into this project.","save-failed":e=>e.pollError??"The finished output could not be saved.",ready:()=>"Saved into this project.","no-asset":()=>"The operation finished without a file this project can hold.",failed:e=>e.message??"The provider reported a failure.",cancelled:()=>"This generation was cancelled."};function Qe({job:e,state:n}){const r=n==="queued"||n==="running"||n==="saving",a=n==="failed"||n==="save-failed";return t.jsxs("div",{className:"volter-generation-state-media","data-state":n,children:[t.jsx(P,{compact:!0,tone:Ve[n],...a?{icon:t.jsx(_,{icon:ue})}:{},title:$[n],description:Ke[n](e)}),r&&t.jsx("progress",{className:"volter-generation-progress","aria-label":`${e.label} progress`,...n==="running"&&e.progress!==void 0?{value:e.progress,max:1}:{}})]})}function Ye({job:e,busy:n,error:r,run:a}){return t.jsxs("div",{className:"volter-generation-card-actions",children:[U(e,r)&&t.jsx(g,{size:"compact",variant:"primary",disabled:n,onClick:()=>a(()=>z(e)),children:n?"Saving…":"Retry save"}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>V(e),children:"Details"}),L(e)&&t.jsx(g,{size:"compact",variant:"ghost",disabled:n,onClick:()=>a(()=>M(e.id)),children:"Remove"})]})}function Xe({job:e,busy:n,error:r,run:a}){const o=j(e),l=q(e),i=Pe(e),c=Te(e),m=s=>{if(!s.url)return;const p=fe(he(s.name));if(p)return()=>xe(s.url,p)};return t.jsxs("article",{className:"volter-generation-card","data-state":o,"aria-busy":F(e),"aria-label":C(e),onClickCapture:()=>{c&&$e(e.id).catch(s=>{de.warn(`Could not mark generation as seen: ${s instanceof Error?s.message:String(s)}`,"generations")})},children:[t.jsx("div",{className:"volter-generation-card-media","data-outputs":Math.min(l.length,4),children:l.length===0?t.jsx(Qe,{job:e,state:o}):l.map(s=>t.jsx("div",{className:"volter-generation-output",title:s.path,children:t.jsx(We,{output:s,onOpen:m(s)})},s.path))}),t.jsxs("div",{className:"volter-generation-card-body",children:[t.jsxs("div",{className:"volter-generation-card-heading",children:[t.jsx(h,{variant:"label",truncate:!0,title:C(e),children:C(e)}),t.jsxs(R,{className:"volter-generation-chip","data-state":o,children:[$[o],o==="running"&&e.progress!==void 0?` · ${Math.round(e.progress*100)}%`:""]}),c&&t.jsx(R,{className:"volter-generation-chip","data-state":"new",children:"New"})]}),t.jsxs(h,{variant:"caption",tone:"muted",truncate:!0,title:G(e),children:[e.provider," · ",G(e)]}),t.jsxs(h,{variant:"caption",tone:"dim",children:[_e(e.billing),ze(e.billing)?"":" (est.)"," · ",Be(e)," ·"," ",Me(e.updatedAt)]}),i&&t.jsx("p",{className:"volter-generation-card-prompt",title:i,children:i}),(r??e.pollError)&&t.jsx(B,{tone:r||o==="save-failed"?"error":"warning",className:"volter-generation-card-alert",children:r??(o==="save-failed"?`Could not save into the project: ${e.pollError}`:`Polling will retry: ${e.pollError}`)}),t.jsx(Ye,{job:e,busy:n,error:r,run:a})]})]})}function Ze(){const{jobs:e}=u.useSyncExternalStore(T,x,x),[n,r]=u.useState(null),[a,o]=u.useState({}),l=e.filter(F).length,i=e.filter(s=>j(s)==="saving").length,c=async(s,p)=>{r(s),o(v=>{const f={...v};return delete f[s],f});try{await p()}catch(v){const f=v instanceof Error?v.message:String(v);o(y=>({...y,[s]:f}))}finally{r(null)}},m=ke();return t.jsxs("div",{className:"volter-generation-gallery",children:[t.jsxs(le,{label:"Generations",compact:!0,className:"volter-generation-gallery-bar",children:[t.jsx(h,{variant:"label",children:"Generations"}),t.jsxs(h,{variant:"caption",tone:"muted",children:[e.length," ",e.length===1?"generation":"generations",l>0?` · ${l} running`:"",i>0?` · ${i} saving`:""]}),t.jsx(ce,{}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>void Se().then(J),children:"Refresh"}),t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})]}),m&&t.jsx(B,{tone:"error",className:"volter-generation-gallery-alert",children:m}),e.length===0?t.jsx(P,{className:"volter-generation-gallery-empty",title:"No generated assets yet",description:"Preview generated images, video, audio and models here. Create an asset to get started.",action:t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})}):t.jsx("section",{className:"volter-generation-grid","aria-label":"Generated assets",children:e.map(s=>t.jsx(Xe,{job:s,busy:n===s.id,error:a[s.id]??null,run:p=>void c(s.id,p)},s.id))})]})}const kt="workspace.service",He="generation";function et(){const e=we(x().jobs);return e>0?{count:e,severity:"info"}:null}function Tt(){const e=[be(),je({...ye.generations,order:15,Content:Ze,badge:et,subscribeBadge:T,badgeSnapshot:Ae,visibleByDefault:!1,closeable:!0}),Ne({id:He,owner:"@volter/editor-game/generation",open:(n,r)=>{if(r.id==="create")return k();const a=x().jobs.find(o=>o.id===r.id);return a?V(a):null},settle:J})];return()=>{for(const n of e)n()}}export{kt as point,Tt as start};
|
|
1
|
+
import{jn as K,jo as Q,fc as I,dN as O,h2 as E,jp as Y,jq as A,aN as X,a6 as g,h4 as Z,fo as H,jr as ee,js as te,jt as w,ju as ne,jv as re,jw as oe,jx as ae,jy as se,jz as ie,bv as le,aL as h,hV as ce,eB as P,hF as R,bQ as B,Z as de,a7 as _,gi as ue,jA as me,jB as pe,jC as ge,g$ as ve,jD as fe,b7 as he,jE as xe,f6 as je,ad as ye,f8 as Ne}from"./index-tL-Bqvcj.js";import{a as t}from"./jsx-runtime-DPjLkJKQ.js";import{r as u}from"./index-nmcBqr7Y.js";import{m as Ce}from"./model-thumbnail-DMhLQnAF.js";import"./index-CtzuWnCS.js";import{s as T,g as x,c as z,f as M,i as Ee,b as F,p as Se,r as J,d as ke,e as Te,m as $e,h as be,j as Ae,a as we}from"./generation-jobs-CpHDdK09.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./renderer-ownership-BovSEcLv.js";import"./studio-environment-C-iMV8Nq.js";import"./user-data-BuwLwh1n.js";import"./workspace-arrangement-Dok3UHIa.js";import"./KTX2Loader-CaqVE6nY.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./GLTFLoader-KeoruJgS.js";import"./BufferGeometryUtils-B22h7jo4.js";import"./environment-Dg-YaLsA.js";import"./RoomEnvironment-BkknvS_I.js";import"./EXRLoader-CITMBvGd.js";import"./HDRLoader-BTGuGhVo.js";function j(e){switch(e.status){case"queued":return"queued";case"running":return"running";case"failed":return"failed";case"cancelled":return"cancelled";default:return e.acceptedAt?"ready":e.accept?e.pollError?"save-failed":"saving":"no-asset"}}function L(e){const n=j(e);return n!=="queued"&&n!=="running"&&n!=="saving"}function U(e,n){return e.status==="succeeded"&&!!e.accept&&!e.acceptedAt&&!!(e.pollError??n)}const $={queued:"Queued",running:"Running",saving:"Saving","save-failed":"Couldn't save",ready:"In project","no-asset":"No file",failed:"Failed",cancelled:"Cancelled"},Re=new Map([...["png","jpg","jpeg","webp","gif","avif","svg","bmp"].map(e=>[e,"image"]),...["mp4","webm","ogv","mov","m4v"].map(e=>[e,"video"]),...["mp3","wav","ogg","oga","m4a","flac","aac"].map(e=>[e,"audio"]),...["glb","gltf","fbx","obj","stl","ply","dae","3ds","usdz","spz"].map(e=>[e,"model"])]);function De(e){const n=e.slice(e.lastIndexOf("/")+1).toLowerCase(),r=n.lastIndexOf(".");return r>0?n.slice(r+1):""}function q(e){return(e.outputPaths??[]).map(n=>{const r=K.find(o=>n.startsWith(`${o}/`)),a=r?Q(r,n.slice(r.length+1)):null;return{path:n,name:n.slice(n.lastIndexOf("/")+1),kind:Re.get(De(n))??"file",url:a}})}function D(e,n){const r=e.trim();return r.length<=n?r:`${r.slice(0,n-1).trimEnd()}…`}function C(e){const n=Oe(e);if(n)return n;const r=q(e);if(r.length===0)return D(e.label,64);const a=r[0],o=Ie(a.path);return r.length>1?o?`${o} · ${r.length} files`:`${r.length} files`:Ge.test(a.name)?o?`${o}/${a.name}`:D(e.label,64):a.name}const Ge=/^(image|video|audio|model|panorama|output)(-\d+)?\./;function Ie(e){const n=e.split("/").slice(-2,-1)[0];return n?/^[0-9a-f]{8,}$/i.test(n)||/^[0-9a-f-]{16,}$/i.test(n)?null:n:null}function Oe(e){const n=e.accept?.input;if(!n||typeof n!="object")return null;const r=n.outputName;return typeof r=="string"&&r.trim().length>0?r.trim():null}function Pe(e){for(const n of[e.accept?.input,e.poll.input]){const r=W(n,0);if(r)return r}return null}function W(e,n){if(n>3||typeof e!="object"||e===null)return null;const r=e,a=r.prompt;if(typeof a=="string"&&a.trim().length>0)return a.trim();for(const o of Object.values(r)){const l=W(o,n+1);if(l)return l}return null}function G(e){return e.operation}function Be(e){return e.mode==="managed"?"Volter subscription":e.mode==="direct"?"Your provider key":"Mock"}function _e(e){return e.route==="mock"?"Free · mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Credit estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)}`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"USD estimate unavailable"}function ze(e){return e.route==="mock"?!0:e.route==="managed"?e.settledCredits!==void 0:e.settledAmount!==void 0}function Me(e){const n=Math.floor((Date.now()-Date.parse(e))/6e4);if(!Number.isFinite(n)||n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const a=Math.floor(r/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}const S="generation:",Fe="generation:create";function Je(e){return e.route==="mock"?"Free mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits settled`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Volter subscription · estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)} settled`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"BYOK · estimate unavailable"}function V(e){return I({id:`${S}${e.id}`,title:e.label,kind:"generation",workspaceRole:"authored-subject",provenance:{origin:`${e.provider}:${e.externalId}`},Content:qe,closeable:!0,presentation:()=>({kind:"generation",id:e.id})})}function k(){return I({id:Fe,title:"Create Asset",kind:"generation",workspaceRole:"workspace-task",provenance:{origin:"registered generation tools"},Content:Le,closeable:!0,presentation:()=>({kind:"generation",id:"create"})})}function Le(){u.useSyncExternalStore(O,E),u.useSyncExternalStore(Y,A,A);const e=ee(),[n,r]=u.useState(""),a=n.trim().toLowerCase(),o=E().filter(i=>i.point==="workspace.document"&&i.tool?.generation?.role==="submit").filter(i=>a?[i.title,i.tool?.generation?.provider,i.tool?.summary,i.tool?.description].filter(Boolean).some(c=>String(c).toLowerCase().includes(a)):!0),l=new Map;for(const i of o){const c=i.tool?.generation?.provider??"other";l.set(c,[...l.get(c)??[],i])}return t.jsxs("div",{className:"volter-tool-page","data-testid":"generation-create-catalog",children:[t.jsxs("header",{className:"volter-tool-header",children:[t.jsx("div",{className:"volter-tool-eyebrow",children:"Installed provider extensions"}),t.jsx("h2",{className:"volter-tool-title",children:"Create an asset"}),t.jsxs("p",{className:"volter-tool-description",children:["Choose a native provider operation. Mock, managed, and BYOK execution remain explicit in the operation you open. Current default: ",e.preferredRoute,"."]})]}),t.jsx(X,{type:"search","aria-label":"Search generation tools",placeholder:"Search operations or providers…",value:n,onChange:i=>r(i.target.value)}),[...l.entries()].map(([i,c])=>t.jsxs("section",{className:"volter-tool-card",children:[t.jsx("h3",{className:"volter-tool-section-title",children:i}),t.jsx("div",{className:"volter-generation-create-grid",children:c.map(m=>t.jsxs(g,{variant:"ghost",className:"volter-generation-create-card",onClick:()=>Z(m.id),children:[t.jsx("strong",{children:m.title}),t.jsx("span",{children:m.tool?.summary})]},m.id))})]},i)),o.length===0&&t.jsx("div",{className:"volter-generation-document-empty",children:"No installed generation operation matches this search."})]})}function Ue({job:e,result:n,documentId:r,active:a}){u.useSyncExternalStore(O,E),u.useSyncExternalStore(te,w,w);const o=ne(e.poll.tool,e,n);if(!o)return t.jsx("pre",{className:"volter-generation-native-result",children:JSON.stringify(n,null,2)});const l=o.Component;return t.jsx(re,{file:o.file,children:t.jsx(l,{tool:o.tool,contributionId:o.id,client:ie(),surfaces:oe,account:se(),play:ae(),documentId:r,active:a,job:e,result:n})})}function qe({documentId:e,active:n}){const{jobs:r}=u.useSyncExternalStore(T,x,x),a=e.startsWith(S)?e.slice(S.length):e,o=r.find(d=>d.id===a),[l,i]=u.useState(),[c,m]=u.useState(!1),[s,p]=u.useState(null),[v,f]=u.useState(!1),y=async d=>{m(!0),p(null);try{i(await Ee(d))}catch(N){p(N instanceof Error?N.message:String(N))}finally{m(!1)}};if(u.useEffect(()=>{o&&y(o)},[o?.id,o?.status]),!o)return t.jsx("div",{className:"volter-generation-document-empty",children:"This generation is no longer in project activity."});const b=s??(j(o)==="save-failed"?`Could not save into the project: ${o.pollError}`:null);return t.jsxs("div",{className:"volter-generation-document","data-status":o.status,children:[t.jsxs("header",{className:"volter-generation-document-header",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"volter-tool-eyebrow",children:[o.provider," · ",o.operation]}),t.jsx("h2",{className:"volter-tool-title",children:o.label}),t.jsxs("div",{className:"volter-generation-job-meta",children:[$[j(o)]," · ",Je(o.billing)]})]}),t.jsxs("div",{className:"volter-tool-actions",children:[t.jsx(g,{size:"compact",variant:"ghost",disabled:c,onClick:()=>void y(o),children:c?"Refreshing…":"Refresh"}),U(o,s)&&t.jsx(g,{size:"compact",variant:"primary",disabled:v,onClick:()=>{f(!0),p(null),z(o).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:v?"Saving…":"Retry save"})]})]}),o.message&&t.jsx("div",{className:"volter-tool-status",children:o.message}),b&&t.jsx("div",{className:"volter-tool-status","data-tone":"error",role:"alert",children:b}),t.jsx("section",{className:"volter-generation-result","aria-label":"Generation result",children:l===void 0?t.jsx("div",{className:"volter-generation-document-empty",children:c?"Loading provider result…":"No provider result is available yet."}):t.jsx(Ue,{job:o,result:l,documentId:e,active:n})}),o.outputPaths&&o.outputPaths.length>0&&t.jsxs("section",{className:"volter-generation-output-paths",children:[t.jsx("strong",{children:"Project assets"}),o.outputPaths.map(d=>t.jsx("code",{children:d},d))]}),L(o)&&t.jsx("div",{className:"volter-generation-document-footer",children:t.jsx(g,{size:"compact",variant:"ghost",disabled:v,onClick:()=>{f(!0),M(o.id).then(()=>H(e)).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:"Remove from activity"})})]})}function We({output:e,onOpen:n}){const r=e.url;if(r&&e.kind==="image"){const a=t.jsx("img",{className:"volter-generation-output-media",src:r,alt:e.name,loading:"lazy"});return n?t.jsx(g,{variant:"ghost",className:"volter-generation-output-open",onClick:n,"aria-label":`Open ${e.name}`,children:a}):a}return r&&e.kind==="video"?t.jsx("video",{className:"volter-generation-output-media",src:r,controls:!0,preload:"metadata",playsInline:!0,title:e.name}):r&&e.kind==="audio"?t.jsxs("div",{className:"volter-generation-output-audio",children:[t.jsx(me,{url:r,name:e.name}),t.jsx("audio",{src:r,controls:!0,preload:"metadata",title:e.name})]}):e.url&&e.kind==="model"&&Ce(e.url)?t.jsx(pe,{url:e.url}):t.jsxs("div",{className:"volter-generation-output-file",children:[t.jsx(_,{icon:e.kind==="model"?ge:ve}),t.jsx(h,{variant:"caption",tone:"muted",children:e.name}),n&&t.jsx(g,{size:"compact",variant:"ghost",onClick:n,children:"Open file"})]})}const Ve={queued:"loading",running:"loading",saving:"loading","save-failed":"error",ready:"success","no-asset":"neutral",failed:"error",cancelled:"neutral"},Ke={queued:e=>e.queuePosition===void 0?"Waiting for the provider to start.":`Position ${e.queuePosition} in the provider queue.`,running:e=>e.message??"The provider is working on it.",saving:()=>"Downloading the finished output into this project.","save-failed":e=>e.pollError??"The finished output could not be saved.",ready:()=>"Saved into this project.","no-asset":()=>"The operation finished without a file this project can hold.",failed:e=>e.message??"The provider reported a failure.",cancelled:()=>"This generation was cancelled."};function Qe({job:e,state:n}){const r=n==="queued"||n==="running"||n==="saving",a=n==="failed"||n==="save-failed";return t.jsxs("div",{className:"volter-generation-state-media","data-state":n,children:[t.jsx(P,{compact:!0,tone:Ve[n],...a?{icon:t.jsx(_,{icon:ue})}:{},title:$[n],description:Ke[n](e)}),r&&t.jsx("progress",{className:"volter-generation-progress","aria-label":`${e.label} progress`,...n==="running"&&e.progress!==void 0?{value:e.progress,max:1}:{}})]})}function Ye({job:e,busy:n,error:r,run:a}){return t.jsxs("div",{className:"volter-generation-card-actions",children:[U(e,r)&&t.jsx(g,{size:"compact",variant:"primary",disabled:n,onClick:()=>a(()=>z(e)),children:n?"Saving…":"Retry save"}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>V(e),children:"Details"}),L(e)&&t.jsx(g,{size:"compact",variant:"ghost",disabled:n,onClick:()=>a(()=>M(e.id)),children:"Remove"})]})}function Xe({job:e,busy:n,error:r,run:a}){const o=j(e),l=q(e),i=Pe(e),c=Te(e),m=s=>{if(!s.url)return;const p=fe(he(s.name));if(p)return()=>xe(s.url,p)};return t.jsxs("article",{className:"volter-generation-card","data-state":o,"aria-busy":F(e),"aria-label":C(e),onClickCapture:()=>{c&&$e(e.id).catch(s=>{de.warn(`Could not mark generation as seen: ${s instanceof Error?s.message:String(s)}`,"generations")})},children:[t.jsx("div",{className:"volter-generation-card-media","data-outputs":Math.min(l.length,4),children:l.length===0?t.jsx(Qe,{job:e,state:o}):l.map(s=>t.jsx("div",{className:"volter-generation-output",title:s.path,children:t.jsx(We,{output:s,onOpen:m(s)})},s.path))}),t.jsxs("div",{className:"volter-generation-card-body",children:[t.jsxs("div",{className:"volter-generation-card-heading",children:[t.jsx(h,{variant:"label",truncate:!0,title:C(e),children:C(e)}),t.jsxs(R,{className:"volter-generation-chip","data-state":o,children:[$[o],o==="running"&&e.progress!==void 0?` · ${Math.round(e.progress*100)}%`:""]}),c&&t.jsx(R,{className:"volter-generation-chip","data-state":"new",children:"New"})]}),t.jsxs(h,{variant:"caption",tone:"muted",truncate:!0,title:G(e),children:[e.provider," · ",G(e)]}),t.jsxs(h,{variant:"caption",tone:"dim",children:[_e(e.billing),ze(e.billing)?"":" (est.)"," · ",Be(e)," ·"," ",Me(e.updatedAt)]}),i&&t.jsx("p",{className:"volter-generation-card-prompt",title:i,children:i}),(r??e.pollError)&&t.jsx(B,{tone:r||o==="save-failed"?"error":"warning",className:"volter-generation-card-alert",children:r??(o==="save-failed"?`Could not save into the project: ${e.pollError}`:`Polling will retry: ${e.pollError}`)}),t.jsx(Ye,{job:e,busy:n,error:r,run:a})]})]})}function Ze(){const{jobs:e}=u.useSyncExternalStore(T,x,x),[n,r]=u.useState(null),[a,o]=u.useState({}),l=e.filter(F).length,i=e.filter(s=>j(s)==="saving").length,c=async(s,p)=>{r(s),o(v=>{const f={...v};return delete f[s],f});try{await p()}catch(v){const f=v instanceof Error?v.message:String(v);o(y=>({...y,[s]:f}))}finally{r(null)}},m=ke();return t.jsxs("div",{className:"volter-generation-gallery",children:[t.jsxs(le,{label:"Generations",compact:!0,className:"volter-generation-gallery-bar",children:[t.jsx(h,{variant:"label",children:"Generations"}),t.jsxs(h,{variant:"caption",tone:"muted",children:[e.length," ",e.length===1?"generation":"generations",l>0?` · ${l} running`:"",i>0?` · ${i} saving`:""]}),t.jsx(ce,{}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>void Se().then(J),children:"Refresh"}),t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})]}),m&&t.jsx(B,{tone:"error",className:"volter-generation-gallery-alert",children:m}),e.length===0?t.jsx(P,{className:"volter-generation-gallery-empty",title:"No generated assets yet",description:"Preview generated images, video, audio and models here. Create an asset to get started.",action:t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})}):t.jsx("section",{className:"volter-generation-grid","aria-label":"Generated assets",children:e.map(s=>t.jsx(Xe,{job:s,busy:n===s.id,error:a[s.id]??null,run:p=>void c(s.id,p)},s.id))})]})}const kt="workspace.service",He="generation";function et(){const e=we(x().jobs);return e>0?{count:e,severity:"info"}:null}function Tt(){const e=[be(),je({...ye.generations,order:15,Content:Ze,badge:et,subscribeBadge:T,badgeSnapshot:Ae,visibleByDefault:!1,closeable:!0}),Ne({id:He,owner:"@volter/editor-game/generation",open:(n,r)=>{if(r.id==="create")return k();const a=x().jobs.find(o=>o.id===r.id);return a?V(a):null},settle:J})];return()=>{for(const n of e)n()}}export{kt as point,Tt as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dZ as p,u as o,x as n,c6 as e,v as l,w as t,c4 as d,e1 as c}from"./index-
|
|
1
|
+
import{dZ as p,u as o,x as n,c6 as e,v as l,w as t,c4 as d,e1 as c}from"./index-tL-Bqvcj.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const u=d(["queued","running","succeeded","failed","cancelled"]),g=p("route",[o({route:n("mock")}).strict(),o({route:n("managed"),estimatedCredits:e().nonnegative().optional(),settledCredits:e().nonnegative().optional()}).strict(),o({route:n("byok"),currency:n("USD"),estimatedAmount:e().nonnegative().optional(),settledAmount:e().nonnegative().optional()}).strict()]),r=o({tool:t().min(1),input:c()}).strict(),v=o({id:t().min(1),provider:t().min(1),externalId:t().min(1),label:t().min(1),operation:t().min(1),mode:d(["mock","direct","managed"]),status:u,createdAt:t().datetime(),updatedAt:t().datetime(),progress:e().min(0).max(1).optional(),providerStatus:t().optional(),queuePosition:e().int().nonnegative().optional(),message:t().optional(),lastPolledAt:t().datetime().optional(),lastProviderChangeAt:t().datetime().optional(),pollError:t().optional(),pollErrorAt:t().datetime().optional(),pollFailureCount:e().int().nonnegative().optional(),nextPollAt:t().datetime().optional(),billing:g,poll:r,cancel:r.optional(),accept:r.optional(),acceptedAt:t().datetime().optional(),readAt:t().datetime().optional(),provenanceOperationId:t().optional(),outputPaths:l(t()).optional()}).strict(),k=o({version:n(1),jobs:l(v)}).strict();function y(m,s){if(m!=="managed")return{};const{estimatedCredits:i,settledCredits:a}=s;return i===void 0&&a===void 0?{}:{billing:{route:"managed",...i===void 0?{}:{estimatedCredits:i},...a===void 0?{}:{settledCredits:a}}}}export{g as GenerationBillingSchema,v as GenerationJobSchema,u as GenerationJobStatusSchema,k as GenerationJobsDocumentSchema,y as managedBilling};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./jsx-runtime-DPjLkJKQ.js";import{a6 as r,r as a,ad as i}from"./index-
|
|
1
|
+
import{a as s}from"./jsx-runtime-DPjLkJKQ.js";import{a6 as r,r as a,ad as i}from"./index-tL-Bqvcj.js";import{r as u}from"./index-nmcBqr7Y.js";import"./index-CtzuWnCS.js";import{s as c,g as o,a as p,b as m}from"./generation-jobs-CpHDdK09.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";const I="workspace.status",$="Generations",C="left",T=24;function U(){const{jobs:e}=u.useSyncExternalStore(c,o,o),n=p(e),t=e.filter(m).length;return s.jsxs(r,{type:"button",variant:"ghost",size:"compact",className:"volter-status-action","data-testid":"status-generations","aria-label":`Generations, ${n} unseen, ${t} running`,title:`${n} unseen generation results, ${t} running — open Generations`,onClick:()=>a().workspace.showUtility(i.generations.id),children:["Generations · ",n,t>0?` · ${t} running`:""]})}export{C as align,U as default,T as order,I as point,$ as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as n}from"./workspace-arrangement-
|
|
1
|
+
import{g as n}from"./workspace-arrangement-Dok3UHIa.js";function r(t){const o=n(t,"volterComponentRoot");return typeof o=="string"&&o?o:void 0}function i(t){return n(t,"volterBuiltInternal")===!0}export{r as c,i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{kE as E,w as l,u as y,kF as P,v as b,b3 as T}from"./index-
|
|
1
|
+
import{kE as E,w as l,u as y,kF as P,v as b,b3 as T}from"./index-tL-Bqvcj.js";import{i as x}from"./relative-path-guard-GiM7Lsz8.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const d=".volter/assets.json",k=y({key:l().min(1),license:l().min(1).optional(),sourceHash:l().regex(/^sha256-[a-f0-9]{64}$/,'sourceHash must be "sha256-<64 hex>"').optional(),materializedAt:l().datetime()}).strict(),O=E(l().min(1),k);function z(e){if(!/^[a-f0-9]{64}$/.test(e))throw new Error(`Not a sha256 digest, refusing to record it as a sourceHash: ${e}`);return`sha256-${e}`}function m(e){const t=e.replaceAll("\\","/").replace(/^\.\//,"").replace(/^\/+/,"");if(!t)throw new Error("An asset ledger path cannot be empty.");if(!x(t))throw new Error(`An asset ledger path cannot escape the project: ${e}`);return t}function _(e){return O.parse(e)}function D(e){if(e==null||e.trim()==="")return{};let t;try{t=JSON.parse(e)}catch(s){throw new Error(`${d} is not valid JSON: ${String(s)}`)}return _(t)}function I(e,t,s){const r=m(t),n=k.parse(s),a={...e,[r]:n},i={};for(const u of Object.keys(a).sort())i[u]=a[u];return i}function M(e){const t={};for(const s of Object.keys(e).sort())t[s]=e[s];return`${JSON.stringify(t,null,2)}
|
|
2
2
|
`}function U(e,t,s){const r=globalThis.navigator?.locks;return r?r.request(`volter:${e}:${P(t)}`,s):s()}const H=1e4,N=15;function j(){return globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random()}`}async function R(e,t,s={}){const r=s.staleAfterMs??H,n=s.retryDelayMs??N,a=s.now??Date.now,i=s.sleep??(o=>new Promise(c=>setTimeout(c,o))),u=s.token??j;for(;;){const o=JSON.stringify({at:a(),owner:s.owner??"unknown",token:u()});if(await e.createIfAbsent(o))try{return await t()}finally{await e.removeIfHeldBy(o)}const c=await e.read();if(c!==null){if(a()-B(c)>r){await e.removeIfHeldBy(c);continue}await i(n)}}}function B(e){try{const t=JSON.parse(e);return typeof t.at=="number"?t.at:0}catch{return 0}}function F(){const e=new Map;return(t,s)=>{const n=(e.get(t)??Promise.resolve()).then(s,s),a=n.then(()=>{},()=>{});return e.set(t,a),a.then(()=>{e.get(t)===a&&e.delete(t)}),n}}async function S(e){return await e.exists(d)?D(await e.read(d)):{}}async function J(e,t){await e.write(d,M(t))}const f=`${d}.lock`,C=F(),A=new WeakMap;let $=0;function K(e){const t=A.get(e);if(t!==void 0)return t;$+=1;const s=`${e.id}#${$}`;return A.set(e,s),s}async function W(e,t){const s={key:t.key,...t.license?{license:t.license}:{},...t.sourceSha256?{sourceHash:z(t.sourceSha256)}:{},materializedAt:t.materializedAt??new Date().toISOString()};await C(K(e),()=>R({createIfAbsent:r=>e.writeIfAbsent(f,r),read:async()=>await e.exists(f)?e.read(f):null,removeIfHeldBy:r=>U(e.id,f,async()=>{await e.exists(f)&&await e.read(f)===r&&await e.remove(f)})},async()=>{const r=await S(e);await J(e,I(r,m(t.destPath),s))},{owner:e.id}))}const G=y({key:l().regex(/^[^:]+:.+$/,'An asset key must be "source:id"'),dest:l().min(1),sha256:l().regex(/^[a-f0-9]{64}$/,"A pack entry must pin the sha256 of its bytes as 64 lowercase hex digits")}).strict(),Y=y({packs:E(l().min(1),b(G))}).strict();function q(e){return Y.parse(e)}function V(e){const t=[],s=new Map;for(const[r,n]of Object.entries(e.packs))for(const a of n){const i=s.get(a.dest);if(i!==void 0)throw new Error(`Two packs declare the same destination "${a.dest}": "${i}" and "${r}".`);s.set(a.dest,r),t.push({...a,pack:r})}return t}const w="asset-manifest.json",v="https://volter-asset-library.aaron-0ed.workers.dev";function L(e){return(e.baseUrl??v).replace(/\/+$/,"")}function Q(e){return e.signal?{signal:e.signal}:{}}async function X(e,t={}){const s=L(t),r=await fetch(`${s}/v1/assets/${encodeURIComponent(e)}`,Q(t));if(!r.ok)return null;const n=await r.json();return!n||typeof n!="object"||!Array.isArray(n.files)?null:n}function Z(e,t,s,r){return`${L(e?{baseUrl:e}:{})}/v1/assets/${encodeURIComponent(t)}/files/${s}`}async function he(e,t={}){const s=await ee(e),r={declared:s.length,materialized:[],alreadyPresent:[],failed:[]};if(s.length===0)return r;const n=await S(e);for(const a of s){if(t.signal?.aborted)break;if(n[m(a.dest)]&&await e.exists(a.dest)){r.alreadyPresent.push(a),t.onProgress?.(a,"already-present");continue}try{await te(e,a,t),r.materialized.push(a),t.onProgress?.(a,"materialized")}catch(i){r.failed.push({entry:a,reason:i instanceof Error?i.message:String(i)}),t.onProgress?.(a,"failed")}}return r}async function ee(e){if(!await e.exists(w))return[];const t=await e.read(w);let s;try{s=JSON.parse(t)}catch(r){throw new Error(`${w} is not valid JSON: ${r instanceof Error?r.message:String(r)}`)}return V(q(s))}async function te(e,t,s){const r=await se(t,s);await e.write(t.dest,r.bytes),await W(e,{destPath:t.dest,key:t.key,license:r.license,sourceSha256:t.sha256})}async function se(e,t={}){const s=e.key.indexOf(":");if(s<0)throw new Error(`Malformed asset key "${e.key}" (expected "source:id").`);const r=e.key.slice(0,s),n=e.key.slice(s+1);if(r!=="local")throw new Error(`Asset key "${e.key}": only the "local" (cloud-hosted) source can be materialized from the cloud worker.`);const a=t.baseUrl??v,i=t.signal?{baseUrl:a,signal:t.signal}:{baseUrl:a},u=await X(n,i);if(!u)throw new Error(`"${e.key}" is not hosted by the cloud asset library.`);const o=u.files[0];if(!o)throw new Error(`"${e.key}" has no files in the cloud library.`);if(o.dependencies.length>0)throw new Error(`"${e.key}" has ${o.dependencies.length} dependency file(s) — a pack entry names exactly one destination file.`);if(o.main.sha256!==e.sha256)throw new Error(`"${e.key}" → ${e.dest}: the cloud library reports sha256:${o.main.sha256} but ${w} pins sha256:${e.sha256}. Nothing was fetched or written; the pin is only re-cut by a reviewed change to the declaration.`);const c=Z(a,n,0),h=await fetch(c,t.signal?{signal:t.signal}:{});if(!h.ok)throw new Error(`${c} returned ${h.status} ${h.statusText}.`);const p=new Uint8Array(await h.arrayBuffer()),g=await T(p);if(g!==e.sha256)throw new Error(`"${e.key}" → ${e.dest}: ${c} delivered sha256:${g} but the declaration pins sha256:${e.sha256}. Nothing was written.`);return{bytes:p,license:u.license}}export{w as ASSET_MANIFEST_PATH,se as fetchVerifiedPackEntry,he as materializeDeclaredAssetPacks};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Ie}from"./extends-CF3RwP-h.js";import{r as A,a as Vn}from"./index-nmcBqr7Y.js";import{a as Jy}from"./client-DNXj_opT.js";import{U as Id,S as No,W as Zx}from"./three.module-BLhyNg0e.js";import{u as ue,a as He,I as Jx,q as _d,G as vi,s as ir,J as e4,K as Hu,e as xi,o as Wn,v as Xr,F as t4,l as ev,k as S0,L as i4}from"./events-156d8d12.esm-CYeuVCYr.js";import{fo as W,aI as bi,fd as Be,d9 as ci,d5 as Bi,az as ql,da as wr,cm as we,dp as rt,cl as Ln,ez as Vu,fp as Ei,_ as qe,aV as Pn,cj as Ze,co as ze,bu as tv,au as Ir,dw as Ti,b0 as si,ed as Ns,cE as Xt,N as Ji,M as Ai,aM as nn,ex as xn,em as hi,B as Ar,fe as Ko,K as cr,bl as n4,f1 as Hr,cW as yi,e6 as Wu,cp as ta,bX as ul,aq as Qn,a$ as $i,bV as It,db as an,cZ as Rr,ey as iv,e$ as Xl,cg as Th,bh as jo,I as Kt,aP as wh,bg as s4,fx as Fi,c1 as ni,cN as C0,Z as r4,aY as o4,b5 as nv,am as a4,ca as ia,cb as l4,aZ as ks,eX as _r,Y as Yn,eW as cn,cv as bh,cs as T0,aT as sv,F as Zm,dk as Eu,dd as Jm,eC as c4,aE as u4,ev as rv,et as h4,j as f4,f7 as d4,l as m4,fq as g4,dq as p4,cV as A4,eq as ur,a3 as Yu,aa as ov,ff as Gi,c5 as w0,dI as eg,e8 as Ms,e2 as zo,bi as fi,e0 as y4,d$ as v4,dZ as E4,dY as x4,dS as I4,dP as _4,dN as S4,dM as C4,dE as T4,av,aw as Qo,H as w4,er as b4,eo as R4,d8 as Rh,bs as b0,bt as Sd,bA as Go,fA as D4,bW as Fs,dn as L4,ag as P4,V as lv,x as M4,y as B4,cr as k4,cq as cv,dv as uv,br as xu,fb as pn,du as Ku,aO as F4,c_ as hv,cR as O4,ao as fv,dx as Iu,fj as Wr,fw as ju,a9 as dv,an as U4,el as br,T as mv,ad as R0,fs as N4,ej as gv,aC as pv,aA as Av,fm as D0,R as yv,b4 as _u,E as z4,e5 as Fl,by as ou,P as Cd,es as vv,e3 as Ev,e9 as Q4,n as G4,ch as $4,cw as xv,cx as Iv,cP as H4,dg as V4,f6 as Su,c7 as Td,cc as W4,c3 as tg,eG as Y4,cu as K4,S as j4,d as q4,ee as Dh,i as X4,bI as Lh,cU as Z4,aS as J4,aW as eI}from"./three.core-3arARmh6.js";import{v as Ol,d as _v,C as tI,u as BM}from"./Gltf-GjdUJfpn.js";import{G as VF}from"./Gltf-GjdUJfpn.js";import{m as iI,t as nI}from"./BufferGeometryUtils-FJZNEiJN.js";import{OrthographicCamera as sI}from"./OrthographicCamera-QGDXU8-_.js";import{PerspectiveCamera as YF}from"./PerspectiveCamera-CzyDwUe8.js";import{E as na,M as rI}from"./OrbitControls-DqeA2OK1.js";import{O as jF}from"./OrbitControls-DqeA2OK1.js";import{_ as Sv}from"./index-
|
|
1
|
+
import{_ as Ie}from"./extends-CF3RwP-h.js";import{r as A,a as Vn}from"./index-nmcBqr7Y.js";import{a as Jy}from"./client-DNXj_opT.js";import{U as Id,S as No,W as Zx}from"./three.module-BLhyNg0e.js";import{u as ue,a as He,I as Jx,q as _d,G as vi,s as ir,J as e4,K as Hu,e as xi,o as Wn,v as Xr,F as t4,l as ev,k as S0,L as i4}from"./events-156d8d12.esm-CYeuVCYr.js";import{fo as W,aI as bi,fd as Be,d9 as ci,d5 as Bi,az as ql,da as wr,cm as we,dp as rt,cl as Ln,ez as Vu,fp as Ei,_ as qe,aV as Pn,cj as Ze,co as ze,bu as tv,au as Ir,dw as Ti,b0 as si,ed as Ns,cE as Xt,N as Ji,M as Ai,aM as nn,ex as xn,em as hi,B as Ar,fe as Ko,K as cr,bl as n4,f1 as Hr,cW as yi,e6 as Wu,cp as ta,bX as ul,aq as Qn,a$ as $i,bV as It,db as an,cZ as Rr,ey as iv,e$ as Xl,cg as Th,bh as jo,I as Kt,aP as wh,bg as s4,fx as Fi,c1 as ni,cN as C0,Z as r4,aY as o4,b5 as nv,am as a4,ca as ia,cb as l4,aZ as ks,eX as _r,Y as Yn,eW as cn,cv as bh,cs as T0,aT as sv,F as Zm,dk as Eu,dd as Jm,eC as c4,aE as u4,ev as rv,et as h4,j as f4,f7 as d4,l as m4,fq as g4,dq as p4,cV as A4,eq as ur,a3 as Yu,aa as ov,ff as Gi,c5 as w0,dI as eg,e8 as Ms,e2 as zo,bi as fi,e0 as y4,d$ as v4,dZ as E4,dY as x4,dS as I4,dP as _4,dN as S4,dM as C4,dE as T4,av,aw as Qo,H as w4,er as b4,eo as R4,d8 as Rh,bs as b0,bt as Sd,bA as Go,fA as D4,bW as Fs,dn as L4,ag as P4,V as lv,x as M4,y as B4,cr as k4,cq as cv,dv as uv,br as xu,fb as pn,du as Ku,aO as F4,c_ as hv,cR as O4,ao as fv,dx as Iu,fj as Wr,fw as ju,a9 as dv,an as U4,el as br,T as mv,ad as R0,fs as N4,ej as gv,aC as pv,aA as Av,fm as D0,R as yv,b4 as _u,E as z4,e5 as Fl,by as ou,P as Cd,es as vv,e3 as Ev,e9 as Q4,n as G4,ch as $4,cw as xv,cx as Iv,cP as H4,dg as V4,f6 as Su,c7 as Td,cc as W4,c3 as tg,eG as Y4,cu as K4,S as j4,d as q4,ee as Dh,i as X4,bI as Lh,cU as Z4,aS as J4,aW as eI}from"./three.core-3arARmh6.js";import{v as Ol,d as _v,C as tI,u as BM}from"./Gltf-GjdUJfpn.js";import{G as VF}from"./Gltf-GjdUJfpn.js";import{m as iI,t as nI}from"./BufferGeometryUtils-FJZNEiJN.js";import{OrthographicCamera as sI}from"./OrthographicCamera-QGDXU8-_.js";import{PerspectiveCamera as YF}from"./PerspectiveCamera-CzyDwUe8.js";import{E as na,M as rI}from"./OrbitControls-DqeA2OK1.js";import{O as jF}from"./OrbitControls-DqeA2OK1.js";import{_ as Sv}from"./index-tL-Bqvcj.js";import{g as oI}from"./_commonjsHelpers-D6-XlEtG.js";import{u as ds}from"./Fbo-BwAOPGSM.js";import{F as XF}from"./Fbo-BwAOPGSM.js";import{RoundedBox as JF,RoundedBoxGeometry as eO}from"./RoundedBox-DrJK5JOI.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-bQE2NA0D.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";const Ul=new W,L0=new W,aI=new W,ig=new Be;function lI(r,e,t){const i=Ul.setFromMatrixPosition(r.matrixWorld);i.project(e);const n=t.width/2,s=t.height/2;return[i.x*n+n,-(i.y*s)+s]}function cI(r,e){const t=Ul.setFromMatrixPosition(r.matrixWorld),i=L0.setFromMatrixPosition(e.matrixWorld),n=t.sub(i),s=e.getWorldDirection(aI);return n.angleTo(s)>Math.PI/2}function uI(r,e,t,i){const n=Ul.setFromMatrixPosition(r.matrixWorld),s=n.clone();s.project(e),ig.set(s.x,s.y),t.setFromCamera(ig,e);const o=t.intersectObjects(i,!0);if(o.length){const a=o[0].distance;return n.distanceTo(t.ray.origin)<a}return!0}function hI(r,e){if(e instanceof Bi)return e.zoom;if(e instanceof ci){const t=Ul.setFromMatrixPosition(r.matrixWorld),i=L0.setFromMatrixPosition(e.matrixWorld),n=e.fov*Math.PI/180,s=t.distanceTo(i);return 1/(2*Math.tan(n/2)*s)}else return 1}function fI(r,e,t){if(e instanceof ci||e instanceof Bi){const i=Ul.setFromMatrixPosition(r.matrixWorld),n=L0.setFromMatrixPosition(e.matrixWorld),s=i.distanceTo(n),o=(t[1]-t[0])/(e.far-e.near),a=t[1]-o*e.far;return Math.round(o*s+a)}}const wd=r=>Math.abs(r)<1e-10?0:r;function Cv(r,e,t=""){let i="matrix3d(";for(let n=0;n!==16;n++)i+=wd(e[n]*r.elements[n])+(n!==15?",":")");return t+i}const dI=(r=>e=>Cv(e,r))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),mI=(r=>(e,t)=>Cv(e,r(t),"translate(-50%,-50%)"))(r=>[1/r,1/r,1/r,1,-1/r,-1/r,-1/r,-1,1/r,1/r,1/r,1,1,1,1,1]);function gI(r){return r&&typeof r=="object"&&"current"in r}const qu=A.forwardRef(({children:r,eps:e=.001,style:t,className:i,prepend:n,center:s,fullscreen:o,portal:a,distanceFactor:l,sprite:c=!1,transform:u=!1,occlude:h,onOcclude:f,castShadow:d,receiveShadow:g,material:m,geometry:p,zIndexRange:E=[16777271,0],calculatePosition:v=lI,as:y="div",wrapperClass:x,pointerEvents:I="auto",..._},S)=>{const{gl:C,camera:w,scene:T,size:D,raycaster:b,events:R,viewport:P}=ue(),[O]=A.useState(()=>document.createElement(y)),Q=A.useRef(null),V=A.useRef(null),K=A.useRef(0),k=A.useRef([0,0]),G=A.useRef(null),M=A.useRef(null),H=a?.current||R.connected||C.domElement.parentNode,Y=A.useRef(null),N=A.useRef(!1),z=A.useMemo(()=>h&&h!=="blending"||Array.isArray(h)&&h.length&&gI(h[0]),[h]);A.useLayoutEffect(()=>{const ee=C.domElement;h&&h==="blending"?(ee.style.zIndex=`${Math.floor(E[0]/2)}`,ee.style.position="absolute",ee.style.pointerEvents="none"):(ee.style.zIndex=null,ee.style.position=null,ee.style.pointerEvents=null)},[h]),A.useLayoutEffect(()=>{if(V.current){const ee=Q.current=Jy.createRoot(O);if(T.updateMatrixWorld(),u)O.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const Z=v(V.current,w,D);O.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${Z[0]}px,${Z[1]}px,0);transform-origin:0 0;`}return H&&(n?H.prepend(O):H.appendChild(O)),()=>{H&&H.removeChild(O),ee.unmount()}}},[H,u]),A.useLayoutEffect(()=>{x&&(O.className=x)},[x]);const B=A.useMemo(()=>u?{position:"absolute",top:0,left:0,width:D.width,height:D.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:s?"translate3d(-50%,-50%,0)":"none",...o&&{top:-D.height/2,left:-D.width/2,width:D.width,height:D.height},...t},[t,s,o,D,u]),F=A.useMemo(()=>({position:"absolute",pointerEvents:I}),[I]);A.useLayoutEffect(()=>{if(N.current=!1,u){var ee;(ee=Q.current)==null||ee.render(A.createElement("div",{ref:G,style:B},A.createElement("div",{ref:M,style:F},A.createElement("div",{ref:S,className:i,style:t,children:r}))))}else{var Z;(Z=Q.current)==null||Z.render(A.createElement("div",{ref:S,style:B,className:i,children:r}))}});const U=A.useRef(!0);He(ee=>{if(V.current){w.updateMatrixWorld(),V.current.updateWorldMatrix(!0,!1);const Z=u?k.current:v(V.current,w,D);if(u||Math.abs(K.current-w.zoom)>e||Math.abs(k.current[0]-Z[0])>e||Math.abs(k.current[1]-Z[1])>e){const ne=cI(V.current,w);let ce=!1;z&&(Array.isArray(h)?ce=h.map(le=>le.current):h!=="blending"&&(ce=[T]));const me=U.current;if(ce){const le=uI(V.current,w,b,ce);U.current=le&&!ne}else U.current=!ne;me!==U.current&&(f?f(!U.current):O.style.display=U.current?"block":"none");const re=Math.floor(E[0]/2),te=h?z?[E[0],re]:[re-1,0]:E;if(O.style.zIndex=`${fI(V.current,w,te)}`,u){const[le,se]=[D.width/2,D.height/2],X=w.projectionMatrix.elements[5]*se,{isOrthographicCamera:j,top:oe,left:pe,bottom:_e,right:Ce}=w,ye=dI(w.matrixWorldInverse),Ne=j?`scale(${X})translate(${wd(-(Ce+pe)/2)}px,${wd((oe+_e)/2)}px)`:`translateZ(${X}px)`;let Te=V.current.matrixWorld;c&&(Te=w.matrixWorldInverse.clone().transpose().copyPosition(Te).scale(V.current.scale),Te.elements[3]=Te.elements[7]=Te.elements[11]=0,Te.elements[15]=1),O.style.width=D.width+"px",O.style.height=D.height+"px",O.style.perspective=j?"":`${X}px`,G.current&&M.current&&(G.current.style.transform=`${Ne}${ye}translate(${le}px,${se}px)`,M.current.style.transform=mI(Te,1/((l||10)/400)))}else{const le=l===void 0?1:hI(V.current,w)*l;O.style.transform=`translate3d(${Z[0]}px,${Z[1]}px,0) scale(${le})`}k.current=Z,K.current=w.zoom}}if(!z&&Y.current&&!N.current)if(u){if(G.current){const Z=G.current.children[0];if(Z!=null&&Z.clientWidth&&Z!=null&&Z.clientHeight){const{isOrthographicCamera:ne}=w;if(ne||p)_.scale&&(Array.isArray(_.scale)?_.scale instanceof W?Y.current.scale.copy(_.scale.clone().divideScalar(1)):Y.current.scale.set(1/_.scale[0],1/_.scale[1],1/_.scale[2]):Y.current.scale.setScalar(1/_.scale));else{const ce=(l||10)/400,me=Z.clientWidth*ce,re=Z.clientHeight*ce;Y.current.scale.set(me,re,1)}N.current=!0}}}else{const Z=O.children[0];if(Z!=null&&Z.clientWidth&&Z!=null&&Z.clientHeight){const ne=1/P.factor,ce=Z.clientWidth*ne,me=Z.clientHeight*ne;Y.current.scale.set(ce,me,1),N.current=!0}Y.current.lookAt(ee.camera.position)}});const J=A.useMemo(()=>({vertexShader:u?void 0:`
|
|
2
2
|
/*
|
|
3
3
|
This shader is from the THREE's SpriteMaterial.
|
|
4
4
|
We need to turn the backing plane into a Sprite
|