@vyr/cli 0.0.1 → 0.0.2
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/.entry/app.js +363 -363
- package/README.zh-CN.md +0 -33
- package/build/css/1111.86597cc5.css +1 -0
- package/build/css/2546.a9c3029e.css +1 -0
- package/build/css/3085.43d5665d.css +1 -0
- package/build/css/{2505.39376622.css → 3745.5e7a01f4.css} +1 -1
- package/build/css/{8093.21e188eb.css → 3864.d7e761ea.css} +1 -1
- package/build/css/{9157.971090af.css → 3964.4c4113a3.css} +1 -1
- package/build/css/login.3b035eb6.css +1 -0
- package/build/deps/socket.js +3 -3
- package/build/fonts/{iconfont.2e5056cd.woff → iconfont.892a2301.woff} +0 -0
- package/build/fonts/{iconfont.01dfbc15.ttf → iconfont.ba63119b.ttf} +0 -0
- package/build/index.html +1 -1
- package/build/js/1111.d7fb9219.js +1 -0
- package/build/js/{8743.2cffd0be.js → 1124.74dc01cf.js} +1 -1
- package/build/js/2546.9d7d58e4.js +1 -0
- package/build/js/3085.5ce399d8.js +1 -0
- package/build/js/3745.cd0df446.js +1 -0
- package/build/js/3864.d5d8003c.js +3 -0
- package/build/js/3964.66f0c619.js +1 -0
- package/build/js/{4263.870a448a.js → 4263.4fee7680.js} +1 -1
- package/build/js/4530.f37bf7ff.js +1 -0
- package/build/js/4587.04343c23.js +1 -0
- package/build/js/6234.efa90525.js +1 -0
- package/build/js/677.c536501d.js +1 -0
- package/build/js/6881.110a38eb.js +1 -0
- package/build/js/6968.d6e90089.js +1 -0
- package/build/js/7195.e454ee38.js +1 -0
- package/build/js/7692.0a1cdf62.js +1 -0
- package/build/js/8657.8fef2180.js +1 -0
- package/build/js/{1124.4cf01e6d.js → 8743.ae6b01fb.js} +1 -1
- package/build/js/931.8edc5ac8.js +1 -0
- package/build/js/index.715638f0.js +1 -0
- package/build/js/login.1a6bff2e.js +1 -0
- package/build/js/preview.6ee9a584.js +1 -0
- package/build/login.html +1 -1
- package/build/preview.html +1 -1
- package/pack/auto-provider-plugin/package.json +1 -8
- package/pack/class-wrapper-plugin/package.json +1 -8
- package/pack/rollup-config-plugin/package.json +1 -8
- package/pack/var-rename-plugin/package.json +1 -8
- package/package.json +2 -2
- package/build/css/1060.a79f9d80.css +0 -1
- package/build/css/1111.7f5086f2.css +0 -1
- package/build/css/6827.7d5b54a4.css +0 -1
- package/build/css/login.de13ff0c.css +0 -1
- package/build/js/1060.331f9a15.js +0 -1
- package/build/js/1111.8555bd5c.js +0 -1
- package/build/js/2505.b43421df.js +0 -1
- package/build/js/4530.60b7c78d.js +0 -1
- package/build/js/4587.9701b203.js +0 -1
- package/build/js/6234.8760a038.js +0 -1
- package/build/js/677.618fc137.js +0 -1
- package/build/js/6827.62f794a0.js +0 -1
- package/build/js/6881.e7455ee6.js +0 -1
- package/build/js/6968.07bbc3cd.js +0 -1
- package/build/js/7195.7a9c1589.js +0 -1
- package/build/js/7692.217959b6.js +0 -1
- package/build/js/8093.b4466960.js +0 -3
- package/build/js/8657.d3a8799b.js +0 -1
- package/build/js/9157.58a8fa2d.js +0 -1
- package/build/js/931.88800e05.js +0 -1
- package/build/js/index.b935de87.js +0 -1
- package/build/js/login.1488a09a.js +0 -1
- package/build/js/preview.6c550af7.js +0 -1
- /package/build/js/{1018.094a4eaf.js → 1018.841102d5.js} +0 -0
- /package/build/js/{1349.8c9198a0.js → 1349.8c628175.js} +0 -0
- /package/build/js/{1402.4e06e186.js → 1402.a2b31799.js} +0 -0
- /package/build/js/{150.0eb50ff3.js → 150.e0b6ce77.js} +0 -0
- /package/build/js/{1583.e8f36a93.js → 1583.ebe181e2.js} +0 -0
- /package/build/js/{1877.41a30a46.js → 1877.1ae78e83.js} +0 -0
- /package/build/js/{250.369da5c4.js → 250.86810c99.js} +0 -0
- /package/build/js/{4296.634b3fe2.js → 4296.4744698e.js} +0 -0
- /package/build/js/{4582.a686fadd.js → 4582.a70df995.js} +0 -0
- /package/build/js/{530.b4e0e136.js → 530.4b2961fe.js} +0 -0
- /package/build/js/{5639.7661231d.js → 5639.f2d2e21b.js} +0 -0
- /package/build/js/{6357.1354eb2c.js → 6357.264f8155.js} +0 -0
- /package/build/js/{7769.15f4d355.js → 7769.81492015.js} +0 -0
- /package/build/js/{8637.20577619.js → 8637.a22cc644.js} +0 -0
- /package/build/js/{9044.73639ece.js → 9044.70484b04.js} +0 -0
- /package/build/js/{9339.d75f7c2e.js → 9339.e3438ab8.js} +0 -0
- /package/build/js/{9620.e7e75a12.js → 9620.ee62a8bc.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[8657],{28657:function(e,t,n){n.r(t);var s=n(50931),r=n(70151),c=n(84105);class i extends s.Scriptable{execute(e,t,n){const i=r.u.get(t.engine);if(null!==i)if("contextmenu"===n.event.type)i.bridge.send(new c._.invoke.pick.Response({descriptor:""}));else{const e=s.Descriptor.get(n.event.target);if(null===e)return;const t={eventType:n.event.type,target:n.event.target,descriptor:e.clone(!1)};i.bridge.send(new c._.invoke.transform.Response(t))}}}t["default"]=i}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,150,1018,2132,2328,3785,4587,6166,6968,7713,7769,8637,9157,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.routine.button.close":"关 闭","sidebar.routine.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},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 o.B},option:function(){return i},preset:function(){return a.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 o.t}});var r=n(85196),s=n(84443),o=n(67476),i=n(30582),a=n(70423),u=n(12350),c=n(90429),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 z.Rh},NotifySetting:function(){return I.G8},ResizeListener:function(){return E.T},RightMenuSetting:function(){return I.Eo},Theme:function(){return r.S},VyrButton:function(){return o.A},VyrCard:function(){return a.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 i.A},VyrDraggable:function(){return v.A},VyrDrapdown:function(){return g.A},VyrDynamicLayouter:function(){return m.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 I.r4},computedFloatLayer:function(){return I.tg},confirm:function(){return z.lJ},confirmKey:function(){return I.GR},createPopper:function(){return I.n4},dialog:function(){return z.r3},dialogKey:function(){return I.SE},dialogPrivateWarp:function(){return I.g_},dynamicLayouterlisteners:function(){return I.CG},floatLayer:function(){return I.iF},generateFloatLayer:function(){return I.pi},getConfirmState:function(){return I.Wz},getDialogHeight:function(){return I.Ub},getDialogState:function(){return I.MX},getDialogWrapHeight:function(){return I.YZ},getDialogWrapRect:function(){return I.Tl},getDirective:function(){return I.e8},getFirstVNode:function(){return I.RB},getInputValue:function(){return I.y5},getOnlyNode:function(){return I.ZO},getOptions:function(){return I.$E},getSearchOptions:function(){return I.Ds},getSelectOptions:function(){return I.pN},inputNumberReExp:function(){return I.ap},isActiveLayer:function(){return I.mo},isContains:function(){return I.c5},language:function(){return D.B},loading:function(){return z.Lq},notify:function(){return z.me},observer:function(){return I.PA},removeFloatLayer:function(){return I.Cn},seActiveLayer:function(){return I.gV},tooltip:function(){return I.YL},useConfirmState:function(){return I.V2},useDialogState:function(){return I.pA},zhCnLanguageProvider:function(){return D.t}});var r=n(32946),s=n(7931),o=n(62687),i=n(41030),a=n(62517),u=n(67079),c=n(43554),l=n(33947),d=n(15687),p=n(38430),g=n(68676),f=n(8715),v=n(66384),m=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),z=n(1307),I=n(93623),B=n(29255)},34753:function(e,t,n){n.r(t),n.d(t,{AssetService:function(){return M},language:function(){return o},zhCnLanguageProvider:function(){return r}});const r={id:"zh_CN",name:"@vyr/service-asset"};var s=n(75133);s.Locale.register(r);const o=s.Locale.getLanguage(r.name);var i=n(89168),a=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 o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())});class v{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 m=Object.defineProperty,h=(e,t,n)=>t in e?m(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 o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())});class M extends a.Service{constructor(e,t,n){super(e),y(this,"_provider",new v(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 o=u.runtime.get("rpc");o.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 i.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 i},oY:function(){return T},FU:function(){return a}});const r={headerHeight:42,statusHeight:25};var s=n(67227);const o=Symbol(),i=e=>{(0,s.Gt)(o,e)},a=()=>(0,s.WQ)(o);var u=n(39349),c=n(81336),l=n(21275),d=n(93785),p=n(92328),g=Object.defineProperty,f=Object.defineProperties,v=Object.getOwnPropertyDescriptors,m=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(m)for(var n of m(t))y.call(t,n)&&b(e,n,t[n]);return e},w=(e,t)=>f(e,v(t)),k=(e,t,n)=>new Promise((r,s)=>{var o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((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))},z=e=>k(null,null,function*(){console.log("alert",e)}),I=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,z),t.bridge.listen(p.Job.invoke.animation.Method,B),t.bridge.listen(p.Job.invoke.event.Method,I),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,z),t.bridge.unlisten(p.Job.invoke.animation.Method,B),t.bridge.unlisten(p.Job.invoke.event.Method,I),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 o}});var r=n(75133),s=n(10854);r.Locale.register(s.t);const o=r.Locale.getLanguage(s.t.name)},81336:function(e,t,n){n.r(t),n.d(t,{Action:function(){return o.r},ActionGroup:function(){return o.K},DataService:function(){return i.u},Draggable:function(){return u.s},DraggableService:function(){return u.f},InspectorService:function(){return c.j},PresetService:function(){return a.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),o=n(1520),i=n(97633),a=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 o.D0},ConditionUnit:function(){return o.oh},ExecuteUnit:function(){return o.Wl},GraphDrawer:function(){return i._},GraphService:function(){return a.G},RoutineUnit:function(){return o.ZK},Unit:function(){return s.N},language:function(){return r.B},zhCnLanguageProvider:function(){return r.t}});var r=n(46237),s=n(14246),o=n(86200),i=n(4600),a=n(64263)},92328:function(e,t,n){n.r(t),n.d(t,{Bridge:function(){return o.q},Collection:function(){return i.p},Job:function(){return s._},RemoteExecutor:function(){return a.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),o=n(76379),i=n(70026),a=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 o},zhCnLanguageProvider:function(){return r}});const r={id:"zh_CN",name:"@vyr/service-scene"};var s=n(75133);s.Locale.register(r);const o=s.Locale.getLanguage(r.name);var i=n(89168),a=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 o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())});class v{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 m=Object.defineProperty,h=(e,t,n)=>t in e?m(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 o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())});class M extends a.Service{constructor(e,t,n,r){super(e),y(this,"_provider",new v(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 i.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 o.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),o=n(9763)},99157:function(e,t,n){n.r(t),n.d(t,{run:function(){return xe}});var r=n(39349),s=n(14291),o=n(67227),i=n(77409),a=n(50931),u=n(81336),c=n(32132),l=n(21275),d=n(93785),p=n(89974),g=n(92601),f=n(34753),v=n(54870),m=n(89035);const h={class:"header-menu"},y=["onContextmenu"];var b=(0,o.pM)({__name:"Header",setup(e){(0,i.$9)(e=>({v30a82d82:(0,s.R1)(v.O3).headerHeight+"px"}));const t=u.runtime.get("data"),n=u.runtime.get("shortcutkey"),a=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(a,n.clientX,n.clientY).then().catch(()=>{})};return(e,t)=>((0,o.uX)(),(0,o.CE)("div",{class:"vyr-header",onMousedown:t[0]||(t[0]=e=>(0,s.R1)(n).active("header"))},[t[1]||(t[1]=(0,o.Lk)("div",{class:"header-logo"},[(0,o.Lk)("img",{src:"/logo/透明图标.png",alt:"logo"})],-1)),(0,o.Lk)("div",h,[((0,o.uX)(),(0,o.CE)(o.FK,null,(0,o.pI)(c,(e,t)=>(0,o.Lk)("div",{class:"menu-item",key:t,onContextmenu:t=>d(e.value,t)},(0,m.v_)(e.label),41,y)),64))]),t[2]||(t[2]=(0,o.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,o.pM)({__name:"Animation",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("remote"),r=n.get("preview"),i=()=>{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))},a=(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,o.uX)(),(0,o.CE)("div",_,[(0,o.Lk)("div",C,[(0,o.Lk)("i",{class:(0,m.C4)(["vyrfont",[(0,s.R1)(t).status.animation.enabled?"vyr-tingzhi":"vyr-yunhang"]]),onClick:i},null,2)]),(0,o.Lk)("div",V,[(0,o.bF)((0,s.R1)(l.VyrTimeline),{onUpdateTime:a})]),(0,o.Lk)("div",A,[(0,o.Lk)("i",{class:"vyrfont vyr-zhongzhi",onClick:n[0]||(n[0]=e=>a())})])]))}});const S=(0,M.A)(L,[["__scopeId","data-v-8262b0f2"]]);var x=S,D=(e,t,n)=>new Promise((r,s)=>{var o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())}),P=(0,o.pM)({__name:"CondRenderer",setup(e){const t=u.runtime.get("rpc"),r=u.runtime.get("asset"),i=(0,s.KR)(""),c=(0,s.KR)(null);(0,v.l)(c);const l=[{type:a.DatasetDescriptor.type,compoment:(0,o.$V)(()=>n.e(2505).then(n.bind(n,92505)))},{type:a.RoutineDescriptor.type,compoment:(0,o.$V)(()=>n.e(1060).then(n.bind(n,31060)))}],p=(0,o.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,o.EW)(()=>{if(!i.value)return!1;const e=d.VirtualNode.get(i.value);return!e.isEditable(t.client)}),f=e=>D(null,null,function*(){i.value=e.url;const t=yield r.read(e.url);if(""===i.value)return;const n=a.DatasetDescriptor.deserialization(t);c.value=n}),m=()=>{i.value="",c.value=null},h=e=>{if(e.params.client!==t.client)return;const n=d.VirtualNode.get(e.params.url);[a.Category.datasetSuffix,a.Category.routineSuffix].includes(n.suffix)&&f(n)},y=e=>{if(e.params.client!==t.client)return;const n=d.VirtualNode.get(e.params.url);[a.Category.datasetSuffix,a.Category.routineSuffix].includes(n.suffix)&&m()},b=e=>{if(null===c.value||e.params.content.uuid!==c.value.uuid)return;const t=d.VirtualNode.get(e.params.url);if([a.Category.datasetSuffix,a.Category.routineSuffix].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,o.uX)(),(0,o.Wv)((0,o.$y)(p.value),{url:i.value,readonly:g.value},null,8,["url","readonly"]))}});const E=(0,M.A)(P,[["__scopeId","data-v-fdd59424"]]);var z=E,I=(e,t,n)=>new Promise((r,s)=>{var o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())});const B={class:"vyr-body"},F={class:"body-setting"},O={class:"body-animation"};var N=(0,o.pM)({__name:"Body",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("remote"),r=n.get("preview"),i=(0,s.KR)({disbaled:!1}),a=(0,o.rk)("refWrapper"),c=(0,o.rk)("refPreview"),d=()=>{const e=a.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,o.wB)(()=>[t.body.width,t.body.height],d);const p=e=>{i.value.disbaled=!0},g=()=>{i.value.disbaled=!1},f=(0,v.oY)();return(0,o.sV)(()=>I(null,null,function*(){(0,o.dY)(d),r.mount("refPreview"),window.addEventListener("mousedown",p),window.addEventListener("mouseup",g),window.addEventListener("mouseleave",g),window.addEventListener("resize",d)})),(0,o.xo)(()=>I(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,o.uX)(),(0,o.CE)("div",B,[(0,o.Lk)("div",F,[(0,o.bF)((0,s.R1)(l.VyrWindowSetting))]),(0,o.Lk)("div",{class:(0,m.C4)(["body-viewer",{disabeld:i.value.disbaled}]),ref_key:"refWrapper",ref:a},[(0,o.Lk)("div",{ref_key:"refPreview",ref:c,id:"refPreview",class:"preview",style:(0,m.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,o.Lk)("div",O,[(0,o.bF)(x)]),(0,o.bF)(z)]))}});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,o.pM)({__name:"Routine",setup(e){const t=u.runtime.get("rpc"),n=u.runtime.get("data"),i=u.runtime.get("graph"),p=(0,o.EW)(()=>{const e=n.sidebar.get(n.sidebar.active);return null===e||e.ensureReadonlyWhereRoutine(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=a.RoutineDescriptor.deepClone(e))}},v=(e,t)=>{if(e){const t=a.RoutineDescriptor.deepClone(e);f(t,i.state.inputs),g.value=t}else g.value=null};(0,o.wB)(()=>i.state.routine,v,{deep:!0,immediate:!0});let h=null;const y=e=>{h=e},b=()=>{h=null,i.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===i.state.event){r.inputs=n;break}},w=()=>{if(null===h)return;const e=a.Descriptor.get(i.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.saveWhereRoutine(G(H({},t),{uuid:e.uuid}))},k=e=>{if(null===i.state.routine)return;if(null===g.value)return;if(n.sidebar.active!==l.sidebar.scene.SceneNavigator.key)return;if(i.state.descriptor!==e.params.content.uuid)return;const t=e.params.content;for(const n of t.interactions)if(i.state.event===n.uuid){const e=a.Descriptor.deepClone(g.value);e.uuid=g.value.uuid,0===Object.keys(n.inputs).length?e.nodes=a.Descriptor.deepClone(i.state.routine.nodes):f(e,n.inputs),g.value=e;break}},R=e=>{if(null===i.state.routine)return;if(null===g.value)return;if(n.sidebar.active!==l.sidebar.asset.AssetNavigator.key)return;if(i.state.descriptor!==e.params.content.uuid)return;const t=e.params.content;for(const n of t.interactions)if(i.state.event===n.uuid){const e=a.Descriptor.deepClone(g.value);e.uuid=g.value.uuid,0===Object.keys(n.inputs).length?e.nodes=a.Descriptor.deepClone(i.state.routine.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,o.uX)(),(0,o.Wv)((0,s.R1)(c.VyrDialog),{modelValue:(0,s.R1)(i).state.visible,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,s.R1)(i).state.visible=e),width:(0,s.R1)(i).state.width,height:(0,s.R1)(i).state.height,onClose:b},(0,o.eX)({scroll:(0,o.k6)(()=>[g.value?((0,o.uX)(),(0,o.Wv)((0,s.R1)(l.VyrGraph),{key:0,routine:g.value,readonly:!0,addable:!1,"input-readonly":p.value,onChange:y},null,8,["routine","input-readonly"])):(0,o.Q3)("",!0)]),_:2},[!1===p.value?{name:"footer",fn:(0,o.k6)(()=>[(0,o.bF)((0,s.R1)(c.VyrButton),{onClick:t[0]||(t[0]=e=>(0,s.R1)(i).state.visible=!1)},{default:(0,o.k6)(()=>[(0,o.eW)((0,m.v_)((0,s.R1)(r.B).get("sidebar.routine.button.close")),1)]),_:1}),(0,o.bF)((0,s.R1)(c.VyrButton),{onClick:w},{default:(0,o.k6)(()=>[(0,o.eW)((0,m.v_)((0,s.R1)(r.B).get("sidebar.routine.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,o.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"),i=u.runtime.get("shortcutkey"),a=u.runtime.get("rpc"),p=u.runtime.get("graph"),g=i.getAction(l.global.action.SidebarAction.id),f=(0,o.EW)(()=>t.sidebar.getCollection()),v=(0,o.EW)(()=>r.get(`sidebar.${t.sidebar.active}`)),h=e=>{t.sidebar.active!==e&&g.toggleSidebar(e,t,a)};return a.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,o.uX)(),(0,o.CE)("div",{class:(0,m.C4)(["vyr-sidebar",{fold:f.value.length<=1}])},[(0,o.Lk)("div",ee,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(f.value,(e,n)=>((0,o.uX)(),(0,o.CE)("div",{class:(0,m.C4)(["vyr-tab",{active:e.key===(0,s.R1)(t).sidebar.active}]),key:n,onClick:t=>h(e.key)},[(0,o.bF)((0,s.R1)(c.VyrPopover),{trigger:"hover",placement:"left"},{trigger:(0,o.k6)(()=>[(0,o.Lk)("i",{class:(0,m.C4)(["vyrfont",e.icon])},null,2)]),default:(0,o.k6)(()=>[(0,o.eW)(" "+(0,m.v_)(e.label),1)]),_:2},1024)],10,te))),128))]),(0,o.Lk)("div",ne,[((0,o.uX)(),(0,o.Wv)((0,o.$y)(v.value)))]),(0,o.bF)(Z)],2))}});const se=(0,M.A)(re,[["__scopeId","data-v-4518fbe2"]]);var oe=se;const ie={class:"vyr-inspector"},ae={class:"vyr-selector"},ue=["onClick"],ce={class:"vyr-dispaly"};var le=(0,o.pM)({__name:"Inspector",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("inspector"),i=(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-routine"}]),a=(0,o.EW)(()=>n.get(`inspector.${t.sidebar.active}`));return(e,n)=>((0,o.uX)(),(0,o.CE)("div",ie,[(0,o.Lk)("div",ae,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(i.value,(e,n)=>((0,o.uX)(),(0,o.CE)("div",{class:(0,m.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,o.Lk)("i",{class:(0,m.C4)(["vyrfont option-icon",e.icon])},null,2)],10,ue))),128))]),(0,o.Lk)("div",ce,[(0,o.bF)((0,s.R1)(c.VyrProvider),{row:{margin:"0,0,12",gutter:6},label:{width:85,align:"right"}},{default:(0,o.k6)(()=>[((0,o.uX)(),(0,o.Wv)((0,o.$y)(a.value)))]),_:1})])]))}});const de=(0,M.A)(le,[["__scopeId","data-v-1bc56366"]]);var pe=de,ge=(0,o.pM)({__name:"Manifest",props:{controller:{}},emits:["rightClick","doubleClick"],setup(e,{emit:t}){const n=u.runtime.get("data"),r=u.runtime.get("draggable"),i=u.runtime.get("asset"),a=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)=>{a("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)},v=(e,t)=>{a("doubleClick",e,t)},m=(e,t)=>{d.controller.renameAsset(e,t,i,n)},h=(e,t)=>{0===e.button&&c.DraggableController.start(t,r.get(r.key.footer),t.name,e)};return(e,t)=>((0,o.uX)(),(0,o.Wv)((0,s.R1)(c.VyrScroll),{padding:10},{default:(0,o.k6)(()=>[(0,o.bF)((0,s.R1)(l.VyrDirectory),{data:(0,s.R1)(n).footer.manifest,active:p,onRightClick:g,onMousedown:h,onClick:f,onChangeName:m,onDoubleClick:v},null,8,["data"])]),_:1}))}});const fe=ge;var ve=fe;const me={class:"footer-header"},he={class:"search"},ye={class:"footer-body"};var be=(0,o.pM)({__name:"Footer",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("shortcutkey"),i=u.runtime.get("rpc"),a=u.runtime.get("asset"),p=(0,o.rk)("refSearch"),g=(0,o.rk)("refScroll"),f=(0,o.rk)("refTree"),v={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()}},m=n.get("global"),h=m.get(l.global.action.FooterAction.id);h.setController(v);const y=n.get("footer"),b=y.get(l.footer.action.ControllerAction.id);b.setController(v);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;v.change([t]);const n=t.traceAncestor(!1);n.parent&&v.expand(n.parent,!0)},C=(e,n,r)=>{"add"===e?b.createAsset(n,r,a,t):b.renameAsset(n,r,a,t),w(),t.footer.status.modifyMode="close",t.footer.status.modifyValue=null,t.footer.status.modifySuffix="",t.footer.status.modifyContent=""},V=e=>{i.unlisten(d.Message.scene.initialize.Method,V),h.execute()};return i.listen(d.Message.asset.initialize.Method,V),(e,i)=>((0,o.uX)(),(0,o.CE)("div",{class:"vyr-footer",onMousedown:i[4]||(i[4]=e=>(0,s.R1)(n).active("footer"))},[(0,o.Lk)("div",me,[i[5]||(i[5]=(0,o.Lk)("div",{class:"tabs"},null,-1)),(0,o.Lk)("div",he,[(0,o.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":i[0]||(i[0]=e=>(0,s.R1)(t).footer.status.search=e),clearable:!0},null,8,["placeholder","modelValue"])])]),(0,o.Lk)("div",ye,[(0,o.bF)((0,s.R1)(c.VyrDynamicLayouter),{mode:"vertical","model-value":355},{default:(0,o.k6)(()=>[(0,o.Lk)("div",{class:"directory",onMousedown:i[1]||(i[1]=e=>(0,s.R1)(b).setRegion("directory"))},[(0,o.bF)((0,s.R1)(c.VyrScroll),{ref_key:"refScroll",ref:g,margin:6,padding:4},{default:(0,o.k6)(()=>{var e;return[(0,o.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,o.k6)(()=>[(0,o.Lk)("div",{class:"manifest",onMousedown:i[2]||(i[2]=e=>(0,s.R1)(b).setRegion("manifest")),onContextmenu:i[3]||(i[3]=e=>R(e))},[(0,o.bF)(ve,{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,o.pM)({__name:"Status",props:{size:{}},setup(e){return(t,n)=>((0,o.uX)(),(0,o.CE)("div",{class:"vyr-status",style:(0,m.Tr)(`height:${e.size}px;`)},[(0,o.Lk)("div",ke,[(0,o.Lk)("div",{class:(0,m.C4)(["status-value",{disabled:!1}])})])],4))}});const _e=(0,M.A)(Re,[["__scopeId","data-v-273c52c1"]]);var Ce=_e,Ve=(0,o.pM)({__name:"App",setup(e){(0,i.$9)(e=>({v5d928f00:(0,s.R1)(v.O3).headerHeight+(0,s.R1)(v.O3).statusHeight+"px"}));const t=u.runtime.get("data");return(e,n)=>((0,o.uX)(),(0,o.CE)("div",{class:"vyr-editor",onContextmenu:n[3]||(n[3]=(0,i.D$)(()=>{},["prevent","stop"]))},[(0,o.bF)(k),(0,o.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,o.k6)(()=>[(0,o.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,o.k6)(()=>[(0,o.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,o.k6)(()=>[(0,o.bF)(oe)]),sidebar:(0,o.k6)(()=>[(0,o.bF)(U)]),_:1},8,["modelValue"])]),sidebar:(0,o.k6)(()=>[(0,o.bF)(we)]),_:1},8,["modelValue"])]),sidebar:(0,o.k6)(()=>[(0,o.bF)(pe)]),_:1},8,["modelValue"]),(0,o.bF)(Ce,{size:(0,s.R1)(v.O3).statusHeight},null,8,["size"])],32))}});const Ae=Ve;var Le=Ae,Se=(e,t,n)=>new Promise((r,s)=>{var o=e=>{try{a(n.next(e))}catch(t){s(t)}},i=e=>{try{a(n.throw(e))}catch(t){s(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((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),m=(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,o.EW)(()=>y.updateVisibilityMapBySearch()),w=(0,o.EW)(()=>b.updateVisibilityMapBySearch());(0,o.wB)(()=>M.value,()=>y.visibilityMap=M.value,{immediate:!0}),(0,o.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",m,y.root,y);a.Asset.baseUrl=L.url,c.Loading.show=()=>V.disable(),c.Loading.close=()=>V.enable(),c.notify.setOffset(v.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 z=(0,i.Ef)(Le);z.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()})}}]);
|
package/build/js/931.88800e05.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[931],{1355:function(t,e,i){function s(t,e,i){return Math.max(e,Math.min(i,t))}i.d(e,{q:function(){return s}})},2181:function(t,e,i){i.d(e,{P:function(){return u}});var s=i(64006),n=i(38132),r=i(35085),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends n.o{constructor(t={}){var e,i,n,o,a,u,c,h,d,f,p,y,g,m,v,b,x,w,C,M,P,z,_;super(t),l(this,"visible"),l(this,"active"),l(this,"style"),l(this,"display"),l(this,"flexWrap"),l(this,"flexDirection"),l(this,"justifyContent"),l(this,"alignItems"),l(this,"alignContent"),l(this,"margin"),l(this,"flexGrow"),l(this,"width"),l(this,"wUnit"),l(this,"calcWidth"),l(this,"height"),l(this,"hUnit"),l(this,"calcHeight"),l(this,"position"),l(this,"location"),l(this,"xAxis"),l(this,"xUnit"),l(this,"yAxis"),l(this,"yUnit"),l(this,"translate"),l(this,"opacity"),l(this,"zIndex"),this.visible=null==(e=t.visible)||e,this.active=null!=(i=t.active)&&i,this.style=null!=(n=t.style)?n:"",this.display=null!=(o=t.display)?o:"block",this.flexWrap=null!=(a=t.flexWrap)?a:"nowrap",this.flexDirection=null!=(u=t.flexDirection)?u:"row",this.justifyContent=null!=(c=t.justifyContent)?c:"flex-start",this.alignItems=null!=(h=t.alignItems)?h:"stretch",this.alignContent=null!=(d=t.alignContent)?d:"stretch",this.flexGrow=null!=(f=t.flexGrow)?f:0,this.margin=new r.Dg(t.margin),this.width=null!=(p=t.width)?p:100,this.wUnit=null!=(y=t.wUnit)?y:"px",this.calcWidth=null!=(g=t.calcWidth)?g:0,this.calcHeight=null!=(m=t.calcHeight)?m:0,this.height=null!=(v=t.height)?v:100,this.hUnit=null!=(b=t.hUnit)?b:"px",this.position=null!=(x=t.position)?x:"static",this.location=s.I9.create(t.location),this.xAxis=null!=(w=t.xAxis)?w:"left",this.xUnit=null!=(C=t.xUnit)?C:"px",this.yAxis=null!=(M=t.yAxis)?M:"top",this.yUnit=null!=(P=t.yUnit)?P:"px",this.translate=s.I9.create(t.translate),this.opacity=null!=(z=t.opacity)?z:1,this.zIndex=null!=(_=t.zIndex)?_:"auto"}}l(u,"type","HTML")},2320:function(t,e,i){i.d(e,{g:function(){return d}});var s=i(64006),n=i(21865),r=i(42778),o=i(48583),a=i(69776),l=i(83912),u=Object.defineProperty,c=(t,e,i)=>e in t?u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,h=(t,e,i)=>c(t,"symbol"!==typeof e?e+"":e,i);class d extends l.A{constructor(t){super(),h(this,"play"),h(this,"startTime"),h(this,"duration"),h(this,"mode"),h(this,"path"),h(this,"keys"),h(this,"count"),h(this,"uptime"),h(this,"unlisten"),h(this,"target"),h(this,"rawValue"),h(this,"update",t=>{if(!1===r.DM.enabled)return;if(!1===this.play)return;const e=this.uptime+t.delta,i=(this.uptime-this.startTime)/this.duration;if(i>this.count)return void(this.uptime=e);const s=e-this.startTime;if(s<0)return void(this.uptime=e);const n=s/this.duration;let o;o=n>this.count?2===this.mode?this.count%2===1?1:0:1:this.getRadio(n%1,Math.floor(n)),this.setValue(o),this.uptime=e}),this.play=t.play,this.startTime=t.startTime,this.duration=t.duration,this.mode=t.mode,this.path=t.path,this.keys=o.B.parseKey(t.path),this.count=t.count,this.uptime=0}static parse(t){switch(t.frameData.type){case"number":return new f(t,t.frameData.startValue,t.frameData.endValue);case"vector2":return new y(t,new s.I9(...t.frameData.startValue),new s.I9(...t.frameData.endValue));case"vector3":return new m(t,new s.Pq(...t.frameData.startValue),new s.Pq(...t.frameData.endValue));case"euler":return new w(t,new s.O9(...t.frameData.startValue),new s.O9(...t.frameData.endValue));case"boolean":return new C(t,t.frameData.startValue,t.frameData.endValue);case"color":return new M(t,new a.Q1(t.frameData.startValue),new a.Q1(t.frameData.endValue))}}listen(t){t.engine.listen("afterRender",this.update),this.unlisten=()=>{t.engine.unlisten("afterRender",this.update),this.reset()}}setTarget(t){this.target=t;let e=t;for(const i of this.keys)if(e=e[i],void 0===e)return;this.rawValue=n.oJ.deepClone(e)}getRadio(t,e){return 2===this.mode&&(t=e%2===1?1-t:t),t}traverseWithTailCallback(t){let e=this.target;const i=this.keys.length-1;for(let s=0;s<=i;s++)if(s===i){const i=this.keys[s];if(void 0===e[i])return;t(e,i),this.target.setNeedsUpdate()}else if(e=e[this.keys[s]],!e)return}reset(t=0){this.uptime=0,this.traverseWithTailCallback((t,e)=>{t[e]=n.oJ.deepClone(this.rawValue)}),this.update({delta:t})}}class f extends d{constructor(t,e,i){super(t),h(this,"startValue"),h(this,"distance"),this.startValue=e,this.distance=i-e}setValue(t){const e=this.startValue+this.distance*t;this.traverseWithTailCallback((t,i)=>{t[i]=e})}}let p=null;class y extends d{constructor(t,e,i){super(t),h(this,"startValue"),h(this,"endValue"),this.startValue=e,this.endValue=i}static get vector(){return null===p&&(p=new s.I9),p}setValue(t){this.traverseWithTailCallback((e,i)=>{y.vector.lerpVectors(this.startValue,this.endValue,t),e[i].x=y.vector.x,e[i].y=y.vector.y})}}let g=null;class m extends d{static get vector(){return null===g&&(g=new s.Pq),g}constructor(t,e,i){super(t),this.startValue=e,this.endValue=i}setValue(t){this.traverseWithTailCallback((e,i)=>{m.vector.lerpVectors(this.startValue,this.endValue,t),e[i].x=m.vector.x,e[i].y=m.vector.y,e[i].z=m.vector.z})}}let v=null,b=null,x=null;class w extends d{static get euler(){return null===v&&(v=new s.O9),v}static get startQuat(){return null===b&&(b=new s.PT),b}static get endQuat(){return null===x&&(x=new s.PT),x}constructor(t,e,i){super(t),this.startValue=e,this.endValue=i}setValue(t){this.traverseWithTailCallback((e,i)=>{w.startQuat.setFromEuler(this.startValue),w.endQuat.setFromEuler(this.endValue),w.startQuat.slerp(w.endQuat,t),w.euler.setFromQuaternion(w.startQuat),e[i].x=w.euler.x,e[i].y=w.euler.y,e[i].y=w.euler.y,e[i].order=w.euler.order})}}class C extends d{constructor(t,e,i){super(t),this.startValue=e,this.endValue=i}setValue(t){switch(t){case 0:this.traverseWithTailCallback((t,e)=>{t[e]=this.startValue});break;case 1:this.traverseWithTailCallback((t,e)=>{t[e]=this.endValue});break}}}class M extends d{constructor(t,e,i){super(t),this.startValue=e,this.endValue=i}setValue(t){this.traverseWithTailCallback((e,i)=>{const s=a.Q1.mix(this.startValue,this.endValue,t);e[i]=s.toHexString()})}}},2538:function(t,e,i){i.r(e),i.d(e,{switch:function(){return s}});var s=i(23680)},3615:function(t,e,i){i.d(e,{Z:function(){return h}});var s=i(64006),n=i(10692),r=i(21865),o=i(83912),a=Object.defineProperty,l=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,u=(t,e,i)=>l(t,"symbol"!==typeof e?e+"":e,i);class c{constructor(){u(this,"isDragging",!1),u(this,"isResizing",!1),u(this,"offset",new s.I9),u(this,"resizeData",{direction:"",startWidth:0,startHeight:0,calcHeight:0,calcWidth:0,startX:0,startY:0}),u(this,"target",{element:document.createElement("div"),parent:null,initialRect:new DOMRect})}}class h extends o.A{constructor(){super(),u(this,"state",new c),u(this,"offset",new s.I9),u(this,"events",[]),u(this,"element"),u(this,"circles"),u(this,"target"),u(this,"descriptor"),u(this,"change",(t="change")=>{const e=n.Vd.get(this.descriptor.event);if(null===e)return;const i=o.A.getGraphics(this),s={delta:0,event:{type:t,target:this.descriptor.target}};e.execute(this.descriptor,i,s)}),u(this,"selectTargetElement",t=>{this.state.target.element=t,this.state.target.parent=t.parentElement,this.state.target.initialRect=t.getBoundingClientRect(),this.updateOffset(this.state.target.initialRect),this.updateDraggableElement(),this.element.style.display="block"}),u(this,"updateDraggableElement",()=>{if(!this.state.target.element)return;const t=this.state.target.element.getBoundingClientRect();this.element.style.left=`${t.left}px`,this.element.style.top=`${t.top}px`,this.element.style.width=`${t.width}px`,this.element.style.height=`${t.height}px`}),u(this,"syncTargetPosition",(t=!0)=>{if(!this.state.target.element)return;if(!this.state.target.parent)return;const e=this.element.getBoundingClientRect(),i=this.state.target.parent.getBoundingClientRect();t&&(this.setDimension("width",e.width-this.state.resizeData.calcWidth,i.width,this.target.wUnit),this.setDimension("height",e.height-this.state.resizeData.calcHeight,i.height,this.target.hUnit)),"fixed"===this.target.position?this.setFixedPosition(e):this.setRelativePosition(e,i),this.target.setNeedsUpdate()}),u(this,"setDimension",(t,e,i,s)=>{this.target[t]="%"===s?e/i*100:e}),u(this,"setFixedPosition",t=>{if("left"===this.target.xAxis){const e=t.left-this.offset.x;this.target.location.x="%"===this.target.xUnit?e/window.innerWidth*100:e}else{const e=window.innerWidth-t.right+this.offset.x;this.target.location.x="%"===this.target.xUnit?e/window.innerWidth*100:e}if("top"===this.target.yAxis){const e=t.top-this.offset.y;this.target.location.y="%"===this.target.yUnit?e/window.innerHeight*100:e}else{const e=window.innerHeight-t.bottom+this.offset.y;this.target.location.y="%"===this.target.yUnit?e/window.innerHeight*100:e}}),u(this,"setRelativePosition",(t,e)=>{if("left"===this.target.xAxis){const i=t.left-e.left-this.offset.x;this.target.location.x="%"===this.target.xUnit?i/e.width*100:i}else{const i=e.right-t.right+this.offset.x;this.target.location.x="%"===this.target.xUnit?i/e.width*100:i}if("top"===this.target.yAxis){const i=t.top-e.top-this.offset.y;this.target.location.y="%"===this.target.yUnit?i/e.height*100:i}else{const i=e.bottom-t.bottom+this.offset.y;this.target.location.y="%"===this.target.yUnit?i/e.height*100:i}}),u(this,"handleDragStart",t=>{if(!1!==this.descriptor.enabled&&this.state.target.element&&"static"!==this.target.position&&"relative"!==this.target.position&&t.target instanceof HTMLElement&&!1===t.target.classList.contains("resize-handle")){this.state.isDragging=!0;const e=this.element.getBoundingClientRect();this.state.offset=new s.I9(t.clientX-e.left,t.clientY-e.top),this.state.target.element.style.transition="none",t.preventDefault(),this.change("mousedown")}}),u(this,"handleResizeStart",t=>{if(!1!==this.descriptor.enabled&&this.state.target.element&&"static"!==this.target.position&&"relative"!==this.target.position&&t.target instanceof HTMLElement){this.state.isResizing=!0,this.state.resizeData.direction=t.target.classList[1];const e=this.element.getBoundingClientRect();this.state.resizeData.calcWidth=this.target.calcWidth,this.state.resizeData.calcHeight=this.target.calcHeight,this.state.resizeData.startWidth=e.width,this.state.resizeData.startHeight=e.height,this.state.resizeData.startX=e.left,this.state.resizeData.startY=e.top,this.state.offset=new s.I9(t.clientX,t.clientY),this.state.target.element.style.transition="none",t.preventDefault(),this.change("mousedown")}}),u(this,"handleMouseMove",t=>{this.state.target.element&&(this.state.isDragging?(this.element.style.left=t.clientX-this.state.offset.x+"px",this.element.style.top=t.clientY-this.state.offset.y+"px",this.syncTargetPosition(!1),this.change()):this.state.isResizing&&(this.handleResizing(t),this.change()))}),u(this,"handleResizing",t=>{const e=t.clientX-this.state.offset.x,i=t.clientY-this.state.offset.y,{direction:s,startWidth:n,startHeight:r,startX:o,startY:a}=this.state.resizeData;let l=n,u=r,c=o,h=a;switch(s){case"0":l=Math.max(20,n-e),u=Math.max(20,r-i),c=o+(n-l),h=a+(r-u);break;case"1":l=Math.max(20,n+e),u=Math.max(20,r-i),h=a+(r-u);break;case"3":l=Math.max(20,n-e),u=Math.max(20,r+i),c=o+(n-l);break;case"2":l=Math.max(20,n+e),u=Math.max(20,r+i);break}this.element.style.width=`${l}px`,this.element.style.height=`${u}px`,this.element.style.left=`${c}px`,this.element.style.top=`${h}px`,this.updateOffset(this.element.getBoundingClientRect()),this.syncTargetPosition()}),u(this,"handleMouseEnd",()=>{this.state.target.element&&(this.state.isDragging?this.state.isDragging=!1:this.state.isResizing&&(this.state.isResizing=!1),this.change("mouseup"))}),this.element=this.createElement(),this.circles=this.createCircle();for(const t of this.circles)this.element.appendChild(t);document.body.appendChild(this.element)}createElement(){const t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.zIndex="2147483647",t.style.userSelect="none",t.addEventListener("contextmenu",t=>{t.stopPropagation(),t.preventDefault(),this.change("contextmenu")});const e=document.createElement("div");return e.style.position="absolute",e.style.top="50%",e.style.left="50%",e.style.transform="translate(-50%,-50%)",e.style.width="100%",e.style.height="100%",e.style.border="6px double #1b8fdfcc",e.style.boxSizing="content-box",e.style.pointerEvents="none",t.appendChild(e),t}createCircle(){const t=[],e=[[0,0],[100,0],[100,100],[0,100]];for(let i=0;i<e.length;i++){const s=document.createElement("div");this.setCircleStyle(s,i,e[i]),t.push(s)}return t}setCircleStyle(t,e,i){t.classList.add("resize-handle",e.toString()),t.style.borderRadius="50%",t.style.width="12px",t.style.height="12px",t.style.position="absolute",t.style.left=i[0]+"%",t.style.top=i[1]+"%",t.style.transform="translate(-50%,-50%)",t.style.border="2px double #1b8fdfcc",t.style.background="#ffffff",t.style.boxShadow="0 0 4px #1b8fdfcc",t.style.zIndex="99999",t.style.cursor=[1,3].includes(e)?"nesw-resize":"nwse-resize"}listen(t,e){this.reset();const i=o.A.getGraphics(this),s=i.variableProxy.get(t.target,i,e);if(s instanceof r.Pp){const n=i.getActor(s,e);if(null===n)return;const r=n.getWrapper();if(null===r)return;this.descriptor=t,this.target=s,this.selectTargetElement(r),this.events.push(i.engine.inputSystem.listen("mousedown",this.handleDragStart,{target:this.element}));for(const t of this.circles)this.events.push(i.engine.inputSystem.listen("mousedown",this.handleResizeStart,{target:t}));this.events.push(i.engine.inputSystem.listen("mousemove",this.handleMouseMove,{target:document})),this.events.push(i.engine.inputSystem.listen("mouseup",this.handleMouseEnd,{target:document}))}}unlisten(){this.reset()}update(t,e){this.listen(t,e)}reset(){const t=o.A.getGraphics(this);for(const e of this.events)t.engine.inputSystem.unlisten(e);this.events.length=0,this.element.style.display="none",this.state.target.element=document.createElement("div"),this.state.target.parent=null,this.target=void 0}dispose(){this.reset(),this.element.remove()}updateOffset(t=this.state.target.initialRect){this.offset.set(t.width*(this.target.translate.x/100),t.height*(this.target.translate.y/100))}}},8061:function(t,e,i){i.d(e,{D:function(){return g}});var s=i(48583),n=i(10692),r=i(21865),o=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,d=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,f=(t,e)=>{for(var i in e||(e={}))c.call(e,i)&&d(t,i,e[i]);if(u)for(var i of u(e))h.call(e,i)&&d(t,i,e[i]);return t},p=(t,e)=>a(t,l(e)),y=(t,e,i)=>d(t,"symbol"!==typeof e?e+"":e,i);class g{constructor(){y(this,"proxyCollection",new Map),y(this,"variablesCollection",new Map),y(this,"createNestedProxy",(t,e,i="")=>new Proxy(t,{get:(t,s)=>{if("symbol"===typeof s)return Reflect.get(t,s);const n=i?`${i}.${s}`:s,r=this.variablesCollection.get(e);if(void 0!==r[n])return r[n];const o=Reflect.get(t,s);return null===o||"object"!==typeof o||Array.isArray(o)?o:this.createNestedProxy(o,e,n)}})),y(this,"getVariableValue",(t,e,i,r,o,a)=>{if("key"===r.type)return s.B.getValueByKey(e,r.value);if("custom"===r.type){const s=n.Vd.get(r.value);if(null===s)return;const l=p(f({},a),{key:i,config:r,data:e});return s.execute(t,o,l)}})}get(t,e,i){const s=r.oJ.get(t);if(null===s)return null;let n=this.proxyCollection.get(s),o=this.variablesCollection.get(s);if(void 0===o||o.version>0){o=Object.create(null),o.version=0;const t=r.Y2.getData(s.dataset);if(null!==t){const n=Object.keys(s.variables);for(const r of n){const n=s.variables[r];if(!1===n.enabled)continue;const a=this.getVariableValue(s,t,r,n,e,i);void 0!==a&&(o[r]=a)}}this.variablesCollection.set(s,o),n=this.createNestedProxy(s,s),this.proxyCollection.set(s,n)}else void 0===n&&(n=this.createNestedProxy(s,s),this.proxyCollection.set(s,n));return n}update(t){const e=this.variablesCollection.get(t);void 0!==e&&e.version++}}},9115:function(t,e,i){i.d(e,{O:function(){return u}});var s=i(21865),n=i(81789),r=i(27740),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends r.${createActor(t,e){const i=new n.ZQ;return i}update(t,e){super.update(t,e);const i=this.getActor(t,e);i.update(t,e)}mount(t,e,i,s){super.mount(t,e,i,s),this.getActor(t,e)}unmount(t,e,i,s){const n=this.getActor(t,e);n.unlisten(),super.unmount(t,e,i,s)}free(t,e){const i=this.getActor(t,e);i.dispose(),super.free(t,e)}}l(u,"type",s.xq.type),r.$.register(u)},10692:function(t,e,i){i.d(e,{FD:function(){return n.F},Vd:function(){return s.V},jB:function(){return n.j},nP:function(){return s.n}});var s=i(72968),n=i(90154)},13507:function(t,e,i){i.d(e,{r:function(){return o}});var s=Object.defineProperty,n=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>n(t,"symbol"!==typeof e?e+"":e,i);class o{constructor(){r(this,"registrys",{})}listen(t,e,i={}){var s;let n=this.registrys[t];void 0===n&&(n=[],this.registrys[t]=n);const r=void 0===i.insertIndex?n.length:i.insertIndex,o=n.find(t=>t.callback===e);o||n.splice(r,0,{once:null!=(s=i.once)&&s,callback:e});const a=()=>this.unlisten(t,e);return a}unlisten(t,e){let i=this.registrys[t];if(void 0!==i)for(let s=0;s<i.length;s++)if(i[s].callback===e)return i.splice(s,1),void(0===i.length&&delete this.registrys[t])}trigger(t,...e){let i=this.registrys[t];if(void 0!==i&&0!==i.length){i=[...this.registrys[t]];for(let s=0;s<i.length;s++)i[s].callback(...e),!0===i[s].once&&this.unlisten(t,i[s].callback)}}}},13591:function(t,e,i){i.d(e,{b:function(){return a}});var s=Object.defineProperty,n=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>n(t,"symbol"!==typeof e?e+"":e,i);const o=class t{static getCategory(t){return t===this.tsSuffix?this.ts:t===this.prefabSuffix?this.prefab:t===this.datasetSuffix?this.dataset:t===this.styleSuffix?this.style:t===this.fontSuffix?this.font:t===this.routineSuffix?this.routine:t===this.textureSuffix?this.texture:t===this.materialSuffix?this.material:t===this.geometrySuffix?this.geometry:t===this.sceneSuffix?this.scene:this.jsonSuffixs.includes(t)?this.json:this.imageSuffixs.includes(t)?this.image:this.audioSuffixs.includes(t)?this.audio:this.videoSuffixs.includes(t)?this.video:this.modelSuffixs.includes(t)?this.model:this.other}static parseName(t){var e;const i={name:"",suffix:"",category:"other"};if(void 0===t||""===t)return i;const s=t.split(".");i.name=null!=(e=s[0])?e:"";for(let n=1;n<s.length;n++)i.suffix+=`.${s[n]}`;return i.category=this.getCategory(i.suffix),i}static isDescriptor(e,i="suffix"){const s="suffix"===i?t.descriptorSuffixs:t.descriptorCategorys;return s.includes(e)}};r(o,"ts","ts"),r(o,"prefab","prefab"),r(o,"dataset","dataset"),r(o,"style","style"),r(o,"font","font"),r(o,"routine","routine"),r(o,"texture","texture"),r(o,"material","material"),r(o,"geometry","geometry"),r(o,"scene","scene"),r(o,"json","json"),r(o,"image","image"),r(o,"audio","audio"),r(o,"video","video"),r(o,"model","model"),r(o,"other","other"),r(o,"tsSuffix",`.${o.ts}`),r(o,"prefabSuffix",`.${o.prefab}.json`),r(o,"datasetSuffix",`.${o.dataset}.json`),r(o,"styleSuffix",`.${o.style}.json`),r(o,"fontSuffix",`.${o.font}.json`),r(o,"routineSuffix",`.${o.routine}.json`),r(o,"textureSuffix",`.${o.texture}.json`),r(o,"materialSuffix",`.${o.material}.json`),r(o,"geometrySuffix",`.${o.geometry}.json`),r(o,"sceneSuffix",`.${o.scene}.json`),r(o,"manifestSuffix",".manifest.json"),r(o,"jsonSuffixs",[".json"]),r(o,"imageSuffixs",[".png",".jpg",".jpeg",".bmp",".gif"]),r(o,"audioSuffixs",[".mp3",".wav",".wmv"]),r(o,"videoSuffixs",[".mp4",".m2v",".mkv",".rmvb",".wmv",".avi",".flv",".mov",".m4v"]),r(o,"modelSuffixs",[".glb",".gltf"]),r(o,"descriptorSuffixs",[o.prefabSuffix,o.datasetSuffix,o.styleSuffix,o.routineSuffix,o.textureSuffix,o.materialSuffix,o.geometrySuffix,o.sceneSuffix]),r(o,"descriptorCategorys",[o.prefab,o.dataset,o.style,o.routine,o.texture,o.material,o.geometry,o.scene]);let a=o},16033:function(t,e,i){i.d(e,{R:function(){return a}});var s=i(21865),n=i(42778),r=i(81789);let o=!1;const a=()=>{if(!0===o)return;o=!0;const t=new r.XI;t.update(s.Jf.basicStyle,s.Jf.basicName);const e=t.getStyleValue();n.KQ.insertRule(e)}},17227:function(t,e,i){i.d(e,{B:function(){return s}});class s{static pre(t,e,i=null){const s=[{parent:i,des:t}];while(s.length>0){const t=s.pop();e(t.des,t.parent);for(let e=t.des.children.length-1;e>=0;e--)s.push({parent:t.des,des:t.des.children[e]})}}static preTerminated(t,e,i=null){const s=[{parent:i,des:t}];while(s.length>0){const t=s.pop();if(!0!==e(t.des,t.parent))for(let e=t.des.children.length-1;e>=0;e--)s.push({parent:t.des,des:t.des.children[e]})}}}},17244:function(t,e,i){i.d(e,{e:function(){return a}});var s=Object.defineProperty,n=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>n(t,"symbol"!==typeof e?e+"":e,i),o=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});class a{constructor(t){r(this,"uuid"),this.uuid=t}get url(){return this.uuid}ready(){return o(this,null,function*(){})}execute(t,e,i){}}},18419:function(t,e,i){i.d(e,{_:function(){return l}});var s=i(21865),n=i(27740),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.${clear(t,e){}beforeRender(t,e){}render(t,e){}afterRender(t,e){}beforePickup(t,e,i){}orderBy(t){}}a(l,"type",s.RE.type),n.$.register(l)},21627:function(t,e,i){i.d(e,{z:function(){return o}});const s=[{parse:1/0,stringify:"__vyr_infinity+__"},{parse:-1/0,stringify:"__vyr_infinity-__"}],n=(t,e)=>{for(const i of s)if(i.parse===e)return i.stringify;return e},r=(t,e)=>{for(const i of s)if(i.stringify===e)return i.parse;return e};class o{static stringify(t){return JSON.stringify(t,n)}static parse(t){return JSON.parse(t,r)}static deepClone(t){return this.parse(this.stringify(t))}}},21865:function(t,e,i){i.d(e,{CH:function(){return r.CH},Dg:function(){return r.Dg},Jf:function(){return r.Jf},K4:function(){return b.K},KM:function(){return d.K},Pp:function(){return c.P},RE:function(){return m.R},SS:function(){return y.S},Ts:function(){return u.T},Vp:function(){return f.V},X7:function(){return l.X},Y2:function(){return n.Y},YM:function(){return a.Y},Zl:function(){return o.Z},aq:function(){return r.aq},fX:function(){return h.f},oJ:function(){return s.o},q5:function(){return v.q},uj:function(){return p.u},xq:function(){return g.x}});var s=i(38132),n=i(29124),r=i(35085),o=i(70858),a=i(89508),l=i(89237),u=i(85337),c=i(2181),h=i(86487),d=i(32432),f=i(89219),p=i(29364),y=i(76644),g=i(76299),m=i(66119),v=i(63072),b=i(49436)},23083:function(t,e,i){i.d(e,{K:function(){return n},N:function(){return s}});var s=i(94499),n=i(83880)},23680:function(t,e,i){i.r(e),i.d(e,{nodes:function(){return l},url:function(){return a}});var s=i(10692),n=i(21865),r=i(94499),o=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=s.Vd.createVirtualUrl("preset/scheduler/switch.routine.json"),l={switch:"switch"};let u=null;const c=()=>o(null,null,function*(){if(null===u){u=new n.YM;const t=r.scheduler["switch"].createExecuteNode({id:l.switch});u.nodes.push(t),u.roots.push(t.id)}return u});s.Vd.provider(a,c)},24566:function(t,e,i){i.d(e,{T:function(){return l}});var s=i(21865),n=i(25716),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.F{}a(l,"type",s.Zl.type),n.F.register(l)},25716:function(t,e,i){i.d(e,{F:function(){return u}});var s=i(81789),n=i(21865),r=i(27740),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends r.${createActor(t,e){return new s.aj}mount(t,e,i,s){super.mount(t,e,i,s);const n=this.getActor(t,e);n.bind(s.uuid)}unmount(t,e,i,s){super.unmount(t,e,i,s)}free(t,e){const i=this.getActor(t,e);i.unbind(),super.free(t,e)}}l(u,"type",n.oJ.type),r.$.register(u)},25946:function(t,e,i){i.d(e,{U:function(){return d}});var s=Object.defineProperty,n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e)=>{for(var i in e||(e={}))r.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))o.call(e,i)&&a(t,i,e[i]);return t},u=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);const c={id:1,listener:{default:(t,e)=>i=>{t.event=i,t.enable||(t.enable=!0,e.quaua.push(t))},once:(t,e)=>{const i=c.listener.default(t,e);return s=>{i(s),e.unlisten(t.id)}}}};class h{constructor(t,e,i,s){u(this,"id",c.id++),u(this,"type"),u(this,"target"),u(this,"callback"),u(this,"listener"),u(this,"enable",!1),u(this,"event"),this.type=t,this.target=s.target,this.callback=e,this.listener=s.once?c.listener.once(this,i):c.listener.default(this,i)}execute(){this.callback(this.event),this.enable=!1}}class d{constructor(t){u(this,"_target"),u(this,"_registry",[]),u(this,"quaua",[]),this._target=t}listen(t,e,i={}){if(!0===window["__VYR_RUNTIME.DISABLED_INPUT"])return;const s=l({once:!1,target:this._target,passive:!1,capture:!1},i);for(const r of this._registry)if(r.type===t&&r.callback===e&&i.target===r.target)return r.id;const n=new h(t,e,this,s);return this._registry.push(n),n.target.addEventListener(t,n.listener,s.capture),n.id}unlisten(t){for(let e=0;e<this._registry.length;e++){const i=this._registry[e];if(i.id===t)return this._registry.splice(e,1),void i.target.removeEventListener(i.type,i.listener)}}process(){const t=[...this.quaua];for(const e of t)e.execute();this.quaua.length=0}}},27740:function(t,e,i){i.d(e,{$:function(){return u},n:function(){return l}});var s=i(64898),n=i(81789),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);const l={factory:!1,classCollection:new Map,actorCollection:new Map};class u{constructor(t,e){if(a(this,"unit"),a(this,"graphics"),!1===l.factory)throw s.B.get("interpreter.new.fail");this.unit=t,this.graphics=e}static register(t){l.classCollection.set(t.type,t)}static getClass(t){var e;return null!=(e=l.classCollection.get(t))?e:null}createActor(t,e){return new n.Ag}getActor(t,e){let i=l.actorCollection.get(this);return void 0!==i||(i=this.createActor(t,e),n.Ag.seGraphics(i,this.graphics),l.actorCollection.set(this,i)),i}update(t,e){}mount(t,e,i,s){}unmount(t,e,i,s){}free(t,e){const i=l.actorCollection.get(this);void 0!==i&&(n.Ag.seGraphics(i,this.graphics),l.actorCollection.delete(this))}pickup(t,e,i){}}a(u,"type","Interpreter")},27761:function(t,e,i){i.r(e),i.d(e,{switch:function(){return s}});var s=i(91521)},29124:function(t,e,i){i.d(e,{Y:function(){return y}});var s=i(10692),n=i(79351),r=i(38132),o=Object.defineProperty,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,h=(t,e)=>{var i={};for(var s in t)l.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&a)for(var s of a(t))e.indexOf(s)<0&&u.call(t,s)&&(i[s]=t[s]);return i},d=(t,e,i)=>c(t,"symbol"!==typeof e?e+"":e,i),f=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const p=class t extends r.o{constructor(t={}){var e,i;super(t),d(this,"_extraData",{}),d(this,"_data"),d(this,"defaultData"),d(this,"url"),d(this,"auto"),this.defaultData=void 0===t.defaultData?{}:r.o.deepClone(t.defaultData),this.url=null!=(e=t.url)?e:"",this.auto=null==(i=t.auto)||i,this._updateData(this.defaultData)}static getData(e){const i=s.Vd.get(e);return i instanceof t?i.getData():null}static getCollection(t){const e=this.getData(t);return e?Array.isArray(e)?e:[e]:[]}fetch(){return f(this,null,function*(){if(this.url)try{const t=yield s.Vd.fetch(s.Vd.joinUrl(this.url)),e=yield t.json();Object.hasOwn(e,"data")?null!==e.data&&"object"===typeof e.data&&this.setData(e.data):this.setData(e)}catch(t){console.warn(t)}})}_updateData(t){this._data=t}getData(){var t;return null!=(t=this._data)?t:null}setData(t){this._updateData(t),n.P.trigger("updateDeps",{self:this.uuid})}setExtraData(t){this._extraData=t}getExtraData(){return this._extraData}toJSON(){const t=this,{_data:e,_extraData:i}=t,s=h(t,["_data","_extraData"]);return s}};d(p,"type","Dataset");let y=p;r.o.register(y)},29364:function(t,e,i){i.d(e,{u:function(){return a}});var s=i(38132),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.o{constructor(t={}){var e,i,n,r,a,l;super(t),o(this,"play"),o(this,"duration"),o(this,"count"),o(this,"mode"),o(this,"startTime"),o(this,"path"),o(this,"frameData"),this.play=null!=(e=t.play)&&e,this.duration=null!=(i=t.duration)?i:0,this.count=null!=(n=t.count)?n:1/0,this.mode=null!=(r=t.mode)?r:1,this.startTime=null!=(a=t.startTime)?a:0,this.path=null!=(l=t.path)?l:"",this.frameData=t.frameData?s.o.deepClone(t.frameData):{type:"vector2",startValue:[],endValue:[]}}}o(a,"type","AnimationUnit"),s.o.register(a)},31622:function(t,e,i){i.r(e),i.d(e,{RequestType:function(){return g},createExecuteInput:function(){return b},createExecuteNode:function(){return x},scriptable:function(){return m}});var s=i(64898),n=i(10692),r=i(17244),o=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,d=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,f=(t,e)=>{for(var i in e||(e={}))c.call(e,i)&&d(t,i,e[i]);if(u)for(var i of u(e))h.call(e,i)&&d(t,i,e[i]);return t},p=(t,e)=>a(t,l(e)),y=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())}),g=(t=>(t["GET"]="GET",t["POST"]="POST",t["PUT"]="PUT",t["DELETE"]="DELETE",t))(g||{});const m=n.Vd.createVirtualUrl("preset/net/request.ts");class v extends r.e{joinUrl(t,e){const i=new URL(t);return Object.entries(e).forEach(([t,e])=>{null!==e&&void 0!==e&&i.searchParams.set(t,String(e))}),i.toString()}execute(t,e,i){return y(this,null,function*(){var t,e,s,n,r,o;const{input:a,result:l}=i;let u=null!=(e=null==(t=null==a?void 0:a.user)?void 0:t.url.value)?e:a.default.url.value;const c=null!=(n=null==(s=null==a?void 0:a.user)?void 0:s.type.value)?n:a.default.type.value,h=null!=(o=null==(r=null==a?void 0:a.user)?void 0:r.data.value)?o:a.default.data.value,d={},y=[];0===h.trim().length?y.push(...l.keys()):y.push(...h.split(","));for(const i of y){const t=l.get(i);Object.assign(d,null!=t?t:{})}u=u.replace(/\${(\w+)}/g,(t,e)=>d.hasOwnProperty(e)?d[e]:t);const g={method:c,headers:{"Content-Type":"application/json"}};let m;m="GET"===c?yield fetch(this.joinUrl(u,d),g):yield fetch(u,p(f({},g),{body:JSON.stringify(d)}));const v=yield m.json();return v})}}n.Vd.provider(m,()=>y(null,null,function*(){return{default:v}}));const b=(t={})=>{var e,i,s;const n={url:{value:null!=(e=t.url)?e:""},type:{value:null!=(i=t.type)?i:""},data:{value:null!=(s=t.data)?s:""}};return n},x=t=>{var e,i,n,r;const o={id:t.id,label:s.B.get(m),position:{x:null!=(i=null==(e=null==t?void 0:t.position)?void 0:e.x)?i:20,y:null!=(r=null==(n=null==t?void 0:t.position)?void 0:n.y)?r:20},routine:"Execute",url:m,input:b(t.input)};return o}},32432:function(t,e,i){i.d(e,{K:function(){return l}});var s=i(64006),n=i(38132),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.o{constructor(t={}){var e,i,n,r,o;super(t),a(this,"scale"),a(this,"position"),a(this,"rotation"),a(this,"layer",0),a(this,"visible",!0),a(this,"renderOrder",0),a(this,"castShadow",!1),a(this,"receiveShadow",!1),this.scale=t.scale?s.Pq.create(t.scale):s.Pq.create(1,1,1),this.position=s.Pq.create(t.position),this.rotation=s.O9.create(t.rotation),this.layer=null!=(e=t.layer)?e:0,this.visible=null==(i=t.visible)||i,this.renderOrder=null!=(n=t.renderOrder)?n:0,this.castShadow=null!=(r=t.castShadow)&&r,this.receiveShadow=null!=(o=t.receiveShadow)&&o}}a(l,"type","Node"),n.o.register(l)},32952:function(t,e,i){i.d(e,{P:function(){return a}});var s=i(1355),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a{constructor(t=0,e=0,i=0,s=1){o(this,"x"),o(this,"y"),o(this,"z"),o(this,"w"),this.x=t,this.y=e,this.z=i,this.w=s}static slerpFlat(t,e,i,s,n,r,o){let a=i[s+0],l=i[s+1],u=i[s+2],c=i[s+3];const h=n[r+0],d=n[r+1],f=n[r+2],p=n[r+3];if(0===o)return t[e+0]=a,t[e+1]=l,t[e+2]=u,void(t[e+3]=c);if(1===o)return t[e+0]=h,t[e+1]=d,t[e+2]=f,void(t[e+3]=p);if(c!==p||a!==h||l!==d||u!==f){let t=1-o;const e=a*h+l*d+u*f+c*p,i=e>=0?1:-1,s=1-e*e;if(s>Number.EPSILON){const n=Math.sqrt(s),r=Math.atan2(n,e*i);t=Math.sin(t*r)/n,o=Math.sin(o*r)/n}const n=o*i;if(a=a*t+h*n,l=l*t+d*n,u=u*t+f*n,c=c*t+p*n,t===1-o){const t=1/Math.sqrt(a*a+l*l+u*u+c*c);a*=t,l*=t,u*=t,c*=t}}t[e]=a,t[e+1]=l,t[e+2]=u,t[e+3]=c}static multiplyQuaternionsFlat(t,e,i,s,n,r){const o=i[s],a=i[s+1],l=i[s+2],u=i[s+3],c=n[r],h=n[r+1],d=n[r+2],f=n[r+3];return t[e]=o*f+u*c+a*d-l*h,t[e+1]=a*f+u*h+l*c-o*d,t[e+2]=l*f+u*d+o*h-a*c,t[e+3]=u*f-o*c-a*h-l*d,t}set(t,e,i,s){return this.x=t,this.y=e,this.z=i,this.w=s,this}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this}setFromEuler(t){const e=t.x,i=t.y,s=t.z,n=t.order,r=Math.cos,o=Math.sin,a=r(e/2),l=r(i/2),u=r(s/2),c=o(e/2),h=o(i/2),d=o(s/2);switch(n){case"XYZ":this.x=c*l*u+a*h*d,this.y=a*h*u-c*l*d,this.z=a*l*d+c*h*u,this.w=a*l*u-c*h*d;break;case"YXZ":this.x=c*l*u+a*h*d,this.y=a*h*u-c*l*d,this.z=a*l*d-c*h*u,this.w=a*l*u+c*h*d;break;case"ZXY":this.x=c*l*u-a*h*d,this.y=a*h*u+c*l*d,this.z=a*l*d+c*h*u,this.w=a*l*u-c*h*d;break;case"ZYX":this.x=c*l*u-a*h*d,this.y=a*h*u+c*l*d,this.z=a*l*d-c*h*u,this.w=a*l*u+c*h*d;break;case"YZX":this.x=c*l*u+a*h*d,this.y=a*h*u+c*l*d,this.z=a*l*d-c*h*u,this.w=a*l*u-c*h*d;break;case"XZY":this.x=c*l*u-a*h*d,this.y=a*h*u-c*l*d,this.z=a*l*d+c*h*u,this.w=a*l*u+c*h*d;break;default:console.warn("Quaternion: .setFromEuler() encountered an unknown order: "+n)}return this}setFromAxisAngle(t,e){const i=e/2,s=Math.sin(i);return this.x=t.x*s,this.y=t.y*s,this.z=t.z*s,this.w=Math.cos(i),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],s=e[4],n=e[8],r=e[1],o=e[5],a=e[9],l=e[2],u=e[6],c=e[10],h=i+o+c;if(h>0){const t=.5/Math.sqrt(h+1);this.w=.25/t,this.x=(u-a)*t,this.y=(n-l)*t,this.z=(r-s)*t}else if(i>o&&i>c){const t=2*Math.sqrt(1+i-o-c);this.w=(u-a)/t,this.x=.25*t,this.y=(s+r)/t,this.z=(n+l)/t}else if(o>c){const t=2*Math.sqrt(1+o-i-c);this.w=(n-l)/t,this.x=(s+r)/t,this.y=.25*t,this.z=(a+u)/t}else{const t=2*Math.sqrt(1+c-i-o);this.w=(r-s)/t,this.x=(n+l)/t,this.y=(a+u)/t,this.z=.25*t}return this}setFromUnitVectors(t,e){let i=t.dot(e)+1;return i<Number.EPSILON?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this.x=-t.y,this.y=t.x,this.z=0,this.w=i):(this.x=0,this.y=-t.z,this.z=t.y,this.w=i)):(this.x=t.y*e.z-t.z*e.y,this.y=t.z*e.x-t.x*e.z,this.z=t.x*e.y-t.y*e.x,this.w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs((0,s.q)(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(0===i)return this;const s=Math.min(1,e/i);return this.slerp(t,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this.x*=-1,this.y*=-1,this.z*=-1,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}normalize(){let t=this.length();return 0===t?(this.x=0,this.y=0,this.z=0,this.w=1):(t=1/t,this.x=this.x*t,this.y=this.y*t,this.z=this.z*t,this.w=this.w*t),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const i=t.x,s=t.y,n=t.z,r=t.w,o=e.x,a=e.y,l=e.z,u=e.w;return this.x=i*u+r*o+s*l-n*a,this.y=s*u+r*a+n*o-i*l,this.z=n*u+r*l+i*a-s*o,this.w=r*u-i*o-s*a-n*l,this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const i=this.x,s=this.y,n=this.z,r=this.w;let o=r*t.w+i*t.x+s*t.y+n*t.z;if(o<0?(this.w=-t.w,this.x=-t.x,this.y=-t.y,this.z=-t.z,o=-o):this.copy(t),o>=1)return this.w=r,this.x=i,this.y=s,this.z=n,this;const a=1-o*o;if(a<=Number.EPSILON){const t=1-e;return this.w=t*r+e*this.w,this.x=t*i+e*this.x,this.y=t*s+e*this.y,this.z=t*n+e*this.z,this.normalize(),this}const l=Math.sqrt(a),u=Math.atan2(l,o),c=Math.sin((1-e)*u)/l,h=Math.sin(e*u)/l;return this.w=r*c+this.w*h,this.x=i*c+this.x*h,this.y=s*c+this.y*h,this.z=n*c+this.z*h,this}slerpQuaternions(t,e,i){return this.copy(t).slerp(e,i)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),i=Math.random(),s=Math.sqrt(1-i),n=Math.sqrt(i);return this.set(s*Math.sin(t),s*Math.cos(t),n*Math.sin(e),n*Math.cos(e))}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}toJSON(){return this.toArray()}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}},35085:function(t,e,i){i.d(e,{CH:function(){return l},Dg:function(){return u},Jf:function(){return f},aq:function(){return c}});var s=i(69776),n=i(38132),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l{constructor(t={}){var e,i,n,r,o,l;a(this,"type"),a(this,"color"),a(this,"inset"),a(this,"offsetX"),a(this,"offsetY"),a(this,"blur"),a(this,"spread"),this.type=null!=(e=t.type)?e:0,this.color=new s.E8(t.color),this.inset=null!=(i=t.inset)&&i,this.offsetX=null!=(n=t.offsetX)?n:0,this.offsetY=null!=(r=t.offsetY)?r:0,this.blur=null!=(o=t.blur)?o:0,this.spread=null!=(l=t.spread)?l:0}getStyleValue(t="px"){if(0===this.type){const e=this.inset?"inset":"";return`${e} ${this.offsetX}${t} ${this.offsetY}${t} ${this.blur}${t} ${this.spread}${t} ${this.color.getColor()}`}return` ${this.offsetX}${t} ${this.offsetY}${t} ${this.spread}${t} ${this.color.getColor()}`}}class u{constructor(t={}){var e,i,s,n;a(this,"left"),a(this,"top"),a(this,"right"),a(this,"bottom"),this.left=null!=(e=t.left)?e:0,this.top=null!=(i=t.top)?i:0,this.right=null!=(s=t.right)?s:0,this.bottom=null!=(n=t.bottom)?n:0}getStyleValue(t="px"){return`${this.top}${t} ${this.right}${t} ${this.bottom}${t} ${this.left}${t}`}}class c{constructor(t,e,i=!1,s=""){a(this,"name"),a(this,"value"),a(this,"inherit"),a(this,"unit"),this.name=t,this.value=e,this.inherit=i,this.unit=s}static clone(t){let e;return e=["box-shadow","text-shadow"].includes(t.name)?new l(t.value):["background","border-color","color"].includes(t.name)?s.Ru.create(t.value):["border-width","padding","margin"].includes(t.name)?new u(t.value):t.value,new c(t.name,e,t.inherit,t.unit)}getValue(){return this.value instanceof s.Ru?this.value.getColor():this.value instanceof l||this.value instanceof u?this.value.getStyleValue(this.unit):"transition"===this.name?`all ${this.value}s`:this.value+this.unit}}let h=null;const d=class t extends n.o{constructor(e={}){var i;if(super(e),a(this,"inherit"),a(this,"rules"),a(this,"hoverRules"),a(this,"activeRules"),this.inherit=null!=(i=e.inherit)?i:"",Array.isArray(e.rules)){this.rules=[];for(const t of e.rules)this.addRule(c.clone(t),this.rules)}else this.rules=t.generateRule(!0);if(Array.isArray(e.hoverRules)){this.hoverRules=[];for(const t of e.hoverRules)this.addRule(c.clone(t),this.hoverRules)}else this.hoverRules=t.generateRule(!0);if(Array.isArray(e.activeRules)){this.activeRules=[];for(const t of e.activeRules)this.addRule(c.clone(t),this.activeRules)}else this.activeRules=t.generateRule(!0)}static get basicStyle(){if(null===h){h=new t({name:"basic",rules:[]});const e=t.generateRule(!1);for(const t of e)h.addRule(t)}return h}addRule(t,e=this.rules){for(const i of e)if(t.name===i.name)return;e.push(t)}removeRule(t,e=this.rules){for(let i=0;i<e.length;i++){const s=this.rules[i];if(t.name===s.name)return void e.splice(i,1)}}clearRule(t=this.rules){t.length=0}};a(d,"type","Style"),a(d,"basicName","vyr_basic_style"),a(d,"activeName","vyr_active_style"),a(d,"generateRule",(t=!0)=>{const e=[];return e.push(new c("cursor","default",t)),e.push(new c("padding",new u,t,"px")),e.push(new c("box-sizing","border-box",t)),e.push(new c("overflow-x","visible",t)),e.push(new c("overflow-y","visible",t)),e.push(new c("vertical-align","baseline",t)),e.push(new c("transition",.5,t)),e.push(new c("background",new s.E8({opacity:0}),t)),e.push(new c("background-blend-mode","normal",t)),e.push(new c("background-clip","border-box",t)),e.push(new c("box-shadow",new l({type:0}),t,"px")),e.push(new c("text-shadow",new l({type:1}),t,"px")),e.push(new c("border-style","solid",t)),e.push(new c("border-color",new s.E8,t)),e.push(new c("border-width",new u,t,"px")),e.push(new c("color",new s.E8({value:"#000000"}),t)),e.push(new c("font-size",16,t,"px")),e.push(new c("text-align","left",t)),e.push(new c("font-weight","normal",t)),e.push(new c("line-height",1.2,t)),e.push(new c("font-style","normal",t)),e.push(new c("text-decoration","none",t)),e.push(new c("letter-spacing",0,t,"px")),e.push(new c("white-space","normal",t)),e.push(new c("font-family","unset",t)),e});let f=d;n.o.register(f)},35265:function(t,e,i){i(67824)},35793:function(t,e,i){i.r(e),i.d(e,{invoke:function(){return s}});var s=i(47813)},38132:function(t,e,i){i.d(e,{o:function(){return z}});var s=i(64898),n=i(97338),r=i(14291),o=i(48393),a=i(47552),l=i(17227),u=i(48583),c=i(21627),h=i(79351),d=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(t,e,i)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,b=(t,e)=>{for(var i in e||(e={}))g.call(e,i)&&v(t,i,e[i]);if(y)for(var i of y(e))m.call(e,i)&&v(t,i,e[i]);return t},x=(t,e)=>f(t,p(e)),w=(t,e,i)=>v(t,"symbol"!==typeof e?e+"":e,i);const C=t=>"editor"===window["__VYR_RUNTIME_MODE"]?(0,r.Kh)(t):t,M={classCollection:new Map,prefabToInstanceCollection:new Map,instanceToPrefabCollection:new Map,refGraph:new Map,getParent:t=>{const e=M.refGraph.get(t);return void 0===e?null:z.get(e)},setPrefabInstance(t){if(!1===t.prefab)return;let e=this.prefabToInstanceCollection.get(t.prefab.uuid);void 0===e&&(e=[],this.prefabToInstanceCollection.set(t.prefab.uuid,e)),o.l.insert(e,t.uuid),this.instanceToPrefabCollection.set(t.uuid,t.prefab.uuid)},markclone:(t,e,i,s)=>{const n=t.clone(!1);i.set(t.uuid,n),n.interactions.length>0&&s.push(n),!1===n.prefab&&(n.prefab={root:e,uuid:t.uuid});for(const r of t.children){const t=M.markclone(r,e,i,s);n.add(t)}return n}},P=class t extends n.iy{constructor(e={}){var i,s,n;if(super(e.uuid),w(this,"type"),w(this,"children"),w(this,"generatedBy",""),w(this,"name"),w(this,"dataset"),w(this,"variables"),w(this,"interactions"),w(this,"selectable"),w(this,"prefab"),this.type=this.constructor.type,this.name=null!=(i=e.name)?i:"",this.dataset=null!=(s=e.dataset)?s:"",this.variables=e.variables?t.deepClone(e.variables):{},this.interactions=e.interactions?t.deepClone(e.interactions):[],this.selectable=null==(n=e.selectable)||n,this.prefab=!!e.prefab&&t.deepClone(e.prefab),this.children=[],M.setPrefabInstance(this),Array.isArray(e.children)&&e.children.length>0)for(const r of e.children)C(this).add(t.create(r));return C(this)}static register(t){M.classCollection.set(t.type,t)}static getClass(t){var e;return null!=(e=M.classCollection.get(t))?e:null}static create(e){var i;const n=this.getClass(null!=(i=e.type)?i:t.type);if(null===n)throw s.B.get("descriptor.notRegister",{type:e.type});return new n(e)}static serialization(t){return c.z.stringify(t)}static deserialization(t){return c.z.parse(t)}static deepClone(t){return c.z.deepClone(t)}static fixReferences(t,e){for(const i of t)for(const t of i.interactions){const i=Object.keys(t.inputs);for(const s of i){const i=t.inputs[s],n=Object.keys(i);for(const t of n){const s=i[t],n=e.get(s.value);void 0!==n&&(s.value=n.uuid)}}}}static cloneAndFixReferences(t){const e=new Map,i=[],s=M.markclone(t,t.uuid,e,i);return this.fixReferences(i,e),s}static getPrefab(t){var e;return null!=(e=M.instanceToPrefabCollection.get(t))?e:null}static getInstanceCollection(t){var e;return null!=(e=M.prefabToInstanceCollection.get(t))?e:null}beenInstantiated(t){C(t).clear()}add(...t){for(const e of t){if(this.children.indexOf(e)>-1)continue;const t=e.traceAncestor(!1);null!==t.parent&&t.parent.remove(e),this.children.push(e),M.refGraph.set(e.uuid,this.uuid),h.P.trigger("add",{self:e.uuid,puid:this.uuid})}}remove(...t){for(const e of t)for(let t=0;t<this.children.length;t++)if(this.children[t].uuid===e.uuid){h.P.trigger("remove",{self:e.uuid,puid:this.uuid}),this.children.splice(t,1),M.refGraph.delete(e.uuid);break}}traceAncestor(t=!0,e=1/0){let i=M.getParent(this.uuid);const s={parent:i,uuids:[],collection:[]};if(null===i)return s;if(s.collection.push(i),s.uuids.push(i.uuid),!0===t){let t=1;i=M.getParent(i.uuid);while(i&&t<e)t++,s.collection.push(i),s.uuids.push(i.uuid),i=M.getParent(i.uuid)}return s}insert(e,i){const n=t.get(e);if(null===n)return console.warn(s.B.get("descriptor.insert.uuid.notFound",{uuid:e}));const r=t.get(i);if(null===r)return console.warn(s.B.get("descriptor.insert.target.notFound",{target:i}));const o=n.traceAncestor(!1);o.parent&&o.parent.remove(n),r.add(n)}insertBefore(e,i,n=0){const r=t.get(e);if(null===r)return console.warn(s.B.get("descriptor.insert.uuid.notFound",{uuid:e}));const o=t.get(i);if(null===o)return console.warn(s.B.get("descriptor.insert.target.notFound",{target:i}));const a=o.traceAncestor(!1);if(null===a.parent)return;const l=a.parent,u=r.traceAncestor(!1);null!==u.parent&&u.parent.remove(r);let c=-1;for(let t=0;t<l.children.length;t++){const e=l.children[t];e===o&&(c=t+n),h.P.trigger("remove",{self:e.uuid,puid:l.uuid})}l.children.splice(c,0,r),M.refGraph.set(r.uuid,l.uuid);for(const t of l.children)h.P.trigger("add",{self:t.uuid,puid:l.uuid})}insertAfter(t,e){return this.insertBefore(t,e,1)}getAdjacent(){const t={parent:"",prev:"",next:""},e=this.traceAncestor(!1);if(null===e.parent)return t;t.parent=e.parent.uuid;const i=e.parent.children.indexOf(this);return i>0&&(t.prev=e.parent.children[i-1].uuid),i<e.parent.children.length-1&&(t.next=e.parent.children[i+1].uuid),t}clone(e=!0){const i=a.w.uuid(),s=t.create(x(b({},this),{uuid:i,children:void 0}));if(!1===e)return s;for(const t of this.children)s.add(t.clone(e));return s}syncWith(e,i=[]){if(this.type!==e.type)return console.warn(s.B.get("descriptor.syncWith.fail"));const n=t.create(x(b({},e),{type:this.type,uuid:void 0,children:void 0}));delete n["uuid"],delete n["type"],delete n["children"],delete n["prefab"],delete n["generatedBy"];for(const t of i)delete n[t];Object.assign(this,n)}traverse(t,e=!1,i=null){e?l.B.preTerminated(this,t,i):l.B.pre(this,t,i)}clear(){this.remove(...this.children)}serialization(){return t.serialization(this)}equals(t,e=["children"]){return u.B.equals(this,t,e)}setNeedsUpdate(){h.P.trigger("update",{self:this.uuid})}};w(P,"type","Descriptor");let z=P;z.register(z),(0,n.pU)("free",t=>{h.P.trigger("free",{self:t}),M.refGraph.delete(t);const e=M.instanceToPrefabCollection.get(t);if(void 0===e)return;M.instanceToPrefabCollection.delete(t);const i=M.prefabToInstanceCollection.get(t);void 0!==i&&o.l.remove(i,t)})},38528:function(t,e,i){i.r(e),i.d(e,{invoke:function(){return s}});var s=i(78506)},40826:function(t,e,i){i.d(e,{D:function(){return d}});var s=i(21865),n=i(48393),r=i(27740),o=i(81789),a=Object.defineProperty,l=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,u=(t,e,i)=>l(t,"symbol"!==typeof e?e+"":e,i);const c={collection:[]},h=class t extends r.${constructor(){super(...arguments),u(this,"animationUnit",null)}static reset(e=0){const i=t.enabled;t.enabled=!0;for(const t of c.collection)t.reset(e);t.enabled=i}freeUnit(){null!==this.animationUnit&&(n.l.remove(c.collection,this.animationUnit),this.animationUnit.unlisten(),this.animationUnit=null)}update(t,e){super.update(t,e),this.freeUnit();const i=s.uj.get(this.unit.parent);null!==i&&(this.animationUnit=o.g1.parse(t),n.l.insert(c.collection,this.animationUnit),this.animationUnit.setTarget(i),this.animationUnit.listen(this.graphics))}unmount(t,e,i,s){this.freeUnit(),super.unmount(t,e,i,s)}};u(h,"type",s.uj.type),u(h,"enabled",!0);let d=h;r.$.register(d)},42646:function(t,e,i){i.d(e,{r:function(){return m}});var s=i(10692),n=i(21865),r=i(27740),o=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,d=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,f=(t,e)=>{for(var i in e||(e={}))c.call(e,i)&&d(t,i,e[i]);if(u)for(var i of u(e))h.call(e,i)&&d(t,i,e[i]);return t},p=(t,e)=>a(t,l(e)),y=(t,e,i)=>d(t,"symbol"!==typeof e?e+"":e,i),g=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});class m extends r.${constructor(){super(...arguments),y(this,"collection",new Map),y(this,"linkCollection",new Map)}update(t,e){super.update(t,e),this.collection.clear(),this.linkCollection.clear();for(const i of t.nodes)this.collection.set(i.id,i);for(const i of t.mappers){let t=this.linkCollection.get(i.source);void 0===t&&(t=[],this.linkCollection.set(i.source,t)),t.push(i.target)}}doBranch(t,e,i,s,n,r){return g(this,null,function*(){this.doExecute(t,e,i,s,n,r)})}doCondition(t,e,i,s,n,r){return g(this,null,function*(){const o=r.get(e),a=r.get(t);o===(null==a?void 0:a.condition.value)&&this.doExecute(t,e,i,s,n,r)})}doExecute(t,e,i,s,n,r){return g(this,null,function*(){const e=this.linkCollection.get(t);if(void 0!==e)for(const o of e)yield this.doNext(o,t,i,s,n,r)})}doNext(t,e,i,n,r,o){return g(this,null,function*(){var a;const l=this.collection.get(t);if(void 0===l)return;const u=null!=(a=i[t])?a:{},c=s.Vd.get(l.url);if(c){const i=p(f({},r),{input:{previous:e,default:l.input,user:u},result:o}),s=yield c.execute(n,this.graphics,i);o.set(t,s)}"Branch"===l.routine?this.doBranch(t,e,i,n,r,o):"Condition"===l.routine?(!1===o.has(t)&&o.set(t,l.input),this.doCondition(t,e,i,n,r,o)):this.doExecute(t,e,i,n,r,o)})}do(t,e,i){for(const s of e.roots){const n=new Map;this.doNext(s,"",t,e,i,n)}}}y(m,"type",n.YM.type),r.$.register(m)},42662:function(t,e,i){i.d(e,{P:function(){return u}});var s=i(21865),n=i(42778),r=i(81789),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends n._J{createActor(t,e){const i=new r.u2(t.uuid);return i.DOM.addEventListener("pointerdown",t=>t.stopPropagation()),i}update(t,e){super.update(t,e);const i=this.getActor(t,e);i.update(t,e)}mount(t,e,i,s){super.mount(t,e,i,s);const n=this.getActor(t,e),r=i.getActor(s,e);r.add(n)}unmount(t,e,i,s){const n=this.getActor(t,e);n.clearStyleClass(n.DOM),n.cleanInteraction();const r=i.getActor(s,e);r.remove(n),super.unmount(t,e,i,s)}pickup(t,e,i){i.push({uuid:t.uuid,generatedBy:t.generatedBy})}}l(u,"type",s.q5.type),n._J.register(u)},42778:function(t,e,i){i.d(e,{$R:function(){return s.$},B0:function(){return y.B},DM:function(){return o.D},FG:function(){return a.F},Gd:function(){return c.G},KQ:function(){return r.K},OH:function(){return d.O},Pk:function(){return p.P},TS:function(){return u.T},_J:function(){return f._},oA:function(){return h.o},rE:function(){return l.r},zI:function(){return n.z}});var s=i(27740),n=i(67302),r=i(91881),o=i(40826),a=i(25716),l=(i(58721),i(42646)),u=i(24566),c=i(70455),h=i(98415),d=i(9115),f=i(18419),p=i(42662),y=i(83792)},44870:function(t,e,i){i.d(e,{O:function(){return u}});var s=i(51456),n=i(10692),r=i(21865),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u{constructor(){l(this,"collection",new Map)}get(t){var e;return null!=(e=this.collection.get(t.uuid))?e:null}listen(t,e){const i=n.Vd.getUrlByUuid(t.uuid);if(i){let n=this.collection.get(t.uuid);return void 0===n&&(n=new s.A(i,t,e),this.collection.set(t.uuid,n)),n.listen({delta:0}),n}}unlisten(t,e){const i=this.collection.get(t.uuid);void 0!==i&&(i.unlisten({delta:0}),this.collection.delete(t.uuid))}process(t,e){n.Vd.free();const i=this.collection.values();for(const s of i)s.process(e),s.clear(e),t.trigger(r.uj.type,e),this.beforeRender(e),t.trigger("beforeRender",e),this.render(e),this.afterRender(e),t.trigger("afterRender",e)}beforeRender(t){const e=this.collection.values();for(const i of e)i.beforeRender(t)}render(t){const e=this.collection.values();for(const i of e)i.render(t)}afterRender(t){const e=this.collection.values();for(const i of e)i.afterRender(t)}clear(t){const e=this.collection.values();for(const i of e)this.unlisten(i.scheduler,t)}}},46339:function(t,e,i){i.d(e,{t:function(){return s}});const s={id:"zh_CN",name:"@vyr/engine","asyncTask.task.was.cancelled":"任务已取消","asset.load.fail":"资产加载失败:未注册 {{category}} 类别的工厂方法","asset.already.exists":"已存在同名资产,覆盖可能导致异常","asset.provider.notFound":"未找到资源提供方:{{url}}","descriptor.notRegister":"未注册描述器:{{type}}","descriptor.insert.uuid.notFound":"节点不存在:${uuid}","descriptor.insert.target.notFound":"目标节点不存在:${target}","descriptor.syncWith.fail":"只能从同类型实例同步属性","interpreter.new.fail":"请使用静态 create 方法创建实例","graphics.interpreter.notRegister":"未注册解释器:{{type}}","graphics.unit.notFound":"单元不存在:{{uuid}}","engine.run.container.notFound":"挂载节点不存在","/virtual:/preset/net/request.ts":"网络请求","/virtual:/preset/dataset/update.ts":"更新数据集","/virtual:/preset/scheduler/switch.ts":"切换场景","/virtual:/preset/graphics/invoke.ts":"调用交互"}},46597:function(t,e,i){i.d(e,{N:function(){return f}});var s=i(64898),n=i(21865),r=i(47552),o=i(25946),a=i(13507),l=i(51329),u=i(16033),c=Object.defineProperty,h=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d=(t,e,i)=>h(t,"symbol"!==typeof e?e+"":e,i);class f extends a.r{constructor(t={}){super(),d(this,"compilation",new l.O2),d(this,"prevTimestamp",0),d(this,"frame",0),d(this,"uuid",r.w.uuid()),d(this,"DOM",document.createElement("div")),d(this,"inputSystem",new o.U(this.DOM)),this.DOM.style.width="100%",this.DOM.style.height="100%",this.DOM.style.position="relative",this.DOM.style.top="0",this.DOM.style.left="0",this.DOM.style.overflow="hidden",this.DOM.classList.add("vyr-engine",n.Jf.basicName),this.DOM.setAttribute("data-vyr","vyr-engine"),this.DOM.addEventListener("contextmenu",t=>t.preventDefault())}getDelta(t){return(t-this.prevTimestamp)/1e3}tick(t){const e=this.getDelta(t);this.prevTimestamp=t,this.frame=requestAnimationFrame(t=>this.tick(t));const i={delta:e};this.inputSystem.process(),this.compilation.process(this,i)}run(t){if(0===this.frame){if("string"===typeof t){const e=document.getElementById(t);if(null===e)throw s.B.get("engine.run.container.notFound");t=e}t.appendChild(this.DOM),(0,u.R)(),this.prevTimestamp=performance.now(),this.tick(this.prevTimestamp)}}stop(){0!==this.frame&&(cancelAnimationFrame(this.frame),this.frame=0)}switch(t){this.compilation.clear(this),this.compilation.listen(t,this),window.dispatchEvent(new Event("resize")),this.compilation.process(this,{delta:0})}clear(){this.compilation.clear(this)}getGraphics(t){return this.compilation.get(t)}}},47552:function(t,e,i){i.d(e,{w:function(){return r}});let s=1;const n=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];class r{static id(){return s++}static uuid(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,i=4294967295*Math.random()|0,s=4294967295*Math.random()|0,r=n[255&t]+n[t>>8&255]+n[t>>16&255]+n[t>>24&255]+"-"+n[255&e]+n[e>>8&255]+"-"+n[e>>16&15|64]+n[e>>24&255]+"-"+n[63&i|128]+n[i>>8&255]+"-"+n[i>>16&255]+n[i>>24&255]+n[255&s]+n[s>>8&255]+n[s>>16&255]+n[s>>24&255];return r.toLowerCase()}static delayExecute(t){const e={args:[],execute:!1},i=(...i)=>{e.args=i,!0!==e.execute&&(e.execute=!0,requestAnimationFrame(()=>{t(...e.args),e.execute=!1}))};return i}}},47813:function(t,e,i){i.r(e),i.d(e,{createExecuteInput:function(){return c},createExecuteNode:function(){return h},scriptable:function(){return l}});var s=i(64898),n=i(10692),r=i(21865),o=i(17244),a=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const l=n.Vd.createVirtualUrl("preset/graphics/invoke.ts");class u extends o.e{execute(t,e,i){return a(this,null,function*(){var t,s,n,o;const{input:a}=i,l=null!=(s=null==(t=null==a?void 0:a.user)?void 0:t.interaction.value)?s:a.default.interaction.value,u=null!=(o=null==(n=null==a?void 0:a.user)?void 0:n.target.value)?o:a.default.target.value,c=r.oJ.get(u);l&&c&&e.invoke(l,c)})}}n.Vd.provider(l,()=>a(null,null,function*(){return{default:u}}));const c=(t={})=>{var e,i;const s={target:{value:null!=(e=t.target)?e:""},interaction:{value:null!=(i=t.interaction)?i:""}};return s},h=t=>{var e,i,n,r;const o={id:t.id,label:s.B.get(l),position:{x:null!=(i=null==(e=null==t?void 0:t.position)?void 0:e.x)?i:20,y:null!=(r=null==(n=null==t?void 0:t.position)?void 0:n.y)?r:20},routine:"Execute",url:l,input:c(t.input)};return o}},48035:function(t,e,i){i.d(e,{N:function(){return u},o:function(){return l}});var s=i(48393),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);const a=class t{constructor(t){o(this,"url"),o(this,"operationCollection",[]),o(this,"updateCollection",[]),this.url=t}iterator(e,i){let s;switch(i){case t.Update:s=[...this.updateCollection],this.updateCollection.length=0;break;default:s=[...this.operationCollection],this.operationCollection.length=0;break}for(const t of s)e(t);return s}clear(e){let i;switch(e){case t.Update:i=this.updateCollection;break;default:i=this.operationCollection;break}i.length=0}};o(a,"Add",1),o(a,"Remove",2),o(a,"Update",3);let l=a;class u{constructor(t,e,i){o(this,"uuid"),o(this,"parent"),o(this,"queue"),this.uuid=t,this.parent=e,this.queue=i}trigger(t){switch(t){case l.Add:this.queue.operationCollection.push({type:t,unit:this});break;case l.Remove:this.queue.operationCollection.push({type:t,unit:this});break;case l.Update:s.l.insert(this.queue.updateCollection,this);break}}}},48393:function(t,e,i){i.d(e,{l:function(){return n}});var s=i(48583);class n{static insert(t,e){const i=t.indexOf(e);-1===i&&t.push(e)}static remove(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}static auto(t,e){const i=t.indexOf(e);-1===i?t.push(e):t.splice(i,1)}static insertByKey(t,e,i){const s=t.length;for(let n=0;n<s;n++)if(t[n][e]===i[e])return;t.push(i)}static removeByKey(t,e,i){const s=t.length;for(let n=0;n<s;n++){const s=t[n];if(s[e]===i)return void t.splice(n,1)}}static equals(t,e,i=[]){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const o=t[r],a=typeof o;if(("string"===a||"boolean"===a||"number"===a||"bigint"===a||"undefined"===a||"symbol"===a||null===a)&&o!==e[r])return!1;if(Array.isArray(o)){if(0==n.equals(o,e[r],i))return!1}else if("object"!==a);else if(!1===s.B.equals(o,e[r],i))return!1}return!0}}},48583:function(t,e,i){i.d(e,{B:function(){return n}});var s=i(48393);class n{static equals(t,e,i=[]){const r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;const a=new Set(o);for(const l of r){if(!1===a.has(l))return!1;if(i.includes(l))continue;const r=t[l],o=typeof r;if(("string"===o||"boolean"===o||"number"===o||"bigint"===o||"undefined"===o||"symbol"===o||null===o)&&r!==e[l])return!1;if(Array.isArray(r)){if(0==s.l.equals(r,e[l],i))return!1}else if("object"!==o);else if(!1===n.equals(r,e[l],i))return!1}return!0}static parseKey(t){return t.split(".").filter(t=>""!==t)}static getValueByKey(t,e){if(!t)return;const i=this.parseKey(e);for(const s of i)if(t=t[s],void 0===t)return;return t}}},49436:function(t,e,i){i.d(e,{K:function(){return a}});var s=i(38132),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.o{constructor(t={}){var e;super(t),o(this,"camera"),this.camera=null!=(e=t.camera)?e:""}}o(a,"type","ServiceScheduler"),s.o.register(a)},50931:function(t,e,i){i.r(e),i.d(e,{Actor:function(){return b.Ag},AnimationUnitActor:function(){return b.g1},AnimationUnitDescriptor:function(){return m.uj},AnimationUnitInterpreter:function(){return v.DM},ArrayUtils:function(){return l.l},Asset:function(){return w.Vd},AssetGraph:function(){return w.jB},AsyncTask:function(){return y.g},BasicStyleColor:function(){return r.Ru},CameraDescriptor:function(){return m.Vp},Category:function(){return a.b},Color:function(){return r.Q1},Compilation:function(){return x.O2},ControllerDescriptor:function(){return m.SS},DatasetDescriptor:function(){return m.Y2},DatasetInterpreter:function(){return v.zI},DefaultStyleColor:function(){return r.E8},Dependencide:function(){return w.FD},Descriptor:function(){return m.oJ},DivActor:function(){return b.TD},DivDescriptor:function(){return m.fX},DivInterpreter:function(){return v.oA},DynamicDescriptor:function(){return m.Ts},Engine:function(){return M.N},Euler:function(){return n.O9},FragmentActor:function(){return b.aj},FragmentInterpreter:function(){return v.FG},Generate:function(){return c.w},Graphics:function(){return x.A1},HTMLActor:function(){return b.NA},HTMLDescriptor:function(){return m.Pp},HTMLServiceActor:function(){return b.u2},HTMLServiceDescriptor:function(){return m.q5},HTMLServiceInterpreter:function(){return v.Pk},HTMLTransformControllerActor:function(){return b.ZQ},HTMLTransformControllerDescriptor:function(){return m.xq},HTMLTransformControllerInterpreter:function(){return v.OH},InputSystem:function(){return f.U},Interpreter:function(){return v.$R},LinearStyleColor:function(){return r.yq},Listener:function(){return d.r},Matrix4:function(){return n.kn},NodeDescriptor:function(){return m.KM},ObjectUtils:function(){return u.B},PrefaInterpreter:function(){return v.TS},PrefabInstanceDescriptor:function(){return m.X7},PrefabInstanceInterpreter:function(){return v.Gd},PrefabeDescriptor:function(){return m.Zl},Quaternion:function(){return n.PT},Queue:function(){return x.op},RadialStyleColor:function(){return r.GH},RoutineDescriptor:function(){return m.YM},RoutineInterpreter:function(){return v.rE},Scriptable:function(){return g.e},Serialization:function(){return o.z},ServiceDescriptor:function(){return m.RE},ServiceInterpreter:function(){return v._J},ServiceSchedulerDescriptor:function(){return m.K4},ServiceSchedulerInterpreter:function(){return v.B0},StyleActor:function(){return b.XI},StyleDescriptor:function(){return m.Jf},StyleInterpreter:function(){return v.KQ},StyleRule:function(){return m.aq},StyleShadow:function(){return m.CH},StyleSpacing:function(){return m.Dg},Traverser:function(){return h.B},Unit:function(){return x.Nf},VariableProxy:function(){return x.D_},Vector2:function(){return n.I9},Vector3:function(){return n.Pq},destroyInstance:function(){return p.Sh},executePreset:function(){return C.N},language:function(){return s.B},observer:function(){return x.PA},privateState:function(){return w.nP},routinePreset:function(){return C.K},zhCnLanguageProvider:function(){return s.t}});var s=i(64898),n=i(64006),r=i(69776),o=i(21627),a=i(13591),l=i(48393),u=i(48583),c=i(47552),h=i(17227),d=i(13507),f=i(25946),p=i(97338),y=i(72094),g=i(17244),m=i(21865),v=i(42778),b=(i(35265),i(81789)),x=i(51329),w=i(10692),C=i(23083),M=i(46597)},51329:function(t,e,i){i.d(e,{A1:function(){return o.A},D_:function(){return r.D},Nf:function(){return n.N},O2:function(){return a.O},PA:function(){return s.P},op:function(){return n.o}});var s=i(79351),n=i(48035),r=i(8061),o=i(51456),a=i(44870)},51456:function(t,e,i){i.d(e,{A:function(){return g}});var s=i(64898),n=i(48393),r=i(10692),o=i(21865),a=i(27740),l=i(42778),u=i(79351),c=i(48035),h=i(94233),d=i(8061),f=Object.defineProperty,p=(t,e,i)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,y=(t,e,i)=>p(t,"symbol"!==typeof e?e+"":e,i);class g{constructor(t,e,i){y(this,"__VYR_REMOTE_WRAPPER"),y(this,"_overwriteUpdate",new Map),y(this,"_interpreterCollection",new Map),y(this,"_staticAssetQueue",[]),y(this,"_assetCollection",new Map),y(this,"_freeCollection",new Map),y(this,"_dependencide",new r.FD),y(this,"_services",[]),y(this,"_freeQueue",[]),y(this,"_currentCamera",""),y(this,"unitCollection",new h.r),y(this,"variableProxy",new d.D),y(this,"scheduler"),y(this,"engine"),y(this,"url"),y(this,"addWatcher",t=>{const e=this.unitCollection.get(t.puid);if(void 0===e)return;this.addCallback(t,e);const i=o.oJ.get(t.self);i.traverse(t=>u.P.trigger("update",{self:t.uuid}))}),y(this,"removeWatcher",t=>{const e=this.unitCollection.get(t.self);void 0!==e&&this.removeCallback(t)}),y(this,"updateWatcher",t=>{const e=this.unitCollection.get(t.self);if(void 0===e)return;const i=o.oJ.get(t.self);this.variableProxy.update(i),e.trigger(c.o.Update)}),y(this,"updateDepsWatcher",t=>{const e=this.unitCollection.get(t.self);if(void 0===e)return;const i=r.Vd.graph.getDependents(e.queue.url);for(const s of i)for(const t of s.ports)r.Vd.graph.hasAssetReference(t,e.queue.url)&&u.P.trigger("update",{self:t.descriptor})}),y(this,"freeWatcher",t=>{let e=this.unitCollection.get(t.self);if(void 0===e){if(e=this._freeCollection.get(t.self),void 0===e)return;this._freeCollection.delete(t.self)}this._freeQueue.push(e)}),this.scheduler=e,this.engine=i,this.url=t}static createInterpreter(t,e){const i=l.$R.getClass(t.type);if(null===i)throw s.B.get("graphics.interpreter.notRegister",{type:t.type});a.n.factory=!0;let n=e.unitCollection.get(t.uuid);void 0===n&&(n=e._freeCollection.get(t.uuid));const r=new i(n,e);return a.n.factory=!1,r}listen(t){u.P.listen("add",this.addWatcher),u.P.listen("remove",this.removeWatcher),u.P.listen("update",this.updateWatcher),u.P.listen("updateDeps",this.updateDepsWatcher),u.P.listen("free",this.freeWatcher);const e=r.Vd.get(this.url);e instanceof o.oJ&&this.addRoot(this.url,e),r.Vd.graph.getDependencide(this.url,this._dependencide),this._dependencide.foreach(t=>{const e=r.Vd.get(t);e instanceof o.oJ&&this._assetCollection.set(t,this.addRoot(t,e))});const i=this.variableProxy.get(this.scheduler.uuid,this,t),s=this.getInterpreter(i);s.install(i,t)}unlisten(t){const e=this.variableProxy.get(this.scheduler.uuid,this,t),i=this.getInterpreter(e);i.uninstall(e,t);const s=this.unitCollection.get(this.scheduler.uuid),n=[...this._assetCollection.values(),s];for(const o of n){const e=this.removeRoot(o.queue.url);null!==e&&(e.queue.iterator(e=>this.do(e,t)),this._assetCollection.delete(o.queue.url))}const r=this._freeCollection.values();for(const o of r)this.doFree(o,t);u.P.unlisten("add",this.addWatcher),u.P.unlisten("remove",this.removeWatcher),u.P.unlisten("update",this.updateWatcher),u.P.unlisten("updateDeps",this.updateDepsWatcher),u.P.unlisten("free",this.freeWatcher),this._dependencide.clear()}process(t){for(const r of this._freeQueue)this.doFree(r,t);this._freeQueue.length=0,this.updateStaticAsset(t),this._dependencide.clear(),r.Vd.graph.getDependencide(this.url,this._dependencide),r.Vd.activate(...this._dependencide.all,this.url);const e=this.diffAsset();for(const r of e.removeQueue){const e=this.removeRoot(r);null!==e&&e.queue.iterator(e=>this.do(e,t)),this._assetCollection.delete(r)}for(const a of e.addQueue){const t=r.Vd.get(a);t instanceof o.oJ&&this._assetCollection.set(a,this.addRoot(a,t))}const i=[];this._dependencide.foreach(t=>{const e=r.Vd.get(t),s=this.unitCollection.get(e.uuid);if(void 0===s)return console.warn(t,e);i.push(s)}),i.push(...this._staticAssetQueue);for(const r of i)r.queue.iterator(e=>this.do(e,t));const s=this.unitCollection.get(this.scheduler.uuid);s.queue.iterator(e=>this.do(e,t));for(const r of i)r.queue.iterator(e=>this.doUpdate(e,t),c.o.Update);const n=s.queue.iterator(e=>this.doUpdate(e,t),c.o.Update);for(const r of n){const t=o.oJ.get(r.uuid);this.invoke("mount",t)}this._freeQueue.push(...this._freeCollection.values()),this._freeCollection.clear()}clear(t){for(const e of this._services){const i=this.variableProxy.get(e.uuid,this,t),s=this.getInterpreter(i);s.clear(i,t)}}beforeRender(t){for(const e of this._services){const i=this.variableProxy.get(e.uuid,this,t),s=this.getInterpreter(i);s.beforeRender(i,t)}}render(t){for(const e of this._services){const i=this.variableProxy.get(e.uuid,this,t),s=this.getInterpreter(i);s.render(i,t)}}afterRender(t){for(const e of this._services){const i=this.variableProxy.get(e.uuid,this,t),s=this.getInterpreter(i);s.afterRender(i,t)}}addRoot(t,e){const i=new c.N(e.uuid,"",new c.o(t));this.unitCollection.set(i),this._freeCollection.delete(i.uuid),i.trigger(c.o.Update);for(const s of e.children)u.P.trigger("add",{self:s.uuid,puid:e.uuid});return i}removeRoot(t){const e=r.Vd.get(t),i=this.unitCollection.get(e.uuid);if(void 0===i)return null;this.unitCollection.delete(i.uuid),i.queue.clear(),this._freeCollection.set(i.uuid,i);for(const s of e.children)u.P.trigger("remove",{self:s.uuid,puid:e.uuid});return i}addCallback(t,e){const i=o.oJ.get(e.uuid),s=o.oJ.get(t.self);s.traverse((t,i)=>{const s=new c.N(t.uuid,i.uuid,e.queue);this.unitCollection.set(s),s.trigger(c.o.Add),this._freeCollection.delete(s.uuid)},!1,i)}removeCallback(t){const e=o.oJ.get(t.self);e.traverse(t=>{const e=this.unitCollection.get(t.uuid);void 0!==e&&(this.unitCollection.delete(t.uuid),e.trigger(c.o.Remove),this._freeCollection.set(e.uuid,e))})}updateStaticAsset(t){if(this.scheduler.camera!==this._currentCamera){const t=o.oJ.get(this.scheduler.camera);if(null===t)return;const e=this.unitCollection.get(this._currentCamera);e&&(this.unitCollection.delete(this._currentCamera),this._freeCollection.set(e.uuid,e),n.l.remove(this._staticAssetQueue,e));const i=new c.N(t.uuid,"",new c.o(r.Vd.createVirtualUrl("graphics/camera.ts")));this.unitCollection.set(i),n.l.insert(this._staticAssetQueue,i),this._currentCamera=this.scheduler.camera}}diffAsset(){const t=new Map(this._assetCollection),e=[],i=[];return this._dependencide.foreach(i=>{t.has(i)?t.delete(i):e.push(i)}),i.push(...t.keys()),{addQueue:e,removeQueue:i}}onMount(t,e){const i=this.variableProxy.get(t.parent,this,e),s=this.getInterpreter(i),r=this.variableProxy.get(t.uuid,this,e),a=this.getInterpreter(r);r instanceof o.RE&&n.l.insert(this._services,r),a.mount(r,e,s,i)}onUnmount(t,e){const i=this.variableProxy.get(t.parent,this,e),s=this.getInterpreter(i),r=this.variableProxy.get(t.uuid,this,e),a=this.getInterpreter(r);r instanceof o.RE&&n.l.remove(this._services,r),a.unmount(r,e,s,i)}getUnit(t){var e;return null!=(e=this.unitCollection.get(t))?e:null}do(t,e){switch(t.type){case c.o.Add:this.onMount(t.unit,e);break;case c.o.Remove:this.onUnmount(t.unit,e);break;default:console.log("do",t.type);break}}doUpdate(t,e){const i=this.variableProxy.get(t.uuid,this,e),s=this.getInterpreter(i),n=this._overwriteUpdate.get(i.uuid);void 0===n?s.update(i,e):n(i,s,e)}doFree(t,e){const i=this._interpreterCollection.get(t.uuid);if(void 0===i)return;const s=this.variableProxy.get(t.uuid,this,e);i.free(s,e),this._interpreterCollection.delete(t.uuid)}getInterpreter(t){let e=this._interpreterCollection.get(t.uuid);return void 0===e&&(e=g.createInterpreter(t,this),this._interpreterCollection.set(t.uuid,e)),e}getParent(t){const e=this.unitCollection.get(t);return void 0===e?null:o.oJ.get(e.parent)}getActor(t,e){const i=this.getInterpreter(t);return i.getActor(t,e)}_pickupItem(t,e,i){if(!1===t.selectable)return;const s=this._interpreterCollection.get(t.uuid);void 0!==s&&s.pickup(t,e,i)}_pickupScene(t,e){const i=this.unitCollection.get(this.scheduler.uuid);if(void 0===i)return e;const s=this.unitCollection.values();for(const n of s){const i=o.oJ.get(n.uuid);i instanceof o.Pp||this._pickupItem(i,t,e)}}getMouseAndRect(t){const e=t.target.getBoundingClientRect(),i={x:t.clientX-e.left,y:t.clientY-e.top};return{mouse:i,rect:e}}traceService(t){if(t instanceof o.RE)return t;const e=this.getParent(t.uuid);return null===e?null:this.traceService(e)}pickup(t){const e=[],i=t.target instanceof Element;if(!1===i)return e;const s=t.target.getAttribute("data-vyr-uuid");if(null===s)return e;const{mouse:n,rect:r}=this.getMouseAndRect(t),a=o.oJ.get(s),l={delta:0};if(a instanceof o.RE)if(a instanceof o.q5)this._pickupItem(a,l,e);else{const t=this.getInterpreter(a);t.beforePickup(n,r,l),this._pickupScene(l,e),t.orderBy(e)}else this._pickupItem(a,l,e);return e}invoke(t,e){if(0===e.interactions.length)return;const i={delta:0,trigger:e};for(const s of e.interactions)if(s.type===t){const t=r.Vd.get(s.url),e=this.getInterpreter(t);e.do(s.inputs,t,i);break}}setOverrideByUpdate(t,e){this._overwriteUpdate.set(t,e)}deleteOverrideByUpdate(t){this._overwriteUpdate.delete(t)}}},53463:function(t,e,i){i.d(e,{O:function(){return d}});var s=i(1355),n=i(32952),r=i(79389),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);const u=new r.k,c=new n.P,h=class t{constructor(e=0,i=0,s=0,n=t.DEFAULT_ORDER){l(this,"x"),l(this,"y"),l(this,"z"),l(this,"order"),this.x=e,this.y=i,this.z=s,this.order=n}static create(e,i,s,n){return void 0===e?new t:"number"===typeof e?new t(e,i,s,n):new t(e.x,e.y,e.z,e.order)}set(t,e,i,s=this.order){return this.x=t,this.y=e,this.z=i,this.order=s,this}clone(){return new this.constructor(this.x,this.y,this.z,this.order)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.order=t.order,this}setFromRotationMatrix(t,e=this.order){const i=t.elements,n=i[0],r=i[4],o=i[8],a=i[1],l=i[5],u=i[9],c=i[2],h=i[6],d=i[10];switch(e){case"XYZ":this.y=Math.asin((0,s.q)(o,-1,1)),Math.abs(o)<.9999999?(this.x=Math.atan2(-u,d),this.z=Math.atan2(-r,n)):(this.x=Math.atan2(h,l),this.z=0);break;case"YXZ":this.x=Math.asin(-(0,s.q)(u,-1,1)),Math.abs(u)<.9999999?(this.y=Math.atan2(o,d),this.z=Math.atan2(a,l)):(this.y=Math.atan2(-c,n),this.z=0);break;case"ZXY":this.x=Math.asin((0,s.q)(h,-1,1)),Math.abs(h)<.9999999?(this.y=Math.atan2(-c,d),this.z=Math.atan2(-r,l)):(this.y=0,this.z=Math.atan2(a,n));break;case"ZYX":this.y=Math.asin(-(0,s.q)(c,-1,1)),Math.abs(c)<.9999999?(this.x=Math.atan2(h,d),this.z=Math.atan2(a,n)):(this.x=0,this.z=Math.atan2(-r,l));break;case"YZX":this.z=Math.asin((0,s.q)(a,-1,1)),Math.abs(a)<.9999999?(this.x=Math.atan2(-u,l),this.y=Math.atan2(-c,n)):(this.x=0,this.y=Math.atan2(o,d));break;case"XZY":this.z=Math.asin(-(0,s.q)(r,-1,1)),Math.abs(r)<.9999999?(this.x=Math.atan2(h,l),this.y=Math.atan2(o,n)):(this.x=Math.atan2(-u,d),this.y=0);break;default:console.warn("Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this.order=e,this}setFromQuaternion(t,e){return u.makeRotationFromQuaternion(t),this.setFromRotationMatrix(u,e)}setFromVector3(t,e=this.order){return this.set(t.x,t.y,t.z,e)}reorder(t){return c.setFromEuler(this),this.setFromQuaternion(c,t)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.order===this.order}fromArray(t){return this.x=t[0],this.y=t[1],this.z=t[2],void 0!==t[3]&&(this.order=t[3]),this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.order,t}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.order}};l(h,"DEFAULT_ORDER","XYZ");let d=h},58721:function(t,e,i){var s=i(48393),n=i(10692),r=i(21865),o=i(51329),a=i(13591),l=i(42778),u=Object.defineProperty,c=(t,e,i)=>e in t?u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,h=(t,e,i)=>c(t,"symbol"!==typeof e?e+"":e,i);class d extends l.FG{constructor(){super(...arguments),h(this,"_currentDepth",0),h(this,"_datasetCloneCollection",new Map),h(this,"_rawToCloneCollection",new Map),h(this,"_cloneCollection",new Map),h(this,"_onAdd",t=>{const e=this._rawToCloneCollection.get(t.puid);if(void 0===e)return;const i=e.length,s=r.oJ.get(t.self);for(let n=0;n<i;n++){const t=e[n],i=new Map,o=[],a=this._markAndClone(s,t.dataset,t.generatedBy,i,o);r.oJ.fixReferences(o,i),t.add(a)}}),h(this,"_onRemove",t=>{const e=this._rawToCloneCollection.get(t.self);if(void 0===e)return;while(e.length>0){const t=e.pop();if(void 0===t)continue;const i=this.graphics.getParent(t.uuid);null!==i&&(i.remove(t),s.l.remove(e,t))}const i=r.oJ.get(t.self);i.traverse(t=>{this._rawToCloneCollection.delete(t.uuid)})}),h(this,"_onUpdate",t=>{const e=this._rawToCloneCollection.get(t.self);if(void 0===e)return;const i=r.oJ.get(t.self);if(i instanceof r.Ts){const e=i.traceAncestor();if(null===e.parent)return;const s={self:t.self,puid:e.parent.uuid};this._onRemove(s),this._onAdd(s)}else for(const s of e)s.syncWith(i),s.setNeedsUpdate()}),h(this,"_clearByOnUpdate",t=>{if(t.self!==this.unit.uuid)return;this._rawToCloneCollection.clear(),this._datasetCloneCollection.clear();const e=this._cloneCollection.values();for(const i of e)o.PA.trigger("remove",{self:i.uuid,puid:this.unit.uuid});this._cloneCollection.clear()})}_getDataset(t,e,i){const s=n.Vd.createVirtualUrl(`dynamic/dataset/${t.uuid}-${i}-${this._currentDepth}${a.b.datasetSuffix}`);if(this._datasetCloneCollection.has(s))return s;const o=e[i],l=new r.Y2;return l.setExtraData({index:i}),l.setData(o),n.Vd.set(s,l),this._datasetCloneCollection.set(s,l),s}_getDataByDataset(t){var e;const i=this._datasetCloneCollection.get(t);return null!=(e=null==i?void 0:i.getData())?e:null}_setCache(t,e){let i=this._rawToCloneCollection.get(t.uuid);void 0===i&&(i=[],this._rawToCloneCollection.set(t.uuid,i)),i.push(e)}_markSubDynamic(t,e,i,s,r){if(this._currentDepth>3e3)return void o.PA.trigger("__VYR_RUNTIME@remote",{type:"Dynamic",uuid:this.unit.uuid});this._currentDepth+=1;const a=n.Vd.get(t.url);if(2===t.dataConfig){const n=this._getDataByDataset(e.dataset);if(null===n||"object"!==typeof n)return;const o=n[t.dataPath];if(!1===Array.isArray(o)||0===o.length)return;for(let l=0;l<o.length;l++){const n=this._getDataset(t,o,l),u=this._markAndClone(a,n,i,s,r);e.add(u)}}else{const n=this._getDataByDataset(t.dataset);if(!1===Array.isArray(n)||0===n.length)return;for(let o=0;o<n.length;o++){const l=this._getDataset(t,n,o),u=this._markAndClone(a,l,i,s,r);e.add(u)}}}_markAndClone(t,e,i,s,n){let o;t instanceof r.Ts?(o=new r.oJ({dataset:e}),t.url&&this._markSubDynamic(t,o,i,s,n)):t instanceof r.Zl?o=new r.oJ({dataset:e}):(o=t.clone(!1),o.dataset=e,s.set(t.uuid,o),o.interactions.length>0&&n.push(o)),o.generatedBy=i;for(const r of t.children){const t=this._markAndClone(r,e,i,s,n);o.add(t)}return this._setCache(t,o),o}mount(t,e,i,s){super.mount(t,e,i,s),o.PA.listen("update",this._clearByOnUpdate)}unmount(t,e,i,s){o.PA.unlisten("update",this._clearByOnUpdate),super.unmount(t,e,i,s)}update(t,e){if(super.update(t,e),o.PA.unlisten("add",this._onAdd),o.PA.unlisten("remove",this._onRemove),o.PA.unlisten("update",this._onUpdate),t.dataset&&t.url){const e=r.Y2.getCollection(t.dataset);if(e.length>0){const i=n.Vd.get(t.url);for(let s=0;s<e.length;s++){this._currentDepth=0;const n=this._getDataset(t,e,s),a=new Map,l=[],u=this._markAndClone(i,n,t.uuid,a,l);r.oJ.fixReferences(l,a),this._cloneCollection.set(s,u),o.PA.trigger("add",{self:u.uuid,puid:t.uuid})}}}o.PA.listen("add",this._onAdd),o.PA.listen("remove",this._onRemove),o.PA.listen("update",this._onUpdate)}free(t,e){o.PA.unlisten("add",this._onAdd),o.PA.unlisten("remove",this._onRemove),o.PA.unlisten("update",this._onUpdate),super.free(t,e)}}h(d,"type",r.Ts.type),l.FG.register(d)},62769:function(t,e,i){i.d(e,{N:function(){return g}});var s=i(10692),n=i(83912),r=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,h=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d=(t,e)=>{for(var i in e||(e={}))u.call(e,i)&&h(t,i,e[i]);if(l)for(var i of l(e))c.call(e,i)&&h(t,i,e[i]);return t},f=(t,e)=>o(t,a(e)),p=(t,e,i)=>h(t,"symbol"!==typeof e?e+"":e,i);const y=class t extends n.A{constructor(t){super(),p(this,"uuid"),p(this,"unlisteners",[]),p(this,"className"),this.uuid=t}createDOM(){const e=document.createElement("div");return e.setAttribute(t.uuidKey,this.uuid),e.style.width="100%",e.style.height="100%",e.style.position="relative",e.style.backgroundSize="100% 100%",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="0% 0%",e}getWrapperStyle(t,e){const i={pointerEvents:"auto"};i.flexGrow=t.flexGrow+"",!1===t.visible?i.display="none":i.display=t.display;const s=t.width;i.width=s<0?"auto":`calc(${s+t.wUnit} + ${t.calcWidth}px)`;const n=t.height;i.height=n<0?"auto":`calc(${n+t.hUnit} + ${t.calcHeight}px)`,i.position=t.position,i.transform="",0!==t.translate.x&&(i.transform+=`translateX(${t.translate.x}%) `),0!==t.translate.y&&(i.transform+=`translateY(${t.translate.y}%) `);const r=t.location.x+t.xUnit;"left"===t.xAxis?(i.left=r,i.right=""):(i.right=r,i.left="");const o=t.location.y+t.yUnit;return"top"===t.yAxis?(i.top=o,i.bottom=""):(i.bottom=o,i.top=""),i.marginLeft=t.margin.left+"px",i.marginTop=t.margin.top+"px",i.marginRight=t.margin.right+"px",i.marginBottom=t.margin.bottom+"px",i}getLayoutStyle(t,e){const i={};return i.display=t.display,i.flexWrap=t.flexWrap,i.flexDirection=t.flexDirection,i.justifyContent=t.justifyContent,i.alignItems=t.alignItems,i.alignContent=t.alignContent,i.opacity=t.opacity+"",i.zIndex=t.zIndex,i}setHTMLStyle(t,e){Object.assign(t.style,e)}getStyleClass(t,e){const i=s.Vd.get(t.style);if(null===i)return[];const r=n.A.getGraphics(this),o=r.getInterpreter(i).getActor(t,e);return o.getClassName()}setStyleClass(t,e){this.clearStyleClass(t),this.className=e,t.classList.add(...e)}clearStyleClass(t){void 0!==this.className&&(t.classList.remove(...this.className),delete this.className)}bindInteraction(t,e,i,n,r){const o=s.Vd.get(e.url),a=n.getInterpreter(o),l=f(d({},r),{trigger:i}),u=t=>{t.stopPropagation(),a.do(e.inputs,o,l)},c=n.engine.inputSystem.listen(e.type,u,{target:t});this.unlisteners.push(()=>n.engine.inputSystem.unlisten(c))}cleanInteraction(){for(const t of this.unlisteners)t();this.unlisteners.length=0}setHTMLInteraction(e,i,s){this.cleanInteraction();const n=t.getGraphics(this);for(const t of i.interactions)t.url&&this.bindInteraction(e,t,i,n,s)}};p(y,"className","vyr-html-wrapper"),p(y,"uuidKey","data-vyr-uuid");let g=y},63072:function(t,e,i){i.d(e,{q:function(){return a}});var s=i(66119),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.R{constructor(t={}){var e,i,s,n,r;super(t),this.width=null!=(e=t.width)?e:100,this.wUnit=null!=(i=t.wUnit)?i:"%",this.height=null!=(s=t.height)?s:100,this.hUnit=null!=(n=t.hUnit)?n:"%",this.position=null!=(r=t.position)?r:"absolute"}}o(a,"type","HTMLService"),s.R.register(a)},64006:function(t,e,i){i.d(e,{I9:function(){return s.I},O9:function(){return r.O},PT:function(){return o.P},Pq:function(){return n.P},kn:function(){return a.k}});var s=i(95997),n=i(74630),r=i(53463),o=i(32952),a=i(79389)},64898:function(t,e,i){i.d(e,{B:function(){return n.B},t:function(){return s.t}});var s=i(46339),n=i(67538)},66119:function(t,e,i){i.d(e,{R:function(){return u}});var s=i(69776),n=i(2181),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);const l=class t extends n.P{constructor(t={}){super(t),a(this,"backgroundColor"),this.backgroundColor=t.backgroundColor?s.E8.create(t.backgroundColor):new s.E8({opacity:0})}static traceService(e){if(null===e)return null;if(e instanceof t)return e instanceof t?e:null;{const t=e.traceAncestor(!1);return this.traceService(t.parent)}}};a(l,"type","Service");let u=l},67302:function(t,e,i){i.d(e,{z:function(){return l}});var s=i(21865),n=i(27740),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.${}a(l,"type",s.Y2.type),n.$.register(l)},67538:function(t,e,i){i.d(e,{B:function(){return r}});var s=i(75133),n=i(46339);s.Locale.register(n.t);const r=s.Locale.getLanguage(n.t.name)},67824:function(t,e,i){var s=i(21865),n=i(10692),r=i(13591);const o=(t,e,i)=>{const s=Object.keys(t.inputs);for(const n of s){const s=t.inputs[n],o=Object.keys(s);for(const t of o){const o=s[t];void 0!==o.type&&!1!==r.b.isDescriptor(o.type,"category")&&(o.value&&i.edges.push({key:`${e}.inputs.${n}.${t}.value`,category:o.type,asset:o.value}))}}},a=(t,e,i)=>{const s=Object.keys(t.input);for(const n of s){const s=t.input[n];void 0!==s.type&&!1!==r.b.isDescriptor(s.type,"category")&&(s.value&&i.edges.push({key:`${e}.input.${n}.value`,category:s.type,asset:s.value}))}},l=(t,e)=>{if(t.interactions.length>0)for(let i=0;i<t.interactions.length;i++){const s=t.interactions[i];s.url&&(o(s,`interactions[${i}]`,e),e.edges.push({key:`interactions[${i}].url`,category:r.b.routine,asset:s.url}))}t.dataset&&e.edges.push({key:"dataset",category:r.b.dataset,asset:t.dataset})},u=(t,e)=>{t.inherit&&e.edges.push({key:"inherit",category:r.b.style,asset:t.inherit})},c=(t,e)=>{if(t.nodes.length>0)for(let i=0;i<t.nodes.length;i++){const s=t.nodes[i];s.url&&(a(s,`nodes[${i}]`,e),e.edges.push({key:`nodes[${i}].url`,category:r.b.ts,asset:s.url}))}},h=(t,e)=>{t.style&&e.edges.push({key:"style",category:r.b.style,asset:t.style})},d=(t,e)=>{t.url&&e.edges.push({key:"url",category:r.b.prefab,asset:t.url})},f=(t,e)=>{t.url&&e.edges.push({key:"url",category:r.b.prefab,asset:t.url})};n.jB.register(s.oJ.type,l),n.jB.register(s.Jf.type,u),n.jB.register(s.YM.type,c),n.jB.register(s.Pp.type,h),n.jB.register(s.Ts.type,d),n.jB.register(s.X7.type,f)},69251:function(t,e,i){i.d(e,{X:function(){return u}});var s=i(10692),n=i(83912),r=i(21865),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends n.A{constructor(){super(...arguments),l(this,"_styleCollection",new Map),l(this,"_className",[])}getStyleValue(){const t=[],e=this._styleCollection.entries();for(const[i,s]of e){const e=[];if(e.push(`${i}{`),0===s.length)e.push("/* 如果需要样式,在这里添加 */");else for(const t of s)e.push(`${t.name}:${t.value};`);e.push("}"),t.push(e.join("\n"))}return t}getClassName(){return[...this._className]}updateRule(t){let e=0;for(const i of t.cssRules)if(i instanceof CSSStyleRule){const t=this._styleCollection.get(i.selectorText);if(void 0===t)continue;e++,i.style.cssText="";for(const e of t)i.style.setProperty(e.name,e.value);if(2===e)return!0}return!1}update(t,e){this._className.length=0,this._styleCollection.clear();let i=s.Vd.get(t.inherit);if(i){const t=n.A.getGraphics(this),e=t.getInterpreter(i);this._className.push(e.className)}this._className.push(e);const o=[];for(const s of t.rules){if(!0===s.inherit)continue;const t=s.getValue();o.push({name:s.name,value:t})}this._styleCollection.set(`.${e}`,o);const a=[];for(const s of t.hoverRules){if(!0===s.inherit)continue;const t=s.getValue();a.push({name:s.name,value:t})}this._styleCollection.set(`.${e}:hover`,a);const l=[];for(const s of t.activeRules){if(!0===s.inherit)continue;const t=s.getValue();l.push({name:s.name,value:t})}this._styleCollection.set(`.${e}.${r.Jf.activeName}`,l)}}},69776:function(t,e,i){i.d(e,{E8:function(){return c},GH:function(){return d},Q1:function(){return l},Ru:function(){return u},yq:function(){return h}});var s=i(78366),n=i(21627),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends s.A{}class u{constructor(){a(this,"type"),this.type=this.constructor.type}static create(t){switch(t.type){case"linear":return new h(t);case"radial":return new d(t);default:return new c(t)}}static getColor(t){return"rgba(0,0,0,0)"}getColor(){return this.constructor.getColor(this)}}a(u,"type","basic");class c extends u{constructor(t={}){var e,i;super(),a(this,"value"),a(this,"opacity"),this.value=null!=(e=t.value)?e:"#ffffff",this.opacity=null!=(i=t.opacity)?i:1}static getColor(t){return new l(t.value).setAlpha(t.opacity).toRgbString()}}a(c,"type","default");class h extends u{constructor(t={}){var e;super(),a(this,"angle"),a(this,"value"),this.angle=null!=(e=t.angle)?e:0,this.value=t.value?n.z.deepClone(t.value):[{value:"#ffffff",opacity:1,ratio:0},{value:"#ffffff",opacity:1,ratio:1}]}static getColor(t){let e="";for(const i of t.value)e+=`, ${new l(i.value).setAlpha(i.opacity).toRgbString()} ${100*i.ratio}%`;return`linear-gradient(${t.angle}deg ${e})`}}a(h,"type","linear");class d extends u{constructor(t={}){var e;super(),a(this,"center"),a(this,"radius"),a(this,"value"),this.center=t.center?n.z.deepClone(t.center):{x:.5,y:.5},this.radius=null!=(e=t.radius)?e:-1,this.value=t.value?n.z.deepClone(t.value):[{value:"#ffffff",opacity:1,ratio:0},{value:"#ffffff",opacity:1,ratio:1}]}static getColor(t){let e="";e=t.radius<0?"farthest-corner":`${t.radius}px`;let i="";i=`${100*t.center.x}% ${100*t.center.y}%`;let s="";for(const n of t.value)s+=`, ${new l(n.value).setAlpha(n.opacity).toRgbString()} ${100*n.ratio}%`;return`radial-gradient(circle ${e} at ${i} ${s})`}}a(d,"type","radial")},70455:function(t,e,i){i.d(e,{G:function(){return l}});var s=i(21865),n=i(25716),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.F{}a(l,"type",s.X7.type),n.F.register(l)},70858:function(t,e,i){i.d(e,{Z:function(){return a}});var s=i(38132),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.o{constructor(t={}){var e;super(t),o(this,"category"),this.category=null!=(e=t.category)?e:"html"}static add(t,e){t.add(e);const i=this.getInstanceCollection(t.uuid);if(null!==i)for(const s of i){const t=this.get(s);t.add(e.clone(!0))}}static remove(t,e){t.remove(e);const i=this.getInstanceCollection(e.uuid);if(null!==i)for(const s of i){const t=this.get(s),e=t.traceAncestor(!1);null!==e.parent&&e.parent.remove(t)}}static update(t){t.setNeedsUpdate();const e=this.getInstanceCollection(t.uuid);if(null!==e)for(const i of e){const e=this.get(i);e.syncWith(t),e.setNeedsUpdate()}}}o(a,"type","Prefab"),s.o.register(a)},72094:function(t,e,i){i.d(e,{g:function(){return l}});var s=i(64898),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i),a=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});class l{constructor(t){o(this,"_task"),o(this,"_status"),o(this,"_promise"),o(this,"_resolve"),o(this,"_reject"),this._task=null!=t?t:()=>a(this,null,function*(){}),this._status=1,this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}run(){return 1!==this._status||(this._status=2,Promise.resolve(this._task()).then(t=>{2===this._status&&(this._status=3,this._resolve(t))}).catch(t=>{2===this._status&&(this._status=4,this._reject(t))})),this._promise}cancel(){return(1===this._status||2===this._status)&&(this._status=5,this._reject&&this._reject(new Error(s.B.get("asyncTask.task.was.cancelled"))),!0)}done(){return this._promise}}},72968:function(t,e,i){i.d(e,{V:function(){return p},n:function(){return d}});var s=i(64898),n=i(13591),r=i(21865),o=i(72094),a=i(90154),l=Object.defineProperty,u=(t,e,i)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,c=(t,e,i)=>u(t,"symbol"!==typeof e?e+"":e,i),h=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const d={requestpPrefix:["http://","https://"],assetCache:new Map,idToUrlCache:new Map,providerCollection:new Map,assetFactoryCollection:new Map,taskCollection:new Map,activeAssets:[],parseStatus(t){const e=t.split("/"),i=e[e.length-1];return void 0===i?null:n.b.parseName(i.split("?")[0])}},f=class t{static fetch(t,e){return new Promise((i,s)=>h(null,null,function*(){const n=yield fetch(t,e);n.ok?i(n):s(t)}))}static dumpCache(){return[...d.assetCache.entries()]}static createVirtualUrl(t){return`/virtual:/${t}`}static provider(t,e){d.providerCollection.set(t,e)}static hasProvider(t){return d.providerCollection.has(t)}static register(t,e){d.assetFactoryCollection.set(t,e)}static joinUrl(e){for(const t of d.requestpPrefix)if(e.indexOf(t)>-1)return e;return`${t.baseUrl}${e}`}static load(t,e=!1){return h(this,null,function*(){const i=Array.isArray(t)?t:[t],n=[];for(const t of i){if(!t)continue;const i=this.get(t);if(!1===e&&null!==i)continue;const a=d.taskCollection.get(t);if(a){n.push(a.done());continue}const l=d.parseStatus(t);if(null===l)continue;let u=d.assetFactoryCollection.get(l.category);if(void 0===u)throw s.B.get("asset.load.fail",{category:l.category});const c=new o.g(()=>h(this,null,function*(){const i=yield u(t,e);this.set(t,i)}));d.taskCollection.set(t,c),n.push(c.run());try{yield c.done()}catch(r){console.log(r)}finally{d.taskCollection.delete(t)}}return Promise.all(n)})}static unload(t){const e=this.get(t);null!==e&&d.assetCache.delete(t)}static readly(){const t=d.taskCollection.values(),e=[];for(const i of t)e.push(i.done());return Promise.all(e)}static get(t){var e;return null!=(e=d.assetCache.get(t))?e:null}static set(t,e){d.assetCache.has(t)&&console.log(t,s.B.get("asset.already.exists")),d.assetCache.set(t,e),e instanceof r.oJ&&(d.idToUrlCache.set(e.uuid,t),this.graph.create(t))}static getTask(t){var e;return null!=(e=d.taskCollection.get(t))?e:null}static getUrlByUuid(t){var e;return null!=(e=d.idToUrlCache.get(t))?e:""}static activate(...t){d.activeAssets.push(...t)}static free(){d.activeAssets.length=0}static loadAll(e){return h(this,arguments,function*(e,i=!1,s=[]){yield t.load(e,i),t.graph.create(e),s.push(e);const n=t.graph.getDependencide(e),r=[];for(const o of n.all){if(s.includes(o))continue;const e=!t.get(o);r.push(this.loadAll(o,e,s))}yield Promise.all(r)})}};c(f,"baseUrl",""),c(f,"graph",new a.j);let p=f;const y=t=>h(null,null,function*(){const e=d.providerCollection.get(t);return void 0===e?null:yield e()}),g=t=>h(null,null,function*(){const e=yield y(t);if(null!==e)return e;const i=yield p.fetch(p.joinUrl(t)),s=yield i.text(),n=r.oJ.create(r.oJ.deserialization(s));return n});p.register(n.b.style,g),p.register(n.b.material,g),p.register(n.b.geometry,g),p.register(n.b.texture,g),p.register(n.b.prefab,g),p.register(n.b.routine,g);const m=t=>h(null,null,function*(){const e=yield g(t);return e.auto&&(yield e.fetch()),e});p.register(n.b.dataset,m);const v=t=>h(null,null,function*(){const e=yield p.fetch(p.joinUrl(t)),i=yield e.text();return r.oJ.deserialization(i)});p.register(n.b.json,v);const b=(t,e)=>new Promise((e,i)=>h(null,null,function*(){const s=p.joinUrl(t);try{const t=yield p.fetch(s),i=yield t.text(),n=r.oJ.create(r.oJ.deserialization(i));e(n)}catch(n){i(n)}}));p.register(n.b.scene,b);const x=t=>new Promise((e,i)=>h(null,null,function*(){try{const n=yield y(t);if(null===n)return i(s.B.get("asset.provider.notFound",{url:t}));const r=new n.default(t);yield r.ready(),e(r)}catch(n){i(n)}}));p.register(n.b.ts,x);const w=t=>h(null,null,function*(){const e=yield p.fetch(p.joinUrl(t));return yield e.arrayBuffer()});p.register(n.b.other,w)},74630:function(t,e,i){i.d(e,{P:function(){return l}});var s=i(1355),n=i(32952),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l{constructor(t=0,e=0,i=0){a(this,"x"),a(this,"y"),a(this,"z"),this.x=t,this.y=e,this.z=i}static create(t,e,i){return void 0===t?new l:"number"===typeof t?new l(t,e,i):new l(t.x,t.y,t.z)}set(t,e,i){return void 0===i&&(i=this.z),this.x=t,this.y=e,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(c.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(c.setFromAxisAngle(t,e))}applyMatrix4(t){const e=this.x,i=this.y,s=this.z,n=t.elements,r=1/(n[3]*e+n[7]*i+n[11]*s+n[15]);return this.x=(n[0]*e+n[4]*i+n[8]*s+n[12])*r,this.y=(n[1]*e+n[5]*i+n[9]*s+n[13])*r,this.z=(n[2]*e+n[6]*i+n[10]*s+n[14])*r,this}applyQuaternion(t){const e=this.x,i=this.y,s=this.z,n=t.x,r=t.y,o=t.z,a=t.w,l=2*(r*s-o*i),u=2*(o*e-n*s),c=2*(n*i-r*e);return this.x=e+a*l+r*c-o*u,this.y=i+a*u+o*l-n*c,this.z=s+a*c+n*u-r*l,this}project(t,e){return this.applyMatrix4(t).applyMatrix4(e)}unproject(t,e){return this.applyMatrix4(t).applyMatrix4(e)}transformDirection(t){const e=this.x,i=this.y,s=this.z,n=t.elements;return this.x=n[0]*e+n[4]*i+n[8]*s,this.y=n[1]*e+n[5]*i+n[9]*s,this.z=n[2]*e+n[6]*i+n[10]*s,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=(0,s.q)(this.x,t.x,e.x),this.y=(0,s.q)(this.y,t.y,e.y),this.z=(0,s.q)(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=(0,s.q)(this.x,t,e),this.y=(0,s.q)(this.y,t,e),this.z=(0,s.q)(this.z,t,e),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar((0,s.q)(i,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const i=t.x,s=t.y,n=t.z,r=e.x,o=e.y,a=e.z;return this.x=s*a-n*o,this.y=n*r-i*a,this.z=i*o-s*r,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return u.copy(this).projectOnVector(t),this.sub(u)}reflect(t){return this.sub(u.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const i=this.dot(t)/e;return Math.acos((0,s.q)(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y,s=this.z-t.z;return e*e+i*i+s*s}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,i){const s=Math.sin(e)*t;return this.x=s*Math.sin(i),this.y=Math.cos(e)*t,this.z=s*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),s=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=s,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromEuler(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}setFromColor(t){const e=t.toRgb();return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=2*Math.random()-1,i=Math.sqrt(1-e*e);return this.x=i*Math.cos(t),this.y=e,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const u=new l,c=new n.P},76299:function(t,e,i){i.d(e,{x:function(){return a}});var s=i(76644),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.S{constructor(t={}){var e,i,s,n;super(t),o(this,"camera"),o(this,"mode"),o(this,"target"),o(this,"event"),this.camera=null!=(e=t.camera)?e:"",this.mode=null!=(i=t.mode)?i:"",this.target=null!=(s=t.target)?s:"",this.event=null!=(n=t.event)?n:""}}o(a,"type","HTMLTransformController"),s.S.register(a)},76644:function(t,e,i){i.d(e,{S:function(){return a}});var s=i(38132),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.o{constructor(t={}){var e;super(t),o(this,"enabled"),this.enabled=null!=(e=t.enabled)&&e}}o(a,"type","Controller")},78506:function(t,e,i){i.r(e),i.d(e,{nodes:function(){return l},url:function(){return a}});var s=i(10692),n=i(21865),r=i(94499),o=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=s.Vd.createVirtualUrl("preset/graphics/invoke.routine.json"),l={invoke:"invoke"};let u=null;const c=()=>o(null,null,function*(){if(null===u){u=new n.YM;const t=r.graphics.invoke.createExecuteNode({id:l.invoke});u.nodes.push(t),u.roots.push(t.id)}return u});s.Vd.provider(a,c)},79351:function(t,e,i){i.d(e,{P:function(){return n}});var s=i(13507);const n=new s.r},79389:function(t,e,i){i.d(e,{k:function(){return u}});var s=i(74630),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);const a=1,l=2;class u{constructor(t,e,i,s,n,r,a,l,u,c,h,d,f,p,y,g){o(this,"elements"),this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==t&&this.set(t,e,i,s,n,r,a,l,u,c,h,d,f,p,y,g)}set(t,e,i,s,n,r,o,a,l,u,c,h,d,f,p,y){const g=this.elements;return g[0]=t,g[4]=e,g[8]=i,g[12]=s,g[1]=n,g[5]=r,g[9]=o,g[13]=a,g[2]=l,g[6]=u,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[15]=y,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new u).fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}copyPosition(t){const e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}extractBasis(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,i=t.elements,s=1/c.setFromMatrixColumn(t,0).length(),n=1/c.setFromMatrixColumn(t,1).length(),r=1/c.setFromMatrixColumn(t,2).length();return e[0]=i[0]*s,e[1]=i[1]*s,e[2]=i[2]*s,e[3]=0,e[4]=i[4]*n,e[5]=i[5]*n,e[6]=i[6]*n,e[7]=0,e[8]=i[8]*r,e[9]=i[9]*r,e[10]=i[10]*r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,i=t.x,s=t.y,n=t.z,r=Math.cos(i),o=Math.sin(i),a=Math.cos(s),l=Math.sin(s),u=Math.cos(n),c=Math.sin(n);if("XYZ"===t.order){const t=r*u,i=r*c,s=o*u,n=o*c;e[0]=a*u,e[4]=-a*c,e[8]=l,e[1]=i+s*l,e[5]=t-n*l,e[9]=-o*a,e[2]=n-t*l,e[6]=s+i*l,e[10]=r*a}else if("YXZ"===t.order){const t=a*u,i=a*c,s=l*u,n=l*c;e[0]=t+n*o,e[4]=s*o-i,e[8]=r*l,e[1]=r*c,e[5]=r*u,e[9]=-o,e[2]=i*o-s,e[6]=n+t*o,e[10]=r*a}else if("ZXY"===t.order){const t=a*u,i=a*c,s=l*u,n=l*c;e[0]=t-n*o,e[4]=-r*c,e[8]=s+i*o,e[1]=i+s*o,e[5]=r*u,e[9]=n-t*o,e[2]=-r*l,e[6]=o,e[10]=r*a}else if("ZYX"===t.order){const t=r*u,i=r*c,s=o*u,n=o*c;e[0]=a*u,e[4]=s*l-i,e[8]=t*l+n,e[1]=a*c,e[5]=n*l+t,e[9]=i*l-s,e[2]=-l,e[6]=o*a,e[10]=r*a}else if("YZX"===t.order){const t=r*a,i=r*l,s=o*a,n=o*l;e[0]=a*u,e[4]=n-t*c,e[8]=s*c+i,e[1]=c,e[5]=r*u,e[9]=-o*u,e[2]=-l*u,e[6]=i*c+s,e[10]=t-n*c}else if("XZY"===t.order){const t=r*a,i=r*l,s=o*a,n=o*l;e[0]=a*u,e[4]=-c,e[8]=l*u,e[1]=t*c+n,e[5]=r*u,e[9]=i*c-s,e[2]=s*c-i,e[6]=o*u,e[10]=n*c+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(d,t,f)}lookAt(t,e,i){const s=this.elements;return g.subVectors(t,e),0===g.lengthSq()&&(g.z=1),g.normalize(),p.crossVectors(i,g),0===p.lengthSq()&&(1===Math.abs(i.z)?g.x+=1e-4:g.z+=1e-4,g.normalize(),p.crossVectors(i,g)),p.normalize(),y.crossVectors(g,p),s[0]=p.x,s[4]=y.x,s[8]=g.x,s[1]=p.y,s[5]=y.y,s[9]=g.y,s[2]=p.z,s[6]=y.z,s[10]=g.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,s=e.elements,n=this.elements,r=i[0],o=i[4],a=i[8],l=i[12],u=i[1],c=i[5],h=i[9],d=i[13],f=i[2],p=i[6],y=i[10],g=i[14],m=i[3],v=i[7],b=i[11],x=i[15],w=s[0],C=s[4],M=s[8],P=s[12],z=s[1],_=s[5],S=s[9],D=s[13],O=s[2],A=s[6],k=s[10],j=s[14],R=s[3],V=s[7],T=s[11],I=s[15];return n[0]=r*w+o*z+a*O+l*R,n[4]=r*C+o*_+a*A+l*V,n[8]=r*M+o*S+a*k+l*T,n[12]=r*P+o*D+a*j+l*I,n[1]=u*w+c*z+h*O+d*R,n[5]=u*C+c*_+h*A+d*V,n[9]=u*M+c*S+h*k+d*T,n[13]=u*P+c*D+h*j+d*I,n[2]=f*w+p*z+y*O+g*R,n[6]=f*C+p*_+y*A+g*V,n[10]=f*M+p*S+y*k+g*T,n[14]=f*P+p*D+y*j+g*I,n[3]=m*w+v*z+b*O+x*R,n[7]=m*C+v*_+b*A+x*V,n[11]=m*M+v*S+b*k+x*T,n[15]=m*P+v*D+b*j+x*I,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[4],s=t[8],n=t[12],r=t[1],o=t[5],a=t[9],l=t[13],u=t[2],c=t[6],h=t[10],d=t[14],f=t[3],p=t[7],y=t[11],g=t[15];return f*(+n*a*c-s*l*c-n*o*h+i*l*h+s*o*d-i*a*d)+p*(+e*a*d-e*l*h+n*r*h-s*r*d+s*l*u-n*a*u)+y*(+e*l*c-e*o*d-n*r*c+i*r*d+n*o*u-i*l*u)+g*(-s*o*u-e*a*c+e*o*h+s*r*c-i*r*h+i*a*u)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,i){const s=this.elements;return"number"===typeof t?(s[12]=t,s[13]=e,s[14]=i):(s[12]=t.x,s[13]=t.y,s[14]=t.z),this}invert(){const t=this.elements,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],y=t[14],g=t[15],m=c*y*l-p*h*l+p*a*d-o*y*d-c*a*g+o*h*g,v=f*h*l-u*y*l-f*a*d+r*y*d+u*a*g-r*h*g,b=u*p*l-f*c*l+f*o*d-r*p*d-u*o*g+r*c*g,x=f*c*a-u*p*a-f*o*h+r*p*h+u*o*y-r*c*y,w=e*m+i*v+s*b+n*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const C=1/w;return t[0]=m*C,t[1]=(p*h*n-c*y*n-p*s*d+i*y*d+c*s*g-i*h*g)*C,t[2]=(o*y*n-p*a*n+p*s*l-i*y*l-o*s*g+i*a*g)*C,t[3]=(c*a*n-o*h*n-c*s*l+i*h*l+o*s*d-i*a*d)*C,t[4]=v*C,t[5]=(u*y*n-f*h*n+f*s*d-e*y*d-u*s*g+e*h*g)*C,t[6]=(f*a*n-r*y*n-f*s*l+e*y*l+r*s*g-e*a*g)*C,t[7]=(r*h*n-u*a*n+u*s*l-e*h*l-r*s*d+e*a*d)*C,t[8]=b*C,t[9]=(f*c*n-u*p*n-f*i*d+e*p*d+u*i*g-e*c*g)*C,t[10]=(r*p*n-f*o*n+f*i*l-e*p*l-r*i*g+e*o*g)*C,t[11]=(u*o*n-r*c*n-u*i*l+e*c*l+r*i*d-e*o*d)*C,t[12]=x*C,t[13]=(u*p*s-f*c*s+f*i*h-e*p*h-u*i*y+e*c*y)*C,t[14]=(f*o*s-r*p*s-f*i*a+e*p*a+r*i*y-e*o*y)*C,t[15]=(r*c*s-u*o*s+u*i*a-e*c*a-r*i*h+e*o*h)*C,this}scale(t){const e=this.elements,i=t.x,s=t.y,n=t.z;return e[0]*=i,e[4]*=s,e[8]*=n,e[1]*=i,e[5]*=s,e[9]*=n,e[2]*=i,e[6]*=s,e[10]*=n,e[3]*=i,e[7]*=s,e[11]*=n,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],s=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,s))}makeTranslation(t,e,i){return"number"===typeof t?this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1):this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const i=Math.cos(e),s=Math.sin(e),n=1-i,r=t.x,o=t.y,a=t.z,l=n*r,u=n*o;return this.set(l*r+i,l*o-s*a,l*a+s*o,0,l*o+s*a,u*o+i,u*a-s*r,0,l*a-s*o,u*a+s*r,n*a*a+i,0,0,0,0,1),this}makeScale(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,e,i,s,n,r){return this.set(1,i,n,0,t,1,r,0,e,s,1,0,0,0,0,1),this}compose(t,e,i){const s=this.elements,n=e.x,r=e.y,o=e.z,a=e.w,l=n+n,u=r+r,c=o+o,h=n*l,d=n*u,f=n*c,p=r*u,y=r*c,g=o*c,m=a*l,v=a*u,b=a*c,x=i.x,w=i.y,C=i.z;return s[0]=(1-(p+g))*x,s[1]=(d+b)*x,s[2]=(f-v)*x,s[3]=0,s[4]=(d-b)*w,s[5]=(1-(h+g))*w,s[6]=(y+m)*w,s[7]=0,s[8]=(f+v)*C,s[9]=(y-m)*C,s[10]=(1-(h+p))*C,s[11]=0,s[12]=t.x,s[13]=t.y,s[14]=t.z,s[15]=1,this}decompose(t,e,i){const s=this.elements;let n=c.set(s[0],s[1],s[2]).length();const r=c.set(s[4],s[5],s[6]).length(),o=c.set(s[8],s[9],s[10]).length(),a=this.determinant();a<0&&(n=-n),t.x=s[12],t.y=s[13],t.z=s[14],h.copy(this);const l=1/n,u=1/r,d=1/o;return h.elements[0]*=l,h.elements[1]*=l,h.elements[2]*=l,h.elements[4]*=u,h.elements[5]*=u,h.elements[6]*=u,h.elements[8]*=d,h.elements[9]*=d,h.elements[10]*=d,e.setFromRotationMatrix(h),i.x=n,i.y=r,i.z=o,this}makePerspective(t,e,i,s,n,r,o=a){const u=this.elements,c=2*n/(e-t),h=2*n/(i-s),d=(e+t)/(e-t),f=(i+s)/(i-s);let p,y;if(o===a)p=-(r+n)/(r-n),y=-2*r*n/(r-n);else{if(o!==l)throw new Error("Matrix4.makePerspective(): Invalid coordinate system: "+o);p=-r/(r-n),y=-r*n/(r-n)}return u[0]=c,u[4]=0,u[8]=d,u[12]=0,u[1]=0,u[5]=h,u[9]=f,u[13]=0,u[2]=0,u[6]=0,u[10]=p,u[14]=y,u[3]=0,u[7]=0,u[11]=-1,u[15]=0,this}makeOrthographic(t,e,i,s,n,r,o=a){const u=this.elements,c=1/(e-t),h=1/(i-s),d=1/(r-n),f=(e+t)*c,p=(i+s)*h;let y,g;if(o===a)y=(r+n)*d,g=-2*d;else{if(o!==l)throw new Error("Matrix4.makeOrthographic(): Invalid coordinate system: "+o);y=n*d,g=-1*d}return u[0]=2*c,u[4]=0,u[8]=0,u[12]=-f,u[1]=0,u[5]=2*h,u[9]=0,u[13]=-p,u[2]=0,u[6]=0,u[10]=g,u[14]=-y,u[3]=0,u[7]=0,u[11]=0,u[15]=1,this}equals(t){const e=this.elements,i=t.elements;for(let s=0;s<16;s++)if(e[s]!==i[s])return!1;return!0}fromArray(t,e=0){for(let i=0;i<16;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}const c=new s.P,h=new u,d=new s.P(0,0,0),f=new s.P(1,1,1),p=new s.P,y=new s.P,g=new s.P},81789:function(t,e,i){i.d(e,{Ag:function(){return s.A},NA:function(){return a.N},TD:function(){return l.T},XI:function(){return n.X},ZQ:function(){return c.Z},aj:function(){return o.a},g1:function(){return r.g},u2:function(){return u.u}});var s=i(83912),n=i(69251),r=i(2320),o=i(92904),a=i(62769),l=i(82769),u=i(82782),c=i(3615)},82769:function(t,e,i){i.d(e,{T:function(){return l}});var s=i(21865),n=i(62769),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.N{constructor(t){super(t),a(this,"_text",null),a(this,"_wrapper",null),a(this,"DOM"),this.DOM=this.createDOM();const e=this.getWrapper();e.appendChild(this.DOM)}get text(){return null===this._text&&(this._text=document.createTextNode("")),this._text}createWrapper(){const t=document.createElement("div");return t.setAttribute("class",n.N.className),t.setAttribute(n.N.uuidKey,this.uuid),t}getWrapper(){return null===this._wrapper&&(this._wrapper=this.createWrapper()),this._wrapper}add(t){if(t instanceof n.N){const e=t.getWrapper();if(null===e)return;if(this.DOM.contains(e))return;this.DOM.appendChild(e)}}remove(t){if(t instanceof n.N){const e=t.getWrapper();if(null===e)return;this.DOM.contains(e)&&this.DOM.removeChild(e)}}update(t,e){const i=this.getWrapper(),n=this.getWrapperStyle(t,e);this.setHTMLStyle(i,n),this.setHTMLInteraction(i,t,e),this.setHTMLStyle(this.DOM,this.getLayoutStyle(t,e));const r=[...this.getStyleClass(t,e)];t.active&&r.push(s.Jf.activeName),this.setStyleClass(this.DOM,r),this.DOM.style.backgroundImage=t.backroundIamge?`url(${t.backroundIamge})`:"",this.text.textContent=t.text,!1===this.DOM.contains(this.text)&&this.DOM.appendChild(this.text)}}},82782:function(t,e,i){i.d(e,{u:function(){return l}});var s=i(21865),n=i(62769),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);class l extends n.N{constructor(t){super(t),a(this,"_wrapper",null),a(this,"DOM"),this.DOM=this.createDOM();const e=this.getWrapper();e.appendChild(this.DOM)}createWrapper(){const t=document.createElement("div");return t.setAttribute("class",n.N.className),t.setAttribute(n.N.uuidKey,this.uuid),t}getWrapper(){return null===this._wrapper&&(this._wrapper=this.createWrapper()),this._wrapper}add(t){if(t instanceof n.N){const e=t.getWrapper();if(null===e)return;if(this.DOM.contains(e))return;this.DOM.appendChild(e)}}remove(t){if(t instanceof n.N){const e=t.getWrapper();if(null===e)return;this.DOM.contains(e)&&this.DOM.removeChild(e)}}update(t,e){const i=this.getWrapper();this.setHTMLStyle(i,this.getWrapperStyle(t,e));const n=[...this.getStyleClass(t,e)];t.active&&n.push(s.Jf.activeName),this.setStyleClass(this.DOM,n)}}},83792:function(t,e,i){i.d(e,{B:function(){return u}});var s=i(21865),n=i(81789),r=i(27740),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends r.${constructor(){super(...arguments),l(this,"resize",()=>{}),l(this,"unresize",()=>{})}createActor(t,e){const i=new n.TD(t.uuid);return i}install(t,e){const i=this.getActor(t,e),s=i.getWrapper();this.graphics.engine.DOM.appendChild(s),this.resize=()=>{s.style.width=this.graphics.engine.DOM.clientWidth+"px",s.style.height=this.graphics.engine.DOM.clientHeight+"px",i.DOM.style.width="100%",i.DOM.style.height="100%"};const n=this.graphics.engine.inputSystem.listen("resize",this.resize,{target:window});this.unresize=()=>this.graphics.engine.inputSystem.unlisten(n),this.resize()}uninstall(t,e){this.unresize();const i=this.getActor(t,e),s=i.getWrapper();s.remove()}}l(u,"type",s.K4.type),r.$.register(u)},83880:function(t,e,i){i.r(e),i.d(e,{graphics:function(){return n},scheduler:function(){return s}});var s=i(2538),n=i(38528)},83912:function(t,e,i){i.d(e,{A:function(){return a}});var s=Object.defineProperty,n=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>n(t,"symbol"!==typeof e?e+"":e,i);const o={idBuilder:0,collection:new Map};class a{constructor(){r(this,"id",o.idBuilder++),r(this,"object")}static seGraphics(t,e){o.collection.set(t.id,e)}static getGraphics(t){var e;return null!=(e=o.collection.get(t.id))?e:null}static deleteGraphics(t){o.collection.delete(t.id)}add(t){}remove(t){}}},85337:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(38132),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.o{constructor(t={}){var e,i,s;super(t),o(this,"url"),o(this,"dataConfig"),o(this,"dataPath"),this.url=null!=(e=t.url)?e:"",this.dataConfig=null!=(i=t.dataConfig)?i:1,this.dataPath=null!=(s=t.dataPath)?s:""}}o(a,"type","Dynamic"),s.o.register(a)},86487:function(t,e,i){i.d(e,{f:function(){return a}});var s=i(2181),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.P{constructor(t={}){var e,i;super(t),o(this,"text"),o(this,"backroundIamge"),this.text=null!=(e=t.text)?e:"",this.backroundIamge=null!=(i=t.backroundIamge)?i:""}}o(a,"type","Div"),s.P.register(a)},89219:function(t,e,i){i.d(e,{V:function(){return a}});var s=i(32432),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.K{constructor(t={}){super(t)}}o(a,"type","Camera")},89237:function(t,e,i){i.d(e,{X:function(){return l}});var s=i(38132),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);const a=class t extends s.o{constructor(t={}){var e;super(t),o(this,"url"),this.url=null!=(e=t.url)?e:""}static fromPrefab(e,i){const n=s.o.cloneAndFixReferences(i),r=new t({name:n.name?`${n.name}-prefab`:"prefab",interactions:n.interactions,prefab:n.prefab,url:e});return r.add(...n.children),r}};o(a,"type","PrefabInstance");let l=a;s.o.register(l)},89508:function(t,e,i){i.d(e,{Y:function(){return a}});var s=i(21865),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a extends s.oJ{constructor(t={}){super(t),o(this,"roots"),o(this,"nodes"),o(this,"mappers"),this.roots=t.roots?s.oJ.deepClone(t.roots):[],this.nodes=t.nodes?s.oJ.deepClone(t.nodes):[],this.mappers=t.mappers?s.oJ.deepClone(t.mappers):[]}addNode(t){const e=t.length,i=e-1;for(let s=0;s<e;s++){const e=t[s];this.nodes.push(e),s<i&&this.mappers.push({source:e.id,target:t[s+1].id})}}}o(a,"type","Routine"),s.oJ.register(a)},90154:function(t,e,i){i.d(e,{F:function(){return d},j:function(){return f}});var s=i(72968),n=i(13591),r=i(48393),o=i(97338),a=i(21865),l=Object.defineProperty,u=(t,e,i)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,c=(t,e,i)=>u(t,"symbol"!==typeof e?e+"":e,i);const h={providerCollection:new Map};class d{constructor(){c(this,"all",[]),c(this,"descriptor",[]),c(this,"prefab",[]),c(this,"dataset",[]),c(this,"style",[]),c(this,"routine",[]),c(this,"texture",[]),c(this,"material",[]),c(this,"geometry",[])}add(t,e){const i=this[t];if(void 0===i)return console.warn(t,e);i.push(e),this.descriptor.push(e)}foreach(t){for(const e of this.dataset)t(e);for(const e of this.style)t(e);for(const e of this.routine)t(e);for(const e of this.texture)t(e);for(const e of this.material)t(e);for(const e of this.geometry)t(e)}clear(){this.all.length=0,this.descriptor.length=0,this.prefab.length=0,this.dataset.length=0,this.style.length=0,this.routine.length=0,this.texture.length=0,this.material.length=0,this.geometry.length=0}}class f{constructor(){c(this,"_dependencideCollection",new Map),c(this,"_dependentCollection",new Map)}static build(t,e){let i=t.constructor;while(i.prototype instanceof o.iy){const s=h.providerCollection.get(i.type);i=Object.getPrototypeOf(i),void 0!==s&&s(t,e)}}static register(t,e){h.providerCollection.set(t,e)}static get(t,e=[]){const i={descriptor:t.uuid,edges:[]};return this.build(t,i),i.edges.length>0&&e.push(i),e}getDescriptor(t){return s.V.get(t)}compiler(t){const e={url:t,uuid:"",ports:[]},i=this.getDescriptor(t);return i instanceof a.oJ&&(e.uuid=i.uuid,this.build(i,e.ports)),e}setCell(t,e){let i=this._dependentCollection.get(t);void 0===i?(i=[e],this._dependentCollection.set(t,i)):r.l.insert(i,e)}deleteCell(t,e){let i=this._dependentCollection.get(t);void 0!==i&&r.l.remove(i,e)}collection(t,e,i,s){const n=e.all.indexOf(t);n>-1||(e.all.push(t),i&&e.add(s,t),this.getDependencide(t,e))}get(t){var e;return null!=(e=this._dependencideCollection.get(t))?e:null}create(t){this.delete(t);const e=this.compiler(t);this._dependencideCollection.set(t,e);for(const i of e.ports)for(const t of i.edges)this.setCell(t.asset,e)}build(t,e=[]){return t.traverse(t=>{f.get(t,e)}),e}update(t){this.delete(t),this.create(t)}delete(t){const e=this._dependencideCollection.get(t);if(void 0!==e){this._dependencideCollection.delete(t);for(const t of e.ports)for(const i of t.edges)this.deleteCell(i.asset,e)}}getDependencidesByPorts(t,e=new d){if(0===t.length)return e;for(const i of t)for(const t of i.edges){const i=n.b.isDescriptor(t.category,"category");this.collection(t.asset,e,i,t.category)}return e}getDependencide(t,e=new d){const i=this._dependencideCollection.get(t);return void 0===i||this.getDependencidesByPorts(i.ports,e),e}getDependents(t){var e;return null!=(e=this._dependentCollection.get(t))?e:[]}getUrlCells(t,e=[]){for(const i of t){const t=this.getDependents(i);t.length>0&&e.push({url:i,cells:t})}return e}forEdge(t,e){for(const i of t.ports)for(const t of i.edges)e(i,t)}hasAssetReference(t,e){for(const i of t.edges)if(Array.isArray(i.asset)){for(const t of i.asset)if(t===e)return!0}else if(i.asset===e)return!0;return!1}}},90559:function(t,e,i){i.r(e),i.d(e,{request:function(){return s}});var s=i(31622)},91521:function(t,e,i){i.r(e),i.d(e,{createExecuteInput:function(){return u},createExecuteNode:function(){return c},scriptable:function(){return a}});var s=i(64898),n=i(10692),r=i(17244),o=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=n.Vd.createVirtualUrl("preset/scheduler/switch.ts");class l extends r.e{execute(t,e,i){return o(this,null,function*(){var t,s;const r=null==(s=null==(t=i.input)?void 0:t.user)?void 0:s.url.value;if(!r)return;yield n.Vd.loadAll(r);const o=n.Vd.get(r);e.engine.switch(o)})}}n.Vd.provider(a,()=>o(null,null,function*(){return{default:l}}));const u=(t={})=>{var e;const i={url:{value:null!=(e=t.url)?e:""}};return i},c=t=>{var e,i,n,r;const o={id:t.id,label:s.B.get(a),position:{x:null!=(i=null==(e=null==t?void 0:t.position)?void 0:e.x)?i:20,y:null!=(r=null==(n=null==t?void 0:t.position)?void 0:n.y)?r:20},routine:"Execute",url:a,input:u(t.input)};return o}},91881:function(t,e,i){i.d(e,{K:function(){return h}});var s=i(21865),n=i(81789),r=i(27740),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);let u=null;const c=class t extends r.${constructor(t,e){super(t,e),l(this,"className"),this.className=`vyr_${t.uuid}`}static get sheet(){if(null===u){const t=document.createElement("style");t.setAttribute("type","text/css"),document.head.appendChild(t),u=t.sheet}return u}static insertRule(e){for(const i of e)this.sheet.insertRule(i,t.sheet.cssRules.length)}createActor(t,e){return new n.XI}update(e,i){super.update(e,i);const s=this.getActor(e,i);if(s.update(e,this.className),!0===s.updateRule(t.sheet))return;const n=s.getStyleValue();t.insertRule(n)}free(e,i){const s=[`.${this.className}`,`.${this.className}:hover`];for(let n=t.sheet.cssRules.length-1;n>=0;n--){const e=t.sheet.cssRules[n];if(e instanceof CSSStyleRule){const i=s.indexOf(e.selectorText);if(i>-1&&(t.sheet.deleteRule(i),s.splice(i,1),0===s.length))return}}super.free(e,i)}};l(c,"type",s.Jf.type);let h=c;r.$.register(h)},92904:function(t,e,i){i.d(e,{a:function(){return u}});var s=i(21865),n=i(48393),r=i(83912),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends r.A{constructor(){super(...arguments),l(this,"_parent",""),l(this,"collection",[])}bind(t){this._parent=t}unbind(){if(""===this._parent)return;const t=r.A.getGraphics(this),e=s.oJ.get(this._parent);if(e instanceof s.oJ){const i=t.getActor(e,{delta:0});if(null!==i)for(const t of this.collection)i.remove(t)}this.collection.length=0,this._parent=""}add(t){if(t instanceof u)return;const e=r.A.getGraphics(this),i=s.oJ.get(this._parent);if(i instanceof s.oJ){const s=e.getActor(i,{delta:0});null!==s&&s.add(t)}n.l.insert(this.collection,t)}remove(t){if(t instanceof u)return;const e=r.A.getGraphics(this),i=s.oJ.get(this._parent);if(i instanceof s.oJ){const s=e.getActor(i,{delta:0});null!==s&&s.remove(t)}n.l.remove(this.collection,t)}}},93835:function(t,e,i){i.r(e),i.d(e,{createExecuteInput:function(){return h},createExecuteNode:function(){return d},scriptable:function(){return u}});var s=i(64898),n=i(10692),r=i(21865),o=i(17244),a=i(13591),l=(t,e,i)=>new Promise((s,n)=>{var r=t=>{try{a(i.next(t))}catch(e){n(e)}},o=t=>{try{a(i.throw(t))}catch(e){n(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const u=n.Vd.createVirtualUrl("preset/dataset/update.ts");class c extends o.e{execute(t,e,i){return l(this,null,function*(){var t,e;const{input:s,result:o}=i,a=null!=(e=null==(t=null==s?void 0:s.user)?void 0:t.url.value)?e:s.default.url.value,l=o.get(s.previous),u=n.Vd.get(a);return u instanceof r.Y2&&l&&u.setData(l),{}})}}n.Vd.provider(u,()=>l(null,null,function*(){return{default:c}}));const h=(t={})=>{var e;const i={url:{value:null!=(e=t.url)?e:"",type:a.b.dataset}};return i},d=t=>{var e,i,n,r;const o={id:t.id,label:s.B.get(u),position:{x:null!=(i=null==(e=null==t?void 0:t.position)?void 0:e.x)?i:20,y:null!=(r=null==(n=null==t?void 0:t.position)?void 0:n.y)?r:20},routine:"Execute",url:u,input:h(t.input)};return o}},94233:function(t,e,i){i.d(e,{r:function(){return o}});var s=Object.defineProperty,n=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>n(t,"symbol"!==typeof e?e+"":e,i);class o{constructor(){r(this,"instanceCollection",new Map)}set(t){this.instanceCollection.set(t.uuid,t)}delete(t){this.instanceCollection.delete(t)}get(t){return this.instanceCollection.get(t)}values(){return[...this.instanceCollection.values()]}}},94499:function(t,e,i){i.r(e),i.d(e,{dataset:function(){return n},graphics:function(){return o},net:function(){return s},scheduler:function(){return r}});var s=i(90559),n=i(95920),r=i(27761),o=i(35793)},95920:function(t,e,i){i.r(e),i.d(e,{update:function(){return s}});var s=i(93835)},95997:function(t,e,i){i.d(e,{I:function(){return a}});var s=i(1355),n=Object.defineProperty,r=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>r(t,"symbol"!==typeof e?e+"":e,i);class a{constructor(t=0,e=0){o(this,"x"),o(this,"y"),this.x=t,this.y=e}static create(t,e){return void 0===t?new a:"number"===typeof t?new a(t,e):new a(t.x,t.y)}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=(0,s.q)(this.x,t.x,e.x),this.y=(0,s.q)(this.y,t.y,e.y),this}clampScalar(t,e){return this.x=(0,s.q)(this.x,t,e),this.y=(0,s.q)(this.y,t,e),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar((0,s.q)(i,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){const t=Math.atan2(-this.y,-this.x)+Math.PI;return t}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const i=this.dot(t)/e;return Math.acos((0,s.q)(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y;return e*e+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}rotateAround(t,e){const i=Math.cos(e),s=Math.sin(e),n=this.x-t.x,r=this.y-t.y;return this.x=n*i-r*s+t.x,this.y=n*s+r*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}},97338:function(t,e,i){i.d(e,{Sh:function(){return h},iy:function(){return d},pU:function(){return c}});var s=i(47552),n=i(14291),r=Object.defineProperty,o=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>o(t,"symbol"!==typeof e?e+"":e,i);const l={instances:new Map,freeWatcher:[],monitoring:()=>{let t=0;const e=()=>{setTimeout(e,5e3);const i=[...l.instances.keys()],s=i.length;t>=s&&(t=0);let n=0,r=t;const o=performance.now();while(n<500&&performance.now()-o<5){if(r>=s)break;n++;const e=i[r++];null===d.get(e)?h(e):t++}};e()}},u=t=>"editor"===window["__VYR_RUNTIME_MODE"]?(0,n.Kh)(t):t,c=(t,e)=>{switch(t){case"free":l.freeWatcher.push(e);break;default:break}},h=t=>{const e=l.instances.get(t);if(void 0!==e){for(const e of l.freeWatcher)e(t);l.instances.delete(t)}};class d{constructor(t=s.w.uuid()){a(this,"uuid");const e=d.get(t);if(null!==e)return e.beenInstantiated(e),e;this.uuid=t,l.instances.set(t,new WeakRef(this))}static get(t){var e;const i=l.instances.get(t);return void 0===i?null:null!=(e=u(i.deref()))?e:null}beenInstantiated(t){}}l.monitoring()},98415:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(21865),n=i(27740),r=i(81789),o=Object.defineProperty,a=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>a(t,"symbol"!==typeof e?e+"":e,i);class u extends n.${createActor(t,e){return new r.TD(t.uuid)}update(t,e){super.update(t,e);const i=this.getActor(t,e);i.update(t,e)}mount(t,e,i,s){super.mount(t,e,i,s);const n=this.getActor(t,e),r=i.getActor(s,e);r.add(n)}unmount(t,e,i,s){const n=this.getActor(t,e);n.clearStyleClass(n.DOM),n.cleanInteraction();const r=i.getActor(s,e);r.remove(n),super.unmount(t,e,i,s)}pickup(t,e,i){i.push({uuid:t.uuid,generatedBy:t.generatedBy})}}l(u,"type",s.fX.type),n.$.register(u)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";var e={75133:function(e){e.exports=window["__VYR_RUNTIME_@vyr/locale"]},92008:function(e,n,t){var r=t(46269),o=t(89168),a=t(75133),i=(e,n,t)=>new Promise((r,o)=>{var a=e=>{try{u(t.next(e))}catch(n){o(n)}},i=e=>{try{u(t.throw(e))}catch(n){o(n)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);u((t=t.apply(e,n)).next())});const u=[{name:"__VYR_RUNTIME_@vyr/runtime",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(7713)]).then(t.bind(t,81336))})},{name:"__VYR_RUNTIME_vue",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(7227),t.e(7409),t.e(7390)]).then(t.bind(t,57390))})},{name:"__VYR_RUNTIME_three",load:()=>i(null,null,function*(){return Promise.all([t.e(1696),t.e(6315)]).then(t.bind(t,96315))})},{name:"__VYR_RUNTIME_three/examples/jsm/renderers/CSS3DRenderer.js",load:()=>i(null,null,function*(){return Promise.all([t.e(1696),t.e(2521)]).then(t.bind(t,62521))})},{name:"__VYR_RUNTIME_postprocessing",load:()=>i(null,null,function*(){return Promise.all([t.e(1696),t.e(7692)]).then(t.bind(t,67692))})},{name:"__VYR_RUNTIME_@vyr/engine",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931)]).then(t.bind(t,50931))})},{name:"__VYR_RUNTIME_@vyr/design",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(7227),t.e(7409),t.e(1111),t.e(2132)]).then(t.bind(t,32132))})},{name:"__VYR_RUNTIME_@vyr/builtin",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(7409),t.e(1111),t.e(8093),t.e(6968)]).then(t.bind(t,21275))})},{name:"__VYR_RUNTIME_@vyr/service",load:()=>i(null,null,function*(){return t.e(7167).then(t.bind(t,87167))})},{name:"__VYR_RUNTIME_@vyr/remote",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(4530),t.e(2328)]).then(t.bind(t,92328))})},{name:"__VYR_RUNTIME_@vyr/service-rpc",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(4582),t.e(3785)]).then(t.bind(t,93785))})},{name:"__VYR_RUNTIME_@vyr/service-asset",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(1018)]).then(t.bind(t,34753))})},{name:"__VYR_RUNTIME_@vyr/service-scene",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(150)]).then(t.bind(t,92601))})},{name:"__VYR_RUNTIME_@vyr/service-graph",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4263),t.e(1124)]).then(t.bind(t,89974))})}],f=()=>i(null,null,function*(){const e=yield o.A.get("/cli/getConfig");return e.data}),c=()=>i(null,null,function*(){const e=yield f();for(const t of e.languageProviders)a.Locale.register(t);a.Locale.use(e.language);const n=[];for(const t of u){const e=t.load().then(e=>window[t.name]=e);n.push(e)}return yield Promise.all(n),e}),l=()=>i(null,null,function*(){const e=yield c();(0,r.Ts)({name:"editor",remotes:[{name:"extension",entry:"/extension/js/entry.js"},...e.browserPlugin.extension]});const n=[yield(0,r.dh)("extension")];for(const t of e.browserPlugin.extension)n.push(yield(0,r.dh)(t.name));const{run:o}=yield Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(7409),t.e(1111),t.e(8093),t.e(4263),t.e(9157)]).then(t.bind(t,99157));o("#app",n,e)});window["__VYR_RUNTIME_MODE"]="editor",l()}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={exports:{}};return e[r].call(a.exports,a,a.exports,t),a.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,a){if(!r){var i=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],a=e[l][2];for(var u=!0,f=0;f<r.length;f++)(!1&a||i>=a)&&Object.keys(t.O).every(function(e){return t.O[e](r[f])})?r.splice(f--,1):(u=!1,a<i&&(i=a));if(u){e.splice(l--,1);var c=o();void 0!==c&&(n=c)}}return n}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[r,o,a]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){var e,n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};t.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);t.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&o&&r;("object"==typeof u||"function"==typeof u)&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return r[e]}});return i["default"]=function(){return r},t.d(a,i),a}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce(function(n,r){return t.f[r](e,n),n},[]))}}(),function(){t.u=function(e){return"js/"+e+"."+{88:"4db81116",112:"43f83ad0",150:"0eb50ff3",220:"332f13be",250:"369da5c4",530:"b4e0e136",677:"618fc137",800:"7696b6c7",931:"88800e05",1008:"1212a92b",1018:"094a4eaf",1048:"959d2b15",1060:"331f9a15",1111:"8555bd5c",1124:"4cf01e6d",1176:"03ce189a",1320:"11b1f843",1346:"07f056a0",1349:"8c9198a0",1376:"c78b811b",1384:"330a9809",1402:"4e06e186",1583:"e8f36a93",1592:"2007c851",1696:"67999338",1704:"a712bcfe",1877:"41a30a46",1978:"d78b7ff2",2024:"61ad4ff8",2132:"0f13c789",2264:"74826096",2320:"01b45f7e",2328:"91f4fab2",2424:"1b901127",2472:"fd550726",2505:"b43421df",2521:"64e8a1c3",2576:"af7b57dd",2674:"a0fefa3b",2808:"2a6f1a99",2868:"2c921d66",2958:"148f2f28",3084:"f01b8161",3124:"865bbeea",3160:"ad6a00b2",3328:"0e752372",3416:"59bed435",3454:"fc17644a",3507:"aafa886d",3785:"151db669",3792:"c95b5a4d",3944:"0eafa506",4040:"bd29cbd3",4124:"1c353188",4171:"ecaed70c",4196:"1ecc5bb3",4230:"d1f2577c",4263:"870a448a",4288:"cfaa98a7",4291:"cea6a8d5",4296:"634b3fe2",4416:"8faeee6a",4490:"afacfe53",4530:"60b7c78d",4570:"312d27c5",4582:"a686fadd",4744:"fb66347f",4764:"df45c000",4786:"89599e34",4816:"cd55469f",4872:"0bafb3d5",4900:"cdee80ca",5354:"9e7d2a59",5388:"ba7b29bd",5620:"4ebcd1ef",5639:"7661231d",5694:"4e720480",5696:"1ec004f6",5768:"ff6d1da1",5788:"fb009553",5804:"a7530102",5888:"e88a2170",5918:"fd8226fe",6136:"a7604e8a",6234:"8760a038",6248:"d7c77c1a",6308:"358e0a94",6315:"81f5e202",6357:"1354eb2c",6476:"133083f0",6488:"a1bb6380",6552:"af7ecaa3",6600:"66570635",6720:"7e4d97d6",6827:"62f794a0",6937:"53af487b",6968:"07bbc3cd",7128:"bddbefa5",7132:"784f034a",7167:"ba37f9e6",7195:"7a9c1589",7227:"9320ac5b",7380:"378a750c",7390:"cb73108e",7409:"871dc004",7494:"0fecaf55",7692:"217959b6",7713:"e38c75be",7820:"84cbe06d",7960:"6e25b569",7980:"816096c5",8004:"80b538a1",8030:"70f27b26",8093:"b4466960",8328:"d2170039",8344:"e4b1e024",8366:"2854dcb7",8438:"72c0fcbf",8550:"69a717cc",8554:"1dbe7424",8632:"da334e90",8657:"d3a8799b",8856:"9f70af00",9020:"b3a4d09b",9044:"73639ece",9157:"58a8fa2d",9256:"85fca918",9339:"d75f7c2e",9384:"adddd8c7",9620:"e7e75a12",9842:"d1ed9070"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{530:"e132216c",1060:"a79f9d80",1111:"7f5086f2",1124:"b91daf98",1583:"69c975fc",2505:"39376622",4296:"963f15af",6357:"7bd0168e",6827:"7d5b54a4",8093:"21e188eb",9157:"971090af",9339:"e14b8c45"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="@vyr/cli:";t.l=function(r,o,a,i){if(e[r])e[r].push(o);else{var u,f;if(void 0!==a)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var d=c[l];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+a){u=d;break}}u||(f=!0,u=document.createElement("script"),u.charset="utf-8",t.nc&&u.setAttribute("nonce",t.nc),u.setAttribute("data-webpack",n+a),u.src=r),e[r]=[o];var s=function(n,t){u.onerror=u.onload=null,clearTimeout(b);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach(function(e){return e(t)}),n)return n(t)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=s.bind(null,u.onerror),u.onload=s.bind(null,u.onload),f&&document.head.appendChild(u)}}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){t.j=3057}(),function(){t.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,n,r,o,a){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",t.nc&&(i.nonce=t.nc);var u=function(t){if(i.onerror=i.onload=null,"load"===t.type)o();else{var r=t&&t.type,u=t&&t.target&&t.target.href||n,f=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+u+")");f.name="ChunkLoadError",f.code="CSS_CHUNK_LOAD_FAILED",f.type=r,f.request=u,i.parentNode&&i.parentNode.removeChild(i),a(f)}};return i.onerror=i.onload=u,i.href=n,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},n=function(e,n){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++){var o=t[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===n))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){o=i[r],a=o.getAttribute("data-href");if(a===e||a===n)return o}},r=function(r){return new Promise(function(o,a){var i=t.miniCssF(r),u=t.p+i;if(n(i,u))return o();e(r,u,null,o,a)})},o={3057:0};t.f.miniCss=function(e,n){var t={530:1,1060:1,1111:1,1124:1,1583:1,2505:1,4296:1,6357:1,6827:1,8093:1,9157:1,9339:1};o[e]?n.push(o[e]):0!==o[e]&&t[e]&&n.push(o[e]=r(e).then(function(){o[e]=0},function(n){throw delete o[e],n}))}}}(),function(){var e={3057:0};t.f.j=function(n,r){var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(function(t,r){o=e[n]=[t,r]});r.push(o[2]=a);var i=t.p+t.u(n),u=new Error,f=function(r){if(t.o(e,n)&&(o=e[n],0!==o&&(e[n]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;u.message="Loading chunk "+n+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,o[1](u)}};t.l(i,f,"chunk-"+n,n)}},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,a,i=r[0],u=r[1],f=r[2],c=0;if(i.some(function(n){return 0!==e[n]})){for(o in u)t.o(u,o)&&(t.m[o]=u[o]);if(f)var l=f(t)}for(n&&n(r);c<i.length;c++)a=i[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(l)},r=self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var r=t.O(void 0,[504],function(){return t(92008)});r=t.O(r)})();
|