@drincs/pixi-vn-ink 0.9.13 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-HFXHGUSH.mjs +5 -0
- package/dist/{chunk-7VVH5MSQ.mjs → chunk-NG6ODEEE.mjs} +27 -25
- package/dist/index.cjs +34 -32
- package/dist/index.mjs +1 -1
- package/dist/vite-listener.cjs +40 -38
- package/dist/vite-listener.mjs +1 -1
- package/dist/vite.cjs +23 -21
- package/dist/vite.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-PAM5OWE4.mjs +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import {a,c,b,e,d,f}from'./chunk-NG6ODEEE.mjs';import {RegisteredLabels,narration,LabelAbstract,NarrationManagerStatic}from'@drincs/pixi-vn/narration';import {storage,SYSTEM_RESERVED_STORAGE_KEYS}from'@drincs/pixi-vn/storage';import {canvas,VideoSprite,showVideo,ZoomTicker,RotateTicker,MoveTicker,FadeAlphaTicker,sound,Assets,narration as narration$1,Text,showText,ImageSprite,showImage,ImageContainer,showImageContainer,shakeEffect,pushOut,zoomOut,moveOut,removeWithDissolve,removeWithFade,pushIn,zoomIn,moveIn,showWithDissolve,showWithFade}from'@drincs/pixi-vn';import {RegisteredCharacters}from'@drincs/pixi-vn/characters';var st=Object.defineProperty,lt=(t,e,i)=>e in t?st(t,e,{enumerable:true,configurable:true,writable:true,value:i}):t[e]=i,fe=(t,e,i)=>lt(t,typeof e!="symbol"?e+"":e,i),ie=class P{static t(e){return Array.isArray(e)?e.map(i=>P.translate(`${i}`)):P.translate(`${e}`)}static set beforeToTranslate(e){P._beforeToTranslate=e;}static set translate(e){P._translate=e;}static get translate(){return e=>{let i=e;return P._beforeToTranslate&&(i=P._beforeToTranslate(i)),i=P._translate(i),P._afterToTranslate&&(i=P._afterToTranslate(i)),i}}static set afterToTranslate(e){P._afterToTranslate=e;}static addKey(e,i,n){let r=n.defaultValue||"empty_string";typeof i=="string"&&(i=[i]),Array.isArray(i)&&i.forEach(o=>{e[o]===void 0&&(r==="empty_string"?e[o]="":r==="copy_key"&&(P._beforeToTranslate?e[o]=P._beforeToTranslate(o):e[o]=o));});}static getConditionalsThenElse(e,i=[]){if(typeof e=="object"&&e&&"type"in e)if(e.type==="ifelse")e.then&&P.getConditionalsThenElse(e.then,i),e.else&&P.getConditionalsThenElse(e.else,i);else if(e.type==="stepswitch"){if(e.elements)if(Array.isArray(e.elements))e.elements.forEach(n=>{P.getConditionalsThenElse(n,i);});else if(e.elements.type==="ifelse"){let n=[];P.getConditionalsThenElse(e.elements,n),n.forEach(r=>{i.push(...r);});}else if(e.elements.type==="stepswitch"){let n=[];P.getConditionalsThenElse(e.elements,n),n.forEach(r=>{i.push(...r);});}else P.getConditionalsThenElse(e.elements,i);}else e.type==="resulttocombine"?(e.firstItem&&P.getConditionalsThenElse(e.firstItem,i),e.secondConditionalItem&&e.secondConditionalItem.forEach(n=>{P.getConditionalsThenElse(n,i);})):i.push(e);else e&&i.push(e);return i}static generateJsonTranslation(e,i={},n={}){let{defaultValue:r="copy_key"}=n;return e.forEach(o=>{if(o.choices){let p=[];Array.isArray(o.choices)?p=[o.choices]:p=P.getConditionalsThenElse(o.choices),p.forEach(g=>g.forEach(c=>{if("type"in c){let l=[];c.type==="ifelse"||c.type==="stepswitch"?P.getConditionalsThenElse(c,l):l=[c],l.map(s=>P.getConditionalsThenElse(s.text)).forEach(s=>{Array.isArray(s)&&s.forEach(d=>{Array.isArray(d)?d.forEach(f=>{typeof f=="string"?P.addKey(i,f,{defaultValue:r}):P.getConditionalsThenElse(f).forEach(y=>{Array.isArray(y)?y.forEach(T=>{typeof T=="string"&&P.addKey(i,T,{defaultValue:r});}):typeof y=="string"&&P.addKey(i,y,{defaultValue:r});});}):typeof d=="string"&&P.addKey(i,d,{defaultValue:r});});});}}));}if(o.dialogue){let p=[];Array.isArray(o.dialogue)?p=[o.dialogue]:p=P.getConditionalsThenElse(o.dialogue),p.forEach(g=>{if(typeof g=="string")P.addKey(i,g,{defaultValue:r});else if("text"in g){let c=P.getConditionalsThenElse(g.text);typeof c=="string"&&(c=[c]),c.forEach(l=>{typeof l=="string"?P.addKey(i,l,{defaultValue:r}):P.getConditionalsThenElse(l).forEach(s=>{typeof s=="string"?P.addKey(i,s,{defaultValue:r}):Array.isArray(s)&&s.forEach(d=>{typeof d=="string"?P.addKey(i,d,{defaultValue:r}):P.getConditionalsThenElse(d).forEach(f=>{typeof f=="string"&&P.addKey(i,f,{defaultValue:r});});});});});}});}o.conditionalStep&&P.getConditionalsThenElse(o.conditionalStep).forEach(p=>{Array.isArray(p)?P.generateJsonTranslation(p,i,n):P.generateJsonTranslation([p],i,n);});}),i}};fe(ie,"_beforeToTranslate"),fe(ie,"_translate",t=>t),fe(ie,"_afterToTranslate");var pt=ie,J=pt;var ct=Object.defineProperty,ut=(t,e,i)=>e in t?ct(t,e,{enumerable:true,configurable:true,writable:true,value:i}):t[e]=i,j=(t,e,i)=>ut(t,typeof e!="symbol"?e+"":e,i),k;(t=>(t.log=(e,...i)=>console.log(`[Pixi\u2019VN Json] ${e}`,...i),t.warn=(e,...i)=>console.warn(`[Pixi\u2019VN Json] ${e}`,...i),t.error=(e,...i)=>console.error(`[Pixi\u2019VN Json] ${e}`,...i),t.info=(e,...i)=>console.info(`[Pixi\u2019VN Json] ${e}`,...i)))(k||(k={}));var L=class E{static init(e){E._loadAssets=e.loadAssets,E._soundOperation=e.soundOperation,E._imageOperation=e.imageOperation,E._videoOperation=e.videoOperation,E._imageContainerOperation=e.imageContainerOperation,E._textOperation=e.textOperation,E._canvasElementOperation=e.canvasElementOperation,E._setStorageValue=e.setStorageValue,E._narrationOperation=e.narrationOperation,E._tickerOperation=e.tickerOperation,E._effectOperation=e.effectOperation,E._animateOperation=e.animateOperation,E._getLogichValue=e.getLogichValue,E._getConditionalStep=e.getConditionalStep;}static get loadAssets(){return E._loadAssets}static get soundOperation(){return E._soundOperation}static get imageOperation(){return E._imageOperation}static get videoOperation(){return E._videoOperation}static get textOperation(){return E._textOperation}static get imageContainerOperation(){return E._imageContainerOperation}static get canvasElementOperation(){return E._canvasElementOperation}static get setStorageValue(){return E._setStorageValue}static get narrationOperation(){return E._narrationOperation}static get tickerOperation(){return E._tickerOperation}static get effectOperation(){return E._effectOperation}static get animateOperation(){return E._animateOperation}static get getLogichValue(){return E._getLogichValue}static get getConditionalStep(){return E._getConditionalStep}};j(L,"_loadAssets",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_soundOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_imageOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_videoOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_imageContainerOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_textOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_canvasElementOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_setStorageValue",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_narrationOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_tickerOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_effectOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_animateOperation",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_getLogichValue",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),j(L,"_getConditionalStep",()=>{throw k.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")});var O=L;var dt=Object.create,de=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,yt=Object.getOwnPropertyNames,mt=Object.getPrototypeOf,Tt=Object.prototype.hasOwnProperty,xt=(t,e,i)=>e in t?de(t,e,{enumerable:true,configurable:true,writable:true,value:i}):t[e]=i,Le=(t=>typeof a<"u"?a:typeof Proxy<"u"?new Proxy(t,{get:(e,i)=>(typeof a<"u"?a:e)[i]}):t)(function(t){if(typeof a<"u")return a.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),_e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bt=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of yt(e))!Tt.call(t,r)&&r!==i&&de(t,r,{get:()=>e[r],enumerable:!(n=ht(e,r))||n.enumerable});return t},vt=(t,e,i)=>(i=t!=null?dt(mt(t)):{},bt(de(i,"default",{value:t,enumerable:true}),t)),ge=(t,e,i)=>xt(t,typeof e!="symbol"?e+"":e,i),St=_e((t,e)=>{(function(i,n){typeof t=="object"?e.exports=t=n():typeof define=="function"&&define.amd?define([],n):i.CryptoJS=n();})(t,function(){var i=i||(function(n,r){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof global<"u"&&global.crypto&&(o=global.crypto),!o&&typeof Le=="function")try{o=Le("crypto");}catch{}var p=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||(function(){function u(){}return function(a){var b;return u.prototype=a,b=new u,u.prototype=null,b}})(),c={},l=c.lib={},s=l.Base=(function(){return {extend:function(u){var a=g(this);return u&&a.mixIn(u),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments);}),a.init.prototype=a,a.$super=this,a},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var a in u)u.hasOwnProperty(a)&&(this[a]=u[a]);u.hasOwnProperty("toString")&&(this.toString=u.toString);},clone:function(){return this.init.prototype.extend(this)}}})(),d=l.WordArray=s.extend({init:function(u,a){u=this.words=u||[],a!=r?this.sigBytes=a:this.sigBytes=u.length*4;},toString:function(u){return (u||y).stringify(this)},concat:function(u){var a=this.words,b=u.words,h=this.sigBytes,v=u.sigBytes;if(this.clamp(),h%4)for(var N=0;N<v;N++){var ce=b[N>>>2]>>>24-N%4*8&255;a[h+N>>>2]|=ce<<24-(h+N)%4*8;}else for(var I=0;I<v;I+=4)a[h+I>>>2]=b[I>>>2];return this.sigBytes+=v,this},clamp:function(){var u=this.words,a=this.sigBytes;u[a>>>2]&=4294967295<<32-a%4*8,u.length=n.ceil(a/4);},clone:function(){var u=s.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var a=[],b=0;b<u;b+=4)a.push(p());return new d.init(a,u)}}),f=c.enc={},y=f.Hex={stringify:function(u){for(var a=u.words,b=u.sigBytes,h=[],v=0;v<b;v++){var N=a[v>>>2]>>>24-v%4*8&255;h.push((N>>>4).toString(16)),h.push((N&15).toString(16));}return h.join("")},parse:function(u){for(var a=u.length,b=[],h=0;h<a;h+=2)b[h>>>3]|=parseInt(u.substr(h,2),16)<<24-h%8*4;return new d.init(b,a/2)}},T=f.Latin1={stringify:function(u){for(var a=u.words,b=u.sigBytes,h=[],v=0;v<b;v++){var N=a[v>>>2]>>>24-v%4*8&255;h.push(String.fromCharCode(N));}return h.join("")},parse:function(u){for(var a=u.length,b=[],h=0;h<a;h++)b[h>>>2]|=(u.charCodeAt(h)&255)<<24-h%4*8;return new d.init(b,a)}},x=f.Utf8={stringify:function(u){try{return decodeURIComponent(escape(T.stringify(u)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(u){return T.parse(unescape(encodeURIComponent(u)))}},m=l.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new d.init,this._nDataBytes=0;},_append:function(u){typeof u=="string"&&(u=x.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes;},_process:function(u){var a,b=this._data,h=b.words,v=b.sigBytes,N=this.blockSize,ce=N*4,I=v/ce;u?I=n.ceil(I):I=n.max((I|0)-this._minBufferSize,0);var te=I*N,Ne=n.min(te*4,v);if(te){for(var ue=0;ue<te;ue+=N)this._doProcessBlock(h,ue);a=h.splice(0,te),b.sigBytes-=Ne;}return new d.init(a,Ne)},clone:function(){var u=s.clone.call(this);return u._data=this._data.clone(),u},_minBufferSize:0});l.Hasher=m.extend({cfg:s.extend(),init:function(u){this.cfg=this.cfg.extend(u),this.reset();},reset:function(){m.reset.call(this),this._doReset();},update:function(u){return this._append(u),this._process(),this},finalize:function(u){u&&this._append(u);var a=this._doFinalize();return a},blockSize:16,_createHelper:function(u){return function(a,b){return new u.init(b).finalize(a)}},_createHmacHelper:function(u){return function(a,b){return new V.HMAC.init(u,b).finalize(a)}}});var V=c.algo={};return c})(Math);return i});}),Pt=_e((t,e)=>{(function(i,n){typeof t=="object"?e.exports=t=n(St()):typeof define=="function"&&define.amd?define(["./core"],n):n(i.CryptoJS);})(t,function(i){return (function(){var n=i,r=n.lib,o=r.WordArray,p=r.Hasher,g=n.algo,c=[],l=g.SHA1=p.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(s,d){for(var f=this._hash.words,y=f[0],T=f[1],x=f[2],m=f[3],V=f[4],u=0;u<80;u++){if(u<16)c[u]=s[d+u]|0;else {var a=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=a<<1|a>>>31;}var b=(y<<5|y>>>27)+V+c[u];u<20?b+=(T&x|~T&m)+1518500249:u<40?b+=(T^x^m)+1859775393:u<60?b+=(T&x|T&m|x&m)-1894007588:b+=(T^x^m)-899497514,V=m,m=x,x=T<<30|T>>>2,T=y,y=b;}f[0]=f[0]+y|0,f[1]=f[1]+T|0,f[2]=f[2]+x|0,f[3]=f[3]+m|0,f[4]=f[4]+V|0;},_doFinalize:function(){var s=this._data,d=s.words,f=this._nDataBytes*8,y=s.sigBytes*8;return d[y>>>5]|=128<<24-y%32,d[(y+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(y+64>>>9<<4)+15]=f,s.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var s=p.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=p._createHelper(l),n.HmacSHA1=p._createHmacHelper(l);})(),i.SHA1});}),G;(t=>(t.log=(e,...i)=>console.log(`[Pixi\u2019VN Json] ${e}`,...i),t.warn=(e,...i)=>console.warn(`[Pixi\u2019VN Json] ${e}`,...i),t.error=(e,...i)=>console.error(`[Pixi\u2019VN Json] ${e}`,...i),t.info=(e,...i)=>console.info(`[Pixi\u2019VN Json] ${e}`,...i)))(G||(G={}));async function he(t,e={}){let{operationStringConvert:i,skipEmptyDialogs:n}=e;if(!Array.isArray(t))if(typeof t=="object"||typeof t=="string")t=[t];else {G.error("Error parsing imported Pixi'VN JSON: data is not an object");return}let r=t.map(async p=>{if(typeof p=="string")try{p=JSON.parse(p);}catch(g){G.error("Error parsing imported Pixi'VN JSON",g),p={};}return p}),o=(await Promise.all(r)).map(async p=>{let g=[];if(p.initialOperations){let c={};[...storage.storage.keys()].forEach((l,s)=>{c[l]=storage.storage.get(l);}),storage.startingStorage=c;}if(p.labels){let c=p.labels;for(let l in c)try{let s=c[l],d=new At(l,s,void 0,e);RegisteredLabels.add(d);}catch(s){G.error(`Error creating JSON label ${l}`,s);}}return Promise.all(g)});await Promise.all(o);}var Vt=vt(Pt()),je="___param___";function Ot(t){try{if(typeof t>"u")return t;let e=JSON.stringify(t);return JSON.parse(e)}catch(e){throw G.error("Error creating exportable element",t,e),new Error("[Pixi\u2019VN] Error creating exportable element")}}async function De(t,e){let i=O.getLogichValue(t);if(i)switch(i.type){case "sound":O.soundOperation(i);break;case "assets":case "bundle":await O.loadAssets(i);break;case "image":await O.imageOperation(i);break;case "video":await O.videoOperation(i);break;case "imagecontainer":await O.imageContainerOperation(i);break;case "text":await O.textOperation(i);break;case "canvaselement":await O.canvasElementOperation(i);break;case "value":O.setStorageValue(i);break;case "operationtoconvert":if(e){let n="";i.values.forEach(o=>{if(typeof o=="string")n+=o;else {let p=O.getLogichValue(o);n+=`${p}`;}});let r=await e(n);r&&await De(r,e);}break;case "input":case "dialogue":O.narrationOperation(i);break;case "fade":case "move":case "rotate":case "zoom":O.tickerOperation(i);break;case "shake":await O.effectOperation(i);break;case "animate":case "animate-sequence":O.animateOperation(i);break}}var At=class extends LabelAbstract{constructor(t,e,i,n={}){i||(i={}),i.onLoadingLabel=async()=>{for(let r of e){let o;if(typeof r=="function"?o=r():o=r,o=O.getConditionalStep(o),o.operations){let p=o.operations.map(g=>O.loadAssets(g));await Promise.all(p);}}},super(t,i),ge(this,"_steps"),ge(this,"operationStringConvert"),ge(this,"skipEmptyDialogs",false),this._steps=e,this.operationStringConvert=n.operationStringConvert,this.skipEmptyDialogs=n.skipEmptyDialogs||false;}get steps(){return this._steps.map(t=>this.stepConverter(t))}get stepCount(){return this._steps.length}getStepById(t){if(t<0||t>=this._steps.length)return;let e=this._steps[t];return this.stepConverter(e)}getStepSha(t){if(t<0||t>=this.steps.length)return;let e=this._steps[t];return (0, Vt.default)(e.toString().toLocaleLowerCase()).toString()}getDialogueText(t){let e="";if(Array.isArray(t)){let i=[];t.forEach(n=>{if(typeof n=="string")i.push(n);else if(n&&typeof n=="object"){let r=O.getLogichValue(n);r?(r&&!Array.isArray(r)&&typeof r=="object"&&(r=O.getLogichValue(r)||""),Array.isArray(r)?i=i.map(o=>`${o}`).concat(r):i.push(`${r}`)):i.push(`${n}`);}else i.push(`${n}`);}),e=i;}else {let i=O.getLogichValue(t)||"";i&&!Array.isArray(i)&&typeof i=="object"&&(i=O.getLogichValue(i)||""),e=i;}return `${e}`}getDialogue(t){if(t==null)return;let e=O.getLogichValue(t);return e==null?"":typeof e=="object"&&"character"in e&&"text"in e?{character:e.character,text:J.t(this.getDialogueText(e.text))}:J.t(this.getDialogueText(e))}getChoices(t){return O.getLogichValue(t)?.map(e=>O.getLogichValue(e)).filter(e=>e!==void 0)}stepConverter(t){return async e=>{let i=typeof t=="function"?t():t;i=Ot(i),i=O.getConditionalStep(i);let n=this.operationStringConvert?f=>this.operationStringConvert(f,i,e):void 0,{operations:r=[]}=i;for(let f of r)await De(f,n);let{labelToOpen:o=[]}=i,p=this.getChoices(i.choices),g=O.getLogichValue(i.glueEnabled),c=this.getDialogue(i.dialogue),l=[];Array.isArray(o)||(o=[o]),o.forEach(f=>{let y=O.getLogichValue(f);y&&l.push(y);});let s=O.getLogichValue(i.goNextStep),d=O.getLogichValue(i.end);if(p){let f=p.map(y=>{let T="";if(Array.isArray(y.text)){let x=[];y.text.forEach(m=>{if(typeof m=="string")x.push(J.t(m));else if(m&&typeof m=="object"){let V=O.getLogichValue(m);V&&!Array.isArray(V)&&typeof V=="object"&&(V=O.getLogichValue(V)||""),V&&(Array.isArray(V)?x=x.concat(J.t(V)):x.push(J.t(V)));}}),T=x;}else typeof y.text=="string"&&(T=J.t(y.text));return {label:y.label,text:T,props:y.props,type:y.type,oneTime:y.oneTime,onlyHaveNoChoice:y.onlyHaveNoChoice,autoSelect:y.autoSelect}});narration.choiceMenuOptions=f;}else narration.choiceMenuOptions=void 0;c!==void 0&&(narration.dialogue=c,this.skipEmptyDialogs&&typeof c=="string"&&(c===""||RegExp(/^\s+$/).test(c))&&(s=true)),g?storage.setFlag(SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY,true):g===false&&storage.setFlag(SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY,false);for(let f of l){let y=f.label;typeof y=="object"&&(y=O.getLogichValue(y)||"");let T=f.params?.map(x=>O.getLogichValue(x));e={...e,...f.props},f.type==="jump"?(narration.openedLabels.length>0&&narration.closeCurrentLabel(),storage.setTempVariable(`${je}${narration.openedLabels.length}`,T),await narration.callLabel(y,e)):(storage.setTempVariable(`${je}${narration.openedLabels.length}`,T),await narration.callLabel(y,e));}d==="game_end"?(narration.closeAllLabels(),await narration.goNext(e,{runNow:true})):d==="label_end"&&narration.closeCurrentLabel(),s&&await narration.goNext(e,{runNow:true});}}};var me="___param___";async function Qt(t){let e=O.getLogichValue(t);if(e)switch(e.type){case "assets":switch(e.operationType){case "load":await Assets.load(e.aliases);break;case "lazyload":Assets.backgroundLoad(e.aliases);break}break;case "bundle":switch(e.operationType){case "load":await Assets.loadBundle(e.aliases);break;case "lazyload":Assets.backgroundLoadBundle(e.aliases);break}break}}var R;(t=>(t.log=(e,...i)=>console.log(`[Pixi\u2019VN Json] ${e}`,...i),t.warn=(e,...i)=>console.warn(`[Pixi\u2019VN Json] ${e}`,...i),t.error=(e,...i)=>console.error(`[Pixi\u2019VN Json] ${e}`,...i),t.info=(e,...i)=>console.info(`[Pixi\u2019VN Json] ${e}`,...i)))(R||(R={}));async function oe(t,e,i){switch(i.type){case "fade":await showWithFade(e.alias,t,i.props,i.priority);break;case "dissolve":await showWithDissolve(e.alias,t,i.props,i.priority);break;case "movein":case "moveout":await moveIn(e.alias,t,i.props,i.priority);break;case "zoomin":case "zoomout":await zoomIn(e.alias,t,i.props,i.priority);break;case "pushin":case "pushout":await pushIn(e.alias,t,i.props,i.priority);break}}function Z(t){if(t.transition)switch(t.transition.type){case "fade":removeWithFade(t.alias,t.transition.props,t.transition.priority);break;case "dissolve":removeWithDissolve(t.alias,t.transition.props,t.transition.priority);break;case "movein":case "moveout":moveOut(t.alias,t.transition.props,t.transition.priority);break;case "zoomin":case "zoomout":zoomOut(t.alias,t.transition.props,t.transition.priority);break;case "pushin":case "pushout":pushOut(t.alias,t.transition.props,t.transition.priority);break}else canvas.remove(t.alias);}async function Xt(t){switch(t.operationType){case "show":if(t.transition){let i=new ImageSprite(t.props,t.url||t.alias);await oe(i,t,t.transition);}else await showImage(t.alias,t.url,t.props);break;case "edit":let e=canvas.find(t.alias);e?t.props&&await e.setMemory({...e.memory,...t.props}):R.error(`Image with alias ${t.alias} not found.`);break;case "remove":Z(t);break}}async function Kt(t){switch(t.operationType){case "show":if(t.transition){let r=new VideoSprite(t.props,t.url||t.alias);await oe(r,t,t.transition);}else await showVideo(t.alias,t.url,t.props);break;case "edit":let e=canvas.find(t.alias);e?t.props&&await e.setMemory({...e.memory,...t.props}):R.error(`Video with alias ${t.alias} not found.`);break;case "remove":Z(t);break;case "pause":let i=canvas.find(t.alias);i?i.paused=true:R.error(`Video with alias ${t.alias} not found.`);break;case "resume":let n=canvas.find(t.alias);n?n.paused=false:R.error(`Video with alias ${t.alias} not found.`);break}}async function Zt(t){switch(t.operationType){case "show":if(t.transition){let i=new ImageContainer(t.props,t.urls);await oe(i,t,t.transition);}else await showImageContainer(t.alias,t.urls,t.props);break;case "edit":let e=canvas.find(t.alias);e?t.props&&await e.setMemory({...e.memory,...t.props}):R.error(`ImageContainer with alias ${t.alias} not found.`);break;case "remove":Z(t);break}}async function ei(t){switch(t.operationType){case "show":if(t.props=t.props||{},t.props.text=t.text,t.transition){let i=new Text(t.props);await oe(i,t,t.transition);}else showText(t.alias,t.text,t.props);break;case "edit":let e=canvas.find(t.alias);e?t.props&&await e.setMemory({...e.memory,...t.props}):R.error(`Text with alias ${t.alias} not found.`);break;case "remove":Z(t);break}}async function ti(t){switch(t.operationType){case "edit":try{let e=canvas.find(t.alias);e?t.props&&(e.memory={...e.memory,...t.props}):R.error(`Canvas Element with alias ${t.alias} not found.`);}catch(e){R.error(`There was an error while trying to edit the canvas element with alias ${t.alias}.`,e);}break;case "remove":Z(t);break}}function ii(t){switch(t.type){case "fade":let e=new FadeAlphaTicker(t.props,t.duration,t.priority);canvas.addTicker(t.alias,e);break;case "move":let i=new MoveTicker(t.props,t.duration,t.priority);canvas.addTicker(t.alias,i);break;case "rotate":let n=new RotateTicker(t.props,t.duration,t.priority);canvas.addTicker(t.alias,n);break;case "zoom":let r=new ZoomTicker(t.props,t.duration,t.priority);canvas.addTicker(t.alias,r);break}}async function ri(t){switch(t.type){case "shake":await shakeEffect(t.alias,t.props,t.priority);break}}function ni(t){switch(t.type){case "animate":canvas.animate(t.alias,t.keyframes,t.options,t.priority);break;case "animate-sequence":canvas.animate(t.alias,t.sequence,t.options,t.priority);break}}function oi(t){switch(t.type){case "input":narration$1.requestInput({type:t.valueType},t.defaultValue);break;case "dialogue":narration$1.dialogue=void 0;break}}function ai(t){switch(t.operationType){case "play":sound.play(t.alias,t.props);break;case "stop":sound.stop(t.alias);break;case "pause":sound.pause(t.alias);break;case "resume":sound.resume(t.alias);break;case "volume":sound.volume(t.alias,t.value);break}}function si(t){try{if(typeof t>"u")return t;let e=JSON.stringify(t);return JSON.parse(e)}catch(e){throw R.error("Error creating exportable element",t,e),new Error("[Pixi\u2019VN] Error creating exportable element")}}function li(t){let e=w(t.value),i;switch(e&&typeof e=="object"&&"type"in e?i=w(e):i=e,t.storageType){case "flagStorage":storage.setFlag(t.key,t.value);break;case "storage":storage.setVariable(t.key,i);break;case "tempstorage":storage.setTempVariable(t.key,i);break;case "params":let n=storage.getVariable(`${me}${narration.openedLabels.length-1}`)||[];n&&n.length-1>=t.key&&(n[t.key]=i),storage.setTempVariable(`${me}${narration.openedLabels.length-1}`,n);break}}function w(t){let e=di(t);if(e&&typeof e=="object"&&"type"in e)switch(e.type){case "value":return ci(e);case "arithmetic":case "arithmeticsingle":return pi(e);case "compare":case "valueCondition":case "union":return ui(e)}return e}function pi(t){let e=w(t.leftValue);switch(t.type){case "arithmetic":let i=w(t.rightValue);switch(t.operator){case "*":return e*i;case "/":return e/i;case "+":return e+i;case "-":return e-i;case "%":return e%i;case "POW":return Math.pow(e,i);case "RANDOM":return narration.getRandomNumber(e,i)}case "arithmeticsingle":switch(t.operator){case "INT":return parseInt(e);case "FLOOR":return Math.floor(e);case "FLOAT":return parseFloat(e)}break}}function ci(t){if(t&&typeof t=="object"&&"type"in t&&t.type==="value"&&t.storageOperationType==="get")switch(t.storageType){case "storage":case "tempstorage":return storage.getVariable(t.key);case "flagStorage":return storage.getFlag(t.key);case "label":return narration.getTimesLabelOpened(t.label);case "choice":return narration.getTimesChoiceMade(t.index);case "logic":return w(t.operation);case "params":let e=storage.getVariable(`${me}${narration.openedLabels.length-1}`)||[];if(e&&e.length>t.key)return e[t.key];R.warn("getValue params not found");return}return t}function ui(t){if(!t)return false;if(typeof t!="object"||!("type"in t))return !!t;switch(t.type){case "compare":let e=w(t.leftValue),i=w(t.rightValue);switch(t.operator){case "==":return e===i;case "!=":return e!==i;case "<":return e<i;case "<=":return e<=i;case ">":return e>i;case ">=":return e>=i;case "CONTAINS":return e.toString().includes(i.toString())}break;case "valueCondition":return !!w(t.value);case "union":return fi(t)}return !!t}function fi(t){if(t.unionType==="not")return !w(t.condition);let e=t.unionType==="and";for(let i=0;i<t.conditions.length;i++)if(e=w(t.conditions[i])||false,t.unionType==="and"){if(!e)return false}else if(e)return true;return e}function gi(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function di(t){if(Array.isArray(t)||!t)return t;if(t&&typeof t=="object"&&"type"in t)switch(t.type){case "resulttocombine":return hi(t);case "ifelse":return w(t.condition)?w(t.then):w(t.else);case "stepswitch":let e=w(t.elements)||[];if(e.length===0){R.error("getValueFromConditionalStatements elements.length === 0");return}switch(t.choiceType){case "random":let i=gi(0,e.length-1);return w(e[i]);case "loop":let n=NarrationManagerStatic.getCurrentStepTimesCounter(t.nestedId)-1;return n>e.length-1&&(n=n%e.length),w(e[n]);case "sequential":let r,o=NarrationManagerStatic.getCurrentStepTimesCounter(t.nestedId)-1;return t.end=="lastItem"&&(r=w(e[e.length-1])),o>e.length-1?r:w(e[o]);case "sequentialrandom":let p=NarrationManagerStatic.getRandomNumber(0,e.length-1,{nestedId:t.nestedId,onceOnly:true});if(p==null&&t.end=="lastItem"){let g=NarrationManagerStatic.getCurrentStepTimesCounterData(t.nestedId);if(!g||!g?.usedRandomNumbers){R.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}let c=g.usedRandomNumbers[`0-${e.length-1}`];return w(e[c[c.length-1]])}if(p==null){R.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}return w(e[p])}}return t}function Te(t){if(t.conditionalStep){let e=si(w(t.conditionalStep));if(e?.glueEnabled===void 0&&delete e?.glueEnabled,e?.goNextStep===void 0&&delete e?.goNextStep,e?.end===void 0&&delete e?.end,e?.choices===void 0&&delete e?.choices,e?.dialogue===void 0&&delete e?.dialogue,e?.labelToOpen===void 0&&delete e?.labelToOpen,e?.operations===void 0&&delete e?.operations,e){let i={...t,conditionalStep:void 0,...e};return Te(i)}else storage.getFlag(SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY)&&storage.setFlag(SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY,false);}return t}function hi(t){let e=t.firstItem,i=[];t.secondConditionalItem?.forEach(r=>{if(Array.isArray(r))r.forEach(o=>{let p=w(o);i.push(p);});else {let o=w(r);i.push(o);}});let n=e?[e,...i]:i;if(n.length===0){R.warn("combinateResult toCheck.length === 0");return}if(typeof n[0]=="string")return J.t(n);if(typeof n[0]=="object"){let r=n,o,p=r.map((m,V)=>{m=Te(m);let u=w(m.dialogue)||"";return V===0?(o=w(m.glueEnabled)||false,u):(typeof u=="object"&&"text"in u&&(u=u.character+": "+u.text),o===false&&(u=`
|
|
2
|
+
|
|
3
|
+
`+u),o=w(m.glueEnabled)||false,u)}),g=w(p[0]),c=typeof g=="object"&&"character"in g?g.character:void 0,l=p.flatMap(m=>{let V;m&&typeof m=="object"&&"text"in m?V=m.text:V=m;let u;return Array.isArray(V)?u=V.map(a=>{let b=w(a);return J.t(`${b}`)}):u=w(V)||"",J.t(u)}),s=r.find(m=>m.end),d=r.find(m=>m.choices),f=false,y=false;r.length>0&&(r[0].glueEnabled&&r[0].goNextStep&&r[0].dialogue===void 0&&storage.setFlag(SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY,true),f=r[r.length-1].glueEnabled,y=r.reverse().find(m=>!(m.operations&&(!m.dialogue||!m.choices)))?.goNextStep);let T=r.find(m=>m.labelToOpen),x=[];return r.forEach(m=>{m.operations&&x.forEach(V=>{x.push(V);});}),{dialogue:c?{character:c,text:l}:l,end:s?.end,choices:d?.choices,glueEnabled:f,goNextStep:y,labelToOpen:T?.labelToOpen,operations:x}}}function xe(){O.init({animateOperation:ni,canvasElementOperation:ti,effectOperation:ri,imageContainerOperation:Zt,imageOperation:Xt,textOperation:ei,narrationOperation:oi,loadAssets:Qt,soundOperation:ai,tickerOperation:ii,videoOperation:Kt,setStorageValue:li,getLogichValue:w,getConditionalStep:Te});}var Ie="\xA7SPACE\xA7",$e="\xA7DOUBLE_QUOTES\xA7",Be="\xA7QUOTES\xA7",He="SPECIAL_\xA7QUOTES\xA7",ze="\xA7CURLY_BRACKETS1\xA7",Me="\xA7CURLY_BRACKETS2\xA7",yi=["add","play","pause","resume","remove","volume"],S=class S{static runCustomHashtagScript(e,i){return S._customHashtagScript(e,i,S.convertListStringToObj)}static set customHashtagScript(e){S._customHashtagScript=e;}static async generateOrRunOperationFromHashtagScript(e,i,n){try{e=e.replaceAll('\\"',$e),e=e.replaceAll("\\'",Be),e=e.replaceAll("\\`",He),e=e.replaceAll("\\{",ze),e=e.replaceAll("\\}",Me),e=e.replaceAll("{"," { "),e=e.replaceAll("}"," } "),e=e.replaceAll(ze,"{"),e=e.replaceAll(Me,"}");let r=[],o,p="";for(let s=0;s<e.length;s++){let d=e[s];d==='"'||d==="'"||d==="`"?o===void 0?(r.push(p),p="",o=d,p+=d):o===d?(o=void 0,p+=d,r.push(p),p=""):p+=d:p+=d;}p!==""&&r.push(p),r.forEach((s,d)=>{d%2===1&&(r[d]=s.replaceAll(" ",Ie));}),e=r.join(""),r=e.split(" ").filter(s=>s!==""),r=r.map(s=>s.replaceAll(Ie," ").replaceAll($e,'"').replaceAll(Be,"'").replaceAll(He,"`"));let g=S.runCustomHashtagScript(r,n);if(g===!0)return;if(typeof g=="string")return g.startsWith("#")&&(g=g.substring(1)),S.generateOrRunOperationFromHashtagScript(g,i,n);let c=r.length>1?S.removeExtraDoubleQuotes(r[1]):"",l=r.length>0?S.removeExtraDoubleQuotes(r[0]):"";switch(c){case "image":case "imagecontainer":case "canvaselement":case "video":case "text":return c==="video"&&(l==="pause"||l==="resume")?{type:"video",operationType:l,alias:S.removeExtraDoubleQuotes(r[2])}:S.getCanvasOperationFromComment(r,c);case "sound":return S.getSoundOperationFromComment(r);case "input":if(l==="request"){let s={type:"input",operationType:"request"};if(r.length>2)try{let d=r.slice(2),f=S.convertListStringToObj(d);"type"in f&&typeof f.type=="string"&&(s.valueType=f.type),"default"in f&&(s.defaultValue=f.default);}catch{}return s}break;case "assets":case "bundle":switch(l){case "load":case "lazyload":return {type:c,operationType:l,aliases:r.slice(2)}}break;default:if(c)switch(l){case "call":case "jump":i.labelToOpen={label:c,type:l},i.goNextStep=void 0;return;case "fade":case "move":case "rotate":case "zoom":case "shake":let s={};if(r.length>2)try{s=S.convertListStringToObj(r.slice(2));}catch{}if(l=="move"&&"x"in s&&"y"in s&&(s.destination={x:s.x,y:s.y,type:"pixel"},delete s.x,delete s.y),l=="move"&&"xAlign"in s&&"yAlign"in s&&(s.destination={x:s.xAlign,y:s.yAlign,type:"align"},delete s.xAlign,delete s.yAlign),l=="move"&&"xPercentage"in s&&"yPercentage"in s&&(s.destination={x:s.xPercentage,y:s.yPercentage,type:"percentage"},delete s.xPercentage,delete s.yPercentage),l=="move"&&!("destination"in s)){d.error("The move operation don't have a destination or destination is not valid",s);return}return {alias:c,type:l,props:s};case "animate":let f={},y={};if(r.length>2){let x=r.slice(2),m=[];if(x.includes("options")){let V=x.indexOf("options");m=x.slice(V+1),x=x.slice(0,V);}try{f=S.convertListStringToObj(x);}catch{}if(m.length>0)try{y=S.convertListStringToObj(m);}catch{}}return {alias:c,type:l,keyframes:f,options:y}}else switch(l){case "pause":return "dialogue"in i&&delete i.dialogue,"goNextStep"in i&&delete i.goNextStep,{type:"dialogue",operationType:"clean"};case "continue":i.goNextStep=!0,i.glueEnabled=!1;return}}}catch(r){throw d.error("Error parsing ink hashtag-script",e),r}d.error("The operation is not valid",e);}static getCanvasOperationFromComment(e,i){let n=S.removeExtraDoubleQuotes(e[0]),r=S.removeExtraDoubleQuotes(e[2]),o=S.convertListStringToPropList(e.slice(3));switch(n){case "show":switch(i){case "image":case "video":return S.getImageOperationFromComment(i,r,o);case "imagecontainer":return S.getContainerOperationFromComment(i,r,o);case "text":return S.getTextOperationFromComment(i,r,o);case "canvaselement":default:d.error("This show operation is not valid for this type of element",i);}case "edit":return {type:i,operationType:"edit",alias:r,props:S.convertPropListStringToObj(o)};case "remove":let g={type:i,operationType:"remove",alias:r};if(o.length>1&&o[0]==="with"){let c=e[e.indexOf("with")+1],l=e.slice(e.indexOf("with")+2),s=S.getTransition(c,l);s!==void 0&&(g.transition=s);}return g;default:d.error("The operation type is not valid",n);}}static getImageOperationFromComment(e,i,n){let r,o;n.length%2===0?(r=i,o=n):(r=S.removeExtraDoubleQuotes(n[0]),o=S.convertListStringToPropList(n.slice(1)));let p={type:e,operationType:"show",alias:i,url:r};return S.setShowProps(p,o)}static getTextOperationFromComment(e,i,n){let r,o;n.length%2===0?(r=i,o=n):(r=S.removeExtraDoubleQuotes(n[0]),o=S.convertListStringToPropList(n.slice(1)));let p={type:e,operationType:"show",alias:i,text:r};return S.setShowProps(p,o)}static getContainerOperationFromComment(e,i,n){let r=[],o=n.findIndex(l=>l.startsWith("[")),p=n.findIndex(l=>l.endsWith("]"));if(o===-1||p===-1){d.error("Show imagecontainer must have a list of image ulrs",n);return}if(r=n.slice(o,p+1),r.length<2){d.error("Show imagecontainer must have a list of image ulrs",n);return}r[0]==="["?r.shift():r[0]=r[0].substring(1),r[r.length-1]==="]"?r.pop():r[r.length-1]=r[r.length-1].substring(0,r[r.length-1].length-1);let g={type:e,operationType:"show",alias:i,urls:r.map(l=>S.removeExtraDoubleQuotes(l))},c=S.convertListStringToPropList(n.slice(p+1));return S.setShowProps(g,c)}static getSoundOperationFromComment(e){let i=S.removeExtraDoubleQuotes(e[0]);if(!yi.includes(i))return;let n=S.removeExtraDoubleQuotes(e[2]);switch(i){case "play":let r={type:"sound",operationType:"play",alias:n};if(e.length>3){let l=S.getSoundPlayOptions(e.slice(3));l!==void 0&&(r.props=l);}return r;case "pause":case "resume":return {type:"sound",operationType:i,alias:n};case "stop":case "remove":return {type:"sound",operationType:"stop",alias:n};case "volume":let g=parseFloat(e[3]);return {type:"sound",operationType:"volume",alias:n,value:g}}}static setShowProps(e,i){if(i.length>0){if(i.includes("with")&&i.length>i.indexOf("with")+1){let n=i[i.indexOf("with")+1],r=i.slice(i.indexOf("with")+2);i=i.slice(0,i.indexOf("with"));let o=S.getTransition(n,r);o!==void 0&&(e.transition=o);}if(i.length>0){let n=S.convertListStringToObj(i);e.props=n;}}return e}static getTransition(e,i){switch(e){case "dissolve":case "fade":case "movein":case "moveout":case "zoomin":case "zoomout":case "pushin":case "pushout":break;default:return}let n={type:e};if(i.length>0)try{let r=S.convertPropListStringToObj(i);n.props=r;}catch{}return n}static getSoundOption(e){try{return S.convertListStringToObj(e)}catch{return}}static getSoundPlayOptions(e){try{return S.convertListStringToObj(e)}catch{return}}static convertListStringToObj(e){let i=S.convertListStringToPropList(e);return S.convertPropListStringToObj(i)}static convertListStringToPropList(e){let i=[],n=0,r="";for(let o=0;o<e.length;o++){let p=e[o];p.startsWith("{")?(n++,r+=p):p.endsWith("}")&&n>0?(n--,r+=p,n===0&&(i.push(r),r="")):n>0?r+=p:i.push(p);}return i}static convertPropListStringToObj(e){if(e.length===0)return {};if(e.length%2!==0)throw d.error("The props list must have a pair number of elements",e),new Error("The props list must have a pair number of elements");let i="{";e.forEach((n,r)=>{if(r%2===0)i+=`"${n}": `;else {switch(n){case "null":case "undefined":case "true":case "false":i+=`${n}`;break;default:S.containExtraDoubleQuotes(n)?(n=S.removeExtraDoubleQuotes(n),i+=`"${n}"`):n.startsWith("{")&&n.endsWith("}")?i+=`${n}`:n.startsWith('"')&&n.endsWith('"')?i+=`${n}`:isNaN(parseFloat(n))?i+=`"${n}"`:i+=`${n}`;}r<e.length-1&&(i+=", ");}}),i+="}";try{return JSON.parse(i)}catch(n){throw d.error("Error parsing ink json",i),n}}static removeExtraDoubleQuotes(e){return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")||e.startsWith("`")&&e.endsWith("`")?e.substring(1,e.length-1):e}static containExtraDoubleQuotes(e){return !!(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")||e.startsWith("`")&&e.endsWith("`"))}};c(S,"_customHashtagScript",e=>false);var B=S;function mi(t){B.customHashtagScript=t;}var Ee=b(e(),1);var ae="global decl",H="___external_value___";function ee(t,e){if(t.endsWith(".s"))return;if(new RegExp(/.*\.[0-9]+\..*$/).test(t)&&(t=t.split(".").filter(r=>!r.match(/^[0-9]+$/)).join("."),!t.startsWith(".")))return t.replaceAll(".","_|_");if(!new RegExp(/^\.\^.*$/).test(t)&&t.includes("g-")){let n=t.split("g-");return be(e)+"_|_"+"g-"+n[n.length-1]}let i=0;for(;new RegExp(/^\.\^.*$/).test(t);)i++,t=t.substring(2);if(i=i-1,new RegExp(/^\..*$/).test(t)&&e){let n=t.substring(1);return be(e,i)+"_|_"+n.replaceAll(".","_|_")}return t.replaceAll(".","_|_")||be(e,i).replaceAll(".","_|_")}function be(t,e=0){let i=t.split("_|_");for(;i.length>1&&e>0;)i.pop()?.includes("g-")&&e--,e--;return i.join("_|_")}var We="\xA7DOUBLE_SLASH_CONVERTOR\xA7";function $(t){return t.startsWith("^")&&(t=t.substring(1)),t=t.replaceAll("\\\\",We),t=t.replaceAll("\\n",`
|
|
4
|
+
`),t=t.replaceAll("\\t"," "),t=t.replaceAll(" "," "),t=t.replaceAll(We,"\\\\"),t}var Ge=["+","-","/","*","%","_","==",">","<",">=","<=","!=","!","&&","||","MIN","MAX"],Ue=["+","-","/","*","%","POW","RANDOM"],Ye=["INT","FLOOR","FLOAT"],qe=["==",">","<",">=","<=","!=","CONTAINS"];function Y(t,e,i){t=t.map(r=>{if(typeof r=="string"){if(r==="rnd")return "RANDOM";if(r==="?")return "CONTAINS"}return r});let n=[];return t.forEach(r=>{if(typeof r=="object"&&"CNT?"in r)if(new RegExp(/.*\.[0-9]\..*/).test(r["CNT?"])){let o=r["CNT?"].split("."),p=o.pop(),g=o.pop();if(g===void 0||p===void 0){d.error("Error parsing ink file: Conditional statement is not valid",t);return}let c=parseInt(g),l=o.join(".");if(l.includes("^.")){let d=l.split("."),f=d[d.length-1].replaceAll(".","_|_");d.pop(),l=d.join(".")+"."+f,p.includes("c-")&&(l=l+"_|_"+p);}else l=l.replaceAll(".","_|_");let s=ee(l,e);if(!s)return;n.push({type:"compare",leftValue:Qe(s),operator:">=",rightValue:{type:"value",value:c}});}else {let o=ee(r["CNT?"],e);if(!o)return;n.push(Qe(o));}else if(typeof r=="object"&&"VAR?"in r)n.push(q(r["VAR?"],i));else if(r==="&&"||r==="||"){if(n.length>=2){let o={type:"union",unionType:r==="&&"?"and":"or",conditions:[n[n.length-2],n[n.length-1]]};n.pop(),n.pop(),n.push(o);}}else if(r==="!")if(n.length===0)d.error("Error parsing ink file: Conditional statement is not valid",t);else {let o={type:"union",unionType:"not",condition:n[n.length-1]};n[n.length-1]=o;}else if(r&&typeof r=="string"&&qe.includes(r))if(n.length<2)d.error("Error parsing ink file: Conditional statement is not valid",t);else {let o={type:"compare",operator:r,rightValue:n[n.length-1],leftValue:n[n.length-2]};n.pop(),n.pop(),n.push(o);}else if(r&&typeof r=="string"&&Ue.includes(r))if(n.length<2)d.error("Error parsing ink file: Conditional statement is not valid",t);else {let o={type:"arithmetic",operator:r,rightValue:n[n.length-1],leftValue:n[n.length-2]};n.pop(),n.pop(),n.push(o);}else if(r&&typeof r=="string"&&Ye.includes(r)){let o={type:"arithmeticsingle",operator:r,leftValue:n[n.length-1]};n.pop(),n.push(o);}else r&&typeof r=="string"?r.startsWith("^")&&n.push($(r)):typeof r=="object"&&"^->"in r?r["^->"].includes("$r")||n.push(r["^->"]):n.push(r);}),n}function Qe(t){return {type:"value",storageType:"label",storageOperationType:"get",label:t}}function Xe(t,e,i){return Y(t,e,i)}function q(t,e,i="storage"){let n=e.indexOf(t);return n>=0?{type:"value",storageType:"params",storageOperationType:"get",key:n}:{type:"value",storageOperationType:"get",storageType:i,key:t}}function ve(t,e,i,n="storage"){let r=e.indexOf(t);return r>=0?{type:"value",storageType:"params",storageOperationType:"set",key:r,value:i}:{type:"value",storageOperationType:"set",storageType:n,key:t,value:i}}function Se(t,e){return e||t.includes("_|_")?"call":"jump"}function se(t,e){e&&(typeof e=="string"?e.startsWith("^")&&t.push($(e)):typeof e=="object"&&"type"in e&&e.type!=="value"&&t.push(e));}function Pe(t,e,i,n,r={}){let{isNewLine:o=true,isHashtagScript:p=false,isThreads:g=false}=r;return xi(t,e,i,n,{isNewLine:o,isHashtagScript:p,isThreads:g})}function xi(t,e,i,n,r){if(!e)return;let{isNewLine:o,isHashtagScript:p=false,isThreads:g}=r;if(p)Array.isArray(e)&&e.length>0&&t.push({operations:[{type:"operationtoconvert",values:e}],goNextStep:true});else if(typeof e=="string"&&e.startsWith("^")||e&&typeof e=="object"&&"type"in e&&e.type=="value"&&e.storageOperationType==="get"){if(!o&&t.length>0){let c=t[t.length-1];!c.glueEnabled&&!c.operations&&(c.glueEnabled=true,c.labelToOpen||(c.goNextStep=true)),t[t.length-1]=c;}typeof e=="string"?t.push(bi($(e))):t.push({dialogue:e});}else if(typeof e=="string"){if(e==="end")t.push({end:"game_end"});else if(e==="done")t.push({end:"label_end",goNextStep:true});else if(e=="<>")if(t.length>0){let c=t[t.length-1];c.glueEnabled=true,c.labelToOpen||(c.goNextStep=true),t[t.length-1]=c;}else t.push({glueEnabled:true,goNextStep:false});}else if(typeof e=="object"){if("type"in e&&e.type!=="value"){if(!o&&t.length>0){let c=t[t.length-1];!c.glueEnabled&&!c.operations&&(c.glueEnabled=true,c.labelToOpen||(c.goNextStep=true)),t[t.length-1]=c;}t.push({conditionalStep:e});}else if("->"in e){let c=o?void 0:true;if(!o&&t.length>0){let l=t[t.length-1];l.labelToOpen||(l.goNextStep=true),t[t.length-1]=l;}if(e.params&&e.params.length===0&&(e.params=void 0),e.var)t.push({labelToOpen:{label:q(e["->"],n),type:g?"call":"jump",params:e.params},glueEnabled:c});else {let l=ee(e["->"],i);if(!l)return;t.push({labelToOpen:{label:l,type:Se(l,g),params:e.params},glueEnabled:c});}}"type"in e&&e.type=="value"&&e.storageOperationType==="set"&&(typeof e.value=="string"&&e.value.startsWith("^")&&(e.value=$(e.value)),t.push({goNextStep:true,operations:[e]}));}}function bi(t){let e;if(t.includes(": ")){let i=t.split(": "),n=i[0],r=i.slice(1).join(": ");RegisteredCharacters.get(n)&&(e=n,t=r);}return e?{dialogue:{character:e,text:t}}:{dialogue:t}}function Ve(t,e,i,n=true,r=false){return vi(t,e,i,n,r)}function vi(t,e,i,n,r=false){e&&(typeof e=="string"&&e.startsWith("^")||e&&typeof e=="object"&&"type"in e&&e.type=="value"&&e.storageOperationType==="get"?typeof e=="string"?t.push($(e)):t.push(e):typeof e=="object"&&"type"in e&&t.push(e));}function le(t,e,i){if(t.length===0){d.error("Error parsing ink file: Arithmetic statement is not valid",t);return}let n=Y(t,e,i);if(n.length===1){let r=n[0];return r&&typeof r=="object"&&"type"in r?{type:"value",storageType:"logic",storageOperationType:"get",operation:r}:r}}function Q(t,e,i,n="",r,o,p=void 0){let g=[],c="sequential",l=false,s=true;t.forEach(y=>{y==="%"&&(c="loop"),y==="seq"&&(c="random"),y==="MIN"&&(l=true);});let d=t[t.length-1];return Object.keys(d).forEach(y=>{let T=d[y];if(Array.isArray(T)&&T.length>3){T=T.slice(1,T.length-2);let x=[];z(T,n,r,x,e,e,i,X,p,true,o),x.length===1?g.push(x[0]):g.push({type:"resulttocombine",combine:"cross",secondConditionalItem:x});}else Array.isArray(T)&&T.length===3&&(s=false);}),c==="sequential"?{type:"stepswitch",elements:g,choiceType:c,end:s?"lastItem":void 0,nestedId:p}:l&&c==="random"?{type:"stepswitch",elements:g,choiceType:"sequentialrandom",end:s?"lastItem":void 0,nestedId:p}:{type:"stepswitch",elements:g,choiceType:c}}function Oe(t="",e=""){let i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return [...new Set([...i,...n])]}function X(t,e,i,n,r){if(t.length>0){let o={};Ke(t,o,r);for(let[p,g]of Object.entries(o)){let c=i+"_|_"+p,l={text:g.text.length===1?g.text[0]:g.text,label:c,props:{},type:Se(c,false),oneTime:g.onetime};g.text.length===0&&(l.onlyHaveNoChoice=true,l.autoSelect=true),l.oneTime===false&&delete l.oneTime;let s=Ae(l,g.conditions,r,i)||l,d$1=e[e.length-1];if(typeof d$1=="object"&&d$1&&"type"in d$1&&(d$1={conditionalStep:d$1}),e.length>0&&typeof d$1=="object"&&d$1&&"choices"in d$1&&d$1.choices){let f=d$1.choices;f&&Array.isArray(f)?f.push(s):d.error("Unhandled case: choices is PixiVNJsonConditionalStatements<PixiVNJsonChoices> | undefined",g,f),d$1.choices=f.sort((y,T)=>{try{let x=y.label.split("."),m=x[x.length-1].replaceAll(".","_|_"),V=T.label.split("."),u=V[V.length-1].replaceAll(".","_|_");if(m.includes("c-")&&u.includes("c-")){let a=m.split("c-")[1],b=parseInt(a),h=u.split("c-")[1],v=parseInt(h);return b-v}}catch{}return 0});}else e.push({choices:[s]});g.preDialog&&(n.preDialog[c]={...g.preDialog});}}}function Ke(t,e,i,n){let r=[],o="",p="",g=false,c=[];for(let l=0;l<t.length;l++){let s=t[l];if(typeof s=="string")s.startsWith("^")?r.push($(s)):Ge.includes(s)&&c.push(s);else if(Array.isArray(s)&&s.includes("visit")){let d=Q(s,se,(f,y,T)=>{},n,{preDialog:{}},i);r.push(d);}else if(s&&typeof s=="object")if("*"in s&&typeof s["*"]&&typeof s["*"]=="string")s["*"].includes("c")&&(o="c"+s["*"].split("c")[1],s.flg&16&&(g=true));else if("s"in s&&s.s instanceof Array){let d=Ze(s.s),f=s.s.includes("<>");d&&(n&&e[n]?(e[n].preDialog={text:d,glue:f},e[n].text=Oe(d,e[n].text)):(r.push(d),p=d));}else "CNT?"in s&&c.push(s);else c.push(s);if(o){e[o]?e[o].text=Oe(r,e[o].text):e[o]={text:r,onetime:g,conditions:c},p&&(e[o].preDialog={text:p,glue:false});let d=t.slice(l+1);Ke(d,e,i,o);return}}}function Ze(t){for(let e of t)if(typeof e=="string"){if(e.startsWith("^"))return $(e)}else if(e instanceof Array){let i=Ze(e);if(i)return i}}function Ae(t,e,i,n,r){if(e.length===0)return;let o=Y(e,n,i);if(o.length===1){let p={type:"ifelse",condition:o[0],then:t,else:r};return p.else||delete p.else,p}else if(o.length>1){let p={type:"ifelse",condition:{type:"union",unionType:"and",conditions:o},then:t,else:r};return p.else||delete p.else,p}}function et(t,e,i,n,r,o,p=void 0){if(t.length===0){d.error("Error parsing ink file: Conditional statement is not valid",t);return}let g=[],c=[];if(t.forEach(d=>{Array.isArray(d)?c.push(d):typeof d=="string"&&d==="du"?r.du?g.push(r.du):r.du=g[g.length-1]:(typeof d!="string"||d!=="/ev")&&g.push(d);}),c.length===0){d.error("Error parsing ink file: Conditional statement is not valid",c);return}let l=we(c[0],e,i,n+"_|_"+"then",r,o,`${p||""}then`),s;return c.length===2?s=we(c[1],e,i,n+"_|_"+"else",r,o,`${p||""}else`):c.length>2&&(c.shift(),c.push("nop"),c=[{b:c}],s=we(c,e,i,n+"_|_"+"else",r,o,`${p||""}else`)),r.du=void 0,Ae(l,g,o,n,s)}function we(t,e,i,n,r,o,p=void 0){let g=[];for(let l of t)typeof l=="object"&&"b"in l&&(l.b=l.b.filter(s=>s!==null&&!(typeof s=="object"&&"->"in s&&new RegExp(/.*\.[0-9]/).test(s["->"]))),z(l.b,n,r,g,e,e,i,X,p,true,o));return g.length===1?g[0]:{type:"resulttocombine",combine:"cross",secondConditionalItem:g}}function z(t,e,i,n=[],r,o,p,g,c=void 0,l=true,s=[]){let d$1=false,f=[],y=false,T=false,x=false,m=[],V=[];if(i.preDialog[e]&&(l=false,r(n,"^"+i.preDialog[e].text,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),i.preDialog[e].glue&&r(n,"<>",e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),delete i.preDialog[e]),t.includes("visit")){let a=Q(t,o,p,e,i,s,c);a&&(!l&&n.length>0&&r(n,"<>",e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),r(n,a,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}));return}let u=t[0];if(u&&typeof u=="object"&&"temp="in u){for(;t[0]&&typeof t[0]=="object"&&"temp="in t[0];)s.push(t[0]["temp="]),t.shift();s=s.reverse();}if(t.forEach((a,b)=>{if(T){if(typeof a=="string"&&a=="/#"){let h=[];z(V,e,i,h,Ve,Ve,p,g,c,l),r(n,h,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),T=false,V=[];}else V.push(a);return}else if(d$1)if(Array.isArray(a))f.push(a);else if(a&&typeof a=="object")if("CNT?"in a)b>0&&t[b-1]=="ev"?(y=true,m.push(a)):y?m.push(a):(f.push(a),l=false);else if("VAR="in a||"temp="in a){let h=ve("VAR="in a?a["VAR="]:a["temp="],s,t[b-1],"VAR="in a?"storage":"tempstorage");if(h.value&&typeof h.value=="string"&&h.value=="/str"&&(h.value=t[b-2]),h.value&&typeof h.value=="object"&&"^->"in h.value&&(h.value=h.value["^->"]),f.length>1){let v=le(f,e,s);f=[],v&&typeof v=="object"&&"type"in v&&v.type=="value"&&"storageType"in v&&v.storageType=="logic"&&(h.value=v.operation);}(typeof h.key!="string"||!h.key.includes("$r"))&&(r(n,h,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),l=true);}else "VAR?"in a?f.push(a):"^->"in a&&(a["^->"].includes("$r")||f.push(a));else if(typeof a=="string"&&a=="/ev")y&&m.push(a),d$1=false,f.push(a);else if(typeof a=="string"&&a=="out"){if(f.length>0){let h=f[f.length-1];if(h&&typeof h=="object"&&"VAR?"in h){f.pop();let v=q(h["VAR?"],s,"storage");r(n,v,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x});}else {let v=[];for(;f.length>0&&f[f.length-1]!="/ev";)v.push(f.pop());v=v.reverse();let N=le(v,e,s);f=[],N&&typeof N=="object"&&"type"in N&&N.type=="value"&&"storageType"in N&&N.storageType=="logic"?r(n,{storageOperationType:"get",storageType:"logic",operation:N.operation,type:"value"},e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}):(r(n,"<>",e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),N=`^${N}`,r(n,N,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}));}l=false;}}else f.push(a);else if(typeof a=="string")if(a.startsWith("^"))r(n,a,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),l=false;else if(a=="ev")d$1=true;else if(a==`
|
|
5
|
+
`)l=true;else if(a=="done"||a=="end")r(n,a,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),l=false;else if(a=="<>")r(n,a,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),l=false;else if(a=="nop"&&y){let h=et(m,o,p,e,i,s,c);h&&r(n,h,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),y=false,m=[];}else a=="#"?T=true:a=="thread"&&(x=true);else if(a instanceof Array)if(y)m.push(a);else if(a.length>1&&typeof a[a.length-2]=="object"&&a[a.length-2]&&"c"in a[a.length-2]&&typeof a[a.length-1]=="object"&&a[a.length-1]&&"b"in a[a.length-1]){f.pop();let h=[],v=[];for(;f.length>0&&f[f.length-1]!="/ev";)h.push(f.pop());m=[...m,...h.reverse()],y=true,v.push(a.pop()),v.push(a.pop()),m=[...m,...a],m.push(v);}else if(a.length>1&&typeof a[a.length-1]=="object"&&a[a.length-1]&&"#n"in a[a.length-1]){let h=a.pop();if(!h){d.error("Error parsing ink file: el is undefined");return}let v=h["#n"];delete h["#n"],a.push(h),r(n,{"->":e?e+"_|_"+v:v},e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),p({[v]:a},e,i);}else z(a,e,i,n,r,o,p,g,c,l);else if(a&&typeof a=="object")if("->"in a&&typeof a["->"]=="string"&&!new RegExp(/^\.\^\.\^\.\d\.s$/).test(a["->"])){let h=[];f.length>0&&(h=Xe(["ev",...f],e,s)),a.params=h,r(n,a,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),l=false;}else if("*"in a&&typeof a["*"]=="string")a["*"].includes("c")&&(f.push(a),l=false);else if("s"in a&&a.s instanceof Array)f.push(a),l=false;else if("CNT?"in a)f.push(a),l=false;else if("VAR="in a||"temp="in a){let h=[],v=ve("VAR="in a?a["VAR="]:a["temp="],s,void 0,"VAR="in a?"storage":"tempstorage");if(v.key!=="$r"){for(f.pop(),f[f.length-1]=="/ev"&&f.pop();f.length>0&&f[f.length-1]!="/ev";)h.push(f.pop());h=h.reverse(),v.value=le(h,e,s),f=[],(v.value!==void 0||v.value!==null)&&r(n,v,e,s,{isNewLine:l,isHashtagScript:T,isThreads:x}),l=false;}}else p(a,e,i);}),g(f,n,e,i,s),e.includes("_|_")&&n.length==2){let a=n[0],b=n[1];a&&b&&typeof a=="object"&&"dialogue"in a&&typeof b=="object"&&"labelToOpen"in b&&a.dialogue==" "&&b.labelToOpen&&(n.shift(),delete b.glueEnabled,n[0]=b);}}function tt(t){try{let e={};return it(t,e),e}catch(e){d.error("Error parsing ink file",e);}}function it(t,e,i={externalSwitch:void 0}){for(let n of t)if(n)if(n instanceof Array)if(n.includes("visit")){let r=Q(n,se,(o,p,g)=>{},"",{preDialog:{}},[]);r&&(i.externalSwitch=r);}else it(n,e,i);else typeof n=="object"&&(n&&"VAR="in n&&i.externalSwitch&&(e[H]||(e[H]=[]),e[H].push({operations:[{type:"value",value:i.externalSwitch,key:n["VAR="],storageType:"storage",storageOperationType:"set"}]})),rt(n,e));}function rt(t,e,i="",n={preDialog:{}}){if(t!==null){for(let[r,o]of Object.entries(t))if(o instanceof Array){let p=[],g={},c=(i?i+"_|_":"")+r;z(o,c,n,p,Pe,Pe,(l,s,d)=>{rt(l,g,s,d);},X);for(let[l,s]of Object.entries(g))e[l]=s;p.length>0&&(e[c]=p);}}}function pe(t){let{json:e,labelToRemove:i,issues:n,initialVarsToRemove:r}=f(t);if(n.forEach(({message:p,type:g})=>{g===Ee.ErrorType.Error?d.error("Ink compilation error: "+p):g===Ee.ErrorType.Warning?d.warn("Ink compilation warning: "+p):d.info("Ink compilation info: "+p);}),!e){d.error("No JSON generated from ink file");return}let o;try{o=JSON.parse(e);}catch{d.error("Error parsing ink file");return}return nt(o,{labelToRemove:i,initialVarsToRemove:r})}function nt(t,e={}){let{labelToRemove:i=[],initialVarsToRemove:n=[]}=e,r={};if(r.labels=tt(t.root),r.labels&&ae in r.labels){let o=r.labels[ae];delete r.labels[ae],o.forEach(p=>{p.operations&&(r.initialOperations=r.initialOperations?[...r.initialOperations,...p.operations]:[...p.operations]);});}if(r.labels&&H in r.labels){let o=r.labels[H];delete r.labels[H],o.forEach(p=>{p.operations&&(r.initialOperations=r.initialOperations?[...r.initialOperations,...p.operations]:[...p.operations]);});}return i.forEach(o=>{r.labels&&o in r.labels&&delete r.labels[o];}),n.forEach(o=>{r.initialOperations&&(r.initialOperations=r.initialOperations.filter(p=>!(p.type==="value"&&p.key===o)));}),r}async function Si(t){Array.isArray(t)||(t=[t]),xe();let e=t.map(async i=>{let n=pe(i);return n&&await he(n,{operationStringConvert:B.generateOrRunOperationFromHashtagScript,skipEmptyDialogs:true}),i});return await Promise.all(e)}async function Pi(t){return xe(),await he(t,{operationStringConvert:B.generateOrRunOperationFromHashtagScript,skipEmptyDialogs:true})}function Vi(t){J.afterToTranslate=e=>Ce(e,t);}function Oi(t){J.beforeToTranslate=e=>Ce(e,t);}function Ce(t,e){let i=t.match(/\[([^\]]+)\]/);if(i){let n=i[1],r=e(n);return r&&(t=t.replaceAll(i[0],r)),Ce(t,e)}return t}function Ai(t){J.translate=t;}function wi(t,e={},i={}){let n=[];return t.labels&&Object.values(t.labels).forEach(r=>{n=n.concat(r);}),J.generateJsonTranslation(n,e,i)}export{mi as a,pe as b,nt as c,Si as d,Pi as e,Vi as f,Oi as g,Ai as h,wi as i};
|