@vyr/cli 0.0.19 → 0.0.21
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/.bin/install/index.js +6 -0
- package/.entry/app.js +362 -362
- package/build/css/{9339.e14b8c45.css → 110.6ed7cfde.css} +1 -1
- package/build/css/1111.d78bb080.css +1 -0
- package/build/css/2318.b023c74d.css +1 -0
- package/build/css/{3864.a80486d1.css → 2983.9f539d64.css} +1 -1
- package/build/css/{4296.963f15af.css → 6151.e4de2b69.css} +1 -1
- package/build/css/9170.7c0db381.css +1 -0
- package/build/css/{3964.4c4113a3.css → 9786.6bfee4ca.css} +1 -1
- package/build/css/login.ca50fefe.css +1 -0
- package/build/fonts/{iconfont.ba63119b.ttf → iconfont.10345b2b.ttf} +0 -0
- package/build/fonts/iconfont.4a13a979.woff +0 -0
- package/build/index.html +1 -1
- package/build/js/1018.44885958.js +1 -0
- package/build/js/110.a26ee1aa.js +1 -0
- package/build/js/1111.be6e2c40.js +1 -0
- package/build/js/150.00c9fbf4.js +1 -0
- package/build/js/1780.0ef31158.js +1 -0
- package/build/js/2318.808935bc.js +1 -0
- package/build/js/2983.fcd4c54c.js +3 -0
- package/build/js/3553.843b10f9.js +1 -0
- package/build/js/3785.0e5bac50.js +1 -0
- package/build/js/{4530.1c91c099.js → 4530.abbe43c1.js} +1 -1
- package/build/js/4582.b9a77472.js +277 -0
- package/build/js/5547.295cc860.js +1 -0
- package/build/js/6151.f395fab4.js +1 -0
- package/build/js/6166.a11b6605.js +1 -0
- package/build/js/7713.7dac62b2.js +1 -0
- package/build/js/7769.cd4df4d6.js +1 -0
- package/build/js/7928.76108257.js +1 -0
- package/build/js/8637.435ff2cf.js +1 -0
- package/build/js/9170.00337437.js +1 -0
- package/build/js/931.e0143d22.js +1 -0
- package/build/js/9399.3fcb9b8f.js +1 -0
- package/build/js/94.043c5ab1.js +1 -0
- package/build/js/9786.80abceae.js +1 -0
- package/build/js/chunk-vendors.3148df9e.js +300 -0
- package/build/js/index.c88ebc1c.js +1 -0
- package/build/js/login.06d7868f.js +1 -0
- package/build/js/preview.11442733.js +1 -0
- package/build/login.html +1 -1
- package/build/preview.html +1 -1
- package/output/auto-provider-plugin/package.json +1 -1
- package/output/builtin/build/component/ExampleDialog.vue.d.ts +3 -0
- package/output/builtin/build/component/index.d.ts +2 -1
- package/output/builtin/build/locale/LanguageProvider.d.ts +9 -4
- package/output/builtin/build/service/global/draggable/Draggable.d.ts +10 -0
- package/output/builtin/build/service/global/draggable/index.d.ts +1 -0
- package/output/builtin/build/service/global/index.d.ts +1 -0
- package/output/builtin/build/service/header/action/MyExampleAction.d.ts +9 -0
- package/output/builtin/build/service/header/action/index.d.ts +1 -0
- package/output/builtin/build/service/sidebar/asset/AssetNavigator.d.ts +2 -2
- package/output/builtin/build/service/sidebar/scene/SceneNavigator.d.ts +5 -5
- package/output/builtin/build/service/sidebar/scene/draggable/Draggable.d.ts +5 -5
- package/output/builtin/package.json +1 -1
- package/output/class-wrapper-plugin/package.json +1 -1
- package/output/declare/package.json +2 -2
- package/output/design/package.json +1 -1
- package/output/design/src/components/Loading.vue +1 -1
- package/output/design/src/components/utils/Confirm.ts +1 -1
- package/output/design/src/font/demo_index.html +1315 -1292
- package/output/design/src/font/iconfont.css +211 -207
- package/output/design/src/font/iconfont.js +1 -1
- package/output/design/src/font/iconfont.json +352 -345
- package/output/design/src/font/iconfont.ttf +0 -0
- package/output/design/src/font/iconfont.woff +0 -0
- package/output/design/src/font/iconfont.woff2 +0 -0
- package/output/design/src/locale/LanguageProvider.ts +2 -0
- package/output/design/src/theme/index.ts +4 -0
- package/output/engine/package.json +2 -2
- package/output/engine/src/asset/Asset.ts +2 -9
- package/output/engine/src/interaction/Scriptable.ts +4 -0
- package/output/engine/src/preset/execute/dataset/update.ts +1 -1
- package/output/engine/src/preset/execute/graphics/invoke.ts +2 -2
- package/output/engine/src/preset/execute/net/http.ts +3 -3
- package/output/engine/src/preset/execute/scheduler/switch.ts +1 -1
- package/output/engine/src/utils/AssetProvider.ts +19 -1
- package/output/locale/package.json +1 -1
- package/output/remote/package.json +1 -1
- package/output/remote/src/utils/screenshot.ts +2 -2
- package/output/rollup-config-plugin/package.json +1 -1
- package/output/runtime/build/DataService.d.ts +2 -2
- package/output/runtime/build/DraggableService.d.ts +1 -0
- package/output/runtime/build/data/global.d.ts +8 -1
- package/output/runtime/build/navigator/SidebarNavigator.d.ts +1 -2
- package/output/runtime/package.json +1 -1
- package/output/service/package.json +1 -1
- package/output/service-asset/package.json +1 -1
- package/output/service-asset/src/AssetMethodProvider.ts +7 -4
- package/output/service-asset/src/AssetService.ts +3 -4
- package/output/service-example/package.json +12 -0
- package/output/service-example/src/ExampleMethodProvider.ts +35 -0
- package/output/service-example/src/ExampleService.ts +42 -0
- package/output/service-example/src/index.ts +2 -0
- package/output/service-example/src/locale/Language.ts +10 -0
- package/output/service-example/src/locale/LanguageProvider.ts +15 -0
- package/output/service-example/src/locale/index.ts +2 -0
- package/output/service-example/tsconfig.json +31 -0
- package/output/service-graph/package.json +1 -1
- package/output/service-rpc/package.json +3 -2
- package/output/service-rpc/src/Message.ts +2 -0
- package/output/service-rpc/src/RpcService.ts +15 -5
- package/output/service-rpc/src/domain/Entity.ts +12 -0
- package/output/service-rpc/src/domain/Example.ts +80 -0
- package/output/service-rpc/src/domain/User.ts +84 -0
- package/output/service-rpc/src/domain/index.ts +3 -0
- package/output/service-rpc/src/example/apply.ts +35 -0
- package/output/service-rpc/src/example/create.ts +36 -0
- package/output/service-rpc/src/example/delete.ts +33 -0
- package/output/service-rpc/src/example/index.ts +5 -0
- package/output/service-rpc/src/example/initialize.ts +22 -0
- package/output/service-rpc/src/example/list.ts +35 -0
- package/output/service-rpc/src/index.ts +1 -1
- package/output/service-rpc/src/rpc/getUser.ts +2 -2
- package/output/service-scene/package.json +1 -1
- package/output/service-scene/src/SceneMethodProvider.ts +6 -6
- package/output/service-scene/src/SceneService.ts +2 -3
- package/output/var-rename-plugin/package.json +1 -1
- package/package.json +1 -1
- package/build/css/1111.86597cc5.css +0 -1
- package/build/css/1583.69c975fc.css +0 -1
- package/build/css/530.e132216c.css +0 -1
- package/build/css/login.3b035eb6.css +0 -1
- package/build/fonts/iconfont.892a2301.woff +0 -0
- package/build/js/1018.54b7c2da.js +0 -1
- package/build/js/1111.1f95eaf7.js +0 -1
- package/build/js/150.7b02c788.js +0 -1
- package/build/js/1583.fe623811.js +0 -1
- package/build/js/3785.151db669.js +0 -1
- package/build/js/3864.bec1192e.js +0 -3
- package/build/js/3964.96d036ca.js +0 -1
- package/build/js/4296.4744698e.js +0 -1
- package/build/js/4582.334df958.js +0 -1
- package/build/js/4587.ca9eeb25.js +0 -1
- package/build/js/530.a25f4a44.js +0 -1
- package/build/js/6166.c3ca51e8.js +0 -1
- package/build/js/6234.1227c7e7.js +0 -1
- package/build/js/6968.0be80297.js +0 -1
- package/build/js/7713.e38c75be.js +0 -1
- package/build/js/7769.8bdec987.js +0 -1
- package/build/js/8637.35feda19.js +0 -1
- package/build/js/931.dc93d680.js +0 -1
- package/build/js/9339.e3438ab8.js +0 -1
- package/build/js/94.59ed492b.js +0 -1
- package/build/js/chunk-vendors.f015a48a.js +0 -24
- package/build/js/index.02977f2f.js +0 -1
- package/build/js/login.333dc56f.js +0 -1
- package/build/js/preview.28d91d42.js +0 -1
- package/output/service-rpc/src/User.ts +0 -21
- /package/build/js/{1349.9b04698c.js → 1349.257d012a.js} +0 -0
- /package/build/js/{1402.959080ba.js → 1402.22eb41ee.js} +0 -0
- /package/build/js/{1877.4e5568cd.js → 1877.1d9ae361.js} +0 -0
- /package/build/js/{250.87c27d4b.js → 250.ce2e4903.js} +0 -0
- /package/build/js/{2546.9d7d58e4.js → 2546.125841be.js} +0 -0
- /package/build/js/{3085.b4adae0b.js → 3085.6aa82272.js} +0 -0
- /package/build/js/{3745.7cfe411d.js → 3745.a78df4d3.js} +0 -0
- /package/build/js/{4263.d7a13386.js → 4263.3ce42c2d.js} +0 -0
- /package/build/js/{5639.21eb71b5.js → 5639.a0114486.js} +0 -0
- /package/build/js/{6357.d2b1aeab.js → 6357.d649d989.js} +0 -0
- /package/build/js/{677.3e00dd5c.js → 677.92aa9e9d.js} +0 -0
- /package/build/js/{7195.915ff054.js → 7195.e85d3e31.js} +0 -0
- /package/build/js/{8657.c161c764.js → 8657.5d14c39f.js} +0 -0
- /package/build/js/{9044.8f4c6040.js → 9044.0c464218.js} +0 -0
- /package/build/js/{9620.d8b97c72.js → 9620.8e501812.js} +0 -0
- /package/build/js/{9751.8b76fab5.js → 9751.062a0ec7.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,150,1018,2132,2328,3785,3964,4587,6166,6968,7713,7769,8637,9751,9947],{10854:function(e,t,n){n.d(t,{t:function(){return r}});const r={id:"zh_CN",name:"@vyr/cli","login.systemName":"数据可视化构建工具","login.account":"账号","login.password":"密码","login.submit":"登 陆","login.registerAccount":"注册账号","login.forgotPassword ":"忘记密码","login.enterpriseEdition":"企业版","login.collaboration":"协作","login.efficiency":"高效","login.professionalism":"专业","login.form.rules.name":"请输入账号!","login.form.rules.password":"请输入密码!","body.sidebar.notFound":"未找到导航: {{key}}","footer.search.placeholder":"请输入资产名称!","header.menus.file.label":"文件","header.menus.scene.label":"场景","sidebar.interaction.button.close":"关 闭","sidebar.interaction.button.save":"保 存","inspector.notSelect":"未选择节点","inspector.Dataset":"数据集","inspector.Interaction":"交互"}},21275:function(e,t,n){n.r(t),n.d(t,{BaseFragment:function(){return r.A},ErrorComponent:function(){return c.Ax},HTMLFragment:function(){return s.A},LoadingComponent:function(){return c.qH},RightMenu:function(){return l.y},VyrCodeEditor:function(){return c.oQ},VyrColorItem:function(){return c.co},VyrDatasetItem:function(){return c.DN},VyrDirectory:function(){return c.z1},VyrGraph:function(){return c.Aq},VyrInputItem:function(){return c.rZ},VyrInteractionItem:function(){return c.Hz},VyrRuleItem:function(){return c.rQ},VyrTimeline:function(){return c.bb},VyrVariableItem:function(){return c.fH},VyrWindowSetting:function(){return c.gI},createExample:function(){return u.xo},doExecute:function(){return u.V$},footer:function(){return d.qr},global:function(){return d.Sf},header:function(){return d.wx},language:function(){return a.B},option:function(){return o},preset:function(){return i.I},providerDescriptor:function(){return u.nh},rightMenu:function(){return l.f},setup:function(){return d.mj},sidebar:function(){return d.pz},useDescriptor:function(){return u.bf},zhCnLanguageProvider:function(){return a.t}});var r=n(85196),s=n(84443),a=n(67476),o=n(30582),i=n(35600),u=n(12350),c=n(84904),l=n(46247),d=n(20236)},32132:function(e,t,n){n.r(t),n.d(t,{ArrayUtils:function(){return B.lv},Color:function(){return B.Q1},DraggableController:function(){return P.g},Listener:function(){return B.rZ},Loading:function(){return I.Rh},NotifySetting:function(){return z.G8},ResizeListener:function(){return E.T},RightMenuSetting:function(){return z.Eo},Theme:function(){return r.S},VyrButton:function(){return a.A},VyrCard:function(){return i.A},VyrCascader:function(){return u.A},VyrChecked:function(){return c.A},VyrCheckedGroup:function(){return l.A},VyrCol:function(){return d.A},VyrColorPicker:function(){return p.A},VyrDialog:function(){return f.A},VyrDivider:function(){return o.A},VyrDraggable:function(){return m.A},VyrDrapdown:function(){return g.A},VyrDynamicLayouter:function(){return v.A},VyrForm:function(){return h.A},VyrInput:function(){return y.A},VyrInputNumber:function(){return b.A},VyrLabel:function(){return M.A},VyrMask:function(){return w.A},VyrOption:function(){return k.A},VyrOptions:function(){return R.A},VyrPopover:function(){return _.A},VyrProvider:function(){return C.A},VyrRightMenu:function(){return x.A},VyrRow:function(){return V.A},VyrScroll:function(){return A.A},VyrSelect:function(){return L.A},VyrSlot:function(){return s.A},VyrTree:function(){return S.A},addFloatLayer:function(){return z.r4},computedFloatLayer:function(){return z.tg},confirm:function(){return I.lJ},confirmKey:function(){return z.GR},createPopper:function(){return z.n4},dialog:function(){return I.r3},dialogKey:function(){return z.SE},dialogPrivateWarp:function(){return z.g_},dynamicLayouterlisteners:function(){return z.CG},floatLayer:function(){return z.iF},generateFloatLayer:function(){return z.pi},getConfirmState:function(){return z.Wz},getDialogHeight:function(){return z.Ub},getDialogState:function(){return z.MX},getDialogWrapHeight:function(){return z.YZ},getDialogWrapRect:function(){return z.Tl},getDirective:function(){return z.e8},getFirstVNode:function(){return z.RB},getInputValue:function(){return z.y5},getOnlyNode:function(){return z.ZO},getOptions:function(){return z.$E},getSearchOptions:function(){return z.Ds},getSelectOptions:function(){return z.pN},inputNumberReExp:function(){return z.ap},isActiveLayer:function(){return z.mo},isContains:function(){return z.c5},language:function(){return D.B},loading:function(){return I.Lq},notify:function(){return I.me},observer:function(){return z.PA},removeFloatLayer:function(){return z.Cn},seActiveLayer:function(){return z.gV},tooltip:function(){return z.YL},useConfirmState:function(){return z.V2},useDialogState:function(){return z.pA},zhCnLanguageProvider:function(){return D.t}});var r=n(32946),s=n(7931),a=n(62687),o=n(41030),i=n(62517),u=n(67079),c=n(43554),l=n(33947),d=n(15687),p=n(38430),g=n(68676),f=n(8715),m=n(66384),v=n(91905),h=n(75465),y=n(18985),b=n(55522),M=n(91023),w=n(73923),k=n(81320),R=n(54963),_=n(67698),C=n(72756),V=n(98433),A=n(60460),L=n(62263),S=n(60651),x=n(78966),D=n(7135),P=n(57744),E=n(4615),I=n(1307),z=n(93623),B=n(29255)},34753:function(e,t,n){n.r(t),n.d(t,{AssetService:function(){return M},language:function(){return a},zhCnLanguageProvider:function(){return r}});const r={id:"zh_CN",name:"@vyr/service-asset"};var s=n(75133);s.Locale.register(r);const a=s.Locale.getLanguage(r.name);var o=n(89168),i=n(87167),u=n(81336),c=n(93785),l=n(50931),d=Object.defineProperty,p=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t,n)=>p(e,"symbol"!==typeof t?t+"":t,n),f=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});class m{constructor(e){g(this,"ready",new l.AsyncTask),g(this,"service"),g(this,"_connection",e=>f(null,null,function*(){const e=u.runtime.get("rpc");e.send(new c.Message.asset.initialize.RequestMessage)})),g(this,"_disconnect",e=>{this.service.root.clearUser(e.params.client)}),g(this,"_initialize",e=>{this.service.root.clear();for(const t of e.params.root.children)this.service.root.add(new c.VirtualNode(t));this.ready.run()}),g(this,"_open",e=>{const t=c.VirtualNode.get(e.params.url);t&&t.addUser(e.params.client)}),g(this,"_close",e=>{const t=c.VirtualNode.get(e.params.url);t&&t.removeUser(e.params.client)}),g(this,"_create",e=>{const t=c.VirtualNode.get(e.params.parent);null!==t&&(t.add(new c.VirtualNode(c.VirtualNode.deserialization(e.params.node))),t.sort())}),g(this,"_delete",e=>{const t=u.runtime.get("data");for(const n of e.params.urls){const e=c.VirtualNode.get(n);if(null===e)return;const r=e.traceAncestor(!1);null!==r.parent&&(this._clear(t.footer.status.stickupItems,e),r.parent.remove(e))}}),g(this,"_add",e=>{const t=l.Descriptor.get(e.params.parent);if(null!==t)if(e.params.next)for(const n of e.params.node){const r=l.Descriptor.create(n);t.insertBefore(r.uuid,e.params.next)}else for(const n of e.params.node){const e=l.Descriptor.create(n);t.add(e)}}),g(this,"_remove",e=>{u.runtime.get("data");for(const t of e.params.uuids){const e=l.Descriptor.get(t);if(null===e)continue;const n=e.traceAncestor(!1);null!==n.parent&&(n.parent.remove(e),l.ArrayUtils.removeByKey(this.service.navigator.selectAll,"uuid",e.uuid),l.ArrayUtils.removeByKey(this.service.navigator.status.stickupItems,"uuid",e.uuid))}}),g(this,"_update",e=>{const t=l.Descriptor.get(e.params.content.uuid);t&&t.syncWith(e.params.content)}),g(this,"_dragdrap",e=>{if(e.params.url!==this.service.navigator.url)return;const t=e.params.next?"insertBefore":e.params.type,n=e.params.next||e.params.targetData.data.uuid;for(const r of e.params.dragData.data.uuids)this.service.root[t](r,n)}),this.service=e}_clear(e,t){if(0!==e.length)for(const n of e)if(n.uuid===t.uuid)return void l.ArrayUtils.remove(e,n)}listen(){const e=u.runtime.get("rpc");e.listen(c.Message.rpc.connection.Method,this._connection),e.listen(c.Message.rpc.disconnect.Method,this._disconnect),e.listen(c.Message.asset.initialize.Method,this._initialize),e.listen(c.Message.asset.create.Method,this._create),e.listen(c.Message.asset.delete.Method,this._delete),e.listen(c.Message.asset.add.Method,this._add),e.listen(c.Message.asset.remove.Method,this._remove),e.listen(c.Message.asset.open.Method,this._open),e.listen(c.Message.asset.close.Method,this._close),e.listen(c.Message.asset.update.Method,this._update),e.listen(c.Message.asset.dragdrap.Method,this._dragdrap)}}var v=Object.defineProperty,h=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>h(e,"symbol"!==typeof t?t+"":t,n),b=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});class M extends i.Service{constructor(e,t,n){super(e),y(this,"_provider",new m(this)),y(this,"navigator"),y(this,"root"),this.name=e,this.root=t,this.navigator=n}ready(){return b(this,null,function*(){this._provider.listen()})}start(){return b(this,null,function*(){yield this._provider.ready.done()})}select(e){const t=u.runtime.get("rpc");t.send(new c.Message.asset.select.RequestMessage(e))}open(e){const t=u.runtime.get("rpc");t.send(new c.Message.asset.open.RequestMessage(e))}close(e){const t=u.runtime.get("rpc");t.send(new c.Message.asset.close.RequestMessage(e))}create(e,t,n,r,s){const a=u.runtime.get("rpc");a.send(new c.Message.asset.create.RequestMessage(e,t,n,r,s))}delete(e){const t=Array.isArray(e)?e:[e];if(0===t.length)return;const n=u.runtime.get("rpc");n.send(new c.Message.asset.delete.RequestMessage(t))}add(e,t,n){const r=u.runtime.get("rpc");r.send(new c.Message.asset.add.RequestMessage(e,n,t))}remove(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.asset.remove.RequestMessage(e,t))}dragdrap(e,t,n,r){const s=u.runtime.get("rpc");s.send(new c.Message.asset.dragdrap.RequestMessage(e,t,n,r))}rename(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.asset.rename.RequestMessage(t,e))}cut(e,t){if(0===e.length)return;const n=u.runtime.get("rpc");n.send(new c.Message.asset.cut.RequestMessage(e,t))}copy(e,t){if(0===e.length)return;const n=u.runtime.get("rpc");n.send(new c.Message.asset.copy.RequestMessage(e,t))}update(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.asset.update.RequestMessage(e,t))}read(e){return b(this,null,function*(){const t=yield o.A.get(e,{responseType:"text"});return t.data})}}},39349:function(e,t,n){n.d(t,{B:function(){return r.B}});n(10854);var r=n(56171)},54870:function(e,t,n){n.d(t,{O3:function(){return r},l:function(){return o},oY:function(){return T},FU:function(){return i}});const r={headerHeight:42,statusHeight:25};var s=n(67227);const a=Symbol(),o=e=>{(0,s.Gt)(a,e)},i=()=>(0,s.WQ)(a);var u=n(39349),c=n(81336),l=n(21275),d=n(93785),p=n(92328),g=Object.defineProperty,f=Object.defineProperties,m=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,b=(e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&b(e,n,t[n]);if(v)for(var n of v(t))y.call(t,n)&&b(e,n,t[n]);return e},w=(e,t)=>f(e,m(t)),k=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});const R=e=>k(null,null,function*(){const t=c.runtime.get("remote"),n=t.get("preview");n.bridge.send(new p.Job.scene.load.Task({url:e}))}),_=e=>k(null,null,function*(){R(e.params.url)}),C=e=>k(null,null,function*(){const t=c.runtime.get("rpc");t.client===e.params.client&&R(e.params.url.new)}),V=e=>{const t=c.runtime.get("remote");t.send(new p.Job.scene.add.Task(e.params))},A=e=>{const t=c.runtime.get("remote");t.send(new p.Job.scene.remove.Task(e.params))},L=e=>{const t=c.runtime.get("remote");t.send(new p.Job.scene.update.Task(e.params))},S=e=>{const t=c.runtime.get("remote");t.send(new p.Job.scene.dragdrap.Task(e.params))},x=e=>{const t=c.runtime.get("remote");t.send(new p.Job.asset.add.Task(e.params))},D=e=>{const t=c.runtime.get("remote");t.send(new p.Job.asset.remove.Task(e.params))},P=e=>{const t=c.runtime.get("remote");t.send(new p.Job.asset.update.Task(e.params))},E=e=>{const t=c.runtime.get("remote");t.send(new p.Job.asset.dragdrap.Task(e.params))},I=e=>k(null,null,function*(){console.log("alert",e)}),z=e=>k(null,null,function*(){if("mouse"===e.params.type){const t=c.runtime.get("data"),n=e.params.properties.clientX*t.body.scale-t.body.left,r=e.params.properties.clientY*t.body.scale-t.body.top,s=new MouseEvent(e.params.properties.type,w(M({},e.params.properties),{clientX:n,clientY:r}));window.dispatchEvent(s)}else if("keyboard"===e.params.type){const t=new KeyboardEvent(e.params.properties.type,e.params.properties);window.dispatchEvent(t)}}),B=e=>k(null,null,function*(){if("unit"===e.params.type){const t=c.runtime.get("data");if("number"===typeof e.params.max&&(t.status.animation.max=e.params.max),!1===t.status.animation.enabled)return;const n=t.status.animation.currentTime+e.params.delta,r=n%t.status.animation.max;t.status.animation.currentTime=isNaN(r)?0:r}else{const t=c.runtime.get("data");t.inspector.animations[e.params.uuid]=e.params.animations}}),F=e=>k(null,null,function*(){const t=c.runtime.get("data"),n=t.sidebar.get(t.sidebar.active);if(null===n)return console.log(u.B.get("body.sidebar.notFound",{key:t.sidebar.active}));n.remoteTransformEvent(e)}),O=e=>k(null,null,function*(){const t=c.runtime.get("data"),n=t.sidebar.get(t.sidebar.active);if(null===n)return console.log(u.B.get("body.sidebar.notFound",{key:t.sidebar.active}));n.remotePickEvent(e)}),N=e=>k(null,null,function*(){(0,l.createExample)(e.params)}),T=()=>k(null,null,function*(){const e=c.runtime.get("remote"),t=e.get("preview"),n=c.runtime.get("rpc");yield t.ready(),n.listen(d.Message.scene.initialize.Method,_),n.listen(d.Message.scene.switch.Method,C),n.listen(d.Message.scene.add.Method,V),n.listen(d.Message.scene.remove.Method,A),n.listen(d.Message.scene.update.Method,L),n.listen(d.Message.scene.dragdrap.Method,S),n.listen(d.Message.asset.add.Method,x),n.listen(d.Message.asset.remove.Method,D),n.listen(d.Message.asset.update.Method,P),n.listen(d.Message.asset.dragdrap.Method,E),t.bridge.listen(p.Job.invoke.alert.Method,I),t.bridge.listen(p.Job.invoke.animation.Method,B),t.bridge.listen(p.Job.invoke.event.Method,z),t.bridge.listen(p.Job.invoke.transform.Method,F),t.bridge.listen(p.Job.invoke.pick.Method,O),t.bridge.listen(p.Job.invoke.screenshot.Method,N);const r=()=>{n.unlisten(d.Message.scene.initialize.Method,_),n.unlisten(d.Message.scene.switch.Method,_),n.unlisten(d.Message.scene.add.Method,V),n.unlisten(d.Message.scene.remove.Method,A),n.unlisten(d.Message.scene.update.Method,L),n.unlisten(d.Message.scene.dragdrap.Method,S),n.unlisten(d.Message.asset.add.Method,x),n.unlisten(d.Message.asset.remove.Method,D),n.unlisten(d.Message.asset.update.Method,P),n.unlisten(d.Message.asset.dragdrap.Method,E),t.bridge.unlisten(p.Job.invoke.alert.Method,I),t.bridge.unlisten(p.Job.invoke.animation.Method,B),t.bridge.unlisten(p.Job.invoke.event.Method,z),t.bridge.unlisten(p.Job.invoke.transform.Method,F),t.bridge.unlisten(p.Job.invoke.pick.Method,O),t.bridge.unlisten(p.Job.invoke.screenshot.Method,N)};return r})},56171:function(e,t,n){n.d(t,{B:function(){return a}});var r=n(75133),s=n(10854);r.Locale.register(s.t);const a=r.Locale.getLanguage(s.t.name)},81336:function(e,t,n){n.r(t),n.d(t,{Action:function(){return a.r},ActionGroup:function(){return a.K},DataService:function(){return o.u},Draggable:function(){return u.s},DraggableService:function(){return u.f},InspectorService:function(){return c.j},PresetService:function(){return i.R},RemoteService:function(){return l.e},Runtime:function(){return p.v},ShortcutkeyService:function(){return d.t},SidebarNavigator:function(){return s.I},Status:function(){return s.n},language:function(){return r.B},runtime:function(){return p.f},zhCnLanguageProvider:function(){return r.t}});var r=n(72931),s=n(34361),a=n(1520),o=n(97633),i=n(34774),u=n(2284),c=n(21822),l=n(52913),d=n(20986),p=n(69188)},89974:function(e,t,n){n.r(t),n.d(t,{BranchUnit:function(){return a.D0},ConditionUnit:function(){return a.oh},ExecuteUnit:function(){return a.Wl},GraphDrawer:function(){return o._},GraphService:function(){return i.G},InteractionUnit:function(){return a.HZ},Unit:function(){return s.N},language:function(){return r.B},zhCnLanguageProvider:function(){return r.t}});var r=n(46237),s=n(14246),a=n(93904),o=n(4600),i=n(64263)},92328:function(e,t,n){n.r(t),n.d(t,{Bridge:function(){return a.q},Collection:function(){return o.p},Job:function(){return s._},RemoteExecutor:function(){return i.Q},RemoteInvoker:function(){return c.p},RemoteProcess:function(){return u.u},language:function(){return r.B},zhCnLanguageProvider:function(){return r.t}});var r=n(28723),s=n(84105),a=n(76379),o=n(70026),i=n(93355),u=n(70151),c=n(22984)},92601:function(e,t,n){n.r(t),n.d(t,{SceneService:function(){return M},language:function(){return a},zhCnLanguageProvider:function(){return r}});const r={id:"zh_CN",name:"@vyr/service-scene"};var s=n(75133);s.Locale.register(r);const a=s.Locale.getLanguage(r.name);var o=n(89168),i=n(87167),u=n(81336),c=n(93785),l=n(50931),d=Object.defineProperty,p=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t,n)=>p(e,"symbol"!==typeof t?t+"":t,n),f=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});class m{constructor(e){g(this,"ready",new l.AsyncTask),g(this,"service"),g(this,"_connection",e=>{const t=new URLSearchParams(window.location.search);let n="default.scene.json";const r=t.get("scene");if(r){const e=l.Category.parseName(r);l.Category.scene===e.category&&(n=r)}const s=u.runtime.get("rpc");s.send(new c.Message.scene.initialize.RequestMessage(n))}),g(this,"_disconnect",e=>{this.service.useRecord.clearUser(e.params.client)}),g(this,"_initialize",e=>f(this,null,function*(){const{params:t}=e,n=l.Descriptor.create(t.serialization);this.service.root.clear(),this.service.root.add(n),this.service.scenes.length=0,this.service.scenes.push(...t.scenes),this.service.navigator.url=t.url,this.ready.run()})),g(this,"_record",e=>f(this,null,function*(){this.service.useRecord.copy(e.params.useRecord)})),g(this,"_create",e=>{l.ArrayUtils.insert(this.service.scenes,e.params.url)}),g(this,"_delete",e=>{l.ArrayUtils.remove(this.service.scenes,e.params.url),this.service.useRecord.clear(e.params.url)}),g(this,"_switch",e=>f(this,null,function*(){this.service.useRecord.removeUser(e.params.url.old,e.params.client),this.service.useRecord.addUser(e.params.url.new,e.params.client);const t=u.runtime.get("rpc");if(e.params.client!==t.client)return;this.service.navigator.url=e.params.url.new,this.service.root.clear();const n=l.Descriptor.create(e.params.serialization);this.service.root.add(n)})),g(this,"_add",e=>{const t=l.Descriptor.get(e.params.parent);if(null!==t)if(e.params.next)for(const n of e.params.node){const r=l.Descriptor.create(n);t.insertBefore(r.uuid,e.params.next)}else for(const n of e.params.node){const e=l.Descriptor.create(n);t.add(e)}}),g(this,"_remove",e=>{for(const t of e.params.uuids){const e=l.Descriptor.get(t);if(null===e)continue;const n=e.traceAncestor(!1);null!==n.parent&&(n.parent.remove(e),e.traverse(e=>{l.ArrayUtils.removeByKey(this.service.navigator.selectAll,"uuid",e.uuid),l.ArrayUtils.removeByKey(this.service.navigator.status.stickupItems,"uuid",e.uuid)}))}}),g(this,"_update",e=>{const t=l.Descriptor.get(e.params.content.uuid);null!==t&&t.syncWith(e.params.content)}),g(this,"_dragdrap",e=>{const t=e.params.next?"insertBefore":e.params.type,n=e.params.next||e.params.targetData.data.uuid;for(const r of e.params.dragData.data.uuids)this.service.root[t](r,n)}),this.service=e}listen(){const e=u.runtime.get("rpc");e.listen(c.Message.rpc.connection.Method,this._connection),e.listen(c.Message.rpc.disconnect.Method,this._disconnect),e.listen(c.Message.scene.initialize.Method,this._initialize),e.listen(c.Message.scene.record.Method,this._record),e.listen(c.Message.scene.create.Method,this._create),e.listen(c.Message.scene.delete.Method,this._delete),e.listen(c.Message.scene.switch.Method,this._switch),e.listen(c.Message.scene.add.Method,this._add),e.listen(c.Message.scene.remove.Method,this._remove),e.listen(c.Message.scene.dragdrap.Method,this._dragdrap),e.listen(c.Message.scene.update.Method,this._update)}}var v=Object.defineProperty,h=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>h(e,"symbol"!==typeof t?t+"":t,n),b=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});class M extends i.Service{constructor(e,t,n,r){super(e),y(this,"_provider",new m(this)),y(this,"root"),y(this,"useRecord"),y(this,"navigator"),y(this,"scenes",[]),this.root=n,this.useRecord=t,this.navigator=r}ready(){return b(this,null,function*(){this._provider.listen()})}start(){return b(this,null,function*(){yield this._provider.ready.done()})}create(e){const t=u.runtime.get("rpc");t.send(new c.Message.scene.create.RequestMessage(e))}delete(e){const t=u.runtime.get("rpc");t.send(new c.Message.scene.delete.RequestMessage(e))}switch(e){const t=u.runtime.get("rpc");t.send(new c.Message.scene.switch.RequestMessage(e))}add(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.scene.add.RequestMessage(e,t))}remove(e){const t=u.runtime.get("rpc");t.send(new c.Message.scene.remove.RequestMessage(e))}dragdrap(e,t,n){const r=u.runtime.get("rpc");r.send(new c.Message.scene.dragdrap.RequestMessage(e,t,n))}update(e){const t=u.runtime.get("rpc");t.send(new c.Message.scene.update.RequestMessage(e))}download(e){return b(this,null,function*(){const t=yield o.A.get(c.Message.scene.download.Method,{params:new c.Message.scene.download.RequestMessage(e),responseType:"blob"}),n=URL.createObjectURL(t.data),r=document.createElement("a");r.href=n,r.download="project.zip",r.click(),URL.revokeObjectURL(n)})}}},93785:function(e,t,n){n.r(t),n.d(t,{Message:function(){return r.QB},Method:function(){return r.IT},NoticeMessage:function(){return r.qe},Operation:function(){return r.I},RpcService:function(){return a.R},UseRecord:function(){return r.Nk},User:function(){return r.KJ},VirtualNode:function(){return r.UV},defineScheme:function(){return r.XZ},language:function(){return s.B},path:function(){return r.Ae},tokenKey:function(){return r.bV},topic:function(){return r.At},zhCnLanguageProvider:function(){return s.t}});var r=n(38788),s=n(70584),a=n(9763)},93964:function(e,t,n){n.r(t),n.d(t,{run:function(){return xe}});var r=n(39349),s=n(14291),a=n(67227),o=n(77409),i=n(50931),u=n(81336),c=n(32132),l=n(21275),d=n(93785),p=n(89974),g=n(92601),f=n(34753),m=n(54870),v=n(89035);const h={class:"header-menu"},y=["onContextmenu"];var b=(0,a.pM)({__name:"Header",setup(e){(0,o.$9)(e=>({v30a82d82:(0,s.R1)(m.O3).headerHeight+"px"}));const t=u.runtime.get("data"),n=u.runtime.get("shortcutkey"),i=n.get("header"),c=[{label:r.B.get("header.menus.file.label"),value:"file"},{label:r.B.get("header.menus.scene.label"),value:"scene"}],d=(e,n)=>{t.header.status.type=e,l.rightMenu.show(i,n.clientX,n.clientY).then().catch(()=>{})};return(e,t)=>((0,a.uX)(),(0,a.CE)("div",{class:"vyr-header",onMousedown:t[0]||(t[0]=e=>(0,s.R1)(n).active("header"))},[t[1]||(t[1]=(0,a.Lk)("div",{class:"header-logo"},[(0,a.Lk)("img",{src:"/logo/透明图标.png",alt:"logo"})],-1)),(0,a.Lk)("div",h,[((0,a.uX)(),(0,a.CE)(a.FK,null,(0,a.pI)(c,(e,t)=>(0,a.Lk)("div",{class:"menu-item",key:t,onContextmenu:t=>d(e.value,t)},(0,v.v_)(e.label),41,y)),64))]),t[2]||(t[2]=(0,a.Lk)("div",{class:"header-link"},null,-1))],32))}}),M=n(45904);const w=(0,M.A)(b,[["__scopeId","data-v-1902a614"]]);var k=w,R=n(92328);const _={class:"vyr-body-animation"},C={class:"controller"},V={class:"timeline"},A={class:"controller"};var L=(0,a.pM)({__name:"Animation",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("remote"),r=n.get("preview"),o=()=>{t.status.animation.enabled=!t.status.animation.enabled,t.status.animation.enabled&&(t.status.transform.mode="",t.status.transform.target="",r.bridge.send(new R.Job.invoke.transform.Task(t.status.transform))),r.bridge.send(new R.Job.invoke.animation.Task(t.status.animation))},i=(e=0)=>{t.status.animation.currentTime=e;const n=new R.Job.invoke.animation.Task(t.status.animation);n.reset=!0,r.bridge.send(n)};return(e,n)=>((0,a.uX)(),(0,a.CE)("div",_,[(0,a.Lk)("div",C,[(0,a.Lk)("i",{class:(0,v.C4)(["vyrfont",[(0,s.R1)(t).status.animation.enabled?"vyr-tingzhi":"vyr-yunhang"]]),onClick:o},null,2)]),(0,a.Lk)("div",V,[(0,a.bF)((0,s.R1)(l.VyrTimeline),{onUpdateTime:i})]),(0,a.Lk)("div",A,[(0,a.Lk)("i",{class:"vyrfont vyr-zhongzhi",onClick:n[0]||(n[0]=e=>i())})])]))}});const S=(0,M.A)(L,[["__scopeId","data-v-8262b0f2"]]);var x=S,D=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())}),P=(0,a.pM)({__name:"CondRenderer",setup(e){const t=u.runtime.get("rpc"),r=u.runtime.get("asset"),o=(0,s.KR)(""),c=(0,s.KR)(null);(0,m.l)(c);const l=[{type:i.DatasetDescriptor.type,compoment:(0,a.$V)(()=>n.e(3745).then(n.bind(n,73745)))},{type:i.InteractionDescriptor.type,compoment:(0,a.$V)(()=>n.e(2546).then(n.bind(n,72546)))}],p=(0,a.EW)(()=>{const e=l.find(e=>{var t;return e.type===(null==(t=c.value)?void 0:t.type)});return void 0===e?null:e.compoment}),g=(0,a.EW)(()=>{if(!o.value)return!1;const e=d.VirtualNode.get(o.value);return!e.isEditable(t.client)}),f=e=>D(null,null,function*(){o.value=e.url;const t=yield r.read(e.url);if(""===o.value)return;const n=i.DatasetDescriptor.deserialization(t);c.value=n}),v=()=>{o.value="",c.value=null},h=e=>{if(e.params.client!==t.client)return;const n=d.VirtualNode.get(e.params.url);[i.Category.datasetSuffix,i.Category.interactionSuffix].includes(n.suffix)&&f(n)},y=e=>{if(e.params.client!==t.client)return;const n=d.VirtualNode.get(e.params.url);[i.Category.datasetSuffix,i.Category.interactionSuffix].includes(n.suffix)&&v()},b=e=>{if(null===c.value||e.params.content.uuid!==c.value.uuid)return;const t=d.VirtualNode.get(e.params.url);if([i.Category.datasetSuffix,i.Category.interactionSuffix].includes(t.suffix)){const t=e.params.content;c.value=t}};return t.listen(d.Message.asset.open.Method,h),t.listen(d.Message.asset.close.Method,y),t.listen(d.Message.asset.update.Method,b),(e,t)=>((0,a.uX)(),(0,a.Wv)((0,a.$y)(p.value),{url:o.value,readonly:g.value},null,8,["url","readonly"]))}});const E=(0,M.A)(P,[["__scopeId","data-v-0cc3fa52"]]);var I=E,z=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});const B={class:"vyr-body"},F={class:"body-setting"},O={class:"body-animation"};var N=(0,a.pM)({__name:"Body",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("remote"),r=n.get("preview"),o=(0,s.KR)({disbaled:!1}),i=(0,a.rk)("refWrapper"),c=(0,a.rk)("refPreview"),d=()=>{const e=i.value.getBoundingClientRect(),n=e.width/t.body.width,r=e.height/t.body.height;t.body.scale=Math.min(n,r),t.body.position.x=e.width/2,t.body.position.y=e.height/2,t.body.left=e.left,t.body.top=e.top};(0,a.wB)(()=>[t.body.width,t.body.height],d);const p=e=>{o.value.disbaled=!0},g=()=>{o.value.disbaled=!1},f=(0,m.oY)();return(0,a.sV)(()=>z(null,null,function*(){(0,a.dY)(d),r.mount("refPreview"),window.addEventListener("mousedown",p),window.addEventListener("mouseup",g),window.addEventListener("mouseleave",g),window.addEventListener("resize",d)})),(0,a.xo)(()=>z(null,null,function*(){window.removeEventListener("mousedown",p),window.removeEventListener("mouseup",g),window.removeEventListener("mouseleave",g),window.removeEventListener("resize",d),f.then(e=>e())})),(e,n)=>((0,a.uX)(),(0,a.CE)("div",B,[(0,a.Lk)("div",F,[(0,a.bF)((0,s.R1)(l.VyrWindowSetting))]),(0,a.Lk)("div",{class:(0,v.C4)(["body-viewer",{disabeld:o.value.disbaled}]),ref_key:"refWrapper",ref:i},[(0,a.Lk)("div",{ref_key:"refPreview",ref:c,id:"refPreview",class:"preview",style:(0,v.Tr)(`width:${(0,s.R1)(t).body.width}px;\n height:${(0,s.R1)(t).body.height}px;\n left:${(0,s.R1)(t).body.position.x}px;\n top:${(0,s.R1)(t).body.position.y}px;\n background:${(0,s.R1)(t).body.background};\n transform:translate(-50%,-50%) scale(${(0,s.R1)(t).body.scale});`)},null,4)],2),(0,a.Lk)("div",O,[(0,a.bF)(x)]),(0,a.bF)(I)]))}});const T=(0,M.A)(N,[["__scopeId","data-v-36c85bf1"]]);var U=T,W=Object.defineProperty,q=Object.defineProperties,J=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t)=>{for(var n in t||(t={}))j.call(t,n)&&$(e,n,t[n]);if(X)for(var n of X(t))K.call(t,n)&&$(e,n,t[n]);return e},G=(e,t)=>q(e,J(t)),Y=(0,a.pM)({__name:"Interaction",setup(e){const t=u.runtime.get("rpc"),n=u.runtime.get("data"),o=u.runtime.get("graph"),p=(0,a.EW)(()=>{const e=n.sidebar.get(n.sidebar.active);return null===e||e.ensureReadonlyWhereInteraction(t.client)}),g=(0,s.KR)(null),f=(e,t)=>{for(const n of e.nodes){const e=t[n.id];void 0!==e&&(n.input=i.InteractionDescriptor.deepClone(e))}},m=(e,t)=>{if(e){const t=i.InteractionDescriptor.deepClone(e);f(t,o.state.inputs),g.value=t}else g.value=null};(0,a.wB)(()=>o.state.interaction,m,{deep:!0,immediate:!0});let h=null;const y=e=>{h=e},b=()=>{h=null,o.state.reset()},M=(e,t)=>{const n={};for(const r of t.nodes)n[r.id]=r.input;for(const r of e.interactions)if(r.uuid===o.state.event){r.inputs=n;break}},w=()=>{if(null===h)return;const e=i.Descriptor.get(o.state.descriptor);if(null===e)return;const t=e.clone(!1);M(t,h);const r=n.sidebar.get(n.sidebar.active);null!==r&&r.saveWhereInteraction(G(H({},t),{uuid:e.uuid}))},k=e=>{if(null===o.state.interaction)return;if(null===g.value)return;if(n.sidebar.active!==l.sidebar.scene.SceneNavigator.key)return;if(o.state.descriptor!==e.params.content.uuid)return;const t=e.params.content;for(const n of t.interactions)if(o.state.event===n.uuid){const e=i.Descriptor.deepClone(g.value);e.uuid=g.value.uuid,0===Object.keys(n.inputs).length?e.nodes=i.Descriptor.deepClone(o.state.interaction.nodes):f(e,n.inputs),g.value=e;break}},R=e=>{if(null===o.state.interaction)return;if(null===g.value)return;if(n.sidebar.active!==l.sidebar.asset.AssetNavigator.key)return;if(o.state.descriptor!==e.params.content.uuid)return;const t=e.params.content;for(const n of t.interactions)if(o.state.event===n.uuid){const e=i.Descriptor.deepClone(g.value);e.uuid=g.value.uuid,0===Object.keys(n.inputs).length?e.nodes=i.Descriptor.deepClone(o.state.interaction.nodes):f(e,n.inputs),g.value=e;break}};return t.listen(d.Message.scene.update.Method,k),t.listen(d.Message.asset.update.Method,R),(e,t)=>((0,a.uX)(),(0,a.Wv)((0,s.R1)(c.VyrDialog),{modelValue:(0,s.R1)(o).state.visible,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,s.R1)(o).state.visible=e),width:(0,s.R1)(o).state.width,height:(0,s.R1)(o).state.height,onClose:b},(0,a.eX)({scroll:(0,a.k6)(()=>[g.value?((0,a.uX)(),(0,a.Wv)((0,s.R1)(l.VyrGraph),{key:0,interaction:g.value,readonly:!0,addable:!1,"input-readonly":p.value,onChange:y},null,8,["interaction","input-readonly"])):(0,a.Q3)("",!0)]),_:2},[!1===p.value?{name:"footer",fn:(0,a.k6)(()=>[(0,a.bF)((0,s.R1)(c.VyrButton),{onClick:t[0]||(t[0]=e=>(0,s.R1)(o).state.visible=!1)},{default:(0,a.k6)(()=>[(0,a.eW)((0,v.v_)((0,s.R1)(r.B).get("sidebar.interaction.button.close")),1)]),_:1}),(0,a.bF)((0,s.R1)(c.VyrButton),{onClick:w},{default:(0,a.k6)(()=>[(0,a.eW)((0,v.v_)((0,s.R1)(r.B).get("sidebar.interaction.button.save")),1)]),_:1})]),key:"0"}:void 0]),1032,["modelValue","width","height"]))}});const Q=Y;var Z=Q;const ee={class:"vyr-tabs"},te=["onClick"],ne={class:"vyr-wrapper"};var re=(0,a.pM)({__name:"Sidebar",setup(e){const t=u.runtime.get("data"),n=t.sidebar.get(l.sidebar.asset.AssetNavigator.key),r=u.runtime.get("inspector"),o=u.runtime.get("shortcutkey"),i=u.runtime.get("rpc"),p=u.runtime.get("graph"),g=o.getAction(l.global.action.SidebarAction.id),f=(0,a.EW)(()=>t.sidebar.getCollection()),m=(0,a.EW)(()=>r.get(`sidebar.${t.sidebar.active}`)),h=e=>{t.sidebar.active!==e&&g.toggleSidebar(e,t,i)};return i.listen(d.Message.sidebar.switch.Method,e=>{t.sidebar.active!==e.params.active&&(e.params.data.asset&&(n.url=e.params.data.asset),t.sidebar.toggle(e.params.active),p.state.reset(),p.state.visible=!1)}),(e,n)=>((0,a.uX)(),(0,a.CE)("div",{class:(0,v.C4)(["vyr-sidebar",{fold:f.value.length<=1}])},[(0,a.Lk)("div",ee,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(f.value,(e,n)=>((0,a.uX)(),(0,a.CE)("div",{class:(0,v.C4)(["vyr-tab",{active:e.key===(0,s.R1)(t).sidebar.active}]),key:n,onClick:t=>h(e.key)},[(0,a.bF)((0,s.R1)(c.VyrPopover),{trigger:"hover",placement:"left"},{trigger:(0,a.k6)(()=>[(0,a.Lk)("i",{class:(0,v.C4)(["vyrfont",e.icon])},null,2)]),default:(0,a.k6)(()=>[(0,a.eW)(" "+(0,v.v_)(e.label),1)]),_:2},1024)],10,te))),128))]),(0,a.Lk)("div",ne,[((0,a.uX)(),(0,a.Wv)((0,a.$y)(m.value)))]),(0,a.bF)(Z)],2))}});const se=(0,M.A)(re,[["__scopeId","data-v-0bb4fe90"]]);var ae=se;const oe={class:"vyr-inspector"},ie={class:"vyr-selector"},ue=["onClick"],ce={class:"vyr-dispaly"};var le=(0,a.pM)({__name:"Inspector",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("inspector"),o=(0,s.KR)([{label:"",value:"",icon:"vyr-bianji"},{label:r.B.get("inspector.Dataset"),value:t.inspector.datasetKind,icon:"vyr-category-dataset"},{label:r.B.get("inspector.Interaction"),value:t.inspector.eventKind,icon:"vyr-category-interaction"}]),i=(0,a.EW)(()=>n.get(`inspector.${t.sidebar.active}`));return(e,n)=>((0,a.uX)(),(0,a.CE)("div",oe,[(0,a.Lk)("div",ie,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(o.value,(e,n)=>((0,a.uX)(),(0,a.CE)("div",{class:(0,v.C4)(["vyr-option",{active:(0,s.R1)(t).inspector.active===e.value}]),key:n,onClick:n=>(0,s.R1)(t).inspector.active=e.value},[(0,a.Lk)("i",{class:(0,v.C4)(["vyrfont option-icon",e.icon])},null,2)],10,ue))),128))]),(0,a.Lk)("div",ce,[(0,a.bF)((0,s.R1)(c.VyrProvider),{row:{margin:"0,0,12",gutter:6},label:{width:85,align:"right"}},{default:(0,a.k6)(()=>[((0,a.uX)(),(0,a.Wv)((0,a.$y)(i.value)))]),_:1})])]))}});const de=(0,M.A)(le,[["__scopeId","data-v-93577550"]]);var pe=de,ge=(0,a.pM)({__name:"Manifest",props:{controller:{}},emits:["rightClick","doubleClick"],setup(e,{emit:t}){const n=u.runtime.get("data"),r=u.runtime.get("draggable"),o=u.runtime.get("asset"),i=t,d=e,p=e=>{for(const t of n.footer.status.selectAll)if(t.url===e.url)return!0;return!1},g=(e,t)=>{i("rightClick",e,t)},f=(e,t)=>{!0===e.shiftKey?d.controller.selectionManifestItem(t,n):!0===e.ctrlKey?d.controller.checkedManifestItem(t,n):d.controller.changeManifestItem(t,n)},m=(e,t)=>{i("doubleClick",e,t)},v=(e,t)=>{d.controller.renameAsset(e,t,o,n)},h=(e,t)=>{0===e.button&&c.DraggableController.start(t,r.get(r.key.footer),t.name,e)};return(e,t)=>((0,a.uX)(),(0,a.Wv)((0,s.R1)(c.VyrScroll),{padding:10},{default:(0,a.k6)(()=>[(0,a.bF)((0,s.R1)(l.VyrDirectory),{data:(0,s.R1)(n).footer.manifest,active:p,onRightClick:g,onMousedown:h,onClick:f,onChangeName:v,onDoubleClick:m},null,8,["data"])]),_:1}))}});const fe=ge;var me=fe;const ve={class:"footer-header"},he={class:"search"},ye={class:"footer-body"};var be=(0,a.pM)({__name:"Footer",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("shortcutkey"),o=u.runtime.get("rpc"),i=u.runtime.get("asset"),p=(0,a.rk)("refSearch"),g=(0,a.rk)("refScroll"),f=(0,a.rk)("refTree"),m={expand:(e,t)=>{var n;return null==(n=f.value)?void 0:n.expand(e,t)},change:e=>{var t;return null==(t=f.value)?void 0:t.change(e)},search:()=>{var e;return null==(e=p.value)?void 0:e.focus()}},v=n.get("global"),h=v.get(l.global.action.FooterAction.id);h.setController(m);const y=n.get("footer"),b=y.get(l.footer.action.ControllerAction.id);b.setController(m);const M=e=>!1===e.fileType,w=()=>t.footer.status.mouseItem=null,k=(e,n)=>{t.footer.status.mouseRegion="directory",t.footer.status.mouseItem=e,l.rightMenu.show(y,n.clientX,n.clientY).catch(w)},R=(e,n)=>{t.footer.status.mouseItem=null!=n?n:null,l.rightMenu.show(y,e.clientX,e.clientY).catch(w)},_=(e,t)=>{if(t.fileType)return;m.change([t]);const n=t.traceAncestor(!1);n.parent&&m.expand(n.parent,!0)},C=(e,n,r)=>{"add"===e?b.createAsset(n,r,i,t):b.renameAsset(n,r,i,t),w(),t.footer.status.modifyMode="close",t.footer.status.modifyValue=null,t.footer.status.modifySuffix="",t.footer.status.modifyContent=""},V=e=>{o.unlisten(d.Message.scene.initialize.Method,V),h.execute()};return o.listen(d.Message.asset.initialize.Method,V),(e,o)=>((0,a.uX)(),(0,a.CE)("div",{class:"vyr-footer",onMousedown:o[4]||(o[4]=e=>(0,s.R1)(n).active("footer"))},[(0,a.Lk)("div",ve,[o[5]||(o[5]=(0,a.Lk)("div",{class:"tabs"},null,-1)),(0,a.Lk)("div",he,[(0,a.bF)((0,s.R1)(c.VyrInput),{ref_key:"refSearch",ref:p,placeholder:(0,s.R1)(r.B).get("footer.search.placeholder"),width:"240px",modelValue:(0,s.R1)(t).footer.status.search,"onUpdate:modelValue":o[0]||(o[0]=e=>(0,s.R1)(t).footer.status.search=e),clearable:!0},null,8,["placeholder","modelValue"])])]),(0,a.Lk)("div",ye,[(0,a.bF)((0,s.R1)(c.VyrDynamicLayouter),{mode:"vertical","model-value":355},{default:(0,a.k6)(()=>[(0,a.Lk)("div",{class:"directory",onMousedown:o[1]||(o[1]=e=>(0,s.R1)(b).setRegion("directory"))},[(0,a.bF)((0,s.R1)(c.VyrScroll),{ref_key:"refScroll",ref:g,margin:6,padding:4},{default:(0,a.k6)(()=>{var e;return[(0,a.bF)((0,s.R1)(c.VyrTree),{ref_key:"refTree",ref:f,data:(0,s.R1)(t).footer.root.children,getter:(0,s.R1)(t).footer.getter,modify:(0,s.R1)(t).footer.status.modifyMode,"modify-value":null==(e=(0,s.R1)(t).footer.status.modifyValue)?void 0:e.url,visible:M,onModify:C,onRightClick:k,onChange:(0,s.R1)(b).changeDirectoryItem},null,8,["data","getter","modify","modify-value","onChange"])]}),_:1},512)],32)]),sidebar:(0,a.k6)(()=>[(0,a.Lk)("div",{class:"manifest",onMousedown:o[2]||(o[2]=e=>(0,s.R1)(b).setRegion("manifest")),onContextmenu:o[3]||(o[3]=e=>R(e))},[(0,a.bF)(me,{controller:(0,s.R1)(b),onRightClick:R,onDoubleClick:_},null,8,["controller"])],32)]),_:1})])],32))}});const Me=(0,M.A)(be,[["__scopeId","data-v-a6eb8830"]]);var we=Me;const ke={class:"status-item"};var Re=(0,a.pM)({__name:"Status",props:{size:{}},setup(e){return(t,n)=>((0,a.uX)(),(0,a.CE)("div",{class:"vyr-status",style:(0,v.Tr)(`height:${e.size}px;`)},[(0,a.Lk)("div",ke,[(0,a.Lk)("div",{class:(0,v.C4)(["status-value",{disabled:!1}])})])],4))}});const _e=(0,M.A)(Re,[["__scopeId","data-v-273c52c1"]]);var Ce=_e,Ve=(0,a.pM)({__name:"App",setup(e){(0,o.$9)(e=>({v5d928f00:(0,s.R1)(m.O3).headerHeight+(0,s.R1)(m.O3).statusHeight+"px"}));const t=u.runtime.get("data");return(e,n)=>((0,a.uX)(),(0,a.CE)("div",{class:"vyr-editor",onContextmenu:n[3]||(n[3]=(0,o.D$)(()=>{},["prevent","stop"]))},[(0,a.bF)(k),(0,a.bF)((0,s.R1)(c.VyrDynamicLayouter),{class:"vyr-main",mode:"vertical",sidebar:!1,modelValue:(0,s.R1)(t).inspector.size,"onUpdate:modelValue":n[2]||(n[2]=e=>(0,s.R1)(t).inspector.size=e)},{default:(0,a.k6)(()=>[(0,a.bF)((0,s.R1)(c.VyrDynamicLayouter),{sidebar:!1,modelValue:(0,s.R1)(t).footer.size,"onUpdate:modelValue":n[1]||(n[1]=e=>(0,s.R1)(t).footer.size=e)},{default:(0,a.k6)(()=>[(0,a.bF)((0,s.R1)(c.VyrDynamicLayouter),{mode:"vertical",modelValue:(0,s.R1)(t).sidebar.size,"onUpdate:modelValue":n[0]||(n[0]=e=>(0,s.R1)(t).sidebar.size=e)},{default:(0,a.k6)(()=>[(0,a.bF)(ae)]),sidebar:(0,a.k6)(()=>[(0,a.bF)(U)]),_:1},8,["modelValue"])]),sidebar:(0,a.k6)(()=>[(0,a.bF)(we)]),_:1},8,["modelValue"])]),sidebar:(0,a.k6)(()=>[(0,a.bF)(pe)]),_:1},8,["modelValue"]),(0,a.bF)(Ce,{size:(0,s.R1)(m.O3).statusHeight},null,8,["size"])],32))}});const Ae=Ve;var Le=Ae,Se=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{i(n.next(e))}catch(t){s(t)}},o=e=>{try{i(n.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);i((n=n.apply(e,t)).next())});const xe=(e,t,n)=>Se(null,null,function*(){c.loading.show();const n=d.RpcService.getToken(),r=e=>c.notify.send(e),v=(0,s.Kh)(new d.UseRecord),h=(0,s.Kh)(new u.DataService("data"));h.sidebar.set(new l.sidebar.scene.SceneNavigator),h.sidebar.set(new l.sidebar.asset.AssetNavigator);const y=h.sidebar.get(l.sidebar.scene.SceneNavigator.key),b=h.sidebar.get(l.sidebar.asset.AssetNavigator.key),M=(0,a.EW)(()=>y.updateVisibilityMapBySearch()),w=(0,a.EW)(()=>b.updateVisibilityMapBySearch());(0,a.wB)(()=>M.value,()=>y.visibilityMap=M.value,{immediate:!0}),(0,a.wB)(()=>w.value,()=>b.visibilityMap=w.value,{immediate:!0});const k=new u.PresetService("preset"),R=new u.RemoteService("remote"),_=new u.DraggableService("draggable"),C=new u.InspectorService("inspector",{loading:l.LoadingComponent,error:l.ErrorComponent}),V=new u.ShortcutkeyService("shortcutkey"),A=new p.GraphService("graph"),L=new d.RpcService("rpc",{token:n,notify:r,confirm:c.confirm}),S=new f.AssetService("asset",h.footer.root,b),x=new g.SceneService("scene",v,y.root,y);i.Asset.baseUrl=L.url,c.Loading.show=()=>V.disable(),c.Loading.close=()=>V.enable(),c.notify.setOffset(m.O3.headerHeight);const D=[h,k,R,_,C,V,A,L,S,x],P=[];for(const e of D)u.runtime.set(e),P.push(e.setup());yield Promise.all(P),P.length=0,(0,l.setup)();for(const e of t)yield e.setup();const E=u.Runtime.services();for(const e of E)P.push(e.ready());yield Promise.all(P),P.length=0;const I=(0,o.Ef)(Le);I.mount(e);for(const e of E)P.push(e.start());yield Promise.all(P),P.length=0,V.listen(),h.sidebar.toggle(y.key),c.loading.close()})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[4296],{84296:function(e,t,a){a.r(t),a.d(t,{default:function(){return C}});var s=a(67227),l=a(14291),r=a(81336),n=a(32132),u=a(21275),i=a(93785),o=a(95054),d=a(76669),c=a(89035),v=a(77409);const m={class:"vyr-asset-item"},f={class:"asset-text"};var y=(0,s.pM)({__name:"AssetItem",props:{data:{default(){return{children:[]}}}},emits:["visible"],setup(e,{emit:t}){const a=e,l=t,r=(0,s.EW)(()=>{const e=[];return"boolean"===typeof a.data.visible?a.data.visible?e.push("vyr-kejian"):e.push("vyr-bukejian"):e.push("vyr-kejian","none"),e});return(t,a)=>((0,s.uX)(),(0,s.CE)("div",m,[(0,s.Lk)("div",f,(0,c.v_)(e.data.name),1),(0,s.Lk)("div",{class:"asset-icons",onMousedown:a[1]||(a[1]=(0,v.D$)(()=>{},["stop"])),onClick:a[2]||(a[2]=(0,v.D$)(()=>{},["stop"]))},[(0,s.Lk)("i",{class:(0,c.C4)(["vyrfont asset-icon",r.value]),onClick:a[0]||(a[0]=t=>l("visible",e.data))},null,2)],32)]))}}),g=a(45904);const k=(0,g.A)(y,[["__scopeId","data-v-14a63a74"]]);var b=k;const h={class:"asset-selector"},p={class:"asset-search"},_={class:"asset-tree"};var R=(0,s.pM)({__name:"Asset",setup(e){const t=r.runtime.get("data"),a=t.sidebar.get(o.w.key),c=r.runtime.get("draggable"),v=r.runtime.get("asset"),m=r.runtime.get("shortcutkey"),f=(0,s.rk)("refSearch"),y=(0,s.rk)("refScroll"),g=(0,s.rk)("refTree"),k=(0,s.EW)(()=>{var e,t;return a.url&&null!=(t=null==(e=i.VirtualNode.get(a.url))?void 0:e.name)?t:""}),R={expand:(e,t)=>{var a;return null==(a=g.value)?void 0:a.expand(e,t)},change:e=>{var t;return null==(t=g.value)?void 0:t.change(e)},search:()=>{var e;return null==(e=f.value)?void 0:e.focus()}},V=m.get("sidebar"),C=V.get(d.ControllerAction.id);C.setController(R);const I=(0,s.EW)(()=>c.get(c.key.asset)),A=()=>{a.status.mouseItem=null},M=(e,t)=>{a.status.mouseItem=e,u.rightMenu.show(V,t.clientX,t.clientY).catch(A)},w=(e,s,l)=>{""!==s&&("add"===e?C.addAssetItem(s,l,v,t):C.renameAssetItem(s,l,v,t)),A(),a.status.modifyMode="close",a.status.modifyValue=null,a.status.modifyContent=null};return V.reset(!0),(0,s.xo)(()=>{m.unactive()}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:"vyr-asset",onMousedown:t[1]||(t[1]=e=>(0,l.R1)(m).active("sidebar"))},[(0,s.Lk)("div",h,[(0,s.bF)((0,l.R1)(n.VyrInput),{placeholder:"","model-value":k.value,readonly:!0},null,8,["model-value"])]),(0,s.Lk)("div",p,[(0,s.bF)((0,l.R1)(n.VyrInput),{ref_key:"refSearch",ref:f,modelValue:(0,l.R1)(a).status.search,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.R1)(a).status.search=e),clearable:!0},null,8,["modelValue"])]),(0,s.Lk)("div",_,[(0,s.bF)((0,l.R1)(n.VyrScroll),{ref_key:"refScroll",ref:y,margin:6,padding:4},{default:(0,s.k6)(()=>{var e;return[(0,s.bF)((0,l.R1)(n.VyrTree),{ref_key:"refTree",ref:g,data:(0,l.R1)(a).root.children,getter:(0,l.R1)(a).getter,draggable:I.value,modify:(0,l.R1)(a).status.modifyMode,multiple:!0,"modify-value":null==(e=(0,l.R1)(a).status.modifyValue)?void 0:e.uuid,visible:(0,l.R1)(C).getAssetItemVisible,onModify:w,onRightClick:M,onChange:(0,l.R1)(C).changeAssetItem},{default:(0,s.k6)(({item:e})=>[(0,s.bF)(b,{data:e,onVisible:(0,l.R1)(C).setAssetItemVisible},null,8,["data","onVisible"])]),_:1},8,["data","getter","draggable","modify","modify-value","visible","onChange"])]}),_:1},512)])],32))}});const V=(0,g.A)(R,[["__scopeId","data-v-6510774a"]]);var C=V}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[4582,7167],{1762:function(e,t,r){r.d(t,{N:function(){return u}});var n=r(50931),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);class u{constructor(){i(this,"record",{})}addUser(e,t){void 0===this.record[e]&&(this.record[e]=[]),n.ArrayUtils.insert(this.record[e],t)}removeUser(e,t){const r=this.record[e];!1!==Array.isArray(r)&&n.ArrayUtils.remove(r,t)}hasUser(e,t){return void 0!==this.record[e]&&this.record[e].indexOf(t)>-1}clearUser(e){const t=Object.keys(this.record);for(const r of t)this.removeUser(r,e)}clear(e){delete this.record[e]}copy(e){this.record=e.record}isOperable(e,t){const r=this.record[e];return!1===Array.isArray(r)||0===r.length||0===r.indexOf(t)}isDelete(e,t){const r=this.record[e];return!1===Array.isArray(r)||0===r.length||1===r.length&&0===r.indexOf(t)}}},6375:function(e,t,r){r.r(t),r.d(t,{add:function(){return i},close:function(){return h},copy:function(){return d},create:function(){return s},cut:function(){return f},delete:function(){return o},dragdrap:function(){return m},initialize:function(){return n},open:function(){return l},remove:function(){return u},rename:function(){return c},select:function(){return a},update:function(){return p}});var n=r(19217),s=r(68903),o=r(87532),i=r(87192),u=r(73079),c=r(12629),a=r(63067),l=r(27995),h=r(21039),d=r(9166),f=r(6755),p=r(18570),m=r(12326)},6755:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.cut";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={urls:e,target:t}}}},7376:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/dep.remove";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={origin:e,url:t}}}},8367:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.downalod";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}},9166:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.copy";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={urls:e,target:t}}}},9219:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.create";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}},9763:function(e,t,r){r.d(t,{R:function(){return d}});var n=r(89168),s=r(50931),o=r(87167),i=r(38788),u=Object.defineProperty,c=(e,t,r)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>c(e,"symbol"!==typeof t?t+"":t,r),l=(e,t,r)=>new Promise((n,s)=>{var o=e=>{try{u(r.next(e))}catch(t){s(t)}},i=e=>{try{u(r.throw(e))}catch(t){s(t)}},u=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,i);u((r=r.apply(e,t)).next())});const h=()=>{window.localStorage.removeItem(i.bV);const e=new URL(window.location.href);e.pathname="/login.html",window.location.href=e.href};class d extends o.Service{constructor(e,t){super(e),a(this,"_listener",new s.Listener),a(this,"confirm"),a(this,"socket"),a(this,"needTrigger",!1),a(this,"msgQueue",[]),a(this,"_onConfirm",e=>l(this,null,function*(){const t=yield this.confirm(e.params.config);e.params.config.value=t.value,e.params.config.success=t.success,this.send(e)})),this.confirm=t.confirm;const r={path:i.Ae,extraHeaders:{authorization:"Bearer "+t.token},autoConnect:!1};this.socket=new window.io(location.href,r),this.socket.on(i.At,e=>{const r=s.Descriptor.deserialization(e);if(void 0!==r.message)return t.notify(r.message);this._delayTrigger(r)}),this.socket.on("disconnect",()=>{this.trigger(i.QB.rpc.disconnect.Method,new i.QB.rpc.disconnect.NoticeMessage(this.client))}),this.listen(i.QB.rpc.confirm.Method,this._onConfirm)}static login(e,t){return l(this,null,function*(){const r=new i.QB.rpc.login.RequestMessage(e,t),s=yield n.A.post(i.QB.rpc.login.Method,r);window.localStorage.setItem(i.bV,s.data.params.token);const o=new URL(window.location.href);o.pathname="/",window.location.href=o.href})}static getUser(){return l(this,null,function*(){const e=new i.QB.rpc.getUser.RequestMessage,t=yield n.A.get(i.QB.rpc.getUser.Method,e);return t.data.params.user})}static getToken(){var e;return null!=(e=window.localStorage.getItem(i.bV))?e:""}static setToken(e){window.localStorage.setItem(i.bV,e)}_delayTrigger(e){this.msgQueue.push(e),!0!==this.needTrigger&&(this.needTrigger=!0,setTimeout(()=>this._executeMsgQueue(),160))}_executeMsgQueue(){this.needTrigger=!1;for(const e of this.msgQueue)this.trigger(e.method,e);this.msgQueue.length=0}get client(){return this.socket.id}get url(){return this.socket.uri}ready(){return l(this,null,function*(){this.listen(i.QB.rpc.logout.Method,h)})}start(){return l(this,null,function*(){yield this.socket.connect()})}trigger(e,t){this._listener.trigger(e,t)}listen(e,t){this._listener.listen(e,t)}unlisten(e,t){this._listener.unlisten(e,t)}send(e){this.socket.emit(i.At,s.Descriptor.serialization(e))}}},12326:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.dragdrap";class c extends n.v{constructor(e,t,r,n){super(),i(this,"method",u),i(this,"params"),this.params={url:e,type:t,dragData:r,targetData:n}}}class a extends n.v{constructor(e,t,r,n,s=""){super(),i(this,"method",u),i(this,"params"),this.params={url:e,type:t,dragData:r,targetData:n,next:s}}}},12629:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.rename";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={newName:e,url:t}}}},12699:function(e,t,r){r.r(t),r.d(t,{add:function(){return o},create:function(){return c},delete:function(){return a},download:function(){return d},dragdrap:function(){return h},initialize:function(){return n},record:function(){return s},remove:function(){return i},switch:function(){return u},update:function(){return l}});var n=r(36645),s=r(82482),o=r(76756),i=r(63459),u=r(73999),c=r(9219),a=r(38800),l=r(31118),h=r(99234),d=r(8367)},14544:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.undo";class c extends n.v{constructor(){super(),i(this,"method",u),i(this,"params"),this.params={}}}},15820:function(e,t,r){r.r(t),r.d(t,{confirm:function(){return l},connection:function(){return i},disconnect:function(){return u},getUser:function(){return o},login:function(){return s},logout:function(){return n},redo:function(){return a},undo:function(){return c}});var n=r(49752),s=r(39269),o=r(19663),i=r(94942),u=r(95052),c=r(14544),a=r(90690),l=r(34832)},18570:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.update";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={url:e,content:t}}}class a extends n.v{constructor(e,t,r,n){super(),i(this,"method",u),i(this,"params"),this.params={url:e,scheme:t,client:r,content:n}}}},19217:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.initialize";class c extends n.v{constructor(){super(),i(this,"method",u)}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={root:e}}}},19663:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.getUser";class c extends n.v{constructor(){super(),i(this,"method",u),i(this,"params"),this.params={}}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={user:e}}}},21039:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.close";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}class a extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={url:e,client:t}}}},21143:function(e,t,r){r.d(t,{U:function(){return p}});var n=r(50931),s=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&l(e,r,t[r]);if(u)for(var r of u(t))a.call(t,r)&&l(e,r,t[r]);return e},d=(e,t)=>o(e,i(t)),f=(e,t,r)=>l(e,"symbol"!==typeof t?t+"":t,r);class p extends n.Descriptor{constructor(e){var t,r,n,s,o,i,u,c;super(d(h({},e),{children:e.children})),f(this,"fileType"),f(this,"scheme"),f(this,"visible"),f(this,"url"),f(this,"parent"),f(this,"userQueue"),f(this,"suffix"),f(this,"category"),this.fileType=null!=(t=e.fileType)&&t,this.scheme=null!=(r=e.scheme)?r:"",this.visible=null==(n=e.visible)||n,this.url=null!=(s=e.url)?s:this.uuid,this.parent=null!=(o=e.parent)?o:"",this.userQueue=null!=(i=e.userQueue)?i:[],this.suffix=null!=(u=e.suffix)?u:"",this.category=null!=(c=e.category)?c:""}sort(){const e=[],t=[];for(const r of this.children)r.fileType?t.push(r):e.push(r);e.sort((e,t)=>e.url.localeCompare(t.url)),t.sort((e,t)=>e.url.localeCompare(t.url)),this.clear(),this.add(...e,...t)}addUser(e){n.ArrayUtils.insert(this.userQueue,e)}removeUser(e){n.ArrayUtils.remove(this.userQueue,e)}hasUser(e){return this.userQueue.indexOf(e)>-1}clearUser(e){this.traverse(t=>t.removeUser(e))}getUserCount(){let e=0;return this.traverse(t=>{e+=t.userQueue.length}),e}getUniqueName(e,t){let r=0,n=e;const s=[...this.children];while(s.length){const o=s.pop();if(o.suffix!==t)continue;const i=o.name.indexOf(n);0===i&&(r++,n=e+r,s.length=0,s.push(...this.children))}return n}isEditable(e){return 0===this.userQueue.length||0===this.userQueue.indexOf(e)}}f(p,"type","VirtualNode"),n.Descriptor.register(p)},23429:function(e,t,r){r.d(t,{I:function(){return m}});var n=r(50931),s=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&l(e,r,t[r]);if(u)for(var r of u(t))a.call(t,r)&&l(e,r,t[r]);return e},d=(e,t)=>o(e,i(t)),f=(e,t,r)=>l(e,"symbol"!==typeof t?t+"":t,r);const p={assetHistroryCollection:new Map,executeCollection:new Map,inverse:e=>{const t=e.constructor,r=new t(d(h({},e),{inverse:!e.inverse}));return r}};class m{constructor(e={}){var t,r,s,o,i,u;f(this,"mark"),f(this,"assets"),f(this,"trigger"),f(this,"inverse"),f(this,"undo"),f(this,"redo"),this.mark=null!=(t=e.mark)?t:n.Generate.uuid(),this.assets=null!=(r=e.assets)?r:[],this.trigger=null!=(s=e.trigger)?s:"",this.inverse=null!=(o=e.inverse)&&o,this.undo=null!=(i=e.undo)?i:null,this.redo=null!=(u=e.redo)?u:null}static undo(e){const t=p.executeCollection.get(e);if(void 0===t||0===t.length)return;const r=t[t.length-1],n=r.inverse?r.undo:r;if(null===n)return;for(const o of n.assets){const t=p.assetHistroryCollection.get(o);if(void 0===t||0===t.undo.length)return;const r=t.undo[t.undo.length-1];if(r!==e)return}const s=p.inverse(n);this.execute(s)}static redo(e){const t=p.executeCollection.get(e);if(void 0===t||0===t.length)return;const r=t[t.length-1],n=r.inverse?r:r.redo;if(null===n)return;for(const o of n.assets){const t=p.assetHistroryCollection.get(o);if(void 0===t||0===t.redo.length)return;const r=t.redo[t.redo.length-1];if(r!==e)return}const s=p.inverse(n);this.execute(s)}static execute(e){let t=p.executeCollection.get(e.trigger);void 0===t&&(t=[],p.executeCollection.set(e.trigger,t));const r=t[t.length-1];void 0!==r&&(e.inverse?e.redo=r.inverse?r:r.redo:e.undo=r.inverse?r.undo:r),e.throwIfOperationUnavailable(),e.execute();for(const n of e.assets){let t=p.assetHistroryCollection.get(n);void 0===t&&(t={undo:[],redo:[]},p.assetHistroryCollection.set(n,t)),e.inverse?(t.redo.push(e.trigger),t.undo[t.undo.length-1]===e.trigger&&t.undo.pop()):(t.undo.push(e.trigger),t.redo[t.redo.length-1]===e.trigger&&t.redo.pop())}t.push(e)}}},27995:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.open";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}class a extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={url:e,client:t}}}},31118:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.update";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={content:e}}}class a extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={client:e,content:t}}}},34832:function(e,t,r){r.r(t),r.d(t,{Method:function(){return c},NoticeMessage:function(){return a}});var n=r(50931),s=r(59592),o=Object.defineProperty,i=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t,r)=>i(e,"symbol"!==typeof t?t+"":t,r);const c="/cli/rpc.confirm";class a extends s.v{constructor(e){super(),u(this,"method",c),u(this,"uuid",n.Generate.uuid()),u(this,"params"),this.params={config:e}}}},36645:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.initialize";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}class a extends n.v{constructor(e,t,r){super(),i(this,"method",u),i(this,"params"),this.params={url:e,serialization:t,scenes:r}}}},36759:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/dep.delete";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={origin:e,url:t}}}},37763:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/sidebar.switch";class c extends n.v{constructor(e,t,r){super(),i(this,"method",u),i(this,"params"),this.params={old:e,active:t,data:r}}}class a extends n.v{constructor(e,t,r){super(),i(this,"method",u),i(this,"params"),this.params={old:e,active:t,data:r}}}},38788:function(e,t,r){r.d(t,{Ae:function(){return l},At:function(){return h},I:function(){return s.I},IT:function(){return a.Method},KJ:function(){return c.K},Nk:function(){return u.N},QB:function(){return o.Q},UV:function(){return i.U},XZ:function(){return n.X},bV:function(){return d},qe:function(){return a.NoticeMessage}});var n=r(57061),s=r(23429),o=r(59311),i=r(21143),u=r(1762),c=r(65061),a=r(34832);const l="/rpc.io",h="/service",d="@vyr/key"},38800:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.delete";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}},39269:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.login";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={name:e,password:t}}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={token:e}}}},40441:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/dep.update";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={origin:e,url:t}}}},46159:function(e,t,r){r.r(t),r.d(t,{switch:function(){return n}});var n=r(37763)},49752:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.logout";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params=e}}},51728:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/dep.create";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={origin:e,url:t}}}},52990:function(e,t,r){r.d(t,{B:function(){return o}});var n=r(75133),s=r(56527);n.Locale.register(s.t);const o=n.Locale.getLanguage(s.t.name)},56527:function(e,t,r){r.d(t,{t:function(){return n}});const n={id:"zh_CN",name:"@vyr/service"}},57061:function(e,t,r){r.d(t,{X:function(){return n}});const n={cache:"/cache",project:"/project",static:"/static",scene:"/scene",entry:"/entry"}},59311:function(e,t,r){r.d(t,{Q:function(){return d}});var n=r(59592),s=r(15820),o=r(46159),i=r(6375),u=r(12699),c=r(86406),a=Object.defineProperty,l=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t,r)=>l(e,"symbol"!==typeof t?t+"":t,r);class d extends n.v{}h(d,"rpc",s),h(d,"sidebar",o),h(d,"asset",i),h(d,"scene",u),h(d,"dep",c)},59592:function(e,t,r){r.d(t,{v:function(){return i}});var n=Object.defineProperty,s=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>s(e,"symbol"!==typeof t?t+"":t,r);class i{constructor(e){o(this,"message"),o(this,"method"),o(this,"params"),this.message=e}}},63067:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.select";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}},63459:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.remove";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={uuids:e}}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={uuids:e}}}},65061:function(e,t,r){r.d(t,{K:function(){return i}});var n=Object.defineProperty,s=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>s(e,"symbol"!==typeof t?t+"":t,r);class i{constructor(e={}){var t,r,n,s;o(this,"name",""),o(this,"password",""),o(this,"token",""),o(this,"role",""),this.name=null!=(t=e.name)?t:"",this.password=null!=(r=e.password)?r:"",this.token=null!=(n=e.token)?n:"",this.role=null!=(s=e.role)?s:""}clone(){const e=new i(this);return e.password="",e}}},68903:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.create";class c extends n.v{constructor(e,t,r,n,s){super(),i(this,"method",u),i(this,"params"),this.params={fileType:e,name:t,suffix:r,parent:n,content:s}}}class a extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={node:e,parent:t}}}},70584:function(e,t,r){r.d(t,{B:function(){return s.B},t:function(){return n.t}});var n=r(71365),s=r(99892)},71365:function(e,t,r){r.d(t,{t:function(){return n}});const n={id:"zh_CN",name:"@vyr/service-rpc"}},73079:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.remove";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={url:e,uuids:t}}}class a extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={url:e,uuids:t}}}},73999:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.switch";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={url:e}}}class a extends n.v{constructor(e,t,r){super(),i(this,"method",u),i(this,"params"),this.params={client:e,url:t,serialization:r}}}},76756:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.add";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={node:e,parent:t}}}class a extends n.v{constructor(e,t,r=""){super(),i(this,"method",u),i(this,"params"),this.params={node:e,parent:t,next:r}}}},78320:function(e,t,r){r.d(t,{k:function(){return u}});var n=Object.defineProperty,s=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>s(e,"symbol"!==typeof t?t+"":t,r),i=(e,t,r)=>new Promise((n,s)=>{var o=e=>{try{u(r.next(e))}catch(t){s(t)}},i=e=>{try{u(r.throw(e))}catch(t){s(t)}},u=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,i);u((r=r.apply(e,t)).next())});class u{constructor(e){o(this,"name"),this.name=e}get(...e){}set(...e){}setup(){return i(this,null,function*(){})}ready(){return i(this,null,function*(){})}start(){return i(this,null,function*(){})}}},82482:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.record";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={url:e,useRecord:t}}}},86406:function(e,t,r){r.r(t),r.d(t,{add:function(){return i},create:function(){return n},delete:function(){return o},remove:function(){return u},update:function(){return s}});var n=r(51728),s=r(40441),o=r(36759),i=r(94673),u=r(7376)},87167:function(e,t,r){r.r(t),r.d(t,{Service:function(){return s.k},language:function(){return n.B},zhCnLanguageProvider:function(){return n.t}});var n=r(95614),s=r(78320)},87192:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.add";class c extends n.v{constructor(e,t,r,n=""){super(),i(this,"method",u),i(this,"params"),this.params={url:e,parent:t,node:r,next:n}}}class a extends n.v{constructor(e,t,r,n=""){super(),i(this,"method",u),i(this,"params"),this.params={url:e,parent:t,node:r,next:n}}}},87532:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/asset.delete";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={urls:e}}}class a extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={urls:e}}}},90690:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.redo";class c extends n.v{constructor(){super(),i(this,"method",u),i(this,"params"),this.params={}}}},94673:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/dep.add";class c extends n.v{constructor(e,t){super(),i(this,"method",u),i(this,"params"),this.params={origin:e,url:t}}}},94942:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.connection";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={client:e}}}},95052:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/rpc.disconnect";class c extends n.v{constructor(e){super(),i(this,"method",u),i(this,"params"),this.params={client:e}}}},95614:function(e,t,r){r.d(t,{B:function(){return s.B},t:function(){return n.t}});var n=r(56527),s=r(52990)},99234:function(e,t,r){r.r(t),r.d(t,{Method:function(){return u},NoticeMessage:function(){return a},RequestMessage:function(){return c}});var n=r(59592),s=Object.defineProperty,o=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>o(e,"symbol"!==typeof t?t+"":t,r);const u="/cli/scene.dragdrap";class c extends n.v{constructor(e,t,r){super(),i(this,"method",u),i(this,"params"),this.params={type:e,dragData:t,targetData:r}}}class a extends n.v{constructor(e,t,r,n=""){super(),i(this,"method",u),i(this,"params"),this.params={type:e,dragData:t,targetData:r,next:n}}}},99892:function(e,t,r){r.d(t,{B:function(){return o}});var n=r(75133),s=r(71365);n.Locale.register(s.t);const o=n.Locale.getLanguage(s.t.name)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,2132,2328,3785,4587,6166,6968,7713,9751,9947],{21275:function(n,r,t){t.r(r),t.d(r,{BaseFragment:function(){return e.A},ErrorComponent:function(){return a.Ax},HTMLFragment:function(){return u.A},LoadingComponent:function(){return a.qH},RightMenu:function(){return g.y},VyrCodeEditor:function(){return a.oQ},VyrColorItem:function(){return a.co},VyrDatasetItem:function(){return a.DN},VyrDirectory:function(){return a.z1},VyrGraph:function(){return a.Aq},VyrInputItem:function(){return a.rZ},VyrInteractionItem:function(){return a.Hz},VyrRuleItem:function(){return a.rQ},VyrTimeline:function(){return a.bb},VyrVariableItem:function(){return a.fH},VyrWindowSetting:function(){return a.gI},createExample:function(){return f.xo},doExecute:function(){return f.V$},footer:function(){return y.qr},global:function(){return y.Sf},header:function(){return y.wx},language:function(){return o.B},option:function(){return i},preset:function(){return c.I},providerDescriptor:function(){return f.nh},rightMenu:function(){return g.f},setup:function(){return y.mj},sidebar:function(){return y.pz},useDescriptor:function(){return f.bf},zhCnLanguageProvider:function(){return o.t}});var e=t(85196),u=t(84443),o=t(67476),i=t(30582),c=t(35600),f=t(12350),a=t(84904),g=t(46247),y=t(20236)},32132:function(n,r,t){t.r(r),t.d(r,{ArrayUtils:function(){return O.lv},Color:function(){return O.Q1},DraggableController:function(){return B.g},Listener:function(){return O.rZ},Loading:function(){return E.Rh},NotifySetting:function(){return F.G8},ResizeListener:function(){return M.T},RightMenuSetting:function(){return F.Eo},Theme:function(){return e.S},VyrButton:function(){return o.A},VyrCard:function(){return c.A},VyrCascader:function(){return f.A},VyrChecked:function(){return a.A},VyrCheckedGroup:function(){return g.A},VyrCol:function(){return y.A},VyrColorPicker:function(){return l.A},VyrDialog:function(){return V.A},VyrDivider:function(){return i.A},VyrDraggable:function(){return s.A},VyrDrapdown:function(){return p.A},VyrDynamicLayouter:function(){return d.A},VyrForm:function(){return A.A},VyrInput:function(){return m.A},VyrInputNumber:function(){return v.A},VyrLabel:function(){return h.A},VyrMask:function(){return S.A},VyrOption:function(){return C.A},VyrOptions:function(){return L.A},VyrPopover:function(){return D.A},VyrProvider:function(){return b.A},VyrRightMenu:function(){return N.A},VyrRow:function(){return R.A},VyrScroll:function(){return I.A},VyrSelect:function(){return P.A},VyrSlot:function(){return u.A},VyrTree:function(){return k.A},addFloatLayer:function(){return F.r4},computedFloatLayer:function(){return F.tg},confirm:function(){return E.lJ},confirmKey:function(){return F.GR},createPopper:function(){return F.n4},dialog:function(){return E.r3},dialogKey:function(){return F.SE},dialogPrivateWarp:function(){return F.g_},dynamicLayouterlisteners:function(){return F.CG},floatLayer:function(){return F.iF},generateFloatLayer:function(){return F.pi},getConfirmState:function(){return F.Wz},getDialogHeight:function(){return F.Ub},getDialogState:function(){return F.MX},getDialogWrapHeight:function(){return F.YZ},getDialogWrapRect:function(){return F.Tl},getDirective:function(){return F.e8},getFirstVNode:function(){return F.RB},getInputValue:function(){return F.y5},getOnlyNode:function(){return F.ZO},getOptions:function(){return F.$E},getSearchOptions:function(){return F.Ds},getSelectOptions:function(){return F.pN},inputNumberReExp:function(){return F.ap},isActiveLayer:function(){return F.mo},isContains:function(){return F.c5},language:function(){return z.B},loading:function(){return E.Lq},notify:function(){return E.me},observer:function(){return F.PA},removeFloatLayer:function(){return F.Cn},seActiveLayer:function(){return F.gV},tooltip:function(){return F.YL},useConfirmState:function(){return F.V2},useDialogState:function(){return F.pA},zhCnLanguageProvider:function(){return z.t}});var e=t(32946),u=t(7931),o=t(62687),i=t(41030),c=t(62517),f=t(67079),a=t(43554),g=t(33947),y=t(15687),l=t(38430),p=t(68676),V=t(8715),s=t(66384),d=t(91905),A=t(75465),m=t(18985),v=t(55522),h=t(91023),S=t(73923),C=t(81320),L=t(54963),D=t(67698),b=t(72756),R=t(98433),I=t(60460),P=t(62263),k=t(60651),N=t(78966),z=t(7135),B=t(57744),M=t(4615),E=t(1307),F=t(93623),O=t(29255)},81336:function(n,r,t){t.r(r),t.d(r,{Action:function(){return o.r},ActionGroup:function(){return o.K},DataService:function(){return i.u},Draggable:function(){return f.s},DraggableService:function(){return f.f},InspectorService:function(){return a.j},PresetService:function(){return c.R},RemoteService:function(){return g.e},Runtime:function(){return l.v},ShortcutkeyService:function(){return y.t},SidebarNavigator:function(){return u.I},Status:function(){return u.n},language:function(){return e.B},runtime:function(){return l.f},zhCnLanguageProvider:function(){return e.t}});var e=t(72931),u=t(34361),o=t(1520),i=t(97633),c=t(34774),f=t(2284),a=t(21822),g=t(52913),y=t(20986),l=t(69188)},92328:function(n,r,t){t.r(r),t.d(r,{Bridge:function(){return o.q},Collection:function(){return i.p},Job:function(){return u._},RemoteExecutor:function(){return c.Q},RemoteInvoker:function(){return a.p},RemoteProcess:function(){return f.u},language:function(){return e.B},zhCnLanguageProvider:function(){return e.t}});var e=t(28723),u=t(84105),o=t(76379),i=t(70026),c=t(93355),f=t(70151),a=t(22984)},93785:function(n,r,t){t.r(r),t.d(r,{Message:function(){return e.QB},Method:function(){return e.IT},NoticeMessage:function(){return e.qe},Operation:function(){return e.I},RpcService:function(){return o.R},UseRecord:function(){return e.Nk},User:function(){return e.KJ},VirtualNode:function(){return e.UV},defineScheme:function(){return e.XZ},language:function(){return u.B},path:function(){return e.Ae},tokenKey:function(){return e.bV},topic:function(){return e.At},zhCnLanguageProvider:function(){return u.t}});var e=t(38788),u=t(70584),o=t(9763)}}]);
|
package/build/js/530.a25f4a44.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[530],{60530:function(e,t,r){r.r(t),r.d(t,{default:function(){return k}});var u=r(67227),l=r(14291),n=r(50931),a=r(32132),i=r(81336),o=r(93785),s=r(21469),c=Object.defineProperty,d=Object.defineProperties,v=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))y.call(t,r)&&f(e,r,t[r]);if(p)for(var r of p(t))b.call(t,r)&&f(e,r,t[r]);return e},m=(e,t)=>d(e,v(t)),w=(0,u.pM)({__name:"AssetInspector",setup(e){const t=i.runtime.get("data"),r=t.sidebar.get(s.AssetNavigator.key),c=i.runtime.get("inspector"),d=i.runtime.get("shortcutkey"),v=i.runtime.get("rpc"),p=i.runtime.get("asset"),y=(0,u.EW)(()=>{if(!r.url)return!0;const e=o.VirtualNode.get(r.url);return!e.isEditable(v.client)}),b=(0,u.EW)(()=>w.value?t.inspector.active===t.inspector.eventKind?c.get(t.inspector.eventKind):t.inspector.active===t.inspector.datasetKind?c.get(t.inspector.datasetKind):c.get(w.value.type):null),f=(0,l.KR)(null),w=(0,l.KR)(null),O=(e,t)=>{if(!e||!t||e.uuid!==t.uuid)return;if(!r.url)return;if(!w.value||!f.value)return;const u=m(g({},e),{uuid:f.value.uuid});p.update(r.url,u)};(0,u.wB)(w,n.Generate.delayExecute(O),{deep:!0});const _=(e,t)=>{Array.isArray(e)&&1===e.length?(f.value=e[0],w.value=f.value.clone(!1)):(f.value=null,w.value=null)};return(0,u.wB)(()=>r.selectAll,_,{immediate:!0,deep:!0}),(e,t)=>((0,u.uX)(),(0,u.CE)("div",{class:"vyr-asset-inspector",onMousedown:t[0]||(t[0]=e=>(0,l.R1)(d).active("inspector"))},[(0,u.bF)((0,l.R1)(a.VyrProvider),{readonly:y.value,"readonly-clearable":!y.value},{default:(0,u.k6)(()=>{var e,t,r;return[((0,u.uX)(),(0,u.Wv)((0,u.$y)(b.value),{raw:null==(e=f.value)?void 0:e.uuid,uuid:null!=(r=null==(t=w.value)?void 0:t.uuid)?r:""},null,8,["raw","uuid"]))]}),_:1},8,["readonly","readonly-clearable"])],32))}}),O=r(45904);const _=(0,O.A)(w,[["__scopeId","data-v-37b604b0"]]);var k=_}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[3785,6166],{93785:function(n,e,r){r.r(e),r.d(e,{Message:function(){return t.QB},Method:function(){return t.IT},NoticeMessage:function(){return t.qe},Operation:function(){return t.I},RpcService:function(){return c.R},UseRecord:function(){return t.Nk},User:function(){return t.KJ},VirtualNode:function(){return t.UV},defineScheme:function(){return t.XZ},language:function(){return u.B},path:function(){return t.Ae},tokenKey:function(){return t.bV},topic:function(){return t.At},zhCnLanguageProvider:function(){return u.t}});var t=r(38788),u=r(70584),c=r(9763)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[6234],{1520:function(e,t,i){i.d(t,{K:function(){return a},r:function(){return c}});var n=i(50931),r=Object.defineProperty,s=(e,t,i)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>s(e,"symbol"!==typeof t?t+"":t,i);class c{constructor(){o(this,"id"),o(this,"value",n.Generate.id()),o(this,"order",10),o(this,"trigger",0),o(this,"show",!0),o(this,"disabled",!0),o(this,"children",[]),this.id=this.constructor.id}active(){return!0}}o(c,"id","Action"),o(c,"rightMenu",1),o(c,"shortcutkey",2);class a{constructor(e,t){o(this,"actions",new Map),o(this,"queue",new Map),o(this,"needReset",!0),o(this,"region"),this.region=e,this.add(...t)}reset(e=!1){if(!1===e&&!1===this.needReset)return;this.needReset=!1,this.queue.clear();const t=this.actions.values();for(const i of t)i.active()&&this.queue.set(i.id,i)}add(...e){for(const t of e)this.actions.has(t.id)||(this.actions.set(t.id,t),this.needReset=!0)}remove(...e){for(const t of e)this.actions.delete(t.id),this.needReset=!0}getActions(){return this.reset(),[...this.queue.values()].sort((e,t)=>e.order-t.order)}get(e){var t;return null!=(t=this.actions.get(e))?t:null}update(e){const t=this.getActions();for(const i of t)n.Traverser.pre(i,t=>{t.trigger=e,t.update()});return t}execute(e,...t){let i=!1;const r=this.getActions();for(const s of r)if(n.Traverser.preTerminated(s,()=>{if(s.validator(...t)&&(s.trigger=e,s.update(),!1===s.disabled))return s.execute(),i=!0,!0}),i)return!0;return!1}}},2284:function(e,t,i){i.d(t,{f:function(){return p},s:function(){return l}});var n=i(14291),r=i(87167),s=Object.defineProperty,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>o(e,"symbol"!==typeof t?t+"":t,i);const a=/^([^\[]+)\[([^\]]+)\]$/;class l{limit(e,t,i){return e.id===t.id?i:"insert"}updateTargetOfKey(e,t,i){var n;const r=e.split("."),s=r.length-1;for(let o=0;o<=s;o++){let e=r[o];if(o===s)i[e]=t;else{const t=e.match(a);if(null===t)i=null!=(n=i[e])?n:{};else{const e=t[1],n=t[2];i[e]||(i[e]=[]),i=i[e],i[n]||(i[n]={}),i=i[n]}}}}}class u extends l{constructor(){super(...arguments),c(this,"id","default")}starter(){return!1}validator(){return!1}finished(){}}class d{constructor(){c(this,"scene","scene"),c(this,"asset","asset"),c(this,"inspector","inspector"),c(this,"footer","footer")}}const h=class e extends r.Service{constructor(){super(...arguments),c(this,"_collection",(0,n.KR)({})),c(this,"key",e.key)}get(e){let t=this._collection.value[e];return void 0===t&&(t=new u),t}set(e,t){this._collection.value[e]=t}};c(h,"key",new d);let p=h},20986:function(e,t,i){i.d(t,{t:function(){return l}});var n=i(87167),r=i(1520),s=Object.defineProperty,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>o(e,"symbol"!==typeof t?t+"":t,i);const a=class e extends n.Service{constructor(t){super(t),c(this,"groupCollection",new Map),c(this,"current",""),c(this,"status",!0),c(this,"bindActionHandler",t=>{if(e.update(t,!0),!1===this.status)return;if(t.target instanceof HTMLInputElement)return;const i=[this.get("global")],n=this.get(this.current);n&&i.push(n);let s=!1;for(const e of i){const i=e.execute(r.r.shortcutkey,t);!0===i&&(s=!0)}!1!==s&&(t.preventDefault(),t.stopPropagation())}),c(this,"unbindActionHandler",t=>{e.update(t,!1)}),this.groupCollection.set("global",new r.K("global",[])),this.groupCollection.set("header",new r.K("header",[])),this.groupCollection.set("sidebar",new r.K("sidebar",[])),this.groupCollection.set("body",new r.K("body",[])),this.groupCollection.set("inspector",new r.K("inspector",[])),this.groupCollection.set("footer",new r.K("footer",[]))}static update(e,t){"Space"===e.code&&(this.spaced=t)}listen(){const e={passive:!1},t=e=>{!1!==e.ctrlKey&&(e.preventDefault(),e.stopPropagation())},i=e=>{if(!0===e.ctrlKey){if(!1===["KeyF"].includes(e.code))return}else if(!1===["Tab"].includes(e.code))return;e.preventDefault(),e.stopPropagation()};window.addEventListener("wheel",t,e),window.addEventListener("keydown",i,e),window.addEventListener("keydown",this.bindActionHandler),window.addEventListener("keyup",this.unbindActionHandler)}get(e="global"){return this.groupCollection.get(e)}active(e){this.current=e}unactive(){this.current=""}enable(){this.status=!0}disable(){this.status=!1}getAction(e){const t=this.groupCollection.values();for(const i of t){const t=i.get(e);if(null!==t)return t}return null}};c(a,"spaced",!1);let l=a},21822:function(e,t,i){i.d(t,{j:function(){return l}});var n=i(67227),r=i(87167),s=Object.defineProperty,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>o(e,"symbol"!==typeof t?t+"":t,i),a=(e,t,i)=>new Promise((n,r)=>{var s=e=>{try{c(i.next(e))}catch(t){r(t)}},o=e=>{try{c(i.throw(e))}catch(t){r(t)}},c=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);c((i=i.apply(e,t)).next())});class l extends r.Service{constructor(e,t){super(e),c(this,"map",new Map),c(this,"loading"),c(this,"error"),this.loading=t.loading,this.error=t.error}setup(){return a(this,null,function*(){})}ready(){return a(this,null,function*(){})}start(){return a(this,null,function*(){})}get(e){const t=this.map.get(e);return void 0===t?null:t}set(e,t){const i=(0,n.$V)({loader:t,loadingComponent:this.loading,errorComponent:this.error,timeout:5e3});this.map.set(e,i)}}},34361:function(e,t,i){i.d(t,{I:function(){return l},n:function(){return a}});var n=i(67227),r=i(50931),s=Object.defineProperty,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>o(e,"symbol"!==typeof t?t+"":t,i);class a{constructor(){c(this,"modifyMode","close"),c(this,"modifyValue",null),c(this,"modifyContent",null),c(this,"mouseItem",null),c(this,"stickup",""),c(this,"stickupItems",[]),c(this,"search","")}}class l{constructor(e,t){c(this,"key"),c(this,"label"),c(this,"icon"),c(this,"root",new r.Descriptor({name:"root"})),c(this,"getter",{label(e){return e.name},value(e){return e.uuid},disabled(){return!1}}),c(this,"status",new a),c(this,"events",[]),c(this,"url"),c(this,"selectAll",[]),this.key=this.constructor.key,this.label=e,this.icon=t,this.url="",(0,n.wB)(()=>this.status.stickupItems,()=>{console.log(this.status.stickupItems)},{deep:!0})}active(){}unactive(){}on(e,t,i){const n=i.bind(this);return this.events.push({key:t,bind:n}),e.listen(t,n),n}unAll(e){for(const t of this.events)e.unlisten(t.key,t.bind);this.events.length=0}}c(l,"key")},34774:function(e,t,i){i.d(t,{R:function(){return l}});var n=i(50931),r=i(87167),s=i(72931),o=Object.defineProperty,c=(e,t,i)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,a=(e,t,i)=>c(e,"symbol"!==typeof t?t+"":t,i);class l extends r.Service{constructor(e){super(e),a(this,"_collection",new Map),a(this,"_typeCollection",new Map),a(this,"_eventProviderCollection",new Map),this._addGlobalInteractionProvider(),this._addDatasetInteractionProvider(),this._addHTMLInteractionProvider()}_addGlobalInteractionProvider(){const e=["mount","click"];for(const t of e)this.addInteractionProvider({id:t,label:s.B.get(`preset.Interaction.id.${t}`),ignore(e){return[n.DatasetDescriptor.type,n.InteractionDescriptor.type].includes(e.type)}})}_addDatasetInteractionProvider(){const e=["compile"];for(const t of e)this.addInteractionProvider({id:t,label:s.B.get(`preset.Interaction.id.${t}`),ignore(e){return!(e instanceof n.DatasetDescriptor)}})}_addHTMLInteractionProvider(){const e=["mousedown","mouseup","mouseenter","mouseleave","mousemove","mouseout","mouseover","contextmenu","dblclick","keydown","keyup","focus","blur","play","pause","pointercancel","pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"];for(const t of e)this.addInteractionProvider({id:t,label:s.B.get(`preset.Interaction.id.${t}`),ignore(e){return!(e instanceof n.HTMLDescriptor)}})}get(e){return this._collection.get(e)}getByType(e){var t;return null!=(t=this._typeCollection.get(e))?t:[]}set(e){this._collection.set(e.value,e);let t=this._typeCollection.get(e.type);void 0===t&&(t=[],this._typeCollection.set(e.type,t)),t.push(e)}addInteractionProvider(e){this._eventProviderCollection.set(e.id,e)}getInteractionLabel(e){const t=this._eventProviderCollection.get(e);return t?t.label:""}getByInteractionProvider(e){const t=[],i=this._eventProviderCollection.values();for(const n of i){if(Array.isArray(n.ignore)){if(n.ignore.includes(e.type))continue}else if(n.ignore(e))continue;t.push({label:n.label,value:n.id})}return t}}},52913:function(e,t,i){i.d(t,{e:function(){return a}});var n=i(87167),r=i(92328),s=Object.defineProperty,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>o(e,"symbol"!==typeof t?t+"":t,i);class a extends n.Service{constructor(e){super(e),c(this,"_collection",new Map),c(this,"dispose",()=>{const e=this._collection.values();for(const t of e)t.dispose()}),this.set("preview",this.create({env:"iframe",invoke:!0,execute:!0})),window.addEventListener("beforeunload",this.dispose)}create(e){return new r.RemoteInvoker(window,e)}get(e){return this._collection.get(e)}set(e,t){this._collection.set(e,t);const i=()=>{this._collection.delete(e),t.bridge.unlisten("close",i)};t.bridge.listen("close",i)}send(e){const t=this._collection.values();for(const i of t)i.bridge.send(e)}}},69188:function(e,t,i){i.d(t,{f:function(){return s},v:function(){return r}});const n={services:new Map};class r{static services(){return[...n.services.values()]}get(e){return n.services.get(e)}set(e){n.services.set(e.name,e)}}const s=new r},72931:function(e,t,i){i.d(t,{B:function(){return s},t:function(){return n}});const n={id:"zh_CN",name:"@vyr/runtime","preset.Interaction.id.mount":"场景挂载时触发","preset.Interaction.id.click":"点击时触发","preset.Interaction.id.compile":"初始化数据时触发","preset.Interaction.id.mousedown":"鼠标按下时触发","preset.Interaction.id.mouseup":"鼠标松开时触发","preset.Interaction.id.mouseenter":"鼠标移入元素时触发","preset.Interaction.id.mouseleave":"鼠标移出元素时触发","preset.Interaction.id.mousemove":"鼠标在元素内移动时触发","preset.Interaction.id.mouseout":"鼠标移出元素或子元素时触发","preset.Interaction.id.mouseover":"鼠标移入元素或子元素时触发","preset.Interaction.id.contextmenu":"打开上下文菜单时触发","preset.Interaction.id.dblclick":"双击时触发","preset.Interaction.id.keydown":"按键按下时触发","preset.Interaction.id.keyup":"按键松开时触发","preset.Interaction.id.focus":"元素获得焦点时触发","preset.Interaction.id.blur":"元素失去焦点时触发","preset.Interaction.id.play":"播放时触发","preset.Interaction.id.pause":"暂停时触发","preset.Interaction.id.pointercancel":"指针交互取消时触发","preset.Interaction.id.pointerdown":"指针按下时触发","preset.Interaction.id.pointerenter":"指针移入元素时触发","preset.Interaction.id.pointerleave":"指针移出元素时触发","preset.Interaction.id.pointermove":"指针移动时触发","preset.Interaction.id.pointerout":"指针移出元素或子元素时触发","preset.Interaction.id.pointerover":"指针移入元素或子元素时触发","preset.Interaction.id.pointerup":"指针松开时触发"};var r=i(75133);r.Locale.register(n);const s=r.Locale.getLanguage(n.name)},97633:function(e,t,i){i.d(t,{u:function(){return H}});var n=i(67227),r=i(87167),s=Object.defineProperty,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>o(e,"symbol"!==typeof t?t+"":t,i);class a{constructor(){c(this,"type","file")}}class l{constructor(){c(this,"status",new a)}}var u=Object.defineProperty,d=(e,t,i)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,h=(e,t,i)=>d(e,"symbol"!==typeof t?t+"":t,i);class p{constructor(){h(this,"left",0),h(this,"top",0),h(this,"width",1920),h(this,"height",1080),h(this,"scale",1),h(this,"position",{x:0,y:0}),h(this,"background","#000000")}}var f=Object.defineProperty,v=(e,t,i)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,b=(e,t,i)=>v(e,"symbol"!==typeof t?t+"":t,i);class y{constructor(){b(this,"_collection",new Map),b(this,"size",355),b(this,"active","")}get(e){var t;return null!=(t=this._collection.get(e))?t:null}set(e){return this._collection.set(e.key,e),e}getCollection(){return[...this._collection.values()]}toggle(e){for(const t of this._collection.values())if(t.key===e){const i=this._collection.get(this.active);return void 0!==i&&i.unactive(),this.active=e,void t.active()}}}var m=Object.defineProperty,g=(e,t,i)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,w=(e,t,i)=>g(e,"symbol"!==typeof t?t+"":t,i);class I{constructor(){w(this,"size",470),w(this,"active",""),w(this,"eventKind","InspectorEvent"),w(this,"datasetKind","InspectorDataset"),w(this,"animations",{})}}var k=i(93785),_=Object.defineProperty,P=(e,t,i)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,C=(e,t,i)=>P(e,"symbol"!==typeof t?t+"":t,i);class x{constructor(){C(this,"mouseRegion","directory"),C(this,"mouseItem",null),C(this,"modifyMode","close"),C(this,"modifyValue",null),C(this,"modifyModeAdd","file"),C(this,"modifyContent",""),C(this,"modifySuffix",""),C(this,"stickup",""),C(this,"stickupItems",[]),C(this,"selectAll",[]),C(this,"search","")}}class M{constructor(){C(this,"root",new k.VirtualNode({name:"root"})),C(this,"emptyDirectory",new k.VirtualNode({name:"directory"})),C(this,"status",new x),C(this,"getter",{label(e){return e.name},value(e){return e.uuid}}),C(this,"directory",this.emptyDirectory),C(this,"manifest",[]),C(this,"size",300)}updateManifest(){if(""===this.status.search)return[...this.directory.children];const e=[];for(const t of this.directory.children)-1!==t.name.indexOf(this.status.search)&&e.push(t);return e}}var O=Object.defineProperty,j=(e,t,i)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,A=(e,t,i)=>j(e,"symbol"!==typeof t?t+"":t,i);class D{constructor(){A(this,"target",""),A(this,"mode","")}}class K{}class L{constructor(){A(this,"max",0),A(this,"currentTime",0),A(this,"enabled",!0)}}class T{constructor(){A(this,"transform",new D),A(this,"helper",new K),A(this,"animation",new L)}}var R=Object.defineProperty,S=(e,t,i)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,B=(e,t,i)=>S(e,"symbol"!==typeof t?t+"":t,i),E=(e,t,i)=>new Promise((n,r)=>{var s=e=>{try{c(i.next(e))}catch(t){r(t)}},o=e=>{try{c(i.throw(e))}catch(t){r(t)}},c=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);c((i=i.apply(e,t)).next())});class H extends r.Service{constructor(e){super(e),B(this,"scripts",[]),B(this,"header"),B(this,"body"),B(this,"sidebar"),B(this,"inspector"),B(this,"footer"),B(this,"status"),this.header=new l,this.body=new p,this.sidebar=new y,this.inspector=new I,this.footer=new M,this.status=new T}setup(){return E(this,null,function*(){const e=(0,n.EW)(()=>this.footer.updateManifest());(0,n.wB)(()=>e.value,()=>this.footer.manifest=e.value,{immediate:!0})})}addScripte(e){this.scripts.push(e)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,2132,2328,3785,4587,6166,6968,7713,9751,9947],{21275:function(n,r,t){t.r(r),t.d(r,{BaseFragment:function(){return e.A},ErrorComponent:function(){return a.Ax},HTMLFragment:function(){return u.A},LoadingComponent:function(){return a.qH},RightMenu:function(){return g.y},VyrCodeEditor:function(){return a.oQ},VyrColorItem:function(){return a.co},VyrDatasetItem:function(){return a.DN},VyrDirectory:function(){return a.z1},VyrGraph:function(){return a.Aq},VyrInputItem:function(){return a.rZ},VyrInteractionItem:function(){return a.Hz},VyrRuleItem:function(){return a.rQ},VyrTimeline:function(){return a.bb},VyrVariableItem:function(){return a.fH},VyrWindowSetting:function(){return a.gI},createExample:function(){return f.xo},doExecute:function(){return f.V$},footer:function(){return y.qr},global:function(){return y.Sf},header:function(){return y.wx},language:function(){return o.B},option:function(){return i},preset:function(){return c.I},providerDescriptor:function(){return f.nh},rightMenu:function(){return g.f},setup:function(){return y.mj},sidebar:function(){return y.pz},useDescriptor:function(){return f.bf},zhCnLanguageProvider:function(){return o.t}});var e=t(85196),u=t(84443),o=t(67476),i=t(30582),c=t(35600),f=t(12350),a=t(84904),g=t(46247),y=t(20236)},32132:function(n,r,t){t.r(r),t.d(r,{ArrayUtils:function(){return O.lv},Color:function(){return O.Q1},DraggableController:function(){return B.g},Listener:function(){return O.rZ},Loading:function(){return E.Rh},NotifySetting:function(){return F.G8},ResizeListener:function(){return M.T},RightMenuSetting:function(){return F.Eo},Theme:function(){return e.S},VyrButton:function(){return o.A},VyrCard:function(){return c.A},VyrCascader:function(){return f.A},VyrChecked:function(){return a.A},VyrCheckedGroup:function(){return g.A},VyrCol:function(){return y.A},VyrColorPicker:function(){return l.A},VyrDialog:function(){return V.A},VyrDivider:function(){return i.A},VyrDraggable:function(){return s.A},VyrDrapdown:function(){return p.A},VyrDynamicLayouter:function(){return d.A},VyrForm:function(){return A.A},VyrInput:function(){return m.A},VyrInputNumber:function(){return v.A},VyrLabel:function(){return h.A},VyrMask:function(){return S.A},VyrOption:function(){return C.A},VyrOptions:function(){return L.A},VyrPopover:function(){return D.A},VyrProvider:function(){return b.A},VyrRightMenu:function(){return N.A},VyrRow:function(){return R.A},VyrScroll:function(){return I.A},VyrSelect:function(){return P.A},VyrSlot:function(){return u.A},VyrTree:function(){return k.A},addFloatLayer:function(){return F.r4},computedFloatLayer:function(){return F.tg},confirm:function(){return E.lJ},confirmKey:function(){return F.GR},createPopper:function(){return F.n4},dialog:function(){return E.r3},dialogKey:function(){return F.SE},dialogPrivateWarp:function(){return F.g_},dynamicLayouterlisteners:function(){return F.CG},floatLayer:function(){return F.iF},generateFloatLayer:function(){return F.pi},getConfirmState:function(){return F.Wz},getDialogHeight:function(){return F.Ub},getDialogState:function(){return F.MX},getDialogWrapHeight:function(){return F.YZ},getDialogWrapRect:function(){return F.Tl},getDirective:function(){return F.e8},getFirstVNode:function(){return F.RB},getInputValue:function(){return F.y5},getOnlyNode:function(){return F.ZO},getOptions:function(){return F.$E},getSearchOptions:function(){return F.Ds},getSelectOptions:function(){return F.pN},inputNumberReExp:function(){return F.ap},isActiveLayer:function(){return F.mo},isContains:function(){return F.c5},language:function(){return z.B},loading:function(){return E.Lq},notify:function(){return E.me},observer:function(){return F.PA},removeFloatLayer:function(){return F.Cn},seActiveLayer:function(){return F.gV},tooltip:function(){return F.YL},useConfirmState:function(){return F.V2},useDialogState:function(){return F.pA},zhCnLanguageProvider:function(){return z.t}});var e=t(32946),u=t(7931),o=t(62687),i=t(41030),c=t(62517),f=t(67079),a=t(43554),g=t(33947),y=t(15687),l=t(38430),p=t(68676),V=t(8715),s=t(66384),d=t(91905),A=t(75465),m=t(18985),v=t(55522),h=t(91023),S=t(73923),C=t(81320),L=t(54963),D=t(67698),b=t(72756),R=t(98433),I=t(60460),P=t(62263),k=t(60651),N=t(78966),z=t(7135),B=t(57744),M=t(4615),E=t(1307),F=t(93623),O=t(29255)},81336:function(n,r,t){t.r(r),t.d(r,{Action:function(){return o.r},ActionGroup:function(){return o.K},DataService:function(){return i.u},Draggable:function(){return f.s},DraggableService:function(){return f.f},InspectorService:function(){return a.j},PresetService:function(){return c.R},RemoteService:function(){return g.e},Runtime:function(){return l.v},ShortcutkeyService:function(){return y.t},SidebarNavigator:function(){return u.I},Status:function(){return u.n},language:function(){return e.B},runtime:function(){return l.f},zhCnLanguageProvider:function(){return e.t}});var e=t(72931),u=t(34361),o=t(1520),i=t(97633),c=t(34774),f=t(2284),a=t(21822),g=t(52913),y=t(20986),l=t(69188)},92328:function(n,r,t){t.r(r),t.d(r,{Bridge:function(){return o.q},Collection:function(){return i.p},Job:function(){return u._},RemoteExecutor:function(){return c.Q},RemoteInvoker:function(){return a.p},RemoteProcess:function(){return f.u},language:function(){return e.B},zhCnLanguageProvider:function(){return e.t}});var e=t(28723),u=t(84105),o=t(76379),i=t(70026),c=t(93355),f=t(70151),a=t(22984)},93785:function(n,r,t){t.r(r),t.d(r,{Message:function(){return e.QB},Method:function(){return e.IT},NoticeMessage:function(){return e.qe},Operation:function(){return e.I},RpcService:function(){return o.R},UseRecord:function(){return e.Nk},User:function(){return e.KJ},VirtualNode:function(){return e.UV},defineScheme:function(){return e.XZ},language:function(){return u.B},path:function(){return e.Ae},tokenKey:function(){return e.bV},topic:function(){return e.At},zhCnLanguageProvider:function(){return u.t}});var e=t(38788),u=t(70584),o=t(9763)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,2328,3785,6166,7713,9947],{81336:function(n,r,t){t.r(r),t.d(r,{Action:function(){return i.r},ActionGroup:function(){return i.K},DataService:function(){return o.u},Draggable:function(){return f.s},DraggableService:function(){return f.f},InspectorService:function(){return a.j},PresetService:function(){return c.R},RemoteService:function(){return g.e},Runtime:function(){return s.v},ShortcutkeyService:function(){return v.t},SidebarNavigator:function(){return u.I},Status:function(){return u.n},language:function(){return e.B},runtime:function(){return s.f},zhCnLanguageProvider:function(){return e.t}});var e=t(72931),u=t(34361),i=t(1520),o=t(97633),c=t(34774),f=t(2284),a=t(21822),g=t(52913),v=t(20986),s=t(69188)},92328:function(n,r,t){t.r(r),t.d(r,{Bridge:function(){return i.q},Collection:function(){return o.p},Job:function(){return u._},RemoteExecutor:function(){return c.Q},RemoteInvoker:function(){return a.p},RemoteProcess:function(){return f.u},language:function(){return e.B},zhCnLanguageProvider:function(){return e.t}});var e=t(28723),u=t(84105),i=t(76379),o=t(70026),c=t(93355),f=t(70151),a=t(22984)},93785:function(n,r,t){t.r(r),t.d(r,{Message:function(){return e.QB},Method:function(){return e.IT},NoticeMessage:function(){return e.qe},Operation:function(){return e.I},RpcService:function(){return i.R},UseRecord:function(){return e.Nk},User:function(){return e.KJ},VirtualNode:function(){return e.UV},defineScheme:function(){return e.XZ},language:function(){return u.B},path:function(){return e.Ae},tokenKey:function(){return e.bV},topic:function(){return e.At},zhCnLanguageProvider:function(){return u.t}});var e=t(38788),u=t(70584),i=t(9763)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,150,2328,3785,6166,7713,7769,9947],{81336:function(e,t,r){r.r(t),r.d(t,{Action:function(){return i.r},ActionGroup:function(){return i.K},DataService:function(){return c.u},Draggable:function(){return o.s},DraggableService:function(){return o.f},InspectorService:function(){return u.j},PresetService:function(){return a.R},RemoteService:function(){return d.e},Runtime:function(){return h.v},ShortcutkeyService:function(){return l.t},SidebarNavigator:function(){return s.I},Status:function(){return s.n},language:function(){return n.B},runtime:function(){return h.f},zhCnLanguageProvider:function(){return n.t}});var n=r(72931),s=r(34361),i=r(1520),c=r(97633),a=r(34774),o=r(2284),u=r(21822),d=r(52913),l=r(20986),h=r(69188)},92328:function(e,t,r){r.r(t),r.d(t,{Bridge:function(){return i.q},Collection:function(){return c.p},Job:function(){return s._},RemoteExecutor:function(){return a.Q},RemoteInvoker:function(){return u.p},RemoteProcess:function(){return o.u},language:function(){return n.B},zhCnLanguageProvider:function(){return n.t}});var n=r(28723),s=r(84105),i=r(76379),c=r(70026),a=r(93355),o=r(70151),u=r(22984)},92601:function(e,t,r){r.r(t),r.d(t,{SceneService:function(){return w},language:function(){return i},zhCnLanguageProvider:function(){return n}});const n={id:"zh_CN",name:"@vyr/service-scene"};var s=r(75133);s.Locale.register(n);const i=s.Locale.getLanguage(n.name);var c=r(89168),a=r(87167),o=r(81336),u=r(93785),d=r(50931),l=Object.defineProperty,h=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t,r)=>h(e,"symbol"!==typeof t?t+"":t,r),p=(e,t,r)=>new Promise((n,s)=>{var i=e=>{try{a(r.next(e))}catch(t){s(t)}},c=e=>{try{a(r.throw(e))}catch(t){s(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,c);a((r=r.apply(e,t)).next())});class f{constructor(e){g(this,"ready",new d.AsyncTask),g(this,"service"),g(this,"_connection",e=>{const t=new URLSearchParams(window.location.search);let r="default.scene.json";const n=t.get("scene");if(n){const e=d.Category.parseName(n);d.Category.scene===e.category&&(r=n)}const s=o.runtime.get("rpc");s.send(new u.Message.scene.initialize.RequestMessage(r))}),g(this,"_disconnect",e=>{this.service.useRecord.clearUser(e.params.client)}),g(this,"_initialize",e=>p(this,null,function*(){const{params:t}=e,r=d.Descriptor.create(t.serialization);this.service.root.clear(),this.service.root.add(r),this.service.scenes.length=0,this.service.scenes.push(...t.scenes),this.service.navigator.url=t.url,this.ready.run()})),g(this,"_record",e=>p(this,null,function*(){this.service.useRecord.copy(e.params.useRecord)})),g(this,"_create",e=>{d.ArrayUtils.insert(this.service.scenes,e.params.url)}),g(this,"_delete",e=>{d.ArrayUtils.remove(this.service.scenes,e.params.url),this.service.useRecord.clear(e.params.url)}),g(this,"_switch",e=>p(this,null,function*(){this.service.useRecord.removeUser(e.params.url.old,e.params.client),this.service.useRecord.addUser(e.params.url.new,e.params.client);const t=o.runtime.get("rpc");if(e.params.client!==t.client)return;this.service.navigator.url=e.params.url.new,this.service.root.clear();const r=d.Descriptor.create(e.params.serialization);this.service.root.add(r)})),g(this,"_add",e=>{const t=d.Descriptor.get(e.params.parent);if(null!==t)if(e.params.next)for(const r of e.params.node){const n=d.Descriptor.create(r);t.insertBefore(n.uuid,e.params.next)}else for(const r of e.params.node){const e=d.Descriptor.create(r);t.add(e)}}),g(this,"_remove",e=>{for(const t of e.params.uuids){const e=d.Descriptor.get(t);if(null===e)continue;const r=e.traceAncestor(!1);null!==r.parent&&(r.parent.remove(e),e.traverse(e=>{d.ArrayUtils.removeByKey(this.service.navigator.selectAll,"uuid",e.uuid),d.ArrayUtils.removeByKey(this.service.navigator.status.stickupItems,"uuid",e.uuid)}))}}),g(this,"_update",e=>{const t=d.Descriptor.get(e.params.content.uuid);null!==t&&t.syncWith(e.params.content)}),g(this,"_dragdrap",e=>{const t=e.params.next?"insertBefore":e.params.type,r=e.params.next||e.params.targetData.data.uuid;for(const n of e.params.dragData.data.uuids)this.service.root[t](n,r)}),this.service=e}listen(){const e=o.runtime.get("rpc");e.listen(u.Message.rpc.connection.Method,this._connection),e.listen(u.Message.rpc.disconnect.Method,this._disconnect),e.listen(u.Message.scene.initialize.Method,this._initialize),e.listen(u.Message.scene.record.Method,this._record),e.listen(u.Message.scene.create.Method,this._create),e.listen(u.Message.scene.delete.Method,this._delete),e.listen(u.Message.scene.switch.Method,this._switch),e.listen(u.Message.scene.add.Method,this._add),e.listen(u.Message.scene.remove.Method,this._remove),e.listen(u.Message.scene.dragdrap.Method,this._dragdrap),e.listen(u.Message.scene.update.Method,this._update)}}var v=Object.defineProperty,m=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t,r)=>m(e,"symbol"!==typeof t?t+"":t,r),y=(e,t,r)=>new Promise((n,s)=>{var i=e=>{try{a(r.next(e))}catch(t){s(t)}},c=e=>{try{a(r.throw(e))}catch(t){s(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,c);a((r=r.apply(e,t)).next())});class w extends a.Service{constructor(e,t,r,n){super(e),M(this,"_provider",new f(this)),M(this,"root"),M(this,"useRecord"),M(this,"navigator"),M(this,"scenes",[]),this.root=r,this.useRecord=t,this.navigator=n}ready(){return y(this,null,function*(){this._provider.listen()})}start(){return y(this,null,function*(){yield this._provider.ready.done()})}create(e){const t=o.runtime.get("rpc");t.send(new u.Message.scene.create.RequestMessage(e))}delete(e){const t=o.runtime.get("rpc");t.send(new u.Message.scene.delete.RequestMessage(e))}switch(e){const t=o.runtime.get("rpc");t.send(new u.Message.scene.switch.RequestMessage(e))}add(e,t){const r=o.runtime.get("rpc");r.send(new u.Message.scene.add.RequestMessage(e,t))}remove(e){const t=o.runtime.get("rpc");t.send(new u.Message.scene.remove.RequestMessage(e))}dragdrap(e,t,r){const n=o.runtime.get("rpc");n.send(new u.Message.scene.dragdrap.RequestMessage(e,t,r))}update(e){const t=o.runtime.get("rpc");t.send(new u.Message.scene.update.RequestMessage(e))}download(e){return y(this,null,function*(){const t=yield c.A.get(u.Message.scene.download.Method,{params:new u.Message.scene.download.RequestMessage(e),responseType:"blob"}),r=URL.createObjectURL(t.data),n=document.createElement("a");n.href=r,n.download="project.zip",n.click(),URL.revokeObjectURL(r)})}}},93785:function(e,t,r){r.r(t),r.d(t,{Message:function(){return n.QB},Method:function(){return n.IT},NoticeMessage:function(){return n.qe},Operation:function(){return n.I},RpcService:function(){return i.R},UseRecord:function(){return n.Nk},User:function(){return n.KJ},VirtualNode:function(){return n.UV},defineScheme:function(){return n.XZ},language:function(){return s.B},path:function(){return n.Ae},tokenKey:function(){return n.bV},topic:function(){return n.At},zhCnLanguageProvider:function(){return s.t}});var n=r(38788),s=r(70584),i=r(9763)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,1018,2328,3785,6166,7713,8637,9947],{34753:function(e,t,n){n.r(t),n.d(t,{AssetService:function(){return _},language:function(){return a},zhCnLanguageProvider:function(){return r}});const r={id:"zh_CN",name:"@vyr/service-asset"};var s=n(75133);s.Locale.register(r);const a=s.Locale.getLanguage(r.name);var i=n(89168),o=n(87167),u=n(81336),c=n(93785),d=n(50931),l=Object.defineProperty,g=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t,n)=>g(e,"symbol"!==typeof t?t+"":t,n),f=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{o(n.next(e))}catch(t){s(t)}},i=e=>{try{o(n.throw(e))}catch(t){s(t)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);o((n=n.apply(e,t)).next())});class h{constructor(e){p(this,"ready",new d.AsyncTask),p(this,"service"),p(this,"_connection",e=>f(null,null,function*(){const e=u.runtime.get("rpc");e.send(new c.Message.asset.initialize.RequestMessage)})),p(this,"_disconnect",e=>{this.service.root.clearUser(e.params.client)}),p(this,"_initialize",e=>{this.service.root.clear();for(const t of e.params.root.children)this.service.root.add(new c.VirtualNode(t));this.ready.run()}),p(this,"_open",e=>{const t=c.VirtualNode.get(e.params.url);t&&t.addUser(e.params.client)}),p(this,"_close",e=>{const t=c.VirtualNode.get(e.params.url);t&&t.removeUser(e.params.client)}),p(this,"_create",e=>{const t=c.VirtualNode.get(e.params.parent);null!==t&&(t.add(new c.VirtualNode(c.VirtualNode.deserialization(e.params.node))),t.sort())}),p(this,"_delete",e=>{const t=u.runtime.get("data");for(const n of e.params.urls){const e=c.VirtualNode.get(n);if(null===e)return;const r=e.traceAncestor(!1);null!==r.parent&&(this._clear(t.footer.status.stickupItems,e),r.parent.remove(e))}}),p(this,"_add",e=>{const t=d.Descriptor.get(e.params.parent);if(null!==t)if(e.params.next)for(const n of e.params.node){const r=d.Descriptor.create(n);t.insertBefore(r.uuid,e.params.next)}else for(const n of e.params.node){const e=d.Descriptor.create(n);t.add(e)}}),p(this,"_remove",e=>{u.runtime.get("data");for(const t of e.params.uuids){const e=d.Descriptor.get(t);if(null===e)continue;const n=e.traceAncestor(!1);null!==n.parent&&(n.parent.remove(e),d.ArrayUtils.removeByKey(this.service.navigator.selectAll,"uuid",e.uuid),d.ArrayUtils.removeByKey(this.service.navigator.status.stickupItems,"uuid",e.uuid))}}),p(this,"_update",e=>{const t=d.Descriptor.get(e.params.content.uuid);t&&t.syncWith(e.params.content)}),p(this,"_dragdrap",e=>{if(e.params.url!==this.service.navigator.url)return;const t=e.params.next?"insertBefore":e.params.type,n=e.params.next||e.params.targetData.data.uuid;for(const r of e.params.dragData.data.uuids)this.service.root[t](r,n)}),this.service=e}_clear(e,t){if(0!==e.length)for(const n of e)if(n.uuid===t.uuid)return void d.ArrayUtils.remove(e,n)}listen(){const e=u.runtime.get("rpc");e.listen(c.Message.rpc.connection.Method,this._connection),e.listen(c.Message.rpc.disconnect.Method,this._disconnect),e.listen(c.Message.asset.initialize.Method,this._initialize),e.listen(c.Message.asset.create.Method,this._create),e.listen(c.Message.asset.delete.Method,this._delete),e.listen(c.Message.asset.add.Method,this._add),e.listen(c.Message.asset.remove.Method,this._remove),e.listen(c.Message.asset.open.Method,this._open),e.listen(c.Message.asset.close.Method,this._close),e.listen(c.Message.asset.update.Method,this._update),e.listen(c.Message.asset.dragdrap.Method,this._dragdrap)}}var m=Object.defineProperty,v=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t,n)=>v(e,"symbol"!==typeof t?t+"":t,n),y=(e,t,n)=>new Promise((r,s)=>{var a=e=>{try{o(n.next(e))}catch(t){s(t)}},i=e=>{try{o(n.throw(e))}catch(t){s(t)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);o((n=n.apply(e,t)).next())});class _ extends o.Service{constructor(e,t,n){super(e),M(this,"_provider",new h(this)),M(this,"navigator"),M(this,"root"),this.name=e,this.root=t,this.navigator=n}ready(){return y(this,null,function*(){this._provider.listen()})}start(){return y(this,null,function*(){yield this._provider.ready.done()})}select(e){const t=u.runtime.get("rpc");t.send(new c.Message.asset.select.RequestMessage(e))}open(e){const t=u.runtime.get("rpc");t.send(new c.Message.asset.open.RequestMessage(e))}close(e){const t=u.runtime.get("rpc");t.send(new c.Message.asset.close.RequestMessage(e))}create(e,t,n,r,s){const a=u.runtime.get("rpc");a.send(new c.Message.asset.create.RequestMessage(e,t,n,r,s))}delete(e){const t=Array.isArray(e)?e:[e];if(0===t.length)return;const n=u.runtime.get("rpc");n.send(new c.Message.asset.delete.RequestMessage(t))}add(e,t,n){const r=u.runtime.get("rpc");r.send(new c.Message.asset.add.RequestMessage(e,n,t))}remove(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.asset.remove.RequestMessage(e,t))}dragdrap(e,t,n,r){const s=u.runtime.get("rpc");s.send(new c.Message.asset.dragdrap.RequestMessage(e,t,n,r))}rename(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.asset.rename.RequestMessage(t,e))}cut(e,t){if(0===e.length)return;const n=u.runtime.get("rpc");n.send(new c.Message.asset.cut.RequestMessage(e,t))}copy(e,t){if(0===e.length)return;const n=u.runtime.get("rpc");n.send(new c.Message.asset.copy.RequestMessage(e,t))}update(e,t){const n=u.runtime.get("rpc");n.send(new c.Message.asset.update.RequestMessage(e,t))}read(e){return y(this,null,function*(){const t=yield i.A.get(e,{responseType:"text"});return t.data})}}},81336:function(e,t,n){n.r(t),n.d(t,{Action:function(){return a.r},ActionGroup:function(){return a.K},DataService:function(){return i.u},Draggable:function(){return u.s},DraggableService:function(){return u.f},InspectorService:function(){return c.j},PresetService:function(){return o.R},RemoteService:function(){return d.e},Runtime:function(){return g.v},ShortcutkeyService:function(){return l.t},SidebarNavigator:function(){return s.I},Status:function(){return s.n},language:function(){return r.B},runtime:function(){return g.f},zhCnLanguageProvider:function(){return r.t}});var r=n(72931),s=n(34361),a=n(1520),i=n(97633),o=n(34774),u=n(2284),c=n(21822),d=n(52913),l=n(20986),g=n(69188)},92328:function(e,t,n){n.r(t),n.d(t,{Bridge:function(){return a.q},Collection:function(){return i.p},Job:function(){return s._},RemoteExecutor:function(){return o.Q},RemoteInvoker:function(){return c.p},RemoteProcess:function(){return u.u},language:function(){return r.B},zhCnLanguageProvider:function(){return r.t}});var r=n(28723),s=n(84105),a=n(76379),i=n(70026),o=n(93355),u=n(70151),c=n(22984)},93785:function(e,t,n){n.r(t),n.d(t,{Message:function(){return r.QB},Method:function(){return r.IT},NoticeMessage:function(){return r.qe},Operation:function(){return r.I},RpcService:function(){return a.R},UseRecord:function(){return r.Nk},User:function(){return r.KJ},VirtualNode:function(){return r.UV},defineScheme:function(){return r.XZ},language:function(){return s.B},path:function(){return r.Ae},tokenKey:function(){return r.bV},topic:function(){return r.At},zhCnLanguageProvider:function(){return s.t}});var r=n(38788),s=n(70584),a=n(9763)}}]);
|