@vyr/cli 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/install/index.js +3 -1
- package/.entry/app.js +362 -362
- package/build/index.html +1 -1
- package/build/js/931.09e04575.js +1 -0
- package/build/js/{index.77bb7122.js → index.6cb830e4.js} +1 -1
- package/build/js/login.4d576dfd.js +1 -0
- package/build/js/{preview.083440fd.js → preview.af183c66.js} +1 -1
- package/build/login.html +1 -1
- package/build/preview.html +1 -1
- package/package.json +82 -81
- package/build/js/931.df399aa1.js +0 -1
- package/build/js/login.740a9725.js +0 -1
- package/pack/auto-provider-plugin/index.js +0 -38
- package/pack/auto-provider-plugin/loader.js +0 -53
- package/pack/auto-provider-plugin/package.json +0 -1
- package/pack/class-wrapper-plugin/index.js +0 -42
- package/pack/class-wrapper-plugin/loaders/descriptor.js +0 -89
- package/pack/class-wrapper-plugin/loaders/dynamic-interpreter.js +0 -54
- package/pack/class-wrapper-plugin/loaders/index.js +0 -30
- package/pack/class-wrapper-plugin/loaders/input-system.js +0 -31
- package/pack/class-wrapper-plugin/loaders/object-pool.js +0 -79
- package/pack/class-wrapper-plugin/package.json +0 -1
- package/pack/class-wrapper-plugin/utils.js +0 -79
- package/pack/rollup-config-plugin/build/index.d.ts +0 -3
- package/pack/rollup-config-plugin/build/index.js +0 -34
- package/pack/rollup-config-plugin/package.json +0 -1
- package/pack/rollup-config-plugin/src/index.ts +0 -47
- package/pack/rollup-config-plugin/tsconfig.json +0 -31
- package/pack/var-rename-plugin/index.js +0 -74
- package/pack/var-rename-plugin/package.json +0 -1
package/build/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><link rel="icon" href="favicon.ico"/><title>vyr</title><script src="./deps/socket.js"></script><script src="./deps/locale.js"></script><script defer="defer" src="js/chunk-vendors.fea3dfe0.js"></script><script defer="defer" src="js/index.
|
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><link rel="icon" href="favicon.ico"/><title>vyr</title><script src="./deps/socket.js"></script><script src="./deps/locale.js"></script><script defer="defer" src="js/chunk-vendors.fea3dfe0.js"></script><script defer="defer" src="js/index.6cb830e4.js"></script></head><body><noscript><strong>We're sorry but @vyr/cli doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[931],{1355:function(t,e,i){function n(t,e,i){return Math.max(e,Math.min(i,t))}i.d(e,{q:function(){return n}})},2181:function(t,e,i){i.d(e,{P:function(){return u}});var n=i(64006),s=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 s.o{constructor(t={}){var e,i,s,o,a,u,c,h,d,f,p,y,g,m,v,x,b,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!=(s=t.style)?s:"",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!=(x=t.hUnit)?x:"px",this.position=null!=(b=t.position)?b:"static",this.location=n.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=n.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 n=i(64006),s=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 n=e-this.startTime;if(n<0)return void(this.uptime=e);const s=n/this.duration;let o;o=s>this.count?2===this.mode?this.count%2===1?1:0:1:this.getRadio(s%1,Math.floor(s)),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 n.I9(...t.frameData.startValue),new n.I9(...t.frameData.endValue));case"vector3":return new m(t,new n.Pq(...t.frameData.startValue),new n.Pq(...t.frameData.endValue));case"euler":return new w(t,new n.O9(...t.frameData.startValue),new n.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=s.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 n=0;n<=i;n++)if(n===i){const i=this.keys[n];if(void 0===e[i])return;t(e,i),this.target.setNeedsUpdate()}else if(e=e[this.keys[n]],!e)return}reset(t=0){this.uptime=0,this.traverseWithTailCallback((t,e)=>{t[e]=s.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 n.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 n.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,x=null,b=null;class w extends d{static get euler(){return null===v&&(v=new n.O9),v}static get startQuat(){return null===x&&(x=new n.PT),x}static get endQuat(){return null===b&&(b=new n.PT),b}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 n=a.Q1.mix(this.startValue,this.endValue,t);e[i]=n.toHexString()})}}},3615:function(t,e,i){i.d(e,{Z:function(){return h}});var n=i(64006),s=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 n.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 n.I9),u(this,"events",[]),u(this,"element"),u(this,"circles"),u(this,"target"),u(this,"descriptor"),u(this,"change",(t="change")=>{const e=s.Vd.get(this.descriptor.event);if(null===e)return;const i=o.A.getGraphics(this),n={event:{type:t,target:this.descriptor.target},trigger:this.descriptor,input:void 0,result:void 0};e.execute(i,n)}),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,n)=>{this.target[t]="%"===n?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 n.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 n.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:n,startWidth:s,startHeight:r,startX:o,startY:a}=this.state.resizeData;let l=s,u=r,c=o,h=a;switch(n){case"0":l=Math.max(20,s-e),u=Math.max(20,r-i),c=o+(s-l),h=a+(r-u);break;case"1":l=Math.max(20,s+e),u=Math.max(20,r-i),h=a+(r-u);break;case"3":l=Math.max(20,s-e),u=Math.max(20,r+i),c=o+(s-l);break;case"2":l=Math.max(20,s+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 n=document.createElement("div");this.setCircleStyle(n,i,e[i]),t.push(n)}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){this.reset();const e=o.A.getGraphics(this),i=e.variableProxy.get(t.target,e);if(i instanceof r.Pp){const n=e.getActor(i);if(null===n)return;const s=n.getWrapper();if(null===s)return;this.descriptor=t,this.target=i,this.selectTargetElement(s),this.events.push(e.engine.inputSystem.listen("mousedown",this.handleDragStart,{target:this.element}));for(const t of this.circles)this.events.push(e.engine.inputSystem.listen("mousedown",this.handleResizeStart,{target:t}));this.events.push(e.engine.inputSystem.listen("mousemove",this.handleMouseMove,{target:document})),this.events.push(e.engine.inputSystem.listen("mouseup",this.handleMouseEnd,{target:document}))}}unlisten(){this.reset()}update(t){this.listen(t)}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))}}},5171:function(t,e,i){i.r(e),i.d(e,{ExecuteScriptable:function(){return v},createExecuteInput:function(){return x},createExecuteNode:function(){return b},scriptable:function(){return m}});var n=i(64898),s=i(10692),r=i(35265),o=i(93360),a=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,p=(t,e)=>{for(var i in e||(e={}))h.call(e,i)&&f(t,i,e[i]);if(c)for(var i of c(e))d.call(e,i)&&f(t,i,e[i]);return t},y=(t,e)=>l(t,u(e)),g=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const m=s.Vd.createVirtualUrl("preset/net/http.ts");class v extends o.er{joinUrl(t,e){const i=new URL(s.Vd.joinUrl(t));return Object.entries(e).forEach(([t,e])=>{null!==e&&void 0!==e&&i.searchParams.set(t,String(e))}),i.toString()}execute(t,e){return g(this,null,function*(){var t,i,n,s,o,a;const{input:l,result:u}=e;let c=null!=(i=null==(t=null==l?void 0:l.user)?void 0:t.url.value)?i:l.default.url.value;const h=null!=(s=null==(n=null==l?void 0:l.user)?void 0:n.type.value)?s:l.default.type.value,d=null!=(a=null==(o=null==l?void 0:l.user)?void 0:o.data.value)?a:l.default.data.value,f={},g=[];0===d.trim().length?g.push(...u.keys()):g.push(...d.split(","));for(const e of g){const t=u.get(e);Object.assign(f,null!=t?t:{})}c=c.replace(/\${(\w+)}/g,(t,e)=>f.hasOwnProperty(e)?f[e]:t);const m={method:h,headers:{"Content-Type":"application/json"}};let v;v=h===r.$.GET?yield fetch(this.joinUrl(c,f),m):yield fetch(c,y(p({},m),{body:JSON.stringify(f)}));const x=yield v.json();return x})}}s.Vd.provider(m,()=>g(null,null,function*(){return{default:v}}));const x=(t={})=>{var e,i,n;const s={url:{value:null!=(e=t.url)?e:""},type:{value:null!=(i=t.type)?i:""},data:{value:null!=(n=t.data)?n:""}};return s},b=t=>{var e,i,s,r;const o={id:t.id,label:n.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==(s=null==t?void 0:t.position)?void 0:s.y)?r:20},interaction:"Execute",url:m,input:x(t.input)};return o}},8061:function(t,e,i){i.d(e,{D:function(){return u}});var n=i(48583),s=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,"proxyCollection",new Map),l(this,"variablesCollection",new Map),l(this,"createNestedProxy",(t,e,i="")=>new Proxy(t,{get:(t,n)=>{if("symbol"===typeof n)return Reflect.get(t,n);const s=i?`${i}.${n}`:n,r=this.variablesCollection.get(e);if(void 0!==r[s])return r[s];const o=Reflect.get(t,n);return null===o||"object"!==typeof o||Array.isArray(o)?o:this.createNestedProxy(o,e,s)}})),l(this,"getVariableValue",(t,e,i,r,o)=>{if("key"===r.type)return n.B.getValueByKey(e,r.value);if("custom"===r.type){const n=s.Vd.get(r.value);if(null===n)return;const a={key:i,config:r,data:e,input:void 0,result:void 0,trigger:t};return n.execute(o,a)}})}get(t,e){const i=r.oJ.get(t);if(null===i)return null;let n=this.proxyCollection.get(i),s=this.variablesCollection.get(i);if(void 0===s||s.version>0){s=Object.create(null),s.version=0;const t=r.Y2.getData(i.dataset);if(null!==t){const n=Object.keys(i.variables);for(const r of n){const n=i.variables[r];if(!1===n.enabled)continue;const o=this.getVariableValue(i,t,r,n,e);void 0!==o&&(s[r]=o)}}this.variablesCollection.set(i,s),n=this.createNestedProxy(i,i),this.proxyCollection.set(i,n)}else void 0===n&&(n=this.createNestedProxy(i,i),this.proxyCollection.set(i,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 n=i(21865),s=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){const e=new s.ZQ;return e}update(t){super.update(t);const e=this.getActor(t);e.update(t)}mount(t,e,i){super.mount(t,e,i),this.getActor(t)}unmount(t,e,i){const n=this.getActor(t);n.unlisten(),super.unmount(t,e,i)}free(t){const e=this.getActor(t);e.dispose(),super.free(t)}}l(u,"type",n.xq.type),r.$.register(u)},9962:function(t,e,i){i.r(e),i.d(e,{nodes:function(){return l},url:function(){return a}});var n=i(10692),s=i(93360),r=i(94499),o=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=n.Vd.createVirtualUrl("preset/graphics/invoke.interaction.json"),l={invoke:"invoke"};let u=null;const c=()=>o(null,null,function*(){if(null===u){u=new s.MS;const t=r.graphics.invoke.createExecuteNode({id:l.invoke});u.addNode([t]),u.roots.push(t.id)}return u});n.Vd.provider(a,c)},10692:function(t,e,i){i.d(e,{FD:function(){return s.F},Vd:function(){return n.V},jB:function(){return s.j},nP:function(){return n.n}});var n=i(72968),s=i(90154)},13507:function(t,e,i){i.d(e,{r:function(){return o}});var n=Object.defineProperty,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>s(t,"symbol"!==typeof e?e+"":e,i);class o{constructor(){r(this,"registrys",{})}listen(t,e,i={}){var n;let s=this.registrys[t];void 0===s&&(s=[],this.registrys[t]=s);const r=void 0===i.insertIndex?s.length:i.insertIndex,o=s.find(t=>t.callback===e);o||s.splice(r,0,{once:null!=(n=i.once)&&n,callback:e});const a=()=>this.unlisten(t,e);return a}unlisten(t,e){let i=this.registrys[t];if(void 0!==i)for(let n=0;n<i.length;n++)if(i[n].callback===e)return i.splice(n,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 n=0;n<i.length;n++)i[n].callback(...e),!0===i[n].once&&this.unlisten(t,i[n].callback)}}}},13591:function(t,e,i){i.d(e,{b:function(){return a}});var n=Object.defineProperty,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>s(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.interactionSuffix?this.interaction: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 n=t.split(".");i.name=null!=(e=n[0])?e:"";for(let s=1;s<n.length;s++)i.suffix+=`.${n[s]}`;return i.category=this.getCategory(i.suffix),i}static isDescriptor(e,i="suffix"){const n="suffix"===i?t.descriptorSuffixs:t.descriptorCategorys;return n.includes(e)}};r(o,"ts","ts"),r(o,"prefab","prefab"),r(o,"dataset","dataset"),r(o,"style","style"),r(o,"font","font"),r(o,"interaction","interaction"),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,"interactionSuffix",`.${o.interaction}.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.interactionSuffix,o.textureSuffix,o.materialSuffix,o.geometrySuffix,o.sceneSuffix]),r(o,"descriptorCategorys",[o.prefab,o.dataset,o.style,o.interaction,o.texture,o.material,o.geometry,o.scene]);let a=o},14496:function(t,e,i){i.r(e),i.d(e,{invoke:function(){return n}});var n=i(9962)},16033:function(t,e,i){i.d(e,{R:function(){return a}});var n=i(21865),s=i(42778),r=i(81789);let o=!1;const a=()=>{if(!0===o)return;o=!0;const t=new r.XI;t.update(n.Jf.basicStyle,n.Jf.basicName);const e=t.getStyleValue();s.KQ.insertRule(e)}},17227:function(t,e,i){i.d(e,{B:function(){return n}});class n{static pre(t,e,i=null){const n=[{parent:i,des:t}];while(n.length>0){const t=n.pop();e(t.des,t.parent);for(let e=t.des.children.length-1;e>=0;e--)n.push({parent:t.des,des:t.des.children[e]})}}static preTerminated(t,e,i=null){const n=[{parent:i,des:t}];while(n.length>0){const t=n.pop();if(!0!==e(t.des,t.parent))for(let e=t.des.children.length-1;e>=0;e--)n.push({parent:t.des,des:t.des.children[e]})}}}},18419:function(t,e,i){i.d(e,{_:function(){return l}});var n=i(21865),s=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 s.${clear(t){}beforeRender(t){}render(t){}afterRender(t){}beforePickup(t,e){}orderBy(t){}}a(l,"type",n.RE.type),s.$.register(l)},21627:function(t,e,i){i.d(e,{z:function(){return o}});const n=[{parse:1/0,stringify:"__vyr_infinity+__"},{parse:-1/0,stringify:"__vyr_infinity-__"}],s=(t,e)=>{for(const i of n)if(i.parse===e)return i.stringify;return e},r=(t,e)=>{for(const i of n)if(i.stringify===e)return i.parse;return e};class o{static stringify(t){return JSON.stringify(t,s)}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 v.K},KM:function(){return h.K},Pp:function(){return u.P},RE:function(){return g.R},SS:function(){return p.S},Ts:function(){return l.T},Vp:function(){return d.V},X7:function(){return a.X},Y2:function(){return s.Y},Zl:function(){return o.Z},aq:function(){return r.aq},fX:function(){return c.f},oJ:function(){return n.o},q5:function(){return m.q},uj:function(){return f.u},xq:function(){return y.x}});var n=i(38132),s=i(29124),r=i(35085),o=i(70858),a=i(89237),l=i(85337),u=i(2181),c=i(86487),h=i(32432),d=i(89219),f=i(29364),p=i(76644),y=i(76299),g=i(66119),m=i(63072),v=i(49436)},23083:function(t,e,i){i.d(e,{N:function(){return n},a:function(){return s}});var n=i(94499),s=i(32104)},24261:function(t,e,i){i.d(e,{M:function(){return h}});var n=i(21627),s=i(21865),r=i(38569),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),u=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const c={executorPool:new WeakMap};class h extends s.oJ{constructor(t={}){super(t),l(this,"roots"),l(this,"nodes"),l(this,"mappers"),this.roots=t.roots?n.z.deepClone(t.roots):[],this.nodes=t.nodes?n.z.deepClone(t.nodes):[],this.mappers=t.mappers?n.z.deepClone(t.mappers):[]}addNode(t){const e=t.length,i=e-1;for(let n=0;n<e;n++){const e=t[n];this.nodes.push(e),n<i&&this.mappers.push({source:e.id,target:t[n+1].id})}}execute(t,e,i,n){return u(this,null,function*(){let s=c.executorPool.get(this);void 0===s&&(s=new r.o,s.update(this),c.executorPool.set(this,s)),yield s.execute(t,this,e,i,n)})}setNeedsUpdate(){const t=c.executorPool.get(this);void 0!==t&&t.update(this)}}l(h,"type","Interaction"),s.oJ.register(h)},24566:function(t,e,i){i.d(e,{T:function(){return l}});var n=i(21865),s=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 s.F{}a(l,"type",n.Zl.type),s.F.register(l)},25716:function(t,e,i){i.d(e,{F:function(){return u}});var n=i(81789),s=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){return new n.aj}mount(t,e,i){super.mount(t,e,i);const n=this.getActor(t);n.bind(i.uuid)}unmount(t,e,i){super.unmount(t,e,i)}free(t){const e=this.getActor(t);e.unbind(),super.free(t)}}l(u,"type",s.oJ.type),r.$.register(u)},25946:function(t,e,i){i.d(e,{U:function(){return d}});var n=Object.defineProperty,s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,e,i)=>e in t?n(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(s)for(var i of s(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 n=>{i(n),e.unlisten(t.id)}}}};class h{constructor(t,e,i,n){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=n.target,this.callback=e,this.listener=n.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 n=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 s=new h(t,e,this,n);return this._registry.push(s),s.target.addEventListener(t,s.listener,n.capture),s.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 n=i(64898),s=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 n.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){return new s.Ag}getActor(t){let e=l.actorCollection.get(this);return void 0!==e||(e=this.createActor(t),s.Ag.seGraphics(e,this.graphics),l.actorCollection.set(this,e)),e}update(t){}mount(t,e,i){}unmount(t,e,i){}free(t){const e=l.actorCollection.get(this);void 0!==e&&(s.Ag.seGraphics(e,this.graphics),l.actorCollection.delete(this))}pickup(t,e){}}a(u,"type","Interpreter")},27761:function(t,e,i){i.r(e),i.d(e,{switch:function(){return n}});var n=i(91521)},29124:function(t,e,i){i.d(e,{Y:function(){return p}});var n=i(10692),s=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 n in t)l.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&a)for(var n of a(t))e.indexOf(n)<0&&u.call(t,n)&&(i[n]=t[n]);return i},d=(t,e,i)=>c(t,"symbol"!==typeof e?e+"":e,i);const f=class t extends r.o{constructor(t={}){super(t),d(this,"_data"),d(this,"_extraData",{}),d(this,"dataConfigs"),d(this,"defaultData"),this.dataConfigs=void 0===t.dataConfigs?[]:r.o.deepClone(t.dataConfigs),this.defaultData=void 0===t.defaultData?{}:r.o.deepClone(t.defaultData),this._updateData(this.defaultData)}static getData(e){const i=n.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]:[]}_updateData(t){this._data=t}getData(){var t;return null!=(t=this._data)?t:null}setData(t){this._updateData(t),s.P.trigger("updateDeps",{self:this.uuid})}setExtraData(t){this._extraData=t}getExtraData(){return this._extraData}toJSON(){const t=this,{_data:e,_extraData:i}=t,n=h(t,["_data","_extraData"]);return n}setNeedsUpdate(){}};d(f,"type","Dataset");let p=f;r.o.register(p)},29364:function(t,e,i){i.d(e,{u:function(){return a}});var n=i(38132),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.o{constructor(t={}){var e,i,s,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!=(s=t.count)?s: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?n.o.deepClone(t.frameData):{type:"vector2",startValue:[],endValue:[]}}}o(a,"type","AnimationUnit"),n.o.register(a)},32104:function(t,e,i){i.r(e),i.d(e,{dataset:function(){return n},graphics:function(){return r},scheduler:function(){return s}});var n=i(48439),s=i(50346),r=i(14496)},32432:function(t,e,i){i.d(e,{K:function(){return l}});var n=i(64006),s=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 s.o{constructor(t={}){var e,i,s,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?n.Pq.create(t.scale):n.Pq.create(1,1,1),this.position=n.Pq.create(t.position),this.rotation=n.O9.create(t.rotation),this.layer=null!=(e=t.layer)?e:0,this.visible=null==(i=t.visible)||i,this.renderOrder=null!=(s=t.renderOrder)?s:0,this.castShadow=null!=(r=t.castShadow)&&r,this.receiveShadow=null!=(o=t.receiveShadow)&&o}}a(l,"type","Node"),s.o.register(l)},32952:function(t,e,i){i.d(e,{P:function(){return a}});var n=i(1355),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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,n=1){o(this,"x"),o(this,"y"),o(this,"z"),o(this,"w"),this.x=t,this.y=e,this.z=i,this.w=n}static slerpFlat(t,e,i,n,s,r,o){let a=i[n+0],l=i[n+1],u=i[n+2],c=i[n+3];const h=s[r+0],d=s[r+1],f=s[r+2],p=s[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,n=1-e*e;if(n>Number.EPSILON){const s=Math.sqrt(n),r=Math.atan2(s,e*i);t=Math.sin(t*r)/s,o=Math.sin(o*r)/s}const s=o*i;if(a=a*t+h*s,l=l*t+d*s,u=u*t+f*s,c=c*t+p*s,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,n,s,r){const o=i[n],a=i[n+1],l=i[n+2],u=i[n+3],c=s[r],h=s[r+1],d=s[r+2],f=s[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,n){return this.x=t,this.y=e,this.z=i,this.w=n,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,n=t.z,s=t.order,r=Math.cos,o=Math.sin,a=r(e/2),l=r(i/2),u=r(n/2),c=o(e/2),h=o(i/2),d=o(n/2);switch(s){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: "+s)}return this}setFromAxisAngle(t,e){const i=e/2,n=Math.sin(i);return this.x=t.x*n,this.y=t.y*n,this.z=t.z*n,this.w=Math.cos(i),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],n=e[4],s=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=(s-l)*t,this.z=(r-n)*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=(n+r)/t,this.z=(s+l)/t}else if(o>c){const t=2*Math.sqrt(1+o-i-c);this.w=(s-l)/t,this.x=(n+r)/t,this.y=.25*t,this.z=(a+u)/t}else{const t=2*Math.sqrt(1+c-i-o);this.w=(r-n)/t,this.x=(s+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,n.q)(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(0===i)return this;const n=Math.min(1,e/i);return this.slerp(t,n),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,n=t.y,s=t.z,r=t.w,o=e.x,a=e.y,l=e.z,u=e.w;return this.x=i*u+r*o+n*l-s*a,this.y=n*u+r*a+s*o-i*l,this.z=s*u+r*l+i*a-n*o,this.w=r*u-i*o-n*a-s*l,this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const i=this.x,n=this.y,s=this.z,r=this.w;let o=r*t.w+i*t.x+n*t.y+s*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=n,this.z=s,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*n+e*this.y,this.z=t*s+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=n*c+this.y*h,this.z=s*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(),n=Math.sqrt(1-i),s=Math.sqrt(i);return this.set(n*Math.sin(t),n*Math.cos(t),s*Math.sin(e),s*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 n=i(69776),s=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,s,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 n.E8(t.color),this.inset=null!=(i=t.inset)&&i,this.offsetX=null!=(s=t.offsetX)?s: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,n,s;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!=(n=t.right)?n:0,this.bottom=null!=(s=t.bottom)?s:0}getStyleValue(t="px"){return`${this.top}${t} ${this.right}${t} ${this.bottom}${t} ${this.left}${t}`}}class c{constructor(t,e,i=!1,n=""){a(this,"name"),a(this,"value"),a(this,"inherit"),a(this,"unit"),this.name=t,this.value=e,this.inherit=i,this.unit=n}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)?n.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 n.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 s.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 n=this.rules[i];if(t.name===n.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 n.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 n.E8,t)),e.push(new c("border-width",new u,t,"px")),e.push(new c("color",new n.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;s.o.register(f)},35265:function(t,e,i){i.d(e,{$:function(){return n.$}});var n=i(50608);i(67824)},35617:function(t,e,i){i.r(e),i.d(e,{createExecuteInput:function(){return h},createExecuteNode:function(){return d},scriptable:function(){return u}});var n=i(64898),s=i(10692),r=i(93360),o=i(21865),a=i(5171),l=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const u=s.Vd.createVirtualUrl("preset/dataset/compile.ts");class c extends r.er{getData(t,e,i,n){return l(this,null,function*(){const s={input:{previous:"",user:{type:{value:t.type},url:{value:t.url},data:{value:""}},default:{}},result:new Map,trigger:i},r=yield e.execute(n,s);return this.transformData(r,t)})}transformData(t,e){return t}execute(t,e){return l(this,null,function*(){const{trigger:i}=e;if(i instanceof o.Y2&&i.dataConfigs.length>0){const e=i.dataConfigs,n=new a.ExecuteScriptable(s.Vd.createVirtualUrl("preset/dataset/compile/http.ts"));let r;if(1===e.length){const s=e[0],o=yield this.getData(s,n,i,t);r=s.key?{[s.key]:o}:o}else{const s=new Set,o=[];for(const a of e){s.add(a.key);const e=this.getData(a,n,i,t).then(t=>{const e=s.values().next().value;1!==s.size||""!==e&&void 0!==e?(r||(r={}),r[a.key]?Object.assign(r[a.key],t):r[a.key]=t):(r||(r=[]),r.push(t))});o.push(e)}yield Promise.all(o)}i.setData(r)}})}}s.Vd.provider(u,()=>l(null,null,function*(){return{default:c}}));const h=(t={})=>{const e={};return e},d=t=>{var e,i,s,r;const o={id:t.id,label:n.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==(s=null==t?void 0:t.position)?void 0:s.y)?r:20},interaction:"Execute",url:u,input:h(t.input)};return o}},35793:function(t,e,i){i.r(e),i.d(e,{invoke:function(){return n}});var n=i(47813)},38132:function(t,e,i){i.d(e,{o:function(){return z}});var n=i(64898),s=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,x=(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},b=(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,n)=>{const s=t.clone(!1);i.set(t.uuid,s),s.interactions.length>0&&n.push(s),!1===s.prefab&&(s.prefab={root:e,uuid:t.uuid});for(const r of t.children){const t=M.markclone(r,e,i,n);s.add(t)}return s}},P=class t extends s.iy{constructor(e={}){var i,n,s;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!=(n=e.dataset)?n:"",this.variables=e.variables?t.deepClone(e.variables):{},this.interactions=e.interactions?t.deepClone(e.interactions):[],this.selectable=null==(s=e.selectable)||s,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 s=this.getClass(null!=(i=e.type)?i:t.type);if(null===s)throw n.B.get("descriptor.notRegister",{type:e.type});return new s(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 n of i){const i=t.inputs[n],s=Object.keys(i);for(const t of s){const n=i[t],s=e.get(n.value);void 0!==s&&(n.value=s.uuid)}}}}static cloneAndFixReferences(t){const e=new Map,i=[],n=M.markclone(t,t.uuid,e,i);return this.fixReferences(i,e),n}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 n={parent:i,uuids:[],collection:[]};if(null===i)return n;if(n.collection.push(i),n.uuids.push(i.uuid),!0===t){let t=1;i=M.getParent(i.uuid);while(i&&t<e)t++,n.collection.push(i),n.uuids.push(i.uuid),i=M.getParent(i.uuid)}return n}insert(e,i){const s=t.get(e);if(null===s)return console.warn(n.B.get("descriptor.insert.uuid.notFound",{uuid:e}));const r=t.get(i);if(null===r)return console.warn(n.B.get("descriptor.insert.target.notFound",{target:i}));const o=s.traceAncestor(!1);o.parent&&o.parent.remove(s),r.add(s)}insertBefore(e,i,s=0){const r=t.get(e);if(null===r)return console.warn(n.B.get("descriptor.insert.uuid.notFound",{uuid:e}));const o=t.get(i);if(null===o)return console.warn(n.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+s),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(),n=t.create(b(x({},this),{uuid:i,children:void 0}));if(!1===e)return n;for(const t of this.children)n.add(t.clone(e));return n}syncWith(e,i=[]){if(this.type!==e.type)return console.warn(n.B.get("descriptor.syncWith.fail"));const s=t.create(b(x({},e),{type:this.type,uuid:void 0,children:void 0}));delete s["uuid"],delete s["type"],delete s["children"],delete s["prefab"],delete s["generatedBy"];for(const t of i)delete s[t];Object.assign(this,s)}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,s.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)})},38569:function(t,e,i){i.d(e,{o:function(){return l}});var n=i(10692),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});class l{constructor(){o(this,"collection",new Map),o(this,"linkCollection",new Map)}update(t){this.collection.clear(),this.linkCollection.clear();for(const e of t.nodes)this.collection.set(e.id,e);for(const e of t.mappers){let t=this.linkCollection.get(e.source);void 0===t&&(t=[],this.linkCollection.set(e.source,t)),t.push(e.target)}}doBranch(t,e,i,n,s,r,o,l){return a(this,null,function*(){yield this.doExecute(t,e,i,n,s,r,o,l)})}doCondition(t,e,i,n,s,r,o,l){return a(this,null,function*(){const a=r.get(e),u=r.get(t);a===(null==u?void 0:u.condition.value)&&(yield this.doExecute(t,e,i,n,s,r,o,l))})}doExecute(t,e,i,n,s,r,o,l){return a(this,null,function*(){const e=this.linkCollection.get(t);if(void 0!==e)for(const a of e)yield this.doNext(a,t,i,n,s,r,o,l)})}doNext(t,e,i,s,r,o,l,u){return a(this,null,function*(){var a;const c=this.collection.get(t);if(void 0===c)return;const h=null!=(a=i[t])?a:{},d=n.Vd.get(c.url);if(d){const i={input:{previous:e,default:c.input,user:h},result:o,trigger:l};u&&Object.assign(i,u);const n=yield d.execute(r,i);o.set(t,n)}"Branch"===c.interaction?yield this.doBranch(t,e,i,s,r,o,l,u):"Condition"===c.interaction?(!1===o.has(t)&&o.set(t,c.input),yield this.doCondition(t,e,i,s,r,o,l,u)):yield this.doExecute(t,e,i,s,r,o,l,u)})}execute(t,e,i,n,s){return a(this,null,function*(){for(const r of e.roots){const o=new Map;yield this.doNext(r,"",t,e,i,o,n,s)}})}}},40826:function(t,e,i){i.d(e,{D:function(){return d}});var n=i(21865),s=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&&(s.l.remove(c.collection,this.animationUnit),this.animationUnit.unlisten(),this.animationUnit=null)}update(t){super.update(t),this.freeUnit();const e=n.uj.get(this.unit.parent);null!==e&&(this.animationUnit=o.g1.parse(t),s.l.insert(c.collection,this.animationUnit),this.animationUnit.setTarget(e),this.animationUnit.listen(this.graphics))}unmount(t,e,i){this.freeUnit(),super.unmount(t,e,i)}};u(h,"type",n.uj.type),u(h,"enabled",!0);let d=h;r.$.register(d)},42662:function(t,e,i){i.d(e,{P:function(){return u}});var n=i(21865),s=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 s._J{createActor(t){const e=new r.u2(t.uuid);return e.DOM.addEventListener("pointerdown",t=>t.stopPropagation()),e}update(t){super.update(t);const e=this.getActor(t);e.update(t)}mount(t,e,i){super.mount(t,e,i);const n=this.getActor(t),s=e.getActor(i);s.add(n)}unmount(t,e,i){const n=this.getActor(t);n.clearStyleClass(n.DOM),n.cleanInteraction();const s=e.getActor(i);s.remove(n),super.unmount(t,e,i)}pickup(t,e){e.push({uuid:t.uuid,generatedBy:t.generatedBy})}}l(u,"type",n.q5.type),s._J.register(u)},42778:function(t,e,i){i.d(e,{$R:function(){return n.$},B0:function(){return p.B},DM:function(){return o.D},FG:function(){return a.F},Gd:function(){return u.G},KQ:function(){return r.K},OH:function(){return h.O},Pk:function(){return f.P},TS:function(){return l.T},_J:function(){return d._},oA:function(){return c.o},zI:function(){return s.z}});var n=i(27740),s=i(67302),r=i(91881),o=i(40826),a=i(25716),l=(i(58721),i(24566)),u=i(70455),c=i(98415),h=i(9115),d=i(18419),f=i(42662),p=i(83792)},44870:function(t,e,i){i.d(e,{O:function(){return u}});var n=i(51456),s=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}delete(t){const e=this.collection.get(t.uuid);void 0!==e&&(e.unlisten(),this.collection.delete(t.uuid))}ensureExists(t,e,i){let s=this.collection.get(e.uuid);return void 0===s&&(s=new n.A(t,e,i),this.collection.set(e.uuid,s)),s}listen(t){t.listen()}unlisten(t){this.delete(t)}foreach(t){const e=this.collection.values();for(const i of e)t(i)}process(t,e){s.Vd.free(),this.foreach(t=>{t.process(),t.clear()}),t.trigger(r.uj.type,e),this.foreach(t=>t.beforeRender()),t.trigger("beforeRender",e),this.foreach(t=>t.render()),t.trigger("afterRender",e)}clear(){const t=this.collection.values();for(const e of t)this.unlisten(e.scheduler)}}},46339:function(t,e,i){i.d(e,{t:function(){return n}});const n={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":"挂载节点不存在","engine.switch.url.notFound":"切换失败,无法获资产地址!","/virtual:/preset/net/http.ts":"网络请求","/virtual:/preset/dataset/update.ts":"更新数据集","/virtual:/preset/dataset/compile.ts":"组合数据集","/virtual:/preset/scheduler/switch.ts":"切换场景","/virtual:/preset/graphics/invoke.ts":"调用交互"}},46597:function(t,e,i){i.d(e,{N:function(){return p}});var n=i(64898),s=i(10692),r=i(21865),o=i(47552),a=i(25946),l=i(13507),u=i(51329),c=i(16033),h=Object.defineProperty,d=(t,e,i)=>e in t?h(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,f=(t,e,i)=>d(t,"symbol"!==typeof e?e+"":e,i);class p extends l.r{constructor(t={}){super(),f(this,"compilation",new u.O2),f(this,"active",""),f(this,"prevTimestamp",0),f(this,"frame",0),f(this,"uuid",o.w.uuid()),f(this,"DOM",document.createElement("div")),f(this,"inputSystem",new a.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",r.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.compilation.foreach(t=>t.args=i),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 n.B.get("engine.run.container.notFound");t=e}t.appendChild(this.DOM),(0,c.R)(),this.prevTimestamp=performance.now(),this.tick(this.prevTimestamp)}}stop(){0!==this.frame&&(cancelAnimationFrame(this.frame),this.frame=0)}switch(t){const e=s.Vd.getUrlByUuid(t.uuid);if(!e)throw n.B.get("engine.switch.url.notFound");const i=s.Vd.get(this.active);i&&this.compilation.unlisten(i);const r=this.compilation.ensureExists(e,t,this);this.compilation.listen(r),this.active=e,window.dispatchEvent(new Event("resize"));const o={delta:0};this.compilation.foreach(t=>t.args=o),this.compilation.process(this,o)}clear(){this.compilation.clear()}getGraphics(t){return this.compilation.get(t)}ensureGraphicsExists(t,e){return this.compilation.ensureExists(t,e,this)}}},47552:function(t,e,i){i.d(e,{w:function(){return r}});let n=1;const s=["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 n++}static uuid(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,i=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=s[255&t]+s[t>>8&255]+s[t>>16&255]+s[t>>24&255]+"-"+s[255&e]+s[e>>8&255]+"-"+s[e>>16&15|64]+s[e>>24&255]+"-"+s[63&i|128]+s[i>>8&255]+"-"+s[i>>16&255]+s[i>>24&255]+s[255&n]+s[n>>8&255]+s[n>>16&255]+s[n>>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 n=i(64898),s=i(10692),r=i(21865),o=i(93360),a=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const l=s.Vd.createVirtualUrl("preset/graphics/invoke.ts");class u extends o.er{execute(t,e){return a(this,null,function*(){var i,n,s,o;const{input:a}=e,l=null!=(n=null==(i=null==a?void 0:a.user)?void 0:i.interaction.value)?n:a.default.interaction.value,u=null!=(o=null==(s=null==a?void 0:a.user)?void 0:s.target.value)?o:a.default.target.value,c=r.oJ.get(u);l&&c&&t.invoke(l,c)})}}s.Vd.provider(l,()=>a(null,null,function*(){return{default:u}}));const c=(t={})=>{var e,i;const n={target:{value:null!=(e=t.target)?e:""},interaction:{value:null!=(i=t.interaction)?i:""}};return n},h=t=>{var e,i,s,r;const o={id:t.id,label:n.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==(s=null==t?void 0:t.position)?void 0:s.y)?r:20},interaction:"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 n=i(48393),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n;switch(i){case t.Update:n=[...this.updateCollection],this.updateCollection.length=0;break;default:n=[...this.operationCollection],this.operationCollection.length=0;break}for(const t of n)e(t);return n}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:n.l.insert(this.queue.updateCollection,this);break}}}},48393:function(t,e,i){i.d(e,{l:function(){return s}});var n=i(48583);class s{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 n=t.length;for(let s=0;s<n;s++)if(t[s][e]===i[e])return;t.push(i)}static removeByKey(t,e,i){const n=t.length;for(let s=0;s<n;s++){const n=t[s];if(n[e]===i)return void t.splice(s,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==s.equals(o,e[r],i))return!1}else if("object"!==a);else if(!1===n.B.equals(o,e[r],i))return!1}return!0}}},48439:function(t,e,i){i.r(e),i.d(e,{compile:function(){return n}});var n=i(81402)},48583:function(t,e,i){i.d(e,{B:function(){return s}});var n=i(48393);class s{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==n.l.equals(r,e[l],i))return!1}else if("object"!==o);else if(!1===s.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 n of i)if(t=t[n],void 0===t)return;return t}}},49436:function(t,e,i){i.d(e,{K:function(){return a}});var n=i(38132),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.o{constructor(t={}){var e;super(t),o(this,"camera"),this.camera=null!=(e=t.camera)?e:""}}o(a,"type","ServiceScheduler"),n.o.register(a)},50346:function(t,e,i){i.r(e),i.d(e,{switch:function(){return n}});var n=i(77792)},50608:function(t,e,i){i.d(e,{$:function(){return n}});var n=(t=>(t["GET"]="GET",t["POST"]="POST",t["PUT"]="PUT",t["DELETE"]="DELETE",t))(n||{})},50931:function(t,e,i){i.r(e),i.d(e,{Actor:function(){return w.Ag},AnimationUnitActor:function(){return w.g1},AnimationUnitDescriptor:function(){return v.uj},AnimationUnitInterpreter:function(){return x.DM},ArrayUtils:function(){return l.l},Asset:function(){return M.Vd},AssetGraph:function(){return M.jB},AsyncTask:function(){return y.g},BasicStyleColor:function(){return r.Ru},CameraDescriptor:function(){return v.Vp},Category:function(){return a.b},Color:function(){return r.Q1},Compilation:function(){return C.O2},ControllerDescriptor:function(){return v.SS},DatasetDescriptor:function(){return v.Y2},DatasetInterpreter:function(){return x.zI},DefaultStyleColor:function(){return r.E8},Dependencide:function(){return M.FD},Descriptor:function(){return v.oJ},DivActor:function(){return w.TD},DivDescriptor:function(){return v.fX},DivInterpreter:function(){return x.oA},DynamicDescriptor:function(){return v.Ts},Engine:function(){return z.N},Euler:function(){return s.O9},FragmentActor:function(){return w.aj},FragmentInterpreter:function(){return x.FG},Generate:function(){return c.w},Graphics:function(){return C.A1},HTMLActor:function(){return w.NA},HTMLDescriptor:function(){return v.Pp},HTMLServiceActor:function(){return w.u2},HTMLServiceDescriptor:function(){return v.q5},HTMLServiceInterpreter:function(){return x.Pk},HTMLTransformControllerActor:function(){return w.ZQ},HTMLTransformControllerDescriptor:function(){return v.xq},HTMLTransformControllerInterpreter:function(){return x.OH},HttpType:function(){return b.$},InputSystem:function(){return f.U},InteractionDescriptor:function(){return m.MS},InteractionExecutor:function(){return m.oU},Interpreter:function(){return x.$R},LinearStyleColor:function(){return r.yq},Listener:function(){return d.r},Matrix4:function(){return s.kn},NodeDescriptor:function(){return v.KM},ObjectUtils:function(){return u.B},PrefaInterpreter:function(){return x.TS},PrefabInstanceDescriptor:function(){return v.X7},PrefabInstanceInterpreter:function(){return x.Gd},PrefabeDescriptor:function(){return v.Zl},Quaternion:function(){return s.PT},Queue:function(){return C.op},RadialStyleColor:function(){return r.GH},Scriptable:function(){return g.e},Serialization:function(){return o.z},ServiceDescriptor:function(){return v.RE},ServiceInterpreter:function(){return x._J},ServiceSchedulerDescriptor:function(){return v.K4},ServiceSchedulerInterpreter:function(){return x.B0},StyleActor:function(){return w.XI},StyleDescriptor:function(){return v.Jf},StyleInterpreter:function(){return x.KQ},StyleRule:function(){return v.aq},StyleShadow:function(){return v.CH},StyleSpacing:function(){return v.Dg},Traverser:function(){return h.B},Unit:function(){return C.Nf},VariableProxy:function(){return C.D_},Vector2:function(){return s.I9},Vector3:function(){return s.Pq},destroyInstance:function(){return p.Sh},executePreset:function(){return P.N},interactionPreset:function(){return P.a},language:function(){return n.B},observer:function(){return C.PA},privateState:function(){return M.nP},zhCnLanguageProvider:function(){return n.t}});var n=i(64898),s=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(65325),m=i(93360),v=i(21865),x=i(42778),b=i(35265),w=i(81789),C=i(51329),M=i(10692),P=i(23083),z=i(46597)},51329:function(t,e,i){i.d(e,{A1:function(){return o.A},D_:function(){return r.D},Nf:function(){return s.N},O2:function(){return a.O},PA:function(){return n.P},op:function(){return s.o}});var n=i(79351),s=i(48035),r=i(8061),o=i(51456),a=i(44870)},51456:function(t,e,i){i.d(e,{A:function(){return m}});var n=i(64898),s=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),g=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});class m{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,"_currentArgs",{delta:0}),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 n of i)for(const t of n.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 n.B.get("graphics.interpreter.notRegister",{type:t.type});a.n.factory=!0;let s=e.unitCollection.get(t.uuid);void 0===s&&(s=e._freeCollection.get(t.uuid));const r=new i(s,e);return a.n.factory=!1,r}get args(){return this._currentArgs}set args(t){this._currentArgs=t}listen(){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 t=r.Vd.get(this.url);t instanceof o.oJ&&this.addRoot(this.url,t),r.Vd.graph.getDependencide(this.url,this._dependencide),this._dependencide.forEachForGraphics(t=>{const e=r.Vd.get(t);e instanceof o.oJ&&this._assetCollection.set(t,this.addRoot(t,e))});const e=this.variableProxy.get(this.scheduler.uuid,this),i=this.getInterpreter(e);i.install(e)}unlisten(){const t=this.variableProxy.get(this.scheduler.uuid,this),e=this.getInterpreter(t);e.uninstall(t);const i=this.unitCollection.get(this.scheduler.uuid),n=[...this._assetCollection.values(),i];for(const r of n){const t=this.removeRoot(r.queue.url);null!==t&&(t.queue.iterator(t=>this.do(t)),this._assetCollection.delete(r.queue.url))}const s=this._freeCollection.values();for(const r of s)this.doFree(r);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(){for(const s of this._freeQueue)this.doFree(s);this._freeQueue.length=0,this.updateStaticAsset(),this._dependencide.clear(),r.Vd.graph.getDependencide(this.url,this._dependencide),r.Vd.activate(...this._dependencide.all,this.url);const t=this.diffAsset();for(const s of t.removeQueue){const t=this.removeRoot(s);null!==t&&t.queue.iterator(t=>this.do(t)),this._assetCollection.delete(s)}for(const s of t.addQueue){const t=r.Vd.get(s);t instanceof o.oJ&&this._assetCollection.set(s,this.addRoot(s,t))}const e=[];this._dependencide.forEachForGraphics(t=>{const i=r.Vd.get(t),n=this.unitCollection.get(i.uuid);if(void 0===n)return console.warn(t,i);e.push(n)}),e.push(...this._staticAssetQueue);for(const s of e)s.queue.iterator(t=>this.do(t));const i=this.unitCollection.get(this.scheduler.uuid);if(void 0===i)return;i.queue.iterator(t=>this.do(t));for(const s of e)s.queue.iterator(t=>this.doUpdate(t),c.o.Update);const n=i.queue.iterator(t=>this.doUpdate(t),c.o.Update);for(const s of n){const t=o.oJ.get(s.uuid);this.invoke("mount",t)}this._freeQueue.push(...this._freeCollection.values()),this._freeCollection.clear()}clear(){for(const t of this._services){const e=this.variableProxy.get(t.uuid,this),i=this.getInterpreter(e);i.clear(e)}}beforeRender(){for(const t of this._services){const e=this.variableProxy.get(t.uuid,this),i=this.getInterpreter(e);i.beforeRender(e)}}render(){for(const t of this._services){const e=this.variableProxy.get(t.uuid,this),i=this.getInterpreter(e);i.render(e)}}afterRender(){for(const t of this._services){const e=this.variableProxy.get(t.uuid,this),i=this.getInterpreter(e);i.afterRender(e)}}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 n of e.children)u.P.trigger("add",{self:n.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 n of e.children)u.P.trigger("remove",{self:n.uuid,puid:e.uuid});return i}addCallback(t,e){const i=o.oJ.get(e.uuid),n=o.oJ.get(t.self);n.traverse((t,i)=>{const n=new c.N(t.uuid,i.uuid,e.queue);this.unitCollection.set(n),n.trigger(c.o.Add),this._freeCollection.delete(n.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(){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),s.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),s.l.insert(this._staticAssetQueue,i),this._currentCamera=this.scheduler.camera}}diffAsset(){const t=new Map(this._assetCollection),e=[],i=[];return this._dependencide.forEachForGraphics(i=>{t.has(i)?t.delete(i):e.push(i)}),i.push(...t.keys()),{addQueue:e,removeQueue:i}}onMount(t){const e=this.variableProxy.get(t.parent,this),i=this.getInterpreter(e),n=this.variableProxy.get(t.uuid,this),r=this.getInterpreter(n);n instanceof o.RE&&s.l.insert(this._services,n),r.mount(n,i,e)}onUnmount(t){const e=this.variableProxy.get(t.parent,this),i=this.getInterpreter(e),n=this.variableProxy.get(t.uuid,this),r=this.getInterpreter(n);n instanceof o.RE&&s.l.remove(this._services,n),r.unmount(n,i,e)}getUnit(t){var e;return null!=(e=this.unitCollection.get(t))?e:null}do(t){switch(t.type){case c.o.Add:this.onMount(t.unit);break;case c.o.Remove:this.onUnmount(t.unit);break;default:console.log("do",t.type);break}}doUpdate(t){const e=this.variableProxy.get(t.uuid,this),i=this.getInterpreter(e),n=this._overwriteUpdate.get(e.uuid);void 0===n?i.update(e):n(e,i)}doFree(t){const e=this._interpreterCollection.get(t.uuid);if(void 0===e)return;const i=this.variableProxy.get(t.uuid,this);e.free(i),this._interpreterCollection.delete(t.uuid)}getInterpreter(t){let e=this._interpreterCollection.get(t.uuid);return void 0===e&&(e=m.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){const e=this.getInterpreter(t);return e.getActor(t)}_pickupItem(t,e){if(!1===t.selectable)return;const i=this._interpreterCollection.get(t.uuid);void 0!==i&&i.pickup(t,e)}_pickupScene(t){const e=this.unitCollection.get(this.scheduler.uuid);if(void 0===e)return t;const i=this.unitCollection.values();for(const n of i){const e=o.oJ.get(n.uuid);e instanceof o.Pp||this._pickupItem(e,t)}}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 n=t.target.getAttribute("data-vyr-uuid");if(null===n)return e;const{mouse:s,rect:r}=this.getMouseAndRect(t),a=o.oJ.get(n);if(a instanceof o.RE)if(a instanceof o.q5)this._pickupItem(a,e);else{const t=this.getInterpreter(a);t.beforePickup(s,r),this._pickupScene(e),t.orderBy(e)}else this._pickupItem(a,e);return e}invoke(t,e){return g(this,null,function*(){if(0!==e.interactions.length)for(const i of e.interactions)if(i.type===t){const t=r.Vd.get(i.url);null!==t&&(yield t.execute(i.inputs,this,e));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 n=i(1355),s=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 s.P,h=class t{constructor(e=0,i=0,n=0,s=t.DEFAULT_ORDER){l(this,"x"),l(this,"y"),l(this,"z"),l(this,"order"),this.x=e,this.y=i,this.z=n,this.order=s}static create(e,i,n,s){return void 0===e?new t:"number"===typeof e?new t(e,i,n,s):new t(e.x,e.y,e.z,e.order)}set(t,e,i,n=this.order){return this.x=t,this.y=e,this.z=i,this.order=n,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,s=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,n.q)(o,-1,1)),Math.abs(o)<.9999999?(this.x=Math.atan2(-u,d),this.z=Math.atan2(-r,s)):(this.x=Math.atan2(h,l),this.z=0);break;case"YXZ":this.x=Math.asin(-(0,n.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,s),this.z=0);break;case"ZXY":this.x=Math.asin((0,n.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,s));break;case"ZYX":this.y=Math.asin(-(0,n.q)(c,-1,1)),Math.abs(c)<.9999999?(this.x=Math.atan2(h,d),this.z=Math.atan2(a,s)):(this.x=0,this.z=Math.atan2(-r,l));break;case"YZX":this.z=Math.asin((0,n.q)(a,-1,1)),Math.abs(a)<.9999999?(this.x=Math.atan2(-u,l),this.y=Math.atan2(-c,s)):(this.x=0,this.y=Math.atan2(o,d));break;case"XZY":this.z=Math.asin(-(0,n.q)(r,-1,1)),Math.abs(r)<.9999999?(this.x=Math.atan2(h,l),this.y=Math.atan2(o,s)):(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 n=i(48393),s=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,n=r.oJ.get(t.self);for(let s=0;s<i;s++){const t=e[s],i=new Map,o=[],a=this._markAndClone(n,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),n.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 n={self:t.self,puid:e.parent.uuid};this._onRemove(n),this._onAdd(n)}else for(const n of e)n.syncWith(i),n.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 n=s.Vd.createVirtualUrl(`dynamic/dataset/${t.uuid}-${i}-${this._currentDepth}${a.b.datasetSuffix}`);if(this._datasetCloneCollection.has(n))return n;const o=e[i],l=new r.Y2;return l.setExtraData({index:i}),l.setData(o),s.Vd.set(n,l),this._datasetCloneCollection.set(n,l),n}_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,n,r){if(this._currentDepth>3e3)return void o.PA.trigger("__VYR_RUNTIME@remote",{type:"Dynamic",uuid:this.unit.uuid});this._currentDepth+=1;const a=s.Vd.get(t.url);if(2===t.dataConfig){const s=this._getDataByDataset(e.dataset);if(null===s||"object"!==typeof s)return;const o=s[t.dataPath];if(!1===Array.isArray(o)||0===o.length)return;for(let l=0;l<o.length;l++){const s=this._getDataset(t,o,l),u=this._markAndClone(a,s,i,n,r);e.add(u)}}else{const s=this._getDataByDataset(t.dataset);if(!1===Array.isArray(s)||0===s.length)return;for(let o=0;o<s.length;o++){const l=this._getDataset(t,s,o),u=this._markAndClone(a,l,i,n,r);e.add(u)}}}_markAndClone(t,e,i,n,s){let o;t instanceof r.Ts?(o=new r.oJ({dataset:e}),t.url&&this._markSubDynamic(t,o,i,n,s)):t instanceof r.Zl?o=new r.oJ({dataset:e}):(o=t.clone(!1),o.dataset=e,n.set(t.uuid,o),o.interactions.length>0&&s.push(o)),o.generatedBy=i;for(const r of t.children){const t=this._markAndClone(r,e,i,n,s);o.add(t)}return this._setCache(t,o),o}mount(t,e,i){super.mount(t,e,i),o.PA.listen("update",this._clearByOnUpdate)}unmount(t,e,i){o.PA.unlisten("update",this._clearByOnUpdate),super.unmount(t,e,i)}update(t){if(super.update(t),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=s.Vd.get(t.url);for(let n=0;n<e.length;n++){this._currentDepth=0;const s=this._getDataset(t,e,n),a=new Map,l=[],u=this._markAndClone(i,s,t.uuid,a,l);r.oJ.fixReferences(l,a),this._cloneCollection.set(n,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){o.PA.unlisten("add",this._onAdd),o.PA.unlisten("remove",this._onRemove),o.PA.unlisten("update",this._onUpdate),super.free(t)}}h(d,"type",r.Ts.type),l.FG.register(d)},62769:function(t,e,i){i.d(e,{N:function(){return u}});var n=i(10692),s=i(83912),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 s.A{constructor(t){super(),a(this,"uuid"),a(this,"unlisteners",[]),a(this,"className"),this.uuid=t}static isTrigger(e,i){return e.getAttribute(t.uuidKey)===i}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){const e={pointerEvents:"auto"};e.flexGrow=t.flexGrow+"",!1===t.visible?e.display="none":e.display=t.display;const i=t.width;e.width=i<0?"auto":`calc(${i+t.wUnit} + ${t.calcWidth}px)`;const n=t.height;e.height=n<0?"auto":`calc(${n+t.hUnit} + ${t.calcHeight}px)`,e.position=t.position,e.transform="",0!==t.translate.x&&(e.transform+=`translateX(${t.translate.x}%) `),0!==t.translate.y&&(e.transform+=`translateY(${t.translate.y}%) `);const s=t.location.x+t.xUnit;"left"===t.xAxis?(e.left=s,e.right=""):(e.right=s,e.left="");const r=t.location.y+t.yUnit;return"top"===t.yAxis?(e.top=r,e.bottom=""):(e.bottom=r,e.top=""),e.marginLeft=t.margin.left+"px",e.marginTop=t.margin.top+"px",e.marginRight=t.margin.right+"px",e.marginBottom=t.margin.bottom+"px",e}getLayoutStyle(t){const e={};return e.display=t.display,e.flexWrap=t.flexWrap,e.flexDirection=t.flexDirection,e.justifyContent=t.justifyContent,e.alignItems=t.alignItems,e.alignContent=t.alignContent,e.opacity=t.opacity+"",e.zIndex=t.zIndex,e}setHTMLStyle(t,e){Object.assign(t.style,e)}getStyleClass(t){const e=n.Vd.get(t.style);if(null===e)return[];const i=s.A.getGraphics(this),r=i.getInterpreter(e).getActor(t);return r.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(e,i,s,r){const o=n.Vd.get(i.url),a=e=>{t.isTrigger(e.target,this.uuid)&&(e.stopPropagation(),o.execute(i.inputs,r,s))},l=r.engine.inputSystem.listen(i.type,a,{target:e});this.unlisteners.push(()=>r.engine.inputSystem.unlisten(l))}cleanInteraction(){for(const t of this.unlisteners)t();this.unlisteners.length=0}setHTMLInteraction(e,i){this.cleanInteraction();const n=t.getGraphics(this);for(const t of i.interactions)t.url&&this.bindInteraction(e,t,i,n)}};a(l,"className","vyr-html-wrapper"),a(l,"uuidKey","data-vyr-uuid");let u=l},63072:function(t,e,i){i.d(e,{q:function(){return a}});var n=i(66119),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.R{constructor(t={}){var e,i,n,s,r;super(t),this.width=null!=(e=t.width)?e:100,this.wUnit=null!=(i=t.wUnit)?i:"%",this.height=null!=(n=t.height)?n:100,this.hUnit=null!=(s=t.hUnit)?s:"%",this.position=null!=(r=t.position)?r:"absolute"}}o(a,"type","HTMLService"),n.R.register(a)},64006:function(t,e,i){i.d(e,{I9:function(){return n.I},O9:function(){return r.O},PT:function(){return o.P},Pq:function(){return s.P},kn:function(){return a.k}});var n=i(95997),s=i(74630),r=i(53463),o=i(32952),a=i(79389)},64898:function(t,e,i){i.d(e,{B:function(){return s.B},t:function(){return n.t}});var n=i(46339),s=i(67538)},65325:function(t,e,i){i.d(e,{e:function(){return a}});var n=Object.defineProperty,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>s(t,"symbol"!==typeof e?e+"":e,i),o=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(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){}}},66119:function(t,e,i){i.d(e,{R:function(){return u}});var n=i(69776),s=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 s.P{constructor(t={}){super(t),a(this,"backgroundColor"),this.backgroundColor=t.backgroundColor?n.E8.create(t.backgroundColor):new n.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 n=i(21865),s=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 s.${}a(l,"type",n.Y2.type),s.$.register(l)},67538:function(t,e,i){i.d(e,{B:function(){return r}});var n=i(75133),s=i(46339);n.Locale.register(s.t);const r=n.Locale.getLanguage(s.t.name)},67824:function(t,e,i){var n=i(93360),s=i(21865),r=i(10692),o=i(13591);const a=(t,e,i)=>{const n=Object.keys(t.inputs);for(const s of n){const n=t.inputs[s],r=Object.keys(n);for(const t of r){const r=n[t];void 0!==r.type&&!1!==o.b.isDescriptor(r.type,"category")&&(r.value&&i.edges.push({key:`${e}.inputs.${s}.${t}.value`,category:r.type,asset:r.value}))}}},l=(t,e,i)=>{const n=Object.keys(t.input);for(const s of n){const n=t.input[s];void 0!==n.type&&!1!==o.b.isDescriptor(n.type,"category")&&(n.value&&i.edges.push({key:`${e}.input.${s}.value`,category:n.type,asset:n.value}))}},u=(t,e)=>{if(t.interactions.length>0)for(let i=0;i<t.interactions.length;i++){const n=t.interactions[i];n.url&&(a(n,`interactions[${i}]`,e),e.edges.push({key:`interactions[${i}].url`,category:o.b.interaction,asset:n.url}))}t.dataset&&e.edges.push({key:"dataset",category:o.b.dataset,asset:t.dataset})},c=(t,e)=>{t.inherit&&e.edges.push({key:"inherit",category:o.b.style,asset:t.inherit})},h=(t,e)=>{if(t.nodes.length>0)for(let i=0;i<t.nodes.length;i++){const n=t.nodes[i];n.url&&(l(n,`nodes[${i}]`,e),e.edges.push({key:`nodes[${i}].url`,category:o.b.ts,asset:n.url}))}},d=(t,e)=>{t.style&&e.edges.push({key:"style",category:o.b.style,asset:t.style})},f=(t,e)=>{t.url&&e.edges.push({key:"url",category:o.b.prefab,asset:t.url})},p=(t,e)=>{t.url&&e.edges.push({key:"url",category:o.b.prefab,asset:t.url})};r.jB.register(s.oJ.type,u),r.jB.register(s.Jf.type,c),r.jB.register(n.MS.type,h),r.jB.register(s.Pp.type,d),r.jB.register(s.Ts.type,f),r.jB.register(s.X7.type,p)},69251:function(t,e,i){i.d(e,{X:function(){return u}});var n=i(10692),s=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 s.A{constructor(){super(...arguments),l(this,"_styleCollection",new Map),l(this,"_className",[])}getStyleValue(){const t=[],e=this._styleCollection.entries();for(const[i,n]of e){const e=[];if(e.push(`${i}{`),0===n.length)e.push("/* 如果需要样式,在这里添加 */");else for(const t of n)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=n.Vd.get(t.inherit);if(i){const t=s.A.getGraphics(this),e=t.getInterpreter(i);this._className.push(e.className)}this._className.push(e);const o=[];for(const n of t.rules){if(!0===n.inherit)continue;const t=n.getValue();o.push({name:n.name,value:t})}this._styleCollection.set(`.${e}`,o);const a=[];for(const n of t.hoverRules){if(!0===n.inherit)continue;const t=n.getValue();a.push({name:n.name,value:t})}this._styleCollection.set(`.${e}:hover`,a);const l=[];for(const n of t.activeRules){if(!0===n.inherit)continue;const t=n.getValue();l.push({name:n.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 n=i(78366),s=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 n.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?s.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?s.z.deepClone(t.center):{x:.5,y:.5},this.radius=null!=(e=t.radius)?e:-1,this.value=t.value?s.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 n="";for(const s of t.value)n+=`, ${new l(s.value).setAlpha(s.opacity).toRgbString()} ${100*s.ratio}%`;return`radial-gradient(circle ${e} at ${i} ${n})`}}a(d,"type","radial")},70455:function(t,e,i){i.d(e,{G:function(){return l}});var n=i(21865),s=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 s.F{}a(l,"type",n.X7.type),s.F.register(l)},70858:function(t,e,i){i.d(e,{Z:function(){return a}});var n=i(38132),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.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 n of i){const t=this.get(n);t.add(e.clone(!0))}}static remove(t,e){t.remove(e);const i=this.getInstanceCollection(e.uuid);if(null!==i)for(const n of i){const t=this.get(n),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"),n.o.register(a)},72094:function(t,e,i){i.d(e,{g:function(){return l}});var n=i(64898),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(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(n.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 n=i(64898),s=i(13591),r=i(72094),o=i(21865),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((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(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:s.b.parseName(i.split("?")[0])}},f=class t{static fetch(t,e){return new Promise((i,n)=>h(null,null,function*(){const s=yield fetch(t,e);s.ok?i(s):n(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],s=[];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){s.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 n.B.get("asset.load.fail",{category:l.category});const c=new r.g(()=>h(this,null,function*(){const i=yield u(t,e);this.set(t,i)}));d.taskCollection.set(t,c),s.push(c.run());try{yield c.done()}catch(o){console.log(o)}finally{d.taskCollection.delete(t)}}return Promise.all(s)})}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,n.B.get("asset.already.exists")),d.assetCache.set(t,e),e instanceof o.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 compileDataset(e,i){return h(this,null,function*(){const n=this.get(e),s=i.ensureGraphicsExists(e,n),r=t.graph.getDependencide(e),o=[];for(const e of r.dataset){const i=t.get(e);o.push(s.invoke("compile",i))}yield Promise.all(o)})}static loadAll(e){return h(this,arguments,function*(e,i=!1,n=[]){yield t.load(e,i),t.graph.create(e),n.push(e);const s=t.graph.getDependencide(e),r=[];for(const o of s.all){if(n.includes(o))continue;const e=!t.get(o);r.push(this.loadAll(o,e,n))}yield Promise.all(r)})}};c(f,"baseUrl",location.origin),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)),n=yield i.text(),s=o.oJ.create(o.oJ.deserialization(n));return s});p.register(s.b.style,g),p.register(s.b.material,g),p.register(s.b.geometry,g),p.register(s.b.texture,g),p.register(s.b.prefab,g),p.register(s.b.interaction,g),p.register(s.b.scene,g);const m=t=>h(null,null,function*(){const e=yield g(t);return e});p.register(s.b.dataset,m);const v=t=>h(null,null,function*(){const e=yield p.fetch(p.joinUrl(t)),i=yield e.text();return o.oJ.deserialization(i)});p.register(s.b.json,v);const x=t=>new Promise((e,i)=>h(null,null,function*(){try{const s=yield y(t);if(null===s)return i(n.B.get("asset.provider.notFound",{url:t}));const r=new s.default(t);yield r.ready(),e(r)}catch(s){i(s)}}));p.register(s.b.ts,x);const b=t=>h(null,null,function*(){const e=yield p.fetch(p.joinUrl(t));return yield e.arrayBuffer()});p.register(s.b.other,b)},74630:function(t,e,i){i.d(e,{P:function(){return l}});var n=i(1355),s=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,n=this.z,s=t.elements,r=1/(s[3]*e+s[7]*i+s[11]*n+s[15]);return this.x=(s[0]*e+s[4]*i+s[8]*n+s[12])*r,this.y=(s[1]*e+s[5]*i+s[9]*n+s[13])*r,this.z=(s[2]*e+s[6]*i+s[10]*n+s[14])*r,this}applyQuaternion(t){const e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,l=2*(r*n-o*i),u=2*(o*e-s*n),c=2*(s*i-r*e);return this.x=e+a*l+r*c-o*u,this.y=i+a*u+o*l-s*c,this.z=n+a*c+s*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,n=this.z,s=t.elements;return this.x=s[0]*e+s[4]*i+s[8]*n,this.y=s[1]*e+s[5]*i+s[9]*n,this.z=s[2]*e+s[6]*i+s[10]*n,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,n.q)(this.x,t.x,e.x),this.y=(0,n.q)(this.y,t.y,e.y),this.z=(0,n.q)(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=(0,n.q)(this.x,t,e),this.y=(0,n.q)(this.y,t,e),this.z=(0,n.q)(this.z,t,e),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar((0,n.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,n=t.y,s=t.z,r=e.x,o=e.y,a=e.z;return this.x=n*a-s*o,this.y=s*r-i*a,this.z=i*o-n*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,n.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,n=this.z-t.z;return e*e+i*i+n*n}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 n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*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(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=n,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 s.P},76299:function(t,e,i){i.d(e,{x:function(){return a}});var n=i(76644),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.S{constructor(t={}){var e,i,n,s;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!=(n=t.target)?n:"",this.event=null!=(s=t.event)?s:""}}o(a,"type","HTMLTransformController"),n.S.register(a)},76644:function(t,e,i){i.d(e,{S:function(){return a}});var n=i(38132),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.o{constructor(t={}){var e;super(t),o(this,"enabled"),this.enabled=null!=(e=t.enabled)&&e}}o(a,"type","Controller")},77792:function(t,e,i){i.r(e),i.d(e,{nodes:function(){return l},url:function(){return a}});var n=i(10692),s=i(93360),r=i(94499),o=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=n.Vd.createVirtualUrl("preset/scheduler/switch.interaction.json"),l={switch:"switch"};let u=null;const c=()=>o(null,null,function*(){if(null===u){u=new s.MS;const t=r.scheduler["switch"].createExecuteNode({id:l.switch});u.addNode([t]),u.roots.push(t.id)}return u});n.Vd.provider(a,c)},79351:function(t,e,i){i.d(e,{P:function(){return s}});var n=i(13507);const s=new n.r},79389:function(t,e,i){i.d(e,{k:function(){return u}});var n=i(74630),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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,n,s,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,n,s,r,a,l,u,c,h,d,f,p,y,g)}set(t,e,i,n,s,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]=n,g[1]=s,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,n=1/c.setFromMatrixColumn(t,0).length(),s=1/c.setFromMatrixColumn(t,1).length(),r=1/c.setFromMatrixColumn(t,2).length();return e[0]=i[0]*n,e[1]=i[1]*n,e[2]=i[2]*n,e[3]=0,e[4]=i[4]*s,e[5]=i[5]*s,e[6]=i[6]*s,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,n=t.y,s=t.z,r=Math.cos(i),o=Math.sin(i),a=Math.cos(n),l=Math.sin(n),u=Math.cos(s),c=Math.sin(s);if("XYZ"===t.order){const t=r*u,i=r*c,n=o*u,s=o*c;e[0]=a*u,e[4]=-a*c,e[8]=l,e[1]=i+n*l,e[5]=t-s*l,e[9]=-o*a,e[2]=s-t*l,e[6]=n+i*l,e[10]=r*a}else if("YXZ"===t.order){const t=a*u,i=a*c,n=l*u,s=l*c;e[0]=t+s*o,e[4]=n*o-i,e[8]=r*l,e[1]=r*c,e[5]=r*u,e[9]=-o,e[2]=i*o-n,e[6]=s+t*o,e[10]=r*a}else if("ZXY"===t.order){const t=a*u,i=a*c,n=l*u,s=l*c;e[0]=t-s*o,e[4]=-r*c,e[8]=n+i*o,e[1]=i+n*o,e[5]=r*u,e[9]=s-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,n=o*u,s=o*c;e[0]=a*u,e[4]=n*l-i,e[8]=t*l+s,e[1]=a*c,e[5]=s*l+t,e[9]=i*l-n,e[2]=-l,e[6]=o*a,e[10]=r*a}else if("YZX"===t.order){const t=r*a,i=r*l,n=o*a,s=o*l;e[0]=a*u,e[4]=s-t*c,e[8]=n*c+i,e[1]=c,e[5]=r*u,e[9]=-o*u,e[2]=-l*u,e[6]=i*c+n,e[10]=t-s*c}else if("XZY"===t.order){const t=r*a,i=r*l,n=o*a,s=o*l;e[0]=a*u,e[4]=-c,e[8]=l*u,e[1]=t*c+s,e[5]=r*u,e[9]=i*c-n,e[2]=n*c-i,e[6]=o*u,e[10]=s*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 n=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),n[0]=p.x,n[4]=y.x,n[8]=g.x,n[1]=p.y,n[5]=y.y,n[9]=g.y,n[2]=p.z,n[6]=y.z,n[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,n=e.elements,s=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],x=i[11],b=i[15],w=n[0],C=n[4],M=n[8],P=n[12],z=n[1],_=n[5],S=n[9],D=n[13],A=n[2],O=n[6],k=n[10],R=n[14],j=n[3],V=n[7],T=n[11],E=n[15];return s[0]=r*w+o*z+a*A+l*j,s[4]=r*C+o*_+a*O+l*V,s[8]=r*M+o*S+a*k+l*T,s[12]=r*P+o*D+a*R+l*E,s[1]=u*w+c*z+h*A+d*j,s[5]=u*C+c*_+h*O+d*V,s[9]=u*M+c*S+h*k+d*T,s[13]=u*P+c*D+h*R+d*E,s[2]=f*w+p*z+y*A+g*j,s[6]=f*C+p*_+y*O+g*V,s[10]=f*M+p*S+y*k+g*T,s[14]=f*P+p*D+y*R+g*E,s[3]=m*w+v*z+x*A+b*j,s[7]=m*C+v*_+x*O+b*V,s[11]=m*M+v*S+x*k+b*T,s[15]=m*P+v*D+x*R+b*E,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],n=t[8],s=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*(+s*a*c-n*l*c-s*o*h+i*l*h+n*o*d-i*a*d)+p*(+e*a*d-e*l*h+s*r*h-n*r*d+n*l*u-s*a*u)+y*(+e*l*c-e*o*d-s*r*c+i*r*d+s*o*u-i*l*u)+g*(-n*o*u-e*a*c+e*o*h+n*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 n=this.elements;return"number"===typeof t?(n[12]=t,n[13]=e,n[14]=i):(n[12]=t.x,n[13]=t.y,n[14]=t.z),this}invert(){const t=this.elements,e=t[0],i=t[1],n=t[2],s=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,x=u*p*l-f*c*l+f*o*d-r*p*d-u*o*g+r*c*g,b=f*c*a-u*p*a-f*o*h+r*p*h+u*o*y-r*c*y,w=e*m+i*v+n*x+s*b;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*s-c*y*s-p*n*d+i*y*d+c*n*g-i*h*g)*C,t[2]=(o*y*s-p*a*s+p*n*l-i*y*l-o*n*g+i*a*g)*C,t[3]=(c*a*s-o*h*s-c*n*l+i*h*l+o*n*d-i*a*d)*C,t[4]=v*C,t[5]=(u*y*s-f*h*s+f*n*d-e*y*d-u*n*g+e*h*g)*C,t[6]=(f*a*s-r*y*s-f*n*l+e*y*l+r*n*g-e*a*g)*C,t[7]=(r*h*s-u*a*s+u*n*l-e*h*l-r*n*d+e*a*d)*C,t[8]=x*C,t[9]=(f*c*s-u*p*s-f*i*d+e*p*d+u*i*g-e*c*g)*C,t[10]=(r*p*s-f*o*s+f*i*l-e*p*l-r*i*g+e*o*g)*C,t[11]=(u*o*s-r*c*s-u*i*l+e*c*l+r*i*d-e*o*d)*C,t[12]=b*C,t[13]=(u*p*n-f*c*n+f*i*h-e*p*h-u*i*y+e*c*y)*C,t[14]=(f*o*n-r*p*n-f*i*a+e*p*a+r*i*y-e*o*y)*C,t[15]=(r*c*n-u*o*n+u*i*a-e*c*a-r*i*h+e*o*h)*C,this}scale(t){const e=this.elements,i=t.x,n=t.y,s=t.z;return e[0]*=i,e[4]*=n,e[8]*=s,e[1]*=i,e[5]*=n,e[9]*=s,e[2]*=i,e[6]*=n,e[10]*=s,e[3]*=i,e[7]*=n,e[11]*=s,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],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}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),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,l=s*r,u=s*o;return this.set(l*r+i,l*o-n*a,l*a+n*o,0,l*o+n*a,u*o+i,u*a-n*r,0,l*a-n*o,u*a+n*r,s*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,n,s,r){return this.set(1,i,s,0,t,1,r,0,e,n,1,0,0,0,0,1),this}compose(t,e,i){const n=this.elements,s=e.x,r=e.y,o=e.z,a=e.w,l=s+s,u=r+r,c=o+o,h=s*l,d=s*u,f=s*c,p=r*u,y=r*c,g=o*c,m=a*l,v=a*u,x=a*c,b=i.x,w=i.y,C=i.z;return n[0]=(1-(p+g))*b,n[1]=(d+x)*b,n[2]=(f-v)*b,n[3]=0,n[4]=(d-x)*w,n[5]=(1-(h+g))*w,n[6]=(y+m)*w,n[7]=0,n[8]=(f+v)*C,n[9]=(y-m)*C,n[10]=(1-(h+p))*C,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this}decompose(t,e,i){const n=this.elements;let s=c.set(n[0],n[1],n[2]).length();const r=c.set(n[4],n[5],n[6]).length(),o=c.set(n[8],n[9],n[10]).length(),a=this.determinant();a<0&&(s=-s),t.x=n[12],t.y=n[13],t.z=n[14],h.copy(this);const l=1/s,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=s,i.y=r,i.z=o,this}makePerspective(t,e,i,n,s,r,o=a){const u=this.elements,c=2*s/(e-t),h=2*s/(i-n),d=(e+t)/(e-t),f=(i+n)/(i-n);let p,y;if(o===a)p=-(r+s)/(r-s),y=-2*r*s/(r-s);else{if(o!==l)throw new Error("Matrix4.makePerspective(): Invalid coordinate system: "+o);p=-r/(r-s),y=-r*s/(r-s)}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,n,s,r,o=a){const u=this.elements,c=1/(e-t),h=1/(i-n),d=1/(r-s),f=(e+t)*c,p=(i+n)*h;let y,g;if(o===a)y=(r+s)*d,g=-2*d;else{if(o!==l)throw new Error("Matrix4.makeOrthographic(): Invalid coordinate system: "+o);y=s*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 n=0;n<16;n++)if(e[n]!==i[n])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 n.P,h=new u,d=new n.P(0,0,0),f=new n.P(1,1,1),p=new n.P,y=new n.P,g=new n.P},81402:function(t,e,i){i.r(e),i.d(e,{nodes:function(){return l},url:function(){return a}});var n=i(10692),s=i(93360),r=i(94499),o=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=n.Vd.createVirtualUrl("preset/dataset/compile.interaction.json"),l={compile:"compile"};let u=null;const c=()=>o(null,null,function*(){if(null===u){u=new s.MS;const t=r.dataset.compile.createExecuteNode({id:l.compile});u.addNode([t]),u.roots.push(t.id)}return u});n.Vd.provider(a,c)},81789:function(t,e,i){i.d(e,{Ag:function(){return n.A},NA:function(){return a.N},TD:function(){return l.T},XI:function(){return s.X},ZQ:function(){return c.Z},aj:function(){return o.a},g1:function(){return r.g},u2:function(){return u.u}});var n=i(83912),s=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 n=i(21865),s=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 s.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",s.N.className),t.setAttribute(s.N.uuidKey,this.uuid),t}getWrapper(){return null===this._wrapper&&(this._wrapper=this.createWrapper()),this._wrapper}add(t){if(t instanceof s.N){const e=t.getWrapper();if(null===e)return;if(this.DOM.contains(e))return;this.DOM.appendChild(e)}}remove(t){if(t instanceof s.N){const e=t.getWrapper();if(null===e)return;this.DOM.contains(e)&&this.DOM.removeChild(e)}}update(t){const e=this.getWrapper(),i=this.getWrapperStyle(t);this.setHTMLStyle(e,i),this.setHTMLInteraction(e,t),this.setHTMLStyle(this.DOM,this.getLayoutStyle(t));const s=[...this.getStyleClass(t)];t.active&&s.push(n.Jf.activeName),this.setStyleClass(this.DOM,s),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 n=i(21865),s=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 s.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",s.N.className),t.setAttribute(s.N.uuidKey,this.uuid),t}getWrapper(){return null===this._wrapper&&(this._wrapper=this.createWrapper()),this._wrapper}add(t){if(t instanceof s.N){const e=t.getWrapper();if(null===e)return;if(this.DOM.contains(e))return;this.DOM.appendChild(e)}}remove(t){if(t instanceof s.N){const e=t.getWrapper();if(null===e)return;this.DOM.contains(e)&&this.DOM.removeChild(e)}}update(t){const e=this.getWrapper();this.setHTMLStyle(e,this.getWrapperStyle(t));const i=[...this.getStyleClass(t)];t.active&&i.push(n.Jf.activeName),this.setStyleClass(this.DOM,i)}}},83792:function(t,e,i){i.d(e,{B:function(){return u}});var n=i(21865),s=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){const e=new s.TD(t.uuid);return e}install(t){const e=this.getActor(t),i=e.getWrapper();this.graphics.engine.DOM.appendChild(i),this.resize=()=>{i.style.width=this.graphics.engine.DOM.clientWidth+"px",i.style.height=this.graphics.engine.DOM.clientHeight+"px",e.DOM.style.width="100%",e.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){this.unresize();const e=this.getActor(t),i=e.getWrapper();i.remove()}}l(u,"type",n.K4.type),r.$.register(u)},83912:function(t,e,i){i.d(e,{A:function(){return a}});var n=Object.defineProperty,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>s(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 n=i(38132),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.o{constructor(t={}){var e,i,n;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!=(n=t.dataPath)?n:""}}o(a,"type","Dynamic"),n.o.register(a)},86487:function(t,e,i){i.d(e,{f:function(){return a}});var n=i(2181),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.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"),n.P.register(a)},89219:function(t,e,i){i.d(e,{V:function(){return a}});var n=i(32432),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.K{constructor(t={}){super(t)}}o(a,"type","Camera")},89237:function(t,e,i){i.d(e,{X:function(){return l}});var n=i(38132),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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 n.o{constructor(t={}){var e;super(t),o(this,"url"),this.url=null!=(e=t.url)?e:""}static fromPrefab(e,i){const s=n.o.cloneAndFixReferences(i),r=new t({name:s.name?`${s.name}-prefab`:"prefab",interactions:s.interactions,prefab:s.prefab,url:e});return r.add(...s.children),r}};o(a,"type","PrefabInstance");let l=a;n.o.register(l)},90154:function(t,e,i){i.d(e,{F:function(){return d},j:function(){return f}});var n=i(72968),s=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,"interaction",[]),c(this,"prefab",[]),c(this,"dataset",[]),c(this,"style",[]),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)}forEachForGraphics(t){for(const e of this.dataset)t(e);for(const e of this.style)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.interaction.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 n=h.providerCollection.get(i.type);i=Object.getPrototypeOf(i),void 0!==n&&n(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 n.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,n){const s=e.all.indexOf(t);s>-1||(e.all.push(t),i&&e.add(n,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=s.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,{http:function(){return n}});var n=i(5171)},91521:function(t,e,i){i.r(e),i.d(e,{createExecuteInput:function(){return u},createExecuteNode:function(){return c},scriptable:function(){return a}});var n=i(64898),s=i(10692),r=i(93360),o=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const a=s.Vd.createVirtualUrl("preset/scheduler/switch.ts");class l extends r.er{execute(t,e){return o(this,null,function*(){var i,n;const r=null==(n=null==(i=e.input)?void 0:i.user)?void 0:n.scene.value;if(!r)return;yield s.Vd.loadAll(r),yield s.Vd.compileDataset(r,t.engine);const o=s.Vd.get(r);t.engine.switch(o)})}}s.Vd.provider(a,()=>o(null,null,function*(){return{default:l}}));const u=(t={})=>{var e;const i={scene:{value:null!=(e=t.scene)?e:""}};return i},c=t=>{var e,i,s,r;const o={id:t.id,label:n.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==(s=null==t?void 0:t.position)?void 0:s.y)?r:20},interaction:"Execute",url:a,input:u(t.input)};return o}},91881:function(t,e,i){i.d(e,{K:function(){return h}});var n=i(21865),s=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){return new s.XI}update(e){super.update(e);const i=this.getActor(e);if(i.update(e,this.className),!0===i.updateRule(t.sheet))return;const n=i.getStyleValue();t.insertRule(n)}free(e){const i=[`.${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 n=i.indexOf(e.selectorText);if(n>-1&&(t.sheet.deleteRule(n),i.splice(n,1),0===i.length))return}}super.free(e)}};l(c,"type",n.Jf.type);let h=c;r.$.register(h)},92904:function(t,e,i){i.d(e,{a:function(){return u}});var n=i(21865),s=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=n.oJ.get(this._parent);if(e instanceof n.oJ){const i=t.getActor(e);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=n.oJ.get(this._parent);if(i instanceof n.oJ){const n=e.getActor(i);null!==n&&n.add(t)}s.l.insert(this.collection,t)}remove(t){if(t instanceof u)return;const e=r.A.getGraphics(this),i=n.oJ.get(this._parent);if(i instanceof n.oJ){const n=e.getActor(i);null!==n&&n.remove(t)}s.l.remove(this.collection,t)}}},93360:function(t,e,i){i.d(e,{MS:function(){return n.M},er:function(){return r.e},oU:function(){return s.o}});var n=i(24261),s=i(38569),r=i(65325)},93835:function(t,e,i){i.r(e),i.d(e,{createExecuteInput:function(){return h},createExecuteNode:function(){return d},scriptable:function(){return u}});var n=i(64898),s=i(10692),r=i(21865),o=i(93360),a=i(13591),l=(t,e,i)=>new Promise((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())});const u=s.Vd.createVirtualUrl("preset/dataset/update.ts");class c extends o.er{execute(t,e){return l(this,null,function*(){var t,i;const{input:n,result:o}=e,a=null!=(i=null==(t=null==n?void 0:n.user)?void 0:t.dataset.value)?i:n.default.dataset.value,l=o.get(n.previous),u=s.Vd.get(a);return u instanceof r.Y2&&l&&u.setData(l),{}})}}s.Vd.provider(u,()=>l(null,null,function*(){return{default:c}}));const h=(t={})=>{var e;const i={dataset:{value:null!=(e=t.dataset)?e:"",type:a.b.dataset}};return i},d=t=>{var e,i,s,r;const o={id:t.id,label:n.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==(s=null==t?void 0:t.position)?void 0:s.y)?r:20},interaction:"Execute",url:u,input:h(t.input)};return o}},94233:function(t,e,i){i.d(e,{r:function(){return o}});var n=Object.defineProperty,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>s(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 s},graphics:function(){return o},net:function(){return n},scheduler:function(){return r}});var n=i(90559),s=i(95920),r=i(27761),o=i(35793)},95920:function(t,e,i){i.r(e),i.d(e,{compile:function(){return s},update:function(){return n}});var n=i(93835),s=i(35617)},95997:function(t,e,i){i.d(e,{I:function(){return a}});var n=i(1355),s=Object.defineProperty,r=(t,e,i)=>e in t?s(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,n.q)(this.x,t.x,e.x),this.y=(0,n.q)(this.y,t.y,e.y),this}clampScalar(t,e){return this.x=(0,n.q)(this.x,t,e),this.y=(0,n.q)(this.y,t,e),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar((0,n.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,n.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),n=Math.sin(e),s=this.x-t.x,r=this.y-t.y;return this.x=s*i-r*n+t.x,this.y=s*n+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 n=i(47552),s=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()],n=i.length;t>=n&&(t=0);let s=0,r=t;const o=performance.now();while(s<500&&performance.now()-o<5){if(r>=n)break;s++;const e=i[r++];null===d.get(e)?h(e):t++}};e()}},u=t=>"editor"===window["__VYR_RUNTIME_MODE"]?(0,s.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=n.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 n=i(21865),s=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 s.${createActor(t){return new r.TD(t.uuid)}update(t){super.update(t);const e=this.getActor(t);e.update(t)}mount(t,e,i){super.mount(t,e,i);const n=this.getActor(t),s=e.getActor(i);s.add(n)}unmount(t,e,i){const n=this.getActor(t);n.clearStyleClass(n.DOM),n.cleanInteraction();const s=e.getActor(i);s.remove(n),super.unmount(t,e,i)}pickup(t,e){e.push({uuid:t.uuid,generatedBy:t.generatedBy})}}l(u,"type",n.fX.type),s.$.register(u)}}]);
|
|
@@ -1 +1 @@
|
|
|
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),c=(e,n,t)=>new Promise((r,o)=>{var a=e=>{try{i(t.next(e))}catch(n){o(n)}},c=e=>{try{i(t.throw(e))}catch(n){o(n)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,c);i((t=t.apply(e,n)).next())});const i=[{name:"__VYR_RUNTIME_@vyr/runtime",load:()=>c(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:()=>c(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:()=>c(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:()=>c(null,null,function*(){return Promise.all([t.e(1696),t.e(2521)]).then(t.bind(t,62521))})},{name:"__VYR_RUNTIME_postprocessing",load:()=>c(null,null,function*(){return Promise.all([t.e(1696),t.e(7692)]).then(t.bind(t,67692))})},{name:"__VYR_RUNTIME_@vyr/engine",load:()=>c(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:()=>c(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:()=>c(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(3864),t.e(6968)]).then(t.bind(t,21275))})},{name:"__VYR_RUNTIME_@vyr/service",load:()=>c(null,null,function*(){return t.e(7167).then(t.bind(t,87167))})},{name:"__VYR_RUNTIME_@vyr/remote",load:()=>c(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:()=>c(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:()=>c(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:()=>c(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:()=>c(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))})}],u=()=>c(null,null,function*(){const e=yield o.A.get("/cli/getConfig");return e.data}),f=()=>c(null,null,function*(){const e=yield u();for(const t of e.languageProviders)a.Locale.register(t);a.Locale.use(e.language);const n=[];for(const t of i){const e=t.load().then(e=>window[t.name]=e);n.push(e)}return yield Promise.all(n),e}),l=()=>c(null,null,function*(){const e=yield f();(0,r.Ts)({name:"editor",remotes:[{name:"extension",entry:"/extension/js/entry.js"}]});const n=[yield(0,r.dh)("extension")],{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(3864),t.e(4263),t.e(3964)]).then(t.bind(t,93964));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 c=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],a=e[l][2];for(var i=!0,u=0;u<r.length;u++)(!1&a||c>=a)&&Object.keys(t.O).every(function(e){return t.O[e](r[u])})?r.splice(u--,1):(i=!1,a<c&&(c=a));if(i){e.splice(l--,1);var f=o();void 0!==f&&(n=f)}}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 c={};e=e||[null,n({}),n([]),n(n)];for(var i=2&o&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(e){c[e]=function(){return r[e]}});return c["default"]=function(){return r},t.d(a,c),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:"7b02c788",220:"332f13be",250:"87c27d4b",530:"a25f4a44",677:"3e00dd5c",800:"7696b6c7",931:"df399aa1",1008:"1212a92b",1018:"54b7c2da",1048:"959d2b15",1111:"d7fb9219",1124:"74dc01cf",1176:"03ce189a",1320:"11b1f843",1346:"07f056a0",1349:"9b04698c",1376:"c78b811b",1384:"330a9809",1402:"959080ba",1583:"fe623811",1592:"2007c851",1696:"67999338",1704:"a712bcfe",1877:"4e5568cd",1978:"d78b7ff2",2024:"61ad4ff8",2132:"0f13c789",2264:"74826096",2320:"01b45f7e",2328:"91f4fab2",2424:"1b901127",2472:"fd550726",2521:"64e8a1c3",2546:"9d7d58e4",2576:"af7b57dd",2674:"a0fefa3b",2808:"2a6f1a99",2868:"2c921d66",2958:"148f2f28",3084:"f01b8161",3085:"b4adae0b",3124:"865bbeea",3160:"ad6a00b2",3328:"0e752372",3416:"59bed435",3454:"fc17644a",3507:"aafa886d",3745:"7cfe411d",3785:"151db669",3792:"c95b5a4d",3864:"bec1192e",3944:"0eafa506",3964:"96d036ca",4040:"bd29cbd3",4124:"1c353188",4171:"ecaed70c",4196:"1ecc5bb3",4230:"d1f2577c",4263:"d7a13386",4288:"cfaa98a7",4291:"cea6a8d5",4296:"4744698e",4416:"8faeee6a",4490:"afacfe53",4530:"1ef5ebfc",4570:"312d27c5",4582:"334df958",4744:"fb66347f",4764:"df45c000",4786:"89599e34",4816:"cd55469f",4872:"0bafb3d5",4900:"cdee80ca",5354:"9e7d2a59",5388:"ba7b29bd",5620:"4ebcd1ef",5639:"21eb71b5",5694:"4e720480",5696:"1ec004f6",5768:"ff6d1da1",5788:"fb009553",5804:"a7530102",5888:"e88a2170",5918:"fd8226fe",6136:"a7604e8a",6234:"1227c7e7",6248:"d7c77c1a",6308:"358e0a94",6315:"81f5e202",6357:"d2b1aeab",6476:"133083f0",6488:"a1bb6380",6552:"af7ecaa3",6600:"66570635",6720:"7e4d97d6",6937:"53af487b",6968:"0be80297",7128:"bddbefa5",7132:"784f034a",7167:"ba37f9e6",7195:"915ff054",7227:"9320ac5b",7380:"378a750c",7390:"cb73108e",7409:"871dc004",7494:"0fecaf55",7692:"0a1cdf62",7713:"e38c75be",7820:"84cbe06d",7960:"6e25b569",7980:"816096c5",8004:"80b538a1",8030:"70f27b26",8328:"d2170039",8344:"e4b1e024",8366:"2854dcb7",8438:"72c0fcbf",8550:"69a717cc",8554:"1dbe7424",8632:"da334e90",8657:"c161c764",8856:"9f70af00",9020:"b3a4d09b",9044:"8f4c6040",9256:"85fca918",9339:"e3438ab8",9384:"adddd8c7",9620:"d8b97c72",9842:"d1ed9070"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{530:"e132216c",1111:"86597cc5",1124:"b91daf98",1583:"69c975fc",2546:"a9c3029e",3085:"43d5665d",3745:"5e7a01f4",3864:"a80486d1",3964:"4c4113a3",4296:"963f15af",6357:"7bd0168e",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,c){if(e[r])e[r].push(o);else{var i,u;if(void 0!==a)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var d=f[l];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+a){i=d;break}}i||(u=!0,i=document.createElement("script"),i.charset="utf-8",t.nc&&i.setAttribute("nonce",t.nc),i.setAttribute("data-webpack",n+a),i.src=r),e[r]=[o];var s=function(n,t){i.onerror=i.onload=null,clearTimeout(b);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(t)}),n)return n(t)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),u&&document.head.appendChild(i)}}}(),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 c=document.createElement("link");c.rel="stylesheet",c.type="text/css",t.nc&&(c.nonce=t.nc);var i=function(t){if(c.onerror=c.onload=null,"load"===t.type)o();else{var r=t&&t.type,i=t&&t.target&&t.target.href||n,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+i+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=i,c.parentNode&&c.parentNode.removeChild(c),a(u)}};return c.onerror=c.onload=i,c.href=n,r?r.parentNode.insertBefore(c,r.nextSibling):document.head.appendChild(c),c},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 c=document.getElementsByTagName("style");for(r=0;r<c.length;r++){o=c[r],a=o.getAttribute("data-href");if(a===e||a===n)return o}},r=function(r){return new Promise(function(o,a){var c=t.miniCssF(r),i=t.p+c;if(n(c,i))return o();e(r,i,null,o,a)})},o={3057:0};t.f.miniCss=function(e,n){var t={530:1,1111:1,1124:1,1583:1,2546:1,3085:1,3745:1,3864:1,3964:1,4296:1,6357: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 c=t.p+t.u(n),i=new Error,u=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),c=r&&r.target&&r.target.src;i.message="Loading chunk "+n+" failed.\n("+a+": "+c+")",i.name="ChunkLoadError",i.type=a,i.request=c,o[1](i)}};t.l(c,u,"chunk-"+n,n)}},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,a,c=r[0],i=r[1],u=r[2],f=0;if(c.some(function(n){return 0!==e[n]})){for(o in i)t.o(i,o)&&(t.m[o]=i[o]);if(u)var l=u(t)}for(n&&n(r);f<c.length;f++)a=c[f],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)})();
|
|
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),c=(e,n,t)=>new Promise((r,o)=>{var a=e=>{try{i(t.next(e))}catch(n){o(n)}},c=e=>{try{i(t.throw(e))}catch(n){o(n)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,c);i((t=t.apply(e,n)).next())});const i=[{name:"__VYR_RUNTIME_@vyr/runtime",load:()=>c(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:()=>c(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:()=>c(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:()=>c(null,null,function*(){return Promise.all([t.e(1696),t.e(2521)]).then(t.bind(t,62521))})},{name:"__VYR_RUNTIME_postprocessing",load:()=>c(null,null,function*(){return Promise.all([t.e(1696),t.e(7692)]).then(t.bind(t,67692))})},{name:"__VYR_RUNTIME_@vyr/engine",load:()=>c(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:()=>c(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:()=>c(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(3864),t.e(6968)]).then(t.bind(t,21275))})},{name:"__VYR_RUNTIME_@vyr/service",load:()=>c(null,null,function*(){return t.e(7167).then(t.bind(t,87167))})},{name:"__VYR_RUNTIME_@vyr/remote",load:()=>c(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:()=>c(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:()=>c(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:()=>c(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:()=>c(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))})}],u=()=>c(null,null,function*(){const e=yield o.A.get("/cli/getConfig");return e.data}),f=()=>c(null,null,function*(){const e=yield u();for(const t of e.languageProviders)a.Locale.register(t);a.Locale.use(e.language);const n=[];for(const t of i){const e=t.load().then(e=>window[t.name]=e);n.push(e)}return yield Promise.all(n),e}),l=()=>c(null,null,function*(){const e=yield f();(0,r.Ts)({name:"editor",remotes:[{name:"extension",entry:"/extension/js/entry.js"}]});const n=[yield(0,r.dh)("extension")],{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(3864),t.e(4263),t.e(3964)]).then(t.bind(t,93964));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 c=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],a=e[l][2];for(var i=!0,u=0;u<r.length;u++)(!1&a||c>=a)&&Object.keys(t.O).every(function(e){return t.O[e](r[u])})?r.splice(u--,1):(i=!1,a<c&&(c=a));if(i){e.splice(l--,1);var f=o();void 0!==f&&(n=f)}}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 c={};e=e||[null,n({}),n([]),n(n)];for(var i=2&o&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(e){c[e]=function(){return r[e]}});return c["default"]=function(){return r},t.d(a,c),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:"7b02c788",220:"332f13be",250:"87c27d4b",530:"a25f4a44",677:"3e00dd5c",800:"7696b6c7",931:"09e04575",1008:"1212a92b",1018:"54b7c2da",1048:"959d2b15",1111:"d7fb9219",1124:"74dc01cf",1176:"03ce189a",1320:"11b1f843",1346:"07f056a0",1349:"9b04698c",1376:"c78b811b",1384:"330a9809",1402:"959080ba",1583:"fe623811",1592:"2007c851",1696:"67999338",1704:"a712bcfe",1877:"4e5568cd",1978:"d78b7ff2",2024:"61ad4ff8",2132:"0f13c789",2264:"74826096",2320:"01b45f7e",2328:"91f4fab2",2424:"1b901127",2472:"fd550726",2521:"64e8a1c3",2546:"9d7d58e4",2576:"af7b57dd",2674:"a0fefa3b",2808:"2a6f1a99",2868:"2c921d66",2958:"148f2f28",3084:"f01b8161",3085:"b4adae0b",3124:"865bbeea",3160:"ad6a00b2",3328:"0e752372",3416:"59bed435",3454:"fc17644a",3507:"aafa886d",3745:"7cfe411d",3785:"151db669",3792:"c95b5a4d",3864:"bec1192e",3944:"0eafa506",3964:"96d036ca",4040:"bd29cbd3",4124:"1c353188",4171:"ecaed70c",4196:"1ecc5bb3",4230:"d1f2577c",4263:"d7a13386",4288:"cfaa98a7",4291:"cea6a8d5",4296:"4744698e",4416:"8faeee6a",4490:"afacfe53",4530:"1ef5ebfc",4570:"312d27c5",4582:"334df958",4744:"fb66347f",4764:"df45c000",4786:"89599e34",4816:"cd55469f",4872:"0bafb3d5",4900:"cdee80ca",5354:"9e7d2a59",5388:"ba7b29bd",5620:"4ebcd1ef",5639:"21eb71b5",5694:"4e720480",5696:"1ec004f6",5768:"ff6d1da1",5788:"fb009553",5804:"a7530102",5888:"e88a2170",5918:"fd8226fe",6136:"a7604e8a",6234:"1227c7e7",6248:"d7c77c1a",6308:"358e0a94",6315:"81f5e202",6357:"d2b1aeab",6476:"133083f0",6488:"a1bb6380",6552:"af7ecaa3",6600:"66570635",6720:"7e4d97d6",6937:"53af487b",6968:"0be80297",7128:"bddbefa5",7132:"784f034a",7167:"ba37f9e6",7195:"915ff054",7227:"9320ac5b",7380:"378a750c",7390:"cb73108e",7409:"871dc004",7494:"0fecaf55",7692:"0a1cdf62",7713:"e38c75be",7820:"84cbe06d",7960:"6e25b569",7980:"816096c5",8004:"80b538a1",8030:"70f27b26",8328:"d2170039",8344:"e4b1e024",8366:"2854dcb7",8438:"72c0fcbf",8550:"69a717cc",8554:"1dbe7424",8632:"da334e90",8657:"c161c764",8856:"9f70af00",9020:"b3a4d09b",9044:"8f4c6040",9256:"85fca918",9339:"e3438ab8",9384:"adddd8c7",9620:"d8b97c72",9842:"d1ed9070"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{530:"e132216c",1111:"86597cc5",1124:"b91daf98",1583:"69c975fc",2546:"a9c3029e",3085:"43d5665d",3745:"5e7a01f4",3864:"a80486d1",3964:"4c4113a3",4296:"963f15af",6357:"7bd0168e",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,c){if(e[r])e[r].push(o);else{var i,u;if(void 0!==a)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var d=f[l];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+a){i=d;break}}i||(u=!0,i=document.createElement("script"),i.charset="utf-8",t.nc&&i.setAttribute("nonce",t.nc),i.setAttribute("data-webpack",n+a),i.src=r),e[r]=[o];var s=function(n,t){i.onerror=i.onload=null,clearTimeout(b);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(t)}),n)return n(t)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),u&&document.head.appendChild(i)}}}(),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 c=document.createElement("link");c.rel="stylesheet",c.type="text/css",t.nc&&(c.nonce=t.nc);var i=function(t){if(c.onerror=c.onload=null,"load"===t.type)o();else{var r=t&&t.type,i=t&&t.target&&t.target.href||n,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+i+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=i,c.parentNode&&c.parentNode.removeChild(c),a(u)}};return c.onerror=c.onload=i,c.href=n,r?r.parentNode.insertBefore(c,r.nextSibling):document.head.appendChild(c),c},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 c=document.getElementsByTagName("style");for(r=0;r<c.length;r++){o=c[r],a=o.getAttribute("data-href");if(a===e||a===n)return o}},r=function(r){return new Promise(function(o,a){var c=t.miniCssF(r),i=t.p+c;if(n(c,i))return o();e(r,i,null,o,a)})},o={3057:0};t.f.miniCss=function(e,n){var t={530:1,1111:1,1124:1,1583:1,2546:1,3085:1,3745:1,3864:1,3964:1,4296:1,6357: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 c=t.p+t.u(n),i=new Error,u=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),c=r&&r.target&&r.target.src;i.message="Loading chunk "+n+" failed.\n("+a+": "+c+")",i.name="ChunkLoadError",i.type=a,i.request=c,o[1](i)}};t.l(c,u,"chunk-"+n,n)}},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,a,c=r[0],i=r[1],u=r[2],f=0;if(c.some(function(n){return 0!==e[n]})){for(o in i)t.o(i,o)&&(t.m[o]=i[o]);if(u)var l=u(t)}for(n&&n(r);f<c.length;f++)a=c[f],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)})();
|