diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index.66cce355.js b/packages/terre2/assets/templates/WebGAL_Template/assets/index.9a5985bf.js similarity index 96% rename from packages/terre2/assets/templates/WebGAL_Template/assets/index.66cce355.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/index.9a5985bf.js index aad99a40..f7c85930 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index.66cce355.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index.9a5985bf.js @@ -2209,7 +2209,7 @@ void main(void) { gl_FragColor = texture2D(uSampler, vTextureCoord) + mist; } -`,eZ=function(e){KK(t,e);function t(r){var n=e.call(this,ZK,QK.replace("${perlin}",JK))||this;n.parallel=!0,n.time=0,n._angle=0,n.uniforms.dimensions=new Float32Array(2);var i=Object.assign(t.defaults,r);return n._angleLight=new Ye,n.angle=i.angle,n.gain=i.gain,n.lacunarity=i.lacunarity,n.alpha=i.alpha,n.parallel=i.parallel,n.center=i.center,n.time=i.time,n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.aspect=u/s,this.uniforms.time=this.time,this.uniforms.alpha=this.alpha,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},set:function(r){this._angle=r;var n=r*Md;this._angleLight.x=Math.cos(n),this._angleLight.y=Math.sin(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gain",{get:function(){return this.uniforms.gain},set:function(r){this.uniforms.gain=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lacunarity",{get:function(){return this.uniforms.lacunarity},set:function(r){this.uniforms.lacunarity=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(r){this.uniforms.alpha=r},enumerable:!1,configurable:!0}),t.defaults={angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0],alpha:1},t}(vr);class Zw extends dr{constructor(){super();_e(this,"baseX",0);_e(this,"baseY",0);_e(this,"containerFilters",new Map)}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){return super.position?super.position.x-this.baseX:0}set x(r){!super.position||(super.position.x=r+this.baseX)}get y(){return super.position?super.position.y-this.baseY:0}set y(r){!super.position||(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new _N.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new kK;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new DK;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new $K;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new VK;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new qK;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new eZ;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}addFilter(r){this.filters?this.filters.push(r):this.filters=[r]}removeFilter(r){var i;const n=this.containerFilters.get(r);if(n){const o=((i=this==null?void 0:this.filters)!=null?i:[]).findIndex(a=>a===n);this.filters&&(this.filters.splice(o,1),this.containerFilters.delete(r))}}}window.PIXI=xq;class tZ{constructor(){_e(this,"currentApp",null);_e(this,"effectsContainer");_e(this,"frameDuration",16.67);_e(this,"figureContainer");_e(this,"figureObjects",[]);_e(this,"backgroundContainer");_e(this,"backgroundObjects",[]);_e(this,"stageAnimations",[]);_e(this,"assetLoader",new hn);_e(this,"loadQueue",[]);_e(this,"lockTransformTarget",[]);_e(this,"stageWidth",2560);_e(this,"stageHeight",1440);_e(this,"MAX_TEX_COUNT",10);const t=new Ec({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),P1&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new dr,this.effectsContainer.zIndex=3,this.figureContainer=new dr,this.figureContainer.zIndex=2,this.backgroundContainer=new dr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;!t||(this.stageAnimations.push({uuid:xf(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:xf(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n,i;const r=this.stageAnimations.findIndex(o=>o.key===t);if(r>=0){const o=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(o.animationObject.tickerFunc),o.animationObject.setEndState(),this.unlockStageObject((i=o.targetKey)!=null?i:"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o,a,s;const r=this.stageAnimations.findIndex(u=>u.key===t);if(r>=0){const u=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(u.animationObject.tickerFunc),u.animationObject.setEndState();const l=(a=(o=(i=u.animationObject).getEndFilterEffect)==null?void 0:o.call(i))!=null?a:{};if(this.unlockStageObject((s=u.targetKey)!=null?s:"default"),u.targetKey){const c=this.getStageObjByKey(u.targetKey);if(c){const f=mn({alpha:c.pixiContainer.alpha,scale:{x:c.pixiContainer.scale.x,y:c.pixiContainer.scale.y},pivot:{x:c.pixiContainer.pivot.x,y:c.pixiContainer.pivot.y},position:{x:c.pixiContainer.x,y:c.pixiContainer.y},rotation:c.pixiContainer.rotation,blur:c.pixiContainer.blur},l),h=B.getState().stage.effects,d=qe(h);let v={target:u.targetKey,transform:f};const m=d.findIndex(p=>p.target===u.targetKey);m>=0?(v=d[m],v.transform=f,d[m]=v):d.push(v),O1(d)}}this.stageAnimations.splice(r,1)}}addBg(t,r){const n=this.assetLoader,i=new Zw;this.backgroundObjects.findIndex(c=>c.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=xf();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{var f,h;const c=(h=(f=n.resources)==null?void 0:f[r])==null?void 0:h.texture;if(c&&this.getStageObjByUuid(s)){const d=c.width,v=c.height,m=this.stageWidth/d,p=this.stageHeight/v,g=Math.max(m,p),_=new xo(c);_.scale.x=g,_.scale.y=g,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},l=Object.keys(n.resources);this.cacheGC(),l.includes(r)?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){const i=this.assetLoader,o=new Zw;this.figureObjects.findIndex(f=>f.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=xf();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{var h,d;const f=(d=(h=i.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(u)){const v=f.width,m=f.height,p=this.stageWidth/v,g=this.stageHeight/m,_=Math.min(p,g),y=new xo(f);y.scale.x=_,y.scale.y=_,y.anchor.set(.5),y.position.y=this.stageHeight/2;const S=v*_,b=m*_;o.setBaseY(this.stageHeight/2),br.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){zA()}loadAsset(t,r){this.loadQueue.push({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader \u6545\u969C",r),t.callback(),this.callLoader()}}}updateFps(){Kv==null||Kv(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}function O1(e){B.dispatch(ue({key:"effects",value:e}))}const Kv=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),rZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(h=>{h.key==="unlockname"&&(r=h.value.toString()),h.key==="series"&&(n=h.value.toString())});const i=B.dispatch;i(UP({name:r,url:t,series:n}));const o=B.getState().stage.effects,a=qe(o),s=a.findIndex(h=>h.target==="bg-main");s>=0&&a.splice(s,1),O1(a);const u=ke(e,"transform");let l=ke(e,"duration");(!l||typeof l!="number")&&(l=1e3);let c;if(u)try{const h=JSON.parse(u.toString());c=jl("bg-main",h,l),c[0].alpha=0;const d=(Math.random()*10).toString(16),v={name:d,effects:c};A.animationManager.addAnimation(v),l=Er(d),A.animationManager.nextEnterAnimationName.set("bg-main",d)}catch{f()}else f();function f(){c=jl("bg-main",{},l),c[0].alpha=0;const d=(Math.random()*10).toString(16),v={name:d,effects:c};A.animationManager.addAnimation(v),l=Er(d),A.animationManager.nextEnterAnimationName.set("bg-main",d)}return ke(e,"enter")&&(A.animationManager.nextEnterAnimationName.set("bg-main",ke(e,"enter").toString()),l=Er(ke(e,"enter").toString())),ke(e,"exit")&&(A.animationManager.nextExitAnimationName.set("bg-main-off",ke(e,"exit").toString()),l=Er(ke(e,"exit").toString())),i(ue({key:"bgName",value:e.content})),{performName:"none",duration:l,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},nZ=e=>{let t="center",r=e.content,n=!1,i="",o="",a=500;for(const h of e.args)h.key==="left"&&h.value===!0&&(t="left"),h.key==="right"&&h.value===!0&&(t="right"),h.key==="clear"&&h.value===!0&&(r=""),h.key==="id"&&(n=!0,o=h.value.toString()),h.key==="motion"&&(i=h.value.toString()),r==="none"&&(r="");const s=B.dispatch,u=B.getState().stage.effects,l=qe(u),c=l.findIndex(h=>h.target===`fig-${t}`||h.target===`${o}`);c>=0&&l.splice(c,1),O1(l);const f=(h,d)=>{const v=ke(d,"transform"),m=ke(d,"duration");m&&typeof m=="number"&&(a=m);let p;if(v){console.log(v);try{const S=JSON.parse(v.toString());p=jl(h,S,a),p[0].alpha=0;const b=(Math.random()*10).toString(16),x={name:b,effects:p};A.animationManager.addAnimation(x),a=Er(b),A.animationManager.nextEnterAnimationName.set(h,b)}catch{g()}}else g();function g(){p=jl(h,{},a),p[0].alpha=0;const b=(Math.random()*10).toString(16),x={name:b,effects:p};A.animationManager.addAnimation(x),a=Er(b),A.animationManager.nextEnterAnimationName.set(h,b)}const _=ke(d,"enter"),y=ke(d,"exit");_&&(A.animationManager.nextEnterAnimationName.set(h,_.toString()),a=Er(_.toString())),y&&(A.animationManager.nextExitAnimationName.set(h+"-off",y.toString()),a=Er(y.toString()))};if(n){const h=B.getState().stage.freeFigure,d=h.findIndex(m=>m.key===o),v=qe(h);d>=0?(v[d].basePosition=t,v[d].name=r):r!==""&&v.push({key:o,name:r,basePosition:t}),f(o,e),s(ue({key:"freeFigure",value:v}))}else{const h={center:"fig-center",left:"fig-left",right:"fig-right"},d={center:"figName",left:"figNameLeft",right:"figNameRight"};o=h[t],f(o,e),s(ue({key:d[t],value:r}))}if(i){const h=B.getState().stage.live2dMotion.findIndex(v=>v.target===o);let d=B.getState().stage.live2dMotion;h<=0?d=[...B.getState().stage.live2dMotion,{target:o,motion:i}]:(d[h].motion=i,d=[...d]),s(ue({key:"live2dMotion",value:d}))}return{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},iZ=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),B.dispatch(ue({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},EN=(e,t)=>{ri(e).then(r=>{A.sceneManager.sceneData.currentScene=ni(r,t,e),A.sceneManager.sceneData.currentSentenceId=0;const n=A.sceneManager.sceneData.currentScene.subSceneList;A.sceneManager.settledScenes.push(e);const i=Cc(n);Pc(i),ne.debug("\u73B0\u5728\u5207\u6362\u573A\u666F\uFF0C\u5207\u6362\u540E\u7684\u7ED3\u679C\uFF1A",A.sceneManager.sceneData),er()})},Jw=e=>{const t=e.content.split("/"),r=t[t.length-1];return EN(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},wN=e=>{const t=A.sceneManager.sceneData.currentSentenceId;let r=t;A.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ge.label&&n.content===e&&i>=t&&(r=i)}),A.sceneManager.sceneData.currentSentenceId=r,setTimeout(er,1)},oZ="_Choose_Main_1vesq_1",aZ="_Choose_item_1vesq_13";var Qw={Choose_Main:oZ,Choose_item:aZ},eT="./assets/mouseEnter.5a3b96c2.mp3",sZ="./assets/maou_se_system35.e9a0fbf5.mp3",uZ="./assets/maou_se_system39.83f23302.mp3",lZ="./assets/maou_se_system40.5ea5b302.mp3",cZ="./assets/maou_se_system41.40379b65.mp3",tT="./assets/maou_se_system48.42cd8650.mp3",fZ="./assets/Motion-Pop03-4.e9d3227e.mp3",hZ="./assets/button-16.00e3576c.wav",dZ="./assets/button-20.024a70ef.wav",pZ="./assets/button-50.5bd1149c.wav",vZ="./assets/click_soft_02.2117c44b.wav",mZ="./assets/Book_Page_Flip.728e73c9.wav",rT="./assets/page-flip-1.54d26022.wav",gZ="./assets/pause.f58623bb.mp3",_Z="./assets/pausestart.4bbbf46e.wav",yZ="./assets/s-cheremisinov-Click-03.52e0f964.wav",Zv="./assets/switch-1.02defb9e.wav",xZ="./assets/water-drop-sound.d65ba25f.wav",bZ="./assets/aigei-se-01.59bff9b9.mp3",SZ="./assets/aigei-se-02.f00f4ff2.mp3",EZ="./assets/aigei-se-03.505e2cd5.mp3",Mu="./assets/zhanZhang-y1970.46589584.mp3",wZ="./assets/taoshen-01.0580b987.wav";const lr=()=>({playSeEnter:()=>{B.dispatch(ue({key:"uiSe",value:eT}))},playSeEnterChoose:()=>{B.dispatch(ue({key:"uiSe",value:SZ}))},playSeEnterTitleButton:()=>{B.dispatch(ue({key:"uiSe",value:bZ}))},playSeEnterOptionSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterMenuPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterSavePanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterLoadPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterCGPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterExtraElement:()=>{B.dispatch(ue({key:"uiSe",value:eT}))},playSeEnterExtraBGMButton:()=>{B.dispatch(ue({key:"uiSe",value:wZ}))},playSeEnterCloseButton:()=>{B.dispatch(ue({key:"uiSe",value:EZ}))},playSeEnterDialogButton:()=>{B.dispatch(ue({key:"uiSe",value:fZ}))},playSeEnterOptionSlider:()=>{B.dispatch(ue({key:"uiSe",value:xZ}))},playSeClick:()=>{B.dispatch(ue({key:"uiSe",value:uZ}))},playSeClickChoose:()=>{B.dispatch(ue({key:"uiSe",value:cZ}))},playSeClickTitleButton:()=>{B.dispatch(ue({key:"uiSe",value:lZ}))},playSeClickCloseButton:()=>{B.dispatch(ue({key:"uiSe",value:hZ}))},playSeClickBottomControlPanelButton:()=>{B.dispatch(ue({key:"uiSe",value:dZ}))},playSeClickMenuNormalButton:()=>{B.dispatch(ue({key:"uiSe",value:pZ}))},playSeClickOptionSelect:()=>{B.dispatch(ue({key:"uiSe",value:Zv}))},playSeClickLoadPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:rT}))},playSeClickSavePanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:rT}))},playSeClickSaveElement:()=>{B.dispatch(ue({key:"uiSe",value:tT}))},playSeClickLoadElement:()=>{B.dispatch(ue({key:"uiSe",value:tT}))},playSeClickDialogButton:()=>{B.dispatch(ue({key:"uiSe",value:sZ}))},playSeClickToNextBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:Zv}))},playSeClickToLastBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:Zv}))},playSeClickBeginBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:_Z}))},playSeClickStopBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:gZ}))},playSeClickCGPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:mZ}))},playSeClickCGElement:()=>{B.dispatch(ue({key:"uiSe",value:yZ}))},playSeClickBacklogJumpButton:()=>{B.dispatch(ue({key:"uiSe",value:vZ}))}}),TZ=e=>{const r=e.content.split("|").map(u=>u.split(":")),i=B.getState().userData.optionData.textboxFont===ws.song?'"\u601D\u6E90\u5B8B\u4F53", serif':'"WebgalUI", serif',{playSeEnterChoose:o,playSeClickChoose:a}=lr(),s=r.map((u,l)=>w("div",{className:Qw.Choose_item,style:{fontFamily:i},onClick:()=>{a(),u[1].match(/\./)?EN(u[1],u[0]):wN(u[1]),A.gameplay.performController.unmountPerform("choose")},onMouseEnter:o,children:u[0]},u[0]+l));return fo.render(w("div",{className:Qw.Choose_Main,children:s}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{fo.render(w("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},CZ=e=>{T1(!0);const t=B.dispatch,r=eo("start.txt",Qi.scene);return ri(r).then(n=>{A.sceneManager.sceneData.currentScene=ni(n,"start.txt",r)}),t(rt({component:"showTitle",visibility:!0})),a0(B.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},PZ=e=>{let t=e.content,r=e.content,n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=ke(e,"enter"),o=ke(e,"volume");return B.dispatch(GP({name:r,url:t,series:n})),a0(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},OZ=e=>{const t=p0();fo.render(w("div",{className:Ln.videoContainer,children:w("video",{className:Ln.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let r=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(n=>{setTimeout(()=>{let i=document.getElementById("playVideoElement");if(i!==null){i.currentTime=0;const o={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{i.oncanplay=()=>{};const a=B.getState().userData,s=a.optionData.volumeMain,u=s*.01*a.optionData.vocalVolume*.01,l=s*.01*a.optionData.bgmVolume*.01,c=document.getElementById("currentBgm");c&&(c.volume=l.toString());const f=document.getElementById("currentVocal");c&&(f.volume=u.toString()),fo.render(w("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>!1,blockingAuto:()=>!r,stopTimeout:void 0,goNextWhenOver:!0};n(o),i.oncanplay=()=>{const u=document.getElementById("currentBgm");u&&(u.volume=0 .toString());const l=document.getElementById("currentVocal");u&&(l.volume=0 .toString()),i==null||i.play()},i.onended=()=>{for(const a of A.gameplay.performController.performList)a.performName===t&&(r=!0,a.stopFunction(),A.gameplay.performController.unmountPerform(a.performName),er())}}},1)})}};function AZ(e,t){const r=A.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=A.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const IZ=[{name:"universalSoftIn",animationGenerateFunc:IA},{name:"universalSoftOff",animationGenerateFunc:NA},{name:"testblur",animationGenerateFunc:AZ}],NZ=e=>{var s,u,l,c;B.getState().stage.currentDialogKey;const t=e.content,r=(s=ke(e,"duration"))!=null?s:0,n=(u=ke(e,"target"))!=null?u:0,i=`${n}-${t}-${r}`,o=RZ(t);let a=()=>{};if(o){ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${n}`,r);const f=o(n,r);(l=A.gameplay.pixiStage)==null||l.stopPresetAnimationOnTarget(n),(c=A.gameplay.pixiStage)==null||c.registerAnimation(f,i,n),a=()=>{var h;B.getState().stage.currentDialogKey,(h=A.gameplay.pixiStage)==null||h.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function RZ(e){const t=IZ.find(r=>r.name===e);return ne.debug("\u88C5\u8F7D\u52A8\u753B",t),t?t.animationGenerateFunc:null}const kZ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),FZ=e=>(A.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi \u88AB\u811A\u672C\u91CD\u65B0\u521D\u59CB\u5316",t.performName);for(let i=0;i{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),LZ="modulepreload",nT={},BZ="./",DZ=function(t,r){return!r||r.length===0?t():Promise.all(r.map(n=>{if(n=`${BZ}${n}`,n in nT)return;nT[n]=!0;const i=n.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${o}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":LZ,i||(a.as="script",a.crossOrigin=""),a.href=n,document.head.appendChild(a),i)return new Promise((s,u)=>{a.addEventListener("load",s),a.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},TN=new Map;function MZ(e){return e?typeof e=="string"?e:e():null}function CN(e){const t=MZ(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function hle(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);TN.set(CN(e),t)}function UZ(e,t=[]){const r=TN.get(CN(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}DZ(()=>import("./initRegister.cbb86c08.js"),[]);const GZ=e=>{const t="PixiPerform"+e.content;A.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=UZ(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("\u73B0\u5728\u6B63\u5728\u5378\u8F7Dpixi\u6F14\u51FA"),n.destroy({texture:!0,baseTexture:!0}),(o=A.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=A.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},$Z=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),jZ=e=>(wN(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),zZ={backlog_size:200},PN={textInitialDelay:80},HZ=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch;n(ue({key:"showText",value:JSON.stringify(t.GameVar)})),n(ue({key:"showName",value:"\u5C55\u793A\u53D8\u91CF"})),ne.debug("\u5C55\u793A\u53D8\u91CF\uFF1A",t.GameVar),setTimeout(()=>{[...document.querySelectorAll("."+it.TextBox_textElement_start)].forEach(l=>{l.className=it.TextBox_textElement})},0);const i=p0(),o=PN.textInitialDelay-20*r.optionData.textSpeed,a=750-r.optionData.textSpeed*250;return{performName:i,duration:e.content.length*o+a,isHoldOn:!1,stopFunction:()=>{[...document.querySelectorAll("."+it.TextBox_textElement)].forEach(l=>{l.className=it.TextBox_textElement_Settled})},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},VZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`\u89E3\u9501CG\uFF1A${r}\uFF0C\u8DEF\u5F84\uFF1A${t}\uFF0C\u6240\u5C5E\u7CFB\u5217\uFF1A${n}`),B.dispatch(UP({name:r,url:t,series:n}));const i=B.getState().userData;return Ah.setItem(A.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},XZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`\u89E3\u9501BGM\uFF1A${r}\uFF0C\u8DEF\u5F84\uFF1A${t}\uFF0C\u6240\u5C5E\u7CFB\u5217\uFF1A${n}`),B.dispatch(GP({name:r,url:t,series:n}));const i=B.getState().userData;return Ah.setItem(A.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},WZ=e=>(e.content!==""&&e.content!=="none"?B.dispatch(ue({key:"enableFilm",value:e.content})):B.dispatch(ue({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),YZ=(e,t)=>{A.sceneManager.sceneData.sceneStack.push({sceneName:A.sceneManager.sceneData.currentScene.sceneName,sceneUrl:A.sceneManager.sceneData.currentScene.sceneUrl,continueLine:A.sceneManager.sceneData.currentSentenceId}),ri(e).then(r=>{A.sceneManager.sceneData.currentScene=ni(r,t,e),A.sceneManager.sceneData.currentSentenceId=0;const n=A.sceneManager.sceneData.currentScene.subSceneList;A.sceneManager.settledScenes.push(e);const i=Cc(n);Pc(i),ne.debug("\u73B0\u5728\u8C03\u7528\u573A\u666F\uFF0C\u8C03\u7528\u7ED3\u679C\uFF1A",A.sceneManager.sceneData),er()})},qZ=e=>{const t=e.content.split("/"),r=t[t.length-1];return YZ(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function KZ(e){return e.content==="hide"?B.dispatch(ue({key:"isDisableTextbox",value:!0})):B.dispatch(ue({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const ZZ=e=>{var a;B.getState().stage.currentDialogKey;const t=e.content,r=Er(t),n=(a=ke(e,"target"))!=null?a:0,i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var u,l;(u=A.gameplay.pixiStage)==null||u.stopPresetAnimationOnTarget(n);const s=Gh(t,n,r);s&&(ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${n}`,r),(l=A.gameplay.pixiStage)==null||l.registerAnimation(s,i,n))},0),o=()=>{setTimeout(()=>{var s;B.getState().stage.currentDialogKey,(s=A.gameplay.pixiStage)==null||s.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},JZ=e=>{ne.debug("play SE");let t="effect-sound";A.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;ke(e,"id")&&(t=`effect-sound-${ke(e,"id")}`,A.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d,v;const a=ke(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=B.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*((v=(d=u.optionData)==null?void 0:d.seVolume)!=null?v:100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.oncanplay=()=>{},s.pause()},blockingNext:()=>!1,blockingAuto:()=>!i,stopTimeout:void 0};o(h),s.oncanplay=()=>{s==null||s.play()},s.onended=()=>{for(const m of A.gameplay.performController.performList)m.performName===t&&(i=!0,m.stopFunction(),A.gameplay.performController.unmountPerform(m.performName))}},1)})}},QZ=e=>{var l;B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};A.animationManager.addAnimation(i);const o=Er(t),a=(l=ke(e,"target"))!=null?l:0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var f,h;(f=A.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(a);const c=Gh(t,a,o);c&&(ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${a}`,o),(h=A.gameplay.pixiStage)==null||h.registerAnimation(c,s,a))},0),u=()=>{setTimeout(()=>{var c;B.getState().stage.currentDialogKey,(c=A.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},eJ=e=>(ne.debug(`\u811A\u672C\u5185\u6CE8\u91CA${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),tJ=e=>{var c;B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=ke(e,"duration"),o=(c=ke(e,"target"))!=null?c:0;try{const f=JSON.parse(r);n=jl(o,f,i)}catch{n=[]}const a={name:t,effects:n};A.animationManager.addAnimation(a);const s=nJ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var h,d;(h=A.gameplay.pixiStage)==null||h.stopPresetAnimationOnTarget(o);const f=rJ(t,o,s);f&&(ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${o}`,s),(d=A.gameplay.pixiStage)==null||d.registerAnimation(f,u,o))},0),l=()=>{setTimeout(()=>{var f;B.getState().stage.currentDialogKey,(f=A.gameplay.pixiStage)==null||f.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function rJ(e,t,r){const n=A.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=qe(kn(mn({},x0),{duration:0}));return Object.assign(a,o),a.duration=o.duration/1e3,a});return ne.debug("\u88C5\u8F7D\u81EA\u5B9A\u4E49\u52A8\u753B",i),AA(i,t,r)}return null}function nJ(e){const t=A.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const iJ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return ke(e,"enter")&&A.animationManager.nextEnterAnimationName.set(t,ke(e,"enter").toString()),ke(e,"exit")&&A.animationManager.nextExitAnimationName.set(t+"-off",ke(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},ON=[{scriptString:"intro",scriptType:ge.intro,scriptFunction:g9},{scriptString:"changeBg",scriptType:ge.changeBg,scriptFunction:rZ},{scriptString:"changeFigure",scriptType:ge.changeFigure,scriptFunction:nZ},{scriptString:"miniAvatar",scriptType:ge.miniAvatar,scriptFunction:iZ},{scriptString:"changeScene",scriptType:ge.changeScene,scriptFunction:Jw},{scriptString:"choose",scriptType:ge.choose,scriptFunction:TZ},{scriptString:"end",scriptType:ge.end,scriptFunction:CZ},{scriptString:"bgm",scriptType:ge.bgm,scriptFunction:PZ},{scriptString:"playVideo",scriptType:ge.video,scriptFunction:OZ},{scriptString:"setComplexAnimation",scriptType:ge.setComplexAnimation,scriptFunction:NZ},{scriptString:"setFilter",scriptType:ge.setFilter,scriptFunction:kZ},{scriptString:"pixiInit",scriptType:ge.pixiInit,scriptFunction:FZ},{scriptString:"pixiPerform",scriptType:ge.pixi,scriptFunction:GZ},{scriptString:"label",scriptType:ge.label,scriptFunction:$Z},{scriptString:"jumpLabel",scriptType:ge.jumpLabel,scriptFunction:jZ},{scriptString:"setVar",scriptType:ge.setVar,scriptFunction:f9},{scriptString:"callScene",scriptType:ge.callScene,scriptFunction:Jw},{scriptString:"showVars",scriptType:ge.showVars,scriptFunction:HZ},{scriptString:"unlockCg",scriptType:ge.unlockCg,scriptFunction:VZ},{scriptString:"unlockBgm",scriptType:ge.unlockBgm,scriptFunction:XZ},{scriptString:"say",scriptType:ge.say,scriptFunction:aO},{scriptString:"filmMode",scriptType:ge.filmMode,scriptFunction:WZ},{scriptString:"callScene",scriptType:ge.callScene,scriptFunction:qZ},{scriptString:"setTextbox",scriptType:ge.setTextbox,scriptFunction:KZ},{scriptString:"setAnimation",scriptType:ge.setAnimation,scriptFunction:ZZ},{scriptString:"playEffect",scriptType:ge.playEffect,scriptFunction:JZ},{scriptString:"setTempAnimation",scriptType:ge.setTempAnimation,scriptFunction:QZ},{scriptString:"__commment",scriptType:ge.comment,scriptFunction:eJ},{scriptString:"setTransform",scriptType:ge.setTransform,scriptFunction:tJ},{scriptString:"setTransition",scriptType:ge.setTransition,scriptFunction:iJ}],oJ=[ge.bgm,ge.pixi,ge.pixiInit,ge.label,ge.if,ge.miniAvatar,ge.setVar,ge.unlockBgm,ge.unlockCg,ge.filmMode,ge.playEffect,ge.comment,ge.setTransition];var se;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition"})(se||(se={}));const iT=(e,t,r)=>{let n={type:se.say,additionalArgs:[]};const i=aJ(e,t,r);return n.type=i,i===se.say&&n.additionalArgs.push({key:"speaker",value:e}),n=sJ(n,i,t),n};function aJ(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):se.say}function sJ(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Ot;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Ot||(Ot={}));function uJ(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),o.match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Ot.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const lJ=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case se.playEffect:return r(e,Ot.vocal);case se.changeBg:return r(e,Ot.background);case se.changeFigure:return r(e,Ot.figure);case se.bgm:return r(e,Ot.bgm);case se.callScene:return r(e,Ot.scene);case se.changeScene:return r(e,Ot.scene);case se.miniAvatar:return r(e,Ot.figure);case se.video:return r(e,Ot.video);case se.choose:return cJ(e,r);case se.unlockBgm:return r(e,Ot.bgm);case se.unlockCg:return r(e,Ot.background);default:return e}};function cJ(e,t){var s,u;const r=e.split("|"),n=[],i=[];for(const l of r)n.push((s=l.split(":")[0])!=null?s:""),i.push((u=l.split(":")[1])!=null?u:"");const o=i.map(l=>l.match(/\./)?t(l,Ot.scene):l);let a="";for(let l=0;l{const n=[];return e===se.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Ot.vocal})}),t==="none"||t===""||(e===se.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Ot.background}),e===se.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Ot.figure}),e===se.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Ot.figure}),e===se.video&&n.push({name:t,url:t,lineNumber:0,type:Ot.video}),e===se.bgm&&n.push({name:t,url:t,lineNumber:0,type:Ot.bgm})),n},hJ=(e,t)=>{const r=[];return(e===se.changeScene||e===se.callScene)&&r.push(t),e===se.choose&&t.split("|").map(o=>{var a;return(a=o.split(":")[1])!=null?a:""}).forEach(o=>{o.match(/\./)&&r.push(o)}),r},dJ=(e,t,r,n)=>{var v;let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:se.comment,commandRaw:"comment",content:(v=e.split(";")[1])!=null?v:"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=iT(c,r,n),i=l.type;for(const m of l.additionalArgs)i===se.say&&m.key==="speaker"||s.push(m)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=iT(c,r,n),i=l.type;for(const m of l.additionalArgs)s.push(m)}const d=/ -/.exec(f);if(d){const m=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const p of uJ(m,t))s.push(p)}return o=lJ(f,i,t),u=fJ(i,o,s),a=hJ(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var bf=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pJ=typeof bf=="object"&&bf&&bf.Object===Object&&bf,vJ=pJ,mJ=vJ,gJ=typeof self=="object"&&self&&self.Object===Object&&self,_J=mJ||gJ||Function("return this")(),Vd=_J,yJ=Vd,xJ=yJ.Symbol,AN=xJ,oT=AN,IN=Object.prototype,bJ=IN.hasOwnProperty,SJ=IN.toString,Uu=oT?oT.toStringTag:void 0;function EJ(e){var t=bJ.call(e,Uu),r=e[Uu];try{e[Uu]=void 0;var n=!0}catch{}var i=SJ.call(e);return n&&(t?e[Uu]=r:delete e[Uu]),i}var wJ=EJ,TJ=Object.prototype,CJ=TJ.toString;function PJ(e){return CJ.call(e)}var OJ=PJ,aT=AN,AJ=wJ,IJ=OJ,NJ="[object Null]",RJ="[object Undefined]",sT=aT?aT.toStringTag:void 0;function kJ(e){return e==null?e===void 0?RJ:NJ:sT&&sT in Object(e)?AJ(e):IJ(e)}var FJ=kJ;function LJ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NN=LJ,BJ=FJ,DJ=NN,MJ="[object AsyncFunction]",UJ="[object Function]",GJ="[object GeneratorFunction]",$J="[object Proxy]";function jJ(e){if(!DJ(e))return!1;var t=BJ(e);return t==UJ||t==GJ||t==MJ||t==$J}var zJ=jJ,HJ=Vd,VJ=HJ["__core-js_shared__"],XJ=VJ,Jv=XJ,uT=function(){var e=/[^.]+$/.exec(Jv&&Jv.keys&&Jv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WJ(e){return!!uT&&uT in e}var YJ=WJ,qJ=Function.prototype,KJ=qJ.toString;function ZJ(e){if(e!=null){try{return KJ.call(e)}catch{}try{return e+""}catch{}}return""}var JJ=ZJ,QJ=zJ,eQ=YJ,tQ=NN,rQ=JJ,nQ=/[\\^$.*+?()[\]{}|]/g,iQ=/^\[object .+?Constructor\]$/,oQ=Function.prototype,aQ=Object.prototype,sQ=oQ.toString,uQ=aQ.hasOwnProperty,lQ=RegExp("^"+sQ.call(uQ).replace(nQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cQ(e){if(!tQ(e)||eQ(e))return!1;var t=QJ(e)?lQ:iQ;return t.test(rQ(e))}var fQ=cQ;function hQ(e,t){return e==null?void 0:e[t]}var dQ=hQ,pQ=fQ,vQ=dQ;function mQ(e,t){var r=vQ(e,t);return pQ(r)?r:void 0}var A1=mQ,gQ=A1,_Q=gQ(Object,"create"),Xd=_Q,lT=Xd;function yQ(){this.__data__=lT?lT(null):{},this.size=0}var xQ=yQ;function bQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var SQ=bQ,EQ=Xd,wQ="__lodash_hash_undefined__",TQ=Object.prototype,CQ=TQ.hasOwnProperty;function PQ(e){var t=this.__data__;if(EQ){var r=t[e];return r===wQ?void 0:r}return CQ.call(t,e)?t[e]:void 0}var OQ=PQ,AQ=Xd,IQ=Object.prototype,NQ=IQ.hasOwnProperty;function RQ(e){var t=this.__data__;return AQ?t[e]!==void 0:NQ.call(t,e)}var kQ=RQ,FQ=Xd,LQ="__lodash_hash_undefined__";function BQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=FQ&&t===void 0?LQ:t,this}var DQ=BQ,MQ=xQ,UQ=SQ,GQ=OQ,$Q=kQ,jQ=DQ;function iu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var aee=oee,see=Wd;function uee(e,t){var r=this.__data__,n=see(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var lee=uee,cee=VQ,fee=eee,hee=nee,dee=aee,pee=lee;function ou(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var pte=dte;function vte(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Dte){var l=t?null:Lte(e);if(l)return Bte(l);a=!1,i=Fte,u=new Nte}else u=t?[]:s;e:for(;++n{const u=e.split(` +`,eZ=function(e){KK(t,e);function t(r){var n=e.call(this,ZK,QK.replace("${perlin}",JK))||this;n.parallel=!0,n.time=0,n._angle=0,n.uniforms.dimensions=new Float32Array(2);var i=Object.assign(t.defaults,r);return n._angleLight=new Ye,n.angle=i.angle,n.gain=i.gain,n.lacunarity=i.lacunarity,n.alpha=i.alpha,n.parallel=i.parallel,n.center=i.center,n.time=i.time,n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.aspect=u/s,this.uniforms.time=this.time,this.uniforms.alpha=this.alpha,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},set:function(r){this._angle=r;var n=r*Md;this._angleLight.x=Math.cos(n),this._angleLight.y=Math.sin(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gain",{get:function(){return this.uniforms.gain},set:function(r){this.uniforms.gain=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lacunarity",{get:function(){return this.uniforms.lacunarity},set:function(r){this.uniforms.lacunarity=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(r){this.uniforms.alpha=r},enumerable:!1,configurable:!0}),t.defaults={angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0],alpha:1},t}(vr);class Zw extends dr{constructor(){super();_e(this,"baseX",0);_e(this,"baseY",0);_e(this,"containerFilters",new Map)}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){return super.position?super.position.x-this.baseX:0}set x(r){!super.position||(super.position.x=r+this.baseX)}get y(){return super.position?super.position.y-this.baseY:0}set y(r){!super.position||(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new _N.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new kK;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new DK;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new $K;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new VK;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new qK;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new eZ;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}addFilter(r){this.filters?this.filters.push(r):this.filters=[r]}removeFilter(r){var i;const n=this.containerFilters.get(r);if(n){const o=((i=this==null?void 0:this.filters)!=null?i:[]).findIndex(a=>a===n);this.filters&&(this.filters.splice(o,1),this.containerFilters.delete(r))}}}window.PIXI=xq;class tZ{constructor(){_e(this,"currentApp",null);_e(this,"effectsContainer");_e(this,"frameDuration",16.67);_e(this,"figureContainer");_e(this,"figureObjects",[]);_e(this,"backgroundContainer");_e(this,"backgroundObjects",[]);_e(this,"stageAnimations",[]);_e(this,"assetLoader",new hn);_e(this,"loadQueue",[]);_e(this,"lockTransformTarget",[]);_e(this,"stageWidth",2560);_e(this,"stageHeight",1440);_e(this,"MAX_TEX_COUNT",10);const t=new Ec({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),P1&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new dr,this.effectsContainer.zIndex=3,this.figureContainer=new dr,this.figureContainer.zIndex=2,this.backgroundContainer=new dr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;!t||(this.stageAnimations.push({uuid:xf(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:xf(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n,i;const r=this.stageAnimations.findIndex(o=>o.key===t);if(r>=0){const o=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(o.animationObject.tickerFunc),o.animationObject.setEndState(),this.unlockStageObject((i=o.targetKey)!=null?i:"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o,a,s;const r=this.stageAnimations.findIndex(u=>u.key===t);if(r>=0){const u=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(u.animationObject.tickerFunc),u.animationObject.setEndState();const l=(a=(o=(i=u.animationObject).getEndFilterEffect)==null?void 0:o.call(i))!=null?a:{};if(this.unlockStageObject((s=u.targetKey)!=null?s:"default"),u.targetKey){const c=this.getStageObjByKey(u.targetKey);if(c){const f=mn({alpha:c.pixiContainer.alpha,scale:{x:c.pixiContainer.scale.x,y:c.pixiContainer.scale.y},pivot:{x:c.pixiContainer.pivot.x,y:c.pixiContainer.pivot.y},position:{x:c.pixiContainer.x,y:c.pixiContainer.y},rotation:c.pixiContainer.rotation,blur:c.pixiContainer.blur},l),h=B.getState().stage.effects,d=qe(h);let v={target:u.targetKey,transform:f};const m=d.findIndex(p=>p.target===u.targetKey);m>=0?(v=d[m],v.transform=f,d[m]=v):d.push(v),O1(d)}}this.stageAnimations.splice(r,1)}}addBg(t,r){const n=this.assetLoader,i=new Zw;this.backgroundObjects.findIndex(c=>c.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=xf();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{var f,h;const c=(h=(f=n.resources)==null?void 0:f[r])==null?void 0:h.texture;if(c&&this.getStageObjByUuid(s)){const d=c.width,v=c.height,m=this.stageWidth/d,p=this.stageHeight/v,g=Math.max(m,p),_=new xo(c);_.scale.x=g,_.scale.y=g,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},l=Object.keys(n.resources);this.cacheGC(),l.includes(r)?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){const i=this.assetLoader,o=new Zw;this.figureObjects.findIndex(f=>f.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=xf();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{var h,d;const f=(d=(h=i.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(u)){const v=f.width,m=f.height,p=this.stageWidth/v,g=this.stageHeight/m,_=Math.min(p,g),y=new xo(f);y.scale.x=_,y.scale.y=_,y.anchor.set(.5),y.position.y=this.stageHeight/2;const S=v*_,b=m*_;o.setBaseY(this.stageHeight/2),br.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){zA()}loadAsset(t,r){this.loadQueue.push({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader \u6545\u969C",r),t.callback(),this.callLoader()}}}updateFps(){Kv==null||Kv(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}function O1(e){B.dispatch(ue({key:"effects",value:e}))}const Kv=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),rZ=e=>{const t=e.content;let r="",n="default";e.args.forEach(h=>{h.key==="unlockname"&&(r=h.value.toString()),h.key==="series"&&(n=h.value.toString())});const i=B.dispatch;r!==""&&i(UP({name:r,url:t,series:n}));const o=B.getState().stage.effects,a=qe(o),s=a.findIndex(h=>h.target==="bg-main");s>=0&&a.splice(s,1),O1(a);const u=ke(e,"transform");let l=ke(e,"duration");(!l||typeof l!="number")&&(l=1e3);let c;if(u)try{const h=JSON.parse(u.toString());c=jl("bg-main",h,l),c[0].alpha=0;const d=(Math.random()*10).toString(16),v={name:d,effects:c};A.animationManager.addAnimation(v),l=Er(d),A.animationManager.nextEnterAnimationName.set("bg-main",d)}catch{f()}else f();function f(){c=jl("bg-main",{},l),c[0].alpha=0;const d=(Math.random()*10).toString(16),v={name:d,effects:c};A.animationManager.addAnimation(v),l=Er(d),A.animationManager.nextEnterAnimationName.set("bg-main",d)}return ke(e,"enter")&&(A.animationManager.nextEnterAnimationName.set("bg-main",ke(e,"enter").toString()),l=Er(ke(e,"enter").toString())),ke(e,"exit")&&(A.animationManager.nextExitAnimationName.set("bg-main-off",ke(e,"exit").toString()),l=Er(ke(e,"exit").toString())),i(ue({key:"bgName",value:e.content})),{performName:"none",duration:l,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},nZ=e=>{let t="center",r=e.content,n=!1,i="",o="",a=500;for(const h of e.args)h.key==="left"&&h.value===!0&&(t="left"),h.key==="right"&&h.value===!0&&(t="right"),h.key==="clear"&&h.value===!0&&(r=""),h.key==="id"&&(n=!0,o=h.value.toString()),h.key==="motion"&&(i=h.value.toString()),r==="none"&&(r="");const s=B.dispatch,u=B.getState().stage.effects,l=qe(u),c=l.findIndex(h=>h.target===`fig-${t}`||h.target===`${o}`);c>=0&&l.splice(c,1),O1(l);const f=(h,d)=>{const v=ke(d,"transform"),m=ke(d,"duration");m&&typeof m=="number"&&(a=m);let p;if(v){console.log(v);try{const S=JSON.parse(v.toString());p=jl(h,S,a),p[0].alpha=0;const b=(Math.random()*10).toString(16),x={name:b,effects:p};A.animationManager.addAnimation(x),a=Er(b),A.animationManager.nextEnterAnimationName.set(h,b)}catch{g()}}else g();function g(){p=jl(h,{},a),p[0].alpha=0;const b=(Math.random()*10).toString(16),x={name:b,effects:p};A.animationManager.addAnimation(x),a=Er(b),A.animationManager.nextEnterAnimationName.set(h,b)}const _=ke(d,"enter"),y=ke(d,"exit");_&&(A.animationManager.nextEnterAnimationName.set(h,_.toString()),a=Er(_.toString())),y&&(A.animationManager.nextExitAnimationName.set(h+"-off",y.toString()),a=Er(y.toString()))};if(n){const h=B.getState().stage.freeFigure,d=h.findIndex(m=>m.key===o),v=qe(h);d>=0?(v[d].basePosition=t,v[d].name=r):r!==""&&v.push({key:o,name:r,basePosition:t}),f(o,e),s(ue({key:"freeFigure",value:v}))}else{const h={center:"fig-center",left:"fig-left",right:"fig-right"},d={center:"figName",left:"figNameLeft",right:"figNameRight"};o=h[t],f(o,e),s(ue({key:d[t],value:r}))}if(i){const h=B.getState().stage.live2dMotion.findIndex(v=>v.target===o);let d=B.getState().stage.live2dMotion;h<=0?d=[...B.getState().stage.live2dMotion,{target:o,motion:i}]:(d[h].motion=i,d=[...d]),s(ue({key:"live2dMotion",value:d}))}return{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},iZ=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),B.dispatch(ue({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},EN=(e,t)=>{ri(e).then(r=>{A.sceneManager.sceneData.currentScene=ni(r,t,e),A.sceneManager.sceneData.currentSentenceId=0;const n=A.sceneManager.sceneData.currentScene.subSceneList;A.sceneManager.settledScenes.push(e);const i=Cc(n);Pc(i),ne.debug("\u73B0\u5728\u5207\u6362\u573A\u666F\uFF0C\u5207\u6362\u540E\u7684\u7ED3\u679C\uFF1A",A.sceneManager.sceneData),er()})},Jw=e=>{const t=e.content.split("/"),r=t[t.length-1];return EN(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},wN=e=>{const t=A.sceneManager.sceneData.currentSentenceId;let r=t;A.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ge.label&&n.content===e&&i>=t&&(r=i)}),A.sceneManager.sceneData.currentSentenceId=r,setTimeout(er,1)},oZ="_Choose_Main_1vesq_1",aZ="_Choose_item_1vesq_13";var Qw={Choose_Main:oZ,Choose_item:aZ},eT="./assets/mouseEnter.5a3b96c2.mp3",sZ="./assets/maou_se_system35.e9a0fbf5.mp3",uZ="./assets/maou_se_system39.83f23302.mp3",lZ="./assets/maou_se_system40.5ea5b302.mp3",cZ="./assets/maou_se_system41.40379b65.mp3",tT="./assets/maou_se_system48.42cd8650.mp3",fZ="./assets/Motion-Pop03-4.e9d3227e.mp3",hZ="./assets/button-16.00e3576c.wav",dZ="./assets/button-20.024a70ef.wav",pZ="./assets/button-50.5bd1149c.wav",vZ="./assets/click_soft_02.2117c44b.wav",mZ="./assets/Book_Page_Flip.728e73c9.wav",rT="./assets/page-flip-1.54d26022.wav",gZ="./assets/pause.f58623bb.mp3",_Z="./assets/pausestart.4bbbf46e.wav",yZ="./assets/s-cheremisinov-Click-03.52e0f964.wav",Zv="./assets/switch-1.02defb9e.wav",xZ="./assets/water-drop-sound.d65ba25f.wav",bZ="./assets/aigei-se-01.59bff9b9.mp3",SZ="./assets/aigei-se-02.f00f4ff2.mp3",EZ="./assets/aigei-se-03.505e2cd5.mp3",Mu="./assets/zhanZhang-y1970.46589584.mp3",wZ="./assets/taoshen-01.0580b987.wav";const lr=()=>({playSeEnter:()=>{B.dispatch(ue({key:"uiSe",value:eT}))},playSeEnterChoose:()=>{B.dispatch(ue({key:"uiSe",value:SZ}))},playSeEnterTitleButton:()=>{B.dispatch(ue({key:"uiSe",value:bZ}))},playSeEnterOptionSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterMenuPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterSavePanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterLoadPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterCGPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:Mu}))},playSeEnterExtraElement:()=>{B.dispatch(ue({key:"uiSe",value:eT}))},playSeEnterExtraBGMButton:()=>{B.dispatch(ue({key:"uiSe",value:wZ}))},playSeEnterCloseButton:()=>{B.dispatch(ue({key:"uiSe",value:EZ}))},playSeEnterDialogButton:()=>{B.dispatch(ue({key:"uiSe",value:fZ}))},playSeEnterOptionSlider:()=>{B.dispatch(ue({key:"uiSe",value:xZ}))},playSeClick:()=>{B.dispatch(ue({key:"uiSe",value:uZ}))},playSeClickChoose:()=>{B.dispatch(ue({key:"uiSe",value:cZ}))},playSeClickTitleButton:()=>{B.dispatch(ue({key:"uiSe",value:lZ}))},playSeClickCloseButton:()=>{B.dispatch(ue({key:"uiSe",value:hZ}))},playSeClickBottomControlPanelButton:()=>{B.dispatch(ue({key:"uiSe",value:dZ}))},playSeClickMenuNormalButton:()=>{B.dispatch(ue({key:"uiSe",value:pZ}))},playSeClickOptionSelect:()=>{B.dispatch(ue({key:"uiSe",value:Zv}))},playSeClickLoadPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:rT}))},playSeClickSavePanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:rT}))},playSeClickSaveElement:()=>{B.dispatch(ue({key:"uiSe",value:tT}))},playSeClickLoadElement:()=>{B.dispatch(ue({key:"uiSe",value:tT}))},playSeClickDialogButton:()=>{B.dispatch(ue({key:"uiSe",value:sZ}))},playSeClickToNextBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:Zv}))},playSeClickToLastBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:Zv}))},playSeClickBeginBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:_Z}))},playSeClickStopBgmButton:()=>{B.dispatch(ue({key:"uiSe",value:gZ}))},playSeClickCGPanelSelect:()=>{B.dispatch(ue({key:"uiSe",value:mZ}))},playSeClickCGElement:()=>{B.dispatch(ue({key:"uiSe",value:yZ}))},playSeClickBacklogJumpButton:()=>{B.dispatch(ue({key:"uiSe",value:vZ}))}}),TZ=e=>{const r=e.content.split("|").map(u=>u.split(":")),i=B.getState().userData.optionData.textboxFont===ws.song?'"\u601D\u6E90\u5B8B\u4F53", serif':'"WebgalUI", serif',{playSeEnterChoose:o,playSeClickChoose:a}=lr(),s=r.map((u,l)=>w("div",{className:Qw.Choose_item,style:{fontFamily:i},onClick:()=>{a(),u[1].match(/\./)?EN(u[1],u[0]):wN(u[1]),A.gameplay.performController.unmountPerform("choose")},onMouseEnter:o,children:u[0]},u[0]+l));return fo.render(w("div",{className:Qw.Choose_Main,children:s}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{fo.render(w("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},CZ=e=>{T1(!0);const t=B.dispatch,r=eo("start.txt",Qi.scene);return ri(r).then(n=>{A.sceneManager.sceneData.currentScene=ni(n,"start.txt",r)}),t(rt({component:"showTitle",visibility:!0})),a0(B.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},PZ=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=ke(e,"enter"),o=ke(e,"volume");return r!==""&&B.dispatch(GP({name:r,url:t,series:n})),a0(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},OZ=e=>{const t=p0();fo.render(w("div",{className:Ln.videoContainer,children:w("video",{className:Ln.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let r=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(n=>{setTimeout(()=>{let i=document.getElementById("playVideoElement");if(i!==null){i.currentTime=0;const o={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{i.oncanplay=()=>{};const a=B.getState().userData,s=a.optionData.volumeMain,u=s*.01*a.optionData.vocalVolume*.01,l=s*.01*a.optionData.bgmVolume*.01,c=document.getElementById("currentBgm");c&&(c.volume=l.toString());const f=document.getElementById("currentVocal");c&&(f.volume=u.toString()),fo.render(w("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>!1,blockingAuto:()=>!r,stopTimeout:void 0,goNextWhenOver:!0};n(o),i.oncanplay=()=>{const u=document.getElementById("currentBgm");u&&(u.volume=0 .toString());const l=document.getElementById("currentVocal");u&&(l.volume=0 .toString()),i==null||i.play()},i.onended=()=>{for(const a of A.gameplay.performController.performList)a.performName===t&&(r=!0,a.stopFunction(),A.gameplay.performController.unmountPerform(a.performName),er())}}},1)})}};function AZ(e,t){const r=A.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=A.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const IZ=[{name:"universalSoftIn",animationGenerateFunc:IA},{name:"universalSoftOff",animationGenerateFunc:NA},{name:"testblur",animationGenerateFunc:AZ}],NZ=e=>{var s,u,l,c;B.getState().stage.currentDialogKey;const t=e.content,r=(s=ke(e,"duration"))!=null?s:0,n=(u=ke(e,"target"))!=null?u:0,i=`${n}-${t}-${r}`,o=RZ(t);let a=()=>{};if(o){ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${n}`,r);const f=o(n,r);(l=A.gameplay.pixiStage)==null||l.stopPresetAnimationOnTarget(n),(c=A.gameplay.pixiStage)==null||c.registerAnimation(f,i,n),a=()=>{var h;B.getState().stage.currentDialogKey,(h=A.gameplay.pixiStage)==null||h.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function RZ(e){const t=IZ.find(r=>r.name===e);return ne.debug("\u88C5\u8F7D\u52A8\u753B",t),t?t.animationGenerateFunc:null}const kZ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),FZ=e=>(A.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi \u88AB\u811A\u672C\u91CD\u65B0\u521D\u59CB\u5316",t.performName);for(let i=0;i{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),LZ="modulepreload",nT={},BZ="./",DZ=function(t,r){return!r||r.length===0?t():Promise.all(r.map(n=>{if(n=`${BZ}${n}`,n in nT)return;nT[n]=!0;const i=n.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${o}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":LZ,i||(a.as="script",a.crossOrigin=""),a.href=n,document.head.appendChild(a),i)return new Promise((s,u)=>{a.addEventListener("load",s),a.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},TN=new Map;function MZ(e){return e?typeof e=="string"?e:e():null}function CN(e){const t=MZ(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function hle(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);TN.set(CN(e),t)}function UZ(e,t=[]){const r=TN.get(CN(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}DZ(()=>import("./initRegister.f9801cb3.js"),[]);const GZ=e=>{const t="PixiPerform"+e.content;A.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=UZ(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("\u73B0\u5728\u6B63\u5728\u5378\u8F7Dpixi\u6F14\u51FA"),n.destroy({texture:!0,baseTexture:!0}),(o=A.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=A.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},$Z=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),jZ=e=>(wN(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),zZ={backlog_size:200},PN={textInitialDelay:80},HZ=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch;n(ue({key:"showText",value:JSON.stringify(t.GameVar)})),n(ue({key:"showName",value:"\u5C55\u793A\u53D8\u91CF"})),ne.debug("\u5C55\u793A\u53D8\u91CF\uFF1A",t.GameVar),setTimeout(()=>{[...document.querySelectorAll("."+it.TextBox_textElement_start)].forEach(l=>{l.className=it.TextBox_textElement})},0);const i=p0(),o=PN.textInitialDelay-20*r.optionData.textSpeed,a=750-r.optionData.textSpeed*250;return{performName:i,duration:e.content.length*o+a,isHoldOn:!1,stopFunction:()=>{[...document.querySelectorAll("."+it.TextBox_textElement)].forEach(l=>{l.className=it.TextBox_textElement_Settled})},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},VZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`\u89E3\u9501CG\uFF1A${r}\uFF0C\u8DEF\u5F84\uFF1A${t}\uFF0C\u6240\u5C5E\u7CFB\u5217\uFF1A${n}`),B.dispatch(UP({name:r,url:t,series:n}));const i=B.getState().userData;return Ah.setItem(A.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},XZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`\u89E3\u9501BGM\uFF1A${r}\uFF0C\u8DEF\u5F84\uFF1A${t}\uFF0C\u6240\u5C5E\u7CFB\u5217\uFF1A${n}`),B.dispatch(GP({name:r,url:t,series:n}));const i=B.getState().userData;return Ah.setItem(A.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},WZ=e=>(e.content!==""&&e.content!=="none"?B.dispatch(ue({key:"enableFilm",value:e.content})):B.dispatch(ue({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),YZ=(e,t)=>{A.sceneManager.sceneData.sceneStack.push({sceneName:A.sceneManager.sceneData.currentScene.sceneName,sceneUrl:A.sceneManager.sceneData.currentScene.sceneUrl,continueLine:A.sceneManager.sceneData.currentSentenceId}),ri(e).then(r=>{A.sceneManager.sceneData.currentScene=ni(r,t,e),A.sceneManager.sceneData.currentSentenceId=0;const n=A.sceneManager.sceneData.currentScene.subSceneList;A.sceneManager.settledScenes.push(e);const i=Cc(n);Pc(i),ne.debug("\u73B0\u5728\u8C03\u7528\u573A\u666F\uFF0C\u8C03\u7528\u7ED3\u679C\uFF1A",A.sceneManager.sceneData),er()})},qZ=e=>{const t=e.content.split("/"),r=t[t.length-1];return YZ(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function KZ(e){return e.content==="hide"?B.dispatch(ue({key:"isDisableTextbox",value:!0})):B.dispatch(ue({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const ZZ=e=>{var a;B.getState().stage.currentDialogKey;const t=e.content,r=Er(t),n=(a=ke(e,"target"))!=null?a:0,i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var u,l;(u=A.gameplay.pixiStage)==null||u.stopPresetAnimationOnTarget(n);const s=Gh(t,n,r);s&&(ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${n}`,r),(l=A.gameplay.pixiStage)==null||l.registerAnimation(s,i,n))},0),o=()=>{setTimeout(()=>{var s;B.getState().stage.currentDialogKey,(s=A.gameplay.pixiStage)==null||s.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},JZ=e=>{ne.debug("play SE");let t="effect-sound";A.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;ke(e,"id")&&(t=`effect-sound-${ke(e,"id")}`,A.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d,v;const a=ke(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=B.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*((v=(d=u.optionData)==null?void 0:d.seVolume)!=null?v:100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.oncanplay=()=>{},s.pause()},blockingNext:()=>!1,blockingAuto:()=>!i,stopTimeout:void 0};o(h),s.oncanplay=()=>{s==null||s.play()},s.onended=()=>{for(const m of A.gameplay.performController.performList)m.performName===t&&(i=!0,m.stopFunction(),A.gameplay.performController.unmountPerform(m.performName))}},1)})}},QZ=e=>{var l;B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};A.animationManager.addAnimation(i);const o=Er(t),a=(l=ke(e,"target"))!=null?l:0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var f,h;(f=A.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(a);const c=Gh(t,a,o);c&&(ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${a}`,o),(h=A.gameplay.pixiStage)==null||h.registerAnimation(c,s,a))},0),u=()=>{setTimeout(()=>{var c;B.getState().stage.currentDialogKey,(c=A.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},eJ=e=>(ne.debug(`\u811A\u672C\u5185\u6CE8\u91CA${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),tJ=e=>{var c;B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=ke(e,"duration"),o=(c=ke(e,"target"))!=null?c:0;try{const f=JSON.parse(r);n=jl(o,f,i)}catch{n=[]}const a={name:t,effects:n};A.animationManager.addAnimation(a);const s=nJ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var h,d;(h=A.gameplay.pixiStage)==null||h.stopPresetAnimationOnTarget(o);const f=rJ(t,o,s);f&&(ne.debug(`\u52A8\u753B${t}\u4F5C\u7528\u5728${o}`,s),(d=A.gameplay.pixiStage)==null||d.registerAnimation(f,u,o))},0),l=()=>{setTimeout(()=>{var f;B.getState().stage.currentDialogKey,(f=A.gameplay.pixiStage)==null||f.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function rJ(e,t,r){const n=A.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=qe(kn(mn({},x0),{duration:0}));return Object.assign(a,o),a.duration=o.duration/1e3,a});return ne.debug("\u88C5\u8F7D\u81EA\u5B9A\u4E49\u52A8\u753B",i),AA(i,t,r)}return null}function nJ(e){const t=A.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const iJ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return ke(e,"enter")&&A.animationManager.nextEnterAnimationName.set(t,ke(e,"enter").toString()),ke(e,"exit")&&A.animationManager.nextExitAnimationName.set(t+"-off",ke(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},ON=[{scriptString:"intro",scriptType:ge.intro,scriptFunction:g9},{scriptString:"changeBg",scriptType:ge.changeBg,scriptFunction:rZ},{scriptString:"changeFigure",scriptType:ge.changeFigure,scriptFunction:nZ},{scriptString:"miniAvatar",scriptType:ge.miniAvatar,scriptFunction:iZ},{scriptString:"changeScene",scriptType:ge.changeScene,scriptFunction:Jw},{scriptString:"choose",scriptType:ge.choose,scriptFunction:TZ},{scriptString:"end",scriptType:ge.end,scriptFunction:CZ},{scriptString:"bgm",scriptType:ge.bgm,scriptFunction:PZ},{scriptString:"playVideo",scriptType:ge.video,scriptFunction:OZ},{scriptString:"setComplexAnimation",scriptType:ge.setComplexAnimation,scriptFunction:NZ},{scriptString:"setFilter",scriptType:ge.setFilter,scriptFunction:kZ},{scriptString:"pixiInit",scriptType:ge.pixiInit,scriptFunction:FZ},{scriptString:"pixiPerform",scriptType:ge.pixi,scriptFunction:GZ},{scriptString:"label",scriptType:ge.label,scriptFunction:$Z},{scriptString:"jumpLabel",scriptType:ge.jumpLabel,scriptFunction:jZ},{scriptString:"setVar",scriptType:ge.setVar,scriptFunction:f9},{scriptString:"callScene",scriptType:ge.callScene,scriptFunction:Jw},{scriptString:"showVars",scriptType:ge.showVars,scriptFunction:HZ},{scriptString:"unlockCg",scriptType:ge.unlockCg,scriptFunction:VZ},{scriptString:"unlockBgm",scriptType:ge.unlockBgm,scriptFunction:XZ},{scriptString:"say",scriptType:ge.say,scriptFunction:aO},{scriptString:"filmMode",scriptType:ge.filmMode,scriptFunction:WZ},{scriptString:"callScene",scriptType:ge.callScene,scriptFunction:qZ},{scriptString:"setTextbox",scriptType:ge.setTextbox,scriptFunction:KZ},{scriptString:"setAnimation",scriptType:ge.setAnimation,scriptFunction:ZZ},{scriptString:"playEffect",scriptType:ge.playEffect,scriptFunction:JZ},{scriptString:"setTempAnimation",scriptType:ge.setTempAnimation,scriptFunction:QZ},{scriptString:"__commment",scriptType:ge.comment,scriptFunction:eJ},{scriptString:"setTransform",scriptType:ge.setTransform,scriptFunction:tJ},{scriptString:"setTransition",scriptType:ge.setTransition,scriptFunction:iJ}],oJ=[ge.bgm,ge.pixi,ge.pixiInit,ge.label,ge.if,ge.miniAvatar,ge.setVar,ge.unlockBgm,ge.unlockCg,ge.filmMode,ge.playEffect,ge.comment,ge.setTransition];var se;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition"})(se||(se={}));const iT=(e,t,r)=>{let n={type:se.say,additionalArgs:[]};const i=aJ(e,t,r);return n.type=i,i===se.say&&n.additionalArgs.push({key:"speaker",value:e}),n=sJ(n,i,t),n};function aJ(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):se.say}function sJ(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Ot;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Ot||(Ot={}));function uJ(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),o.match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Ot.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const lJ=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case se.playEffect:return r(e,Ot.vocal);case se.changeBg:return r(e,Ot.background);case se.changeFigure:return r(e,Ot.figure);case se.bgm:return r(e,Ot.bgm);case se.callScene:return r(e,Ot.scene);case se.changeScene:return r(e,Ot.scene);case se.miniAvatar:return r(e,Ot.figure);case se.video:return r(e,Ot.video);case se.choose:return cJ(e,r);case se.unlockBgm:return r(e,Ot.bgm);case se.unlockCg:return r(e,Ot.background);default:return e}};function cJ(e,t){var s,u;const r=e.split("|"),n=[],i=[];for(const l of r)n.push((s=l.split(":")[0])!=null?s:""),i.push((u=l.split(":")[1])!=null?u:"");const o=i.map(l=>l.match(/\./)?t(l,Ot.scene):l);let a="";for(let l=0;l{const n=[];return e===se.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Ot.vocal})}),t==="none"||t===""||(e===se.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Ot.background}),e===se.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Ot.figure}),e===se.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Ot.figure}),e===se.video&&n.push({name:t,url:t,lineNumber:0,type:Ot.video}),e===se.bgm&&n.push({name:t,url:t,lineNumber:0,type:Ot.bgm})),n},hJ=(e,t)=>{const r=[];return(e===se.changeScene||e===se.callScene)&&r.push(t),e===se.choose&&t.split("|").map(o=>{var a;return(a=o.split(":")[1])!=null?a:""}).forEach(o=>{o.match(/\./)&&r.push(o)}),r},dJ=(e,t,r,n)=>{var v;let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:se.comment,commandRaw:"comment",content:(v=e.split(";")[1])!=null?v:"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=iT(c,r,n),i=l.type;for(const m of l.additionalArgs)i===se.say&&m.key==="speaker"||s.push(m)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=iT(c,r,n),i=l.type;for(const m of l.additionalArgs)s.push(m)}const d=/ -/.exec(f);if(d){const m=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const p of uJ(m,t))s.push(p)}return o=lJ(f,i,t),u=fJ(i,o,s),a=hJ(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var bf=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pJ=typeof bf=="object"&&bf&&bf.Object===Object&&bf,vJ=pJ,mJ=vJ,gJ=typeof self=="object"&&self&&self.Object===Object&&self,_J=mJ||gJ||Function("return this")(),Vd=_J,yJ=Vd,xJ=yJ.Symbol,AN=xJ,oT=AN,IN=Object.prototype,bJ=IN.hasOwnProperty,SJ=IN.toString,Uu=oT?oT.toStringTag:void 0;function EJ(e){var t=bJ.call(e,Uu),r=e[Uu];try{e[Uu]=void 0;var n=!0}catch{}var i=SJ.call(e);return n&&(t?e[Uu]=r:delete e[Uu]),i}var wJ=EJ,TJ=Object.prototype,CJ=TJ.toString;function PJ(e){return CJ.call(e)}var OJ=PJ,aT=AN,AJ=wJ,IJ=OJ,NJ="[object Null]",RJ="[object Undefined]",sT=aT?aT.toStringTag:void 0;function kJ(e){return e==null?e===void 0?RJ:NJ:sT&&sT in Object(e)?AJ(e):IJ(e)}var FJ=kJ;function LJ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NN=LJ,BJ=FJ,DJ=NN,MJ="[object AsyncFunction]",UJ="[object Function]",GJ="[object GeneratorFunction]",$J="[object Proxy]";function jJ(e){if(!DJ(e))return!1;var t=BJ(e);return t==UJ||t==GJ||t==MJ||t==$J}var zJ=jJ,HJ=Vd,VJ=HJ["__core-js_shared__"],XJ=VJ,Jv=XJ,uT=function(){var e=/[^.]+$/.exec(Jv&&Jv.keys&&Jv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WJ(e){return!!uT&&uT in e}var YJ=WJ,qJ=Function.prototype,KJ=qJ.toString;function ZJ(e){if(e!=null){try{return KJ.call(e)}catch{}try{return e+""}catch{}}return""}var JJ=ZJ,QJ=zJ,eQ=YJ,tQ=NN,rQ=JJ,nQ=/[\\^$.*+?()[\]{}|]/g,iQ=/^\[object .+?Constructor\]$/,oQ=Function.prototype,aQ=Object.prototype,sQ=oQ.toString,uQ=aQ.hasOwnProperty,lQ=RegExp("^"+sQ.call(uQ).replace(nQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cQ(e){if(!tQ(e)||eQ(e))return!1;var t=QJ(e)?lQ:iQ;return t.test(rQ(e))}var fQ=cQ;function hQ(e,t){return e==null?void 0:e[t]}var dQ=hQ,pQ=fQ,vQ=dQ;function mQ(e,t){var r=vQ(e,t);return pQ(r)?r:void 0}var A1=mQ,gQ=A1,_Q=gQ(Object,"create"),Xd=_Q,lT=Xd;function yQ(){this.__data__=lT?lT(null):{},this.size=0}var xQ=yQ;function bQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var SQ=bQ,EQ=Xd,wQ="__lodash_hash_undefined__",TQ=Object.prototype,CQ=TQ.hasOwnProperty;function PQ(e){var t=this.__data__;if(EQ){var r=t[e];return r===wQ?void 0:r}return CQ.call(t,e)?t[e]:void 0}var OQ=PQ,AQ=Xd,IQ=Object.prototype,NQ=IQ.hasOwnProperty;function RQ(e){var t=this.__data__;return AQ?t[e]!==void 0:NQ.call(t,e)}var kQ=RQ,FQ=Xd,LQ="__lodash_hash_undefined__";function BQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=FQ&&t===void 0?LQ:t,this}var DQ=BQ,MQ=xQ,UQ=SQ,GQ=OQ,$Q=kQ,jQ=DQ;function iu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var aee=oee,see=Wd;function uee(e,t){var r=this.__data__,n=see(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var lee=uee,cee=VQ,fee=eee,hee=nee,dee=aee,pee=lee;function ou(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var pte=dte;function vte(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Dte){var l=t?null:Lte(e);if(l)return Bte(l);a=!1,i=Fte,u=new Nte}else u=t?[]:s;e:for(;++n{const u=e.split(` `);let l=[],c=[];const f=u.map(h=>{const d=dJ(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=jte(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};se.intro,se.changeBg,se.changeFigure,se.miniAvatar,se.changeScene,se.choose,se.end,se.bgm,se.video,se.setComplexAnimation,se.setFilter,se.pixiInit,se.pixi,se.label,se.jumpLabel,se.setVar,se.callScene,se.showVars,se.unlockCg,se.unlockBgm,se.say,se.filmMode,se.callScene,se.setTextbox,se.setAnimation,se.playEffect;se.bgm,se.pixi,se.pixiInit,se.label,se.if,se.miniAvatar,se.setVar,se.unlockBgm,se.unlockCg,se.filmMode,se.playEffect;class Hte{constructor(t,r,n,i){_e(this,"assetsPrefetcher");_e(this,"assetSetter");_e(this,"ADD_NEXT_ARG_LIST");_e(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return zte(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return t}}const ni=(e,t,r)=>{const i=new Hte(nj,eo,oJ,ON).parse(e,t,r);return ne.info(`\u89E3\u6790\u573A\u666F\uFF1A${t}\uFF0C\u6570\u636E\u4E3A\uFF1A`,i),i},Vte=()=>{T1(!0);const e=eo("start.txt",Qi.scene);ri(e).then(t=>{A.sceneManager.sceneData.currentScene=ni(t,"start.txt",e),er()}),B.dispatch(rt({component:"showTitle",visibility:!1}))};async function Xte(){if(Tc(B.getState().stage.bgName),await xK()&&A.sceneManager.sceneData.currentSentenceId===0){await bK();return}A.sceneManager.sceneData.currentSentenceId===0&&A.sceneManager.sceneData.currentScene.sceneName==="start.txt"?er():w1()}var kN={exports:{}},FN={};/** * @license React * use-sync-external-store-shim.production.min.js diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister.cbb86c08.js b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister.f9801cb3.js similarity index 97% rename from packages/terre2/assets/templates/WebGAL_Template/assets/initRegister.cbb86c08.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/initRegister.f9801cb3.js index 461139ee..6a1c8ca6 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister.cbb86c08.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister.f9801cb3.js @@ -1 +1 @@ -import{r as S,W as h,C as u,T as w,S as C}from"./index.66cce355.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); +import{r as S,W as h,C as u,T as w,S as C}from"./index.9a5985bf.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); diff --git a/packages/terre2/assets/templates/WebGAL_Template/index.html b/packages/terre2/assets/templates/WebGAL_Template/index.html index 280355d0..39d5399f 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/index.html +++ b/packages/terre2/assets/templates/WebGAL_Template/index.html @@ -7,7 +7,7 @@ WebGAL - +