@drincs/pixi-vn 1.5.19 → 1.6.1
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/{HistoryChoiceMenuOption-BOHqf57l.d.ts → HistoryChoiceMenuOption-BQc_jAe-.d.ts} +2 -7
- package/dist/{HistoryChoiceMenuOption-PzBGGqOC.d.cts → HistoryChoiceMenuOption-ok3Zd5pB.d.cts} +2 -7
- package/dist/{StoredClassModel-BgRY86sq.d.ts → StoredClassModel-CUrGRJi0.d.cts} +5 -2
- package/dist/{StoredClassModel-BgRY86sq.d.cts → StoredClassModel-D-s0mEVj.d.ts} +5 -2
- package/dist/canvas.cjs +2 -3
- package/dist/canvas.d.cts +32 -38
- package/dist/canvas.d.ts +32 -38
- package/dist/canvas.mjs +2 -3
- package/dist/characters.cjs +1 -2
- package/dist/characters.d.cts +3 -2
- package/dist/characters.d.ts +3 -2
- package/dist/characters.mjs +1 -2
- package/dist/chunk-D45QSSXG.mjs +1 -0
- package/dist/chunk-HACUDOYJ.mjs +1 -0
- package/dist/chunk-IWAXXFXE.mjs +1 -0
- package/dist/chunk-L4IHQ3VT.mjs +1 -0
- package/dist/{chunk-JJFD2BVW.mjs → chunk-TTRUPDAB.mjs} +1 -2
- package/dist/chunk-XSN6P5JL.mjs +0 -0
- package/dist/chunk-ZW3MIPMS.mjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.cts +43 -16
- package/dist/core.d.ts +43 -16
- package/dist/core.mjs +1 -1
- package/dist/history.cjs +1 -2
- package/dist/history.d.cts +3 -4
- package/dist/history.d.ts +3 -4
- package/dist/history.mjs +1 -2
- package/dist/index.cjs +2 -3
- package/dist/index.d.cts +294 -122
- package/dist/index.d.ts +294 -122
- package/dist/index.mjs +2 -3
- package/dist/motion.cjs +1 -2
- package/dist/motion.d.cts +18 -0
- package/dist/motion.d.ts +18 -0
- package/dist/motion.mjs +1 -2
- package/dist/narration.cjs +2 -3
- package/dist/narration.d.cts +9 -20
- package/dist/narration.d.ts +9 -20
- package/dist/narration.mjs +2 -3
- package/dist/pixi/browser.js +35 -35
- package/dist/sound.cjs +1 -2
- package/dist/sound.d.cts +193 -72
- package/dist/sound.d.ts +193 -72
- package/dist/sound.mjs +1 -2
- package/dist/storage.cjs +1 -2
- package/dist/storage.d.cts +20 -71
- package/dist/storage.d.ts +20 -71
- package/dist/storage.mjs +1 -2
- package/dist/vite-listener.cjs +1 -2
- package/dist/vite-listener.mjs +1 -2
- package/dist/vite.cjs +1 -2
- package/dist/vite.mjs +1 -2
- package/package.json +10 -12
- package/dist/chunk-46QBDRUK.mjs +0 -2
- package/dist/chunk-52EK6LYW.mjs +0 -2
- package/dist/chunk-INJYRMJ3.mjs +0 -2
- package/dist/chunk-JJFD2BVW.mjs.map +0 -1
- package/dist/chunk-OXRIVLY2.mjs +0 -2
- package/dist/chunk-SOFV7YZ5.mjs +0 -2
- package/dist/chunk-XZMYXKAY.mjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/motion.cjs.map +0 -1
- package/dist/motion.mjs.map +0 -1
- package/dist/vite-listener.cjs.map +0 -1
- package/dist/vite-listener.mjs.map +0 -1
- package/dist/vite.cjs.map +0 -1
- package/dist/vite.mjs.map +0 -1
package/dist/characters.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as StorageElementType } from './StorageElementType-dAIVJeiw.cjs';
|
|
2
|
+
import { S as StoredClassModel } from './StoredClassModel-CUrGRJi0.cjs';
|
|
2
3
|
import { CharacterInterface as CharacterInterface$1 } from '@drincs/pixi-vn';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -30,7 +31,7 @@ interface CharacterBaseModelProps {
|
|
|
30
31
|
declare class CharacterStoredClass extends StoredClassModel {
|
|
31
32
|
private sourceId;
|
|
32
33
|
constructor(id: string, emotion?: string);
|
|
33
|
-
getStorageProperty<T>(propertyName: string): T | undefined;
|
|
34
|
+
getStorageProperty<T extends StorageElementType>(propertyName: string): T | undefined;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
package/dist/characters.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as StorageElementType } from './StorageElementType-dAIVJeiw.js';
|
|
2
|
+
import { S as StoredClassModel } from './StoredClassModel-D-s0mEVj.js';
|
|
2
3
|
import { CharacterInterface as CharacterInterface$1 } from '@drincs/pixi-vn';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -30,7 +31,7 @@ interface CharacterBaseModelProps {
|
|
|
30
31
|
declare class CharacterStoredClass extends StoredClassModel {
|
|
31
32
|
private sourceId;
|
|
32
33
|
constructor(id: string, emotion?: string);
|
|
33
|
-
getStorageProperty<T>(propertyName: string): T | undefined;
|
|
34
|
+
getStorageProperty<T extends StorageElementType>(propertyName: string): T | undefined;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
package/dist/characters.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jaGFyYWN0ZXJzL2NsYXNzZXMvQ2hhcmFjdGVyU3RvcmVkQ2xhc3MudHMiLCIuLi9zcmMvY2hhcmFjdGVycy9jbGFzc2VzL0NoYXJhY3RlckJhc2VNb2RlbC50cyIsIi4uL3NyYy9jaGFyYWN0ZXJzL2RlY29yYXRvcnMvY2hhcmFjdGVyLWRlY29yYXRvci50cyJdLCJuYW1lcyI6WyJFTU9USU9OX1NFUEFSQVRPUiIsIkNoYXJhY3RlclN0b3JlZENsYXNzIiwiU3RvcmVkQ2xhc3NNb2RlbCIsImlkIiwiZW1vdGlvbiIsIlNZU1RFTV9SRVNFUlZFRF9TVE9SQUdFX0tFWVMiLCJfX3B1YmxpY0ZpZWxkIiwicHJvcG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ZWwgaWRzLlxuICAgICAqL1xuICAgIGV4cG9ydCBmdW5jdGlvbiBrZXlzKCk6IHN0cmluZ1tdIHtcbiAgICAgICAgcmV0dXJuIEFycmF5LmZyb20ocmVnaXN0ZXJlZENoYXJhY3RlcnMua2V5cygpKTtcbiAgICB9XG59XG5leHBvcnQgZGVmYXVsdCBSZWdpc3RlcmVkQ2hhcmFjdGVycztcbiJdfQ==
|
|
1
|
+
import {b}from'./chunk-HACUDOYJ.mjs';import {a}from'./chunk-ZW3MIPMS.mjs';import {n}from'./chunk-IWAXXFXE.mjs';import {j,d as d$1}from'./chunk-D45QSSXG.mjs';var l="@",i=class extends b{constructor(e,r=""){super(n.CHARACTER_CATEGORY_KEY,e+(r?l+r:""));d$1(this,"sourceId");this.sourceId=e,this.migrateOldStorage("___character___");}getStorageProperty(e){let r=super.getStorageProperty(e);return r===void 0&&(r=super.getStorageProperty(e,this.sourceId)),r}};var u=class extends i{constructor(e,r){super(typeof e=="string"?e:e.id,typeof e=="string"?"":e.emotion);d$1(this,"defaultName");d$1(this,"defaultSurname");d$1(this,"defaultAge");d$1(this,"_icon");d$1(this,"_color");this.defaultName=r.name,this.defaultSurname=r.surname,this.defaultAge=r.age,this._icon=r.icon,this._color=r.color;}get name(){return this.getStorageProperty("name")||this.defaultName||this.id}set name(e){this.setStorageProperty("name",e);}get surname(){return this.getStorageProperty("surname")||this.defaultSurname}set surname(e){this.setStorageProperty("surname",e);}get age(){return this.getStorageProperty("age")||this.defaultAge}set age(e){this.setStorageProperty("age",e);}get icon(){return this._icon}get color(){return this._color}};var s=new a({cacheSize:10}),d;(C=>{function f(t){try{let n=s.get(t);if(!n){j.warn(`Character "${t}" not found, did you forget to register it with the RegisteredCharacters.add?`);return}return n}catch(n){j.error(`Error while getting Character "${t}"`,n);return}}C.get=f;function g(t){if(Array.isArray(t)){t.forEach(n=>g(n));return}s.get(t.id)&&j.info(`Character id "${t.id}" already exists, it will be overwritten`),s.set(t.id,t);}C.add=g;function e(){return Array.from(s.values())}C.values=e;function r(t){return s.has(t)}C.has=r;function S(){return Array.from(s.keys())}C.keys=S;})(d||(d={}));var p=d;export{u as CharacterBaseModel,i as CharacterStoredClass,p as RegisteredCharacters};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {PixiError}from'@drincs/pixi-vn/core';var y=Object.create;var p=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var s=r=>{throw TypeError(r)};var E=(r,o,n)=>o in r?p(r,o,{enumerable:true,configurable:true,writable:true,value:n}):r[o]=n;var V=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(o,n)=>(typeof require<"u"?require:o)[n]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var $=(r,o)=>()=>(o||r((o={exports:{}}).exports,o),o.exports);var P=(r,o,n,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of l(o))!N.call(r,e)&&e!==n&&p(r,e,{get:()=>o[e],enumerable:!(t=f(o,e))||t.enumerable});return r};var S=(r,o,n)=>(n=r!=null?y(m(r)):{},P(o||!r||!r.__esModule?p(n,"default",{value:r,enumerable:true}):n,r));var T=(r,o,n)=>E(r,typeof o!="symbol"?o+"":o,n),x=(r,o,n)=>o.has(r)||s("Cannot "+n);var b=(r,o,n)=>(x(r,o,"read from private field"),n?n.call(r):o.get(r)),d=(r,o,n)=>o.has(r)?s("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,n),u=(r,o,n,t)=>(x(r,o,"write to private field"),t?t.call(r,n):o.set(r,n),n),h=(r,o,n)=>(x(r,o,"access private method"),n);var J=(r,o,n,t)=>({set _(e){u(r,o,e,n);},get _(){return b(r,o,t)}});var c;(e=>(e.log=(i,...a)=>console.log(`[Pixi\u2019VN] ${i}`,...a),e.warn=(i,...a)=>console.warn(`[Pixi\u2019VN] ${i}`,...a),e.error=(i,...a)=>console.error(`[Pixi\u2019VN] ${i}`,...a),e.info=(i,...a)=>console.info(`[Pixi\u2019VN] ${i}`,...a)))(c||(c={}));function k(r){try{if(typeof r>"u")return r;let o=JSON.stringify(r);return JSON.parse(o)}catch(o){throw c.error("Error creating exportable element",r,o),new PixiError("not_json_serializable","Error creating exportable element")}}export{V as a,$ as b,S as c,T as d,b as e,d as f,u as g,h,J as i,c as j,k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-ZW3MIPMS.mjs';import {k,m,j,l,n}from'./chunk-IWAXXFXE.mjs';import {d,k as k$1,j as j$1}from'./chunk-D45QSSXG.mjs';import {GameUnifier}from'@drincs/pixi-vn/core';var s=class s{constructor(){}static clearOldTempVariables(t){s.tempStorageDeadlines.forEach((e,r)=>{e>t&&(s.removeVariable(k,r),s.tempStorageDeadlines.delete(r));});}static setVariable(t,e,r){r==null?s.storage.delete(`${t}:${e}`):s.storage.set(`${t}:${e}`,r);}static getVariable(t,e){let r=s.storage.get(`${t}:${e}`);return k$1(r)}static removeVariable(t,e){s.storage.delete(`${t}:${e}`);}static setFlag(t,e){let r=s.storage.get(m)||[];if(e)r.includes(t)||r.push(t);else {let g=r.indexOf(t);g>-1&&r.splice(g,1);}s.storage.set(m,r);}static getFlag(t){return (s.storage.get(m)||[]).includes(t)}};d(s,"storage",new a$1({cacheSize:50})),d(s,"default",new a$1({cacheSize:10})),d(s,"tempStorageDeadlines",new Map);var a=s;var p=class{get base(){return a.storage.map}get cache(){return a.storage.cache}get tempStorageDeadlines(){return a.tempStorageDeadlines}set default(t){Object.entries(t).forEach(([e,r])=>{a.default.map.set(e,r);});}set(t,e){return a.setVariable(j,t,e)}get(t){let e=a.getVariable(k,t);return e===void 0&&(e=a.getVariable(j,t)),e===void 0&&(e=k$1(a.default.get(t))),e}remove(t){return this.removeTempVariable(t),a.removeVariable(j,t)}setTempVariable(t,e){if(e==null){this.removeTempVariable(t);return}else a.setVariable(k,t,e),this.tempStorageDeadlines.has(t)||this.tempStorageDeadlines.set(t,GameUnifier.openedLabels);}removeTempVariable(t){a.removeVariable(k,t),this.tempStorageDeadlines.has(t)&&this.tempStorageDeadlines.delete(t);}setFlag(t,e){return a.setFlag(t,e)}getFlag(t){return a.getFlag(t)}clear(){this.base.clear(),this.cache.clear(),this.tempStorageDeadlines.clear();}export(){let t=[];[...this.base.keys()].forEach(r=>{t.push({key:r,value:this.base.get(r)});});let e=[];return [...a.tempStorageDeadlines.keys()].forEach(r=>{e.push({key:r,value:this.tempStorageDeadlines.get(r)});}),k$1({main:t,tempDeadlines:e})}restore(t){this.clear();try{t?(t.base?.forEach(e=>{switch(e.key){case "___current_dialogue_memory___":a.setVariable(l,n.CURRENT_DIALOGUE_MEMORY_KEY,e.value);break;case "___last_dialogue_added_in_step_memory___":a.setVariable(l,n.LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY,e.value);break;case "___current_menu_options_memory___":a.setVariable(l,n.CURRENT_MENU_OPTIONS_MEMORY_KEY,e.value);break;case "___last_menu_options_added_in_step_memory___":a.setVariable(l,n.LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY,e.value);break;case "_input_value_":a.setVariable(l,n.CURRENT_INPUT_VALUE_MEMORY_KEY,e.value);break;case "___last_input_added_in_step_memory___":a.setVariable(l,n.LAST_INPUT_ADDED_IN_STEP_MEMORY_KEY,e.value);break;case "___current_input_info_memory___":a.setVariable(l,n.CURRENT_INPUT_INFO_MEMORY_KEY,e.value);break;case "___opened_labels_counter___":a.setVariable(l,n.OPENED_LABELS_COUNTER_KEY,e.value);break;case "___all_choices_made___":a.setVariable(l,n.ALL_CHOICES_MADE_KEY,e.value);break;case "___current_step_times_counter___":a.setVariable(l,n.CURRENT_STEP_TIMES_COUNTER_KEY,e.value);break;case "___last_step_glued___":a.setVariable(l,n.LAST_STEP_GLUED,e.value);break;default:a.setVariable(j,e.key,e.value);}}),t.temp?.forEach(e=>{a.setVariable(k,e.key,e.value);}),t.flags?.forEach(e=>{a.setFlag(e,!0);}),t.main?.forEach(e=>{this.base.set(e.key,e.value);}),t.tempDeadlines?.forEach(e=>{this.tempStorageDeadlines.set(e.key,e.value);})):j$1.warn("No storage data found");}catch(e){j$1.error("Error importing data",e);}}};var E=class{constructor(t,e){d(this,"id");d(this,"categoryId");this.categoryId=t,this.id=e,this.migrateOldStorage();}migrateOldStorage(t=this.categoryId){let e=a.getVariable(j,t);e&&(Object.entries(e).forEach(([r,g])=>{typeof g=="object"&&g!==null&&Object.entries(g).forEach(([f,b])=>{a.setVariable(this.categoryId,`${r}:${f}`,b);});}),a.removeVariable(j,t));}setStorageProperty(t,e){a.setVariable(this.categoryId,`${this.id}:${t}`,e);}getStorageProperty(t,e=this.id){return a.getVariable(this.categoryId,`${e}:${t}`)}};var P=new p;export{a,E as b,P as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _="repeat";var E="__game_layer__",e="Container",t="ImageContainer",o="Image",A="Sprite",T="Text",N="Video",R="general",p="storage",r="temp",n="narration",I="flags",S={CURRENT_DIALOGUE_MEMORY_KEY:"dialogue",LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY:"dialogue:step_counter",CURRENT_MENU_OPTIONS_MEMORY_KEY:"choice:options",LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY:"choice:step_counter",CURRENT_INPUT_VALUE_MEMORY_KEY:"input:value",LAST_INPUT_ADDED_IN_STEP_MEMORY_KEY:"input:step_counter",CURRENT_INPUT_INFO_MEMORY_KEY:"input:info",CHARACTER_CATEGORY_KEY:"character",ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY:"___glue___",OPENED_LABELS_COUNTER_KEY:"label:opened",ALL_CHOICES_MADE_KEY:"choices:made",CURRENT_STEP_TIMES_COUNTER_KEY:"label:history",LAST_STEP_GLUED:"glue:last_step"};export{_ as a,E as b,e as c,t as d,o as e,A as f,T as g,N as h,R as i,p as j,r as k,n as l,I as m,S as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b,a}from'./chunk-D45QSSXG.mjs';var L=b((S,I)=>{(function(w,o){typeof S=="object"?I.exports=S=o():typeof define=="function"&&define.amd?define([],o):w.CryptoJS=o();})(S,function(){var w=w||(function(o,x){var a$1;if(typeof window<"u"&&window.crypto&&(a$1=window.crypto),typeof self<"u"&&self.crypto&&(a$1=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a$1=globalThis.crypto),!a$1&&typeof window<"u"&&window.msCrypto&&(a$1=window.msCrypto),!a$1&&typeof global<"u"&&global.crypto&&(a$1=global.crypto),!a$1&&typeof a=="function")try{a$1=a("crypto");}catch{}var _=function(){if(a$1){if(typeof a$1.getRandomValues=="function")try{return a$1.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a$1.randomBytes=="function")try{return a$1.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},C=Object.create||(function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}})(),d={},B=d.lib={},u=B.Base=(function(){return {extend:function(t){var e=C(this);return t&&e.mixIn(t),(!e.hasOwnProperty("init")||this.init===e.init)&&(e.init=function(){e.$super.init.apply(this,arguments);}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString);},clone:function(){return this.init.prototype.extend(this)}}})(),l=B.WordArray=u.extend({init:function(t,e){t=this.words=t||[],e!=x?this.sigBytes=e:this.sigBytes=t.length*4;},toString:function(t){return (t||v).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,f=t.sigBytes;if(this.clamp(),r%4)for(var c=0;c<f;c++){var z=n[c>>>2]>>>24-c%4*8&255;e[r+c>>>2]|=z<<24-(r+c)%4*8;}else for(var g=0;g<f;g+=4)e[r+g>>>2]=n[g>>>2];return this.sigBytes+=f,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4);},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(_());return new l.init(e,t)}}),i=d.enc={},v=i.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],f=0;f<n;f++){var c=e[f>>>2]>>>24-f%4*8&255;r.push((c>>>4).toString(16)),r.push((c&15).toString(16));}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},h=i.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],f=0;f<n;f++){var c=e[f>>>2]>>>24-f%4*8&255;r.push(String.fromCharCode(c));}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(t.charCodeAt(r)&255)<<24-r%4*8;return new l.init(n,e)}},p=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},y=B.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0;},_append:function(t){typeof t=="string"&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes;},_process:function(t){var e,n=this._data,r=n.words,f=n.sigBytes,c=this.blockSize,z=c*4,g=f/z;t?g=o.ceil(g):g=o.max((g|0)-this._minBufferSize,0);var b=g*c,R=o.min(b*4,f);if(b){for(var A=0;A<b;A+=c)this._doProcessBlock(r,A);e=r.splice(0,b),n.sigBytes-=R;}return new l.init(e,R)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});B.Hasher=y.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset();},reset:function(){y.reset.call(this),this._doReset();},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new s.HMAC.init(t,n).finalize(e)}}});var s=d.algo={};return d})(Math);return w});});var T=b((H,P)=>{(function(w,o){typeof H=="object"?P.exports=H=o(L()):typeof define=="function"&&define.amd?define(["./core"],o):o(w.CryptoJS);})(H,function(w){return (function(){var o=w,x=o.lib,a=x.WordArray,_=x.Hasher,C=o.algo,d=[],B=C.SHA1=_.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(u,l){for(var i=this._hash.words,v=i[0],h=i[1],p=i[2],y=i[3],m=i[4],s=0;s<80;s++){if(s<16)d[s]=u[l+s]|0;else {var t=d[s-3]^d[s-8]^d[s-14]^d[s-16];d[s]=t<<1|t>>>31;}var e=(v<<5|v>>>27)+m+d[s];s<20?e+=(h&p|~h&y)+1518500249:s<40?e+=(h^p^y)+1859775393:s<60?e+=(h&p|h&y|p&y)-1894007588:e+=(h^p^y)-899497514,m=y,y=p,p=h<<30|h>>>2,h=v,v=e;}i[0]=i[0]+v|0,i[1]=i[1]+h|0,i[2]=i[2]+p|0,i[3]=i[3]+y|0,i[4]=i[4]+m|0;},_doFinalize:function(){var u=this._data,l=u.words,i=this._nDataBytes*8,v=u.sigBytes*8;return l[v>>>5]|=128<<24-v%32,l[(v+64>>>9<<4)+14]=Math.floor(i/4294967296),l[(v+64>>>9<<4)+15]=i,u.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var u=_.clone.call(this);return u._hash=this._hash.clone(),u}});o.SHA1=_._createHelper(B),o.HmacSHA1=_._createHmacHelper(B);})(),w.SHA1});});export{T as a};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
var f=Object.defineProperty;var g=a=>{throw TypeError(a)};var i=(a,b,c)=>b in a?f(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c;var l=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:true});};var m=(a,b,c)=>i(a,typeof b!="symbol"?b+"":b,c),e=(a,b,c)=>b.has(a)||g("Cannot "+c);var j=(a,b,c)=>(e(a,b,"read from private field"),c?c.call(a):b.get(a)),n=(a,b,c)=>b.has(a)?g("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),k=(a,b,c,d)=>(e(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),o=(a,b,c)=>(e(a,b,"access private method"),c);var p=(a,b,c,d)=>({set _(h){k(a,b,h,c);},get _(){return j(a,b,d)}});export{l as a,m as b,j as c,n as d,k as e,o as f,p as g}
|
|
2
|
-
//# sourceMappingURL=chunk-JJFD2BVW.mjs.map
|
|
1
|
+
var f=Object.defineProperty;var g=a=>{throw TypeError(a)};var i=(a,b,c)=>b in a?f(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c;var l=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:true});};var m=(a,b,c)=>i(a,typeof b!="symbol"?b+"":b,c),e=(a,b,c)=>b.has(a)||g("Cannot "+c);var j=(a,b,c)=>(e(a,b,"read from private field"),c?c.call(a):b.get(a)),n=(a,b,c)=>b.has(a)?g("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),k=(a,b,c,d)=>(e(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),o=(a,b,c)=>(e(a,b,"access private method"),c);var p=(a,b,c,d)=>({set _(h){k(a,b,h,c);},get _(){return j(a,b,d)}});export{l as a,m as b,j as c,n as d,k as e,o as f,p as g};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {d,f,e,g,h,i}from'./chunk-D45QSSXG.mjs';var kt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Gt=new Set,zt=typeof process=="object"&&process?process:{},Mt=(_,e,i,s)=>{typeof zt.emitWarning=="function"?zt.emitWarning(_,e,i,s):console.error(`[${i}] ${e}: ${_}`);},Ft=globalThis.AbortController,Dt=globalThis.AbortSignal;if(typeof Ft>"u"){Dt=class{constructor(){d(this,"onabort");d(this,"_onabort",[]);d(this,"reason");d(this,"aborted",false);}addEventListener(i,s){this._onabort.push(s);}},Ft=class{constructor(){d(this,"signal",new Dt);e();}abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=true;for(let s of this.signal._onabort)s(i);this.signal.onabort?.(i);}}};let _=zt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{_&&(_=false,Mt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var Ht=_=>!Gt.has(_);var tt=_=>_&&_===Math.floor(_)&&_>0&&isFinite(_),jt=_=>tt(_)?_<=Math.pow(2,8)?Uint8Array:_<=Math.pow(2,16)?Uint16Array:_<=Math.pow(2,32)?Uint32Array:_<=Number.MAX_SAFE_INTEGER?yt:null:null,yt=class extends Array{constructor(_){super(_),this.fill(0);}},J,ft,Vt=(J=class{constructor(e$1,i){d(this,"heap");d(this,"length");if(!e(J,ft))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e$1),this.length=0;}static create(e){let i=jt(e);if(!i)return [];g(J,ft,true);let s=new J(e,i);return g(J,ft,false),s}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},ft=new WeakMap,f(J,ft,false),J),Lt,Ut,k,U,H,ot,V,ct,dt,K,F,P,O,b,c,W,G,x,E,B,T,$,q,M,j,X,ht,D,gt,o,xt,rt,Q,St,I,Nt,nt,pt,bt,et,it,Ct,At,Ot,S,Rt,vt,st,Wt,wt,It=(wt=class{constructor(e$1){f(this,o);f(this,k);f(this,U);f(this,H);f(this,ot);f(this,V);f(this,ct);f(this,dt);f(this,K);d(this,"ttl");d(this,"ttlResolution");d(this,"ttlAutopurge");d(this,"updateAgeOnGet");d(this,"updateAgeOnHas");d(this,"allowStale");d(this,"noDisposeOnSet");d(this,"noUpdateTTL");d(this,"maxEntrySize");d(this,"sizeCalculation");d(this,"noDeleteOnFetchRejection");d(this,"noDeleteOnStaleGet");d(this,"allowStaleOnFetchAbort");d(this,"allowStaleOnFetchRejection");d(this,"ignoreFetchAbort");f(this,F);f(this,P);f(this,O);f(this,b);f(this,c);f(this,W);f(this,G);f(this,x);f(this,E);f(this,B);f(this,T);f(this,$);f(this,q);f(this,M);f(this,j);f(this,X);f(this,ht);f(this,D);f(this,gt);f(this,rt,()=>{});f(this,Q,()=>{});f(this,St,()=>{});f(this,I,()=>false);f(this,nt,e=>{});f(this,pt,(e,i,s)=>{});f(this,bt,(e,i,s,h)=>{if(s||h)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});d(this,Lt,"LRUCache");let{max:i=0,ttl:s,ttlResolution:h$1=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:a,allowStale:u,dispose:p,onInsert:z,disposeAfter:w,noDisposeOnSet:Z,noUpdateTTL:N,maxSize:Y=0,maxEntrySize:y=0,sizeCalculation:v,fetchMethod:d$1,memoMethod:C,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:mt,ignoreFetchAbort:lt,perf:at}=e$1;if(at!==void 0&&typeof at?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(g(this,K,at??kt),i!==0&&!tt(i))throw new TypeError("max option must be a nonnegative integer");let ut=i?jt(i):Array;if(!ut)throw new Error("invalid max value: "+i);if(g(this,k,i),g(this,U,Y),this.maxEntrySize=y||e(this,U),this.sizeCalculation=v,this.sizeCalculation){if(!e(this,U)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(g(this,dt,C),d$1!==void 0&&typeof d$1!="function")throw new TypeError("fetchMethod must be a function if specified");if(g(this,ct,d$1),g(this,ht,!!d$1),g(this,O,new Map),g(this,b,new Array(i).fill(void 0)),g(this,c,new Array(i).fill(void 0)),g(this,W,new ut(i)),g(this,G,new ut(i)),g(this,x,0),g(this,E,0),g(this,B,Vt.create(i)),g(this,F,0),g(this,P,0),typeof p=="function"&&g(this,H,p),typeof z=="function"&&g(this,ot,z),typeof w=="function"?(g(this,V,w),g(this,T,[])):(g(this,V,void 0),g(this,T,void 0)),g(this,X,!!e(this,H)),g(this,gt,!!e(this,ot)),g(this,D,!!e(this,V)),this.noDisposeOnSet=!!Z,this.noUpdateTTL=!!N,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!mt,this.ignoreFetchAbort=!!lt,this.maxEntrySize!==0){if(e(this,U)!==0&&!tt(e(this,U)))throw new TypeError("maxSize must be a positive integer if specified");if(!tt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");h(this,o,Nt).call(this);}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!R,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!a,this.ttlResolution=tt(h$1)||h$1===0?h$1:1,this.ttlAutopurge=!!n,this.ttl=s||0,this.ttl){if(!tt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");h(this,o,xt).call(this);}if(e(this,k)===0&&this.ttl===0&&e(this,U)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!e(this,k)&&!e(this,U)){let Tt="LRU_CACHE_UNBOUNDED";Ht(Tt)&&(Gt.add(Tt),Mt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Tt,wt));}}get perf(){return e(this,K)}static unsafeExposeInternals(e$1){return {starts:e(e$1,q),ttls:e(e$1,M),autopurgeTimers:e(e$1,j),sizes:e(e$1,$),keyMap:e(e$1,O),keyList:e(e$1,b),valList:e(e$1,c),next:e(e$1,W),prev:e(e$1,G),get head(){return e(e$1,x)},get tail(){return e(e$1,E)},free:e(e$1,B),isBackgroundFetch:i=>{var s;return h(s=e$1,o,S).call(s,i)},backgroundFetch:(i,s,h$1,n)=>{var r;return h(r=e$1,o,Ot).call(r,i,s,h$1,n)},moveToTail:i=>{var s;return h(s=e$1,o,vt).call(s,i)},indexes:i=>{var s;return h(s=e$1,o,et).call(s,i)},rindexes:i=>{var s;return h(s=e$1,o,it).call(s,i)},isStale:i=>{var s;return e(s=e$1,I).call(s,i)}}}get max(){return e(this,k)}get maxSize(){return e(this,U)}get calculatedSize(){return e(this,P)}get size(){return e(this,F)}get fetchMethod(){return e(this,ct)}get memoMethod(){return e(this,dt)}get dispose(){return e(this,H)}get onInsert(){return e(this,ot)}get disposeAfter(){return e(this,V)}getRemainingTTL(e$1){return e(this,O).has(e$1)?1/0:0}*entries(){for(let e$1 of h(this,o,et).call(this))e(this,c)[e$1]!==void 0&&e(this,b)[e$1]!==void 0&&!h(this,o,S).call(this,e(this,c)[e$1])&&(yield [e(this,b)[e$1],e(this,c)[e$1]]);}*rentries(){for(let e$1 of h(this,o,it).call(this))e(this,c)[e$1]!==void 0&&e(this,b)[e$1]!==void 0&&!h(this,o,S).call(this,e(this,c)[e$1])&&(yield [e(this,b)[e$1],e(this,c)[e$1]]);}*keys(){for(let e$1 of h(this,o,et).call(this)){let i=e(this,b)[e$1];i!==void 0&&!h(this,o,S).call(this,e(this,c)[e$1])&&(yield i);}}*rkeys(){for(let e$1 of h(this,o,it).call(this)){let i=e(this,b)[e$1];i!==void 0&&!h(this,o,S).call(this,e(this,c)[e$1])&&(yield i);}}*values(){for(let e$1 of h(this,o,et).call(this))e(this,c)[e$1]!==void 0&&!h(this,o,S).call(this,e(this,c)[e$1])&&(yield e(this,c)[e$1]);}*rvalues(){for(let e$1 of h(this,o,it).call(this))e(this,c)[e$1]!==void 0&&!h(this,o,S).call(this,e(this,c)[e$1])&&(yield e(this,c)[e$1]);}[(Ut=Symbol.iterator,Lt=Symbol.toStringTag,Ut)](){return this.entries()}find(e$1,i={}){for(let s of h(this,o,et).call(this)){let h$1=e(this,c)[s],n=h(this,o,S).call(this,h$1)?h$1.__staleWhileFetching:h$1;if(n!==void 0&&e$1(n,e(this,b)[s],this))return this.get(e(this,b)[s],i)}}forEach(e$1,i=this){for(let s of h(this,o,et).call(this)){let h$1=e(this,c)[s],n=h(this,o,S).call(this,h$1)?h$1.__staleWhileFetching:h$1;n!==void 0&&e$1.call(i,n,e(this,b)[s],this);}}rforEach(e$1,i=this){for(let s of h(this,o,it).call(this)){let h$1=e(this,c)[s],n=h(this,o,S).call(this,h$1)?h$1.__staleWhileFetching:h$1;n!==void 0&&e$1.call(i,n,e(this,b)[s],this);}}purgeStale(){let e$1=false;for(let i of h(this,o,it).call(this,{allowStale:true}))e(this,I).call(this,i)&&(h(this,o,st).call(this,e(this,b)[i],"expire"),e$1=true);return e$1}info(e$1){let i=e(this,O).get(e$1);if(i===void 0)return;let s=e(this,c)[i],h$1=h(this,o,S).call(this,s)?s.__staleWhileFetching:s;if(h$1===void 0)return;let n={value:h$1};if(e(this,M)&&e(this,q)){let r=e(this,M)[i],a=e(this,q)[i];if(r&&a){let u=r-(e(this,K).now()-a);n.ttl=u,n.start=Date.now();}}return e(this,$)&&(n.size=e(this,$)[i]),n}dump(){let e$1=[];for(let i of h(this,o,et).call(this,{allowStale:true})){let s=e(this,b)[i],h$1=e(this,c)[i],n=h(this,o,S).call(this,h$1)?h$1.__staleWhileFetching:h$1;if(n===void 0||s===void 0)continue;let r={value:n};if(e(this,M)&&e(this,q)){r.ttl=e(this,M)[i];let a=e(this,K).now()-e(this,q)[i];r.start=Math.floor(Date.now()-a);}e(this,$)&&(r.size=e(this,$)[i]),e$1.unshift([s,r]);}return e$1}load(e$1){this.clear();for(let[i,s]of e$1){if(s.start){let h=Date.now()-s.start;s.start=e(this,K).now()-h;}this.set(i,s.value,s);}}set(e$1,i$1,s={}){var Z,N,Y,y;if(i$1===void 0)return this.delete(e$1),this;let{ttl:h$1=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=s,{noUpdateTTL:p=this.noUpdateTTL}=s,z=e(this,bt).call(this,e$1,i$1,s.size||0,a);if(this.maxEntrySize&&z>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=true),h(this,o,st).call(this,e$1,"set"),this;let w=e(this,F)===0?void 0:e(this,O).get(e$1);if(w===void 0)w=e(this,F)===0?e(this,E):e(this,B).length!==0?e(this,B).pop():e(this,F)===e(this,k)?h(this,o,At).call(this,false):e(this,F),e(this,b)[w]=e$1,e(this,c)[w]=i$1,e(this,O).set(e$1,w),e(this,W)[e(this,E)]=w,e(this,G)[w]=e(this,E),g(this,E,w),i(this,F)._++,e(this,pt).call(this,w,z,u),u&&(u.set="add"),p=false,e(this,gt)&&((Z=e(this,ot))==null||Z.call(this,i$1,e$1,"add"));else {h(this,o,vt).call(this,w);let v=e(this,c)[w];if(i$1!==v){if(e(this,ht)&&h(this,o,S).call(this,v)){v.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=v;d!==void 0&&!r&&(e(this,X)&&((N=e(this,H))==null||N.call(this,d,e$1,"set")),e(this,D)&&e(this,T)?.push([d,e$1,"set"]));}else r||(e(this,X)&&((Y=e(this,H))==null||Y.call(this,v,e$1,"set")),e(this,D)&&e(this,T)?.push([v,e$1,"set"]));if(e(this,nt).call(this,w),e(this,pt).call(this,w,z,u),e(this,c)[w]=i$1,u){u.set="replace";let d=v&&h(this,o,S).call(this,v)?v.__staleWhileFetching:v;d!==void 0&&(u.oldValue=d);}}else u&&(u.set="update");e(this,gt)&&this.onInsert?.(i$1,e$1,i$1===v?"update":"replace");}if(h$1!==0&&!e(this,M)&&h(this,o,xt).call(this),e(this,M)&&(p||e(this,St).call(this,w,h$1,n),u&&e(this,Q).call(this,u,w)),!r&&e(this,D)&&e(this,T)){let v=e(this,T),d;for(;d=v?.shift();)(y=e(this,V))==null||y.call(this,...d);}return this}pop(){var e$1;try{for(;e(this,F);){let i=e(this,c)[e(this,x)];if(h(this,o,At).call(this,!0),h(this,o,S).call(this,i)){if(i.__staleWhileFetching)return i.__staleWhileFetching}else if(i!==void 0)return i}}finally{if(e(this,D)&&e(this,T)){let i=e(this,T),s;for(;s=i?.shift();)(e$1=e(this,V))==null||e$1.call(this,...s);}}}has(e$1,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:h$1}=i,n=e(this,O).get(e$1);if(n!==void 0){let r=e(this,c)[n];if(h(this,o,S).call(this,r)&&r.__staleWhileFetching===void 0)return false;if(e(this,I).call(this,n))h$1&&(h$1.has="stale",e(this,Q).call(this,h$1,n));else return s&&e(this,rt).call(this,n),h$1&&(h$1.has="hit",e(this,Q).call(this,h$1,n)),true}else h$1&&(h$1.has="miss");return false}peek(e$1,i={}){let{allowStale:s=this.allowStale}=i,h$1=e(this,O).get(e$1);if(h$1===void 0||!s&&e(this,I).call(this,h$1))return;let n=e(this,c)[h$1];return h(this,o,S).call(this,n)?n.__staleWhileFetching:n}async fetch(e$1,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:h$1=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:z=this.noUpdateTTL,noDeleteOnFetchRejection:w=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Z=this.allowStaleOnFetchRejection,ignoreFetchAbort:N=this.ignoreFetchAbort,allowStaleOnFetchAbort:Y=this.allowStaleOnFetchAbort,context:y,forceRefresh:v=false,status:d,signal:C}=i;if(!e(this,ht))return d&&(d.fetch="get"),this.get(e$1,{allowStale:s,updateAgeOnGet:h$1,noDeleteOnStaleGet:n,status:d});let L={allowStale:s,updateAgeOnGet:h$1,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:a,size:u,sizeCalculation:p,noUpdateTTL:z,noDeleteOnFetchRejection:w,allowStaleOnFetchRejection:Z,allowStaleOnFetchAbort:Y,ignoreFetchAbort:N,status:d,signal:C},R=e(this,O).get(e$1);if(R===void 0){d&&(d.fetch="miss");let A=h(this,o,Ot).call(this,e$1,R,L,y);return A.__returned=A}else {let A=e(this,c)[R];if(h(this,o,S).call(this,A)){let ut=s&&A.__staleWhileFetching!==void 0;return d&&(d.fetch="inflight",ut&&(d.returnedStale=true)),ut?A.__staleWhileFetching:A.__returned=A}let mt=e(this,I).call(this,R);if(!v&&!mt)return d&&(d.fetch="hit"),h(this,o,vt).call(this,R),h$1&&e(this,rt).call(this,R),d&&e(this,Q).call(this,d,R),A;let lt=h(this,o,Ot).call(this,e$1,R,L,y),at=lt.__staleWhileFetching!==void 0&&s;return d&&(d.fetch=mt?"stale":"refresh",at&&mt&&(d.returnedStale=true)),at?lt.__staleWhileFetching:lt.__returned=lt}}async forceFetch(e,i={}){let s=await this.fetch(e,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(e$1,i={}){let s=e(this,dt);if(!s)throw new Error("no memoMethod provided to constructor");let{context:h,forceRefresh:n,...r}=i,a=this.get(e$1,r);if(!n&&a!==void 0)return a;let u=s(e$1,a,{options:r,context:h});return this.set(e$1,u,r),u}get(e$1,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:h$1=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=i,a=e(this,O).get(e$1);if(a!==void 0){let u=e(this,c)[a],p=h(this,o,S).call(this,u);return r&&e(this,Q).call(this,r,a),e(this,I).call(this,a)?(r&&(r.get="stale"),p?(r&&s&&u.__staleWhileFetching!==void 0&&(r.returnedStale=true),s?u.__staleWhileFetching:void 0):(n||h(this,o,st).call(this,e$1,"expire"),r&&s&&(r.returnedStale=true),s?u:void 0)):(r&&(r.get="hit"),p?u.__staleWhileFetching:(h(this,o,vt).call(this,a),h$1&&e(this,rt).call(this,a),u))}else r&&(r.get="miss");}delete(e){return h(this,o,st).call(this,e,"delete")}clear(){return h(this,o,Wt).call(this,"delete")}},k=new WeakMap,U=new WeakMap,H=new WeakMap,ot=new WeakMap,V=new WeakMap,ct=new WeakMap,dt=new WeakMap,K=new WeakMap,F=new WeakMap,P=new WeakMap,O=new WeakMap,b=new WeakMap,c=new WeakMap,W=new WeakMap,G=new WeakMap,x=new WeakMap,E=new WeakMap,B=new WeakMap,T=new WeakMap,$=new WeakMap,q=new WeakMap,M=new WeakMap,j=new WeakMap,X=new WeakMap,ht=new WeakMap,D=new WeakMap,gt=new WeakMap,o=new WeakSet,xt=function(){let e$1=new yt(e(this,k)),i=new yt(e(this,k));g(this,M,e$1),g(this,q,i);let s=this.ttlAutopurge?new Array(e(this,k)):void 0;g(this,j,s),g(this,St,(a,u,p=e(this,K).now())=>{i[a]=u!==0?p:0,e$1[a]=u,h$1(a,u);}),g(this,rt,a=>{i[a]=e$1[a]!==0?e(this,K).now():0,h$1(a,e$1[a]);});let h$1=this.ttlAutopurge?(a,u)=>{if(s?.[a]&&(clearTimeout(s[a]),s[a]=void 0),u&&u!==0&&s){let p=setTimeout(()=>{e(this,I).call(this,a)&&h(this,o,st).call(this,e(this,b)[a],"expire");},u+1);p.unref&&p.unref(),s[a]=p;}}:()=>{};g(this,Q,(a,u)=>{if(e$1[u]){let p=e$1[u],z=i[u];if(!p||!z)return;a.ttl=p,a.start=z,a.now=n||r();let w=a.now-z;a.remainingTTL=p-w;}});let n=0,r=()=>{let a=e(this,K).now();if(this.ttlResolution>0){n=a;let u=setTimeout(()=>n=0,this.ttlResolution);u.unref&&u.unref();}return a};this.getRemainingTTL=a=>{let u=e(this,O).get(a);if(u===void 0)return 0;let p=e$1[u],z=i[u];if(!p||!z)return 1/0;let w=(n||r())-z;return p-w},g(this,I,a=>{let u=i[a],p=e$1[a];return !!p&&!!u&&(n||r())-u>p});},rt=new WeakMap,Q=new WeakMap,St=new WeakMap,I=new WeakMap,Nt=function(){let e$1=new yt(e(this,k));g(this,P,0),g(this,$,e$1),g(this,nt,i=>{g(this,P,e(this,P)-e$1[i]),e$1[i]=0;}),g(this,bt,(i,s,h$1,n)=>{if(h(this,o,S).call(this,s))return 0;if(!tt(h$1))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(h$1=n(s,i),!tt(h$1))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return h$1}),g(this,pt,(i,s,h$1)=>{if(e$1[i]=s,e(this,U)){let n=e(this,U)-e$1[i];for(;e(this,P)>n;)h(this,o,At).call(this,true);}g(this,P,e(this,P)+e$1[i]),h$1&&(h$1.entrySize=s,h$1.totalCalculatedSize=e(this,P));});},nt=new WeakMap,pt=new WeakMap,bt=new WeakMap,et=function*({allowStale:e$1=this.allowStale}={}){if(e(this,F))for(let i=e(this,E);!(!h(this,o,Ct).call(this,i)||((e$1||!e(this,I).call(this,i))&&(yield i),i===e(this,x)));)i=e(this,G)[i];},it=function*({allowStale:e$1=this.allowStale}={}){if(e(this,F))for(let i=e(this,x);!(!h(this,o,Ct).call(this,i)||((e$1||!e(this,I).call(this,i))&&(yield i),i===e(this,E)));)i=e(this,W)[i];},Ct=function(e$1){return e$1!==void 0&&e(this,O).get(e(this,b)[e$1])===e$1},At=function(e$1){var n;let i$1=e(this,x),s=e(this,b)[i$1],h$1=e(this,c)[i$1];return e(this,ht)&&h(this,o,S).call(this,h$1)?h$1.__abortController.abort(new Error("evicted")):(e(this,X)||e(this,D))&&(e(this,X)&&((n=e(this,H))==null||n.call(this,h$1,s,"evict")),e(this,D)&&e(this,T)?.push([h$1,s,"evict"])),e(this,nt).call(this,i$1),e(this,j)?.[i$1]&&(clearTimeout(e(this,j)[i$1]),e(this,j)[i$1]=void 0),e$1&&(e(this,b)[i$1]=void 0,e(this,c)[i$1]=void 0,e(this,B).push(i$1)),e(this,F)===1?(g(this,x,g(this,E,0)),e(this,B).length=0):g(this,x,e(this,W)[i$1]),e(this,O).delete(s),i(this,F)._--,i$1},Ot=function(e$1,i,s,h$1){let n=i===void 0?void 0:e(this,c)[i];if(h(this,o,S).call(this,n))return n;let r=new Ft,{signal:a}=s;a?.addEventListener("abort",()=>r.abort(a.reason),{signal:r.signal});let u={signal:r.signal,options:s,context:h$1},p=(y,v=false)=>{let{aborted:d}=r.signal,C=s.ignoreFetchAbort&&y!==void 0,L=s.ignoreFetchAbort||!!(s.allowStaleOnFetchAbort&&y!==void 0);if(s.status&&(d&&!v?(s.status.fetchAborted=true,s.status.fetchError=r.signal.reason,C&&(s.status.fetchAbortIgnored=true)):s.status.fetchResolved=true),d&&!C&&!v)return w(r.signal.reason,L);let R=N,A=e(this,c)[i];return (A===N||C&&v&&A===void 0)&&(y===void 0?R.__staleWhileFetching!==void 0?e(this,c)[i]=R.__staleWhileFetching:h(this,o,st).call(this,e$1,"fetch"):(s.status&&(s.status.fetchUpdated=true),this.set(e$1,y,u.options))),y},z=y=>(s.status&&(s.status.fetchRejected=true,s.status.fetchError=y),w(y,false)),w=(y,v)=>{let{aborted:d}=r.signal,C=d&&s.allowStaleOnFetchAbort,L=C||s.allowStaleOnFetchRejection,R=L||s.noDeleteOnFetchRejection,A=N;if(e(this,c)[i]===N&&(!R||!v&&A.__staleWhileFetching===void 0?h(this,o,st).call(this,e$1,"fetch"):C||(e(this,c)[i]=A.__staleWhileFetching)),L)return s.status&&A.__staleWhileFetching!==void 0&&(s.status.returnedStale=true),A.__staleWhileFetching;if(A.__returned===A)throw y},Z=(y,v)=>{var C;let d=(C=e(this,ct))==null?void 0:C.call(this,e$1,n,u);d&&d instanceof Promise&&d.then(L=>y(L===void 0?void 0:L),v),r.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(y(void 0),s.allowStaleOnFetchAbort&&(y=L=>p(L,true)));});};s.status&&(s.status.fetchDispatched=true);let N=new Promise(Z).then(p,z),Y=Object.assign(N,{__abortController:r,__staleWhileFetching:n,__returned:void 0});return i===void 0?(this.set(e$1,Y,{...u.options,status:void 0}),i=e(this,O).get(e$1)):e(this,c)[i]=Y,Y},S=function(e$1){if(!e(this,ht))return false;let i=e$1;return !!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof Ft},Rt=function(e$1,i){e(this,G)[i]=e$1,e(this,W)[e$1]=i;},vt=function(e$1){e$1!==e(this,E)&&(e$1===e(this,x)?g(this,x,e(this,W)[e$1]):h(this,o,Rt).call(this,e(this,G)[e$1],e(this,W)[e$1]),h(this,o,Rt).call(this,e(this,E),e$1),g(this,E,e$1));},st=function(e$1,i$1){var h$1,n;let s=false;if(e(this,F)!==0){let r=e(this,O).get(e$1);if(r!==void 0)if(e(this,j)?.[r]&&(clearTimeout(e(this,j)?.[r]),e(this,j)[r]=void 0),s=true,e(this,F)===1)h(this,o,Wt).call(this,i$1);else {e(this,nt).call(this,r);let a=e(this,c)[r];if(h(this,o,S).call(this,a)?a.__abortController.abort(new Error("deleted")):(e(this,X)||e(this,D))&&(e(this,X)&&((h$1=e(this,H))==null||h$1.call(this,a,e$1,i$1)),e(this,D)&&e(this,T)?.push([a,e$1,i$1])),e(this,O).delete(e$1),e(this,b)[r]=void 0,e(this,c)[r]=void 0,r===e(this,E))g(this,E,e(this,G)[r]);else if(r===e(this,x))g(this,x,e(this,W)[r]);else {let u=e(this,G)[r];e(this,W)[u]=e(this,W)[r];let p=e(this,W)[r];e(this,G)[p]=e(this,G)[r];}i(this,F)._--,e(this,B).push(r);}}if(e(this,D)&&e(this,T)?.length){let r=e(this,T),a;for(;a=r?.shift();)(n=e(this,V))==null||n.call(this,...a);}return s},Wt=function(e$1){var i,s;for(let h$1 of h(this,o,it).call(this,{allowStale:true})){let n=e(this,c)[h$1];if(h(this,o,S).call(this,n))n.__abortController.abort(new Error("deleted"));else {let r=e(this,b)[h$1];e(this,X)&&((i=e(this,H))==null||i.call(this,n,r,e$1)),e(this,D)&&e(this,T)?.push([n,r,e$1]);}}if(e(this,O).clear(),e(this,c).fill(void 0),e(this,b).fill(void 0),e(this,M)&&e(this,q)){e(this,M).fill(0),e(this,q).fill(0);for(let h of e(this,j)??[])h!==void 0&&clearTimeout(h);e(this,j)?.fill(void 0);}if(e(this,$)&&e(this,$).fill(0),g(this,x,0),g(this,E,0),e(this,B).length=0,g(this,P,0),g(this,F,0),e(this,D)&&e(this,T)){let h=e(this,T),n;for(;n=h?.shift();)(s=e(this,V))==null||s.call(this,...n);}},wt);var Et=class{constructor(e){d(this,"cache");d(this,"map",new Map);this.cache=new It({max:e.cacheSize}),this.map=new Map;}get[Symbol.iterator](){return this.map[Symbol.iterator]}get[Symbol.toStringTag](){return this.map[Symbol.toStringTag]}clear(){return this.cache.clear(),this.map.clear()}delete(e){let i=this.map.delete(e);return i&&this.cache.delete(e),i}get forEach(){return this.map.forEach}get(e){let i=this.cache.get(e);return i||this.map.get(e)}has(e){return this.map.has(e)}set(e,i){return this.map.set(e,i),this.cache.set(e,i),this}get size(){return this.map.size}entries(){return this.map.entries()}keys(){return this.map.keys()}values(){return this.map.values()}};export{Et as a};
|
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var u=Object.defineProperty;var g=(l,t,i)=>t in l?u(l,t,{enumerable:true,configurable:true,writable:true,value:i}):l[t]=i;var a=(l,t,i)=>g(l,typeof t!="symbol"?t+"":t,i);var n;(m=>(m.log=(o,...s)=>console.log(`[Pixi\u2019VN] ${o}`,...s),m.warn=(o,...s)=>console.warn(`[Pixi\u2019VN] ${o}`,...s),m.error=(o,...s)=>console.error(`[Pixi\u2019VN] ${o}`,...s),m.info=(o,...s)=>console.info(`[Pixi\u2019VN] ${o}`,...s)))(n||(n={}));var r=class extends Error{constructor(i,d,m,o,s){super(`[Pixi\u2019VN] ${d}`);a(this,"code");a(this,"canvasElementInfo");a(this,"parent");this.code=i,m==="canvas"&&(this.canvasElementInfo=o,this.parent=s);}};var e=class e{static init(t){t.navigate&&(e._navigate=t.navigate),e._getStepCounter=t.getStepCounter,e._setStepCounter=t.setStepCounter,e._getCurrentGameStepState=t.getCurrentGameStepState,e._restoreGameStepState=t.restoreGameStepState,e._getOpenedLabels=t.getOpenedLabels,e._processNavigationRequests=t.processNavigationRequests,e._getVariable=t.getVariable,e._setVariable=t.setVariable,e._removeVariable=t.removeVariable,e._getFlag=t.getFlag,e._setFlag=t.setFlag,t.onLabelClosing&&(e._onLabelClosing=t.onLabelClosing),e._addHistoryItem=t.addHistoryItem,e._getCharacter=t.getCharacter,e._animate=t.animate;}static get navigate(){return e._navigate}static set navigate(t){e._navigate=t;}static get stepCounter(){return e._getStepCounter()}static set stepCounter(t){e._setStepCounter(t);}static get currentGameStepState(){return e._getCurrentGameStepState()}static get restoreGameStepState(){return e._restoreGameStepState}static get openedLabels(){return e._getOpenedLabels()}static addOnPreContinue(t){e._onPreContinueHandlers.push(t);}static removeOnPreContinue(t){e._onPreContinueHandlers=e._onPreContinueHandlers.filter(i=>i!==t);}static clearOnPreContinueHandlers(){e._onPreContinueHandlers=[];}static async runOnPreContinue(){let t=e._onPreContinueHandlers.slice();await Promise.all(t.map(i=>i()));}static get onPreContinue(){return e.runOnPreContinue}static get continueRequestsCount(){return e.navigationRequestsCount}static increaseContinueRequest(t=1){e.navigationRequestsCount+=t;}static get backRequestsCount(){return -1*e.navigationRequestsCount}static increaseBackRequest(t=1){e.navigationRequestsCount-=t;}static async processNavigationRequests(t){let i=e._processNavigationRequests(e.navigationRequestsCount,t);return e.navigationRequestsCount=i.newValue,await i.result}static get getVariable(){return e._getVariable}static get setVariable(){return e._setVariable}static get removeVariable(){return e._removeVariable}static get getFlag(){return e._getFlag}static get setFlag(){return e._setFlag}static get onLabelClosing(){return e._onLabelClosing}static get addHistoryItem(){return e._addHistoryItem}static get getCharacter(){return e._getCharacter}static addOnError(t){return e._onErrorHandlers.push(t),()=>e.removeOnError(t)}static removeOnError(t){e._onErrorHandlers=e._onErrorHandlers.filter(i=>i!==t);}static clearOnErrorHandlers(){e._onErrorHandlers.length=0;}static async runOnError(t,i){for(let d of e._onErrorHandlers.slice())try{await d(t,i);}catch(m){n.error("Error in onError handler",m);}}static get animate(){return e._animate}};a(e,"_navigate",()=>{n.warn("Navigate function not initialized. You should add the navigate function in the Game.init() method.");}),a(e,"_getStepCounter",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_setStepCounter",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getCurrentGameStepState",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_restoreGameStepState",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getOpenedLabels",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_onPreContinueHandlers",[]),a(e,"navigationRequestsCount",0),a(e,"processNavigationLock",Promise.resolve()),a(e,"_processNavigationRequests",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getVariable",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_setVariable",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_removeVariable",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getFlag",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_setFlag",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_onLabelClosing",()=>{}),a(e,"_addHistoryItem",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"runningStepsCount",0),a(e,"_getCharacter",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented.")}),a(e,"onEnd"),a(e,"_onErrorHandlers",[]),a(e,"_animate",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")});var p=e;exports.GameUnifier=p;exports.PixiError=r;
|
package/dist/core.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StepLabelProps, StepLabelResult, GameStepState, HistoryInfo, CharacterInterface } from '@drincs/pixi-vn';
|
|
2
|
-
import { Container, UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
+
import { Container, UPDATE_PRIORITY, ContainerOptions } from 'pixi.js';
|
|
3
3
|
|
|
4
|
-
type ErrorCodeType = "obsolete_save" | "unknown_element" | "unregistered_element" | "not_json_serializable" | "not_implemented" | "invalid_usage" | "unhandled_error";
|
|
4
|
+
type ErrorCodeType = "obsolete_save" | "unknown_element" | "unregistered_element" | "unregistered_asset" | "not_json_serializable" | "not_implemented" | "invalid_usage" | "unhandled_error";
|
|
5
5
|
|
|
6
6
|
declare global {
|
|
7
7
|
const __VITE__: boolean | undefined;
|
|
@@ -39,10 +39,12 @@ declare class CanvasBaseItem<T2 extends CanvasBaseItemMemory> {
|
|
|
39
39
|
constructor(..._options: any);
|
|
40
40
|
/**
|
|
41
41
|
* This method return the memory of the canvas element.
|
|
42
|
+
* @throws {PixiError} when the method is not overridden in the subclass.
|
|
42
43
|
*/
|
|
43
44
|
get memory(): T2;
|
|
44
45
|
/**
|
|
45
46
|
* This method set the memory of the canvas element.
|
|
47
|
+
* @throws {PixiError} when the method is not overridden in the subclass.
|
|
46
48
|
*/
|
|
47
49
|
setMemory(_value: T2): Promise<void> | void;
|
|
48
50
|
/**
|
|
@@ -56,6 +58,15 @@ declare class CanvasBaseItem<T2 extends CanvasBaseItemMemory> {
|
|
|
56
58
|
*/
|
|
57
59
|
interface CanvasBaseItemMemory {
|
|
58
60
|
pixivnId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The index of the container in its parent, if it has one
|
|
63
|
+
*/
|
|
64
|
+
index?: number;
|
|
65
|
+
/**
|
|
66
|
+
* The label of the parent container, if it has one
|
|
67
|
+
*/
|
|
68
|
+
parentLabel?: string;
|
|
69
|
+
label?: string;
|
|
59
70
|
zIndex?: number;
|
|
60
71
|
}
|
|
61
72
|
|
|
@@ -99,6 +110,12 @@ type StorageElementType = StorageElementInternalType | Record<string | number |
|
|
|
99
110
|
*/
|
|
100
111
|
type StorageObjectType = Record<string | number | symbol, StorageElementType>;
|
|
101
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Type for on-error handlers. Handlers accept the error object and the step
|
|
115
|
+
* props; they may be synchronous or asynchronous.
|
|
116
|
+
*/
|
|
117
|
+
type OnErrorHandler = (error: unknown, props: Partial<StepLabelProps>) => void | Promise<void>;
|
|
118
|
+
|
|
102
119
|
declare class GameUnifier {
|
|
103
120
|
static init(options: {
|
|
104
121
|
/**
|
|
@@ -140,11 +157,6 @@ declare class GameUnifier {
|
|
|
140
157
|
* If your game engine does not have a narration system, you can return 0.
|
|
141
158
|
*/
|
|
142
159
|
getOpenedLabels: () => number;
|
|
143
|
-
/**
|
|
144
|
-
* This function is called after the narration.continue() method is executed.
|
|
145
|
-
* It can be used to force the completion of the ticker in the game engine.
|
|
146
|
-
*/
|
|
147
|
-
onPreContinue?: () => Promise<void> | void;
|
|
148
160
|
/**
|
|
149
161
|
* This function is called to process the pending navigation requests (continue/back).
|
|
150
162
|
*/
|
|
@@ -157,18 +169,18 @@ declare class GameUnifier {
|
|
|
157
169
|
* @param key The key of the variable.
|
|
158
170
|
* @returns The value of the variable.
|
|
159
171
|
*/
|
|
160
|
-
getVariable: <T extends StorageElementType>(key: string) => T | undefined;
|
|
172
|
+
getVariable: <T extends StorageElementType>(prefix: string, key: string) => T | undefined;
|
|
161
173
|
/**
|
|
162
174
|
* This function sets the value of a variable.
|
|
163
175
|
* @param key The key of the variable.
|
|
164
176
|
* @param value The value of the variable.
|
|
165
177
|
*/
|
|
166
|
-
setVariable: (key: string, value: StorageElementType) => void;
|
|
178
|
+
setVariable: (prefix: string, key: string, value: StorageElementType) => void;
|
|
167
179
|
/**
|
|
168
180
|
* This function removes a variable.
|
|
169
181
|
* @param key The key of the variable.
|
|
170
182
|
*/
|
|
171
|
-
removeVariable: (key: string) => void;
|
|
183
|
+
removeVariable: (prefix: string, key: string) => void;
|
|
172
184
|
/**
|
|
173
185
|
* This function returns the value of a flag.
|
|
174
186
|
* @param name The name of the flag.
|
|
@@ -231,15 +243,18 @@ declare class GameUnifier {
|
|
|
231
243
|
private static _setStepCounter;
|
|
232
244
|
/**
|
|
233
245
|
* Returns the current step counter. This counter corresponds to the total number of steps that have been executed so far.
|
|
246
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
234
247
|
*/
|
|
235
248
|
static get stepCounter(): number;
|
|
236
249
|
/**
|
|
237
250
|
* Returns the current state of the game step.
|
|
251
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
238
252
|
*/
|
|
239
253
|
static set stepCounter(value: number);
|
|
240
254
|
private static _getCurrentGameStepState;
|
|
241
255
|
/**
|
|
242
256
|
* Returns the current state of the game step.
|
|
257
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
243
258
|
*/
|
|
244
259
|
static get currentGameStepState(): GameStepState;
|
|
245
260
|
private static _restoreGameStepState;
|
|
@@ -252,6 +267,7 @@ declare class GameUnifier {
|
|
|
252
267
|
private static _getOpenedLabels;
|
|
253
268
|
/**
|
|
254
269
|
* Returns the number of opened labels.
|
|
270
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
255
271
|
*/
|
|
256
272
|
static get openedLabels(): number;
|
|
257
273
|
private static _onPreContinueHandlers;
|
|
@@ -263,7 +279,10 @@ declare class GameUnifier {
|
|
|
263
279
|
static addOnPreContinue(handler: () => Promise<void> | void): void;
|
|
264
280
|
static removeOnPreContinue(handler: () => Promise<void> | void): void;
|
|
265
281
|
static clearOnPreContinueHandlers(): void;
|
|
266
|
-
static runOnPreContinue
|
|
282
|
+
private static runOnPreContinue;
|
|
283
|
+
/**
|
|
284
|
+
* This function is called immediately before a narration "continue" operation.
|
|
285
|
+
*/
|
|
267
286
|
static get onPreContinue(): typeof GameUnifier.runOnPreContinue;
|
|
268
287
|
/**
|
|
269
288
|
* Number of pending navigation requests (continue/back).
|
|
@@ -310,6 +329,7 @@ declare class GameUnifier {
|
|
|
310
329
|
private static _processNavigationRequests;
|
|
311
330
|
/**
|
|
312
331
|
* This function processes the pending navigation requests (continue/back).
|
|
332
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
313
333
|
*/
|
|
314
334
|
static processNavigationRequests(props: StepLabelPropsType<any>): Promise<StepLabelResultType>;
|
|
315
335
|
private static _getVariable;
|
|
@@ -318,20 +338,20 @@ declare class GameUnifier {
|
|
|
318
338
|
* @param key The key of the variable.
|
|
319
339
|
* @returns The value of the variable.
|
|
320
340
|
*/
|
|
321
|
-
static get getVariable(): <T extends StorageElementType>(key: string) => T | undefined;
|
|
341
|
+
static get getVariable(): <T extends StorageElementType>(prefix: string, key: string) => T | undefined;
|
|
322
342
|
private static _setVariable;
|
|
323
343
|
/**
|
|
324
344
|
* This function sets the value of a variable.
|
|
325
345
|
* @param key The key of the variable.
|
|
326
346
|
* @param value The value of the variable.
|
|
327
347
|
*/
|
|
328
|
-
static get setVariable(): (key: string, value: StorageElementType) => void;
|
|
348
|
+
static get setVariable(): (prefix: string, key: string, value: StorageElementType) => void;
|
|
329
349
|
private static _removeVariable;
|
|
330
350
|
/**
|
|
331
351
|
* This function removes a variable.
|
|
332
352
|
* @param key The key of the variable.
|
|
333
353
|
*/
|
|
334
|
-
static get removeVariable(): (key: string) => void;
|
|
354
|
+
static get removeVariable(): (prefix: string, key: string) => void;
|
|
335
355
|
private static _getFlag;
|
|
336
356
|
/**
|
|
337
357
|
* This function returns the value of a flag.
|
|
@@ -377,7 +397,11 @@ declare class GameUnifier {
|
|
|
377
397
|
*/
|
|
378
398
|
static get getCharacter(): (id: string) => CharacterInterface | undefined;
|
|
379
399
|
static onEnd?: StepLabelType;
|
|
380
|
-
static
|
|
400
|
+
private static _onErrorHandlers;
|
|
401
|
+
static addOnError(handler: OnErrorHandler): () => void;
|
|
402
|
+
static removeOnError(handler: OnErrorHandler): void;
|
|
403
|
+
static clearOnErrorHandlers(): void;
|
|
404
|
+
static runOnError(error: unknown, props: StepLabelPropsType<any> | {}): Promise<void>;
|
|
381
405
|
private static _animate;
|
|
382
406
|
/**
|
|
383
407
|
* This function is called to animate a component.
|
|
@@ -394,6 +418,9 @@ declare class GameUnifier {
|
|
|
394
418
|
declare class PixiError extends Error {
|
|
395
419
|
code: ErrorCodeType;
|
|
396
420
|
constructor(code: ErrorCodeType, message: string);
|
|
421
|
+
constructor(code: ErrorCodeType, message: string, type: "canvas", data: CanvasBaseItemMemory | (CanvasBaseItemMemory & ContainerOptions), parent?: CanvasBaseItem<any>);
|
|
422
|
+
canvasElementInfo?: CanvasBaseItemMemory;
|
|
423
|
+
parent?: CanvasBaseItem<any>;
|
|
397
424
|
}
|
|
398
425
|
|
|
399
|
-
export { type ErrorCodeType, GameUnifier, PixiError };
|
|
426
|
+
export { type ErrorCodeType, GameUnifier, type OnErrorHandler, PixiError };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StepLabelProps, StepLabelResult, GameStepState, HistoryInfo, CharacterInterface } from '@drincs/pixi-vn';
|
|
2
|
-
import { Container, UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
+
import { Container, UPDATE_PRIORITY, ContainerOptions } from 'pixi.js';
|
|
3
3
|
|
|
4
|
-
type ErrorCodeType = "obsolete_save" | "unknown_element" | "unregistered_element" | "not_json_serializable" | "not_implemented" | "invalid_usage" | "unhandled_error";
|
|
4
|
+
type ErrorCodeType = "obsolete_save" | "unknown_element" | "unregistered_element" | "unregistered_asset" | "not_json_serializable" | "not_implemented" | "invalid_usage" | "unhandled_error";
|
|
5
5
|
|
|
6
6
|
declare global {
|
|
7
7
|
const __VITE__: boolean | undefined;
|
|
@@ -39,10 +39,12 @@ declare class CanvasBaseItem<T2 extends CanvasBaseItemMemory> {
|
|
|
39
39
|
constructor(..._options: any);
|
|
40
40
|
/**
|
|
41
41
|
* This method return the memory of the canvas element.
|
|
42
|
+
* @throws {PixiError} when the method is not overridden in the subclass.
|
|
42
43
|
*/
|
|
43
44
|
get memory(): T2;
|
|
44
45
|
/**
|
|
45
46
|
* This method set the memory of the canvas element.
|
|
47
|
+
* @throws {PixiError} when the method is not overridden in the subclass.
|
|
46
48
|
*/
|
|
47
49
|
setMemory(_value: T2): Promise<void> | void;
|
|
48
50
|
/**
|
|
@@ -56,6 +58,15 @@ declare class CanvasBaseItem<T2 extends CanvasBaseItemMemory> {
|
|
|
56
58
|
*/
|
|
57
59
|
interface CanvasBaseItemMemory {
|
|
58
60
|
pixivnId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The index of the container in its parent, if it has one
|
|
63
|
+
*/
|
|
64
|
+
index?: number;
|
|
65
|
+
/**
|
|
66
|
+
* The label of the parent container, if it has one
|
|
67
|
+
*/
|
|
68
|
+
parentLabel?: string;
|
|
69
|
+
label?: string;
|
|
59
70
|
zIndex?: number;
|
|
60
71
|
}
|
|
61
72
|
|
|
@@ -99,6 +110,12 @@ type StorageElementType = StorageElementInternalType | Record<string | number |
|
|
|
99
110
|
*/
|
|
100
111
|
type StorageObjectType = Record<string | number | symbol, StorageElementType>;
|
|
101
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Type for on-error handlers. Handlers accept the error object and the step
|
|
115
|
+
* props; they may be synchronous or asynchronous.
|
|
116
|
+
*/
|
|
117
|
+
type OnErrorHandler = (error: unknown, props: Partial<StepLabelProps>) => void | Promise<void>;
|
|
118
|
+
|
|
102
119
|
declare class GameUnifier {
|
|
103
120
|
static init(options: {
|
|
104
121
|
/**
|
|
@@ -140,11 +157,6 @@ declare class GameUnifier {
|
|
|
140
157
|
* If your game engine does not have a narration system, you can return 0.
|
|
141
158
|
*/
|
|
142
159
|
getOpenedLabels: () => number;
|
|
143
|
-
/**
|
|
144
|
-
* This function is called after the narration.continue() method is executed.
|
|
145
|
-
* It can be used to force the completion of the ticker in the game engine.
|
|
146
|
-
*/
|
|
147
|
-
onPreContinue?: () => Promise<void> | void;
|
|
148
160
|
/**
|
|
149
161
|
* This function is called to process the pending navigation requests (continue/back).
|
|
150
162
|
*/
|
|
@@ -157,18 +169,18 @@ declare class GameUnifier {
|
|
|
157
169
|
* @param key The key of the variable.
|
|
158
170
|
* @returns The value of the variable.
|
|
159
171
|
*/
|
|
160
|
-
getVariable: <T extends StorageElementType>(key: string) => T | undefined;
|
|
172
|
+
getVariable: <T extends StorageElementType>(prefix: string, key: string) => T | undefined;
|
|
161
173
|
/**
|
|
162
174
|
* This function sets the value of a variable.
|
|
163
175
|
* @param key The key of the variable.
|
|
164
176
|
* @param value The value of the variable.
|
|
165
177
|
*/
|
|
166
|
-
setVariable: (key: string, value: StorageElementType) => void;
|
|
178
|
+
setVariable: (prefix: string, key: string, value: StorageElementType) => void;
|
|
167
179
|
/**
|
|
168
180
|
* This function removes a variable.
|
|
169
181
|
* @param key The key of the variable.
|
|
170
182
|
*/
|
|
171
|
-
removeVariable: (key: string) => void;
|
|
183
|
+
removeVariable: (prefix: string, key: string) => void;
|
|
172
184
|
/**
|
|
173
185
|
* This function returns the value of a flag.
|
|
174
186
|
* @param name The name of the flag.
|
|
@@ -231,15 +243,18 @@ declare class GameUnifier {
|
|
|
231
243
|
private static _setStepCounter;
|
|
232
244
|
/**
|
|
233
245
|
* Returns the current step counter. This counter corresponds to the total number of steps that have been executed so far.
|
|
246
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
234
247
|
*/
|
|
235
248
|
static get stepCounter(): number;
|
|
236
249
|
/**
|
|
237
250
|
* Returns the current state of the game step.
|
|
251
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
238
252
|
*/
|
|
239
253
|
static set stepCounter(value: number);
|
|
240
254
|
private static _getCurrentGameStepState;
|
|
241
255
|
/**
|
|
242
256
|
* Returns the current state of the game step.
|
|
257
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
243
258
|
*/
|
|
244
259
|
static get currentGameStepState(): GameStepState;
|
|
245
260
|
private static _restoreGameStepState;
|
|
@@ -252,6 +267,7 @@ declare class GameUnifier {
|
|
|
252
267
|
private static _getOpenedLabels;
|
|
253
268
|
/**
|
|
254
269
|
* Returns the number of opened labels.
|
|
270
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
255
271
|
*/
|
|
256
272
|
static get openedLabels(): number;
|
|
257
273
|
private static _onPreContinueHandlers;
|
|
@@ -263,7 +279,10 @@ declare class GameUnifier {
|
|
|
263
279
|
static addOnPreContinue(handler: () => Promise<void> | void): void;
|
|
264
280
|
static removeOnPreContinue(handler: () => Promise<void> | void): void;
|
|
265
281
|
static clearOnPreContinueHandlers(): void;
|
|
266
|
-
static runOnPreContinue
|
|
282
|
+
private static runOnPreContinue;
|
|
283
|
+
/**
|
|
284
|
+
* This function is called immediately before a narration "continue" operation.
|
|
285
|
+
*/
|
|
267
286
|
static get onPreContinue(): typeof GameUnifier.runOnPreContinue;
|
|
268
287
|
/**
|
|
269
288
|
* Number of pending navigation requests (continue/back).
|
|
@@ -310,6 +329,7 @@ declare class GameUnifier {
|
|
|
310
329
|
private static _processNavigationRequests;
|
|
311
330
|
/**
|
|
312
331
|
* This function processes the pending navigation requests (continue/back).
|
|
332
|
+
* @throws {PixiError} when `Game.init()` has not been called yet.
|
|
313
333
|
*/
|
|
314
334
|
static processNavigationRequests(props: StepLabelPropsType<any>): Promise<StepLabelResultType>;
|
|
315
335
|
private static _getVariable;
|
|
@@ -318,20 +338,20 @@ declare class GameUnifier {
|
|
|
318
338
|
* @param key The key of the variable.
|
|
319
339
|
* @returns The value of the variable.
|
|
320
340
|
*/
|
|
321
|
-
static get getVariable(): <T extends StorageElementType>(key: string) => T | undefined;
|
|
341
|
+
static get getVariable(): <T extends StorageElementType>(prefix: string, key: string) => T | undefined;
|
|
322
342
|
private static _setVariable;
|
|
323
343
|
/**
|
|
324
344
|
* This function sets the value of a variable.
|
|
325
345
|
* @param key The key of the variable.
|
|
326
346
|
* @param value The value of the variable.
|
|
327
347
|
*/
|
|
328
|
-
static get setVariable(): (key: string, value: StorageElementType) => void;
|
|
348
|
+
static get setVariable(): (prefix: string, key: string, value: StorageElementType) => void;
|
|
329
349
|
private static _removeVariable;
|
|
330
350
|
/**
|
|
331
351
|
* This function removes a variable.
|
|
332
352
|
* @param key The key of the variable.
|
|
333
353
|
*/
|
|
334
|
-
static get removeVariable(): (key: string) => void;
|
|
354
|
+
static get removeVariable(): (prefix: string, key: string) => void;
|
|
335
355
|
private static _getFlag;
|
|
336
356
|
/**
|
|
337
357
|
* This function returns the value of a flag.
|
|
@@ -377,7 +397,11 @@ declare class GameUnifier {
|
|
|
377
397
|
*/
|
|
378
398
|
static get getCharacter(): (id: string) => CharacterInterface | undefined;
|
|
379
399
|
static onEnd?: StepLabelType;
|
|
380
|
-
static
|
|
400
|
+
private static _onErrorHandlers;
|
|
401
|
+
static addOnError(handler: OnErrorHandler): () => void;
|
|
402
|
+
static removeOnError(handler: OnErrorHandler): void;
|
|
403
|
+
static clearOnErrorHandlers(): void;
|
|
404
|
+
static runOnError(error: unknown, props: StepLabelPropsType<any> | {}): Promise<void>;
|
|
381
405
|
private static _animate;
|
|
382
406
|
/**
|
|
383
407
|
* This function is called to animate a component.
|
|
@@ -394,6 +418,9 @@ declare class GameUnifier {
|
|
|
394
418
|
declare class PixiError extends Error {
|
|
395
419
|
code: ErrorCodeType;
|
|
396
420
|
constructor(code: ErrorCodeType, message: string);
|
|
421
|
+
constructor(code: ErrorCodeType, message: string, type: "canvas", data: CanvasBaseItemMemory | (CanvasBaseItemMemory & ContainerOptions), parent?: CanvasBaseItem<any>);
|
|
422
|
+
canvasElementInfo?: CanvasBaseItemMemory;
|
|
423
|
+
parent?: CanvasBaseItem<any>;
|
|
397
424
|
}
|
|
398
425
|
|
|
399
|
-
export { type ErrorCodeType, GameUnifier, PixiError };
|
|
426
|
+
export { type ErrorCodeType, GameUnifier, type OnErrorHandler, PixiError };
|
package/dist/core.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var u=Object.defineProperty;var g=(l,t,i)=>t in l?u(l,t,{enumerable:true,configurable:true,writable:true,value:i}):l[t]=i;var a=(l,t,i)=>g(l,typeof t!="symbol"?t+"":t,i);var n;(m=>(m.log=(o,...s)=>console.log(`[Pixi\u2019VN] ${o}`,...s),m.warn=(o,...s)=>console.warn(`[Pixi\u2019VN] ${o}`,...s),m.error=(o,...s)=>console.error(`[Pixi\u2019VN] ${o}`,...s),m.info=(o,...s)=>console.info(`[Pixi\u2019VN] ${o}`,...s)))(n||(n={}));var r=class extends Error{constructor(i,d,m,o,s){super(`[Pixi\u2019VN] ${d}`);a(this,"code");a(this,"canvasElementInfo");a(this,"parent");this.code=i,m==="canvas"&&(this.canvasElementInfo=o,this.parent=s);}};var e=class e{static init(t){t.navigate&&(e._navigate=t.navigate),e._getStepCounter=t.getStepCounter,e._setStepCounter=t.setStepCounter,e._getCurrentGameStepState=t.getCurrentGameStepState,e._restoreGameStepState=t.restoreGameStepState,e._getOpenedLabels=t.getOpenedLabels,e._processNavigationRequests=t.processNavigationRequests,e._getVariable=t.getVariable,e._setVariable=t.setVariable,e._removeVariable=t.removeVariable,e._getFlag=t.getFlag,e._setFlag=t.setFlag,t.onLabelClosing&&(e._onLabelClosing=t.onLabelClosing),e._addHistoryItem=t.addHistoryItem,e._getCharacter=t.getCharacter,e._animate=t.animate;}static get navigate(){return e._navigate}static set navigate(t){e._navigate=t;}static get stepCounter(){return e._getStepCounter()}static set stepCounter(t){e._setStepCounter(t);}static get currentGameStepState(){return e._getCurrentGameStepState()}static get restoreGameStepState(){return e._restoreGameStepState}static get openedLabels(){return e._getOpenedLabels()}static addOnPreContinue(t){e._onPreContinueHandlers.push(t);}static removeOnPreContinue(t){e._onPreContinueHandlers=e._onPreContinueHandlers.filter(i=>i!==t);}static clearOnPreContinueHandlers(){e._onPreContinueHandlers=[];}static async runOnPreContinue(){let t=e._onPreContinueHandlers.slice();await Promise.all(t.map(i=>i()));}static get onPreContinue(){return e.runOnPreContinue}static get continueRequestsCount(){return e.navigationRequestsCount}static increaseContinueRequest(t=1){e.navigationRequestsCount+=t;}static get backRequestsCount(){return -1*e.navigationRequestsCount}static increaseBackRequest(t=1){e.navigationRequestsCount-=t;}static async processNavigationRequests(t){let i=e._processNavigationRequests(e.navigationRequestsCount,t);return e.navigationRequestsCount=i.newValue,await i.result}static get getVariable(){return e._getVariable}static get setVariable(){return e._setVariable}static get removeVariable(){return e._removeVariable}static get getFlag(){return e._getFlag}static get setFlag(){return e._setFlag}static get onLabelClosing(){return e._onLabelClosing}static get addHistoryItem(){return e._addHistoryItem}static get getCharacter(){return e._getCharacter}static addOnError(t){return e._onErrorHandlers.push(t),()=>e.removeOnError(t)}static removeOnError(t){e._onErrorHandlers=e._onErrorHandlers.filter(i=>i!==t);}static clearOnErrorHandlers(){e._onErrorHandlers.length=0;}static async runOnError(t,i){for(let d of e._onErrorHandlers.slice())try{await d(t,i);}catch(m){n.error("Error in onError handler",m);}}static get animate(){return e._animate}};a(e,"_navigate",()=>{n.warn("Navigate function not initialized. You should add the navigate function in the Game.init() method.");}),a(e,"_getStepCounter",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_setStepCounter",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getCurrentGameStepState",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_restoreGameStepState",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getOpenedLabels",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_onPreContinueHandlers",[]),a(e,"navigationRequestsCount",0),a(e,"processNavigationLock",Promise.resolve()),a(e,"_processNavigationRequests",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getVariable",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_setVariable",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_removeVariable",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_getFlag",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_setFlag",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"_onLabelClosing",()=>{}),a(e,"_addHistoryItem",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")}),a(e,"runningStepsCount",0),a(e,"_getCharacter",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented.")}),a(e,"onEnd"),a(e,"_onErrorHandlers",[]),a(e,"_animate",()=>{throw n.error("Method not implemented, you should initialize the Game: Game.init()"),new r("not_implemented","Method not implemented, you should initialize the Game: Game.init()")});var p=e;export{p as GameUnifier,r as PixiError};
|