@famibee/skynovel 1.25.4 → 1.25.8
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/CHANGELOG.md +50 -0
- package/app.js +158 -228
- package/appMain.js +31 -16
- package/core/lib/appMain.d.ts +1 -1
- package/core/lib/appMain.d.ts.map +1 -1
- package/core/lib/preload.d.ts +1 -1
- package/core/lib/preload.d.ts.map +1 -1
- package/core/lib/preload.js +1 -1
- package/core/lib/sn/CmnLib.d.ts +1 -1
- package/core/lib/sn/CmnLib.d.ts.map +1 -1
- package/core/lib/sn/DebugMng.d.ts.map +1 -1
- package/core/lib/sn/EventMng.d.ts +1 -1
- package/core/lib/sn/EventMng.d.ts.map +1 -1
- package/core/lib/sn/FrameMng.d.ts.map +1 -1
- package/core/lib/sn/LayerMng.d.ts +3 -3
- package/core/lib/sn/LayerMng.d.ts.map +1 -1
- package/core/lib/sn/ScriptIterator.d.ts +0 -1
- package/core/lib/sn/ScriptIterator.d.ts.map +1 -1
- package/core/lib/sn/SoundMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/core/lib/sn/Variable.d.ts.map +1 -1
- package/package.json +7 -7
- package/web.js +102 -111
package/web.js
CHANGED
|
@@ -35049,7 +35049,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35049
35049
|
/* harmony export */ "Sound": () => (/* binding */ A),
|
|
35050
35050
|
/* harmony export */ "SoundLibrary": () => (/* binding */ E),
|
|
35051
35051
|
/* harmony export */ "SoundLoader": () => (/* binding */ _),
|
|
35052
|
-
/* harmony export */ "SoundSprite": () => (/* binding */
|
|
35052
|
+
/* harmony export */ "SoundSprite": () => (/* binding */ b),
|
|
35053
35053
|
/* harmony export */ "filters": () => (/* binding */ k),
|
|
35054
35054
|
/* harmony export */ "htmlaudio": () => (/* binding */ L),
|
|
35055
35055
|
/* harmony export */ "sound": () => (/* binding */ I),
|
|
@@ -35061,14 +35061,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35061
35061
|
/* harmony import */ var _pixi_ticker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pixi/ticker */ "./node_modules/@pixi/ticker/dist/esm/ticker.js");
|
|
35062
35062
|
/* harmony import */ var _pixi_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pixi/core */ "./node_modules/@pixi/core/dist/esm/core.js");
|
|
35063
35063
|
/*!
|
|
35064
|
-
* @pixi/sound - v4.0
|
|
35064
|
+
* @pixi/sound - v4.2.0
|
|
35065
35065
|
* https://github.com/pixijs/pixi-sound
|
|
35066
|
-
* Compiled Wed,
|
|
35066
|
+
* Compiled Wed, 05 Jan 2022 14:56:00 UTC
|
|
35067
35067
|
*
|
|
35068
35068
|
* @pixi/sound is licensed under the MIT license.
|
|
35069
35069
|
* http://www.opensource.org/licenses/mit-license
|
|
35070
35070
|
*/
|
|
35071
|
-
var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},p=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],h={};function l(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;p.forEach((function(t){var r=n.canPlayType("audio/"+t).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(h,o)}l();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(h[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var p=t;p.extension=r,p.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=p;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&p.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id="+this.id+"]"},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: "+e.error.code+")";t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name "+t+" does not exist.");switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted;this._paused=!1;var u=this._media.nodes.cloneBufferSource(),a=u.source,c=u.gain;this._source=a,this._gain=c,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id="+this.id+"]"},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this;this.parent.context.decode(t,(function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}}))},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new b:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new g(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));this.singleInstance&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={HTMLAudioContext:F,HTMLAudioMedia:b,HTMLAudioInstance:m},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,p,h,l){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===p&&(p=0),void 0===h&&(h=0),void 0===l&&(l=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:p},{f:e.F8K,type:"peaking",gain:h},{f:e.F16K,type:"highshelf",gain:l}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency "+t);v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency "+t);return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){t*=1e3,this._amount=t;for(var e,n=44100,o=new Float32Array(n),i=Math.PI/180,r=0;r<n;++r)e=2*r/n-1,o[r]=(3+t)*e*20*i/(Math.PI+t*Math.abs(e));this._distortion.curve=o,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={playOnce:function(t,e){var n="alias"+T++;return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),p=e.height/2,h=0;h<e.width;h++){for(var l=1,f=-1,d=0;d<a;d++){var _=u[h*a+d];_<l&&(l=_),_>f&&(f=_)}s.fillRect(h,(1+l)*p,1,Math.max(1,(f-l)*p))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},supported:h,extensions:p,validateFormats:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
|
|
35071
|
+
var r;function s(){return r}var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=["mp3","ogg","oga","opus","mpeg","wav","m4a","aiff","wma","mid","caf"],p={};function h(t){var e=c({m4a:"audio/mp4",oga:"audio/ogg",opus:'audio/ogg; codecs="opus"',caf:'audio/x-caf; codecs="opus"'},t||{}),n=document.createElement("audio"),o={},i=/^no$/;l.forEach((function(t){var r=n.canPlayType("audio/".concat(t)).replace(i,""),s=e[t]?n.canPlayType(e[t]).replace(i,""):"";o[t]=!!r||!!s})),Object.assign(p,o)}h();var f=/\.(\{([^\}]+)\})(\?.*)?$/;function d(t){var e=f,n="string"==typeof t?t:t.url;if(!e.test(n))return n;for(var o=e.exec(n),i=o[2].split(","),r=i[i.length-1],s=0,u=i.length;s<u;s++){var a=i[s];if(p[a]){r=a;break}}var c=n.replace(o[1],r);if("string"!=typeof t){var l=t;l.extension=r,l.url=c}return c}var _=function(){function e(){}return e.add=function(){e.setLegacy(s().useLegacy)},e.setLegacy=function(e){var n=l;e?n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.DEFAULT),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.AUDIO)})):n.forEach((function(e){_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionXhrType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.XHR_RESPONSE_TYPE.BUFFER),_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.setExtensionLoadType(e,_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.LoaderResource.LOAD_TYPE.XHR)}))},e.pre=function(t,e){d(t),e()},e.use=function(t,e){t.data&&l.indexOf(t.extension)>-1?t.sound=s().add(t.name,{loaded:e,preload:!0,url:t.url,source:t.data}):e()},e}(),y=0,m=function(t){function e(e){var n=t.call(this)||this;return n.id=y++,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"paused":this.paused=e;break;case"loop":this.loop=e;break;case"muted":this.muted=e}return this},Object.defineProperty(e.prototype,"progress",{get:function(){return this._source.currentTime/this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype._onPlay=function(){this._playing=!0},e.prototype._onPause=function(){this._playing=!1},e.prototype.init=function(t){this._playing=!1,this._duration=t.source.duration;var e=this._source=t.source.cloneNode(!1);e.src=t.parent.url,e.onplay=this._onPlay.bind(this),e.onpause=this._onPause.bind(this),t.context.on("refresh",this.refresh,this),t.context.on("refreshPaused",this.refreshPaused,this),this._media=t},e.prototype._internalStop=function(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())},e.prototype.stop=function(){this._internalStop(),this._source&&this.emit("stop")},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);this._source.volume=i*n*o,this._source.playbackRate=this._speed*t.speed*e.speed},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,speed:this._speed,loop:this._loop})),this.emit("pause",n))},e.prototype.play=function(t){var n=this,i=t.start,r=t.end,s=t.speed,u=t.loop,a=t.volume,c=t.muted;this._speed=s,this._volume=a,this._loop=!!u,this._muted=c,this.refresh(),this.loop&&null!==r&&(this.loop=!1),this._start=i,this._end=r||this._duration,this._start=Math.max(0,this._start-e.PADDING),this._end=Math.min(this._end+e.PADDING,this._duration),this._source.onloadedmetadata=function(){n._source&&(n._source.currentTime=i,n._source.onloadedmetadata=null,n.emit("progress",i,n._duration),_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(n._onUpdate,n))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")},e.prototype._onUpdate=function(){this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete()},e.prototype._onComplete=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this._internalStop(),this.emit("progress",1,this._duration),this.emit("end",this)},e.prototype.destroy=function(){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._onUpdate,this),this.removeAllListeners();var t=this._source;t&&(t.onended=null,t.onplay=null,t.onpause=null,this._internalStop()),this._source=null,this._speed=1,this._volume=1,this._loop=!1,this._end=null,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._media&&(this._media.context.off("refresh",this.refresh,this),this._media.context.off("refreshPaused",this.refreshPaused,this),this._media=null)},e.prototype.toString=function(){return"[HTMLAudioInstance id=".concat(this.id,"]")},e.PADDING=.1,e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t){this.parent=t,this._source=t.options.source||new Audio,t.url&&(this._source.src=t.url)},e.prototype.create=function(){return new m(this)},Object.defineProperty(e.prototype,"isPlayable",{get:function(){return!!this._source&&4===this._source.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._source.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.removeAllListeners(),this.parent=null,this._source&&(this._source.src="",this._source.load(),this._source=null)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),e.prototype.load=function(t){var e=this._source,n=this.parent;if(4!==e.readyState)if(n.url){e.src=n.url;var o=function(){s(),n.isLoaded=!0;var e=n.autoPlayStart();t&&t(null,n,e)},i=function(){s(),t&&t(new Error("Sound loading has been aborted"))},r=function(){s();var n="Failed to load audio element (code: ".concat(e.error.code,")");t&&t(new Error(n))},s=function(){e.removeEventListener("canplaythrough",o),e.removeEventListener("load",o),e.removeEventListener("abort",i),e.removeEventListener("error",r)};e.addEventListener("canplaythrough",o,!1),e.addEventListener("load",o,!1),e.addEventListener("abort",i,!1),e.addEventListener("error",r,!1),e.load()}else t(new Error("sound.url or sound.source must be set"));else{n.isLoaded=!0;var u=n.autoPlayStart();t&&setTimeout((function(){t(null,n,u)}),0)}},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),b=function(){function t(t,e){this.parent=t,Object.assign(this,e),this.duration=this.end-this.start}return t.prototype.play=function(t){return this.parent.play({complete:t,speed:this.speed||this.parent.speed,end:this.end,start:this.start,loop:this.loop})},t.prototype.destroy=function(){this.parent=null},t}(),v=function(){function t(){}return t.setParamValue=function(t,e){if(t.setValueAtTime){var n=s().context;t.setValueAtTime(e,n.audioContext.currentTime)}else t.value=e;return e},t}(),P=0,x=function(t){function e(e){var n=t.call(this)||this;return n.id=P++,n._media=null,n._paused=!1,n._muted=!1,n._elapsed=0,n.init(e),n}return a(e,t),e.prototype.set=function(t,e){if(void 0===this[t])throw new Error("Property with name ".concat(t," does not exist."));switch(t){case"speed":this.speed=e;break;case"volume":this.volume=e;break;case"muted":this.muted=e;break;case"loop":this.loop=e;break;case"paused":this.paused=e}return this},e.prototype.stop=function(){this._source&&(this._internalStop(),this.emit("stop"))},Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh(),this._update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters},set:function(t){var e;this._filters&&(null===(e=this._filters)||void 0===e||e.filter((function(t){return t})).forEach((function(t){return t.disconnect()})),this._filters=null,this._source.connect(this._gain)),this._filters=(null==t?void 0:t.length)?t.slice(0):null,this.refresh()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){if(this._source){var t=this._media.context,e=this._media.parent;this._source.loop=this._loop||e.loop;var n=t.volume*(t.muted?0:1),o=e.volume*(e.muted?0:1),i=this._volume*(this._muted?0:1);v.setParamValue(this._gain.gain,i*o*n),v.setParamValue(this._source.playbackRate,this._speed*e.speed*t.speed),this.applyFilters()}},e.prototype.applyFilters=function(){var t;if(null===(t=this._filters)||void 0===t?void 0:t.length){this._source.disconnect();var e=this._source;this._filters.forEach((function(t){e.connect(t.destination),e=t})),e.connect(this._gain)}},e.prototype.refreshPaused=function(){var t=this._media.context,e=this._media.parent,n=this._paused||e.paused||t.paused;n!==this._pausedReal&&(this._pausedReal=n,n?(this._internalStop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,speed:this._speed,loop:this._loop,volume:this._volume})),this.emit("pause",n))},e.prototype.play=function(t){var e=t.start,n=t.end,o=t.speed,i=t.loop,r=t.volume,s=t.muted,u=t.filters;this._paused=!1;var a=this._media.nodes.cloneBufferSource(),c=a.source,l=a.gain;this._source=c,this._gain=l,this._speed=o,this._volume=r,this._loop=!!i,this._muted=s,this._filters=u,this.refresh();var p=this._source.buffer.duration;this._duration=p,this._end=n,this._lastUpdate=this._now(),this._elapsed=e,this._source.onended=this._onComplete.bind(this),this._loop?(this._source.loopEnd=n,this._source.loopStart=e,this._source.start(0,e)):n?this._source.start(0,e,n-e):this._source.start(0,e),this.emit("start"),this._update(!0),this.enableTicker(!0)},e.prototype.enableTicker=function(t){_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.remove(this._updateListener,this),t&&_pixi_ticker__WEBPACK_IMPORTED_MODULE_2__.Ticker.shared.add(this._updateListener,this)},Object.defineProperty(e.prototype,"progress",{get:function(){return this._progress},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var t;this.removeAllListeners(),this._internalStop(),this._gain&&(this._gain.disconnect(),this._gain=null),this._media&&(this._media.context.events.off("refresh",this.refresh,this),this._media.context.events.off("refreshPaused",this.refreshPaused,this),this._media=null),null===(t=this._filters)||void 0===t||t.forEach((function(t){return t.disconnect()})),this._filters=null,this._end=null,this._speed=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1},e.prototype.toString=function(){return"[WebAudioInstance id=".concat(this.id,"]")},e.prototype._now=function(){return this._media.context.audioContext.currentTime},e.prototype._updateListener=function(){this._update()},e.prototype._update=function(t){if(void 0===t&&(t=!1),this._source){var e=this._now(),n=e-this._lastUpdate;if(n>0||t){var o=this._source.playbackRate.value;this._elapsed+=n*o,this._lastUpdate=e;var i=this._duration,r=void 0;if(this._source.loopStart){var s=this._source.loopEnd-this._source.loopStart;r=(this._source.loopStart+this._elapsed%s)/i}else r=this._elapsed%i/i;this._progress=r,this.emit("progress",this._progress,i)}}},e.prototype.init=function(t){this._media=t,t.context.events.on("refresh",this.refresh,this),t.context.events.on("refreshPaused",this.refreshPaused,this)},e.prototype._internalStop=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.stop(0),this._source.disconnect();try{this._source.buffer=null}catch(t){}this._source=null}},e.prototype._onComplete=function(){if(this._source){this.enableTicker(!1),this._source.onended=null,this._source.disconnect();try{this._source.buffer=null}catch(t){}}this._source=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),O=function(){function t(t,e){this._output=e,this._input=t}return Object.defineProperty(t.prototype,"destination",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){var e=this;if(this._filters&&(this._filters.forEach((function(t){t&&t.disconnect()})),this._filters=null,this._input.connect(this._output)),t&&t.length){this._filters=t.slice(0),this._input.disconnect();var n=null;t.forEach((function(t){null===n?e._input.connect(t.destination):n.connect(t.destination),n=t})),n.connect(this._output)}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.filters=null,this._input=null,this._output=null},t}(),j=function(t){function e(e){var n=this,o=e.audioContext,i=o.createBufferSource(),r=o.createGain(),s=o.createAnalyser();return i.connect(s),s.connect(r),r.connect(e.destination),(n=t.call(this,s,r)||this).context=e,n.bufferSource=i,n.gain=r,n.analyser=s,n}return a(e,t),Object.defineProperty(e.prototype,"script",{get:function(){return this._script||(this._script=this.context.audioContext.createScriptProcessor(e.BUFFER_SIZE),this._script.connect(this.context.destination)),this._script},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.bufferSource.disconnect(),this._script&&this._script.disconnect(),this.gain.disconnect(),this.analyser.disconnect(),this.bufferSource=null,this._script=null,this.gain=null,this.analyser=null,this.context=null},e.prototype.cloneBufferSource=function(){var t=this.bufferSource,e=this.context.audioContext.createBufferSource();e.buffer=t.buffer,v.setParamValue(e.playbackRate,t.playbackRate.value),e.loop=t.loop;var n=this.context.audioContext.createGain();return e.connect(n),n.connect(this.destination),{source:e,gain:n}},Object.defineProperty(e.prototype,"bufferSize",{get:function(){return this.script.bufferSize},enumerable:!1,configurable:!0}),e.BUFFER_SIZE=0,e}(O),w=function(){function t(){}return t.prototype.init=function(t){this.parent=t,this._nodes=new j(this.context),this._source=this._nodes.bufferSource,this.source=t.options.source},t.prototype.destroy=function(){this.parent=null,this._nodes.destroy(),this._nodes=null;try{this._source.buffer=null}catch(t){}this._source=null,this.source=null},t.prototype.create=function(){return new x(this)},Object.defineProperty(t.prototype,"context",{get:function(){return this.parent.context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayable",{get:function(){return!!this._source&&!!this._source.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._nodes.filters},set:function(t){this._nodes.filters=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._source.buffer.duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._source.buffer},set:function(t){this._source.buffer=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.load=function(t){this.source?this._decode(this.source,t):this.parent.url?this._loadUrl(t):t&&t(new Error("sound.url or sound.source must be set"))},t.prototype._loadUrl=function(t){var e=this,n=new XMLHttpRequest,o=this.parent.url;n.open("GET",o,!0),n.responseType="arraybuffer",n.onload=function(){e.source=n.response,e._decode(n.response,t)},n.send()},t.prototype._decode=function(t,e){var n=this,o=function(t,o){if(t)e&&e(t);else{n.parent.isLoaded=!0,n.buffer=o;var i=n.parent.autoPlayStart();e&&e(null,n.parent,i)}};t instanceof AudioBuffer?o(null,t):this.parent.context.decode(t,o)},t}(),A=function(){function t(t,e){this.media=t,this.options=e,this._instances=[],this._sprites={},this.media.init(this);var n=e.complete;this._autoPlayOptions=n?{complete:n}:null,this.isLoaded=!1,this.isPlaying=!1,this.autoPlay=e.autoPlay,this.singleInstance=e.singleInstance,this.preload=e.preload||this.autoPlay,this.url=e.url,this.speed=e.speed,this.volume=e.volume,this.loop=e.loop,e.sprites&&this.addSprites(e.sprites),this.preload&&this._preload(e.loaded)}return t.from=function(e){var n={};return"string"==typeof e?n.url=e:e instanceof ArrayBuffer||e instanceof AudioBuffer||e instanceof HTMLAudioElement?n.source=e:n=e,(n=c({autoPlay:!1,singleInstance:!1,url:null,source:null,preload:!1,volume:1,speed:1,complete:null,loaded:null,loop:!1},n)).url&&(n.url=d(n.url)),Object.freeze(n),new t(s().useLegacy?new g:new w,n)},Object.defineProperty(t.prototype,"context",{get:function(){return s().context},enumerable:!1,configurable:!0}),t.prototype.pause=function(){return this.isPlaying=!1,this.paused=!0,this},t.prototype.resume=function(){return this.isPlaying=this._instances.length>0,this.paused=!1,this},Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t,this.refreshPaused()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.media.filters},set:function(t){this.media.filters=t},enumerable:!1,configurable:!0}),t.prototype.addSprites=function(t,e){if("object"==typeof t){var n={};for(var o in t)n[o]=this.addSprites(o,t[o]);return n}var i=new b(this,e);return this._sprites[t]=i,i},t.prototype.destroy=function(){this._removeInstances(),this.removeSprites(),this.media.destroy(),this.media=null,this._sprites=null,this._instances=null},t.prototype.removeSprites=function(t){if(t){var e=this._sprites[t];void 0!==e&&(e.destroy(),delete this._sprites[t])}else for(var n in this._sprites)this.removeSprites(n);return this},Object.defineProperty(t.prototype,"isPlayable",{get:function(){return this.isLoaded&&this.media&&this.media.isPlayable},enumerable:!1,configurable:!0}),t.prototype.stop=function(){if(!this.isPlayable)return this.autoPlay=!1,this._autoPlayOptions=null,this;this.isPlaying=!1;for(var t=this._instances.length-1;t>=0;t--)this._instances[t].stop();return this},t.prototype.play=function(t,e){var n,o=this;"string"==typeof t?n={sprite:r=t,loop:this.loop,complete:e}:"function"==typeof t?(n={}).complete=t:n=t;if((n=c({complete:null,loaded:null,sprite:null,end:null,start:0,volume:1,speed:1,muted:!1,loop:!1},n||{})).sprite){var i=n.sprite,r=this._sprites[i];n.start=r.start+(n.start||0),n.end=r.end,n.speed=r.speed||1,n.loop=r.loop||n.loop,delete n.sprite}if(n.offset&&(n.start=n.offset),!this.isLoaded)return new Promise((function(t,e){o.autoPlay=!0,o._autoPlayOptions=n,o._preload((function(o,i,r){o?e(o):(n.loaded&&n.loaded(o,i,r),t(r))}))}));(this.singleInstance||n.singleInstance)&&this._removeInstances();var s=this._createInstance();return this._instances.push(s),this.isPlaying=!0,s.once("end",(function(){n.complete&&n.complete(o),o._onComplete(s)})),s.once("stop",(function(){o._onComplete(s)})),s.play(n),s},t.prototype.refresh=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refresh()},t.prototype.refreshPaused=function(){for(var t=this._instances.length,e=0;e<t;e++)this._instances[e].refreshPaused()},Object.defineProperty(t.prototype,"volume",{get:function(){return this._volume},set:function(t){this._volume=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted},set:function(t){this._muted=t,this.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=t,this.refresh()},enumerable:!1,configurable:!0}),t.prototype._preload=function(t){this.media.load(t)},Object.defineProperty(t.prototype,"instances",{get:function(){return this._instances},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sprites",{get:function(){return this._sprites},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.media.duration},enumerable:!1,configurable:!0}),t.prototype.autoPlayStart=function(){var t;return this.autoPlay&&(t=this.play(this._autoPlayOptions)),t},t.prototype._removeInstances=function(){for(var t=this._instances.length-1;t>=0;t--)this._poolInstance(this._instances[t]);this._instances.length=0},t.prototype._onComplete=function(t){if(this._instances){var e=this._instances.indexOf(t);e>-1&&this._instances.splice(e,1),this.isPlaying=this._instances.length>0}this._poolInstance(t)},t.prototype._createInstance=function(){if(t._pool.length>0){var e=t._pool.pop();return e.init(this.media),e}return this.media.create()},t.prototype._poolInstance=function(e){e.destroy(),t._pool.indexOf(e)<0&&t._pool.push(e)},t._pool=[],t}(),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.speed=1,e.muted=!1,e.volume=1,e.paused=!1,e}return a(e,t),e.prototype.refresh=function(){this.emit("refresh")},e.prototype.refreshPaused=function(){this.emit("refreshPaused")},Object.defineProperty(e.prototype,"filters",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"audioContext",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this.paused},e.prototype.destroy=function(){this.removeAllListeners()},e}(_pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),C=function(t){function e(){var o=this,i=window,r=new e.AudioContext,s=r.createDynamicsCompressor(),u=r.createAnalyser();return u.connect(s),s.connect(r.destination),(o=t.call(this,u,s)||this)._ctx=r,o._offlineCtx=new e.OfflineAudioContext(1,2,i.OfflineAudioContext?r.sampleRate:44100),o._unlocked=!1,o.compressor=s,o.analyser=u,o.events=new _pixi_utils__WEBPACK_IMPORTED_MODULE_1__.EventEmitter,o.volume=1,o.speed=1,o.muted=!1,o.paused=!1,"running"!==r.state&&(o._unlock(),o._unlock=o._unlock.bind(o),document.addEventListener("mousedown",o._unlock,!0),document.addEventListener("touchstart",o._unlock,!0),document.addEventListener("touchend",o._unlock,!0)),o}return a(e,t),e.prototype._unlock=function(){this._unlocked||(this.playEmptySound(),"running"===this._ctx.state&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._unlocked=!0))},e.prototype.playEmptySound=function(){var t=this._ctx.createBufferSource();t.buffer=this._ctx.createBuffer(1,1,22050),t.connect(this._ctx.destination),t.start(0,0,0),"suspended"===t.context.state&&t.context.resume()},Object.defineProperty(e,"AudioContext",{get:function(){var t=window;return t.AudioContext||t.webkitAudioContext||null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"OfflineAudioContext",{get:function(){var t=window;return t.OfflineAudioContext||t.webkitOfflineAudioContext||null},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=this._ctx;void 0!==e.close&&e.close(),this.events.removeAllListeners(),this.analyser.disconnect(),this.compressor.disconnect(),this.analyser=null,this.compressor=null,this.events=null,this._offlineCtx=null,this._ctx=null},Object.defineProperty(e.prototype,"audioContext",{get:function(){return this._ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offlineContext",{get:function(){return this._offlineCtx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){t&&"running"===this._ctx.state?this._ctx.suspend():t||"suspended"!==this._ctx.state||this._ctx.resume(),this._paused=t},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.events.emit("refresh")},e.prototype.refreshPaused=function(){this.events.emit("refreshPaused")},e.prototype.toggleMute=function(){return this.muted=!this.muted,this.refresh(),this.muted},e.prototype.togglePause=function(){return this.paused=!this.paused,this.refreshPaused(),this._paused},e.prototype.decode=function(t,e){var n=function(t){e(new Error(t.message||"Unable to decode file"))},o=this._offlineCtx.decodeAudioData(t,(function(t){e(null,t)}),n);o&&o.catch(n)},e}(O),E=function(){function t(){this.init()}return t.prototype.init=function(){return this.supported&&(this._webAudioContext=new C),this._htmlAudioContext=new F,this._sounds={},this.useLegacy=!this.supported,this},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filtersAll",{get:function(){return this.useLegacy?[]:this._context.filters},set:function(t){this.useLegacy||(this._context.filters=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supported",{get:function(){return null!==C.AudioContext},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){if("object"==typeof t){var n={};for(var o in t){var i=this._getOptions(t[o],e);n[o]=this.add(o,i)}return n}if(e instanceof A)return this._sounds[t]=e,e;var r=this._getOptions(e),s=A.from(r);return this._sounds[t]=s,s},t.prototype._getOptions=function(t,e){var n;return n="string"==typeof t?{url:t}:t instanceof ArrayBuffer||t instanceof AudioBuffer||t instanceof HTMLAudioElement?{source:t}:t,n=c(c({},n),e||{})},Object.defineProperty(t.prototype,"useLegacy",{get:function(){return this._useLegacy},set:function(t){_.setLegacy(t),this._useLegacy=t,this._context=!t&&this.supported?this._webAudioContext:this._htmlAudioContext},enumerable:!1,configurable:!0}),t.prototype.remove=function(t){return this.exists(t,!0),this._sounds[t].destroy(),delete this._sounds[t],this},Object.defineProperty(t.prototype,"volumeAll",{get:function(){return this._context.volume},set:function(t){this._context.volume=t,this._context.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedAll",{get:function(){return this._context.speed},set:function(t){this._context.speed=t,this._context.refresh()},enumerable:!1,configurable:!0}),t.prototype.togglePauseAll=function(){return this._context.togglePause()},t.prototype.pauseAll=function(){return this._context.paused=!0,this._context.refreshPaused(),this},t.prototype.resumeAll=function(){return this._context.paused=!1,this._context.refreshPaused(),this},t.prototype.toggleMuteAll=function(){return this._context.toggleMute()},t.prototype.muteAll=function(){return this._context.muted=!0,this._context.refresh(),this},t.prototype.unmuteAll=function(){return this._context.muted=!1,this._context.refresh(),this},t.prototype.removeAll=function(){for(var t in this._sounds)this._sounds[t].destroy(),delete this._sounds[t];return this},t.prototype.stopAll=function(){for(var t in this._sounds)this._sounds[t].stop();return this},t.prototype.exists=function(t,e){return void 0===e&&(e=!1),!!this._sounds[t]},t.prototype.find=function(t){return this.exists(t,!0),this._sounds[t]},t.prototype.play=function(t,e){return this.find(t).play(e)},t.prototype.stop=function(t){return this.find(t).stop()},t.prototype.pause=function(t){return this.find(t).pause()},t.prototype.resume=function(t){return this.find(t).resume()},t.prototype.volume=function(t,e){var n=this.find(t);return void 0!==e&&(n.volume=e),n.volume},t.prototype.speed=function(t,e){var n=this.find(t);return void 0!==e&&(n.speed=e),n.speed},t.prototype.duration=function(t){return this.find(t).duration},t.prototype.close=function(){return this.removeAll(),this._sounds=null,this._webAudioContext&&(this._webAudioContext.destroy(),this._webAudioContext=null),this._htmlAudioContext&&(this._htmlAudioContext.destroy(),this._htmlAudioContext=null),this._context=null,this},t}(),L={__proto__:null,HTMLAudioMedia:g,HTMLAudioInstance:m,HTMLAudioContext:F},S=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.destination=t,this.source=e||t},t.prototype.connect=function(t){this.source.connect(t)},t.prototype.disconnect=function(){this.source.disconnect()},t.prototype.destroy=function(){this.disconnect(),this.destination=null,this.source=null},t}(),k={__proto__:null,Filter:S,EqualizerFilter:function(t){function e(n,o,i,r,u,a,c,l,p,h){void 0===n&&(n=0),void 0===o&&(o=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===a&&(a=0),void 0===c&&(c=0),void 0===l&&(l=0),void 0===p&&(p=0),void 0===h&&(h=0);var f=this;if(!s().useLegacy){var d=[{f:e.F32,type:"lowshelf",gain:n},{f:e.F64,type:"peaking",gain:o},{f:e.F125,type:"peaking",gain:i},{f:e.F250,type:"peaking",gain:r},{f:e.F500,type:"peaking",gain:u},{f:e.F1K,type:"peaking",gain:a},{f:e.F2K,type:"peaking",gain:c},{f:e.F4K,type:"peaking",gain:l},{f:e.F8K,type:"peaking",gain:p},{f:e.F16K,type:"highshelf",gain:h}].map((function(t){var e=s().context.audioContext.createBiquadFilter();return e.type=t.type,v.setParamValue(e.Q,1),e.frequency.value=t.f,v.setParamValue(e.gain,t.gain),e}));(f=t.call(this,d[0],d[d.length-1])||this).bands=d,f.bandsMap={};for(var _=0;_<f.bands.length;_++){var y=f.bands[_];_>0&&f.bands[_-1].connect(y),f.bandsMap[y.frequency.value]=y}return f}f=t.call(this,null)||this}return a(e,t),e.prototype.setGain=function(t,e){if(void 0===e&&(e=0),!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));v.setParamValue(this.bandsMap[t].gain,e)},e.prototype.getGain=function(t){if(!this.bandsMap[t])throw new Error("No band found for frequency ".concat(t));return this.bandsMap[t].gain.value},Object.defineProperty(e.prototype,"f32",{get:function(){return this.getGain(e.F32)},set:function(t){this.setGain(e.F32,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f64",{get:function(){return this.getGain(e.F64)},set:function(t){this.setGain(e.F64,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f125",{get:function(){return this.getGain(e.F125)},set:function(t){this.setGain(e.F125,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f250",{get:function(){return this.getGain(e.F250)},set:function(t){this.setGain(e.F250,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f500",{get:function(){return this.getGain(e.F500)},set:function(t){this.setGain(e.F500,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f1k",{get:function(){return this.getGain(e.F1K)},set:function(t){this.setGain(e.F1K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f2k",{get:function(){return this.getGain(e.F2K)},set:function(t){this.setGain(e.F2K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f4k",{get:function(){return this.getGain(e.F4K)},set:function(t){this.setGain(e.F4K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f8k",{get:function(){return this.getGain(e.F8K)},set:function(t){this.setGain(e.F8K,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f16k",{get:function(){return this.getGain(e.F16K)},set:function(t){this.setGain(e.F16K,t)},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.bands.forEach((function(t){v.setParamValue(t.gain,0)}))},e.prototype.destroy=function(){this.bands.forEach((function(t){t.disconnect()})),this.bands=null,this.bandsMap=null},e.F32=32,e.F64=64,e.F125=125,e.F250=250,e.F500=500,e.F1K=1e3,e.F2K=2e3,e.F4K=4e3,e.F8K=8e3,e.F16K=16e3,e}(S),DistortionFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o=s().context.audioContext.createWaveShaper();return(n=t.call(this,o)||this)._distortion=o,n.amount=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"amount",{get:function(){return this._amount},set:function(t){this._amount=t;for(var e,n=1e3*t,o=44100,i=new Float32Array(o),r=Math.PI/180,s=0;s<o;++s)e=2*s/o-1,i[s]=(3+n)*e*20*r/(Math.PI+n*Math.abs(e));this._distortion.curve=i,this._distortion.oversample="4x"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._distortion=null,t.prototype.destroy.call(this)},e}(S),StereoFilter:function(t){function e(e){void 0===e&&(e=0);var n=this;if(!s().useLegacy){var o,i,r,u=s().context.audioContext;return u.createStereoPanner?r=o=u.createStereoPanner():((i=u.createPanner()).panningModel="equalpower",r=i),(n=t.call(this,r)||this)._stereo=o,n._panner=i,n.pan=e,n}n=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t,this._stereo?v.setParamValue(this._stereo.pan,t):this._panner.setPosition(t,0,1-Math.abs(t))},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._stereo=null,this._panner=null},e}(S),ReverbFilter:function(t){function e(e,n,o){void 0===e&&(e=3),void 0===n&&(n=2),void 0===o&&(o=!1);var i=this;if(!s().useLegacy)return(i=t.call(this,null)||this)._seconds=i._clamp(e,1,50),i._decay=i._clamp(n,0,100),i._reverse=o,i._rebuild(),i;i=t.call(this,null)||this}return a(e,t),e.prototype._clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},Object.defineProperty(e.prototype,"seconds",{get:function(){return this._seconds},set:function(t){this._seconds=this._clamp(t,1,50),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decay",{get:function(){return this._decay},set:function(t){this._decay=this._clamp(t,0,100),this._rebuild()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this._reverse=t,this._rebuild()},enumerable:!1,configurable:!0}),e.prototype._rebuild=function(){for(var t,e=s().context.audioContext,n=e.sampleRate,o=n*this._seconds,i=e.createBuffer(2,o,n),r=i.getChannelData(0),u=i.getChannelData(1),a=0;a<o;a++)t=this._reverse?o-a:a,r[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay),u[a]=(2*Math.random()-1)*Math.pow(1-t/o,this._decay);var c=s().context.audioContext.createConvolver();c.buffer=i,this.init(c)},e}(S),MonoFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createChannelSplitter(),i=n.createChannelMerger();return i.connect(o),(e=t.call(this,i,o)||this)._merger=i,e}e=t.call(this,null)||this}return a(e,t),e.prototype.destroy=function(){this._merger.disconnect(),this._merger=null,t.prototype.destroy.call(this)},e}(S),StreamFilter:function(t){function e(){var e=this;if(!s().useLegacy){var n=s().context.audioContext,o=n.createMediaStreamDestination(),i=n.createMediaStreamSource(o.stream);return(e=t.call(this,o,i)||this)._stream=o.stream,e}e=t.call(this,null)||this}return a(e,t),Object.defineProperty(e.prototype,"stream",{get:function(){return this._stream},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._stream=null,t.prototype.destroy.call(this)},e}(S),TelephoneFilter:function(t){function e(){if(!s().useLegacy){var e=s().context.audioContext,n=e.createBiquadFilter(),o=e.createBiquadFilter(),i=e.createBiquadFilter(),r=e.createBiquadFilter();return n.type="lowpass",v.setParamValue(n.frequency,2e3),o.type="lowpass",v.setParamValue(o.frequency,2e3),i.type="highpass",v.setParamValue(i.frequency,500),r.type="highpass",v.setParamValue(r.frequency,500),n.connect(o),o.connect(i),i.connect(r),t.call(this,n,r)||this}t.call(this,null)}return a(e,t),e}(S)},M={__proto__:null,WebAudioMedia:w,WebAudioInstance:x,WebAudioNodes:j,WebAudioContext:C,WebAudioUtils:v},T=0;var G={__proto__:null,playOnce:function(t,e){var n="alias".concat(T++);return s().add(n,{url:t,preload:!0,autoPlay:!0,loaded:function(t){t&&(s().remove(n),e&&e(t))},complete:function(){s().remove(n),e&&e(null)}}),n},get PLAY_ID(){return T},render:function(t,e){var n=document.createElement("canvas");e=c({width:512,height:128,fill:"black"},e||{}),n.width=e.width,n.height=e.height;var o=_pixi_core__WEBPACK_IMPORTED_MODULE_3__.BaseTexture.from(n);if(!(t.media instanceof w))return o;var r=t.media,s=n.getContext("2d");s.fillStyle=e.fill;for(var u=r.buffer.getChannelData(0),a=Math.ceil(u.length/e.width),l=e.height/2,p=0;p<e.width;p++){for(var h=1,f=-1,d=0;d<a;d++){var _=u[p*a+d];_<h&&(h=_),_>f&&(f=_)}s.fillRect(p,(1+h)*l,1,Math.max(1,(f-h)*l))}return o},resolveUrl:d,sineTone:function(t,e){void 0===t&&(t=200),void 0===e&&(e=1);var n=A.from({singleInstance:!0});if(!(n.media instanceof w))return n;for(var o=n.media,i=n.context.audioContext.createBuffer(1,48e3*e,48e3),r=i.getChannelData(0),s=0;s<r.length;s++){var u=t*(s/i.sampleRate)*Math.PI;r[s]=2*Math.sin(u)}return o.buffer=i,n.isLoaded=!0,n},validateFormats:h,supported:p,extensions:l},I=function(t){return r=t,t}(new E);_pixi_loaders__WEBPACK_IMPORTED_MODULE_0__.Loader.registerPlugin(_);
|
|
35072
35072
|
//# sourceMappingURL=pixi-sound.esm.js.map
|
|
35073
35073
|
|
|
35074
35074
|
|
|
@@ -47516,7 +47516,7 @@ name: moveable
|
|
|
47516
47516
|
license: MIT
|
|
47517
47517
|
author: Daybrush
|
|
47518
47518
|
repository: git+https://github.com/daybrush/moveable.git
|
|
47519
|
-
version: 0.27.
|
|
47519
|
+
version: 0.27.3
|
|
47520
47520
|
*/
|
|
47521
47521
|
|
|
47522
47522
|
|
|
@@ -47905,9 +47905,7 @@ function (_super) {
|
|
|
47905
47905
|
|
|
47906
47906
|
_this.tempElement = document.createElement("div");
|
|
47907
47907
|
|
|
47908
|
-
var nextOptions = __assign({
|
|
47909
|
-
container: parentElement || document.body
|
|
47910
|
-
}, options);
|
|
47908
|
+
var nextOptions = __assign({}, options);
|
|
47911
47909
|
|
|
47912
47910
|
var events = {};
|
|
47913
47911
|
EVENTS.forEach(function (name) {
|
|
@@ -68926,7 +68924,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
68926
68924
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
68927
68925
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
68928
68926
|
};
|
|
68929
|
-
var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_hArg, _EventMng_dispHint_ctnBtn, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p,
|
|
68927
|
+
var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_hArg, _EventMng_dispHint_ctnBtn, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p, _EventMng_stopSkip, _EventMng_set_cancel_skip, _EventMng_set_focus, _EventMng_wait, _EventMng_cancelWait, _EventMng_waitclick, _EventMng_hDownKeys;
|
|
68930
68928
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68931
68929
|
exports.EventMng = void 0;
|
|
68932
68930
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -69001,7 +68999,8 @@ class EventMng {
|
|
|
69001
68999
|
_EventMng_procWheel4wle.set(this, (_elc, _fnc) => { });
|
|
69002
69000
|
_EventMng_elcWLE.set(this, new EventListenerCtn_1.EventListenerCtn);
|
|
69003
69001
|
_EventMng_goTxt.set(this, () => this.layMng.goTxt());
|
|
69004
|
-
|
|
69002
|
+
_EventMng_stopSkip.set(this, () => false);
|
|
69003
|
+
_EventMng_cancelWait.set(this, () => { });
|
|
69005
69004
|
_EventMng_hDownKeys.set(this, {
|
|
69006
69005
|
'Alt': 0,
|
|
69007
69006
|
'Meta': 0,
|
|
@@ -69202,26 +69201,23 @@ class EventMng {
|
|
|
69202
69201
|
__classPrivateFieldGet(this, _EventMng_cvsHint, "f")?.parentElement.removeChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
|
|
69203
69202
|
}
|
|
69204
69203
|
fire(KEY, e) {
|
|
69205
|
-
if (__classPrivateFieldGet(this,
|
|
69206
|
-
|
|
69207
|
-
if (!__classPrivateFieldGet(this, _EventMng_isWait, "f"))
|
|
69204
|
+
if (__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this)
|
|
69205
|
+
|| !__classPrivateFieldGet(this, _EventMng_isWait, "f") || __classPrivateFieldGet(this, _EventMng_isDbgBreak, "f"))
|
|
69208
69206
|
return;
|
|
69209
69207
|
const key = KEY.toLowerCase();
|
|
69210
69208
|
if (CmnLib_1.CmnLib.debugLog)
|
|
69211
69209
|
console.log(`👺 fire<(key:\`${key}\` type:${e.type} e:%o)`, { ...e });
|
|
69212
69210
|
if (key === 'enter') {
|
|
69213
69211
|
const em = __classPrivateFieldGet(this, _EventMng_fcs, "f").getFocus();
|
|
69214
|
-
if (em
|
|
69212
|
+
if (em instanceof pixi_js_1.Container) {
|
|
69215
69213
|
em.emit('pointerdown', new Event('pointerdown'));
|
|
69216
69214
|
return;
|
|
69217
69215
|
}
|
|
69218
69216
|
}
|
|
69219
69217
|
const ke = __classPrivateFieldGet(this, _EventMng_getEvt2Fnc, "f").call(this, key);
|
|
69220
69218
|
if (!ke) {
|
|
69221
|
-
if (key.slice(0, 5) === 'swipe')
|
|
69222
|
-
|
|
69223
|
-
globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
|
|
69224
|
-
}
|
|
69219
|
+
if (key.slice(0, 5) === 'swipe')
|
|
69220
|
+
globalThis.scrollBy(-e.deltaX ?? 0, -e.deltaY ?? 0);
|
|
69225
69221
|
return;
|
|
69226
69222
|
}
|
|
69227
69223
|
if (key.slice(-5) !== 'wheel')
|
|
@@ -69243,12 +69239,12 @@ class EventMng {
|
|
|
69243
69239
|
if (canskip && global)
|
|
69244
69240
|
throw `canskipとglobalを同時にtrue指定できません`;
|
|
69245
69241
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
69246
|
-
if (this.val.getVal('tmp:sn.skip.all')
|
|
69247
|
-
|
|
69242
|
+
if (this.val.getVal('tmp:sn.skip.all') ||
|
|
69243
|
+
this.scrItr.isNextKidoku) {
|
|
69248
69244
|
onFinish();
|
|
69249
69245
|
return false;
|
|
69250
69246
|
}
|
|
69251
|
-
__classPrivateFieldGet(this,
|
|
69247
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
69252
69248
|
}
|
|
69253
69249
|
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, onFinish, canskip, global);
|
|
69254
69250
|
return true;
|
|
@@ -69341,9 +69337,9 @@ class EventMng {
|
|
|
69341
69337
|
this.val.saveKidoku();
|
|
69342
69338
|
const fnc = () => { __classPrivateFieldGet(this, _EventMng_elcWLE, "f").clear(); onFinish(); };
|
|
69343
69339
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
69344
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
69345
|
-
|
|
69346
|
-
__classPrivateFieldGet(this,
|
|
69340
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
69341
|
+
!this.scrItr.isNextKidoku)
|
|
69342
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
69347
69343
|
else {
|
|
69348
69344
|
fnc();
|
|
69349
69345
|
return false;
|
|
@@ -69361,17 +69357,17 @@ class EventMng {
|
|
|
69361
69357
|
__classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
|
|
69362
69358
|
return true;
|
|
69363
69359
|
}
|
|
69364
|
-
|
|
69360
|
+
isSkippingByKeyDown() {
|
|
69365
69361
|
if (this.scrItr.skip4page)
|
|
69366
69362
|
return true;
|
|
69367
|
-
for (const
|
|
69368
|
-
if (__classPrivateFieldGet(this, _EventMng_hDownKeys, "f")[
|
|
69363
|
+
for (const k in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
|
|
69364
|
+
if (__classPrivateFieldGet(this, _EventMng_hDownKeys, "f")[k] === 2)
|
|
69369
69365
|
return true;
|
|
69370
69366
|
return false;
|
|
69371
69367
|
}
|
|
69372
69368
|
}
|
|
69373
69369
|
exports.EventMng = EventMng;
|
|
69374
|
-
_EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_hArg = new WeakMap(), _EventMng_dispHint_ctnBtn = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(),
|
|
69370
|
+
_EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_hArg = new WeakMap(), _EventMng_dispHint_ctnBtn = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(), _EventMng_stopSkip = new WeakMap(), _EventMng_cancelWait = new WeakMap(), _EventMng_hDownKeys = new WeakMap(), _EventMng_instances = new WeakSet(), _EventMng_ev_keydown = function _EventMng_ev_keydown(e) {
|
|
69375
69371
|
if (e['isComposing'])
|
|
69376
69372
|
return;
|
|
69377
69373
|
if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
|
|
@@ -69415,10 +69411,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69415
69411
|
__classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
|
|
69416
69412
|
this.val.saveKidoku();
|
|
69417
69413
|
if (canskip) {
|
|
69418
|
-
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['click'] =
|
|
69419
|
-
|
|
69420
|
-
|
|
69421
|
-
|
|
69414
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['click'] =
|
|
69415
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['enter'] =
|
|
69416
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['arrowdown'] =
|
|
69417
|
+
__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['wheel.y>0'] = onFinish;
|
|
69422
69418
|
}
|
|
69423
69419
|
else {
|
|
69424
69420
|
delete __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")['click'];
|
|
@@ -69574,10 +69570,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69574
69570
|
return false;
|
|
69575
69571
|
}
|
|
69576
69572
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
69577
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
69578
|
-
|
|
69579
|
-
__classPrivateFieldGet(this,
|
|
69580
|
-
else if ('ps'.includes(
|
|
69573
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
69574
|
+
!this.scrItr.isNextKidoku)
|
|
69575
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
69576
|
+
else if ('ps'.includes(this.val.getVal('sys:sn.skip.mode')))
|
|
69581
69577
|
return false;
|
|
69582
69578
|
}
|
|
69583
69579
|
if (this.val.getVal('tmp:sn.auto.enabled'))
|
|
@@ -69593,10 +69589,10 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69593
69589
|
}, _EventMng_p = function _EventMng_p(hArg) {
|
|
69594
69590
|
this.scrItr.recodePage();
|
|
69595
69591
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
69596
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
69597
|
-
|
|
69598
|
-
__classPrivateFieldGet(this,
|
|
69599
|
-
else if ('s'
|
|
69592
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
69593
|
+
!this.scrItr.isNextKidoku)
|
|
69594
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
69595
|
+
else if ('s' == this.val.getVal('sys:sn.skip.mode')) {
|
|
69600
69596
|
__classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
|
|
69601
69597
|
return false;
|
|
69602
69598
|
}
|
|
@@ -69610,20 +69606,21 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69610
69606
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'visible', true))
|
|
69611
69607
|
this.layMng.breakPage();
|
|
69612
69608
|
const fnc = () => { this.sndMng.clearCache(); this.main.resume(); };
|
|
69613
|
-
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this,
|
|
69614
|
-
&&
|
|
69609
|
+
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, (0, CmnLib_1.argChk_Boolean)(hArg, 'er', false)
|
|
69610
|
+
&& this.layMng.currentTxtlayFore
|
|
69615
69611
|
? () => { this.hTag.er(hArg); fnc(); }
|
|
69616
69612
|
: fnc);
|
|
69617
69613
|
return true;
|
|
69618
69614
|
}, _EventMng_set_cancel_skip = function _EventMng_set_cancel_skip() {
|
|
69619
|
-
__classPrivateFieldSet(this,
|
|
69620
|
-
__classPrivateFieldSet(this,
|
|
69615
|
+
__classPrivateFieldSet(this, _EventMng_stopSkip, () => {
|
|
69616
|
+
__classPrivateFieldSet(this, _EventMng_stopSkip, () => false, "f");
|
|
69621
69617
|
this.val.setVal_Nochk('tmp', 'sn.tagL.enabled', true);
|
|
69622
69618
|
this.val.setVal_Nochk('tmp', 'sn.skip.enabled', false);
|
|
69623
69619
|
this.val.setVal_Nochk('tmp', 'sn.auto.enabled', false);
|
|
69624
|
-
this.layMng.
|
|
69620
|
+
this.layMng.setNormalChWait();
|
|
69621
|
+
__classPrivateFieldGet(this, _EventMng_cancelWait, "f").call(this);
|
|
69622
|
+
return true;
|
|
69625
69623
|
}, "f");
|
|
69626
|
-
this.scrItr.unregisterClickEvts();
|
|
69627
69624
|
return false;
|
|
69628
69625
|
}, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
|
|
69629
69626
|
const add = hArg.add;
|
|
@@ -69663,30 +69660,35 @@ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picH
|
|
|
69663
69660
|
}
|
|
69664
69661
|
return false;
|
|
69665
69662
|
}, _EventMng_wait = function _EventMng_wait(hArg) {
|
|
69663
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
69666
69664
|
if (this.scrItr.skip4page)
|
|
69667
69665
|
return false;
|
|
69668
69666
|
if (this.val.getVal('tmp:sn.skip.enabled')) {
|
|
69669
|
-
if (!this.val.getVal('tmp:sn.skip.all')
|
|
69670
|
-
|
|
69671
|
-
__classPrivateFieldGet(this,
|
|
69672
|
-
|
|
69673
|
-
return false;
|
|
69667
|
+
if (!this.val.getVal('tmp:sn.skip.all') &&
|
|
69668
|
+
!this.scrItr.isNextKidoku)
|
|
69669
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
69670
|
+
return false;
|
|
69674
69671
|
}
|
|
69672
|
+
if (this.val.getVal('tmp:sn.auto.enabled'))
|
|
69673
|
+
__classPrivateFieldSet(this, _EventMng_cancelWait, () => {
|
|
69674
|
+
this.scrItr.subIdxToken();
|
|
69675
|
+
tw.end();
|
|
69676
|
+
}, "f");
|
|
69675
69677
|
const tw = new tween_js_1.Tween({})
|
|
69676
|
-
.to({},
|
|
69677
|
-
.onComplete(() => {
|
|
69678
|
+
.to({}, time)
|
|
69679
|
+
.onComplete(() => {
|
|
69680
|
+
__classPrivateFieldSet(this, _EventMng_cancelWait, () => { }, "f");
|
|
69681
|
+
tw.stop();
|
|
69682
|
+
this.main.resume();
|
|
69683
|
+
})
|
|
69678
69684
|
.start();
|
|
69679
69685
|
return this.waitEvent(() => tw.end(), (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
|
|
69680
69686
|
}, _EventMng_waitclick = function _EventMng_waitclick() {
|
|
69681
69687
|
if (this.scrItr.skip4page)
|
|
69682
69688
|
return false;
|
|
69683
|
-
if (this.val.getVal('tmp:sn.skip.enabled')
|
|
69684
|
-
|
|
69685
|
-
|
|
69686
|
-
__classPrivateFieldGet(this, _EventMng_fncCancelSkip, "f").call(this);
|
|
69687
|
-
else
|
|
69688
|
-
return false;
|
|
69689
|
-
}
|
|
69689
|
+
if (this.val.getVal('tmp:sn.skip.enabled')
|
|
69690
|
+
|| this.val.getVal('tmp:sn.auto.enabled'))
|
|
69691
|
+
__classPrivateFieldGet(this, _EventMng_stopSkip, "f").call(this);
|
|
69690
69692
|
__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, () => this.main.resume());
|
|
69691
69693
|
return true;
|
|
69692
69694
|
};
|
|
@@ -70022,7 +70024,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70022
70024
|
this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
|
|
70023
70025
|
const win = ifrm.contentWindow;
|
|
70024
70026
|
__classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
|
|
70025
|
-
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '')
|
|
70027
|
+
(win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? ''), img));
|
|
70026
70028
|
this.main.resume();
|
|
70027
70029
|
};
|
|
70028
70030
|
});
|
|
@@ -70208,8 +70210,8 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
|
|
|
70208
70210
|
this.appPixi.stage.interactive = false;
|
|
70209
70211
|
const tw_nm = `frm\n${hArg.id}`;
|
|
70210
70212
|
const tw = new tween_js_1.Tween(hNow)
|
|
70211
|
-
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN)
|
|
70212
|
-
|
|
70213
|
+
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
|
|
70214
|
+
|| __classPrivateFieldGet(this, _FrameMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
|
|
70213
70215
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
70214
70216
|
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
70215
70217
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
@@ -71102,7 +71104,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
71102
71104
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
71103
71105
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
71104
71106
|
};
|
|
71105
|
-
var _LayerMng_instances, _a, _LayerMng_stage, _LayerMng_fore, _LayerMng_back, _LayerMng_frmMng, _LayerMng_fncTicker, _LayerMng_hProcDbgRes, _LayerMng_modeLn, _LayerMng_modeLnSub, _LayerMng_selectNode, _LayerMng_grpCover, _LayerMng_evtMng, _LayerMng_foreachRedrawTxtLayBack, _LayerMng_cmdTxt, _LayerMng_snapshot, _LayerMng_loadplugin, _LayerMng_add_lay, _LayerMng_hPages, _LayerMng_aLayName, _LayerMng_curTxtlay, _LayerMng_firstGrplay, _LayerMng_lay, _LayerMng_rebuildLayerRankInfo, _LayerMng_clear_lay, _LayerMng_srcRuleTransFragment, _LayerMng_ufRuleTrans, _LayerMng_fltRule, _LayerMng_rtTransBack, _LayerMng_spTransBack, _LayerMng_rtTransFore, _LayerMng_spTransFore, _LayerMng_aBackTransAfter, _LayerMng_trans, _LayerMng_tiTrans, _LayerMng_getLayers, _LayerMng_foreachLayers, _LayerMng_sortLayers, _LayerMng_wt, _LayerMng_finish_trans, _LayerMng_quake, _LayerMng_hTwInf, _LayerMng_tsy, _LayerMng_wait_tsy, _LayerMng_stop_tsy, _LayerMng_pause_tsy, _LayerMng_resume_tsy, _LayerMng_msecChWait, _LayerMng_ch, _LayerMng_getTxtLayer, _LayerMng_$getTxtLayer, _LayerMng_current, _LayerMng_$current, _LayerMng_pgTxtlay,
|
|
71107
|
+
var _LayerMng_instances, _a, _LayerMng_stage, _LayerMng_fore, _LayerMng_back, _LayerMng_frmMng, _LayerMng_fncTicker, _LayerMng_hProcDbgRes, _LayerMng_modeLn, _LayerMng_modeLnSub, _LayerMng_selectNode, _LayerMng_grpCover, _LayerMng_evtMng, _LayerMng_foreachRedrawTxtLayBack, _LayerMng_cmdTxt, _LayerMng_snapshot, _LayerMng_loadplugin, _LayerMng_add_lay, _LayerMng_hPages, _LayerMng_aLayName, _LayerMng_curTxtlay, _LayerMng_firstGrplay, _LayerMng_lay, _LayerMng_rebuildLayerRankInfo, _LayerMng_clear_lay, _LayerMng_srcRuleTransFragment, _LayerMng_ufRuleTrans, _LayerMng_fltRule, _LayerMng_rtTransBack, _LayerMng_spTransBack, _LayerMng_rtTransFore, _LayerMng_spTransFore, _LayerMng_aBackTransAfter, _LayerMng_trans, _LayerMng_tiTrans, _LayerMng_getLayers, _LayerMng_foreachLayers, _LayerMng_sortLayers, _LayerMng_wt, _LayerMng_finish_trans, _LayerMng_quake, _LayerMng_hTwInf, _LayerMng_tsy, _LayerMng_wait_tsy, _LayerMng_stop_tsy, _LayerMng_pause_tsy, _LayerMng_resume_tsy, _LayerMng_msecChWait, _LayerMng_ch, _LayerMng_getTxtLayer, _LayerMng_$getTxtLayer, _LayerMng_current, _LayerMng_$current, _LayerMng_pgTxtlay, _LayerMng_chkTxtLay, _LayerMng_argChk_layer, _LayerMng_oLastPage, _LayerMng_aTxtLog, _LayerMng_clear_text, _LayerMng_endlink, _LayerMng_er, _LayerMng_graph, _LayerMng_link, _LayerMng_r, _LayerMng_rec_r, _LayerMng_rec_ch, _LayerMng_reset_rec, _LayerMng_ruby2, _LayerMng_span, _LayerMng_tcy, _LayerMng_dump_lay, _LayerMng_enable_event, _LayerMng_button;
|
|
71106
71108
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
71107
71109
|
exports.LayerMng = void 0;
|
|
71108
71110
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -71159,7 +71161,7 @@ class LayerMng {
|
|
|
71159
71161
|
this.getFrmDisabled = (id) => __classPrivateFieldGet(this, _LayerMng_frmMng, "f").getFrmDisabled(id);
|
|
71160
71162
|
_LayerMng_grpCover.set(this, null);
|
|
71161
71163
|
_LayerMng_evtMng.set(this, void 0);
|
|
71162
|
-
_LayerMng_cmdTxt.set(this, (cmd, tl = this.
|
|
71164
|
+
_LayerMng_cmdTxt.set(this, (cmd, tl = this.currentTxtlayForeNeedErr, _record = true) => tl.tagCh('| 《' + cmd + '》'));
|
|
71163
71165
|
this.goTxt = () => { };
|
|
71164
71166
|
this.breakLine = () => { };
|
|
71165
71167
|
this.breakPage = () => { };
|
|
@@ -71217,10 +71219,10 @@ void main(void) {
|
|
|
71217
71219
|
_LayerMng_aBackTransAfter.set(this, []);
|
|
71218
71220
|
_LayerMng_tiTrans.set(this, { tw: null, resume: false });
|
|
71219
71221
|
_LayerMng_hTwInf.set(this, {});
|
|
71220
|
-
_LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this,
|
|
71221
|
-
_LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this,
|
|
71222
|
+
_LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
|
|
71223
|
+
_LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
|
|
71222
71224
|
_LayerMng_pgTxtlay.set(this, void 0);
|
|
71223
|
-
|
|
71225
|
+
_LayerMng_chkTxtLay.set(this, () => { throw '文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい'; });
|
|
71224
71226
|
_LayerMng_oLastPage.set(this, { text: '' });
|
|
71225
71227
|
_LayerMng_aTxtLog.set(this, []);
|
|
71226
71228
|
const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
|
|
@@ -71318,7 +71320,7 @@ void main(void) {
|
|
|
71318
71320
|
val.defTmp('const.sn.log.json', () => JSON.stringify((__classPrivateFieldGet(this, _LayerMng_oLastPage, "f").text)
|
|
71319
71321
|
? [...__classPrivateFieldGet(this, _LayerMng_aTxtLog, "f"), __classPrivateFieldGet(this, _LayerMng_oLastPage, "f")]
|
|
71320
71322
|
: __classPrivateFieldGet(this, _LayerMng_aTxtLog, "f")));
|
|
71321
|
-
val.defTmp('const.sn.last_page_text', () => this.
|
|
71323
|
+
val.defTmp('const.sn.last_page_text', () => this.currentTxtlayFore?.pageText ?? '');
|
|
71322
71324
|
if (CmnLib_1.CmnLib.isDbg) {
|
|
71323
71325
|
DesignCast_1.DesignCast.init(this.appPixi, sys, scrItr, prpPrs, alzTagArg, this.cfg, __classPrivateFieldGet(this, _LayerMng_hPages, "f"));
|
|
71324
71326
|
this.cvsResizeDesign = () => DesignCast_1.DesignCast.cvsResizeDesign();
|
|
@@ -71361,13 +71363,13 @@ void main(void) {
|
|
|
71361
71363
|
}
|
|
71362
71364
|
stopAllTw() { __classPrivateFieldSet(this, _LayerMng_hTwInf, {}, "f"); (0, tween_js_1.removeAll)(); }
|
|
71363
71365
|
clearBreak() {
|
|
71364
|
-
if (!this.
|
|
71366
|
+
if (!this.currentTxtlayFore)
|
|
71365
71367
|
return;
|
|
71366
71368
|
this.clearBreak = () => __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'del|break');
|
|
71367
71369
|
this.clearBreak();
|
|
71368
71370
|
}
|
|
71369
71371
|
clickTxtLay() {
|
|
71370
|
-
if (!this.
|
|
71372
|
+
if (!this.currentTxtlayFore)
|
|
71371
71373
|
return;
|
|
71372
71374
|
const vct = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this);
|
|
71373
71375
|
const len = vct.length;
|
|
@@ -71383,12 +71385,12 @@ void main(void) {
|
|
|
71383
71385
|
}
|
|
71384
71386
|
static get msecChWait() { return __classPrivateFieldGet(LayerMng, _a, "f", _LayerMng_msecChWait); }
|
|
71385
71387
|
static set msecChWait(v) { __classPrivateFieldSet(LayerMng, _a, v, "f", _LayerMng_msecChWait); }
|
|
71386
|
-
|
|
71387
|
-
|
|
71388
|
-
__classPrivateFieldGet(this,
|
|
71389
|
-
return this.
|
|
71388
|
+
setNormalChWait() { __classPrivateFieldSet(LayerMng, _a, this.scrItr.normalWait, "f", _LayerMng_msecChWait); }
|
|
71389
|
+
get currentTxtlayForeNeedErr() {
|
|
71390
|
+
__classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this);
|
|
71391
|
+
return this.currentTxtlayFore;
|
|
71390
71392
|
}
|
|
71391
|
-
|
|
71393
|
+
get currentTxtlayFore() {
|
|
71392
71394
|
if (!__classPrivateFieldGet(this, _LayerMng_pgTxtlay, "f"))
|
|
71393
71395
|
return undefined;
|
|
71394
71396
|
return __classPrivateFieldGet(this, _LayerMng_pgTxtlay, "f").fore;
|
|
@@ -71456,7 +71458,7 @@ void main(void) {
|
|
|
71456
71458
|
}
|
|
71457
71459
|
}
|
|
71458
71460
|
exports.LayerMng = LayerMng;
|
|
71459
|
-
_a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(), _LayerMng_back = new WeakMap(), _LayerMng_frmMng = new WeakMap(), _LayerMng_fncTicker = new WeakMap(), _LayerMng_hProcDbgRes = new WeakMap(), _LayerMng_modeLn = new WeakMap(), _LayerMng_modeLnSub = new WeakMap(), _LayerMng_grpCover = new WeakMap(), _LayerMng_evtMng = new WeakMap(), _LayerMng_cmdTxt = new WeakMap(), _LayerMng_hPages = new WeakMap(), _LayerMng_aLayName = new WeakMap(), _LayerMng_curTxtlay = new WeakMap(), _LayerMng_firstGrplay = new WeakMap(), _LayerMng_srcRuleTransFragment = new WeakMap(), _LayerMng_ufRuleTrans = new WeakMap(), _LayerMng_fltRule = new WeakMap(), _LayerMng_rtTransBack = new WeakMap(), _LayerMng_spTransBack = new WeakMap(), _LayerMng_rtTransFore = new WeakMap(), _LayerMng_spTransFore = new WeakMap(), _LayerMng_aBackTransAfter = new WeakMap(), _LayerMng_tiTrans = new WeakMap(), _LayerMng_hTwInf = new WeakMap(), _LayerMng_getTxtLayer = new WeakMap(), _LayerMng_current = new WeakMap(), _LayerMng_pgTxtlay = new WeakMap(),
|
|
71461
|
+
_a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(), _LayerMng_back = new WeakMap(), _LayerMng_frmMng = new WeakMap(), _LayerMng_fncTicker = new WeakMap(), _LayerMng_hProcDbgRes = new WeakMap(), _LayerMng_modeLn = new WeakMap(), _LayerMng_modeLnSub = new WeakMap(), _LayerMng_grpCover = new WeakMap(), _LayerMng_evtMng = new WeakMap(), _LayerMng_cmdTxt = new WeakMap(), _LayerMng_hPages = new WeakMap(), _LayerMng_aLayName = new WeakMap(), _LayerMng_curTxtlay = new WeakMap(), _LayerMng_firstGrplay = new WeakMap(), _LayerMng_srcRuleTransFragment = new WeakMap(), _LayerMng_ufRuleTrans = new WeakMap(), _LayerMng_fltRule = new WeakMap(), _LayerMng_rtTransBack = new WeakMap(), _LayerMng_spTransBack = new WeakMap(), _LayerMng_rtTransFore = new WeakMap(), _LayerMng_spTransFore = new WeakMap(), _LayerMng_aBackTransAfter = new WeakMap(), _LayerMng_tiTrans = new WeakMap(), _LayerMng_hTwInf = new WeakMap(), _LayerMng_getTxtLayer = new WeakMap(), _LayerMng_current = new WeakMap(), _LayerMng_pgTxtlay = new WeakMap(), _LayerMng_chkTxtLay = new WeakMap(), _LayerMng_oLastPage = new WeakMap(), _LayerMng_aTxtLog = new WeakMap(), _LayerMng_instances = new WeakSet(), _LayerMng_selectNode = function _LayerMng_selectNode(node) {
|
|
71460
71462
|
var _b, _c;
|
|
71461
71463
|
_b = this, _c = this, [({ set value(_a) { __classPrivateFieldSet(_b, _LayerMng_modeLn, _a, "f"); } }).value, ({ set value(_a) { __classPrivateFieldSet(_c, _LayerMng_modeLnSub, _a, "f"); } }).value = ''] = node.split('/');
|
|
71462
71464
|
const pages = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[__classPrivateFieldGet(this, _LayerMng_modeLn, "f")];
|
|
@@ -71559,7 +71561,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71559
71561
|
switch (cls) {
|
|
71560
71562
|
case 'txt':
|
|
71561
71563
|
if (!__classPrivateFieldGet(this, _LayerMng_curTxtlay, "f")) {
|
|
71562
|
-
__classPrivateFieldSet(this,
|
|
71564
|
+
__classPrivateFieldSet(this, _LayerMng_chkTxtLay, () => { }, "f");
|
|
71563
71565
|
__classPrivateFieldSet(this, _LayerMng_getTxtLayer, __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_$getTxtLayer), "f");
|
|
71564
71566
|
__classPrivateFieldSet(this, _LayerMng_current, __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_$current), "f");
|
|
71565
71567
|
this.hTag.current({ layer: layer });
|
|
@@ -71568,7 +71570,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71568
71570
|
__classPrivateFieldSet(LayerMng, _a, 0, "f", _LayerMng_msecChWait);
|
|
71569
71571
|
}
|
|
71570
71572
|
else {
|
|
71571
|
-
this.
|
|
71573
|
+
this.setNormalChWait();
|
|
71572
71574
|
}
|
|
71573
71575
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this).forEach(name => {
|
|
71574
71576
|
const pg = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[name];
|
|
@@ -71693,7 +71695,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71693
71695
|
};
|
|
71694
71696
|
__classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
|
|
71695
71697
|
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', 0);
|
|
71696
|
-
if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").
|
|
71698
|
+
if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) {
|
|
71697
71699
|
comp();
|
|
71698
71700
|
return false;
|
|
71699
71701
|
}
|
|
@@ -71765,9 +71767,12 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71765
71767
|
return __classPrivateFieldGet(this, _LayerMng_evtMng, "f").waitLimitedEvent(hArg, () => __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this));
|
|
71766
71768
|
}, _LayerMng_finish_trans = function _LayerMng_finish_trans() { __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.end(); return false; }, _LayerMng_quake = function _LayerMng_quake(hArg) {
|
|
71767
71769
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_finish_trans).call(this);
|
|
71770
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
71771
|
+
if (time === 0)
|
|
71772
|
+
return false;
|
|
71768
71773
|
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
71769
71774
|
return false;
|
|
71770
|
-
if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").
|
|
71775
|
+
if (__classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown())
|
|
71771
71776
|
return false;
|
|
71772
71777
|
const aDo = [];
|
|
71773
71778
|
__classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(lay_nm => {
|
|
@@ -71793,7 +71798,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71793
71798
|
__classPrivateFieldGet(this, _LayerMng_spTransFore, "f").filters = [];
|
|
71794
71799
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
71795
71800
|
const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
|
|
71796
|
-
.to({ x: 0, y: 0 },
|
|
71801
|
+
.to({ x: 0, y: 0 }, time)
|
|
71797
71802
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
71798
71803
|
.easing(ease)
|
|
71799
71804
|
.onUpdate(() => { fncH(); fncV(); })
|
|
@@ -71823,8 +71828,8 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71823
71828
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
71824
71829
|
const tw_nm = hArg.name ?? hArg.layer;
|
|
71825
71830
|
const tw = new tween_js_1.Tween(foreLay)
|
|
71826
|
-
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (
|
|
71827
|
-
||
|
|
71831
|
+
.to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
|
|
71832
|
+
|| __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
|
|
71828
71833
|
.delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
|
|
71829
71834
|
.easing(CmnTween_1.CmnTween.ease(hArg.ease))
|
|
71830
71835
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
@@ -71892,11 +71897,10 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
|
|
|
71892
71897
|
throw 'textは必須です';
|
|
71893
71898
|
const tl = __classPrivateFieldGet(this, _LayerMng_getTxtLayer, "f").call(this, hArg);
|
|
71894
71899
|
delete hArg.text;
|
|
71895
|
-
if ('
|
|
71900
|
+
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
71901
|
+
hArg.wait = 0;
|
|
71902
|
+
else if ('wait' in hArg)
|
|
71896
71903
|
(0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
|
|
71897
|
-
if (this.val.getVal('tmp:sn.skip.enabled'))
|
|
71898
|
-
hArg.wait = 0;
|
|
71899
|
-
}
|
|
71900
71904
|
__classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
|
|
71901
71905
|
const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
|
|
71902
71906
|
const doRecLog = this.val.doRecLog();
|
|
@@ -72262,7 +72266,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
|
|
|
72262
72266
|
else if (uc === 42 && token.length > 1)
|
|
72263
72267
|
continue;
|
|
72264
72268
|
try {
|
|
72265
|
-
const tl = __classPrivateFieldGet(this, _Main_layMng, "f").
|
|
72269
|
+
const tl = __classPrivateFieldGet(this, _Main_layMng, "f").currentTxtlayForeNeedErr;
|
|
72266
72270
|
tl.tagCh(token);
|
|
72267
72271
|
}
|
|
72268
72272
|
catch (err) {
|
|
@@ -73031,15 +73035,6 @@ class ScriptIterator {
|
|
|
73031
73035
|
get lineNum() { return __classPrivateFieldGet(this, _ScriptIterator_lineNum, "f"); }
|
|
73032
73036
|
destroy() { this.isBreak = () => false; }
|
|
73033
73037
|
;
|
|
73034
|
-
unregisterClickEvts() {
|
|
73035
|
-
__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").forEach(cs => {
|
|
73036
|
-
const hE1T = cs.csArg[':hEvt1Time'];
|
|
73037
|
-
delete hE1T['Click'];
|
|
73038
|
-
delete hE1T['Enter'];
|
|
73039
|
-
delete hE1T['ArrowDown'];
|
|
73040
|
-
delete hE1T['wheel.y>0'];
|
|
73041
|
-
});
|
|
73042
|
-
}
|
|
73043
73038
|
タグ解析(tagToken) {
|
|
73044
73039
|
const [tag_name, args] = (0, Grammar_1.tagToken2Name_Args)(tagToken);
|
|
73045
73040
|
const tag_fnc = this.hTag[tag_name];
|
|
@@ -74093,7 +74088,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74093
74088
|
this.val.setVal_Nochk('save', 'const.sn.sound.' + buf + '.fn', '');
|
|
74094
74089
|
}
|
|
74095
74090
|
this.val.flush();
|
|
74096
|
-
|
|
74091
|
+
const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN);
|
|
74092
|
+
const delay = (0, CmnLib_1.argChk_Num)(hArg, 'delay', 0);
|
|
74093
|
+
if ((time === 0 && delay === 0)
|
|
74094
|
+
|| this.val.getVal('tmp:sn.skip.enabled')
|
|
74095
|
+
|| __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown()) {
|
|
74097
74096
|
oSb.snd.volume = vol;
|
|
74098
74097
|
if (stop)
|
|
74099
74098
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
|
|
@@ -74102,8 +74101,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74102
74101
|
const ease = CmnTween_1.CmnTween.ease(hArg.ease);
|
|
74103
74102
|
const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
|
|
74104
74103
|
oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
|
|
74105
|
-
.to({ v: vol },
|
|
74106
|
-
.delay(
|
|
74104
|
+
.to({ v: vol }, time)
|
|
74105
|
+
.delay(delay)
|
|
74107
74106
|
.easing(ease)
|
|
74108
74107
|
.repeat(repeat === 0 ? Infinity : (repeat - 1))
|
|
74109
74108
|
.yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
|
|
@@ -74133,7 +74132,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
|
|
|
74133
74132
|
if (!fn)
|
|
74134
74133
|
throw '[playse] fnは必須です(buf=' + buf + ')';
|
|
74135
74134
|
if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
|
|
74136
|
-
&& __classPrivateFieldGet(this, _SoundMng_evtMng, "f").
|
|
74135
|
+
&& __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
|
|
74137
74136
|
return false;
|
|
74138
74137
|
const loop = (0, CmnLib_1.argChk_Boolean)(hArg, 'loop', false);
|
|
74139
74138
|
__classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_addLoopPlay).call(this, buf, loop);
|
|
@@ -75080,7 +75079,7 @@ class TxtLayer extends Layer_1.Layer {
|
|
|
75080
75079
|
console.log(`🖊 文字表示 text:\`${ch}\` ruby:\`${ruby}\` name:\`${this.name_}\``);
|
|
75081
75080
|
const a_ruby = ruby.split('|');
|
|
75082
75081
|
let add_htm = '';
|
|
75083
|
-
const isSkip = __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_evtMng).
|
|
75082
|
+
const isSkip = __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_evtMng).isSkippingByKeyDown();
|
|
75084
75083
|
switch (a_ruby.length) {
|
|
75085
75084
|
case 1:
|
|
75086
75085
|
__classPrivateFieldSet(this, _TxtLayer_needGoTxt, true, "f");
|
|
@@ -76966,14 +76965,6 @@ class Variable {
|
|
|
76966
76965
|
const a = [];
|
|
76967
76966
|
Object.keys(__classPrivateFieldGet(this, _Variable_data, "f").mark).sort().forEach(k => {
|
|
76968
76967
|
const o = { ...__classPrivateFieldGet(this, _Variable_data, "f").mark[k].json };
|
|
76969
|
-
for (const key in o) {
|
|
76970
|
-
const v = o[key];
|
|
76971
|
-
if (typeof v !== 'string')
|
|
76972
|
-
continue;
|
|
76973
|
-
if (v.slice(0, 10) !== 'userdata:/')
|
|
76974
|
-
continue;
|
|
76975
|
-
o[key] = cfg.searchPath(v);
|
|
76976
|
-
}
|
|
76977
76968
|
o.place = k;
|
|
76978
76969
|
a.push(o);
|
|
76979
76970
|
});
|