canvasengine 2.0.0-beta.39 → 2.0.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DebugRenderer-Rrw9FlTd.js → DebugRenderer-DgECR3yZ.js} +2 -2
- package/dist/{DebugRenderer-Rrw9FlTd.js.map → DebugRenderer-DgECR3yZ.js.map} +1 -1
- package/dist/components/Canvas.d.ts.map +1 -1
- package/dist/directives/Controls.d.ts +3 -1
- package/dist/directives/Controls.d.ts.map +1 -1
- package/dist/engine/animation.d.ts +19 -5
- package/dist/engine/animation.d.ts.map +1 -1
- package/dist/engine/reactive.d.ts +10 -0
- package/dist/engine/reactive.d.ts.map +1 -1
- package/dist/engine/signal.d.ts.map +1 -1
- package/dist/engine/trigger.d.ts.map +1 -1
- package/dist/{index-BQ99FClW.js → index-gb763Hyx.js} +4460 -4245
- package/dist/index-gb763Hyx.js.map +1 -0
- package/dist/index.global.js +6 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +40 -37
- package/package.json +2 -2
- package/src/components/Canvas.ts +5 -0
- package/src/components/Container.ts +2 -0
- package/src/components/DisplayObject.ts +33 -12
- package/src/components/Sprite.ts +14 -1
- package/src/directives/Controls.ts +45 -7
- package/src/engine/animation.ts +137 -19
- package/src/engine/reactive.ts +123 -3
- package/src/engine/signal.ts +5 -0
- package/src/engine/trigger.ts +19 -2
- package/dist/components/Container.d.ts +0 -84
- package/dist/components/Container.d.ts.map +0 -1
- package/dist/components/DOMContainer.d.ts +0 -81
- package/dist/components/DOMContainer.d.ts.map +0 -1
- package/dist/components/DisplayObject.d.ts +0 -86
- package/dist/components/DisplayObject.d.ts.map +0 -1
- package/dist/components/Mesh.d.ts +0 -206
- package/dist/components/Mesh.d.ts.map +0 -1
- package/dist/components/Sprite.d.ts +0 -240
- package/dist/components/Sprite.d.ts.map +0 -1
- package/dist/components/Viewport.d.ts +0 -110
- package/dist/components/Viewport.d.ts.map +0 -1
- package/dist/index-BQ99FClW.js.map +0 -1
package/dist/index.global.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var CanvasEngine=function(x,
|
|
1
|
+
var CanvasEngine=function(x,v){"use strict";var sc=Object.defineProperty;var rr=x=>{throw TypeError(x)};var oc=(x,v,et)=>v in x?sc(x,v,{enumerable:!0,configurable:!0,writable:!0,value:et}):x[v]=et;var bn=(x,v,et)=>oc(x,typeof v!="symbol"?v+"":v,et),ar=(x,v,et)=>v.has(x)||rr("Cannot "+et);var It=(x,v,et)=>(ar(x,v,"read from private field"),et?et.call(x):v.get(x)),re=(x,v,et)=>v.has(x)?rr("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(x):v.set(x,et),Wt=(x,v,et,ae)=>(ar(x,v,"write to private field"),ae?ae.call(x,et):v.set(x,et),et);var xA,kA;var et=typeof document<"u"?document.currentScript:null;function ae(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const A in e)if(A!=="default"){const i=Object.getOwnPropertyDescriptor(e,A);Object.defineProperty(t,A,i.get?i:{enumerable:!0,get:()=>e[A]})}}return t.default=e,Object.freeze(t)}function gr(e,t){for(var A=0;A<t.length;A++){const i=t[A];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in e)){const s=Object.getOwnPropertyDescriptor(i,n);s&&Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const hr=ae(v);var je=function(e,t){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,i){A.__proto__=i}||function(A,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(A[n]=i[n])},je(e,t)};function gA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");je(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}function lr(e,t,A,i){function n(s){return s instanceof A?s:new A(function(a){a(s)})}return new(A||(A=Promise))(function(s,a){function g(I){try{l(i.next(I))}catch(o){a(o)}}function r(I){try{l(i.throw(I))}catch(o){a(o)}}function l(I){I.done?s(I.value):n(I.value).then(g,r)}l((i=i.apply(e,t||[])).next())})}function xn(e,t){var A={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=g(0),a.throw=g(1),a.return=g(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function g(l){return function(I){return r([l,I])}}function r(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(A=0)),A;)try{if(i=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return A.label++,{value:l[1],done:!1};case 5:A.label++,n=l[1],l=[0];continue;case 7:l=A.ops.pop(),A.trys.pop();continue;default:if(s=A.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){A=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){A.label=l[1];break}if(l[0]===6&&A.label<s[1]){A.label=s[1],s=l;break}if(s&&A.label<s[2]){A.label=s[2],A.ops.push(l);break}s[2]&&A.ops.pop(),A.trys.pop();continue}l=t.call(e,A)}catch(I){l=[6,I],n=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function hA(e){var t=typeof Symbol=="function"&&Symbol.iterator,A=t&&e[t],i=0;if(A)return A.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function FA(e,t){var A=typeof Symbol=="function"&&e[Symbol.iterator];if(!A)return e;var i=A.call(e),n,s=[],a;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(g){a={error:g}}finally{try{n&&!n.done&&(A=i.return)&&A.call(i)}finally{if(a)throw a.error}}return s}function GA(e,t,A){if(A||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function lA(e){return this instanceof lA?(this.v=e,this):new lA(e)}function cr(e,t,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=A.apply(e,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),g("next"),g("throw"),g("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(c){return function(E){return Promise.resolve(E).then(c,o)}}function g(c,E){i[c]&&(n[c]=function(f){return new Promise(function(Q,C){s.push([c,f,Q,C])>1||r(c,f)})},E&&(n[c]=E(n[c])))}function r(c,E){try{l(i[c](E))}catch(f){h(s[0][3],f)}}function l(c){c.value instanceof lA?Promise.resolve(c.value.v).then(I,o):h(s[0][2],c)}function I(c){r("next",c)}function o(c){r("throw",c)}function h(c,E){c(E),s.shift(),s.length&&r(s[0][0],s[0][1])}}function Ir(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],A;return t?t.call(e):(e=typeof hA=="function"?hA(e):e[Symbol.iterator](),A={},i("next"),i("throw"),i("return"),A[Symbol.asyncIterator]=function(){return this},A);function i(s){A[s]=e[s]&&function(a){return new Promise(function(g,r){a=e[s](a),n(g,r,a.done,a.value)})}}function n(s,a,g,r){Promise.resolve(r).then(function(l){s({value:l,done:g})},a)}}typeof SuppressedError=="function"&&SuppressedError;function z(e){return typeof e=="function"}function kn(e){var t=function(i){Error.call(i),i.stack=new Error().stack},A=e(t);return A.prototype=Object.create(Error.prototype),A.prototype.constructor=A,A}var Ve=kn(function(e){return function(A){e(this),this.message=A?A.length+` errors occurred during unsubscription:
|
|
2
2
|
`+A.map(function(i,n){return n+1+") "+i.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=A}});function Ye(e,t){if(e){var A=e.indexOf(t);0<=A&&e.splice(A,1)}}var ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,A,i,n,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=rA(a),h=o.next();!h.done;h=o.next()){var l=h.value;l.remove(this)}}catch(C){t={error:C}}finally{try{h&&!h.done&&(A=o.return)&&A.call(o)}finally{if(t)throw t.error}}else a.remove(this);var B=this.initialTeardown;if(Z(B))try{B()}catch(C){s=C instanceof Ke?C.errors:[C]}var r=this._finalizers;if(r){this._finalizers=null;try{for(var g=rA(r),c=g.next();!c.done;c=g.next()){var E=c.value;try{Dn(E)}catch(C){s=s??[],C instanceof Ke?s=MA(MA([],kA(s)),kA(C.errors)):s.push(C)}}}catch(C){i={error:C}}finally{try{c&&!c.done&&(n=g.return)&&n.call(g)}finally{if(i)throw i.error}}}if(s)throw new Ke(s)}},e.prototype.add=function(t){var A;if(t&&t!==this)if(this.closed)Dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(A=this._finalizers)!==null&&A!==void 0?A:[]).push(t)}},e.prototype._hasParent=function(t){var A=this._parentage;return A===t||Array.isArray(A)&&A.includes(t)},e.prototype._addParent=function(t){var A=this._parentage;this._parentage=Array.isArray(A)?(A.push(t),A):A?[A,t]:t},e.prototype._removeParent=function(t){var A=this._parentage;A===t?this._parentage=null:Array.isArray(A)&&Ye(A,t)},e.prototype.remove=function(t){var A=this._finalizers;A&&Ye(A,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),wn=ie.EMPTY;function mn(e){return e instanceof ie||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function Dn(e){Z(e)?e():e.unsubscribe()}var gr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vn={setTimeout:function(e,t){for(var A=[],i=2;i<arguments.length;i++)A[i-2]=arguments[i];return setTimeout.apply(void 0,MA([e,t],kA(A)))},clearTimeout:function(e){var t=vn.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Sn(e){vn.setTimeout(function(){throw e})}function xn(){}function ne(e){e()}var We=function(e){oA(t,e);function t(A){var i=e.call(this)||this;return i.isStopped=!1,A?(i.destination=A,mn(A)&&A.add(i)):i.destination=cr,i}return t.create=function(A,i,n){return new RA(A,i,n)},t.prototype.next=function(A){this.isStopped||this._next(A)},t.prototype.error=function(A){this.isStopped||(this.isStopped=!0,this._error(A))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(A){this.destination.next(A)},t.prototype._error=function(A){try{this.destination.error(A)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ie),hr=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var A=this.partialObserver;if(A.next)try{A.next(t)}catch(i){se(i)}},e.prototype.error=function(t){var A=this.partialObserver;if(A.error)try{A.error(t)}catch(i){se(i)}else se(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(A){se(A)}},e}(),RA=function(e){oA(t,e);function t(A,i,n){var s=e.call(this)||this,a;return Z(A)||!A?a={next:A??void 0,error:i??void 0,complete:n??void 0}:a=A,s.destination=new hr(a),s}return t}(We);function se(e){Sn(e)}function lr(e){throw e}var cr={closed:!0,next:xn,error:lr,complete:xn},je=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function qe(e){return e}function Ir(e){return e.length===0?qe:e.length===1?e[0]:function(A){return e.reduce(function(i,n){return n(i)},A)}}var V=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var A=new e;return A.source=this,A.operator=t,A},e.prototype.subscribe=function(t,A,i){var n=this,s=Br(t)?t:new RA(t,A,i);return ne(function(){var a=n,o=a.operator,h=a.source;s.add(o?o.call(s,h):h?n._subscribe(s):n._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(A){t.error(A)}},e.prototype.forEach=function(t,A){var i=this;return A=bn(A),new A(function(n,s){var a=new RA({next:function(o){try{t(o)}catch(h){s(h),a.unsubscribe()}},error:s,complete:n});i.subscribe(a)})},e.prototype._subscribe=function(t){var A;return(A=this.source)===null||A===void 0?void 0:A.subscribe(t)},e.prototype[je]=function(){return this},e.prototype.pipe=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];return Ir(t)(this)},e.prototype.toPromise=function(t){var A=this;return t=bn(t),new t(function(i,n){var s;A.subscribe(function(a){return s=a},function(a){return n(a)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function bn(e){var t;return(t=e??gr.Promise)!==null&&t!==void 0?t:Promise}function ur(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}function Br(e){return e&&e instanceof We||ur(e)&&mn(e)}function Er(e){return Z(e==null?void 0:e.lift)}function gA(e){return function(t){if(Er(t))return t.lift(function(A){try{return e(A,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function oe(e,t,A,i,n){return new Cr(e,t,A,i,n)}var Cr=function(e){oA(t,e);function t(A,i,n,s,a,o){var h=e.call(this,A)||this;return h.onFinalize=a,h.shouldUnsubscribe=o,h._next=i?function(l){try{i(l)}catch(B){A.error(B)}}:e.prototype._next,h._error=s?function(l){try{s(l)}catch(B){A.error(B)}finally{this.unsubscribe()}}:e.prototype._error,h._complete=n?function(){try{n()}catch(l){A.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,h}return t.prototype.unsubscribe=function(){var A;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((A=this.onFinalize)===null||A===void 0||A.call(this))}},t}(We),fr=yn(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),hA=function(e){oA(t,e);function t(){var A=e.call(this)||this;return A.closed=!1,A.currentObservers=null,A.observers=[],A.isStopped=!1,A.hasError=!1,A.thrownError=null,A}return t.prototype.lift=function(A){var i=new kn(this,this);return i.operator=A,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new fr},t.prototype.next=function(A){var i=this;ne(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=rA(i.currentObservers),o=a.next();!o.done;o=a.next()){var h=o.value;h.next(A)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(A){var i=this;ne(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=A;for(var n=i.observers;n.length;)n.shift().error(A)}})},t.prototype.complete=function(){var A=this;ne(function(){if(A._throwIfClosed(),!A.isStopped){A.isStopped=!0;for(var i=A.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var A;return((A=this.observers)===null||A===void 0?void 0:A.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(A){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,A)},t.prototype._subscribe=function(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)},t.prototype._innerSubscribe=function(A){var i=this,n=this,s=n.hasError,a=n.isStopped,o=n.observers;return s||a?wn:(this.currentObservers=null,o.push(A),new ie(function(){i.currentObservers=null,Ye(o,A)}))},t.prototype._checkFinalizedStatuses=function(A){var i=this,n=i.hasError,s=i.thrownError,a=i.isStopped;n?A.error(s):a&&A.complete()},t.prototype.asObservable=function(){var A=new V;return A.source=this,A},t.create=function(A,i){return new kn(A,i)},t}(V),kn=function(e){oA(t,e);function t(A,i){var n=e.call(this)||this;return n.destination=A,n.source=i,n}return t.prototype.next=function(A){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,A)},t.prototype.error=function(A){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,A)},t.prototype.complete=function(){var A,i;(i=(A=this.destination)===null||A===void 0?void 0:A.complete)===null||i===void 0||i.call(A)},t.prototype._subscribe=function(A){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(A))!==null&&n!==void 0?n:wn},t}(hA),re=function(e){oA(t,e);function t(A){var i=e.call(this)||this;return i._value=A,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(A){var i=e.prototype._subscribe.call(this,A);return!i.closed&&A.next(this._value),i},t.prototype.getValue=function(){var A=this,i=A.hasError,n=A.thrownError,s=A._value;if(i)throw n;return this._throwIfClosed(),s},t.prototype.next=function(A){e.prototype.next.call(this,this._value=A)},t}(hA);function Qr(e){return e&&Z(e.schedule)}function Mn(e){return e[e.length-1]}function dr(e){return Z(Mn(e))?e.pop():void 0}function pr(e){return Qr(Mn(e))?e.pop():void 0}var Rn=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function _n(e){return Z(e==null?void 0:e.then)}function Fn(e){return Z(e[je])}function Gn(e){return Symbol.asyncIterator&&Z(e==null?void 0:e[Symbol.asyncIterator])}function Nn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function yr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Hn=yr();function Ln(e){return Z(e==null?void 0:e[Hn])}function Un(e){return rr(this,arguments,function(){var A,i,n,s;return pn(this,function(a){switch(a.label){case 0:A=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,aA(A.read())];case 3:return i=a.sent(),n=i.value,s=i.done,s?[4,aA(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,aA(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return A.releaseLock(),[7];case 10:return[2]}})})}function On(e){return Z(e==null?void 0:e.getReader)}function lA(e){if(e instanceof V)return e;if(e!=null){if(Fn(e))return wr(e);if(Rn(e))return mr(e);if(_n(e))return Dr(e);if(Gn(e))return Tn(e);if(Ln(e))return vr(e);if(On(e))return Sr(e)}throw Nn(e)}function wr(e){return new V(function(t){var A=e[je]();if(Z(A.subscribe))return A.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mr(e){return new V(function(t){for(var A=0;A<e.length&&!t.closed;A++)t.next(e[A]);t.complete()})}function Dr(e){return new V(function(t){e.then(function(A){t.closed||(t.next(A),t.complete())},function(A){return t.error(A)}).then(null,Sn)})}function vr(e){return new V(function(t){var A,i;try{for(var n=rA(e),s=n.next();!s.done;s=n.next()){var a=s.value;if(t.next(a),t.closed)return}}catch(o){A={error:o}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(A)throw A.error}}t.complete()})}function Tn(e){return new V(function(t){xr(e,t).catch(function(A){return t.error(A)})})}function Sr(e){return Tn(Un(e))}function xr(e,t){var A,i,n,s;return or(this,void 0,void 0,function(){var a,o;return pn(this,function(h){switch(h.label){case 0:h.trys.push([0,5,6,11]),A=ar(e),h.label=1;case 1:return[4,A.next()];case 2:if(i=h.sent(),!!i.done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];h.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=h.sent(),n={error:o},[3,11];case 6:return h.trys.push([6,,9,10]),i&&!i.done&&(s=A.return)?[4,s.call(A)]:[3,8];case 7:h.sent(),h.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Kt(e,t,A,i,n){i===void 0&&(i=0),n===void 0&&(n=!1);var s=t.schedule(function(){A(),n?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!n)return s}function Jn(e,t){return t===void 0&&(t=0),gA(function(A,i){A.subscribe(oe(i,function(n){return Kt(i,e,function(){return i.next(n)},t)},function(){return Kt(i,e,function(){return i.complete()},t)},function(n){return Kt(i,e,function(){return i.error(n)},t)}))})}function Pn(e,t){return t===void 0&&(t=0),gA(function(A,i){i.add(e.schedule(function(){return A.subscribe(i)},t))})}function br(e,t){return lA(e).pipe(Pn(t),Jn(t))}function kr(e,t){return lA(e).pipe(Pn(t),Jn(t))}function Mr(e,t){return new V(function(A){var i=0;return t.schedule(function(){i===e.length?A.complete():(A.next(e[i++]),A.closed||this.schedule())})})}function Rr(e,t){return new V(function(A){var i;return Kt(A,t,function(){i=e[Hn](),Kt(A,t,function(){var n,s,a;try{n=i.next(),s=n.value,a=n.done}catch(o){A.error(o);return}a?A.complete():A.next(s)},0,!0)}),function(){return Z(i==null?void 0:i.return)&&i.return()}})}function Kn(e,t){if(!e)throw new Error("Iterable cannot be null");return new V(function(A){Kt(A,t,function(){var i=e[Symbol.asyncIterator]();Kt(A,t,function(){i.next().then(function(n){n.done?A.complete():A.next(n.value)})},0,!0)})})}function _r(e,t){return Kn(Un(e),t)}function Fr(e,t){if(e!=null){if(Fn(e))return br(e,t);if(Rn(e))return Mr(e,t);if(_n(e))return kr(e,t);if(Gn(e))return Kn(e,t);if(Ln(e))return Rr(e,t);if(On(e))return _r(e,t)}throw Nn(e)}function ae(e,t){return t?Fr(e,t):lA(e)}function Gr(e){return!!e&&(e instanceof V||Z(e.lift)&&Z(e.subscribe))}function Yn(e,t){return gA(function(A,i){var n=0;A.subscribe(oe(i,function(s){i.next(e.call(t,s,n++))}))})}var Nr=Array.isArray;function Hr(e,t){return Nr(t)?e.apply(void 0,MA([],kA(t))):e(t)}function Lr(e){return Yn(function(t){return Hr(e,t)})}var Ur=Array.isArray,Or=Object.getPrototypeOf,Tr=Object.prototype,Jr=Object.keys;function Pr(e){if(e.length===1){var t=e[0];if(Ur(t))return{args:t,keys:null};if(Kr(t)){var A=Jr(t);return{args:A.map(function(i){return t[i]}),keys:A}}}return{args:e,keys:null}}function Kr(e){return e&&typeof e=="object"&&Or(e)===Tr}function Yr(e,t){return e.reduce(function(A,i,n){return A[i]=t[n],A},{})}function Wn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var A=pr(e),i=dr(e),n=Pr(e),s=n.args,a=n.keys;if(s.length===0)return ae([],A);var o=new V(Wr(s,A,a?function(h){return Yr(a,h)}:qe));return i?o.pipe(Lr(i)):o}function Wr(e,t,A){return A===void 0&&(A=qe),function(i){jn(t,function(){for(var n=e.length,s=new Array(n),a=n,o=n,h=function(B){jn(t,function(){var r=ae(e[B],t),g=!1;r.subscribe(oe(i,function(c){s[B]=c,g||(g=!0,o--),o||i.next(A(s.slice()))},function(){--a||i.complete()}))},i)},l=0;l<n;l++)h(l)},i)}}function jn(e,t,A){e?Kt(A,e,t):t()}function jr(e){return new V(function(t){lA(e()).subscribe(t)})}function qn(e,t){return gA(function(A,i){var n=0;A.subscribe(oe(i,function(s){return e.call(t,s,n++)&&i.next(s)}))})}function qr(e){return gA(function(t,A){try{t.subscribe(A)}finally{A.add(e)}})}function Vr(e){e===void 0&&(e={});var t=e.connector,A=t===void 0?function(){return new hA}:t,i=e.resetOnError,n=i===void 0?!0:i,s=e.resetOnComplete,a=s===void 0?!0:s,o=e.resetOnRefCountZero,h=o===void 0?!0:o;return function(l){var B,r,g,c=0,E=!1,C=!1,Q=function(){r==null||r.unsubscribe(),r=void 0},f=function(){Q(),B=g=void 0,E=C=!1},y=function(){var D=B;f(),D==null||D.unsubscribe()};return gA(function(D,b){c++,!C&&!E&&Q();var S=g=g??A();b.add(function(){c--,c===0&&!C&&!E&&(r=Ve(y,h))}),S.subscribe(b),!B&&c>0&&(B=new RA({next:function(F){return S.next(F)},error:function(F){C=!0,Q(),r=Ve(f,n,F),S.error(F)},complete:function(){E=!0,Q(),r=Ve(f,a),S.complete()}}),lA(D).subscribe(B))})(l)}}function Ve(e,t){for(var A=[],i=2;i<arguments.length;i++)A[i-2]=arguments[i];if(t===!0){e();return}if(t!==!1){var n=new RA({next:function(){n.unsubscribe(),e()}});return lA(t.apply(void 0,MA([],kA(A)))).subscribe(n)}}function Vn(){return typeof window<"u"}function cA(){return typeof performance<"u"?performance.now():Date.now()}function _A(e){return 1e3/e}function zt(e){return e&&e instanceof Promise}function ge(e,t){if(e.length!==t.length)return!1;for(let A=0;A<e.length;A++){const i=e[A],n=t[A];if(typeof i=="object"&&i!==null){if(typeof n!="object"||n===null)return!1;if(Array.isArray(i)){if(!Array.isArray(n)||!ge(i,n))return!1}else if(!Xn(i,n))return!1}else if(i!==n)return!1}return!0}function Xn(e,t){const A=Object.keys(e),i=Object.keys(t);if(A.length!==i.length)return!1;for(let n of A)if(!t.hasOwnProperty(n)||!Xr(e[n],t[n]))return!1;return!0}function Xr(e,t){return e===t?!0:typeof e!=typeof t?!1:typeof e=="object"&&e!==null?Array.isArray(e)?Array.isArray(t)&&ge(e,t):Xn(e,t):!1}function Zn(e){return{}.toString.call(e)==="[object Function]"}function Xe(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&e.constructor===Object}function zn(e){return e instanceof V}function Ze(e,t,A,i=!1){if(Object(e)!==e)return e;typeof t=="string"&&(t=t.split("."));let n=t.length;if(!n)return e;let s=e;for(let a=0;a<n-1;a++){let o=t[a],h=t[a+1],l=!isNaN(Number(h))&&isFinite(Number(h));(!s[o]||typeof s[o]!="object")&&(s[o]=l&&!i?[]:{}),s=s[o]}return s[t[n-1]]=A,e}function Zr(e,t){const A=t.split(".");let i=e;for(let n of A){if(i[n]===void 0)return;i=i[n]}return i}function zr(e){console.log(e)}function ze(e){console.error(e)}function IA(e,t){typeof t=="number"?e.set(t):Array.isArray(t)?e.set(t[0],t[1]):Xe(t)&&"value"in t?e.set(t.value.x,t.value.y):e.set(t.x,t.y)}function $n(e,t,A,i){const n=e-A,s=t-i;return Math.sqrt(n*n+s*s)}const $r=Object.freeze(Object.defineProperty({__proto__:null,arrayEquals:ge,calculateDistance:$n,error:ze,fps2ms:_A,get:Zr,isBrowser:Vn,isFunction:Zn,isObject:Xe,isObservable:zn,isPromise:zt,log:zr,preciseNow:cA,set:Ze,setObservablePoint:IA},Symbol.toStringTag,{value:"Module"}));class he{constructor(){this.boundKeys={},this.stop=!1,this._controlsOptions={},this.serverFps=60}start(){this.setupListeners(),this.interval=setInterval(()=>{this.preStep()},_A(this.serverFps??60))}destroy(){this.interval&&clearInterval(this.interval),this.cleanup()}bindKey(t,A,i,n){Array.isArray(t)||(t=[t]);const s=Object.assign({repeat:!1},i);t.forEach(a=>{this.boundKeys[a]={actionName:A,options:s,parameters:n}})}applyInput(t){const A=this.boundKeys[t];if(!A)return;const{repeat:i,keyDown:n}=A.options;if(n){let s=A.parameters;typeof s=="function"&&(s=s()),n(A)}}getControl(t){return this.boundKeys[t]}getControls(){return this.boundKeys}stopInputs(){this.stop=!0}listenInputs(){this.stop=!1}setInputs(t){if(t){this.boundKeys={};for(let A in t){const i=t[A],{bind:n}=i;let s=n;Array.isArray(s)||(s=[n]);for(let a of s)this.bindKey(a,A,i)}this._controlsOptions=t}}get options(){return this._controlsOptions}}var ts=(e=>(e.Break="break",e.Backspace="backspace",e.Tab="tab",e.Clear="clear",e.Enter="enter",e.Shift="shift",e.Ctrl="ctrl",e.Alt="alt",e.Pause="pause/break",e.CapsLock="caps lock",e.Escape="escape",e.Conversion="conversion",e.NonConversion="non-conversion",e.Space="space",e.PageUp="page up",e.PageDown="page down",e.End="end",e.Home="home",e[e.Left=4]="Left",e[e.Up=1]="Up",e[e.Right=2]="Right",e[e.Down=3]="Down",e.Select="select",e.Print="print",e.Execute="execute",e.PrintScreen="Print Screen",e.Insert="insert",e.Delete="delete",e.Zero="0",e.One="1",e.Two="2",e.Three="3",e.Four="4",e.Five="5",e.Six="6",e.Seven="7",e.Height="8",e.Nine="9",e.Equal="=",e.Semicolon="semicolon (firefox), equals",e.LessThan="<",e.Equals="equals (firefox)",e.Beta="ß",e.At="@",e.A="a",e.B="b",e.C="c",e.D="d",e.E="e",e.F="f",e.G="g",e.H="h",e.I="i",e.J="j",e.K="k",e.L="l",e.M="m",e.N="n",e.O="o",e.P="p",e.Q="q",e.R="r",e.S="s",e.T="t",e.U="u",e.V="v",e.W="w",e.X="x",e.Y="y",e.Z="z",e.SearchKey="Windows Key / Left ⌘ / Chromebook Search key",e.NumPad0="numpad 0",e.NumPad1="numpad 1",e.NumPad2="numpad 2",e.NumPad3="numpad 3",e.NumPad4="numpad 4",e.NumPad5="numpad 5",e.NumPad6="numpad 6",e.NumPad7="numpad 7",e.NumPad8="numpad 8",e.NumPad9="numpad 9",e.Multiply="multiply",e.Add="add",e.Subtract="subtract",e.DecimalPoint="decimal point",e.Divide="divide",e.F1="f1",e.F2="f2",e.F3="f3",e.F4="f4",e.F5="f5",e.F6="f6",e.F7="f7",e.F8="f8",e.F9="f9",e.F10="f10",e.F11="f11",e.F12="f12",e.F13="f13",e.F14="f14",e.F15="f15",e.F16="f16",e.F17="f17",e.F18="f18",e.F19="f19",e.F20="f20",e.F21="f21",e.F22="f22",e.F23="f23",e.F24="f24",e.NumLock="num lock",e.ScrollLock="scroll lock",e.CircumflexAccent="^",e.ExclamationMark="!",e.Hash="#",e.Dollar="$",e.AccentU="ù",e.PageBackward="page backward",e.PageForWard="page forward",e.Star="*",e.DecreaseVolume="decrease volume level",e.IncreaseVolume="increase volume level",e.Next="next",e.Previous="previous",e.Stop="stop",e.PlayPause="play/pause",e.Email="e-mail",e.SemiColon="semi-colon / ñ",e.EqualSign="equal sign",e.Comma="comma",e.Dash="dash",e.FowardSlach="forward slash / ç",e.GraveAccent="grave accent / ñ / æ",e.OpenBracket="open bracket",e.BackSlach="back slash",e.CloseBracket="close bracket / å",e.SingleQuote="single quote / ø",e.BackQuote="`",e.Altgr="altgr",e))(ts||{});const As={3:"break",8:"backspace",9:"tab",12:"clear",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause/break",20:"caps lock",27:"escape",28:"conversion",29:"non-conversion",32:"space",33:"page up",34:"page down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",41:"select",42:"print",43:"execute",44:"Print Screen",45:"insert",46:"delete",48:"n0",49:"n1",50:"n2",51:"n3",52:"n4",53:"n5",54:"n6",55:"n7",56:"n8",57:"n9",58:":",59:"semicolon (firefox), equals",60:"<",61:"equals (firefox)",63:"ß",64:"@",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"Windows Key / Left ⌘ / Chromebook Search key",92:"right window key",93:"Windows Menu / Right ⌘",96:"numpad 0",97:"numpad 1",98:"numpad 2",99:"numpad 3",100:"numpad 4",101:"numpad 5",102:"numpad 6",103:"numpad 7",104:"numpad 8",105:"numpad 9",106:"multiply",107:"add",108:"numpad period (firefox)",109:"subtract",110:"decimal point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",127:"f16",128:"f17",129:"f18",130:"f19",131:"f20",132:"f21",133:"f22",134:"f23",135:"f24",144:"num lock",145:"scroll lock",160:"^",161:"!",163:"#",164:"$",165:"ù",166:"page backward",167:"page forward",169:"closing paren (AZERTY)",170:"*",171:"~ + * key",173:"minus (firefox), mute/unmute",174:"decrease volume level",175:"increase volume level",176:"next",177:"previous",178:"stop",179:"play/pause",180:"e-mail",181:"mute/unmute (firefox)",182:"decrease volume level (firefox)",183:"increase volume level (firefox)",186:"semi-colon / ñ",187:"equal sign",188:"comma",189:"dash",190:"period",191:"forward slash / ç",192:"grave accent / ñ / æ",193:"?, / or °",194:"numpad period (chrome)",219:"open bracket",220:"back slash",221:"close bracket / å",222:"single quote / ø",223:"`",224:"left or right ⌘ key (firefox)",225:"altgr",226:"< /git >",230:"GNOME Compose Key",231:"ç",233:"XF86Forward",234:"XF86Back",240:"alphanumeric",242:"hiragana/katakana",243:"half-width/full-width",244:"kanji",255:"toggle touchpad"},es=(e=>{const t={};for(let A in e){const i=e[A];t[i]=A}return t})(As);class is extends he{constructor(){super(...arguments),this.keyState={},this.lastKeyPressed=null,this.directionState={up:!1,down:!1,left:!1,right:!1}}setupListeners(){document.addEventListener("keydown",t=>{this.onKeyChange(t,!0)}),document.addEventListener("keyup",t=>{this.onKeyChange(t,!1)})}cleanup(){document.removeEventListener("keydown",t=>{this.onKeyChange(t,!0)}),document.removeEventListener("keyup",t=>{this.onKeyChange(t,!1)})}preStep(){if(this.stop)return;const t=this.getDirection();if(t!=="none"){const A=this.boundKeys[t];if(A){const{keyDown:i}=A.options;i&&this.applyInput(t)}}else{const A=Object.keys(this.boundKeys);for(let i of A)this.applyInput(i)}}applyInput(t){const A=this.keyState[t];if(!A)return;const{isDown:i,count:n}=A;if(i){const s=this.boundKeys[t];if(!s)return;const{repeat:a,keyDown:o}=s.options;if(a||n==0){let h=s.parameters;typeof h=="function"&&(h=h()),o&&o(s),this.keyState[t].count++}}}applyKeyDown(t){const A=es[t],i=new Event("keydown");i.keyCode=A,this.onKeyChange(i,!0)}applyKeyUp(t){const A=es[t],i=new Event("keyup");i.keyCode=A,this.onKeyChange(i,!1)}applyKeyPress(t){return new Promise(A=>{this.applyKeyDown(t),setTimeout(()=>{this.applyKeyUp(t),A()},200)})}onKeyChange(t,A){t=t||window.event;const i=As[t.keyCode];if(i&&this.boundKeys[i]){if(this.keyState[i]==null&&(this.keyState[i]={count:0,isDown:!0}),this.keyState[i].isDown=A,!A){this.keyState[i].count=0;const{keyUp:n}=this.boundKeys[i].options;n&&n(this.boundKeys[i])}this.lastKeyPressed=A?t.keyCode:null}i&&this.updateDirectionState(i,A)}updateDirectionState(t,A){switch(t){case"up":this.directionState.up=A;break;case"down":this.directionState.down=A;break;case"left":this.directionState.left=A;break;case"right":this.directionState.right=A;break}}getDirection(){const{up:t,down:A,left:i,right:n}=this.directionState;return t&&i?"up_left":t&&n?"up_right":A&&i?"down_left":A&&n?"down_right":t?"up":A?"down":i?"left":n?"right":"none"}async applyControl(t,A){const i=this._controlsOptions[t];if(i){const n=Array.isArray(i.bind)?i.bind[0]:i.bind;A===void 0?await this.applyKeyPress(n):A?this.applyKeyDown(n):this.applyKeyUp(n)}}listenInputs(){super.listenInputs(),this.keyState={}}}var pt={events:{},publish:function(t,A){this.events.hasOwnProperty(t)&&this.events[t].forEach(function(i){return i(A)})},subscribe:function(t,A){return this.events.hasOwnProperty(t)||(this.events[t]=[]),this.events[t].push(A),{unsubscribe:(function(){var i=this.events[t].indexOf(A);i!==-1&&this.events[t].splice(i,1)}).bind(this)}}},q={CONNECT:{NATIVE:"gamepadconnected",ALIAS:"connect"},DISCONNECT:{NATIVE:"gamepaddisconnected",ALIAS:"disconnect"},BUTTON_PRESS:{NATIVE:null,ALIAS:"button_press"},BUTTON_RELEASE:{NATIVE:null,ALIAS:"button_release"},AXIS_MOVEMENT:{NATIVE:null,ALIAS:"axis_move"}},uA={LEFT:{NAME:"left_stick",AXES:{X:0,Y:1}},RIGHT:{NAME:"right_stick",AXES:{X:2,Y:3}}},le={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},ta={button_0:0,button_1:1,button_2:2,button_3:3,button_4:4,button_5:5,button_6:6,button_7:7,button_8:8,button_9:9,button_10:10,button_11:11,button_12:12,button_13:13,button_14:14,button_15:15,button_16:16,button_17:17},Aa=.8,ns=function(e){console.warn&&typeof console.warn=="function"?console.warn(e):console.log(e)},ea=function(e,t){var A=[];return Object.keys(t).forEach(function(i){(t[i]===e||Array.isArray(t[i])&&t[i].indexOf(e)!==-1)&&A.push(i)}),A},ia=function(e){return!!e&&!!e.type&&!!e.playEffect&&typeof e.playEffect=="function"||!1},na=function(){return!!window.navigator.getGamepads&&typeof window.navigator.getGamepads=="function"||!1},Bt={loopStarted:!1,instances:{},buttonEvents:{joypad:[]},settings:{axisMovementThreshold:Aa},remove:function(t){return delete this.instances[t]},on:function(t,A){switch(t){case q.CONNECT.ALIAS:return pt.subscribe(q.CONNECT.ALIAS,A);case q.DISCONNECT.ALIAS:return pt.subscribe(q.DISCONNECT.ALIAS,A);case q.BUTTON_PRESS.ALIAS:return pt.subscribe(q.BUTTON_PRESS.ALIAS,A);case q.BUTTON_RELEASE.ALIAS:return pt.subscribe(q.BUTTON_RELEASE.ALIAS,A);case q.AXIS_MOVEMENT.ALIAS:return pt.subscribe(q.AXIS_MOVEMENT.ALIAS,A)}},vibrate:function(t,A){var i=t.vibrationActuator,n=A||this.settings.vibration;if(ia(i)){var s=i.type;return t.vibrationActuator.playEffect(s,n)}ns("No vibration actuator interface found - https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator")},set:function(t){var A=t.axisMovementThreshold,i=t.vibration,n=t.customButtonMapping,s=parseFloat(A);isNaN(s)||(this.settings.axisMovementThreshold=s),this.settings.vibration=i,this.settings.customButtonMapping=n},trigger:function(t,A){return pt.publish(t,A)}},sa=function(e){e.buttons.forEach(function(t,A){var i=Bt.settings.customButtonMapping,n=i||ta,s=ea(A,n),a=Bt.buttonEvents;s.length&&s.forEach(function(o){t.pressed?(a.joypad[e.index][o]||(a.joypad[e.index][o]={pressed:!0,hold:!1,released:!1}),a.joypad[e.index][o].button=t,a.joypad[e.index][o].index=A,a.joypad[e.index][o].gamepad=e):!t.pressed&&a.joypad[e.index][o]&&(a.joypad[e.index][o].released=!0,a.joypad[e.index][o].hold=!1)})})},oa=function(e){var t=function(a){return new CustomEvent(q.AXIS_MOVEMENT.ALIAS,{detail:a})},A=Bt.settings.axisMovementThreshold,i=e.axes,n=i.length,s=n/2;i.forEach(function(a,o){if(Math.abs(a)>A){var h=null,l=null,B=a;h=o<s?uA.LEFT.NAME:uA.RIGHT.NAME,(o===uA.LEFT.AXES.X||o===uA.RIGHT.AXES.X)&&(l=a<0?le.LEFT:le.RIGHT),(o===uA.LEFT.AXES.Y||o===uA.RIGHT.AXES.Y)&&(l=a<0?le.TOP:le.BOTTOM);var r={gamepad:e,totalSticks:s,stickMoved:h,directionOfMovement:l,axisMovementValue:B,axis:o};return window.dispatchEvent(t(r))}})},ra=function(e,t){t[e].pressed?(ss(q.BUTTON_PRESS.ALIAS,t,e),t[e].pressed=!1,t[e].hold=!0,t[e].last_event=q.BUTTON_PRESS.ALIAS):t[e].hold||t[e].released&&t[e].last_event===q.BUTTON_PRESS.ALIAS&&(ss(q.BUTTON_RELEASE.ALIAS,t,e),delete t[e])},$e={id:null,start:function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame,A=Bt.buttonEvents,i=window.navigator.getGamepads();i=Array.prototype.slice.call(i),i.forEach(function(n,s){n&&(A.joypad[s]||(A.joypad[s]={}),Bt.instances[s]=n,sa(n),oa(n))}),A.joypad.forEach(function(n){n&&Object.keys(n).forEach(function(s){ra(s,n)})}),this.id=t(this.start.bind(this))},stop:function(t){var A=window.cancelAnimationFrame||window.webkitCancelAnimationFrame;return A(t)}},aa=function(){window.addEventListener(q.CONNECT.NATIVE,function(e){if(pt.publish(q.CONNECT.ALIAS,e),!Bt.loopStarted)return Bt.loopStarted=!0,$e.start()}),window.addEventListener(q.DISCONNECT.NATIVE,function(e){if(pt.publish(q.DISCONNECT.ALIAS,e),Bt.remove(e.gamepad.index),Bt.buttonEvents.joypad[e.gamepad.index]=null,!Object.keys(Bt.instances).length)return Bt.loopStarted=!1,$e.stop($e.id)}),window.addEventListener(q.BUTTON_PRESS.ALIAS,function(e){return pt.publish(q.BUTTON_PRESS.ALIAS,e)}),window.addEventListener(q.BUTTON_RELEASE.ALIAS,function(e){return pt.publish(q.BUTTON_RELEASE.ALIAS,e)}),window.addEventListener(q.AXIS_MOVEMENT.ALIAS,function(e){return pt.publish(q.AXIS_MOVEMENT.ALIAS,e)})},ss=function(e,t,A){var i=function(h){return new CustomEvent(e,{detail:h})},n=t[A],s=n.index,a=n.gamepad,o={buttonName:A,button:t[A].button,index:s,gamepad:a};window.dispatchEvent(i(o))};aa(),na()?window.joypad=Bt:(window.joypad={},ns("Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API"));const ti={button_0:"action",button_1:"back",button_9:"back"},Ai={top:"up",bottom:"down",left:"left",right:"right"};class os extends he{constructor(){super(...arguments),this.gamepadEnabled=!0,this.gamepadConfig={enabled:!0,buttonMapping:ti,axisMapping:Ai,axisThreshold:.5,moveInterval:400},this.gamepadMoving=!1,this.gamepadDirections={},this.gamepadAxisDate=0,this.gamepadMoveInterval=null,this.joypad=null,this.connectCallbacks=[],this.disconnectCallbacks=[],this.currentPower=0}setupListeners(){this.initGamepad()}cleanup(){this.gamepadMoveInterval&&(clearInterval(this.gamepadMoveInterval),this.gamepadMoveInterval=null)}initGamepad(){if(typeof window>"u")return;const t=window.joypad;if(!t){this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1);return}this.joypad=t,this.joypad.on("connect",()=>this.handleGamepadConnect()),this.joypad.on("disconnect",()=>this.handleGamepadDisconnect()),this.joypad.on("button_press",A=>this.handleGamepadButtonPress(A)),this.joypad.on("axis_move",A=>this.handleGamepadAxisMove(A))}handleGamepadConnect(){!this.gamepadEnabled||!this.gamepadConfig.enabled||(this.gamepadMoveInterval=setInterval(()=>{this.processGamepadMovement()},this.gamepadConfig.moveInterval||400),this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!0),this.connectCallbacks.forEach(t=>t()))}handleGamepadDisconnect(){this.gamepadMoveInterval&&(clearInterval(this.gamepadMoveInterval),this.gamepadMoveInterval=null),this.gamepadMoving=!1,this.gamepadDirections={},this.gamepadAxisDate=0,this.currentPower=0,this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1),this.disconnectCallbacks.forEach(t=>t())}handleGamepadButtonPress(t){if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;const{buttonName:A}=t.detail,n=(this.gamepadConfig.buttonMapping||ti)[A];n&&this.applyControl(n).catch(()=>{})}handleGamepadAxisMove(t){var s,a;if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;this.gamepadMoving=!0,this.gamepadAxisDate=Date.now();let A=t.detail.directionOfMovement;const i=this.gamepadConfig.axisMapping||Ai;if(A==="top"?A=i.top||"up":A==="bottom"?A=i.bottom||"down":A==="left"?A=i.left||"left":A==="right"&&(A=i.right||"right"),this.joypad&&this.joypad.instances){const o=Object.values(this.joypad.instances);if(o.length>0){const h=o[0],l=((s=h.axes)==null?void 0:s[0])||0,B=((a=h.axes)==null?void 0:a[1])||0;this.currentPower=Math.min(1,Math.sqrt(l*l+B*B))}}this.gamepadDirections={[A]:!0};const n=["up","down","left","right"];for(const o of n)this.gamepadDirections[o]||this.applyControl(o,!1).catch(()=>{});this.processGamepadMovement()}processGamepadMovement(){var t,A;if(this.gamepadMoving&&!this.stop){if(this.joypad&&this.joypad.instances){const i=Object.values(this.joypad.instances);if(i.length>0){const n=i[0],s=((t=n.axes)==null?void 0:t[0])||0,a=((A=n.axes)==null?void 0:A[1])||0;this.currentPower=Math.min(1,Math.sqrt(s*s+a*a))}}for(const i in this.gamepadDirections)this.gamepadDirections[i]&&this.applyControl(i,!0,{power:this.currentPower}).catch(()=>{})}}preStep(){if(this.stop)return;if(Date.now()-this.gamepadAxisDate>100&&this.gamepadMoving){const A=["up","down","left","right"];for(const i of A)this.gamepadDirections={},this.gamepadMoving=!1,this.applyControl(i,!1).catch(()=>{})}}updateGamepadConfig(t){this.gamepadConfig.onConnect&&this.offConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.offDisconnect(this.gamepadConfig.onDisconnect),this.gamepadConfig={enabled:t.enabled!==void 0?t.enabled:!0,buttonMapping:t.buttonMapping||ti,axisMapping:t.axisMapping||Ai,axisThreshold:t.axisThreshold||.5,moveInterval:t.moveInterval||400,onConnect:t.onConnect,onDisconnect:t.onDisconnect,gamepadConnected:t.gamepadConnected},this.gamepadConfig.onConnect&&this.onConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.onDisconnect(this.gamepadConfig.onDisconnect)}extractGamepadConfig(t){t.gamepad&&this.updateGamepadConfig(t.gamepad)}getGamepadConfig(){return this.gamepadConfig}async applyControl(t,A,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const a of s){const o=this.boundKeys[a];if(o.actionName===String(t)){if(A===void 0){if(o.options.keyDown){let h=i??o.parameters;typeof h=="function"&&(h=h()),o.options.keyDown(o,h)}return new Promise(h=>{setTimeout(()=>{if(o.options.keyUp){let l=i??o.parameters;typeof l=="function"&&(l=l()),o.options.keyUp(o,l)}h()},200)})}else if(A){if(o.options.keyDown){let h=i??o.parameters;typeof h=="function"&&(h=h()),o.options.keyDown(o,h)}}else if(o.options.keyUp){let h=i??o.parameters;typeof h=="function"&&(h=h()),o.options.keyUp(o,h)}break}}}setInputs(t){super.setInputs(t),this.extractGamepadConfig(t)}onConnect(t){this.connectCallbacks.push(t)}onDisconnect(t){this.disconnectCallbacks.push(t)}offConnect(t){const A=this.connectCallbacks.indexOf(t);A>-1&&this.connectCallbacks.splice(A,1)}offDisconnect(t){const A=this.disconnectCallbacks.indexOf(t);A>-1&&this.disconnectCallbacks.splice(A,1)}isConnected(){return this.gamepadMoveInterval!==null}reinit(){this.joypad||this.initGamepad()}}const ei={top:"up",bottom:"down",left:"left",right:"right",top_left:["up","left"],top_right:["up","right"],bottom_left:["down","left"],bottom_right:["down","right"]};class rs extends he{constructor(){super(...arguments),this.joystickEnabled=!0,this.joystickConfig={enabled:!0,directionMapping:ei,moveInterval:50,threshold:.1},this.joystickMoving=!1,this.joystickDirections={},this.joystickLastUpdate=0,this.joystickMoveInterval=null,this.currentPower=0}setupListeners(){}cleanup(){this.joystickMoveInterval&&(clearInterval(this.joystickMoveInterval),this.joystickMoveInterval=null)}preStep(){this.stop}handleJoystickChange(t){if(!this.joystickEnabled||!this.joystickConfig.enabled||this.stop)return;if(this.joystickLastUpdate=Date.now(),this.currentPower=t.power,t.power<(this.joystickConfig.threshold||.1)){this.stopAllMovements();return}const A=this.joystickConfig.directionMapping||ei,i=t.direction,n=A[i];if(!n){this.stopAllMovements();return}const s=Array.isArray(n)?n:[n],a=this.joystickDirections,o={};s.forEach(B=>{o[B]=!0});const h=new Set([...Object.keys(this.joystickDirections),...Object.keys(o)]);for(const B of h){const r=this.joystickDirections[B],g=o[B]||!1;r&&!g&&this.applyControl(B,!1).catch(()=>{})}this.joystickDirections={...o},this.joystickMoving=!0;const l=s.filter(B=>!a[B]);for(const B of l)this.applyControl(B,!0,{power:t.power}).catch(()=>{});this.joystickMoveInterval||(this.joystickMoveInterval=setInterval(()=>{this.processJoystickMovement()},this.joystickConfig.moveInterval||50))}handleJoystickStart(){!this.joystickEnabled||!this.joystickConfig.enabled||this.stop}handleJoystickEnd(){!this.joystickEnabled||!this.joystickConfig.enabled||this.stopAllMovements()}stopAllMovements(){this.joystickMoveInterval&&(clearInterval(this.joystickMoveInterval),this.joystickMoveInterval=null);const t=Object.keys(this.joystickDirections);for(const A of t)this.applyControl(A,!1).catch(()=>{});this.joystickDirections={},this.joystickMoving=!1,this.currentPower=0}processJoystickMovement(){if(this.joystickMoving&&!this.stop)for(const t in this.joystickDirections)this.joystickDirections[t]&&this.applyControl(t,!0,{power:this.currentPower}).catch(()=>{})}updateJoystickConfig(t){this.joystickConfig={enabled:t.enabled!==void 0?t.enabled:!0,directionMapping:t.directionMapping||ei,moveInterval:t.moveInterval||50,threshold:t.threshold||.1}}extractJoystickConfig(t){t.joystick&&this.updateJoystickConfig(t.joystick)}getJoystickConfig(){return this.joystickConfig}async applyControl(t,A,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const a of s){const o=this.boundKeys[a];if(o.actionName===String(t)){if(A===void 0){if(o.options.keyDown){let h=i??o.parameters;typeof h=="function"&&(h=h()),o.options.keyDown(o,h)}return new Promise(h=>{setTimeout(()=>{if(o.options.keyUp){let l=i??o.parameters;typeof l=="function"&&(l=l()),o.options.keyUp(o,l)}h()},200)})}else if(A){if(o.options.keyDown){let h=i??o.parameters;typeof h=="function"&&(h=h()),o.options.keyDown(o,h)}}else if(o.options.keyUp){let h=i??o.parameters;typeof h=="function"&&(h=h()),o.options.keyUp(o,h)}break}}}setInputs(t){super.setInputs(t),this.extractJoystickConfig(t)}isActive(){return this.joystickMoving}}const ii={};class kt{}function Mt(e,t){ii[e]=t}function ga(e,t){var i;if(!ii[t])return null;const A=new ii[t];return(i=A.onInit)==null||i.call(A,e),A}class as extends kt{constructor(){super(...arguments),this.keyboardControls=null,this.gamepadControls=null,this.joystickControls=null}onInit(t){var s;const A=((s=t.props.controls)==null?void 0:s.value)??t.props.controls;if(!A)return;this.keyboardControls=new is,this.keyboardControls.setInputs(A),this.keyboardControls.start();const i=A.gamepad;i!==void 0&&i.enabled!==!1&&(this.gamepadControls=new os,this.gamepadControls.setInputs(A),this.gamepadControls.start());const n=A.joystick;n!==void 0&&n.enabled!==!1&&(this.joystickControls=new rs,this.joystickControls.setInputs(A),this.joystickControls.start())}onMount(t){}onUpdate(t){var i;const A=((i=t.controls)==null?void 0:i.value)??t.controls;A&&(this.keyboardControls&&this.keyboardControls.setInputs(A),this.gamepadControls&&this.gamepadControls.setInputs(A))}onDestroy(t){this.keyboardControls&&(this.keyboardControls.destroy(),this.keyboardControls=null),this.gamepadControls&&(this.gamepadControls.destroy(),this.gamepadControls=null),this.joystickControls&&(this.joystickControls.destroy(),this.joystickControls=null)}getControl(t){var A;return(A=this.keyboardControls)==null?void 0:A.getControl(t)}getControls(){var t;return((t=this.keyboardControls)==null?void 0:t.getControls())||{}}async applyControl(t,A,i){this.keyboardControls&&await this.keyboardControls.applyControl(t,A),this.gamepadControls&&await this.gamepadControls.applyControl(t,A,i),this.joystickControls&&await this.joystickControls.applyControl(t,A,i)}stopInputs(){this.keyboardControls&&this.keyboardControls.stopInputs(),this.gamepadControls&&this.gamepadControls.stopInputs(),this.joystickControls&&this.joystickControls.stopInputs()}listenInputs(){this.keyboardControls&&this.keyboardControls.listenInputs(),this.gamepadControls&&this.gamepadControls.listenInputs(),this.joystickControls&&this.joystickControls.listenInputs()}get options(){var t;return((t=this.keyboardControls)==null?void 0:t.options)||{}}get keyboard(){return this.keyboardControls}get gamepad(){return this.gamepadControls}get joystick(){return this.joystickControls}}Mt("controls",as);class gs extends kt{constructor(){super(...arguments),this.fps=60,this.deltaTime=0,this.frame=0,this.timestamp=0,this.requestedDelay=0,this.lastTimestamp=0,this._stop=!1}onInit(t){var A;this.tick=(A=t.propObservables)==null?void 0:A.tick}onDestroy(){}onMount(t){}onUpdate(t){}nextTick(t){this.lastTimestamp=this.lastTimestamp||this.timestamp,this.deltaTime=cA()-this.timestamp,this.timestamp=t,this.tick.set({timestamp:this.timestamp,deltaTime:this.deltaTime,frame:this.frame,deltaRatio:~~this.deltaTime/~~_A(this.fps)}),this.lastTimestamp=this.timestamp,this.frame++}start(t={}){t.maxFps&&(this.maxFps=t.maxFps),t.fps&&(this.fps=t.fps),t.delay&&(this.requestedDelay=t.delay);const A=i=>{Vn()?window.requestAnimationFrame(i.bind(this)):setTimeout(()=>{this.requestedDelay=0,i(cA())},_A(this.fps)+this.requestedDelay)};if(this.maxFps){const i=_A(this.maxFps);let n=cA(),s=cA();const a=o=>{if(this._stop)return;A(a),n=cA();const h=n-s;h>i&&(s=n-h%i,this.nextTick(o))};A(a)}else{const i=n=>{A(i),this.nextTick(n)};A(i)}return this}stop(){this._stop=!0}}Mt("tick",gs);var ha=Object.defineProperty,At=(e,t)=>ha(e,"name",{value:t,configurable:!0}),FA=(mA=class extends re{constructor(A=[]){super({type:"init",items:A});dn(this,"_items",[]);this.createProxy(A)}createProxy(A){this._items=new Proxy(A,{get:At((i,n,s)=>{const a=i[n];return typeof a=="function"?(...o)=>{let h="update",l,B=!1,r=[],g=!0;switch(n){case"push":l=i.length,h="add",B=!0;break;case"pop":l=i.length-1,h="remove",B=!0;break;case"unshift":l=0,h="add",B=!0;break;case"shift":l=0,h="remove",B=!0;break;case"splice":l=o[0];const E=o[1],C=o.slice(2);r=C,E>0&&C.length===0?h="remove":E===0&&C.length>0?h="add":E===0&&C.length===0?g=!1:h="update",B=!0;break}const c=a.apply(i,o);return B&&g&&(n==="splice"?this.next({type:h,index:l,items:r}):this.next({type:h,index:l,items:o})),c}:Reflect.get(i,n,s)},"get"),set:At((i,n,s)=>{const a=isNaN(Number(n))?void 0:Number(n);return i[n]=s,this.next({type:"update",index:a,items:[s]}),!0},"set")})}get items(){return this._items}set items(A){this.createProxy(A),this.next({type:"reset",items:A})}},At(mA,"ArraySubject"),mA),la=At(e=>"_items"in e,"isArraySubject"),GA=(DA=class extends re{constructor(A={}){super({type:"init",value:A});dn(this,"_obj");this.createProxy(A)}createProxy(A){this._obj=new Proxy(A,{get:At((i,n,s)=>Reflect.get(i,n,s),"get"),set:At((i,n,s,a)=>{const o=n,h=o in i?"update":"add";return i[o]=s,this.next({type:h,key:o,value:s}),!0},"set"),deleteProperty:At((i,n)=>{const s=n;if(s in i){const a=i[s];return delete i[s],this.next({type:"remove",key:s,value:a}),!0}return!1},"deleteProperty")})}get obj(){return this._obj}set obj(A){this.createProxy(A),this.next({type:"reset",value:A})}},At(DA,"ObjectSubject"),DA),ca=At(e=>"_obj"in e,"isObjectSubject"),Ia=At(()=>{const e="__REACTIVE_STORE__";if(typeof globalThis<"u")return globalThis[e]||(globalThis[e]={currentDependencyTracker:null,currentSubscriptionsTracker:null}),globalThis[e];let t;if(typeof window<"u")t=window;else if(typeof process<"u"&&process.versions&&process.versions.node)t=Function("return this")();else if(typeof self<"u")t=self;else return console.warn("Unable to find global object, using local instance"),{currentDependencyTracker:null,currentSubscriptionsTracker:null};return t[e]||(t[e]={currentDependencyTracker:null,currentSubscriptionsTracker:null}),t[e]},"getGlobalReactiveStore"),Yt=Ia(),hs=At(e=>{Yt.currentDependencyTracker&&Yt.currentDependencyTracker(e)},"trackDependency");function W(e){let t;Array.isArray(e)?t=new FA(e):typeof e=="object"&&e!==null?t=new GA(e):t=new re(e);const A=At(()=>t instanceof FA?t.items:t instanceof GA?t.obj:t.value,"getValue"),i=At(function(){return hs(i),A()},"fn");return i.set=n=>{t instanceof FA?t.items=n:t instanceof GA?t.obj=n:t.next(n)},i._isFrozen=!1,i.freeze=()=>{i._isFrozen=!0},i.unfreeze=()=>{i._isFrozen=!1,t instanceof FA?t.next({type:"init",items:t.items}):t instanceof GA?t.next({type:"init",value:t.obj}):t.next(t.value)},i.mutate=n=>{const s=A();n(s)},i.update=n=>{const s=n(A());i.set(s)},i.observable=t.asObservable().pipe(qn(()=>!i._isFrozen)),i._subject=t,i}At(W,"signal");function Y(e){return!!(e&&e.observable)}At(Y,"isSignal");function ce(e){return Y(e)&&!!e.dependencies}At(ce,"isComputed");function Et(e,t){var h;const A=new Set;let i=!0,n;const s=Yt.currentDependencyTracker;Yt.currentDependencyTracker=l=>{A.add(l)},n=e(),e.isEffect&&(t=n),Yt.currentDependencyTracker=s;const a=Wn([...A].map(l=>l.observable)).pipe(qn(()=>!i),Yn(()=>e()),qr(()=>t==null?void 0:t())),o=At(function(){return hs(o),n},"fn");return o.observable=a,o.subscription=a.subscribe(l=>{n=l}),o.dependencies=A,(h=Yt.currentSubscriptionsTracker)==null||h.call(Yt,o.subscription),i=!1,o}At(Et,"computed");function et(e){return e.isEffect=!0,Et(e)}At(et,"effect");const ni={},yt=e=>e&&typeof e=="object"&&"tag"in e&&"props"in e&&"componentInstance"in e,si=e=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0;function lt(e,t){ni[e]=t}function gt(e){var t,A,i,n,s,a;if(Array.isArray(e)){e.forEach(o=>gt(o));return}if(e){if((t=e.props)!=null&&t.children)for(let o of e.props.children)gt(o);for(let o in e.directives)(i=(A=e.directives[o]).onDestroy)==null||i.call(A,e);e.componentInstance&&e.componentInstance.onDestroy?e.componentInstance.onDestroy(e.parent,()=>{var o,h,l;(o=e.propSubscriptions)==null||o.forEach(B=>B.unsubscribe()),(h=e.effectSubscriptions)==null||h.forEach(B=>B.unsubscribe()),(l=e.effectUnmounts)==null||l.forEach(B=>{zt(B)?B.then(r=>{r==null||r()}):B==null||B()})}):((n=e.propSubscriptions)==null||n.forEach(o=>o.unsubscribe()),(s=e.effectSubscriptions)==null||s.forEach(o=>o.unsubscribe()),(a=e.effectUnmounts)==null||a.forEach(o=>o==null?void 0:o()))}}function ct(e,t){var r,g,c;if(!ni[e])throw new Error(`Component ${e} is not registered`);const A=new ni[e],i={tag:e,props:{},componentInstance:A,propSubscriptions:[],propObservables:t,parent:null,directives:{},effectUnmounts:[],effectSubscriptions:[],effectMounts:[],destroy(){gt(this)},allElements:new hA};if(t){const E=(C,Q="")=>{const f=(y,D,b)=>{if(y==""){i.props[D]=b;return}Ze(i.props,y+"."+D,b)};Object.entries(C).forEach(([y,D])=>{if(Y(D)){const b=D;if("dependencies"in b&&b.dependencies.size==0){f(Q,y,b());return}i.propSubscriptions.push(b.observable.subscribe(S=>{var F,U,J;f(Q,y,S),i.directives[y]&&((U=(F=i.directives[y]).onUpdate)==null||U.call(F,S,i)),y!="tick"&&((J=A.onUpdate)==null||J.call(A,Q==""?{[y]:S}:Ze({},Q+"."+y,S)))}))}else Xe(D)&&y!="context"&&!yt(D)?E(D,(Q?Q+".":"")+y):f(Q,y,D)})};E(t)}(r=A.onInit)==null||r.call(A,i.props);const n=new hA;if(t!=null&&t.isRoot&&(i.allElements=n,i.props.context.rootElement=i,(c=(g=i.componentInstance).onMount)==null||c.call(g,i),l(i)),t)for(let E in t){const C=ga(i,E);C&&(i.directives[E]=C)}async function s(E){return(await Promise.all(E.map(async Q=>Y(Q)?Q():zt(Q)?await Q:Q))).every(Q=>Q!==void 0)}function a(E,C,Q,f){const y=Q.filter(S=>Y(S));if(Q.filter(S=>zt(S)),y.length===0)return;const D=y.map(S=>S.observable),b=Wn(D).subscribe(async()=>{if(await s(Q)){b.unsubscribe();const F=C.propSubscriptions.indexOf(b);F>-1&&C.propSubscriptions.splice(F,1),o(E,C,f),l(C)}});C.propSubscriptions.push(b)}function o(E,C,Q){var f,y,D,b;(y=(f=C.componentInstance).onMount)==null||y.call(f,C,Q);for(let S in C.directives)(b=(D=C.directives[S]).onMount)==null||b.call(D,C);C.effectMounts.forEach(S=>{C.effectUnmounts.push(S(C))})}async function h(E,C,Q){let f=E;for(;(f==null?void 0:f.tag)==="fragment";)f=f.parent;if(C.props.context=f.props.context,C.parent=f,C.props.dependencies&&Array.isArray(C.props.dependencies)){const y=C.props.dependencies;if(!await s(y)){a(f,C,y,Q);return}}o(f,C,Q)}async function l(E){var C;if(E.props.attach&&(Y((C=E.propObservables)==null?void 0:C.attach)?await new Promise(f=>{let y=null;E.propSubscriptions.push(E.propObservables.attach.observable.subscribe(async D=>{const b=(D==null?void 0:D.value)??D;if(!b)throw new Error(`attach in ${E.tag} is undefined or null, add a component`);y&>(y),y=b,await B(E,b),f(void 0)}))}):E.props.children.push(E.props.attach)),!!E.props.children)for(let Q of E.props.children)Q&&await B(E,Q)}async function B(E,C){if(zt(C)&&(C=await C),C instanceof V){const Q=C.subscribe(f=>{if(f&&typeof f=="object"&&"elements"in f){const{elements:y,prev:D}=f,b=y.filter(S=>S!==null);if(D){b.forEach(async S=>{const F=E.props.children.indexOf(D.props.key);S instanceof V?await B(E,S):yt(S)&&(h(E,S,F+1),l(S))});return}b.forEach(async S=>{Array.isArray(S)?S.forEach(async F=>{F instanceof V?await B(E,F):yt(F)&&(h(E,F),l(F))}):S instanceof V?await B(E,S):yt(S)&&(h(E,S),l(S))})}else yt(f)?(h(E,f),l(f)):Array.isArray(f)&&f.forEach(async y=>{y instanceof V?await B(E,y):yt(y)&&(h(E,y),l(y))});n.next(void 0)});E.effectSubscriptions.push(Q)}else yt(C)&&(h(E,C),await l(C))}return i}function ua(e,t){return ce(e)&&e.dependencies.size==0?e=W(e()):Y(e)||(e=W(e)),jr(()=>{let A=[],i=new Map,n=!0;const s=o=>o?yt(o)?o:{tag:"fragment",props:{children:Array.isArray(o)?o:[o]},componentInstance:{},propSubscriptions:[],effectSubscriptions:[],effectMounts:[],effectUnmounts:[],propObservables:{},parent:null,directives:{},destroy(){gt(this)},allElements:new hA}:null,a=o=>Array.isArray(o());return new V(o=>{const h=a(e)?e.observable.subscribe(l=>{if(n){n=!1,A.forEach(g=>g.destroy()),A=[],i.clear();const r=e();r&&r.forEach((g,c)=>{const E=s(t(g,c));E&&(A.push(E),i.set(c,E))}),o.next({elements:[...A]});return}const B=Array.isArray(l)||l&&typeof l=="object"&&!("type"in l);if(l.type==="init"||l.type==="reset"||B){A.forEach(g=>gt(g)),A=[],i.clear();const r=e();r&&r.forEach((g,c)=>{const E=s(t(g,c));E&&(A.push(E),i.set(c,E))})}else if(l.type==="add"&&l.index!==void 0){const r=l.items.map((g,c)=>{const E=s(t(g,l.index+c));return E&&i.set(l.index+c,E),E}).filter(g=>g!==null);A.splice(l.index,0,...r)}else if(l.type==="remove"&&l.index!==void 0)A.splice(l.index,1).forEach(g=>{gt(g),i.delete(l.index)});else if(l.type==="update"&&l.index!==void 0&&l.items.length===1){const r=l.index,g=l.items[0];if(r>=A.length||A[r]===void 0||!i.has(r)){const c=s(t(g,r));c?(A.splice(r,0,c),i.set(r,c)):console.warn(`Element creation returned null for index ${r} during add-like update.`)}else{const c=A[r];gt(c);const E=s(t(g,r));E?(A[r]=E,i.set(r,E)):(A.splice(r,1),i.delete(r))}}o.next({elements:[...A]})}):e.observable.subscribe(l=>{const B=l.key;if(n){n=!1,A.forEach(g=>gt(g)),A=[],i.clear();const r=e();r&&Object.entries(r).forEach(([g,c])=>{const E=s(t(c,g));E&&(A.push(E),i.set(g,E))}),o.next({elements:[...A]});return}if(l.type==="init"||l.type==="reset"){A.forEach(g=>gt(g)),A=[],i.clear();const r=e();r&&Object.entries(r).forEach(([g,c])=>{const E=s(t(c,g));E&&(A.push(E),i.set(g,E))})}else if(l.type==="add"&&l.key&&l.value!==void 0){const r=s(t(l.value,B));r&&(A.push(r),i.set(B,r))}else if(l.type==="remove"&&l.key){const r=A.findIndex(g=>i.get(B)===g);if(r!==-1){const[g]=A.splice(r,1);gt(g),i.delete(B)}}else if(l.type==="update"&&l.key&&l.value!==void 0){const r=A.findIndex(g=>i.get(B)===g);if(r!==-1){const g=A[r];gt(g);const c=s(t(l.value,B));c&&(A[r]=c,i.set(B,c))}}o.next({elements:[...A]})});return()=>{h.unsubscribe(),A.forEach(l=>gt(l))}})})}function Ba(e,t,...A){let i=null,n=-1;const s=[];let a=null;const o=l=>Y(l)?l:typeof l=="function"?Et(l):W(l);for(const l of A)if(Array.isArray(l))s.push({condition:o(l[0]),elementFn:l[1]});else if(typeof l=="function"){a=l;break}const h=[{condition:o(e),elementFn:t},...s];return new V(l=>{const B=[],r=()=>{let g=-1;for(let C=0;C<h.length;C++){const Q=h[C].condition;if(Q()){g=C;break}}const c=g===-1&&a,E=c?-2:g;if(E!==n)if(i&&(gt(i),i=null),n=E,c){let C=a();zt(C)?ae(C).subscribe(Q=>{i=Q,l.next({type:"init",elements:[Q]})}):(i=C,l.next({type:"init",elements:[i]}))}else if(g>=0){let C=h[g].elementFn();zt(C)?ae(C).subscribe(Q=>{i=Q,l.next({type:"init",elements:[Q]})}):(i=C,l.next({type:"init",elements:[i]}))}else l.next({elements:[]})};return h.forEach(({condition:g})=>{const c=g;B.push(c.observable.subscribe(()=>{r()}))}),r(),()=>{B.forEach(g=>g.unsubscribe()),i&>(i)}}).pipe(Vr())}const It=(e,t={})=>{if(Y(e))return e();const A={};for(let i in e){const n=e[i];A[i]=si(n)?W(n):n}for(let i in t)i in A||(A[i]=si(t[i])?W(t[i]):t[i]);return A},oi=e=>t=>{const A=Y(e)?e():e,i={};for(const n in t){const s=t[n],a=A[n];let o;if(typeof s=="function")ri(n,a,[s]),o=a;else if(Array.isArray(s))ri(n,a,s),o=a;else if(s&&typeof s=="object"){if(s.required&&a===void 0)throw new Error(`Missing required prop: ${n}`);if(s.type){const h=Array.isArray(s.type)?s.type:[s.type];ri(n,a,h)}if(s.validator&&!s.validator(a,A))throw new Error(`Invalid prop: custom validation failed for prop "${n}"`);a===void 0&&"default"in s?o=typeof s.default=="function"?s.default(A):s.default:o=a}i[n]=Y(o)?o:W(o)}return{...It(A),...i}};function ri(e,t,A){if(t==null)return;const i=Y(t)?t():t;if(!A.some(s=>s===Number?typeof i=="number":s===String?typeof i=="string":s===Boolean?typeof i=="boolean":s===Function?typeof i=="function":s===Object?typeof i=="object":s===Array?Array.isArray(i):s===null?i===null:i instanceof s))throw new Error(`Invalid prop: type check failed for prop "${e}". Expected ${A.map(s=>s.name).join(" or ")}`)}class ls extends kt{onInit(t){}onMount(t){this.onUpdate(t.props.viewportFollow,t)}onUpdate(t,A){const{viewport:i}=A.props.context;if(!i)throw ze("ViewportFollow directive requires a Viewport component to be mounted in the same context");if(t)if(t===!0)i.follow(A.componentInstance);else{const n=It(t,{speed:void 0,acceleration:void 0,radius:void 0});i.follow(A.componentInstance,{speed:n.speed(),acceleration:n.acceleration(),radius:n.radius()})}else t===null&&i.plugins.remove("follow")}onDestroy(t){const{viewportFollow:A}=t.props,{viewport:i}=t.props.context;A&&i.plugins.remove("follow")}}Mt("viewportFollow",ls);var NA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ea(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={};/*!
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=A}});function qe(e,t){if(e){var A=e.indexOf(t);0<=A&&e.splice(A,1)}}var ge=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,A,i,n,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var g=hA(a),r=g.next();!r.done;r=g.next()){var l=r.value;l.remove(this)}}catch(f){t={error:f}}finally{try{r&&!r.done&&(A=g.return)&&A.call(g)}finally{if(t)throw t.error}}else a.remove(this);var I=this.initialTeardown;if(z(I))try{I()}catch(f){s=f instanceof Ve?f.errors:[f]}var o=this._finalizers;if(o){this._finalizers=null;try{for(var h=hA(o),c=h.next();!c.done;c=h.next()){var E=c.value;try{_n(E)}catch(f){s=s??[],f instanceof Ve?s=GA(GA([],FA(s)),FA(f.errors)):s.push(f)}}}catch(f){i={error:f}}finally{try{c&&!c.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}if(s)throw new Ve(s)}},e.prototype.add=function(t){var A;if(t&&t!==this)if(this.closed)_n(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(A=this._finalizers)!==null&&A!==void 0?A:[]).push(t)}},e.prototype._hasParent=function(t){var A=this._parentage;return A===t||Array.isArray(A)&&A.includes(t)},e.prototype._addParent=function(t){var A=this._parentage;this._parentage=Array.isArray(A)?(A.push(t),A):A?[A,t]:t},e.prototype._removeParent=function(t){var A=this._parentage;A===t?this._parentage=null:Array.isArray(A)&&qe(A,t)},e.prototype.remove=function(t){var A=this._finalizers;A&&qe(A,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Mn=ge.EMPTY;function Rn(e){return e instanceof ge||e&&"closed"in e&&z(e.remove)&&z(e.add)&&z(e.unsubscribe)}function _n(e){z(e)?e():e.unsubscribe()}var ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Fn={setTimeout:function(e,t){for(var A=[],i=2;i<arguments.length;i++)A[i-2]=arguments[i];return setTimeout.apply(void 0,GA([e,t],FA(A)))},clearTimeout:function(e){var t=Fn.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Gn(e){Fn.setTimeout(function(){throw e})}function Nn(){}function he(e){e()}var Xe=function(e){gA(t,e);function t(A){var i=e.call(this)||this;return i.isStopped=!1,A?(i.destination=A,Rn(A)&&A.add(i)):i.destination=fr,i}return t.create=function(A,i,n){return new NA(A,i,n)},t.prototype.next=function(A){this.isStopped||this._next(A)},t.prototype.error=function(A){this.isStopped||(this.isStopped=!0,this._error(A))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(A){this.destination.next(A)},t.prototype._error=function(A){try{this.destination.error(A)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ge),Br=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var A=this.partialObserver;if(A.next)try{A.next(t)}catch(i){le(i)}},e.prototype.error=function(t){var A=this.partialObserver;if(A.error)try{A.error(t)}catch(i){le(i)}else le(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(A){le(A)}},e}(),NA=function(e){gA(t,e);function t(A,i,n){var s=e.call(this)||this,a;return z(A)||!A?a={next:A??void 0,error:i??void 0,complete:n??void 0}:a=A,s.destination=new Br(a),s}return t}(Xe);function le(e){Gn(e)}function Er(e){throw e}var fr={closed:!0,next:Nn,error:Er,complete:Nn},Ze=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ze(e){return e}function Cr(e){return e.length===0?ze:e.length===1?e[0]:function(A){return e.reduce(function(i,n){return n(i)},A)}}var q=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var A=new e;return A.source=this,A.operator=t,A},e.prototype.subscribe=function(t,A,i){var n=this,s=dr(t)?t:new NA(t,A,i);return he(function(){var a=n,g=a.operator,r=a.source;s.add(g?g.call(s,r):r?n._subscribe(s):n._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(A){t.error(A)}},e.prototype.forEach=function(t,A){var i=this;return A=Hn(A),new A(function(n,s){var a=new NA({next:function(g){try{t(g)}catch(r){s(r),a.unsubscribe()}},error:s,complete:n});i.subscribe(a)})},e.prototype._subscribe=function(t){var A;return(A=this.source)===null||A===void 0?void 0:A.subscribe(t)},e.prototype[Ze]=function(){return this},e.prototype.pipe=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];return Cr(t)(this)},e.prototype.toPromise=function(t){var A=this;return t=Hn(t),new t(function(i,n){var s;A.subscribe(function(a){return s=a},function(a){return n(a)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function Hn(e){var t;return(t=e??ur.Promise)!==null&&t!==void 0?t:Promise}function Qr(e){return e&&z(e.next)&&z(e.error)&&z(e.complete)}function dr(e){return e&&e instanceof Xe||Qr(e)&&Rn(e)}function pr(e){return z(e==null?void 0:e.lift)}function cA(e){return function(t){if(pr(t))return t.lift(function(A){try{return e(A,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ce(e,t,A,i,n){return new yr(e,t,A,i,n)}var yr=function(e){gA(t,e);function t(A,i,n,s,a,g){var r=e.call(this,A)||this;return r.onFinalize=a,r.shouldUnsubscribe=g,r._next=i?function(l){try{i(l)}catch(I){A.error(I)}}:e.prototype._next,r._error=s?function(l){try{s(l)}catch(I){A.error(I)}finally{this.unsubscribe()}}:e.prototype._error,r._complete=n?function(){try{n()}catch(l){A.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,r}return t.prototype.unsubscribe=function(){var A;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((A=this.onFinalize)===null||A===void 0||A.call(this))}},t}(Xe),wr=kn(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),IA=function(e){gA(t,e);function t(){var A=e.call(this)||this;return A.closed=!1,A.currentObservers=null,A.observers=[],A.isStopped=!1,A.hasError=!1,A.thrownError=null,A}return t.prototype.lift=function(A){var i=new Ln(this,this);return i.operator=A,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new wr},t.prototype.next=function(A){var i=this;he(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=hA(i.currentObservers),g=a.next();!g.done;g=a.next()){var r=g.value;r.next(A)}}catch(l){n={error:l}}finally{try{g&&!g.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(A){var i=this;he(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=A;for(var n=i.observers;n.length;)n.shift().error(A)}})},t.prototype.complete=function(){var A=this;he(function(){if(A._throwIfClosed(),!A.isStopped){A.isStopped=!0;for(var i=A.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var A;return((A=this.observers)===null||A===void 0?void 0:A.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(A){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,A)},t.prototype._subscribe=function(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)},t.prototype._innerSubscribe=function(A){var i=this,n=this,s=n.hasError,a=n.isStopped,g=n.observers;return s||a?Mn:(this.currentObservers=null,g.push(A),new ge(function(){i.currentObservers=null,qe(g,A)}))},t.prototype._checkFinalizedStatuses=function(A){var i=this,n=i.hasError,s=i.thrownError,a=i.isStopped;n?A.error(s):a&&A.complete()},t.prototype.asObservable=function(){var A=new q;return A.source=this,A},t.create=function(A,i){return new Ln(A,i)},t}(q),Ln=function(e){gA(t,e);function t(A,i){var n=e.call(this)||this;return n.destination=A,n.source=i,n}return t.prototype.next=function(A){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,A)},t.prototype.error=function(A){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,A)},t.prototype.complete=function(){var A,i;(i=(A=this.destination)===null||A===void 0?void 0:A.complete)===null||i===void 0||i.call(A)},t.prototype._subscribe=function(A){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(A))!==null&&n!==void 0?n:Mn},t}(IA),tA=function(e){gA(t,e);function t(A){var i=e.call(this)||this;return i._value=A,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(A){var i=e.prototype._subscribe.call(this,A);return!i.closed&&A.next(this._value),i},t.prototype.getValue=function(){var A=this,i=A.hasError,n=A.thrownError,s=A._value;if(i)throw n;return this._throwIfClosed(),s},t.prototype.next=function(A){e.prototype.next.call(this,this._value=A)},t}(IA);function mr(e){return e&&z(e.schedule)}function Un(e){return e[e.length-1]}function Dr(e){return z(Un(e))?e.pop():void 0}function vr(e){return mr(Un(e))?e.pop():void 0}var On=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Tn(e){return z(e==null?void 0:e.then)}function Jn(e){return z(e[Ze])}function Pn(e){return Symbol.asyncIterator&&z(e==null?void 0:e[Symbol.asyncIterator])}function Kn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Sr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yn=Sr();function Wn(e){return z(e==null?void 0:e[Yn])}function jn(e){return cr(this,arguments,function(){var A,i,n,s;return xn(this,function(a){switch(a.label){case 0:A=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,lA(A.read())];case 3:return i=a.sent(),n=i.value,s=i.done,s?[4,lA(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,lA(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return A.releaseLock(),[7];case 10:return[2]}})})}function Vn(e){return z(e==null?void 0:e.getReader)}function uA(e){if(e instanceof q)return e;if(e!=null){if(Jn(e))return br(e);if(On(e))return xr(e);if(Tn(e))return kr(e);if(Pn(e))return qn(e);if(Wn(e))return Mr(e);if(Vn(e))return Rr(e)}throw Kn(e)}function br(e){return new q(function(t){var A=e[Ze]();if(z(A.subscribe))return A.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xr(e){return new q(function(t){for(var A=0;A<e.length&&!t.closed;A++)t.next(e[A]);t.complete()})}function kr(e){return new q(function(t){e.then(function(A){t.closed||(t.next(A),t.complete())},function(A){return t.error(A)}).then(null,Gn)})}function Mr(e){return new q(function(t){var A,i;try{for(var n=hA(e),s=n.next();!s.done;s=n.next()){var a=s.value;if(t.next(a),t.closed)return}}catch(g){A={error:g}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(A)throw A.error}}t.complete()})}function qn(e){return new q(function(t){_r(e,t).catch(function(A){return t.error(A)})})}function Rr(e){return qn(jn(e))}function _r(e,t){var A,i,n,s;return lr(this,void 0,void 0,function(){var a,g;return xn(this,function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),A=Ir(e),r.label=1;case 1:return[4,A.next()];case 2:if(i=r.sent(),!!i.done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return g=r.sent(),n={error:g},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(s=A.return)?[4,s.call(A)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function jt(e,t,A,i,n){i===void 0&&(i=0),n===void 0&&(n=!1);var s=t.schedule(function(){A(),n?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!n)return s}function Xn(e,t){return t===void 0&&(t=0),cA(function(A,i){A.subscribe(ce(i,function(n){return jt(i,e,function(){return i.next(n)},t)},function(){return jt(i,e,function(){return i.complete()},t)},function(n){return jt(i,e,function(){return i.error(n)},t)}))})}function Zn(e,t){return t===void 0&&(t=0),cA(function(A,i){i.add(e.schedule(function(){return A.subscribe(i)},t))})}function Fr(e,t){return uA(e).pipe(Zn(t),Xn(t))}function Gr(e,t){return uA(e).pipe(Zn(t),Xn(t))}function Nr(e,t){return new q(function(A){var i=0;return t.schedule(function(){i===e.length?A.complete():(A.next(e[i++]),A.closed||this.schedule())})})}function Hr(e,t){return new q(function(A){var i;return jt(A,t,function(){i=e[Yn](),jt(A,t,function(){var n,s,a;try{n=i.next(),s=n.value,a=n.done}catch(g){A.error(g);return}a?A.complete():A.next(s)},0,!0)}),function(){return z(i==null?void 0:i.return)&&i.return()}})}function zn(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(function(A){jt(A,t,function(){var i=e[Symbol.asyncIterator]();jt(A,t,function(){i.next().then(function(n){n.done?A.complete():A.next(n.value)})},0,!0)})})}function Lr(e,t){return zn(jn(e),t)}function Ur(e,t){if(e!=null){if(Jn(e))return Fr(e,t);if(On(e))return Nr(e,t);if(Tn(e))return Gr(e,t);if(Pn(e))return zn(e,t);if(Wn(e))return Hr(e,t);if(Vn(e))return Lr(e,t)}throw Kn(e)}function Ie(e,t){return t?Ur(e,t):uA(e)}function Or(e){return!!e&&(e instanceof q||z(e.lift)&&z(e.subscribe))}function $e(e,t){return cA(function(A,i){var n=0;A.subscribe(ce(i,function(s){i.next(e.call(t,s,n++))}))})}var Tr=Array.isArray;function Jr(e,t){return Tr(t)?e.apply(void 0,GA([],FA(t))):e(t)}function Pr(e){return $e(function(t){return Jr(e,t)})}var Kr=Array.isArray,Yr=Object.getPrototypeOf,Wr=Object.prototype,jr=Object.keys;function Vr(e){if(e.length===1){var t=e[0];if(Kr(t))return{args:t,keys:null};if(qr(t)){var A=jr(t);return{args:A.map(function(i){return t[i]}),keys:A}}}return{args:e,keys:null}}function qr(e){return e&&typeof e=="object"&&Yr(e)===Wr}function Xr(e,t){return e.reduce(function(A,i,n){return A[i]=t[n],A},{})}function ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var A=vr(e),i=Dr(e),n=Vr(e),s=n.args,a=n.keys;if(s.length===0)return Ie([],A);var g=new q(Zr(s,A,a?function(r){return Xr(a,r)}:ze));return i?g.pipe(Pr(i)):g}function Zr(e,t,A){return A===void 0&&(A=ze),function(i){$n(t,function(){for(var n=e.length,s=new Array(n),a=n,g=n,r=function(I){$n(t,function(){var o=Ie(e[I],t),h=!1;o.subscribe(ce(i,function(c){s[I]=c,h||(h=!0,g--),g||i.next(A(s.slice()))},function(){--a||i.complete()}))},i)},l=0;l<n;l++)r(l)},i)}}function $n(e,t,A){e?jt(A,e,t):t()}function zr(e){return new q(function(t){uA(e()).subscribe(t)})}function HA(e,t){return cA(function(A,i){var n=0;A.subscribe(ce(i,function(s){return e.call(t,s,n++)&&i.next(s)}))})}function $r(e){return cA(function(t,A){try{t.subscribe(A)}finally{A.add(e)}})}function ta(e){e===void 0&&(e={});var t=e.connector,A=t===void 0?function(){return new IA}:t,i=e.resetOnError,n=i===void 0?!0:i,s=e.resetOnComplete,a=s===void 0?!0:s,g=e.resetOnRefCountZero,r=g===void 0?!0:g;return function(l){var I,o,h,c=0,E=!1,f=!1,Q=function(){o==null||o.unsubscribe(),o=void 0},C=function(){Q(),I=h=void 0,E=f=!1},y=function(){var D=I;C(),D==null||D.unsubscribe()};return cA(function(D,m){c++,!f&&!E&&Q();var S=h=h??A();m.add(function(){c--,c===0&&!f&&!E&&(o=Ai(y,r))}),S.subscribe(m),!I&&c>0&&(I=new NA({next:function(R){return S.next(R)},error:function(R){f=!0,Q(),o=Ai(C,n,R),S.error(R)},complete:function(){E=!0,Q(),o=Ai(C,a),S.complete()}}),uA(D).subscribe(I))})(l)}}function Ai(e,t){for(var A=[],i=2;i<arguments.length;i++)A[i-2]=arguments[i];if(t===!0){e();return}if(t!==!1){var n=new NA({next:function(){n.unsubscribe(),e()}});return uA(t.apply(void 0,GA([],FA(A)))).subscribe(n)}}function ts(){return typeof window<"u"}function BA(){return typeof performance<"u"?performance.now():Date.now()}function LA(e){return 1e3/e}function AA(e){return e&&e instanceof Promise}function ue(e,t){if(e.length!==t.length)return!1;for(let A=0;A<e.length;A++){const i=e[A],n=t[A];if(typeof i=="object"&&i!==null){if(typeof n!="object"||n===null)return!1;if(Array.isArray(i)){if(!Array.isArray(n)||!ue(i,n))return!1}else if(!As(i,n))return!1}else if(i!==n)return!1}return!0}function As(e,t){const A=Object.keys(e),i=Object.keys(t);if(A.length!==i.length)return!1;for(let n of A)if(!t.hasOwnProperty(n)||!Aa(e[n],t[n]))return!1;return!0}function Aa(e,t){return e===t?!0:typeof e!=typeof t?!1:typeof e=="object"&&e!==null?Array.isArray(e)?Array.isArray(t)&&ue(e,t):As(e,t):!1}function es(e){return{}.toString.call(e)==="[object Function]"}function Be(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&e.constructor===Object}function is(e){return e instanceof q}function ei(e,t,A,i=!1){if(Object(e)!==e)return e;typeof t=="string"&&(t=t.split("."));let n=t.length;if(!n)return e;let s=e;for(let a=0;a<n-1;a++){let g=t[a],r=t[a+1],l=!isNaN(Number(r))&&isFinite(Number(r));(!s[g]||typeof s[g]!="object")&&(s[g]=l&&!i?[]:{}),s=s[g]}return s[t[n-1]]=A,e}function ea(e,t){const A=t.split(".");let i=e;for(let n of A){if(i[n]===void 0)return;i=i[n]}return i}function ia(e){console.log(e)}function ii(e){console.error(e)}function EA(e,t){typeof t=="number"?e.set(t):Array.isArray(t)?e.set(t[0],t[1]):Be(t)&&"value"in t?e.set(t.value.x,t.value.y):e.set(t.x,t.y)}function ns(e,t,A,i){const n=e-A,s=t-i;return Math.sqrt(n*n+s*s)}const na=Object.freeze(Object.defineProperty({__proto__:null,arrayEquals:ue,calculateDistance:ns,error:ii,fps2ms:LA,get:ea,isBrowser:ts,isFunction:es,isObject:Be,isObservable:is,isPromise:AA,log:ia,preciseNow:BA,set:ei,setObservablePoint:EA},Symbol.toStringTag,{value:"Module"}));class Ee{constructor(){this.boundKeys={},this.stop=!1,this._controlsOptions={},this.serverFps=60}start(){this.setupListeners(),this.interval=setInterval(()=>{this.preStep()},LA(this.serverFps??60))}destroy(){this.interval&&clearInterval(this.interval),this.cleanup()}bindKey(t,A,i,n){Array.isArray(t)||(t=[t]);const s=Object.assign({repeat:!1},i);t.forEach(a=>{this.boundKeys[a]={actionName:A,options:s,parameters:n}})}applyInput(t){const A=this.boundKeys[t];if(!A)return;const{repeat:i,keyDown:n}=A.options;if(n){let s=A.parameters;typeof s=="function"&&(s=s()),n(A)}}getControl(t){return this.boundKeys[t]}getControls(){return this.boundKeys}stopInputs(){this.stop=!0}listenInputs(){this.stop=!1}setInputs(t){if(t){this.boundKeys={};for(let A in t){const i=t[A],{bind:n}=i;let s=n;Array.isArray(s)||(s=[n]);for(let a of s)this.bindKey(a,A,i)}this._controlsOptions=t}}get options(){return this._controlsOptions}}var ss=(e=>(e.Break="break",e.Backspace="backspace",e.Tab="tab",e.Clear="clear",e.Enter="enter",e.Shift="shift",e.Ctrl="ctrl",e.Alt="alt",e.Pause="pause/break",e.CapsLock="caps lock",e.Escape="escape",e.Conversion="conversion",e.NonConversion="non-conversion",e.Space="space",e.PageUp="page up",e.PageDown="page down",e.End="end",e.Home="home",e[e.Left=4]="Left",e[e.Up=1]="Up",e[e.Right=2]="Right",e[e.Down=3]="Down",e.Select="select",e.Print="print",e.Execute="execute",e.PrintScreen="Print Screen",e.Insert="insert",e.Delete="delete",e.Zero="0",e.One="1",e.Two="2",e.Three="3",e.Four="4",e.Five="5",e.Six="6",e.Seven="7",e.Height="8",e.Nine="9",e.Equal="=",e.Semicolon="semicolon (firefox), equals",e.LessThan="<",e.Equals="equals (firefox)",e.Beta="ß",e.At="@",e.A="a",e.B="b",e.C="c",e.D="d",e.E="e",e.F="f",e.G="g",e.H="h",e.I="i",e.J="j",e.K="k",e.L="l",e.M="m",e.N="n",e.O="o",e.P="p",e.Q="q",e.R="r",e.S="s",e.T="t",e.U="u",e.V="v",e.W="w",e.X="x",e.Y="y",e.Z="z",e.SearchKey="Windows Key / Left ⌘ / Chromebook Search key",e.NumPad0="numpad 0",e.NumPad1="numpad 1",e.NumPad2="numpad 2",e.NumPad3="numpad 3",e.NumPad4="numpad 4",e.NumPad5="numpad 5",e.NumPad6="numpad 6",e.NumPad7="numpad 7",e.NumPad8="numpad 8",e.NumPad9="numpad 9",e.Multiply="multiply",e.Add="add",e.Subtract="subtract",e.DecimalPoint="decimal point",e.Divide="divide",e.F1="f1",e.F2="f2",e.F3="f3",e.F4="f4",e.F5="f5",e.F6="f6",e.F7="f7",e.F8="f8",e.F9="f9",e.F10="f10",e.F11="f11",e.F12="f12",e.F13="f13",e.F14="f14",e.F15="f15",e.F16="f16",e.F17="f17",e.F18="f18",e.F19="f19",e.F20="f20",e.F21="f21",e.F22="f22",e.F23="f23",e.F24="f24",e.NumLock="num lock",e.ScrollLock="scroll lock",e.CircumflexAccent="^",e.ExclamationMark="!",e.Hash="#",e.Dollar="$",e.AccentU="ù",e.PageBackward="page backward",e.PageForWard="page forward",e.Star="*",e.DecreaseVolume="decrease volume level",e.IncreaseVolume="increase volume level",e.Next="next",e.Previous="previous",e.Stop="stop",e.PlayPause="play/pause",e.Email="e-mail",e.SemiColon="semi-colon / ñ",e.EqualSign="equal sign",e.Comma="comma",e.Dash="dash",e.FowardSlach="forward slash / ç",e.GraveAccent="grave accent / ñ / æ",e.OpenBracket="open bracket",e.BackSlach="back slash",e.CloseBracket="close bracket / å",e.SingleQuote="single quote / ø",e.BackQuote="`",e.Altgr="altgr",e))(ss||{});const os={3:"break",8:"backspace",9:"tab",12:"clear",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause/break",20:"caps lock",27:"escape",28:"conversion",29:"non-conversion",32:"space",33:"page up",34:"page down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",41:"select",42:"print",43:"execute",44:"Print Screen",45:"insert",46:"delete",48:"n0",49:"n1",50:"n2",51:"n3",52:"n4",53:"n5",54:"n6",55:"n7",56:"n8",57:"n9",58:":",59:"semicolon (firefox), equals",60:"<",61:"equals (firefox)",63:"ß",64:"@",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"Windows Key / Left ⌘ / Chromebook Search key",92:"right window key",93:"Windows Menu / Right ⌘",96:"numpad 0",97:"numpad 1",98:"numpad 2",99:"numpad 3",100:"numpad 4",101:"numpad 5",102:"numpad 6",103:"numpad 7",104:"numpad 8",105:"numpad 9",106:"multiply",107:"add",108:"numpad period (firefox)",109:"subtract",110:"decimal point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",127:"f16",128:"f17",129:"f18",130:"f19",131:"f20",132:"f21",133:"f22",134:"f23",135:"f24",144:"num lock",145:"scroll lock",160:"^",161:"!",163:"#",164:"$",165:"ù",166:"page backward",167:"page forward",169:"closing paren (AZERTY)",170:"*",171:"~ + * key",173:"minus (firefox), mute/unmute",174:"decrease volume level",175:"increase volume level",176:"next",177:"previous",178:"stop",179:"play/pause",180:"e-mail",181:"mute/unmute (firefox)",182:"decrease volume level (firefox)",183:"increase volume level (firefox)",186:"semi-colon / ñ",187:"equal sign",188:"comma",189:"dash",190:"period",191:"forward slash / ç",192:"grave accent / ñ / æ",193:"?, / or °",194:"numpad period (chrome)",219:"open bracket",220:"back slash",221:"close bracket / å",222:"single quote / ø",223:"`",224:"left or right ⌘ key (firefox)",225:"altgr",226:"< /git >",230:"GNOME Compose Key",231:"ç",233:"XF86Forward",234:"XF86Back",240:"alphanumeric",242:"hiragana/katakana",243:"half-width/full-width",244:"kanji",255:"toggle touchpad"},rs=(e=>{const t={};for(let A in e){const i=e[A];t[i]=A}return t})(os);class as extends Ee{constructor(){super(...arguments),this.keyState={},this.lastKeyPressed=null,this.directionState={up:!1,down:!1,left:!1,right:!1}}setupListeners(){document.addEventListener("keydown",t=>{this.onKeyChange(t,!0)}),document.addEventListener("keyup",t=>{this.onKeyChange(t,!1)})}cleanup(){document.removeEventListener("keydown",t=>{this.onKeyChange(t,!0)}),document.removeEventListener("keyup",t=>{this.onKeyChange(t,!1)})}preStep(){if(this.stop)return;const t=this.getDirection();if(t!=="none"){const A=this.boundKeys[t];if(A){const{keyDown:i}=A.options;i&&this.applyInput(t)}}else{const A=Object.keys(this.boundKeys);for(let i of A)this.applyInput(i)}}applyInput(t){const A=this.keyState[t];if(!A)return;const{isDown:i,count:n}=A;if(i){const s=this.boundKeys[t];if(!s)return;const{repeat:a,keyDown:g}=s.options;if(a||n==0){let r=s.parameters;typeof r=="function"&&(r=r()),g&&g(s),this.keyState[t].count++}}}applyKeyDown(t){const A=rs[t],i=new Event("keydown");i.keyCode=A,this.onKeyChange(i,!0)}applyKeyUp(t){const A=rs[t],i=new Event("keyup");i.keyCode=A,this.onKeyChange(i,!1)}applyKeyPress(t){return new Promise(A=>{this.applyKeyDown(t),setTimeout(()=>{this.applyKeyUp(t),A()},200)})}onKeyChange(t,A){t=t||window.event;const i=os[t.keyCode];if(i&&this.boundKeys[i]){if(this.keyState[i]==null&&(this.keyState[i]={count:0,isDown:!0}),this.keyState[i].isDown=A,!A){this.keyState[i].count=0;const{keyUp:n}=this.boundKeys[i].options;n&&n(this.boundKeys[i])}this.lastKeyPressed=A?t.keyCode:null}i&&this.updateDirectionState(i,A)}updateDirectionState(t,A){switch(t){case"up":this.directionState.up=A;break;case"down":this.directionState.down=A;break;case"left":this.directionState.left=A;break;case"right":this.directionState.right=A;break}}getDirection(){const{up:t,down:A,left:i,right:n}=this.directionState;return t&&i?"up_left":t&&n?"up_right":A&&i?"down_left":A&&n?"down_right":t?"up":A?"down":i?"left":n?"right":"none"}async applyControl(t,A){const i=this._controlsOptions[t];if(i){const n=Array.isArray(i.bind)?i.bind[0]:i.bind;A===void 0?await this.applyKeyPress(n):A?this.applyKeyDown(n):this.applyKeyUp(n)}}listenInputs(){super.listenInputs(),this.keyState={}}}var wt={events:{},publish:function(t,A){this.events.hasOwnProperty(t)&&this.events[t].forEach(function(i){return i(A)})},subscribe:function(t,A){return this.events.hasOwnProperty(t)||(this.events[t]=[]),this.events[t].push(A),{unsubscribe:(function(){var i=this.events[t].indexOf(A);i!==-1&&this.events[t].splice(i,1)}).bind(this)}}},V={CONNECT:{NATIVE:"gamepadconnected",ALIAS:"connect"},DISCONNECT:{NATIVE:"gamepaddisconnected",ALIAS:"disconnect"},BUTTON_PRESS:{NATIVE:null,ALIAS:"button_press"},BUTTON_RELEASE:{NATIVE:null,ALIAS:"button_release"},AXIS_MOVEMENT:{NATIVE:null,ALIAS:"axis_move"}},fA={LEFT:{NAME:"left_stick",AXES:{X:0,Y:1}},RIGHT:{NAME:"right_stick",AXES:{X:2,Y:3}}},fe={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},sa={button_0:0,button_1:1,button_2:2,button_3:3,button_4:4,button_5:5,button_6:6,button_7:7,button_8:8,button_9:9,button_10:10,button_11:11,button_12:12,button_13:13,button_14:14,button_15:15,button_16:16,button_17:17},oa=.8,gs=function(e){console.warn&&typeof console.warn=="function"?console.warn(e):console.log(e)},ra=function(e,t){var A=[];return Object.keys(t).forEach(function(i){(t[i]===e||Array.isArray(t[i])&&t[i].indexOf(e)!==-1)&&A.push(i)}),A},aa=function(e){return!!e&&!!e.type&&!!e.playEffect&&typeof e.playEffect=="function"||!1},ga=function(){return!!window.navigator.getGamepads&&typeof window.navigator.getGamepads=="function"||!1},ft={loopStarted:!1,instances:{},buttonEvents:{joypad:[]},settings:{axisMovementThreshold:oa},remove:function(t){return delete this.instances[t]},on:function(t,A){switch(t){case V.CONNECT.ALIAS:return wt.subscribe(V.CONNECT.ALIAS,A);case V.DISCONNECT.ALIAS:return wt.subscribe(V.DISCONNECT.ALIAS,A);case V.BUTTON_PRESS.ALIAS:return wt.subscribe(V.BUTTON_PRESS.ALIAS,A);case V.BUTTON_RELEASE.ALIAS:return wt.subscribe(V.BUTTON_RELEASE.ALIAS,A);case V.AXIS_MOVEMENT.ALIAS:return wt.subscribe(V.AXIS_MOVEMENT.ALIAS,A)}},vibrate:function(t,A){var i=t.vibrationActuator,n=A||this.settings.vibration;if(aa(i)){var s=i.type;return t.vibrationActuator.playEffect(s,n)}gs("No vibration actuator interface found - https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator")},set:function(t){var A=t.axisMovementThreshold,i=t.vibration,n=t.customButtonMapping,s=parseFloat(A);isNaN(s)||(this.settings.axisMovementThreshold=s),this.settings.vibration=i,this.settings.customButtonMapping=n},trigger:function(t,A){return wt.publish(t,A)}},ha=function(e){e.buttons.forEach(function(t,A){var i=ft.settings.customButtonMapping,n=i||sa,s=ra(A,n),a=ft.buttonEvents;s.length&&s.forEach(function(g){t.pressed?(a.joypad[e.index][g]||(a.joypad[e.index][g]={pressed:!0,hold:!1,released:!1}),a.joypad[e.index][g].button=t,a.joypad[e.index][g].index=A,a.joypad[e.index][g].gamepad=e):!t.pressed&&a.joypad[e.index][g]&&(a.joypad[e.index][g].released=!0,a.joypad[e.index][g].hold=!1)})})},la=function(e){var t=function(a){return new CustomEvent(V.AXIS_MOVEMENT.ALIAS,{detail:a})},A=ft.settings.axisMovementThreshold,i=e.axes,n=i.length,s=n/2;i.forEach(function(a,g){if(Math.abs(a)>A){var r=null,l=null,I=a;r=g<s?fA.LEFT.NAME:fA.RIGHT.NAME,(g===fA.LEFT.AXES.X||g===fA.RIGHT.AXES.X)&&(l=a<0?fe.LEFT:fe.RIGHT),(g===fA.LEFT.AXES.Y||g===fA.RIGHT.AXES.Y)&&(l=a<0?fe.TOP:fe.BOTTOM);var o={gamepad:e,totalSticks:s,stickMoved:r,directionOfMovement:l,axisMovementValue:I,axis:g};return window.dispatchEvent(t(o))}})},ca=function(e,t){t[e].pressed?(hs(V.BUTTON_PRESS.ALIAS,t,e),t[e].pressed=!1,t[e].hold=!0,t[e].last_event=V.BUTTON_PRESS.ALIAS):t[e].hold||t[e].released&&t[e].last_event===V.BUTTON_PRESS.ALIAS&&(hs(V.BUTTON_RELEASE.ALIAS,t,e),delete t[e])},ni={id:null,start:function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame,A=ft.buttonEvents,i=window.navigator.getGamepads();i=Array.prototype.slice.call(i),i.forEach(function(n,s){n&&(A.joypad[s]||(A.joypad[s]={}),ft.instances[s]=n,ha(n),la(n))}),A.joypad.forEach(function(n){n&&Object.keys(n).forEach(function(s){ca(s,n)})}),this.id=t(this.start.bind(this))},stop:function(t){var A=window.cancelAnimationFrame||window.webkitCancelAnimationFrame;return A(t)}},Ia=function(){window.addEventListener(V.CONNECT.NATIVE,function(e){if(wt.publish(V.CONNECT.ALIAS,e),!ft.loopStarted)return ft.loopStarted=!0,ni.start()}),window.addEventListener(V.DISCONNECT.NATIVE,function(e){if(wt.publish(V.DISCONNECT.ALIAS,e),ft.remove(e.gamepad.index),ft.buttonEvents.joypad[e.gamepad.index]=null,!Object.keys(ft.instances).length)return ft.loopStarted=!1,ni.stop(ni.id)}),window.addEventListener(V.BUTTON_PRESS.ALIAS,function(e){return wt.publish(V.BUTTON_PRESS.ALIAS,e)}),window.addEventListener(V.BUTTON_RELEASE.ALIAS,function(e){return wt.publish(V.BUTTON_RELEASE.ALIAS,e)}),window.addEventListener(V.AXIS_MOVEMENT.ALIAS,function(e){return wt.publish(V.AXIS_MOVEMENT.ALIAS,e)})},hs=function(e,t,A){var i=function(r){return new CustomEvent(e,{detail:r})},n=t[A],s=n.index,a=n.gamepad,g={buttonName:A,button:t[A].button,index:s,gamepad:a};window.dispatchEvent(i(g))};Ia(),ga()?window.joypad=ft:(window.joypad={},gs("Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API"));const si={button_0:"action",button_1:"back",button_9:"back"},oi={top:"up",bottom:"down",left:"left",right:"right"};class ls extends Ee{constructor(){super(...arguments),this.gamepadEnabled=!0,this.gamepadConfig={enabled:!0,buttonMapping:si,axisMapping:oi,axisThreshold:.5,moveInterval:400},this.gamepadMoving=!1,this.gamepadDirections={},this.gamepadAxisDate=0,this.gamepadMoveInterval=null,this.joypad=null,this.connectCallbacks=[],this.disconnectCallbacks=[],this.currentPower=0}setupListeners(){this.initGamepad()}cleanup(){this.gamepadMoveInterval&&(clearInterval(this.gamepadMoveInterval),this.gamepadMoveInterval=null)}initGamepad(){if(typeof window>"u")return;const t=window.joypad;if(!t){this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1);return}this.joypad=t,this.joypad.on("connect",()=>this.handleGamepadConnect()),this.joypad.on("disconnect",()=>this.handleGamepadDisconnect()),this.joypad.on("button_press",A=>this.handleGamepadButtonPress(A)),this.joypad.on("axis_move",A=>this.handleGamepadAxisMove(A))}handleGamepadConnect(){!this.gamepadEnabled||!this.gamepadConfig.enabled||(this.gamepadMoveInterval=setInterval(()=>{this.processGamepadMovement()},this.gamepadConfig.moveInterval||400),this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!0),this.connectCallbacks.forEach(t=>t()))}handleGamepadDisconnect(){this.gamepadMoveInterval&&(clearInterval(this.gamepadMoveInterval),this.gamepadMoveInterval=null),this.gamepadMoving=!1,this.gamepadDirections={},this.gamepadAxisDate=0,this.currentPower=0,this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1),this.disconnectCallbacks.forEach(t=>t())}handleGamepadButtonPress(t){if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;const{buttonName:A}=t.detail,n=(this.gamepadConfig.buttonMapping||si)[A];n&&this.applyControl(n).catch(()=>{})}handleGamepadAxisMove(t){var s,a;if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;this.gamepadMoving=!0,this.gamepadAxisDate=Date.now();let A=t.detail.directionOfMovement;const i=this.gamepadConfig.axisMapping||oi;if(A==="top"?A=i.top||"up":A==="bottom"?A=i.bottom||"down":A==="left"?A=i.left||"left":A==="right"&&(A=i.right||"right"),this.joypad&&this.joypad.instances){const g=Object.values(this.joypad.instances);if(g.length>0){const r=g[0],l=((s=r.axes)==null?void 0:s[0])||0,I=((a=r.axes)==null?void 0:a[1])||0;this.currentPower=Math.min(1,Math.sqrt(l*l+I*I))}}this.gamepadDirections={[A]:!0};const n=["up","down","left","right"];for(const g of n)this.gamepadDirections[g]||this.applyControl(g,!1).catch(()=>{});this.processGamepadMovement()}processGamepadMovement(){var t,A;if(this.gamepadMoving&&!this.stop){if(this.joypad&&this.joypad.instances){const i=Object.values(this.joypad.instances);if(i.length>0){const n=i[0],s=((t=n.axes)==null?void 0:t[0])||0,a=((A=n.axes)==null?void 0:A[1])||0;this.currentPower=Math.min(1,Math.sqrt(s*s+a*a))}}for(const i in this.gamepadDirections)this.gamepadDirections[i]&&this.applyControl(i,!0,{power:this.currentPower}).catch(()=>{})}}preStep(){if(this.stop)return;if(Date.now()-this.gamepadAxisDate>100&&this.gamepadMoving){const A=["up","down","left","right"];for(const i of A)this.gamepadDirections={},this.gamepadMoving=!1,this.applyControl(i,!1).catch(()=>{})}}updateGamepadConfig(t){this.gamepadConfig.onConnect&&this.offConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.offDisconnect(this.gamepadConfig.onDisconnect),this.gamepadConfig={enabled:t.enabled!==void 0?t.enabled:!0,buttonMapping:t.buttonMapping||si,axisMapping:t.axisMapping||oi,axisThreshold:t.axisThreshold||.5,moveInterval:t.moveInterval||400,onConnect:t.onConnect,onDisconnect:t.onDisconnect,gamepadConnected:t.gamepadConnected},this.gamepadConfig.onConnect&&this.onConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.onDisconnect(this.gamepadConfig.onDisconnect)}extractGamepadConfig(t){t.gamepad&&this.updateGamepadConfig(t.gamepad)}getGamepadConfig(){return this.gamepadConfig}async applyControl(t,A,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const a of s){const g=this.boundKeys[a];if(g.actionName===String(t)){if(A===void 0){if(g.options.keyDown){let r=i??g.parameters;typeof r=="function"&&(r=r()),g.options.keyDown(g,r)}return new Promise(r=>{setTimeout(()=>{if(g.options.keyUp){let l=i??g.parameters;typeof l=="function"&&(l=l()),g.options.keyUp(g,l)}r()},200)})}else if(A){if(g.options.keyDown){let r=i??g.parameters;typeof r=="function"&&(r=r()),g.options.keyDown(g,r)}}else if(g.options.keyUp){let r=i??g.parameters;typeof r=="function"&&(r=r()),g.options.keyUp(g,r)}break}}}setInputs(t){super.setInputs(t),this.extractGamepadConfig(t)}onConnect(t){this.connectCallbacks.push(t)}onDisconnect(t){this.disconnectCallbacks.push(t)}offConnect(t){const A=this.connectCallbacks.indexOf(t);A>-1&&this.connectCallbacks.splice(A,1)}offDisconnect(t){const A=this.disconnectCallbacks.indexOf(t);A>-1&&this.disconnectCallbacks.splice(A,1)}isConnected(){return this.gamepadMoveInterval!==null}reinit(){this.joypad||this.initGamepad()}}const ri={top:"up",bottom:"down",left:"left",right:"right",top_left:["up","left"],top_right:["up","right"],bottom_left:["down","left"],bottom_right:["down","right"]};class cs extends Ee{constructor(){super(...arguments),this.joystickEnabled=!0,this.joystickConfig={enabled:!0,directionMapping:ri,moveInterval:50,threshold:.1},this.joystickMoving=!1,this.joystickDirections={},this.joystickLastUpdate=0,this.joystickMoveInterval=null,this.currentPower=0}setupListeners(){}cleanup(){this.joystickMoveInterval&&(clearInterval(this.joystickMoveInterval),this.joystickMoveInterval=null)}preStep(){this.stop}handleJoystickChange(t){if(!this.joystickEnabled||!this.joystickConfig.enabled||this.stop)return;if(this.joystickLastUpdate=Date.now(),this.currentPower=t.power,t.power<(this.joystickConfig.threshold||.1)){this.stopAllMovements();return}const A=this.joystickConfig.directionMapping||ri,i=t.direction,n=A[i];if(!n){this.stopAllMovements();return}const s=Array.isArray(n)?n:[n],a=this.joystickDirections,g={};s.forEach(I=>{g[I]=!0});const r=new Set([...Object.keys(this.joystickDirections),...Object.keys(g)]);for(const I of r){const o=this.joystickDirections[I],h=g[I]||!1;o&&!h&&this.applyControl(I,!1).catch(()=>{})}this.joystickDirections={...g},this.joystickMoving=!0;const l=s.filter(I=>!a[I]);for(const I of l)this.applyControl(I,!0,{power:t.power}).catch(()=>{});this.joystickMoveInterval||(this.joystickMoveInterval=setInterval(()=>{this.processJoystickMovement()},this.joystickConfig.moveInterval||50))}handleJoystickStart(){!this.joystickEnabled||!this.joystickConfig.enabled||this.stop}handleJoystickEnd(){!this.joystickEnabled||!this.joystickConfig.enabled||this.stopAllMovements()}stopAllMovements(){this.joystickMoveInterval&&(clearInterval(this.joystickMoveInterval),this.joystickMoveInterval=null);const t=Object.keys(this.joystickDirections);for(const A of t)this.applyControl(A,!1).catch(()=>{});this.joystickDirections={},this.joystickMoving=!1,this.currentPower=0}processJoystickMovement(){if(this.joystickMoving&&!this.stop)for(const t in this.joystickDirections)this.joystickDirections[t]&&this.applyControl(t,!0,{power:this.currentPower}).catch(()=>{})}updateJoystickConfig(t){this.joystickConfig={enabled:t.enabled!==void 0?t.enabled:!0,directionMapping:t.directionMapping||ri,moveInterval:t.moveInterval||50,threshold:t.threshold||.1}}extractJoystickConfig(t){t.joystick&&this.updateJoystickConfig(t.joystick)}getJoystickConfig(){return this.joystickConfig}async applyControl(t,A,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const a of s){const g=this.boundKeys[a];if(g.actionName===String(t)){if(A===void 0){if(g.options.keyDown){let r=i??g.parameters;typeof r=="function"&&(r=r()),g.options.keyDown(g,r)}return new Promise(r=>{setTimeout(()=>{if(g.options.keyUp){let l=i??g.parameters;typeof l=="function"&&(l=l()),g.options.keyUp(g,l)}r()},200)})}else if(A){if(g.options.keyDown){let r=i??g.parameters;typeof r=="function"&&(r=r()),g.options.keyDown(g,r)}}else if(g.options.keyUp){let r=i??g.parameters;typeof r=="function"&&(r=r()),g.options.keyUp(g,r)}break}}}setInputs(t){super.setInputs(t),this.extractJoystickConfig(t)}isActive(){return this.joystickMoving}}const ai={};class Mt{}function Rt(e,t){ai[e]=t}function ua(e,t){var i;if(!ai[t])return null;const A=new ai[t];return(i=A.onInit)==null||i.call(A,e),A}var Ba=Object.defineProperty,X=(e,t)=>Ba(e,"name",{value:t,configurable:!0}),UA=(xA=class extends tA{constructor(A=[]){super({type:"init",items:A});bn(this,"_items",[]);this.createProxy(A)}createProxy(A){this._items=new Proxy(A,{get:X((i,n,s)=>{const a=i[n];return typeof a=="function"?(...g)=>{let r="update",l,I=!1,o=[],h=!0;switch(n){case"push":l=i.length,r="add",I=!0;break;case"pop":l=i.length-1,r="remove",I=!0;break;case"unshift":l=0,r="add",I=!0;break;case"shift":l=0,r="remove",I=!0;break;case"splice":l=g[0];const E=g[1],f=g.slice(2);o=f,E>0&&f.length===0?r="remove":E===0&&f.length>0?r="add":E===0&&f.length===0?h=!1:r="update",I=!0;break}const c=a.apply(i,g);return I&&h&&(n==="splice"?this.next({type:r,index:l,items:o}):this.next({type:r,index:l,items:g})),c}:Reflect.get(i,n,s)},"get"),set:X((i,n,s)=>{const a=isNaN(Number(n))?void 0:Number(n);return i[n]=s,this.next({type:"update",index:a,items:[s]}),!0},"set")})}get items(){return this._items}set items(A){this.createProxy(A),this.next({type:"reset",items:A})}},X(xA,"ArraySubject"),xA),Ea=X(e=>"_items"in e,"isArraySubject"),OA=(kA=class extends tA{constructor(A={}){super({type:"init",value:A});bn(this,"_obj");this.createProxy(A)}createProxy(A){this._obj=new Proxy(A,{get:X((i,n,s)=>Reflect.get(i,n,s),"get"),set:X((i,n,s,a)=>{const g=n,r=g in i?"update":"add";return i[g]=s,this.next({type:r,key:g,value:s}),!0},"set"),deleteProperty:X((i,n)=>{const s=n;if(s in i){const a=i[s];return delete i[s],this.next({type:"remove",key:s,value:a}),!0}return!1},"deleteProperty")})}get obj(){return this._obj}set obj(A){this.createProxy(A),this.next({type:"reset",value:A})}},X(kA,"ObjectSubject"),kA),fa=X(e=>"_obj"in e,"isObjectSubject"),Ca=X(()=>{const e="__REACTIVE_STORE__";if(typeof globalThis<"u")return globalThis[e]||(globalThis[e]={currentDependencyTracker:null,currentSubscriptionsTracker:null}),globalThis[e];let t;if(typeof window<"u")t=window;else if(typeof process<"u"&&process.versions&&process.versions.node)t=Function("return this")();else if(typeof self<"u")t=self;else return console.warn("Unable to find global object, using local instance"),{currentDependencyTracker:null,currentSubscriptionsTracker:null};return t[e]||(t[e]={currentDependencyTracker:null,currentSubscriptionsTracker:null}),t[e]},"getGlobalReactiveStore"),tt=Ca(),gi=X(e=>{tt.currentDependencyTracker&&tt.currentDependencyTracker(e)},"trackDependency");function W(e,t){let A;Array.isArray(e)?A=new UA(e):typeof e=="object"&&e!==null?A=new OA(e):A=new tA(e);const i=X(()=>A instanceof UA?A.items:A instanceof OA?A.obj:A.value,"getValue"),n=X(function(){return gi(n),i()},"fn");return n.set=s=>{const a=i();let g=!0;t!=null&&t.equal?g=!t.equal(a,s):g=a!==s,g&&(A instanceof UA?A.items=s:A instanceof OA?A.obj=s:A.next(s))},n._isFrozen=!1,n.freeze=()=>{n._isFrozen=!0},n.unfreeze=()=>{n._isFrozen=!1,A instanceof UA?A.next({type:"init",items:A.items}):A instanceof OA?A.next({type:"init",value:A.obj}):A.next(A.value)},n.mutate=s=>{const a=i();s(a)},n.update=s=>{const a=s(i());n.set(a)},n.observable=A.asObservable().pipe(HA(()=>!n._isFrozen)),n._subject=A,n}X(W,"signal");function T(e){return!!(e&&e.observable)}X(T,"isSignal");function CA(e){return T(e)&&!!e.dependencies}X(CA,"isComputed");function Ct(e,t){var l;const A=new Set;let i=!0,n;const s=tt.currentDependencyTracker;tt.currentDependencyTracker=I=>{A.add(I)},n=e(),e.isEffect&&(t=n),tt.currentDependencyTracker=s;const a=[...A].map(I=>{if(CA(I)&&"dependencies"in I){const o=I;if(o.dependencies.size===0)return new tA(o()).asObservable()}return I.observable}),g=ti(a).pipe(HA(()=>!i),$e(()=>e()),$r(()=>t==null?void 0:t())),r=X(function(){return gi(r),n},"fn");return r.observable=g,r.subscription=g.subscribe(I=>{n=I}),r.dependencies=A,(l=tt.currentSubscriptionsTracker)==null||l.call(tt,r.subscription),i=!1,r}X(Ct,"computed");function Is(e,t){var D;const A=new Set;let i=!0,n,s,a,g,r,l,I=!1,o,h=0,c=null;if(typeof e=="function")s=e,r=t==null?void 0:t.equal;else{const m=e;if(a=m.source,g=m.computation,r=m.equal,typeof a=="function"&&!T(a)){const S=a;s=X(()=>{const R=S();if(g.length>1){const N=g(R,l);return l={source:R,value:N},N}else{const N=g(R);return l={source:R,value:N},N}},"computeFunction")}else{const S=a;s=X(()=>{const R=S();if(g.length>1){const N=g(R,l);return l={source:R,value:N},N}else{const N=g(R);return l={source:R,value:N},N}},"computeFunction")}}const E=tt.currentDependencyTracker;tt.currentDependencyTracker=m=>{A.add(m)},a&&typeof a=="function"&&!T(a)||a&&T(a)&&A.add(a),n=s(),tt.currentDependencyTracker=E;const f=new tA(n),Q=[...A].map(m=>{if(CA(m)&&"dependencies"in m){const S=m;if(S.dependencies.size===0)return new tA(S()).asObservable()}return m.observable});let C;Q.length>0?C=ti(Q).pipe(HA(()=>!i),$e(()=>{const m=s();return r?r(n,m)||(n=m,I=!1):n!==m&&(n=m,I=!1),n})):C=f.asObservable().pipe(HA(()=>!i));const y=X(function(){if(gi(y),I&&A.size>0){if(c!==h){const m=s();return I=!1,o=void 0,n=m,c=null,m}return o}return I?o:(A.size===0&&(n=s()),n)},"fn");return y.observable=new q(m=>{const S=C.subscribe(N=>{A.size>0&&(h++,I=!1,c=null),n=N,m.next(N)});let R;return A.size===0&&(R=f.pipe(HA(()=>!i)).subscribe(N=>{m.next(N)})),m.next(n),()=>{S.unsubscribe(),R&&R.unsubscribe()}}),y.subscription=y.observable.subscribe(()=>{}),y.dependencies=A,y._subject=f,y.set=m=>{I||(c=h,g&&a&&(l={source:hi(()=>{if(typeof a=="function"){const R=a;return T(R)?R():a()}return a()}),value:m})),I=!0,o=m,n=m,f.next(m)},(D=tt.currentSubscriptionsTracker)==null||D.call(tt,y.subscription),i=!1,y}X(Is,"linkedSignal");function hi(e){const t=tt.currentDependencyTracker,A=tt.currentSubscriptionsTracker;tt.currentDependencyTracker=null,tt.currentSubscriptionsTracker=null;try{return e()}finally{tt.currentDependencyTracker=t,tt.currentSubscriptionsTracker=A}}X(hi,"untracked");function it(e){return e.isEffect=!0,Ct(e)}X(it,"effect");function us(e,t){var A={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(A[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(A[i[n]]=e[i[n]]);return A}var Bs=function(){};const li=(e,t,A)=>Math.min(Math.max(A,e),t),ci=.001,Qa=.01,da=10,pa=.05,ya=1;function wa({duration:e=800,bounce:t=.25,velocity:A=0,mass:i=1}){let n,s,a=1-t;a=li(pa,ya,a),e=li(Qa,da,e/1e3),a<1?(n=l=>{const I=l*a,o=I*e,h=I-A,c=Ii(l,a),E=Math.exp(-o);return ci-h/c*E},s=l=>{const o=l*a*e,h=o*A+A,c=Math.pow(a,2)*Math.pow(l,2)*e,E=Math.exp(-o),f=Ii(Math.pow(l,2),a);return(-n(l)+ci>0?-1:1)*((h-c)*E)/f}):(n=l=>{const I=Math.exp(-l*e),o=(l-A)*e+1;return-ci+I*o},s=l=>{const I=Math.exp(-l*e),o=(A-l)*(e*e);return I*o});const g=5/e,r=Da(n,s,g);if(e=e*1e3,isNaN(r))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(r,2)*i;return{stiffness:l,damping:a*2*Math.sqrt(i*l),duration:e}}}const ma=12;function Da(e,t,A){let i=A;for(let n=1;n<ma;n++)i=i-e(i)/t(i);return i}function Ii(e,t){return e*Math.sqrt(1-t*t)}const va=["duration","bounce"],Sa=["stiffness","damping","mass"];function Es(e,t){return t.some(A=>e[A]!==void 0)}function ba(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Es(e,Sa)&&Es(e,va)){const A=wa(e);t=Object.assign(Object.assign(Object.assign({},t),A),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ui(e){var{from:t=0,to:A=1,restSpeed:i=2,restDelta:n}=e,s=us(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:g,damping:r,mass:l,velocity:I,duration:o,isResolvedFromDuration:h}=ba(s),c=fs,E=fs;function f(){const Q=I?-(I/1e3):0,C=A-t,y=r/(2*Math.sqrt(g*l)),D=Math.sqrt(g/l)/1e3;if(n===void 0&&(n=Math.min(Math.abs(A-t)/100,.4)),y<1){const m=Ii(D,y);c=S=>{const R=Math.exp(-y*D*S);return A-R*((Q+y*D*C)/m*Math.sin(m*S)+C*Math.cos(m*S))},E=S=>{const R=Math.exp(-y*D*S);return y*D*R*(Math.sin(m*S)*(Q+y*D*C)/m+C*Math.cos(m*S))-R*(Math.cos(m*S)*(Q+y*D*C)-m*C*Math.sin(m*S))}}else if(y===1)c=m=>A-Math.exp(-D*m)*(C+(Q+D*C)*m);else{const m=D*Math.sqrt(y*y-1);c=S=>{const R=Math.exp(-y*D*S),N=Math.min(m*S,300);return A-R*((Q+y*D*C)*Math.sinh(N)+m*C*Math.cosh(N))/m}}}return f(),{next:Q=>{const C=c(Q);if(h)a.done=Q>=o;else{const y=E(Q)*1e3,D=Math.abs(y)<=i,m=Math.abs(A-C)<=n;a.done=D&&m}return a.value=a.done?A:C,a},flipTarget:()=>{I=-I,[t,A]=[A,t],f()}}}ui.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const fs=e=>0,Cs=(e,t,A)=>{const i=t-e;return i===0?1:(A-e)/i},Bi=(e,t,A)=>-A*e+A*t+e,Qs=(e,t)=>A=>Math.max(Math.min(A,t),e),TA=e=>e%1?Number(e.toFixed(5)):e,Ce=/(-)?([\d]*\.?[\d])+/g,Ei=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,xa=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function JA(e){return typeof e=="string"}const Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ds=Object.assign(Object.assign({},Qe),{transform:Qs(0,1)});Object.assign(Object.assign({},Qe),{default:1});const PA=(e=>({test:t=>JA(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}))("%");Object.assign(Object.assign({},PA),{parse:e=>PA.parse(e)/100,transform:e=>PA.transform(e*100)});const fi=(e,t)=>A=>!!(JA(A)&&xa.test(A)&&A.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(A,t)),ps=(e,t,A)=>i=>{if(!JA(i))return i;const[n,s,a,g]=i.match(Ce);return{[e]:parseFloat(n),[t]:parseFloat(s),[A]:parseFloat(a),alpha:g!==void 0?parseFloat(g):1}},eA={test:fi("hsl","hue"),parse:ps("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:A,alpha:i=1})=>"hsla("+Math.round(e)+", "+PA.transform(TA(t))+", "+PA.transform(TA(A))+", "+TA(ds.transform(i))+")"},ka=Qs(0,255),Ci=Object.assign(Object.assign({},Qe),{transform:e=>Math.round(ka(e))}),Vt={test:fi("rgb","red"),parse:ps("red","green","blue"),transform:({red:e,green:t,blue:A,alpha:i=1})=>"rgba("+Ci.transform(e)+", "+Ci.transform(t)+", "+Ci.transform(A)+", "+TA(ds.transform(i))+")"};function Ma(e){let t="",A="",i="",n="";return e.length>5?(t=e.substr(1,2),A=e.substr(3,2),i=e.substr(5,2),n=e.substr(7,2)):(t=e.substr(1,1),A=e.substr(2,1),i=e.substr(3,1),n=e.substr(4,1),t+=t,A+=A,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(A,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}const Qi={test:fi("#"),parse:Ma,transform:Vt.transform},de={test:e=>Vt.test(e)||Qi.test(e)||eA.test(e),parse:e=>Vt.test(e)?Vt.parse(e):eA.test(e)?eA.parse(e):Qi.parse(e),transform:e=>JA(e)?e:e.hasOwnProperty("red")?Vt.transform(e):eA.transform(e)},ys="${c}",ws="${n}";function Ra(e){var t,A,i,n;return isNaN(e)&&JA(e)&&((A=(t=e.match(Ce))===null||t===void 0?void 0:t.length)!==null&&A!==void 0?A:0)+((n=(i=e.match(Ei))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function ms(e){typeof e=="number"&&(e=`${e}`);const t=[];let A=0;const i=e.match(Ei);i&&(A=i.length,e=e.replace(Ei,ys),t.push(...i.map(de.parse)));const n=e.match(Ce);return n&&(e=e.replace(Ce,ws),t.push(...n.map(Qe.parse))),{values:t,numColors:A,tokenised:e}}function Ds(e){return ms(e).values}function vs(e){const{values:t,numColors:A,tokenised:i}=ms(e),n=t.length;return s=>{let a=i;for(let g=0;g<n;g++)a=a.replace(g<A?ys:ws,g<A?de.transform(s[g]):TA(s[g]));return a}}const _a=e=>typeof e=="number"?0:e;function Fa(e){const t=Ds(e);return vs(e)(t.map(_a))}const Ss={test:Ra,parse:Ds,createTransformer:vs,getAnimatableNone:Fa};function di(e,t,A){return A<0&&(A+=1),A>1&&(A-=1),A<.16666666666666666?e+(t-e)*6*A:A<.5?t:A<.6666666666666666?e+(t-e)*(.6666666666666666-A)*6:e}function bs({hue:e,saturation:t,lightness:A,alpha:i}){e/=360,t/=100,A/=100;let n=0,s=0,a=0;if(!t)n=s=a=A;else{const g=A<.5?A*(1+t):A+t-A*t,r=2*A-g;n=di(r,g,e+.3333333333333333),s=di(r,g,e),a=di(r,g,e-.3333333333333333)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:i}}const Ga=(e,t,A)=>{const i=e*e,n=t*t;return Math.sqrt(Math.max(0,A*(n-i)+i))},Na=[Qi,Vt,eA],xs=e=>Na.find(t=>t.test(e)),ks=(e,t)=>{let A=xs(e),i=xs(t),n=A.parse(e),s=i.parse(t);A===eA&&(n=bs(n),A=Vt),i===eA&&(s=bs(s),i=Vt);const a=Object.assign({},n);return g=>{for(const r in a)r!=="alpha"&&(a[r]=Ga(n[r],s[r],g));return a.alpha=Bi(n.alpha,s.alpha,g),A.transform(a)}},Ha=e=>typeof e=="number",La=(e,t)=>A=>t(e(A)),Ms=(...e)=>e.reduce(La);function Rs(e,t){return Ha(e)?A=>Bi(e,t,A):de.test(e)?ks(e,t):Gs(e,t)}const _s=(e,t)=>{const A=[...e],i=A.length,n=e.map((s,a)=>Rs(s,t[a]));return s=>{for(let a=0;a<i;a++)A[a]=n[a](s);return A}},Ua=(e,t)=>{const A=Object.assign(Object.assign({},e),t),i={};for(const n in A)e[n]!==void 0&&t[n]!==void 0&&(i[n]=Rs(e[n],t[n]));return n=>{for(const s in i)A[s]=i[s](n);return A}};function Fs(e){const t=Ss.parse(e),A=t.length;let i=0,n=0,s=0;for(let a=0;a<A;a++)i||typeof t[a]=="number"?i++:t[a].hue!==void 0?s++:n++;return{parsed:t,numNumbers:i,numRGB:n,numHSL:s}}const Gs=(e,t)=>{const A=Ss.createTransformer(t),i=Fs(e),n=Fs(t);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Ms(_s(i.parsed,n.parsed),A):a=>`${a>0?t:e}`},Oa=(e,t)=>A=>Bi(e,t,A);function Ta(e){if(typeof e=="number")return Oa;if(typeof e=="string")return de.test(e)?ks:Gs;if(Array.isArray(e))return _s;if(typeof e=="object")return Ua}function Ja(e,t,A){const i=[],n=A||Ta(e[0]),s=e.length-1;for(let a=0;a<s;a++){let g=n(e[a],e[a+1]);if(t){const r=Array.isArray(t)?t[a]:t;g=Ms(r,g)}i.push(g)}return i}function Pa([e,t],[A]){return i=>A(Cs(e,t,i))}function Ka(e,t){const A=e.length,i=A-1;return n=>{let s=0,a=!1;if(n<=e[0]?a=!0:n>=e[i]&&(s=i-1,a=!0),!a){let r=1;for(;r<A&&!(e[r]>n||r===i);r++);s=r-1}const g=Cs(e[s],e[s+1],n);return t[s](g)}}function Ns(e,t,{clamp:A=!0,ease:i,mixer:n}={}){const s=e.length;Bs(s===t.length),Bs(!i||!Array.isArray(i)||i.length===s-1),e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=Ja(t,i,n),g=s===2?Pa(e,a):Ka(e,a);return A?r=>g(li(e[0],e[s-1],r)):g}const pe=e=>t=>1-e(1-t),pi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ya=e=>t=>Math.pow(t,e),Hs=e=>t=>t*t*((e+1)*t-e),Wa=e=>{const t=Hs(e);return A=>(A*=2)<1?.5*t(A):.5*(2-Math.pow(2,-10*(A-1)))},Ls=1.525,ja=4/11,Va=8/11,qa=9/10,Xa=e=>e,yi=Ya(2),Za=pe(yi),Us=pi(yi),Os=e=>1-Math.sin(Math.acos(e)),Ts=pe(Os),za=pi(Ts),wi=Hs(Ls),$a=pe(wi),tg=pi(wi),Ag=Wa(Ls),eg=4356/361,ig=35442/1805,ng=16061/1805,ye=e=>{if(e===1||e===0)return e;const t=e*e;return e<ja?7.5625*t:e<Va?9.075*t-9.9*e+3.4:e<qa?eg*t-ig*e+ng:10.8*e*e-20.52*e+10.72},sg=pe(ye),og=e=>e<.5?.5*(1-ye(1-e*2)):.5*ye(e*2-1)+.5;function rg(e,t){return e.map(()=>t||Us).splice(0,e.length-1)}function ag(e){const t=e.length;return e.map((A,i)=>i!==0?i/(t-1):0)}function gg(e,t){return e.map(A=>A*t)}function we({from:e=0,to:t=1,ease:A,offset:i,duration:n=300}){const s={done:!1,value:e},a=Array.isArray(t)?t:[e,t],g=gg(i&&i.length===a.length?i:ag(a),n);function r(){return Ns(g,a,{ease:Array.isArray(A)?A:rg(a,A)})}let l=r();return{next:I=>(s.value=l(I),s.done=I>=n,s),flipTarget:()=>{a.reverse(),l=r()}}}function hg({velocity:e=0,from:t=0,power:A=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){const a={done:!1,value:t};let g=A*e;const r=t+g,l=s===void 0?r:s(r);return l!==r&&(g=l-t),{next:I=>{const o=-g*Math.exp(-I/i);return a.done=!(o>n||o<-n),a.value=a.done?l:l+o,a},flipTarget:()=>{}}}const Js={keyframes:we,spring:ui,decay:hg};function lg(e){if(Array.isArray(e.to))return we;if(Js[e.type])return Js[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?we:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ui:we}const Ps=1/60*1e3,cg=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ks=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(cg()),Ps);function Ig(e){let t=[],A=[],i=0,n=!1,s=!1;const a=new WeakSet,g={schedule:(r,l=!1,I=!1)=>{const o=I&&n,h=o?t:A;return l&&a.add(r),h.indexOf(r)===-1&&(h.push(r),o&&n&&(i=t.length)),r},cancel:r=>{const l=A.indexOf(r);l!==-1&&A.splice(l,1),a.delete(r)},process:r=>{if(n){s=!0;return}if(n=!0,[t,A]=[A,t],A.length=0,i=t.length,i)for(let l=0;l<i;l++){const I=t[l];I(r),a.has(I)&&(g.schedule(I),e())}n=!1,s&&(s=!1,g.process(r))}};return g}const ug=40;let mi=!0,KA=!1,Di=!1;const YA={delta:0,timestamp:0},WA=["read","update","preRender","render","postRender"],me=WA.reduce((e,t)=>(e[t]=Ig(()=>KA=!0),e),{}),Bg=WA.reduce((e,t)=>{const A=me[t];return e[t]=(i,n=!1,s=!1)=>(KA||Cg(),A.schedule(i,n,s)),e},{}),Eg=WA.reduce((e,t)=>(e[t]=me[t].cancel,e),{});WA.reduce((e,t)=>(e[t]=()=>me[t].process(YA),e),{});const fg=e=>me[e].process(YA),Ys=e=>{KA=!1,YA.delta=mi?Ps:Math.max(Math.min(e-YA.timestamp,ug),1),YA.timestamp=e,Di=!0,WA.forEach(fg),Di=!1,KA&&(mi=!1,Ks(Ys))},Cg=()=>{KA=!0,mi=!0,Di||Ks(Ys)};function Ws(e,t,A=0){return e-t-A}function Qg(e,t,A=0,i=!0){return i?Ws(t+-e,t,A):t-(e-t)+A}function dg(e,t,A,i){return i?e>=t+A:e<=-A}const pg=e=>{const t=({delta:A})=>e(A);return{start:()=>Bg.update(t,!0),stop:()=>Eg.update(t)}};function js(e){var t,A,{from:i,autoplay:n=!0,driver:s=pg,elapsed:a=0,repeat:g=0,repeatType:r="loop",repeatDelay:l=0,onPlay:I,onStop:o,onComplete:h,onRepeat:c,onUpdate:E}=e,f=us(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:Q}=f,C,y=0,D=f.duration,m,S=!1,R=!0,N;const J=lg(f);!((A=(t=J).needsInterpolation)===null||A===void 0)&&A.call(t,i,Q)&&(N=Ns([0,100],[i,Q],{clamp:!1}),i=0,Q=100);const U=J(Object.assign(Object.assign({},f),{from:i,to:Q}));function nt(){y++,r==="reverse"?(R=y%2===0,a=Qg(a,D,l,R)):(a=Ws(a,D,l),r==="mirror"&&U.flipTarget()),S=!1,c&&c()}function Ut(){C.stop(),h&&h()}function st(Z){if(R||(Z=-Z),a+=Z,!S){const yt=U.next(Math.max(0,a));m=yt.value,N&&(m=N(m)),S=R?yt.done:a<=0}E==null||E(m),S&&(y===0&&(D??(D=a)),y<g?dg(a,D,l,R)&&nt():Ut())}function at(){I==null||I(),C=s(st),C.start()}return n&&at(),{stop:()=>{o==null||o(),C.stop()}}}const yg=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const A=e.length;return i=>{let n=Math.abs(e[0]-i);for(t=1;t<A;t++){const s=e[t],a=Math.abs(s-i);if(a===0)return s;if(a>n)return e[t-1];if(t===A-1)return s;n=a}}}};function wg(){return globalThis.__CANVAS_ENGINE_TICK__}function QA(e){return e.animatedState!==void 0}function vi(e,t={}){const A={current:e,start:e,end:e},i=20;let n=null,s=!1;const a=W(e),g=W(A);it(()=>{const I=g();a.set(I.current)});function r(I,o={}){if(I===void 0)return g();const h=g(),c={current:h.current,start:h.current,end:I};g.set(c),n&&(n.stop(),n=null),s=!1;const E={...t,...o},f=E.duration??i,Q=E.ease??(m=>m);E.tick||wg();const C=h.current,y=I,D=o.onComplete??t.onComplete;n=js({from:C,to:y,duration:f,ease:Q,onUpdate:m=>{var R,N;if(s)return;const S=m;g.update(J=>({...J,current:S})),(R=E.onUpdate)==null||R.call(E,S),(N=o.onUpdate)==null||N.call(o,S)},onComplete:()=>{g.update(m=>({...m,current:y})),D==null||D()}})}const l=function(){return g().current};for(const I in a)l[I]=a[I];return l.animatedState=g,l.update=I=>{r(I(g().current))},l.set=async(I,o={})=>new Promise(h=>{const c=o.onComplete;r(I,{...o,onComplete:()=>{c?c():t.onComplete&&t.onComplete(),h()}})}),l.pause=()=>{s||(s=!0,n&&(n.stop(),n=null))},l.resume=()=>{if(!s)return;s=!1;const I=g();I.current!==I.end&&r(I.end,t)},l}async function mg(e){for(const t of e)Array.isArray(t)?await Promise.all(t.map(A=>A())):await t()}const Si={},Qt=e=>e&&typeof e=="object"&&"tag"in e&&"props"in e&&"componentInstance"in e,bi=e=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0;function ht(e,t){Si[e]=t}function _t(e){var A,i;if(!e)return!1;const t=((A=e.propObservables)==null?void 0:A.freeze)??((i=e.props)==null?void 0:i.freeze);if(t!=null){if(T(t)){if(t()===!0)return!0}else if(t===!0)return!0}return e.parent?_t(e.parent):!1}function xi(e,t){if(!e.propObservables)return;const A=i=>{if(T(i)&&QA(i)){const n=i;t?n.pause():n.resume()}else Be(i)&&!Qt(i)&&Object.values(i).forEach(A)};Object.values(e.propObservables).forEach(A)}function lt(e){var t,A,i,n,s,a;if(Array.isArray(e)){e.forEach(g=>lt(g));return}if(e){if((t=e.props)!=null&&t.children)for(let g of e.props.children)lt(g);for(let g in e.directives)(i=(A=e.directives[g]).onDestroy)==null||i.call(A,e);e.componentInstance&&e.componentInstance.onDestroy?e.componentInstance.onDestroy(e.parent,()=>{var g,r,l;(g=e.propSubscriptions)==null||g.forEach(I=>I.unsubscribe()),(r=e.effectSubscriptions)==null||r.forEach(I=>I.unsubscribe()),(l=e.effectUnmounts)==null||l.forEach(I=>{AA(I)?I.then(o=>{o==null||o()}):I==null||I()})}):((n=e.propSubscriptions)==null||n.forEach(g=>g.unsubscribe()),(s=e.effectSubscriptions)==null||s.forEach(g=>g.unsubscribe()),(a=e.effectUnmounts)==null||a.forEach(g=>g==null?void 0:g()))}}function ut(e,t){var o,h,c;if(!Si[e])throw new Error(`Component ${e} is not registered`);const A=new Si[e],i={tag:e,props:{},componentInstance:A,propSubscriptions:[],propObservables:t,parent:null,directives:{},effectUnmounts:[],effectSubscriptions:[],effectMounts:[],destroy(){lt(this)},allElements:new IA,isFrozen:!1};if(t){const E=(f,Q="")=>{const C=(y,D,m)=>{if(y==""){i.props[D]=m;return}ei(i.props,y+"."+D,m)};Object.entries(f).forEach(([y,D])=>{if(T(D)){const m=D;if("dependencies"in m&&m.dependencies.size==0){C(Q,y,m()),y==="freeze"&&(i.isFrozen=m()===!0);return}if(y==="freeze"){i.isFrozen=m()===!0,xi(i,i.isFrozen),i.propSubscriptions.push(m.observable.subscribe(S=>{const R=i.isFrozen;i.isFrozen=S===!0,R!==i.isFrozen&&xi(i,i.isFrozen)}));return}i.propSubscriptions.push(m.observable.subscribe(S=>{var R,N,J;if(_t(i)){QA(m)&&m.pause();return}if(QA(m)&&m.resume(),C(Q,y,S),i.directives[y]&&((N=(R=i.directives[y]).onUpdate)==null||N.call(R,S,i)),y=="tick")return _t(i),void 0;(J=A.onUpdate)==null||J.call(A,Q==""?{[y]:S}:ei({},Q+"."+y,S))}))}else y==="freeze"&&(i.isFrozen=D===!0,xi(i,i.isFrozen)),Be(D)&&y!="context"&&!Qt(D)?E(D,(Q?Q+".":"")+y):C(Q,y,D)})};E(t)}(o=A.onInit)==null||o.call(A,i.props);const n=new IA;if(t!=null&&t.isRoot&&(i.allElements=n,i.props.context.rootElement=i,(c=(h=i.componentInstance).onMount)==null||c.call(h,i),l(i)),t)for(let E in t){const f=ua(i,E);f&&(i.directives[E]=f)}async function s(E){return(await Promise.all(E.map(async Q=>T(Q)?Q():AA(Q)?await Q:Q))).every(Q=>Q!==void 0)}function a(E,f,Q,C){const y=Q.filter(S=>T(S));if(Q.filter(S=>AA(S)),y.length===0)return;const D=y.map(S=>S.observable),m=ti(D).subscribe(async()=>{if(await s(Q)){m.unsubscribe();const R=f.propSubscriptions.indexOf(m);R>-1&&f.propSubscriptions.splice(R,1),g(E,f,C),l(f)}});f.propSubscriptions.push(m)}function g(E,f,Q){var C,y,D,m;(y=(C=f.componentInstance).onMount)==null||y.call(C,f,Q);for(let S in f.directives)(m=(D=f.directives[S]).onMount)==null||m.call(D,f);f.effectMounts.forEach(S=>{f.effectUnmounts.push(S(f))})}async function r(E,f,Q){var y,D;let C=E;for(;(C==null?void 0:C.tag)==="fragment";)C=C.parent;if(f.props.context=C.props.context,f.parent=C,!((y=f.propObservables)!=null&&y.freeze)&&!((D=f.props)!=null&&D.freeze)&&_t(C)&&(f.isFrozen=!0),f.props.dependencies&&Array.isArray(f.props.dependencies)){const m=f.props.dependencies;if(!await s(m)){a(C,f,m,Q);return}}g(C,f,Q)}async function l(E){var f;if(E.props.attach&&(T((f=E.propObservables)==null?void 0:f.attach)?await new Promise(C=>{let y=null;E.propSubscriptions.push(E.propObservables.attach.observable.subscribe(async D=>{const m=(D==null?void 0:D.value)??D;if(!m)throw new Error(`attach in ${E.tag} is undefined or null, add a component`);y&<(y),y=m,await I(E,m),C(void 0)}))}):E.props.children.push(E.props.attach)),!!E.props.children)for(let Q of E.props.children)Q&&await I(E,Q)}async function I(E,f){if(AA(f)&&(f=await f),f instanceof q){const Q=f.subscribe(C=>{if(C&&typeof C=="object"&&"elements"in C){const{elements:y,prev:D}=C,m=y.filter(S=>S!==null);if(D){m.forEach(async S=>{const R=E.props.children.indexOf(D.props.key);S instanceof q?await I(E,S):Qt(S)&&(r(E,S,R+1),l(S))});return}m.forEach(async S=>{Array.isArray(S)?S.forEach(async R=>{R instanceof q?await I(E,R):Qt(R)&&(r(E,R),l(R))}):S instanceof q?await I(E,S):Qt(S)&&(r(E,S),l(S))})}else Qt(C)?(r(E,C),l(C)):Array.isArray(C)&&C.forEach(async y=>{y instanceof q?await I(E,y):Qt(y)&&(r(E,y),l(y))});n.next(void 0)});E.effectSubscriptions.push(Q)}else Qt(f)&&(r(E,f),await l(f))}return i}function Dg(e,t){return CA(e)&&e.dependencies.size==0?e=W(e()):T(e)||(e=W(e)),zr(()=>{let A=[],i=new Map,n=!0;const s=g=>g?Qt(g)?g:{tag:"fragment",props:{children:Array.isArray(g)?g:[g]},componentInstance:{},propSubscriptions:[],effectSubscriptions:[],effectMounts:[],effectUnmounts:[],propObservables:{},parent:null,directives:{},destroy(){lt(this)},allElements:new IA,isFrozen:!1}:null,a=g=>Array.isArray(g());return new q(g=>{const r=a(e)?e.observable.subscribe(l=>{if(n){n=!1,A.forEach(h=>h.destroy()),A=[],i.clear();const o=e();o&&o.forEach((h,c)=>{const E=s(t(h,c));E&&(A.push(E),i.set(c,E))}),g.next({elements:[...A]});return}const I=Array.isArray(l)||l&&typeof l=="object"&&!("type"in l);if(l.type==="init"||l.type==="reset"||I){A.forEach(h=>lt(h)),A=[],i.clear();const o=e();o&&o.forEach((h,c)=>{const E=s(t(h,c));E&&(A.push(E),i.set(c,E))})}else if(l.type==="add"&&l.index!==void 0){const o=l.items.map((h,c)=>{const E=s(t(h,l.index+c));return E&&i.set(l.index+c,E),E}).filter(h=>h!==null);A.splice(l.index,0,...o)}else if(l.type==="remove"&&l.index!==void 0)A.splice(l.index,1).forEach(h=>{lt(h),i.delete(l.index)});else if(l.type==="update"&&l.index!==void 0&&l.items.length===1){const o=l.index,h=l.items[0];if(o>=A.length||A[o]===void 0||!i.has(o)){const c=s(t(h,o));c?(A.splice(o,0,c),i.set(o,c)):console.warn(`Element creation returned null for index ${o} during add-like update.`)}else{const c=A[o];lt(c);const E=s(t(h,o));E?(A[o]=E,i.set(o,E)):(A.splice(o,1),i.delete(o))}}g.next({elements:[...A]})}):e.observable.subscribe(l=>{const I=l.key;if(n){n=!1,A.forEach(h=>lt(h)),A=[],i.clear();const o=e();o&&Object.entries(o).forEach(([h,c])=>{const E=s(t(c,h));E&&(A.push(E),i.set(h,E))}),g.next({elements:[...A]});return}if(l.type==="init"||l.type==="reset"){A.forEach(h=>lt(h)),A=[],i.clear();const o=e();o&&Object.entries(o).forEach(([h,c])=>{const E=s(t(c,h));E&&(A.push(E),i.set(h,E))})}else if(l.type==="add"&&l.key&&l.value!==void 0){const o=s(t(l.value,I));o&&(A.push(o),i.set(I,o))}else if(l.type==="remove"&&l.key){const o=A.findIndex(h=>i.get(I)===h);if(o!==-1){const[h]=A.splice(o,1);lt(h),i.delete(I)}}else if(l.type==="update"&&l.key&&l.value!==void 0){const o=A.findIndex(h=>i.get(I)===h);if(o!==-1){const h=A[o];lt(h);const c=s(t(l.value,I));c&&(A[o]=c,i.set(I,c))}}g.next({elements:[...A]})});return()=>{r.unsubscribe(),A.forEach(l=>lt(l))}})})}function vg(e,t,...A){let i=null,n=-1;const s=[];let a=null;const g=l=>T(l)?l:typeof l=="function"?Ct(l):W(l);for(const l of A)if(Array.isArray(l))s.push({condition:g(l[0]),elementFn:l[1]});else if(typeof l=="function"){a=l;break}const r=[{condition:g(e),elementFn:t},...s];return new q(l=>{const I=[],o=()=>{let h=-1;for(let f=0;f<r.length;f++){const Q=r[f].condition;if(Q()){h=f;break}}const c=h===-1&&a,E=c?-2:h;if(E!==n)if(i&&(lt(i),i=null),n=E,c){let f=a();AA(f)?Ie(f).subscribe(Q=>{i=Q,l.next({type:"init",elements:[Q]})}):(i=f,l.next({type:"init",elements:[i]}))}else if(h>=0){let f=r[h].elementFn();AA(f)?Ie(f).subscribe(Q=>{i=Q,l.next({type:"init",elements:[Q]})}):(i=f,l.next({type:"init",elements:[i]}))}else l.next({elements:[]})};return r.forEach(({condition:h})=>{const c=h;I.push(c.observable.subscribe(()=>{o()}))}),o(),()=>{I.forEach(h=>h.unsubscribe()),i&<(i)}}).pipe(ta())}class Vs extends Mt{constructor(){super(...arguments),this.keyboardControls=null,this.gamepadControls=null,this.joystickControls=null,this.freezeSubscription=null,this.element=null}onInit(t){var a,g,r;this.element=t;const A=((a=t.props.controls)==null?void 0:a.value)??t.props.controls;if(!A)return;this.keyboardControls=new as,this.keyboardControls.setInputs(A),this.keyboardControls.start();const i=A.gamepad;i!==void 0&&i.enabled!==!1&&(this.gamepadControls=new ls,this.gamepadControls.setInputs(A),this.gamepadControls.start());const n=A.joystick;n!==void 0&&n.enabled!==!1&&(this.joystickControls=new cs,this.joystickControls.setInputs(A),this.joystickControls.start()),_t(t)&&this.stopInputs();const s=((g=t.propObservables)==null?void 0:g.freeze)??((r=t.props)==null?void 0:r.freeze);T(s)&&(this.freezeSubscription=s.observable.subscribe(l=>{l?this.stopInputs():this.listenInputs()}))}onMount(t){}onUpdate(t,A){var n;const i=((n=t.controls)==null?void 0:n.value)??t.controls;i&&(this.keyboardControls&&this.keyboardControls.setInputs(i),this.gamepadControls&&this.gamepadControls.setInputs(i)),t.freeze!==void 0&&this.element&&(_t(this.element)?this.stopInputs():this.listenInputs())}onDestroy(t){this.freezeSubscription&&(this.freezeSubscription.unsubscribe(),this.freezeSubscription=null),this.keyboardControls&&(this.keyboardControls.destroy(),this.keyboardControls=null),this.gamepadControls&&(this.gamepadControls.destroy(),this.gamepadControls=null),this.joystickControls&&(this.joystickControls.destroy(),this.joystickControls=null),this.element=null}getControl(t){var A;return(A=this.keyboardControls)==null?void 0:A.getControl(t)}getControls(){var t;return((t=this.keyboardControls)==null?void 0:t.getControls())||{}}async applyControl(t,A,i){this.keyboardControls&&await this.keyboardControls.applyControl(t,A),this.gamepadControls&&await this.gamepadControls.applyControl(t,A,i),this.joystickControls&&await this.joystickControls.applyControl(t,A,i)}stopInputs(){this.keyboardControls&&this.keyboardControls.stopInputs(),this.gamepadControls&&this.gamepadControls.stopInputs(),this.joystickControls&&this.joystickControls.stopInputs()}listenInputs(){this.keyboardControls&&this.keyboardControls.listenInputs(),this.gamepadControls&&this.gamepadControls.listenInputs(),this.joystickControls&&this.joystickControls.listenInputs()}get options(){var t;return((t=this.keyboardControls)==null?void 0:t.options)||{}}get keyboard(){return this.keyboardControls}get gamepad(){return this.gamepadControls}get joystick(){return this.joystickControls}}Rt("controls",Vs);class qs extends Mt{constructor(){super(...arguments),this.fps=60,this.deltaTime=0,this.frame=0,this.timestamp=0,this.requestedDelay=0,this.lastTimestamp=0,this._stop=!1}onInit(t){var A;this.tick=(A=t.propObservables)==null?void 0:A.tick}onDestroy(){}onMount(t){}onUpdate(t){}nextTick(t){this.lastTimestamp=this.lastTimestamp||this.timestamp,this.deltaTime=BA()-this.timestamp,this.timestamp=t,this.tick.set({timestamp:this.timestamp,deltaTime:this.deltaTime,frame:this.frame,deltaRatio:~~this.deltaTime/~~LA(this.fps)}),this.lastTimestamp=this.timestamp,this.frame++}start(t={}){t.maxFps&&(this.maxFps=t.maxFps),t.fps&&(this.fps=t.fps),t.delay&&(this.requestedDelay=t.delay);const A=i=>{ts()?window.requestAnimationFrame(i.bind(this)):setTimeout(()=>{this.requestedDelay=0,i(BA())},LA(this.fps)+this.requestedDelay)};if(this.maxFps){const i=LA(this.maxFps);let n=BA(),s=BA();const a=g=>{if(this._stop)return;A(a),n=BA();const r=n-s;r>i&&(s=n-r%i,this.nextTick(g))};A(a)}else{const i=n=>{A(i),this.nextTick(n)};A(i)}return this}stop(){this._stop=!0}}Rt("tick",qs);const Bt=(e,t={})=>{if(T(e))return e();const A={};for(let i in e){const n=e[i];A[i]=bi(n)?W(n):n}for(let i in t)i in A||(A[i]=bi(t[i])?W(t[i]):t[i]);return A},ki=e=>t=>{const A=T(e)?e():e,i={};for(const n in t){const s=t[n],a=A[n];let g;if(typeof s=="function")Mi(n,a,[s]),g=a;else if(Array.isArray(s))Mi(n,a,s),g=a;else if(s&&typeof s=="object"){if(s.required&&a===void 0)throw new Error(`Missing required prop: ${n}`);if(s.type){const r=Array.isArray(s.type)?s.type:[s.type];Mi(n,a,r)}if(s.validator&&!s.validator(a,A))throw new Error(`Invalid prop: custom validation failed for prop "${n}"`);a===void 0&&"default"in s?g=typeof s.default=="function"?s.default(A):s.default:g=a}i[n]=T(g)?g:W(g)}return{...Bt(A),...i}};function Mi(e,t,A){if(t==null)return;const i=T(t)?t():t;if(!A.some(s=>s===Number?typeof i=="number":s===String?typeof i=="string":s===Boolean?typeof i=="boolean":s===Function?typeof i=="function":s===Object?typeof i=="object":s===Array?Array.isArray(i):s===null?i===null:i instanceof s))throw new Error(`Invalid prop: type check failed for prop "${e}". Expected ${A.map(s=>s.name).join(" or ")}`)}class Xs extends Mt{onInit(t){}onMount(t){this.onUpdate(t.props.viewportFollow,t)}onUpdate(t,A){const{viewport:i}=A.props.context;if(!i)throw ii("ViewportFollow directive requires a Viewport component to be mounted in the same context");if(t)if(t===!0)i.follow(A.componentInstance);else{const n=Bt(t,{speed:void 0,acceleration:void 0,radius:void 0});i.follow(A.componentInstance,{speed:n.speed(),acceleration:n.acceleration(),radius:n.radius()})}else t===null&&i.plugins.remove("follow")}onDestroy(t){const{viewportFollow:A}=t.props,{viewport:i}=t.props.context;A&&i.plugins.remove("follow")}}Rt("viewportFollow",Xs);var jA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sg(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iA={};/*!
|
|
4
4
|
* howler.js v2.2.4
|
|
5
5
|
* howlerjs.com
|
|
6
6
|
*
|
|
@@ -8,7 +8,7 @@ var CanvasEngine=function(x,m){"use strict";var tc=Object.defineProperty;var er=
|
|
|
8
8
|
* goldfirestudios.com
|
|
9
9
|
*
|
|
10
10
|
* MIT License
|
|
11
|
-
*/(function(e){(function(){var t=function(){this.init()};t.prototype={init:function(){var r=this||A;return r._counter=1e3,r._html5AudioPool=[],r.html5PoolSize=10,r._codecs={},r._howls=[],r._muted=!1,r._volume=1,r._canPlayEvent="canplaythrough",r._navigator=typeof window<"u"&&window.navigator?window.navigator:null,r.masterGain=null,r.noAudio=!1,r.usingWebAudio=!0,r.autoSuspend=!0,r.ctx=null,r.autoUnlock=!0,r._setup(),r},volume:function(r){var g=this||A;if(r=parseFloat(r),g.ctx||B(),typeof r<"u"&&r>=0&&r<=1){if(g._volume=r,g._muted)return g;g.usingWebAudio&&g.masterGain.gain.setValueAtTime(r,A.ctx.currentTime);for(var c=0;c<g._howls.length;c++)if(!g._howls[c]._webAudio)for(var E=g._howls[c]._getSoundIds(),C=0;C<E.length;C++){var Q=g._howls[c]._soundById(E[C]);Q&&Q._node&&(Q._node.volume=Q._volume*r)}return g}return g._volume},mute:function(r){var g=this||A;g.ctx||B(),g._muted=r,g.usingWebAudio&&g.masterGain.gain.setValueAtTime(r?0:g._volume,A.ctx.currentTime);for(var c=0;c<g._howls.length;c++)if(!g._howls[c]._webAudio)for(var E=g._howls[c]._getSoundIds(),C=0;C<E.length;C++){var Q=g._howls[c]._soundById(E[C]);Q&&Q._node&&(Q._node.muted=r?!0:Q._muted)}return g},stop:function(){for(var r=this||A,g=0;g<r._howls.length;g++)r._howls[g].stop();return r},unload:function(){for(var r=this||A,g=r._howls.length-1;g>=0;g--)r._howls[g].unload();return r.usingWebAudio&&r.ctx&&typeof r.ctx.close<"u"&&(r.ctx.close(),r.ctx=null,B()),r},codecs:function(r){return(this||A)._codecs[r.replace(/^x-/,"")]},_setup:function(){var r=this||A;if(r.state=r.ctx&&r.ctx.state||"suspended",r._autoSuspend(),!r.usingWebAudio)if(typeof Audio<"u")try{var g=new Audio;typeof g.oncanplaythrough>"u"&&(r._canPlayEvent="canplay")}catch{r.noAudio=!0}else r.noAudio=!0;try{var g=new Audio;g.muted&&(r.noAudio=!0)}catch{}return r.noAudio||r._setupCodecs(),r},_setupCodecs:function(){var r=this||A,g=null;try{g=typeof Audio<"u"?new Audio:null}catch{return r}if(!g||typeof g.canPlayType!="function")return r;var c=g.canPlayType("audio/mpeg;").replace(/^no$/,""),E=r._navigator?r._navigator.userAgent:"",C=E.match(/OPR\/(\d+)/g),Q=C&&parseInt(C[0].split("/")[1],10)<33,f=E.indexOf("Safari")!==-1&&E.indexOf("Chrome")===-1,y=E.match(/Version\/(.*?) /),D=f&&y&&parseInt(y[1],10)<15;return r._codecs={mp3:!!(!Q&&(c||g.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!c,opus:!!g.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!g.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!g.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(g.canPlayType('audio/wav; codecs="1"')||g.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!g.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!g.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(g.canPlayType("audio/x-m4a;")||g.canPlayType("audio/m4a;")||g.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(g.canPlayType("audio/x-m4b;")||g.canPlayType("audio/m4b;")||g.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(g.canPlayType("audio/x-mp4;")||g.canPlayType("audio/mp4;")||g.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!D&&g.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!D&&g.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!g.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(g.canPlayType("audio/x-flac;")||g.canPlayType("audio/flac;")).replace(/^no$/,"")},r},_unlockAudio:function(){var r=this||A;if(!(r._audioUnlocked||!r.ctx)){r._audioUnlocked=!1,r.autoUnlock=!1,!r._mobileUnloaded&&r.ctx.sampleRate!==44100&&(r._mobileUnloaded=!0,r.unload()),r._scratchBuffer=r.ctx.createBuffer(1,1,22050);var g=function(c){for(;r._html5AudioPool.length<r.html5PoolSize;)try{var E=new Audio;E._unlocked=!0,r._releaseHtml5Audio(E)}catch{r.noAudio=!0;break}for(var C=0;C<r._howls.length;C++)if(!r._howls[C]._webAudio)for(var Q=r._howls[C]._getSoundIds(),f=0;f<Q.length;f++){var y=r._howls[C]._soundById(Q[f]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}r._autoResume();var D=r.ctx.createBufferSource();D.buffer=r._scratchBuffer,D.connect(r.ctx.destination),typeof D.start>"u"?D.noteOn(0):D.start(0),typeof r.ctx.resume=="function"&&r.ctx.resume(),D.onended=function(){D.disconnect(0),r._audioUnlocked=!0,document.removeEventListener("touchstart",g,!0),document.removeEventListener("touchend",g,!0),document.removeEventListener("click",g,!0),document.removeEventListener("keydown",g,!0);for(var b=0;b<r._howls.length;b++)r._howls[b]._emit("unlock")}};return document.addEventListener("touchstart",g,!0),document.addEventListener("touchend",g,!0),document.addEventListener("click",g,!0),document.addEventListener("keydown",g,!0),r}},_obtainHtml5Audio:function(){var r=this||A;if(r._html5AudioPool.length)return r._html5AudioPool.pop();var g=new Audio().play();return g&&typeof Promise<"u"&&(g instanceof Promise||typeof g.then=="function")&&g.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(r){var g=this||A;return r._unlocked&&g._html5AudioPool.push(r),g},_autoSuspend:function(){var r=this;if(!(!r.autoSuspend||!r.ctx||typeof r.ctx.suspend>"u"||!A.usingWebAudio)){for(var g=0;g<r._howls.length;g++)if(r._howls[g]._webAudio){for(var c=0;c<r._howls[g]._sounds.length;c++)if(!r._howls[g]._sounds[c]._paused)return r}return r._suspendTimer&&clearTimeout(r._suspendTimer),r._suspendTimer=setTimeout(function(){if(r.autoSuspend){r._suspendTimer=null,r.state="suspending";var E=function(){r.state="suspended",r._resumeAfterSuspend&&(delete r._resumeAfterSuspend,r._autoResume())};r.ctx.suspend().then(E,E)}},3e4),r}},_autoResume:function(){var r=this;if(!(!r.ctx||typeof r.ctx.resume>"u"||!A.usingWebAudio))return r.state==="running"&&r.ctx.state!=="interrupted"&&r._suspendTimer?(clearTimeout(r._suspendTimer),r._suspendTimer=null):r.state==="suspended"||r.state==="running"&&r.ctx.state==="interrupted"?(r.ctx.resume().then(function(){r.state="running";for(var g=0;g<r._howls.length;g++)r._howls[g]._emit("resume")}),r._suspendTimer&&(clearTimeout(r._suspendTimer),r._suspendTimer=null)):r.state==="suspending"&&(r._resumeAfterSuspend=!0),r}};var A=new t,i=function(r){var g=this;if(!r.src||r.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}g.init(r)};i.prototype={init:function(r){var g=this;return A.ctx||B(),g._autoplay=r.autoplay||!1,g._format=typeof r.format!="string"?r.format:[r.format],g._html5=r.html5||!1,g._muted=r.mute||!1,g._loop=r.loop||!1,g._pool=r.pool||5,g._preload=typeof r.preload=="boolean"||r.preload==="metadata"?r.preload:!0,g._rate=r.rate||1,g._sprite=r.sprite||{},g._src=typeof r.src!="string"?r.src:[r.src],g._volume=r.volume!==void 0?r.volume:1,g._xhr={method:r.xhr&&r.xhr.method?r.xhr.method:"GET",headers:r.xhr&&r.xhr.headers?r.xhr.headers:null,withCredentials:r.xhr&&r.xhr.withCredentials?r.xhr.withCredentials:!1},g._duration=0,g._state="unloaded",g._sounds=[],g._endTimers={},g._queue=[],g._playLock=!1,g._onend=r.onend?[{fn:r.onend}]:[],g._onfade=r.onfade?[{fn:r.onfade}]:[],g._onload=r.onload?[{fn:r.onload}]:[],g._onloaderror=r.onloaderror?[{fn:r.onloaderror}]:[],g._onplayerror=r.onplayerror?[{fn:r.onplayerror}]:[],g._onpause=r.onpause?[{fn:r.onpause}]:[],g._onplay=r.onplay?[{fn:r.onplay}]:[],g._onstop=r.onstop?[{fn:r.onstop}]:[],g._onmute=r.onmute?[{fn:r.onmute}]:[],g._onvolume=r.onvolume?[{fn:r.onvolume}]:[],g._onrate=r.onrate?[{fn:r.onrate}]:[],g._onseek=r.onseek?[{fn:r.onseek}]:[],g._onunlock=r.onunlock?[{fn:r.onunlock}]:[],g._onresume=[],g._webAudio=A.usingWebAudio&&!g._html5,typeof A.ctx<"u"&&A.ctx&&A.autoUnlock&&A._unlockAudio(),A._howls.push(g),g._autoplay&&g._queue.push({event:"play",action:function(){g.play()}}),g._preload&&g._preload!=="none"&&g.load(),g},load:function(){var r=this,g=null;if(A.noAudio){r._emit("loaderror",null,"No audio support.");return}typeof r._src=="string"&&(r._src=[r._src]);for(var c=0;c<r._src.length;c++){var E,C;if(r._format&&r._format[c])E=r._format[c];else{if(C=r._src[c],typeof C!="string"){r._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}E=/^data:audio\/([^;,]+);/i.exec(C),E||(E=/\.([^.]+)$/.exec(C.split("?",1)[0])),E&&(E=E[1].toLowerCase())}if(E||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),E&&A.codecs(E)){g=r._src[c];break}}if(!g){r._emit("loaderror",null,"No codec support for selected audio sources.");return}return r._src=g,r._state="loading",window.location.protocol==="https:"&&g.slice(0,5)==="http:"&&(r._html5=!0,r._webAudio=!1),new n(r),r._webAudio&&a(r),r},play:function(r,g){var c=this,E=null;if(typeof r=="number")E=r,r=null;else{if(typeof r=="string"&&c._state==="loaded"&&!c._sprite[r])return null;if(typeof r>"u"&&(r="__default",!c._playLock)){for(var C=0,Q=0;Q<c._sounds.length;Q++)c._sounds[Q]._paused&&!c._sounds[Q]._ended&&(C++,E=c._sounds[Q]._id);C===1?r=null:E=null}}var f=E?c._soundById(E):c._inactiveSound();if(!f)return null;if(E&&!r&&(r=f._sprite||"__default"),c._state!=="loaded"){f._sprite=r,f._ended=!1;var y=f._id;return c._queue.push({event:"play",action:function(){c.play(y)}}),y}if(E&&!f._paused)return g||c._loadQueue("play"),f._id;c._webAudio&&A._autoResume();var D=Math.max(0,f._seek>0?f._seek:c._sprite[r][0]/1e3),b=Math.max(0,(c._sprite[r][0]+c._sprite[r][1])/1e3-D),S=b*1e3/Math.abs(f._rate),F=c._sprite[r][0]/1e3,U=(c._sprite[r][0]+c._sprite[r][1])/1e3;f._sprite=r,f._ended=!1;var J=function(){f._paused=!1,f._seek=D,f._start=F,f._stop=U,f._loop=!!(f._loop||c._sprite[r][2])};if(D>=U){c._ended(f);return}var L=f._node;if(c._webAudio){var it=function(){c._playLock=!1,J(),c._refreshBuffer(f);var X=f._muted||c._muted?0:f._volume;L.gain.setValueAtTime(X,A.ctx.currentTime),f._playStart=A.ctx.currentTime,typeof L.bufferSource.start>"u"?f._loop?L.bufferSource.noteGrainOn(0,D,86400):L.bufferSource.noteGrainOn(0,D,b):f._loop?L.bufferSource.start(0,D,86400):L.bufferSource.start(0,D,b),S!==1/0&&(c._endTimers[f._id]=setTimeout(c._ended.bind(c,f),S)),g||setTimeout(function(){c._emit("play",f._id),c._loadQueue()},0)};A.state==="running"&&A.ctx.state!=="interrupted"?it():(c._playLock=!0,c.once("resume",it),c._clearTimer(f._id))}else{var Ht=function(){L.currentTime=D,L.muted=f._muted||c._muted||A._muted||L.muted,L.volume=f._volume*A.volume(),L.playbackRate=f._rate;try{var X=L.play();if(X&&typeof Promise<"u"&&(X instanceof Promise||typeof X.then=="function")?(c._playLock=!0,J(),X.then(function(){c._playLock=!1,L._unlocked=!0,g?c._loadQueue():c._emit("play",f._id)}).catch(function(){c._playLock=!1,c._emit("playerror",f._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),f._ended=!0,f._paused=!0})):g||(c._playLock=!1,J(),c._emit("play",f._id)),L.playbackRate=f._rate,L.paused){c._emit("playerror",f._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}r!=="__default"||f._loop?c._endTimers[f._id]=setTimeout(c._ended.bind(c,f),S):(c._endTimers[f._id]=function(){c._ended(f),L.removeEventListener("ended",c._endTimers[f._id],!1)},L.addEventListener("ended",c._endTimers[f._id],!1))}catch(Qt){c._emit("playerror",f._id,Qt)}};L.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(L.src=c._src,L.load());var nt=window&&window.ejecta||!L.readyState&&A._navigator.isCocoonJS;if(L.readyState>=3||nt)Ht();else{c._playLock=!0,c._state="loading";var rt=function(){c._state="loaded",Ht(),L.removeEventListener(A._canPlayEvent,rt,!1)};L.addEventListener(A._canPlayEvent,rt,!1),c._clearTimer(f._id)}}return f._id},pause:function(r){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"pause",action:function(){g.pause(r)}}),g;for(var c=g._getSoundIds(r),E=0;E<c.length;E++){g._clearTimer(c[E]);var C=g._soundById(c[E]);if(C&&!C._paused&&(C._seek=g.seek(c[E]),C._rateSeek=0,C._paused=!0,g._stopFade(c[E]),C._node))if(g._webAudio){if(!C._node.bufferSource)continue;typeof C._node.bufferSource.stop>"u"?C._node.bufferSource.noteOff(0):C._node.bufferSource.stop(0),g._cleanBuffer(C._node)}else(!isNaN(C._node.duration)||C._node.duration===1/0)&&C._node.pause();arguments[1]||g._emit("pause",C?C._id:null)}return g},stop:function(r,g){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"stop",action:function(){c.stop(r)}}),c;for(var E=c._getSoundIds(r),C=0;C<E.length;C++){c._clearTimer(E[C]);var Q=c._soundById(E[C]);Q&&(Q._seek=Q._start||0,Q._rateSeek=0,Q._paused=!0,Q._ended=!0,c._stopFade(E[C]),Q._node&&(c._webAudio?Q._node.bufferSource&&(typeof Q._node.bufferSource.stop>"u"?Q._node.bufferSource.noteOff(0):Q._node.bufferSource.stop(0),c._cleanBuffer(Q._node)):(!isNaN(Q._node.duration)||Q._node.duration===1/0)&&(Q._node.currentTime=Q._start||0,Q._node.pause(),Q._node.duration===1/0&&c._clearSound(Q._node))),g||c._emit("stop",Q._id))}return c},mute:function(r,g){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"mute",action:function(){c.mute(r,g)}}),c;if(typeof g>"u")if(typeof r=="boolean")c._muted=r;else return c._muted;for(var E=c._getSoundIds(g),C=0;C<E.length;C++){var Q=c._soundById(E[C]);Q&&(Q._muted=r,Q._interval&&c._stopFade(Q._id),c._webAudio&&Q._node?Q._node.gain.setValueAtTime(r?0:Q._volume,A.ctx.currentTime):Q._node&&(Q._node.muted=A._muted?!0:r),c._emit("mute",Q._id))}return c},volume:function(){var r=this,g=arguments,c,E;if(g.length===0)return r._volume;if(g.length===1||g.length===2&&typeof g[1]>"u"){var C=r._getSoundIds(),Q=C.indexOf(g[0]);Q>=0?E=parseInt(g[0],10):c=parseFloat(g[0])}else g.length>=2&&(c=parseFloat(g[0]),E=parseInt(g[1],10));var f;if(typeof c<"u"&&c>=0&&c<=1){if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,g)}}),r;typeof E>"u"&&(r._volume=c),E=r._getSoundIds(E);for(var y=0;y<E.length;y++)f=r._soundById(E[y]),f&&(f._volume=c,g[2]||r._stopFade(E[y]),r._webAudio&&f._node&&!f._muted?f._node.gain.setValueAtTime(c,A.ctx.currentTime):f._node&&!f._muted&&(f._node.volume=c*A.volume()),r._emit("volume",f._id))}else return f=E?r._soundById(E):r._sounds[0],f?f._volume:0;return r},fade:function(r,g,c,E){var C=this;if(C._state!=="loaded"||C._playLock)return C._queue.push({event:"fade",action:function(){C.fade(r,g,c,E)}}),C;r=Math.min(Math.max(0,parseFloat(r)),1),g=Math.min(Math.max(0,parseFloat(g)),1),c=parseFloat(c),C.volume(r,E);for(var Q=C._getSoundIds(E),f=0;f<Q.length;f++){var y=C._soundById(Q[f]);if(y){if(E||C._stopFade(Q[f]),C._webAudio&&!y._muted){var D=A.ctx.currentTime,b=D+c/1e3;y._volume=r,y._node.gain.setValueAtTime(r,D),y._node.gain.linearRampToValueAtTime(g,b)}C._startFadeInterval(y,r,g,c,Q[f],typeof E>"u")}}return C},_startFadeInterval:function(r,g,c,E,C,Q){var f=this,y=g,D=c-g,b=Math.abs(D/.01),S=Math.max(4,b>0?E/b:E),F=Date.now();r._fadeTo=c,r._interval=setInterval(function(){var U=(Date.now()-F)/E;F=Date.now(),y+=D*U,y=Math.round(y*100)/100,D<0?y=Math.max(c,y):y=Math.min(c,y),f._webAudio?r._volume=y:f.volume(y,r._id,!0),Q&&(f._volume=y),(c<g&&y<=c||c>g&&y>=c)&&(clearInterval(r._interval),r._interval=null,r._fadeTo=null,f.volume(c,r._id),f._emit("fade",r._id))},S)},_stopFade:function(r){var g=this,c=g._soundById(r);return c&&c._interval&&(g._webAudio&&c._node.gain.cancelScheduledValues(A.ctx.currentTime),clearInterval(c._interval),c._interval=null,g.volume(c._fadeTo,r),c._fadeTo=null,g._emit("fade",r)),g},loop:function(){var r=this,g=arguments,c,E,C;if(g.length===0)return r._loop;if(g.length===1)if(typeof g[0]=="boolean")c=g[0],r._loop=c;else return C=r._soundById(parseInt(g[0],10)),C?C._loop:!1;else g.length===2&&(c=g[0],E=parseInt(g[1],10));for(var Q=r._getSoundIds(E),f=0;f<Q.length;f++)C=r._soundById(Q[f]),C&&(C._loop=c,r._webAudio&&C._node&&C._node.bufferSource&&(C._node.bufferSource.loop=c,c&&(C._node.bufferSource.loopStart=C._start||0,C._node.bufferSource.loopEnd=C._stop,r.playing(Q[f])&&(r.pause(Q[f],!0),r.play(Q[f],!0)))));return r},rate:function(){var r=this,g=arguments,c,E;if(g.length===0)E=r._sounds[0]._id;else if(g.length===1){var C=r._getSoundIds(),Q=C.indexOf(g[0]);Q>=0?E=parseInt(g[0],10):c=parseFloat(g[0])}else g.length===2&&(c=parseFloat(g[0]),E=parseInt(g[1],10));var f;if(typeof c=="number"){if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,g)}}),r;typeof E>"u"&&(r._rate=c),E=r._getSoundIds(E);for(var y=0;y<E.length;y++)if(f=r._soundById(E[y]),f){r.playing(E[y])&&(f._rateSeek=r.seek(E[y]),f._playStart=r._webAudio?A.ctx.currentTime:f._playStart),f._rate=c,r._webAudio&&f._node&&f._node.bufferSource?f._node.bufferSource.playbackRate.setValueAtTime(c,A.ctx.currentTime):f._node&&(f._node.playbackRate=c);var D=r.seek(E[y]),b=(r._sprite[f._sprite][0]+r._sprite[f._sprite][1])/1e3-D,S=b*1e3/Math.abs(f._rate);(r._endTimers[E[y]]||!f._paused)&&(r._clearTimer(E[y]),r._endTimers[E[y]]=setTimeout(r._ended.bind(r,f),S)),r._emit("rate",f._id)}}else return f=r._soundById(E),f?f._rate:r._rate;return r},seek:function(){var r=this,g=arguments,c,E;if(g.length===0)r._sounds.length&&(E=r._sounds[0]._id);else if(g.length===1){var C=r._getSoundIds(),Q=C.indexOf(g[0]);Q>=0?E=parseInt(g[0],10):r._sounds.length&&(E=r._sounds[0]._id,c=parseFloat(g[0]))}else g.length===2&&(c=parseFloat(g[0]),E=parseInt(g[1],10));if(typeof E>"u")return 0;if(typeof c=="number"&&(r._state!=="loaded"||r._playLock))return r._queue.push({event:"seek",action:function(){r.seek.apply(r,g)}}),r;var f=r._soundById(E);if(f)if(typeof c=="number"&&c>=0){var y=r.playing(E);y&&r.pause(E,!0),f._seek=c,f._ended=!1,r._clearTimer(E),!r._webAudio&&f._node&&!isNaN(f._node.duration)&&(f._node.currentTime=c);var D=function(){y&&r.play(E,!0),r._emit("seek",E)};if(y&&!r._webAudio){var b=function(){r._playLock?setTimeout(b,0):D()};setTimeout(b,0)}else D()}else if(r._webAudio){var S=r.playing(E)?A.ctx.currentTime-f._playStart:0,F=f._rateSeek?f._rateSeek-f._seek:0;return f._seek+(F+S*Math.abs(f._rate))}else return f._node.currentTime;return r},playing:function(r){var g=this;if(typeof r=="number"){var c=g._soundById(r);return c?!c._paused:!1}for(var E=0;E<g._sounds.length;E++)if(!g._sounds[E]._paused)return!0;return!1},duration:function(r){var g=this,c=g._duration,E=g._soundById(r);return E&&(c=g._sprite[E._sprite][1]/1e3),c},state:function(){return this._state},unload:function(){for(var r=this,g=r._sounds,c=0;c<g.length;c++)g[c]._paused||r.stop(g[c]._id),r._webAudio||(r._clearSound(g[c]._node),g[c]._node.removeEventListener("error",g[c]._errorFn,!1),g[c]._node.removeEventListener(A._canPlayEvent,g[c]._loadFn,!1),g[c]._node.removeEventListener("ended",g[c]._endFn,!1),A._releaseHtml5Audio(g[c]._node)),delete g[c]._node,r._clearTimer(g[c]._id);var E=A._howls.indexOf(r);E>=0&&A._howls.splice(E,1);var C=!0;for(c=0;c<A._howls.length;c++)if(A._howls[c]._src===r._src||r._src.indexOf(A._howls[c]._src)>=0){C=!1;break}return C&&delete s[r._src],A.noAudio=!1,r._state="unloaded",r._sounds=[],r=null,null},on:function(r,g,c,E){var C=this,Q=C["_on"+r];return typeof g=="function"&&Q.push(E?{id:c,fn:g,once:E}:{id:c,fn:g}),C},off:function(r,g,c){var E=this,C=E["_on"+r],Q=0;if(typeof g=="number"&&(c=g,g=null),g||c)for(Q=0;Q<C.length;Q++){var f=c===C[Q].id;if(g===C[Q].fn&&f||!g&&f){C.splice(Q,1);break}}else if(r)E["_on"+r]=[];else{var y=Object.keys(E);for(Q=0;Q<y.length;Q++)y[Q].indexOf("_on")===0&&Array.isArray(E[y[Q]])&&(E[y[Q]]=[])}return E},once:function(r,g,c){var E=this;return E.on(r,g,c,1),E},_emit:function(r,g,c){for(var E=this,C=E["_on"+r],Q=C.length-1;Q>=0;Q--)(!C[Q].id||C[Q].id===g||r==="load")&&(setTimeout((function(f){f.call(this,g,c)}).bind(E,C[Q].fn),0),C[Q].once&&E.off(r,C[Q].fn,C[Q].id));return E._loadQueue(r),E},_loadQueue:function(r){var g=this;if(g._queue.length>0){var c=g._queue[0];c.event===r&&(g._queue.shift(),g._loadQueue()),r||c.action()}return g},_ended:function(r){var g=this,c=r._sprite;if(!g._webAudio&&r._node&&!r._node.paused&&!r._node.ended&&r._node.currentTime<r._stop)return setTimeout(g._ended.bind(g,r),100),g;var E=!!(r._loop||g._sprite[c][2]);if(g._emit("end",r._id),!g._webAudio&&E&&g.stop(r._id,!0).play(r._id),g._webAudio&&E){g._emit("play",r._id),r._seek=r._start||0,r._rateSeek=0,r._playStart=A.ctx.currentTime;var C=(r._stop-r._start)*1e3/Math.abs(r._rate);g._endTimers[r._id]=setTimeout(g._ended.bind(g,r),C)}return g._webAudio&&!E&&(r._paused=!0,r._ended=!0,r._seek=r._start||0,r._rateSeek=0,g._clearTimer(r._id),g._cleanBuffer(r._node),A._autoSuspend()),!g._webAudio&&!E&&g.stop(r._id,!0),g},_clearTimer:function(r){var g=this;if(g._endTimers[r]){if(typeof g._endTimers[r]!="function")clearTimeout(g._endTimers[r]);else{var c=g._soundById(r);c&&c._node&&c._node.removeEventListener("ended",g._endTimers[r],!1)}delete g._endTimers[r]}return g},_soundById:function(r){for(var g=this,c=0;c<g._sounds.length;c++)if(r===g._sounds[c]._id)return g._sounds[c];return null},_inactiveSound:function(){var r=this;r._drain();for(var g=0;g<r._sounds.length;g++)if(r._sounds[g]._ended)return r._sounds[g].reset();return new n(r)},_drain:function(){var r=this,g=r._pool,c=0,E=0;if(!(r._sounds.length<g)){for(E=0;E<r._sounds.length;E++)r._sounds[E]._ended&&c++;for(E=r._sounds.length-1;E>=0;E--){if(c<=g)return;r._sounds[E]._ended&&(r._webAudio&&r._sounds[E]._node&&r._sounds[E]._node.disconnect(0),r._sounds.splice(E,1),c--)}}},_getSoundIds:function(r){var g=this;if(typeof r>"u"){for(var c=[],E=0;E<g._sounds.length;E++)c.push(g._sounds[E]._id);return c}else return[r]},_refreshBuffer:function(r){var g=this;return r._node.bufferSource=A.ctx.createBufferSource(),r._node.bufferSource.buffer=s[g._src],r._panner?r._node.bufferSource.connect(r._panner):r._node.bufferSource.connect(r._node),r._node.bufferSource.loop=r._loop,r._loop&&(r._node.bufferSource.loopStart=r._start||0,r._node.bufferSource.loopEnd=r._stop||0),r._node.bufferSource.playbackRate.setValueAtTime(r._rate,A.ctx.currentTime),g},_cleanBuffer:function(r){var g=this,c=A._navigator&&A._navigator.vendor.indexOf("Apple")>=0;if(!r.bufferSource)return g;if(A._scratchBuffer&&r.bufferSource&&(r.bufferSource.onended=null,r.bufferSource.disconnect(0),c))try{r.bufferSource.buffer=A._scratchBuffer}catch{}return r.bufferSource=null,g},_clearSound:function(r){var g=/MSIE |Trident\//.test(A._navigator&&A._navigator.userAgent);g||(r.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(r){this._parent=r,this.init()};n.prototype={init:function(){var r=this,g=r._parent;return r._muted=g._muted,r._loop=g._loop,r._volume=g._volume,r._rate=g._rate,r._seek=0,r._paused=!0,r._ended=!0,r._sprite="__default",r._id=++A._counter,g._sounds.push(r),r.create(),r},create:function(){var r=this,g=r._parent,c=A._muted||r._muted||r._parent._muted?0:r._volume;return g._webAudio?(r._node=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),r._node.gain.setValueAtTime(c,A.ctx.currentTime),r._node.paused=!0,r._node.connect(A.masterGain)):A.noAudio||(r._node=A._obtainHtml5Audio(),r._errorFn=r._errorListener.bind(r),r._node.addEventListener("error",r._errorFn,!1),r._loadFn=r._loadListener.bind(r),r._node.addEventListener(A._canPlayEvent,r._loadFn,!1),r._endFn=r._endListener.bind(r),r._node.addEventListener("ended",r._endFn,!1),r._node.src=g._src,r._node.preload=g._preload===!0?"auto":g._preload,r._node.volume=c*A.volume(),r._node.load()),r},reset:function(){var r=this,g=r._parent;return r._muted=g._muted,r._loop=g._loop,r._volume=g._volume,r._rate=g._rate,r._seek=0,r._rateSeek=0,r._paused=!0,r._ended=!0,r._sprite="__default",r._id=++A._counter,r},_errorListener:function(){var r=this;r._parent._emit("loaderror",r._id,r._node.error?r._node.error.code:0),r._node.removeEventListener("error",r._errorFn,!1)},_loadListener:function(){var r=this,g=r._parent;g._duration=Math.ceil(r._node.duration*10)/10,Object.keys(g._sprite).length===0&&(g._sprite={__default:[0,g._duration*1e3]}),g._state!=="loaded"&&(g._state="loaded",g._emit("load"),g._loadQueue()),r._node.removeEventListener(A._canPlayEvent,r._loadFn,!1)},_endListener:function(){var r=this,g=r._parent;g._duration===1/0&&(g._duration=Math.ceil(r._node.duration*10)/10,g._sprite.__default[1]===1/0&&(g._sprite.__default[1]=g._duration*1e3),g._ended(r)),r._node.removeEventListener("ended",r._endFn,!1)}};var s={},a=function(r){var g=r._src;if(s[g]){r._duration=s[g].duration,l(r);return}if(/^data:[^;]+;base64,/.test(g)){for(var c=atob(g.split(",")[1]),E=new Uint8Array(c.length),C=0;C<c.length;++C)E[C]=c.charCodeAt(C);h(E.buffer,r)}else{var Q=new XMLHttpRequest;Q.open(r._xhr.method,g,!0),Q.withCredentials=r._xhr.withCredentials,Q.responseType="arraybuffer",r._xhr.headers&&Object.keys(r._xhr.headers).forEach(function(f){Q.setRequestHeader(f,r._xhr.headers[f])}),Q.onload=function(){var f=(Q.status+"")[0];if(f!=="0"&&f!=="2"&&f!=="3"){r._emit("loaderror",null,"Failed loading audio file with status: "+Q.status+".");return}h(Q.response,r)},Q.onerror=function(){r._webAudio&&(r._html5=!0,r._webAudio=!1,r._sounds=[],delete s[g],r.load())},o(Q)}},o=function(r){try{r.send()}catch{r.onerror()}},h=function(r,g){var c=function(){g._emit("loaderror",null,"Decoding audio data failed.")},E=function(C){C&&g._sounds.length>0?(s[g._src]=C,l(g,C)):c()};typeof Promise<"u"&&A.ctx.decodeAudioData.length===1?A.ctx.decodeAudioData(r).then(E).catch(c):A.ctx.decodeAudioData(r,E,c)},l=function(r,g){g&&!r._duration&&(r._duration=g.duration),Object.keys(r._sprite).length===0&&(r._sprite={__default:[0,r._duration*1e3]}),r._state!=="loaded"&&(r._state="loaded",r._emit("load"),r._loadQueue())},B=function(){if(A.usingWebAudio){try{typeof AudioContext<"u"?A.ctx=new AudioContext:typeof webkitAudioContext<"u"?A.ctx=new webkitAudioContext:A.usingWebAudio=!1}catch{A.usingWebAudio=!1}A.ctx||(A.usingWebAudio=!1);var r=/iP(hone|od|ad)/.test(A._navigator&&A._navigator.platform),g=A._navigator&&A._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),c=g?parseInt(g[1],10):null;if(r&&c&&c<9){var E=/safari/.test(A._navigator&&A._navigator.userAgent.toLowerCase());A._navigator&&!E&&(A.usingWebAudio=!1)}A.usingWebAudio&&(A.masterGain=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),A.masterGain.gain.setValueAtTime(A._muted?0:A._volume,A.ctx.currentTime),A.masterGain.connect(A.ctx.destination)),A._setup()}};e.Howler=A,e.Howl=i,typeof NA<"u"?(NA.HowlerGlobal=t,NA.Howler=A,NA.Howl=i,NA.Sound=n):typeof window<"u"&&(window.HowlerGlobal=t,window.Howler=A,window.Howl=i,window.Sound=n)})();/*!
|
|
11
|
+
*/(function(e){(function(){var t=function(){this.init()};t.prototype={init:function(){var o=this||A;return o._counter=1e3,o._html5AudioPool=[],o.html5PoolSize=10,o._codecs={},o._howls=[],o._muted=!1,o._volume=1,o._canPlayEvent="canplaythrough",o._navigator=typeof window<"u"&&window.navigator?window.navigator:null,o.masterGain=null,o.noAudio=!1,o.usingWebAudio=!0,o.autoSuspend=!0,o.ctx=null,o.autoUnlock=!0,o._setup(),o},volume:function(o){var h=this||A;if(o=parseFloat(o),h.ctx||I(),typeof o<"u"&&o>=0&&o<=1){if(h._volume=o,h._muted)return h;h.usingWebAudio&&h.masterGain.gain.setValueAtTime(o,A.ctx.currentTime);for(var c=0;c<h._howls.length;c++)if(!h._howls[c]._webAudio)for(var E=h._howls[c]._getSoundIds(),f=0;f<E.length;f++){var Q=h._howls[c]._soundById(E[f]);Q&&Q._node&&(Q._node.volume=Q._volume*o)}return h}return h._volume},mute:function(o){var h=this||A;h.ctx||I(),h._muted=o,h.usingWebAudio&&h.masterGain.gain.setValueAtTime(o?0:h._volume,A.ctx.currentTime);for(var c=0;c<h._howls.length;c++)if(!h._howls[c]._webAudio)for(var E=h._howls[c]._getSoundIds(),f=0;f<E.length;f++){var Q=h._howls[c]._soundById(E[f]);Q&&Q._node&&(Q._node.muted=o?!0:Q._muted)}return h},stop:function(){for(var o=this||A,h=0;h<o._howls.length;h++)o._howls[h].stop();return o},unload:function(){for(var o=this||A,h=o._howls.length-1;h>=0;h--)o._howls[h].unload();return o.usingWebAudio&&o.ctx&&typeof o.ctx.close<"u"&&(o.ctx.close(),o.ctx=null,I()),o},codecs:function(o){return(this||A)._codecs[o.replace(/^x-/,"")]},_setup:function(){var o=this||A;if(o.state=o.ctx&&o.ctx.state||"suspended",o._autoSuspend(),!o.usingWebAudio)if(typeof Audio<"u")try{var h=new Audio;typeof h.oncanplaythrough>"u"&&(o._canPlayEvent="canplay")}catch{o.noAudio=!0}else o.noAudio=!0;try{var h=new Audio;h.muted&&(o.noAudio=!0)}catch{}return o.noAudio||o._setupCodecs(),o},_setupCodecs:function(){var o=this||A,h=null;try{h=typeof Audio<"u"?new Audio:null}catch{return o}if(!h||typeof h.canPlayType!="function")return o;var c=h.canPlayType("audio/mpeg;").replace(/^no$/,""),E=o._navigator?o._navigator.userAgent:"",f=E.match(/OPR\/(\d+)/g),Q=f&&parseInt(f[0].split("/")[1],10)<33,C=E.indexOf("Safari")!==-1&&E.indexOf("Chrome")===-1,y=E.match(/Version\/(.*?) /),D=C&&y&&parseInt(y[1],10)<15;return o._codecs={mp3:!!(!Q&&(c||h.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!c,opus:!!h.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!h.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!h.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(h.canPlayType('audio/wav; codecs="1"')||h.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!h.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!h.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(h.canPlayType("audio/x-m4a;")||h.canPlayType("audio/m4a;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(h.canPlayType("audio/x-m4b;")||h.canPlayType("audio/m4b;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(h.canPlayType("audio/x-mp4;")||h.canPlayType("audio/mp4;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!D&&h.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!D&&h.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!h.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(h.canPlayType("audio/x-flac;")||h.canPlayType("audio/flac;")).replace(/^no$/,"")},o},_unlockAudio:function(){var o=this||A;if(!(o._audioUnlocked||!o.ctx)){o._audioUnlocked=!1,o.autoUnlock=!1,!o._mobileUnloaded&&o.ctx.sampleRate!==44100&&(o._mobileUnloaded=!0,o.unload()),o._scratchBuffer=o.ctx.createBuffer(1,1,22050);var h=function(c){for(;o._html5AudioPool.length<o.html5PoolSize;)try{var E=new Audio;E._unlocked=!0,o._releaseHtml5Audio(E)}catch{o.noAudio=!0;break}for(var f=0;f<o._howls.length;f++)if(!o._howls[f]._webAudio)for(var Q=o._howls[f]._getSoundIds(),C=0;C<Q.length;C++){var y=o._howls[f]._soundById(Q[C]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}o._autoResume();var D=o.ctx.createBufferSource();D.buffer=o._scratchBuffer,D.connect(o.ctx.destination),typeof D.start>"u"?D.noteOn(0):D.start(0),typeof o.ctx.resume=="function"&&o.ctx.resume(),D.onended=function(){D.disconnect(0),o._audioUnlocked=!0,document.removeEventListener("touchstart",h,!0),document.removeEventListener("touchend",h,!0),document.removeEventListener("click",h,!0),document.removeEventListener("keydown",h,!0);for(var m=0;m<o._howls.length;m++)o._howls[m]._emit("unlock")}};return document.addEventListener("touchstart",h,!0),document.addEventListener("touchend",h,!0),document.addEventListener("click",h,!0),document.addEventListener("keydown",h,!0),o}},_obtainHtml5Audio:function(){var o=this||A;if(o._html5AudioPool.length)return o._html5AudioPool.pop();var h=new Audio().play();return h&&typeof Promise<"u"&&(h instanceof Promise||typeof h.then=="function")&&h.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(o){var h=this||A;return o._unlocked&&h._html5AudioPool.push(o),h},_autoSuspend:function(){var o=this;if(!(!o.autoSuspend||!o.ctx||typeof o.ctx.suspend>"u"||!A.usingWebAudio)){for(var h=0;h<o._howls.length;h++)if(o._howls[h]._webAudio){for(var c=0;c<o._howls[h]._sounds.length;c++)if(!o._howls[h]._sounds[c]._paused)return o}return o._suspendTimer&&clearTimeout(o._suspendTimer),o._suspendTimer=setTimeout(function(){if(o.autoSuspend){o._suspendTimer=null,o.state="suspending";var E=function(){o.state="suspended",o._resumeAfterSuspend&&(delete o._resumeAfterSuspend,o._autoResume())};o.ctx.suspend().then(E,E)}},3e4),o}},_autoResume:function(){var o=this;if(!(!o.ctx||typeof o.ctx.resume>"u"||!A.usingWebAudio))return o.state==="running"&&o.ctx.state!=="interrupted"&&o._suspendTimer?(clearTimeout(o._suspendTimer),o._suspendTimer=null):o.state==="suspended"||o.state==="running"&&o.ctx.state==="interrupted"?(o.ctx.resume().then(function(){o.state="running";for(var h=0;h<o._howls.length;h++)o._howls[h]._emit("resume")}),o._suspendTimer&&(clearTimeout(o._suspendTimer),o._suspendTimer=null)):o.state==="suspending"&&(o._resumeAfterSuspend=!0),o}};var A=new t,i=function(o){var h=this;if(!o.src||o.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}h.init(o)};i.prototype={init:function(o){var h=this;return A.ctx||I(),h._autoplay=o.autoplay||!1,h._format=typeof o.format!="string"?o.format:[o.format],h._html5=o.html5||!1,h._muted=o.mute||!1,h._loop=o.loop||!1,h._pool=o.pool||5,h._preload=typeof o.preload=="boolean"||o.preload==="metadata"?o.preload:!0,h._rate=o.rate||1,h._sprite=o.sprite||{},h._src=typeof o.src!="string"?o.src:[o.src],h._volume=o.volume!==void 0?o.volume:1,h._xhr={method:o.xhr&&o.xhr.method?o.xhr.method:"GET",headers:o.xhr&&o.xhr.headers?o.xhr.headers:null,withCredentials:o.xhr&&o.xhr.withCredentials?o.xhr.withCredentials:!1},h._duration=0,h._state="unloaded",h._sounds=[],h._endTimers={},h._queue=[],h._playLock=!1,h._onend=o.onend?[{fn:o.onend}]:[],h._onfade=o.onfade?[{fn:o.onfade}]:[],h._onload=o.onload?[{fn:o.onload}]:[],h._onloaderror=o.onloaderror?[{fn:o.onloaderror}]:[],h._onplayerror=o.onplayerror?[{fn:o.onplayerror}]:[],h._onpause=o.onpause?[{fn:o.onpause}]:[],h._onplay=o.onplay?[{fn:o.onplay}]:[],h._onstop=o.onstop?[{fn:o.onstop}]:[],h._onmute=o.onmute?[{fn:o.onmute}]:[],h._onvolume=o.onvolume?[{fn:o.onvolume}]:[],h._onrate=o.onrate?[{fn:o.onrate}]:[],h._onseek=o.onseek?[{fn:o.onseek}]:[],h._onunlock=o.onunlock?[{fn:o.onunlock}]:[],h._onresume=[],h._webAudio=A.usingWebAudio&&!h._html5,typeof A.ctx<"u"&&A.ctx&&A.autoUnlock&&A._unlockAudio(),A._howls.push(h),h._autoplay&&h._queue.push({event:"play",action:function(){h.play()}}),h._preload&&h._preload!=="none"&&h.load(),h},load:function(){var o=this,h=null;if(A.noAudio){o._emit("loaderror",null,"No audio support.");return}typeof o._src=="string"&&(o._src=[o._src]);for(var c=0;c<o._src.length;c++){var E,f;if(o._format&&o._format[c])E=o._format[c];else{if(f=o._src[c],typeof f!="string"){o._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}E=/^data:audio\/([^;,]+);/i.exec(f),E||(E=/\.([^.]+)$/.exec(f.split("?",1)[0])),E&&(E=E[1].toLowerCase())}if(E||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),E&&A.codecs(E)){h=o._src[c];break}}if(!h){o._emit("loaderror",null,"No codec support for selected audio sources.");return}return o._src=h,o._state="loading",window.location.protocol==="https:"&&h.slice(0,5)==="http:"&&(o._html5=!0,o._webAudio=!1),new n(o),o._webAudio&&a(o),o},play:function(o,h){var c=this,E=null;if(typeof o=="number")E=o,o=null;else{if(typeof o=="string"&&c._state==="loaded"&&!c._sprite[o])return null;if(typeof o>"u"&&(o="__default",!c._playLock)){for(var f=0,Q=0;Q<c._sounds.length;Q++)c._sounds[Q]._paused&&!c._sounds[Q]._ended&&(f++,E=c._sounds[Q]._id);f===1?o=null:E=null}}var C=E?c._soundById(E):c._inactiveSound();if(!C)return null;if(E&&!o&&(o=C._sprite||"__default"),c._state!=="loaded"){C._sprite=o,C._ended=!1;var y=C._id;return c._queue.push({event:"play",action:function(){c.play(y)}}),y}if(E&&!C._paused)return h||c._loadQueue("play"),C._id;c._webAudio&&A._autoResume();var D=Math.max(0,C._seek>0?C._seek:c._sprite[o][0]/1e3),m=Math.max(0,(c._sprite[o][0]+c._sprite[o][1])/1e3-D),S=m*1e3/Math.abs(C._rate),R=c._sprite[o][0]/1e3,N=(c._sprite[o][0]+c._sprite[o][1])/1e3;C._sprite=o,C._ended=!1;var J=function(){C._paused=!1,C._seek=D,C._start=R,C._stop=N,C._loop=!!(C._loop||c._sprite[o][2])};if(D>=N){c._ended(C);return}var U=C._node;if(c._webAudio){var nt=function(){c._playLock=!1,J(),c._refreshBuffer(C);var Z=C._muted||c._muted?0:C._volume;U.gain.setValueAtTime(Z,A.ctx.currentTime),C._playStart=A.ctx.currentTime,typeof U.bufferSource.start>"u"?C._loop?U.bufferSource.noteGrainOn(0,D,86400):U.bufferSource.noteGrainOn(0,D,m):C._loop?U.bufferSource.start(0,D,86400):U.bufferSource.start(0,D,m),S!==1/0&&(c._endTimers[C._id]=setTimeout(c._ended.bind(c,C),S)),h||setTimeout(function(){c._emit("play",C._id),c._loadQueue()},0)};A.state==="running"&&A.ctx.state!=="interrupted"?nt():(c._playLock=!0,c.once("resume",nt),c._clearTimer(C._id))}else{var Ut=function(){U.currentTime=D,U.muted=C._muted||c._muted||A._muted||U.muted,U.volume=C._volume*A.volume(),U.playbackRate=C._rate;try{var Z=U.play();if(Z&&typeof Promise<"u"&&(Z instanceof Promise||typeof Z.then=="function")?(c._playLock=!0,J(),Z.then(function(){c._playLock=!1,U._unlocked=!0,h?c._loadQueue():c._emit("play",C._id)}).catch(function(){c._playLock=!1,c._emit("playerror",C._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),C._ended=!0,C._paused=!0})):h||(c._playLock=!1,J(),c._emit("play",C._id)),U.playbackRate=C._rate,U.paused){c._emit("playerror",C._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}o!=="__default"||C._loop?c._endTimers[C._id]=setTimeout(c._ended.bind(c,C),S):(c._endTimers[C._id]=function(){c._ended(C),U.removeEventListener("ended",c._endTimers[C._id],!1)},U.addEventListener("ended",c._endTimers[C._id],!1))}catch(yt){c._emit("playerror",C._id,yt)}};U.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(U.src=c._src,U.load());var st=window&&window.ejecta||!U.readyState&&A._navigator.isCocoonJS;if(U.readyState>=3||st)Ut();else{c._playLock=!0,c._state="loading";var at=function(){c._state="loaded",Ut(),U.removeEventListener(A._canPlayEvent,at,!1)};U.addEventListener(A._canPlayEvent,at,!1),c._clearTimer(C._id)}}return C._id},pause:function(o){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"pause",action:function(){h.pause(o)}}),h;for(var c=h._getSoundIds(o),E=0;E<c.length;E++){h._clearTimer(c[E]);var f=h._soundById(c[E]);if(f&&!f._paused&&(f._seek=h.seek(c[E]),f._rateSeek=0,f._paused=!0,h._stopFade(c[E]),f._node))if(h._webAudio){if(!f._node.bufferSource)continue;typeof f._node.bufferSource.stop>"u"?f._node.bufferSource.noteOff(0):f._node.bufferSource.stop(0),h._cleanBuffer(f._node)}else(!isNaN(f._node.duration)||f._node.duration===1/0)&&f._node.pause();arguments[1]||h._emit("pause",f?f._id:null)}return h},stop:function(o,h){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"stop",action:function(){c.stop(o)}}),c;for(var E=c._getSoundIds(o),f=0;f<E.length;f++){c._clearTimer(E[f]);var Q=c._soundById(E[f]);Q&&(Q._seek=Q._start||0,Q._rateSeek=0,Q._paused=!0,Q._ended=!0,c._stopFade(E[f]),Q._node&&(c._webAudio?Q._node.bufferSource&&(typeof Q._node.bufferSource.stop>"u"?Q._node.bufferSource.noteOff(0):Q._node.bufferSource.stop(0),c._cleanBuffer(Q._node)):(!isNaN(Q._node.duration)||Q._node.duration===1/0)&&(Q._node.currentTime=Q._start||0,Q._node.pause(),Q._node.duration===1/0&&c._clearSound(Q._node))),h||c._emit("stop",Q._id))}return c},mute:function(o,h){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"mute",action:function(){c.mute(o,h)}}),c;if(typeof h>"u")if(typeof o=="boolean")c._muted=o;else return c._muted;for(var E=c._getSoundIds(h),f=0;f<E.length;f++){var Q=c._soundById(E[f]);Q&&(Q._muted=o,Q._interval&&c._stopFade(Q._id),c._webAudio&&Q._node?Q._node.gain.setValueAtTime(o?0:Q._volume,A.ctx.currentTime):Q._node&&(Q._node.muted=A._muted?!0:o),c._emit("mute",Q._id))}return c},volume:function(){var o=this,h=arguments,c,E;if(h.length===0)return o._volume;if(h.length===1||h.length===2&&typeof h[1]>"u"){var f=o._getSoundIds(),Q=f.indexOf(h[0]);Q>=0?E=parseInt(h[0],10):c=parseFloat(h[0])}else h.length>=2&&(c=parseFloat(h[0]),E=parseInt(h[1],10));var C;if(typeof c<"u"&&c>=0&&c<=1){if(o._state!=="loaded"||o._playLock)return o._queue.push({event:"volume",action:function(){o.volume.apply(o,h)}}),o;typeof E>"u"&&(o._volume=c),E=o._getSoundIds(E);for(var y=0;y<E.length;y++)C=o._soundById(E[y]),C&&(C._volume=c,h[2]||o._stopFade(E[y]),o._webAudio&&C._node&&!C._muted?C._node.gain.setValueAtTime(c,A.ctx.currentTime):C._node&&!C._muted&&(C._node.volume=c*A.volume()),o._emit("volume",C._id))}else return C=E?o._soundById(E):o._sounds[0],C?C._volume:0;return o},fade:function(o,h,c,E){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"fade",action:function(){f.fade(o,h,c,E)}}),f;o=Math.min(Math.max(0,parseFloat(o)),1),h=Math.min(Math.max(0,parseFloat(h)),1),c=parseFloat(c),f.volume(o,E);for(var Q=f._getSoundIds(E),C=0;C<Q.length;C++){var y=f._soundById(Q[C]);if(y){if(E||f._stopFade(Q[C]),f._webAudio&&!y._muted){var D=A.ctx.currentTime,m=D+c/1e3;y._volume=o,y._node.gain.setValueAtTime(o,D),y._node.gain.linearRampToValueAtTime(h,m)}f._startFadeInterval(y,o,h,c,Q[C],typeof E>"u")}}return f},_startFadeInterval:function(o,h,c,E,f,Q){var C=this,y=h,D=c-h,m=Math.abs(D/.01),S=Math.max(4,m>0?E/m:E),R=Date.now();o._fadeTo=c,o._interval=setInterval(function(){var N=(Date.now()-R)/E;R=Date.now(),y+=D*N,y=Math.round(y*100)/100,D<0?y=Math.max(c,y):y=Math.min(c,y),C._webAudio?o._volume=y:C.volume(y,o._id,!0),Q&&(C._volume=y),(c<h&&y<=c||c>h&&y>=c)&&(clearInterval(o._interval),o._interval=null,o._fadeTo=null,C.volume(c,o._id),C._emit("fade",o._id))},S)},_stopFade:function(o){var h=this,c=h._soundById(o);return c&&c._interval&&(h._webAudio&&c._node.gain.cancelScheduledValues(A.ctx.currentTime),clearInterval(c._interval),c._interval=null,h.volume(c._fadeTo,o),c._fadeTo=null,h._emit("fade",o)),h},loop:function(){var o=this,h=arguments,c,E,f;if(h.length===0)return o._loop;if(h.length===1)if(typeof h[0]=="boolean")c=h[0],o._loop=c;else return f=o._soundById(parseInt(h[0],10)),f?f._loop:!1;else h.length===2&&(c=h[0],E=parseInt(h[1],10));for(var Q=o._getSoundIds(E),C=0;C<Q.length;C++)f=o._soundById(Q[C]),f&&(f._loop=c,o._webAudio&&f._node&&f._node.bufferSource&&(f._node.bufferSource.loop=c,c&&(f._node.bufferSource.loopStart=f._start||0,f._node.bufferSource.loopEnd=f._stop,o.playing(Q[C])&&(o.pause(Q[C],!0),o.play(Q[C],!0)))));return o},rate:function(){var o=this,h=arguments,c,E;if(h.length===0)E=o._sounds[0]._id;else if(h.length===1){var f=o._getSoundIds(),Q=f.indexOf(h[0]);Q>=0?E=parseInt(h[0],10):c=parseFloat(h[0])}else h.length===2&&(c=parseFloat(h[0]),E=parseInt(h[1],10));var C;if(typeof c=="number"){if(o._state!=="loaded"||o._playLock)return o._queue.push({event:"rate",action:function(){o.rate.apply(o,h)}}),o;typeof E>"u"&&(o._rate=c),E=o._getSoundIds(E);for(var y=0;y<E.length;y++)if(C=o._soundById(E[y]),C){o.playing(E[y])&&(C._rateSeek=o.seek(E[y]),C._playStart=o._webAudio?A.ctx.currentTime:C._playStart),C._rate=c,o._webAudio&&C._node&&C._node.bufferSource?C._node.bufferSource.playbackRate.setValueAtTime(c,A.ctx.currentTime):C._node&&(C._node.playbackRate=c);var D=o.seek(E[y]),m=(o._sprite[C._sprite][0]+o._sprite[C._sprite][1])/1e3-D,S=m*1e3/Math.abs(C._rate);(o._endTimers[E[y]]||!C._paused)&&(o._clearTimer(E[y]),o._endTimers[E[y]]=setTimeout(o._ended.bind(o,C),S)),o._emit("rate",C._id)}}else return C=o._soundById(E),C?C._rate:o._rate;return o},seek:function(){var o=this,h=arguments,c,E;if(h.length===0)o._sounds.length&&(E=o._sounds[0]._id);else if(h.length===1){var f=o._getSoundIds(),Q=f.indexOf(h[0]);Q>=0?E=parseInt(h[0],10):o._sounds.length&&(E=o._sounds[0]._id,c=parseFloat(h[0]))}else h.length===2&&(c=parseFloat(h[0]),E=parseInt(h[1],10));if(typeof E>"u")return 0;if(typeof c=="number"&&(o._state!=="loaded"||o._playLock))return o._queue.push({event:"seek",action:function(){o.seek.apply(o,h)}}),o;var C=o._soundById(E);if(C)if(typeof c=="number"&&c>=0){var y=o.playing(E);y&&o.pause(E,!0),C._seek=c,C._ended=!1,o._clearTimer(E),!o._webAudio&&C._node&&!isNaN(C._node.duration)&&(C._node.currentTime=c);var D=function(){y&&o.play(E,!0),o._emit("seek",E)};if(y&&!o._webAudio){var m=function(){o._playLock?setTimeout(m,0):D()};setTimeout(m,0)}else D()}else if(o._webAudio){var S=o.playing(E)?A.ctx.currentTime-C._playStart:0,R=C._rateSeek?C._rateSeek-C._seek:0;return C._seek+(R+S*Math.abs(C._rate))}else return C._node.currentTime;return o},playing:function(o){var h=this;if(typeof o=="number"){var c=h._soundById(o);return c?!c._paused:!1}for(var E=0;E<h._sounds.length;E++)if(!h._sounds[E]._paused)return!0;return!1},duration:function(o){var h=this,c=h._duration,E=h._soundById(o);return E&&(c=h._sprite[E._sprite][1]/1e3),c},state:function(){return this._state},unload:function(){for(var o=this,h=o._sounds,c=0;c<h.length;c++)h[c]._paused||o.stop(h[c]._id),o._webAudio||(o._clearSound(h[c]._node),h[c]._node.removeEventListener("error",h[c]._errorFn,!1),h[c]._node.removeEventListener(A._canPlayEvent,h[c]._loadFn,!1),h[c]._node.removeEventListener("ended",h[c]._endFn,!1),A._releaseHtml5Audio(h[c]._node)),delete h[c]._node,o._clearTimer(h[c]._id);var E=A._howls.indexOf(o);E>=0&&A._howls.splice(E,1);var f=!0;for(c=0;c<A._howls.length;c++)if(A._howls[c]._src===o._src||o._src.indexOf(A._howls[c]._src)>=0){f=!1;break}return f&&delete s[o._src],A.noAudio=!1,o._state="unloaded",o._sounds=[],o=null,null},on:function(o,h,c,E){var f=this,Q=f["_on"+o];return typeof h=="function"&&Q.push(E?{id:c,fn:h,once:E}:{id:c,fn:h}),f},off:function(o,h,c){var E=this,f=E["_on"+o],Q=0;if(typeof h=="number"&&(c=h,h=null),h||c)for(Q=0;Q<f.length;Q++){var C=c===f[Q].id;if(h===f[Q].fn&&C||!h&&C){f.splice(Q,1);break}}else if(o)E["_on"+o]=[];else{var y=Object.keys(E);for(Q=0;Q<y.length;Q++)y[Q].indexOf("_on")===0&&Array.isArray(E[y[Q]])&&(E[y[Q]]=[])}return E},once:function(o,h,c){var E=this;return E.on(o,h,c,1),E},_emit:function(o,h,c){for(var E=this,f=E["_on"+o],Q=f.length-1;Q>=0;Q--)(!f[Q].id||f[Q].id===h||o==="load")&&(setTimeout((function(C){C.call(this,h,c)}).bind(E,f[Q].fn),0),f[Q].once&&E.off(o,f[Q].fn,f[Q].id));return E._loadQueue(o),E},_loadQueue:function(o){var h=this;if(h._queue.length>0){var c=h._queue[0];c.event===o&&(h._queue.shift(),h._loadQueue()),o||c.action()}return h},_ended:function(o){var h=this,c=o._sprite;if(!h._webAudio&&o._node&&!o._node.paused&&!o._node.ended&&o._node.currentTime<o._stop)return setTimeout(h._ended.bind(h,o),100),h;var E=!!(o._loop||h._sprite[c][2]);if(h._emit("end",o._id),!h._webAudio&&E&&h.stop(o._id,!0).play(o._id),h._webAudio&&E){h._emit("play",o._id),o._seek=o._start||0,o._rateSeek=0,o._playStart=A.ctx.currentTime;var f=(o._stop-o._start)*1e3/Math.abs(o._rate);h._endTimers[o._id]=setTimeout(h._ended.bind(h,o),f)}return h._webAudio&&!E&&(o._paused=!0,o._ended=!0,o._seek=o._start||0,o._rateSeek=0,h._clearTimer(o._id),h._cleanBuffer(o._node),A._autoSuspend()),!h._webAudio&&!E&&h.stop(o._id,!0),h},_clearTimer:function(o){var h=this;if(h._endTimers[o]){if(typeof h._endTimers[o]!="function")clearTimeout(h._endTimers[o]);else{var c=h._soundById(o);c&&c._node&&c._node.removeEventListener("ended",h._endTimers[o],!1)}delete h._endTimers[o]}return h},_soundById:function(o){for(var h=this,c=0;c<h._sounds.length;c++)if(o===h._sounds[c]._id)return h._sounds[c];return null},_inactiveSound:function(){var o=this;o._drain();for(var h=0;h<o._sounds.length;h++)if(o._sounds[h]._ended)return o._sounds[h].reset();return new n(o)},_drain:function(){var o=this,h=o._pool,c=0,E=0;if(!(o._sounds.length<h)){for(E=0;E<o._sounds.length;E++)o._sounds[E]._ended&&c++;for(E=o._sounds.length-1;E>=0;E--){if(c<=h)return;o._sounds[E]._ended&&(o._webAudio&&o._sounds[E]._node&&o._sounds[E]._node.disconnect(0),o._sounds.splice(E,1),c--)}}},_getSoundIds:function(o){var h=this;if(typeof o>"u"){for(var c=[],E=0;E<h._sounds.length;E++)c.push(h._sounds[E]._id);return c}else return[o]},_refreshBuffer:function(o){var h=this;return o._node.bufferSource=A.ctx.createBufferSource(),o._node.bufferSource.buffer=s[h._src],o._panner?o._node.bufferSource.connect(o._panner):o._node.bufferSource.connect(o._node),o._node.bufferSource.loop=o._loop,o._loop&&(o._node.bufferSource.loopStart=o._start||0,o._node.bufferSource.loopEnd=o._stop||0),o._node.bufferSource.playbackRate.setValueAtTime(o._rate,A.ctx.currentTime),h},_cleanBuffer:function(o){var h=this,c=A._navigator&&A._navigator.vendor.indexOf("Apple")>=0;if(!o.bufferSource)return h;if(A._scratchBuffer&&o.bufferSource&&(o.bufferSource.onended=null,o.bufferSource.disconnect(0),c))try{o.bufferSource.buffer=A._scratchBuffer}catch{}return o.bufferSource=null,h},_clearSound:function(o){var h=/MSIE |Trident\//.test(A._navigator&&A._navigator.userAgent);h||(o.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(o){this._parent=o,this.init()};n.prototype={init:function(){var o=this,h=o._parent;return o._muted=h._muted,o._loop=h._loop,o._volume=h._volume,o._rate=h._rate,o._seek=0,o._paused=!0,o._ended=!0,o._sprite="__default",o._id=++A._counter,h._sounds.push(o),o.create(),o},create:function(){var o=this,h=o._parent,c=A._muted||o._muted||o._parent._muted?0:o._volume;return h._webAudio?(o._node=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),o._node.gain.setValueAtTime(c,A.ctx.currentTime),o._node.paused=!0,o._node.connect(A.masterGain)):A.noAudio||(o._node=A._obtainHtml5Audio(),o._errorFn=o._errorListener.bind(o),o._node.addEventListener("error",o._errorFn,!1),o._loadFn=o._loadListener.bind(o),o._node.addEventListener(A._canPlayEvent,o._loadFn,!1),o._endFn=o._endListener.bind(o),o._node.addEventListener("ended",o._endFn,!1),o._node.src=h._src,o._node.preload=h._preload===!0?"auto":h._preload,o._node.volume=c*A.volume(),o._node.load()),o},reset:function(){var o=this,h=o._parent;return o._muted=h._muted,o._loop=h._loop,o._volume=h._volume,o._rate=h._rate,o._seek=0,o._rateSeek=0,o._paused=!0,o._ended=!0,o._sprite="__default",o._id=++A._counter,o},_errorListener:function(){var o=this;o._parent._emit("loaderror",o._id,o._node.error?o._node.error.code:0),o._node.removeEventListener("error",o._errorFn,!1)},_loadListener:function(){var o=this,h=o._parent;h._duration=Math.ceil(o._node.duration*10)/10,Object.keys(h._sprite).length===0&&(h._sprite={__default:[0,h._duration*1e3]}),h._state!=="loaded"&&(h._state="loaded",h._emit("load"),h._loadQueue()),o._node.removeEventListener(A._canPlayEvent,o._loadFn,!1)},_endListener:function(){var o=this,h=o._parent;h._duration===1/0&&(h._duration=Math.ceil(o._node.duration*10)/10,h._sprite.__default[1]===1/0&&(h._sprite.__default[1]=h._duration*1e3),h._ended(o)),o._node.removeEventListener("ended",o._endFn,!1)}};var s={},a=function(o){var h=o._src;if(s[h]){o._duration=s[h].duration,l(o);return}if(/^data:[^;]+;base64,/.test(h)){for(var c=atob(h.split(",")[1]),E=new Uint8Array(c.length),f=0;f<c.length;++f)E[f]=c.charCodeAt(f);r(E.buffer,o)}else{var Q=new XMLHttpRequest;Q.open(o._xhr.method,h,!0),Q.withCredentials=o._xhr.withCredentials,Q.responseType="arraybuffer",o._xhr.headers&&Object.keys(o._xhr.headers).forEach(function(C){Q.setRequestHeader(C,o._xhr.headers[C])}),Q.onload=function(){var C=(Q.status+"")[0];if(C!=="0"&&C!=="2"&&C!=="3"){o._emit("loaderror",null,"Failed loading audio file with status: "+Q.status+".");return}r(Q.response,o)},Q.onerror=function(){o._webAudio&&(o._html5=!0,o._webAudio=!1,o._sounds=[],delete s[h],o.load())},g(Q)}},g=function(o){try{o.send()}catch{o.onerror()}},r=function(o,h){var c=function(){h._emit("loaderror",null,"Decoding audio data failed.")},E=function(f){f&&h._sounds.length>0?(s[h._src]=f,l(h,f)):c()};typeof Promise<"u"&&A.ctx.decodeAudioData.length===1?A.ctx.decodeAudioData(o).then(E).catch(c):A.ctx.decodeAudioData(o,E,c)},l=function(o,h){h&&!o._duration&&(o._duration=h.duration),Object.keys(o._sprite).length===0&&(o._sprite={__default:[0,o._duration*1e3]}),o._state!=="loaded"&&(o._state="loaded",o._emit("load"),o._loadQueue())},I=function(){if(A.usingWebAudio){try{typeof AudioContext<"u"?A.ctx=new AudioContext:typeof webkitAudioContext<"u"?A.ctx=new webkitAudioContext:A.usingWebAudio=!1}catch{A.usingWebAudio=!1}A.ctx||(A.usingWebAudio=!1);var o=/iP(hone|od|ad)/.test(A._navigator&&A._navigator.platform),h=A._navigator&&A._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),c=h?parseInt(h[1],10):null;if(o&&c&&c<9){var E=/safari/.test(A._navigator&&A._navigator.userAgent.toLowerCase());A._navigator&&!E&&(A.usingWebAudio=!1)}A.usingWebAudio&&(A.masterGain=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),A.masterGain.gain.setValueAtTime(A._muted?0:A._volume,A.ctx.currentTime),A.masterGain.connect(A.ctx.destination)),A._setup()}};e.Howler=A,e.Howl=i,typeof jA<"u"?(jA.HowlerGlobal=t,jA.Howler=A,jA.Howl=i,jA.Sound=n):typeof window<"u"&&(window.HowlerGlobal=t,window.Howler=A,window.Howl=i,window.Sound=n)})();/*!
|
|
12
12
|
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
|
|
13
13
|
*
|
|
14
14
|
* howler.js v2.2.4
|
|
@@ -18,12 +18,12 @@ var CanvasEngine=function(x,m){"use strict";var tc=Object.defineProperty;var er=
|
|
|
18
18
|
* goldfirestudios.com
|
|
19
19
|
*
|
|
20
20
|
* MIT License
|
|
21
|
-
*/(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(A){var i=this;if(!i.ctx||!i.ctx.listener)return i;for(var n=i._howls.length-1;n>=0;n--)i._howls[n].stereo(A);return i},HowlerGlobal.prototype.pos=function(A,i,n){var s=this;if(!s.ctx||!s.ctx.listener)return s;if(i=typeof i!="number"?s._pos[1]:i,n=typeof n!="number"?s._pos[2]:n,typeof A=="number")s._pos=[A,i,n],typeof s.ctx.listener.positionX<"u"?(s.ctx.listener.positionX.setTargetAtTime(s._pos[0],Howler.ctx.currentTime,.1),s.ctx.listener.positionY.setTargetAtTime(s._pos[1],Howler.ctx.currentTime,.1),s.ctx.listener.positionZ.setTargetAtTime(s._pos[2],Howler.ctx.currentTime,.1)):s.ctx.listener.setPosition(s._pos[0],s._pos[1],s._pos[2]);else return s._pos;return s},HowlerGlobal.prototype.orientation=function(A,i,n,s,a,o){var h=this;if(!h.ctx||!h.ctx.listener)return h;var l=h._orientation;if(i=typeof i!="number"?l[1]:i,n=typeof n!="number"?l[2]:n,s=typeof s!="number"?l[3]:s,a=typeof a!="number"?l[4]:a,o=typeof o!="number"?l[5]:o,typeof A=="number")h._orientation=[A,i,n,s,a,o],typeof h.ctx.listener.forwardX<"u"?(h.ctx.listener.forwardX.setTargetAtTime(A,Howler.ctx.currentTime,.1),h.ctx.listener.forwardY.setTargetAtTime(i,Howler.ctx.currentTime,.1),h.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),h.ctx.listener.upX.setTargetAtTime(s,Howler.ctx.currentTime,.1),h.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),h.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):h.ctx.listener.setOrientation(A,i,n,s,a,o);else return l;return h},Howl.prototype.init=function(A){return function(i){var n=this;return n._orientation=i.orientation||[1,0,0],n._stereo=i.stereo||null,n._pos=i.pos||null,n._pannerAttr={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:360,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:360,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:0,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:"inverse",maxDistance:typeof i.maxDistance<"u"?i.maxDistance:1e4,panningModel:typeof i.panningModel<"u"?i.panningModel:"HRTF",refDistance:typeof i.refDistance<"u"?i.refDistance:1,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:1},n._onstereo=i.onstereo?[{fn:i.onstereo}]:[],n._onpos=i.onpos?[{fn:i.onpos}]:[],n._onorientation=i.onorientation?[{fn:i.onorientation}]:[],A.call(this,i)}}(Howl.prototype.init),Howl.prototype.stereo=function(A,i){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"stereo",action:function(){n.stereo(A,i)}}),n;var s=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof i>"u")if(typeof A=="number")n._stereo=A,n._pos=[A,0,0];else return n._stereo;for(var a=n._getSoundIds(i),o=0;o<a.length;o++){var h=n._soundById(a[o]);if(h)if(typeof A=="number")h._stereo=A,h._pos=[A,0,0],h._node&&(h._pannerAttr.panningModel="equalpower",(!h._panner||!h._panner.pan)&&t(h,s),s==="spatial"?typeof h._panner.positionX<"u"?(h._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),h._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),h._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):h._panner.setPosition(A,0,0):h._panner.pan.setValueAtTime(A,Howler.ctx.currentTime)),n._emit("stereo",h._id);else return h._stereo}return n},Howl.prototype.pos=function(A,i,n,s){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"pos",action:function(){a.pos(A,i,n,s)}}),a;if(i=typeof i!="number"?0:i,n=typeof n!="number"?-.5:n,typeof s>"u")if(typeof A=="number")a._pos=[A,i,n];else return a._pos;for(var o=a._getSoundIds(s),h=0;h<o.length;h++){var l=a._soundById(o[h]);if(l)if(typeof A=="number")l._pos=[A,i,n],l._node&&((!l._panner||l._panner.pan)&&t(l,"spatial"),typeof l._panner.positionX<"u"?(l._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(i,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):l._panner.setPosition(A,i,n)),a._emit("pos",l._id);else return l._pos}return a},Howl.prototype.orientation=function(A,i,n,s){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"orientation",action:function(){a.orientation(A,i,n,s)}}),a;if(i=typeof i!="number"?a._orientation[1]:i,n=typeof n!="number"?a._orientation[2]:n,typeof s>"u")if(typeof A=="number")a._orientation=[A,i,n];else return a._orientation;for(var o=a._getSoundIds(s),h=0;h<o.length;h++){var l=a._soundById(o[h]);if(l)if(typeof A=="number")l._orientation=[A,i,n],l._node&&(l._panner||(l._pos||(l._pos=a._pos||[0,0,-.5]),t(l,"spatial")),typeof l._panner.orientationX<"u"?(l._panner.orientationX.setValueAtTime(A,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(i,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):l._panner.setOrientation(A,i,n)),a._emit("orientation",l._id);else return l._orientation}return a},Howl.prototype.pannerAttr=function(){var A=this,i=arguments,n,s,a;if(!A._webAudio)return A;if(i.length===0)return A._pannerAttr;if(i.length===1)if(typeof i[0]=="object")n=i[0],typeof s>"u"&&(n.pannerAttr||(n.pannerAttr={coneInnerAngle:n.coneInnerAngle,coneOuterAngle:n.coneOuterAngle,coneOuterGain:n.coneOuterGain,distanceModel:n.distanceModel,maxDistance:n.maxDistance,refDistance:n.refDistance,rolloffFactor:n.rolloffFactor,panningModel:n.panningModel}),A._pannerAttr={coneInnerAngle:typeof n.pannerAttr.coneInnerAngle<"u"?n.pannerAttr.coneInnerAngle:A._coneInnerAngle,coneOuterAngle:typeof n.pannerAttr.coneOuterAngle<"u"?n.pannerAttr.coneOuterAngle:A._coneOuterAngle,coneOuterGain:typeof n.pannerAttr.coneOuterGain<"u"?n.pannerAttr.coneOuterGain:A._coneOuterGain,distanceModel:typeof n.pannerAttr.distanceModel<"u"?n.pannerAttr.distanceModel:A._distanceModel,maxDistance:typeof n.pannerAttr.maxDistance<"u"?n.pannerAttr.maxDistance:A._maxDistance,refDistance:typeof n.pannerAttr.refDistance<"u"?n.pannerAttr.refDistance:A._refDistance,rolloffFactor:typeof n.pannerAttr.rolloffFactor<"u"?n.pannerAttr.rolloffFactor:A._rolloffFactor,panningModel:typeof n.pannerAttr.panningModel<"u"?n.pannerAttr.panningModel:A._panningModel});else return a=A._soundById(parseInt(i[0],10)),a?a._pannerAttr:A._pannerAttr;else i.length===2&&(n=i[0],s=parseInt(i[1],10));for(var o=A._getSoundIds(s),h=0;h<o.length;h++)if(a=A._soundById(o[h]),a){var l=a._pannerAttr;l={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:l.coneInnerAngle,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:l.coneOuterAngle,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:l.coneOuterGain,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:l.distanceModel,maxDistance:typeof n.maxDistance<"u"?n.maxDistance:l.maxDistance,refDistance:typeof n.refDistance<"u"?n.refDistance:l.refDistance,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:l.rolloffFactor,panningModel:typeof n.panningModel<"u"?n.panningModel:l.panningModel};var B=a._panner;B||(a._pos||(a._pos=A._pos||[0,0,-.5]),t(a,"spatial"),B=a._panner),B.coneInnerAngle=l.coneInnerAngle,B.coneOuterAngle=l.coneOuterAngle,B.coneOuterGain=l.coneOuterGain,B.distanceModel=l.distanceModel,B.maxDistance=l.maxDistance,B.refDistance=l.refDistance,B.rolloffFactor=l.rolloffFactor,B.panningModel=l.panningModel}return A},Sound.prototype.init=function(A){return function(){var i=this,n=i._parent;i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,A.call(this),i._stereo?n.stereo(i._stereo):i._pos&&n.pos(i._pos[0],i._pos[1],i._pos[2],i._id)}}(Sound.prototype.init),Sound.prototype.reset=function(A){return function(){var i=this,n=i._parent;return i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,i._stereo?n.stereo(i._stereo):i._pos?n.pos(i._pos[0],i._pos[1],i._pos[2],i._id):i._panner&&(i._panner.disconnect(0),i._panner=void 0,n._refreshBuffer(i)),A.call(this)}}(Sound.prototype.reset);var t=function(A,i){i=i||"spatial",i==="spatial"?(A._panner=Howler.ctx.createPanner(),A._panner.coneInnerAngle=A._pannerAttr.coneInnerAngle,A._panner.coneOuterAngle=A._pannerAttr.coneOuterAngle,A._panner.coneOuterGain=A._pannerAttr.coneOuterGain,A._panner.distanceModel=A._pannerAttr.distanceModel,A._panner.maxDistance=A._pannerAttr.maxDistance,A._panner.refDistance=A._pannerAttr.refDistance,A._panner.rolloffFactor=A._pannerAttr.rolloffFactor,A._panner.panningModel=A._pannerAttr.panningModel,typeof A._panner.positionX<"u"?(A._panner.positionX.setValueAtTime(A._pos[0],Howler.ctx.currentTime),A._panner.positionY.setValueAtTime(A._pos[1],Howler.ctx.currentTime),A._panner.positionZ.setValueAtTime(A._pos[2],Howler.ctx.currentTime)):A._panner.setPosition(A._pos[0],A._pos[1],A._pos[2]),typeof A._panner.orientationX<"u"?(A._panner.orientationX.setValueAtTime(A._orientation[0],Howler.ctx.currentTime),A._panner.orientationY.setValueAtTime(A._orientation[1],Howler.ctx.currentTime),A._panner.orientationZ.setValueAtTime(A._orientation[2],Howler.ctx.currentTime)):A._panner.setOrientation(A._orientation[0],A._orientation[1],A._orientation[2])):(A._panner=Howler.ctx.createStereoPanner(),A._panner.pan.setValueAtTime(A._stereo,Howler.ctx.currentTime)),A._panner.connect(A._node),A._paused||A._parent.pause(A._id,!0).play(A._id,!0)}})()})($t);const Ca=nr({__proto__:null,default:Ea($t)},[$t]),cs=["load","loaderror","playerror","play","end","pause","stop","mute","volume","rate","seek","fade","unlock"];let Is=class extends kt{constructor(){super(...arguments),this.sounds=[],this.eventsFn=[],this.maxVolume=1,this.maxDistance=100}onInit(t){}onMount(t){const{props:A}=t,i=A.context.tick,n=A.sound.value??A.sound;if(!n.src)return;const{src:s,autoplay:a,loop:o,volume:h,spatial:l}=n,B=Array.isArray(s)?s:[s];for(const r of B){if(!r)continue;const g=new $t.Howl({src:r,autoplay:a,loop:o,volume:h});for(let c of cs){if(!n[c])continue;const E=n[c];this.eventsFn.push(E),g.on(c,E)}this.sounds.push(g)}if(l&&this.sounds.length>0){const{soundListenerPosition:r}=A.context;if(!r)throw new ze("SoundListenerPosition directive is required for spatial sound in component parent");const{x:g,y:c}=r;this.tickSubscription=et(()=>{i();const{x:E,y:C}=t.componentInstance,Q=$n(E,C,g(),c()),f=Math.max(this.maxVolume-Q/this.maxDistance,0);this.sounds.forEach(y=>y.volume(f))}).subscription}this.onUpdate(n)}onUpdate(t){const A=t.value??t,{volume:i,loop:n,mute:s,seek:a,playing:o,rate:h,spatial:l}=A;this.sounds.forEach(B=>{i!==void 0&&B.volume(i),n!==void 0&&B.loop(n),s!==void 0&&B.mute(s),a!==void 0&&B.seek(a),o!==void 0&&(o?B.play():B.pause()),h!==void 0&&B.rate(h)}),l&&(this.maxVolume=l.maxVolume??this.maxVolume,this.maxDistance=l.maxDistance??this.maxDistance)}onDestroy(){var t;this.sounds.forEach(A=>{A.stop();for(let i of cs){const n=this.eventsFn.find(s=>s===this.eventsFn[i]);n&&A.off(i,n)}}),this.sounds=[],this.eventsFn=[],(t=this.tickSubscription)==null||t.unsubscribe()}};class fa extends kt{onMount(t){var A;t.props.context.soundListenerPosition=(A=t.propObservables)==null?void 0:A.soundListenerPosition}onInit(t){}onUpdate(t){}onDestroy(){}}Mt("sound",Is),Mt("soundListenerPosition",fa);function us(e,t){var A={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(A[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(A[i[n]]=e[i[n]]);return A}var Bs=function(){};const ai=(e,t,A)=>Math.min(Math.max(A,e),t),gi=.001,Qa=.01,da=10,pa=.05,ya=1;function wa({duration:e=800,bounce:t=.25,velocity:A=0,mass:i=1}){let n,s,a=1-t;a=ai(pa,ya,a),e=ai(Qa,da,e/1e3),a<1?(n=l=>{const B=l*a,r=B*e,g=B-A,c=hi(l,a),E=Math.exp(-r);return gi-g/c*E},s=l=>{const r=l*a*e,g=r*A+A,c=Math.pow(a,2)*Math.pow(l,2)*e,E=Math.exp(-r),C=hi(Math.pow(l,2),a);return(-n(l)+gi>0?-1:1)*((g-c)*E)/C}):(n=l=>{const B=Math.exp(-l*e),r=(l-A)*e+1;return-gi+B*r},s=l=>{const B=Math.exp(-l*e),r=(A-l)*(e*e);return B*r});const o=5/e,h=Da(n,s,o);if(e=e*1e3,isNaN(h))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(h,2)*i;return{stiffness:l,damping:a*2*Math.sqrt(i*l),duration:e}}}const ma=12;function Da(e,t,A){let i=A;for(let n=1;n<ma;n++)i=i-e(i)/t(i);return i}function hi(e,t){return e*Math.sqrt(1-t*t)}const va=["duration","bounce"],Sa=["stiffness","damping","mass"];function Es(e,t){return t.some(A=>e[A]!==void 0)}function xa(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Es(e,Sa)&&Es(e,va)){const A=wa(e);t=Object.assign(Object.assign(Object.assign({},t),A),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function li(e){var{from:t=0,to:A=1,restSpeed:i=2,restDelta:n}=e,s=us(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:o,damping:h,mass:l,velocity:B,duration:r,isResolvedFromDuration:g}=xa(s),c=Cs,E=Cs;function C(){const Q=B?-(B/1e3):0,f=A-t,y=h/(2*Math.sqrt(o*l)),D=Math.sqrt(o/l)/1e3;if(n===void 0&&(n=Math.min(Math.abs(A-t)/100,.4)),y<1){const b=hi(D,y);c=S=>{const F=Math.exp(-y*D*S);return A-F*((Q+y*D*f)/b*Math.sin(b*S)+f*Math.cos(b*S))},E=S=>{const F=Math.exp(-y*D*S);return y*D*F*(Math.sin(b*S)*(Q+y*D*f)/b+f*Math.cos(b*S))-F*(Math.cos(b*S)*(Q+y*D*f)-b*f*Math.sin(b*S))}}else if(y===1)c=b=>A-Math.exp(-D*b)*(f+(Q+D*f)*b);else{const b=D*Math.sqrt(y*y-1);c=S=>{const F=Math.exp(-y*D*S),U=Math.min(b*S,300);return A-F*((Q+y*D*f)*Math.sinh(U)+b*f*Math.cosh(U))/b}}}return C(),{next:Q=>{const f=c(Q);if(g)a.done=Q>=r;else{const y=E(Q)*1e3,D=Math.abs(y)<=i,b=Math.abs(A-f)<=n;a.done=D&&b}return a.value=a.done?A:f,a},flipTarget:()=>{B=-B,[t,A]=[A,t],C()}}}li.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Cs=e=>0,fs=(e,t,A)=>{const i=t-e;return i===0?1:(A-e)/i},ci=(e,t,A)=>-A*e+A*t+e,Qs=(e,t)=>A=>Math.max(Math.min(A,t),e),HA=e=>e%1?Number(e.toFixed(5)):e,Ie=/(-)?([\d]*\.?[\d])+/g,Ii=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ba=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function LA(e){return typeof e=="string"}const ue={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ds=Object.assign(Object.assign({},ue),{transform:Qs(0,1)});Object.assign(Object.assign({},ue),{default:1});const UA=(e=>({test:t=>LA(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}))("%");Object.assign(Object.assign({},UA),{parse:e=>UA.parse(e)/100,transform:e=>UA.transform(e*100)});const ui=(e,t)=>A=>!!(LA(A)&&ba.test(A)&&A.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(A,t)),ps=(e,t,A)=>i=>{if(!LA(i))return i;const[n,s,a,o]=i.match(Ie);return{[e]:parseFloat(n),[t]:parseFloat(s),[A]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},tA={test:ui("hsl","hue"),parse:ps("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:A,alpha:i=1})=>"hsla("+Math.round(e)+", "+UA.transform(HA(t))+", "+UA.transform(HA(A))+", "+HA(ds.transform(i))+")"},ka=Qs(0,255),Bi=Object.assign(Object.assign({},ue),{transform:e=>Math.round(ka(e))}),Wt={test:ui("rgb","red"),parse:ps("red","green","blue"),transform:({red:e,green:t,blue:A,alpha:i=1})=>"rgba("+Bi.transform(e)+", "+Bi.transform(t)+", "+Bi.transform(A)+", "+HA(ds.transform(i))+")"};function Ma(e){let t="",A="",i="",n="";return e.length>5?(t=e.substr(1,2),A=e.substr(3,2),i=e.substr(5,2),n=e.substr(7,2)):(t=e.substr(1,1),A=e.substr(2,1),i=e.substr(3,1),n=e.substr(4,1),t+=t,A+=A,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(A,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}const Ei={test:ui("#"),parse:Ma,transform:Wt.transform},Be={test:e=>Wt.test(e)||Ei.test(e)||tA.test(e),parse:e=>Wt.test(e)?Wt.parse(e):tA.test(e)?tA.parse(e):Ei.parse(e),transform:e=>LA(e)?e:e.hasOwnProperty("red")?Wt.transform(e):tA.transform(e)},ys="${c}",ws="${n}";function Ra(e){var t,A,i,n;return isNaN(e)&&LA(e)&&((A=(t=e.match(Ie))===null||t===void 0?void 0:t.length)!==null&&A!==void 0?A:0)+((n=(i=e.match(Ii))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function ms(e){typeof e=="number"&&(e=`${e}`);const t=[];let A=0;const i=e.match(Ii);i&&(A=i.length,e=e.replace(Ii,ys),t.push(...i.map(Be.parse)));const n=e.match(Ie);return n&&(e=e.replace(Ie,ws),t.push(...n.map(ue.parse))),{values:t,numColors:A,tokenised:e}}function Ds(e){return ms(e).values}function vs(e){const{values:t,numColors:A,tokenised:i}=ms(e),n=t.length;return s=>{let a=i;for(let o=0;o<n;o++)a=a.replace(o<A?ys:ws,o<A?Be.transform(s[o]):HA(s[o]));return a}}const _a=e=>typeof e=="number"?0:e;function Fa(e){const t=Ds(e);return vs(e)(t.map(_a))}const Ss={test:Ra,parse:Ds,createTransformer:vs,getAnimatableNone:Fa};function Ci(e,t,A){return A<0&&(A+=1),A>1&&(A-=1),A<.16666666666666666?e+(t-e)*6*A:A<.5?t:A<.6666666666666666?e+(t-e)*(.6666666666666666-A)*6:e}function xs({hue:e,saturation:t,lightness:A,alpha:i}){e/=360,t/=100,A/=100;let n=0,s=0,a=0;if(!t)n=s=a=A;else{const o=A<.5?A*(1+t):A+t-A*t,h=2*A-o;n=Ci(h,o,e+.3333333333333333),s=Ci(h,o,e),a=Ci(h,o,e-.3333333333333333)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:i}}const Ga=(e,t,A)=>{const i=e*e,n=t*t;return Math.sqrt(Math.max(0,A*(n-i)+i))},Na=[Ei,Wt,tA],bs=e=>Na.find(t=>t.test(e)),ks=(e,t)=>{let A=bs(e),i=bs(t),n=A.parse(e),s=i.parse(t);A===tA&&(n=xs(n),A=Wt),i===tA&&(s=xs(s),i=Wt);const a=Object.assign({},n);return o=>{for(const h in a)h!=="alpha"&&(a[h]=Ga(n[h],s[h],o));return a.alpha=ci(n.alpha,s.alpha,o),A.transform(a)}},Ha=e=>typeof e=="number",La=(e,t)=>A=>t(e(A)),Ms=(...e)=>e.reduce(La);function Rs(e,t){return Ha(e)?A=>ci(e,t,A):Be.test(e)?ks(e,t):Gs(e,t)}const _s=(e,t)=>{const A=[...e],i=A.length,n=e.map((s,a)=>Rs(s,t[a]));return s=>{for(let a=0;a<i;a++)A[a]=n[a](s);return A}},Ua=(e,t)=>{const A=Object.assign(Object.assign({},e),t),i={};for(const n in A)e[n]!==void 0&&t[n]!==void 0&&(i[n]=Rs(e[n],t[n]));return n=>{for(const s in i)A[s]=i[s](n);return A}};function Fs(e){const t=Ss.parse(e),A=t.length;let i=0,n=0,s=0;for(let a=0;a<A;a++)i||typeof t[a]=="number"?i++:t[a].hue!==void 0?s++:n++;return{parsed:t,numNumbers:i,numRGB:n,numHSL:s}}const Gs=(e,t)=>{const A=Ss.createTransformer(t),i=Fs(e),n=Fs(t);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Ms(_s(i.parsed,n.parsed),A):a=>`${a>0?t:e}`},Oa=(e,t)=>A=>ci(e,t,A);function Ta(e){if(typeof e=="number")return Oa;if(typeof e=="string")return Be.test(e)?ks:Gs;if(Array.isArray(e))return _s;if(typeof e=="object")return Ua}function Ja(e,t,A){const i=[],n=A||Ta(e[0]),s=e.length-1;for(let a=0;a<s;a++){let o=n(e[a],e[a+1]);if(t){const h=Array.isArray(t)?t[a]:t;o=Ms(h,o)}i.push(o)}return i}function Pa([e,t],[A]){return i=>A(fs(e,t,i))}function Ka(e,t){const A=e.length,i=A-1;return n=>{let s=0,a=!1;if(n<=e[0]?a=!0:n>=e[i]&&(s=i-1,a=!0),!a){let h=1;for(;h<A&&!(e[h]>n||h===i);h++);s=h-1}const o=fs(e[s],e[s+1],n);return t[s](o)}}function Ns(e,t,{clamp:A=!0,ease:i,mixer:n}={}){const s=e.length;Bs(s===t.length),Bs(!i||!Array.isArray(i)||i.length===s-1),e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=Ja(t,i,n),o=s===2?Pa(e,a):Ka(e,a);return A?h=>o(ai(e[0],e[s-1],h)):o}const Ee=e=>t=>1-e(1-t),fi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ya=e=>t=>Math.pow(t,e),Hs=e=>t=>t*t*((e+1)*t-e),Wa=e=>{const t=Hs(e);return A=>(A*=2)<1?.5*t(A):.5*(2-Math.pow(2,-10*(A-1)))},Ls=1.525,ja=4/11,qa=8/11,Va=9/10,Xa=e=>e,Qi=Ya(2),Za=Ee(Qi),Us=fi(Qi),Os=e=>1-Math.sin(Math.acos(e)),Ts=Ee(Os),za=fi(Ts),di=Hs(Ls),$a=Ee(di),tg=fi(di),Ag=Wa(Ls),eg=4356/361,ig=35442/1805,ng=16061/1805,Ce=e=>{if(e===1||e===0)return e;const t=e*e;return e<ja?7.5625*t:e<qa?9.075*t-9.9*e+3.4:e<Va?eg*t-ig*e+ng:10.8*e*e-20.52*e+10.72},sg=Ee(Ce),og=e=>e<.5?.5*(1-Ce(1-e*2)):.5*Ce(e*2-1)+.5;function rg(e,t){return e.map(()=>t||Us).splice(0,e.length-1)}function ag(e){const t=e.length;return e.map((A,i)=>i!==0?i/(t-1):0)}function gg(e,t){return e.map(A=>A*t)}function fe({from:e=0,to:t=1,ease:A,offset:i,duration:n=300}){const s={done:!1,value:e},a=Array.isArray(t)?t:[e,t],o=gg(i&&i.length===a.length?i:ag(a),n);function h(){return Ns(o,a,{ease:Array.isArray(A)?A:rg(a,A)})}let l=h();return{next:B=>(s.value=l(B),s.done=B>=n,s),flipTarget:()=>{a.reverse(),l=h()}}}function hg({velocity:e=0,from:t=0,power:A=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){const a={done:!1,value:t};let o=A*e;const h=t+o,l=s===void 0?h:s(h);return l!==h&&(o=l-t),{next:B=>{const r=-o*Math.exp(-B/i);return a.done=!(r>n||r<-n),a.value=a.done?l:l+r,a},flipTarget:()=>{}}}const Js={keyframes:fe,spring:li,decay:hg};function lg(e){if(Array.isArray(e.to))return fe;if(Js[e.type])return Js[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?fe:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?li:fe}const Ps=1/60*1e3,cg=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ks=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(cg()),Ps);function Ig(e){let t=[],A=[],i=0,n=!1,s=!1;const a=new WeakSet,o={schedule:(h,l=!1,B=!1)=>{const r=B&&n,g=r?t:A;return l&&a.add(h),g.indexOf(h)===-1&&(g.push(h),r&&n&&(i=t.length)),h},cancel:h=>{const l=A.indexOf(h);l!==-1&&A.splice(l,1),a.delete(h)},process:h=>{if(n){s=!0;return}if(n=!0,[t,A]=[A,t],A.length=0,i=t.length,i)for(let l=0;l<i;l++){const B=t[l];B(h),a.has(B)&&(o.schedule(B),e())}n=!1,s&&(s=!1,o.process(h))}};return o}const ug=40;let pi=!0,OA=!1,yi=!1;const TA={delta:0,timestamp:0},JA=["read","update","preRender","render","postRender"],Qe=JA.reduce((e,t)=>(e[t]=Ig(()=>OA=!0),e),{}),Bg=JA.reduce((e,t)=>{const A=Qe[t];return e[t]=(i,n=!1,s=!1)=>(OA||fg(),A.schedule(i,n,s)),e},{}),Eg=JA.reduce((e,t)=>(e[t]=Qe[t].cancel,e),{});JA.reduce((e,t)=>(e[t]=()=>Qe[t].process(TA),e),{});const Cg=e=>Qe[e].process(TA),Ys=e=>{OA=!1,TA.delta=pi?Ps:Math.max(Math.min(e-TA.timestamp,ug),1),TA.timestamp=e,yi=!0,JA.forEach(Cg),yi=!1,OA&&(pi=!1,Ks(Ys))},fg=()=>{OA=!0,pi=!0,yi||Ks(Ys)};function Ws(e,t,A=0){return e-t-A}function Qg(e,t,A=0,i=!0){return i?Ws(t+-e,t,A):t-(e-t)+A}function dg(e,t,A,i){return i?e>=t+A:e<=-A}const pg=e=>{const t=({delta:A})=>e(A);return{start:()=>Bg.update(t,!0),stop:()=>Eg.update(t)}};function js(e){var t,A,{from:i,autoplay:n=!0,driver:s=pg,elapsed:a=0,repeat:o=0,repeatType:h="loop",repeatDelay:l=0,onPlay:B,onStop:r,onComplete:g,onRepeat:c,onUpdate:E}=e,C=us(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:Q}=C,f,y=0,D=C.duration,b,S=!1,F=!0,U;const J=lg(C);!((A=(t=J).needsInterpolation)===null||A===void 0)&&A.call(t,i,Q)&&(U=Ns([0,100],[i,Q],{clamp:!1}),i=0,Q=100);const L=J(Object.assign(Object.assign({},C),{from:i,to:Q}));function it(){y++,h==="reverse"?(F=y%2===0,a=Qg(a,D,l,F)):(a=Ws(a,D,l),h==="mirror"&&L.flipTarget()),S=!1,c&&c()}function Ht(){f.stop(),g&&g()}function nt(X){if(F||(X=-X),a+=X,!S){const Qt=L.next(Math.max(0,a));b=Qt.value,U&&(b=U(b)),S=F?Qt.done:a<=0}E==null||E(b),S&&(y===0&&(D??(D=a)),y<o?dg(a,D,l,F)&&it():Ht())}function rt(){B==null||B(),f=s(nt),f.start()}return n&&rt(),{stop:()=>{r==null||r(),f.stop()}}}const yg=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const A=e.length;return i=>{let n=Math.abs(e[0]-i);for(t=1;t<A;t++){const s=e[t],a=Math.abs(s-i);if(a===0)return s;if(a>n)return e[t-1];if(t===A-1)return s;n=a}}}},wg=(e,t,A)=>{e.props.context={...e.props.context??{},[t]:A}};class qs extends kt{constructor(){super(...arguments),this.elementRef=null}onInit(t){this.elementRef=t}onMount(t){wg(t,"drop",t)}onUpdate(){}onDestroy(){this.elementRef=null}}class Vs extends kt{constructor(){super(...arguments),this.elementRef=null,this.stageRef=null,this.offsetInParent=new m.Point,this.isDragging=!1,this.viewport=null,this.animationFrameId=null,this.lastPointerPosition=new m.Point,this.pressedKeys=new Set,this.pointerIsDown=!1,this.onDragMoveHandler=()=>{},this.onDragEndHandler=()=>{},this.onDragStartHandler=()=>{},this.onKeyDownHandler=()=>{},this.onKeyUpHandler=()=>{},this.subscriptions=[]}onInit(t){this.elementRef=t,this.onDragMoveHandler=this.onDragMove.bind(this),this.onDragEndHandler=this.onDragEnd.bind(this),this.onDragStartHandler=this.onPointerDown.bind(this),this.onKeyDownHandler=this.onKeyDown.bind(this),this.onKeyUpHandler=this.onKeyUp.bind(this)}onMount(t){const{rootElement:A,canvasSize:i,viewport:n,tick:s}=t.props.context,a=t.componentInstance,o=this.dragProps;if(Object.keys(o).length===0){this.onDestroy();return}if(!a||(this.stageRef=A.componentInstance,!this.stageRef))return;this.viewport=n,a.eventMode="static",this.stageRef.eventMode="static";const l=et(()=>{this.stageRef&&(this.stageRef.hitArea=new m.Rectangle(0,0,i().width,i().height))});a.on("pointerdown",this.onDragStartHandler),this.stageRef.on("pointerup",this.onDragEndHandler),this.stageRef.on("pointerupoutside",this.onDragEndHandler),o.keyToPress&&o.keyToPress,window.addEventListener("keydown",this.onKeyDownHandler),window.addEventListener("keyup",this.onKeyUpHandler),this.subscriptions=[s.observable.subscribe(()=>{this.isDragging&&this.viewport&&this.updateViewportPosition(this.lastPointerPosition)}),l.subscription]}get dragProps(){var i;const t=(i=this.elementRef)==null?void 0:i.props.drag,A=It((t==null?void 0:t.value)??t,{snap:0,viewport:{},direction:"all",keyToPress:[]});return A.viewport=It(A.viewport,{edgeThreshold:300,maxSpeed:40}),A}get axis(){const t=this.dragProps.direction(),A={x:!0,y:!0};return t==="x"&&(A.y=!1),t==="y"&&(A.x=!1),A}onDragMove(t){var c,E;if(!this.isDragging||!((c=this.elementRef)!=null&&c.componentInstance)||!this.elementRef.componentInstance.parent)return;const A=this.elementRef.componentInstance,i=A.parent,n=this.dragProps,s=this.elementRef.propObservables,a=yg((n==null?void 0:n.snap())??0);(E=n==null?void 0:n.move)==null||E.call(n,t);const o=i.toLocal(t.global),h=o.x-this.offsetInParent.x,l=o.y-this.offsetInParent.y;n!=null&&n.snap()?(A.position.x=a(h),A.position.y=a(l)):(this.axis.x&&(A.position.x=h),this.axis.y&&(A.position.y=l)),this.lastPointerPosition.copyFrom(t.global);const{x:B,y:r}=s,g=(C,Q)=>{ce(C)?C.dependencies.forEach(f=>{f.set(Q)}):Y(C)&&C.set(Q)};B!==void 0&&g(B,A.position.x),r!==void 0&&g(r,A.position.y)}updateViewportPosition(t){var Q,f;if(!this.viewport||!this.elementRef)return;const A=this.dragProps,i=(Q=A==null?void 0:A.viewport)==null?void 0:Q.edgeThreshold(),n=(f=A==null?void 0:A.viewport)==null?void 0:f.maxSpeed(),s=0,a=this.viewport.screenWidth,o=0,h=this.viewport.screenHeight,l=this.elementRef.componentInstance,B=t.x-s,r=a-t.x,g=t.y-o,c=h-t.y;let E=0,C=0;if(B<i?E=-(n*(1-B/i)):r<i&&(E=n*(1-r/i)),g<i?C=-(n*(1-g/i)):c<i&&(C=n*(1-c/i)),E!==0||C!==0){const y=this.viewport.center;this.viewport.moveCenter(this.viewport.center.x+E,this.viewport.center.y+C),this.axis.x&&y.x!==this.viewport.center.x&&(l.position.x+=E),this.axis.y&&y.y!==this.viewport.center.y&&(l.position.y+=C)}}onDragEnd(){var A;if(this.pointerIsDown=!1,!this.isDragging)return;const t=this.dragProps;this.isDragging=!1,(A=t==null?void 0:t.end)==null||A.call(t),this.stageRef&&this.stageRef.off("pointermove",this.onDragMoveHandler)}onKeyDown(t){this.pressedKeys.add(t.code),this.pressedKeys.add(t.key.toLowerCase()),this.pointerIsDown&&!this.isDragging&&this.areRequiredKeysPressed()&&this.startDrag()}onKeyUp(t){this.pressedKeys.delete(t.code),this.pressedKeys.delete(t.key.toLowerCase()),this.isDragging&&!this.areRequiredKeysPressed()&&this.onDragEnd()}areRequiredKeysPressed(){const t=this.dragProps.keyToPress?this.dragProps.keyToPress:[];return!t||t.length===0?!0:t.some(A=>this.pressedKeys.has(A)?!0:A.toLowerCase()==="space"?this.pressedKeys.has("Space")||this.pressedKeys.has(" "):A.toLowerCase()==="shift"?this.pressedKeys.has("ShiftLeft")||this.pressedKeys.has("ShiftRight"):A.toLowerCase()==="control"||A.toLowerCase()==="ctrl"?this.pressedKeys.has("ControlLeft")||this.pressedKeys.has("ControlRight"):A.toLowerCase()==="alt"?this.pressedKeys.has("AltLeft")||this.pressedKeys.has("AltRight"):!1)}onPointerDown(t){var s;if(!((s=this.elementRef)!=null&&s.componentInstance)||!this.stageRef||!this.elementRef.componentInstance.parent)return;this.pointerIsDown=!0;const A=this.elementRef.componentInstance,n=A.parent.toLocal(t.global);this.offsetInParent.x=n.x-A.position.x,this.offsetInParent.y=n.y-A.position.y,this.lastPointerPosition.copyFrom(t.global),this.areRequiredKeysPressed()&&this.startDrag()}startDrag(){var A;if(this.isDragging||!this.stageRef)return;this.isDragging=!0;const t=this.dragProps;(A=t==null?void 0:t.start)==null||A.call(t),this.stageRef.on("pointermove",this.onDragMoveHandler)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.onMount(this.elementRef))}onDestroy(){var A;this.subscriptions.forEach(i=>i.unsubscribe());const t=(A=this.elementRef)==null?void 0:A.componentInstance;t&&t.off("pointerdown",this.onDragStartHandler),this.stageRef&&(this.stageRef.off("pointermove",this.onDragMoveHandler),this.stageRef.off("pointerup",this.onDragEndHandler),this.stageRef.off("pointerupoutside",this.onDragEndHandler)),window.removeEventListener("keydown",this.onKeyDownHandler),window.removeEventListener("keyup",this.onKeyUpHandler),this.stageRef=null,this.viewport=null,this.pressedKeys.clear(),this.pointerIsDown=!1}}Mt("drag",Vs),Mt("drop",qs);class Xs extends kt{onInit(t){}onMount(t){const{image:A}=t.props.transition,i=new m.Sprite(m.Texture.from(A));i.texture.baseTexture.wrapMode=m.WRAP_MODES.REPEAT;const n=new m.DisplacementFilter(i),s=t.componentInstance;s.filters=[n],s.addChild(i),setTimeout(()=>{js({from:0,to:1,duration:500,onUpdate:a=>{n.scale.x=a,n.scale.y=a}})},5e3)}onUpdate(t){}onDestroy(){}}Mt("transition",Xs);function PA(e){return(e==null?void 0:e.start)&&(e==null?void 0:e.listen)}function mg(e){const t=W({config:e,value:0,resolve:A=>{}});return{start:A=>new Promise(i=>{t.set({config:{...e,...A},resolve:i,value:Math.random()})}),listen:()=>({config:e,seed:t()})}}function de(e,t){if(!PA(e))throw new Error("In 'on(arg)' must have a trigger signal type");et(()=>{const A=e.listen();if(A!=null&&A.seed.value){const i=t(A==null?void 0:A.seed.config);i&&typeof i.then=="function"&&i.then(A==null?void 0:A.seed.resolve)}})}function wi(e){return e.animatedState!==void 0}function mi(e,t={}){const A={current:e,start:e,end:e};let i;const n=W(e),s=W(A);et(()=>{const h=s();n.set(h.current)});function a(h,l={}){if(h===void 0)return s();const B=s(),r={current:B.current,start:B.current,end:h};s.set(r),i&&i.stop(),i=js({duration:20,...t,...l,from:B.current,to:h,onUpdate:g=>{s.update(c=>({...c,current:g})),t.onUpdate&&t.onUpdate(g)}})}const o=function(){return s().current};for(const h in n)o[h]=n[h];return o.animatedState=s,o.update=h=>{a(h(s().current))},o.set=async(h,l={})=>new Promise(B=>{a(h,{...l,onComplete:B})}),o}async function Dg(e){for(const t of e)Array.isArray(t)?await Promise.all(t.map(A=>A())):await t()}class Zs extends kt{constructor(){super(...arguments),this.elementRef=null,this.originalPosition=new m.Point,this.progressSignal=null,this.shakeSubscription=null,this.positionEffect=null,this.currentShakeConfig=null}onInit(t){this.elementRef=t}onMount(t){const A=t.componentInstance;if(!A)return;const i=this.shakeProps;!i.trigger||!PA(i.trigger)||(this.originalPosition.set(A.position.x,A.position.y),this.shakeSubscription=de(i.trigger,async n=>{await this.performShake(n)}))}get shakeProps(){var A;const t=(A=this.elementRef)==null?void 0:A.props.shake;return It((t==null?void 0:t.value)??t,{intensity:10,duration:500,frequency:10,direction:"both"})}async performShake(t){var B,r,g;if(!((B=this.elementRef)!=null&&B.componentInstance))return;const A=this.elementRef.componentInstance,i=this.shakeProps,n=(t==null?void 0:t.intensity)??i.intensity(),s=(t==null?void 0:t.duration)??i.duration(),a=(t==null?void 0:t.frequency)??i.frequency(),o=(t==null?void 0:t.direction)??i.direction();this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.originalPosition.set(A.position.x,A.position.y),A.position.x=this.originalPosition.x,A.position.y=this.originalPosition.y,(r=i.onStart)==null||r.call(i),this.currentShakeConfig={intensity:n,frequency:a,direction:o,randomSeed:Math.random()*1e3},this.progressSignal?(this.progressSignal.set(0,{duration:0}),await new Promise(c=>setTimeout(c,0))):this.progressSignal=mi(0,{duration:s,ease:c=>c});const h=o!=="y",l=o!=="x";this.positionEffect=et(()=>{if(!A||!this.progressSignal||!this.currentShakeConfig)return;const c=this.progressSignal(),E=this.currentShakeConfig,C=1-c,Q=c*E.frequency,f=Math.sin(Q*Math.PI*2),y=Math.sin(E.randomSeed+c*10)*.25+1,D=h?f*E.intensity*C*y:0,b=l?f*E.intensity*C*y:0;A.position.x=this.originalPosition.x+D,A.position.y=this.originalPosition.y+b}).subscription,await this.progressSignal.set(1,{duration:s}),A&&(A.position.x=this.originalPosition.x,A.position.y=this.originalPosition.y),this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.currentShakeConfig=null,(g=i.onComplete)==null||g.call(i)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){var t;if(this.progressSignal&&(this.progressSignal.set(0,{duration:0}),this.progressSignal=null),this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.currentShakeConfig=null,(t=this.elementRef)!=null&&t.componentInstance){const A=this.elementRef.componentInstance;A.position.x=this.originalPosition.x,A.position.y=this.originalPosition.y}this.shakeSubscription&&(this.shakeSubscription=null),this.elementRef=null}}Mt("shake",Zs);class zs extends kt{constructor(){super(...arguments),this.elementRef=null,this.progressSignal=null,this.flashSubscription=null,this.alphaEffect=null,this.tintEffect=null,this.originalAlpha=1,this.originalTint=16777215,this.currentFlashConfig=null}onInit(t){this.elementRef=t}onMount(t){const A=t.componentInstance;if(!A)return;const i=this.flashProps;if(!i.trigger||!PA(i.trigger))return;this.originalAlpha===1&&!i.originalAlpha?this.originalAlpha=A.alpha??1:i.originalAlpha!==void 0&&(this.originalAlpha=i.originalAlpha);const n=A.tint;this.originalTint===16777215&&!i.originalTint?this.originalTint=(Y(n)?n():n)??16777215:i.originalTint!==void 0&&(this.originalTint=i.originalTint),this.flashSubscription=de(i.trigger,async s=>{await this.performFlash(s)})}get flashProps(){var A;const t=(A=this.elementRef)==null?void 0:A.props.flash;return It((t==null?void 0:t.value)??t,{type:"alpha",duration:300,cycles:1,alpha:.3,tint:16777215})}async performFlash(t){var B,r,g;if(!((B=this.elementRef)!=null&&B.componentInstance))return;const A=this.elementRef.componentInstance,i=this.flashProps,n=(t==null?void 0:t.type)??(typeof i.type=="function"?i.type():i.type),s=(t==null?void 0:t.duration)??(typeof i.duration=="function"?i.duration():i.duration),a=(t==null?void 0:t.cycles)??(typeof i.cycles=="function"?i.cycles():i.cycles),o=(t==null?void 0:t.alpha)??(typeof i.alpha=="function"?i.alpha():i.alpha),h=(t==null?void 0:t.tint)??(typeof i.tint=="function"?i.tint():i.tint);this.progressSignal&&this.progressSignal.set(0,{duration:0}),this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),A.alpha=this.originalAlpha;const l=A.tint;if(l!==void 0){const c=typeof this.originalTint=="number"?this.originalTint:16777215;Y(l)?l.set(c):A.tint=c}if((r=i.onStart)==null||r.call(i),this.currentFlashConfig={type:n,duration:s,cycles:a,flashAlpha:o,flashTint:h},this.progressSignal||(this.progressSignal=mi(0,{duration:s,ease:c=>c})),this.progressSignal.set(0,{duration:0}),await new Promise(c=>setTimeout(c,0)),(n==="alpha"||n==="both")&&(this.alphaEffect=et(()=>{if(!A||!this.progressSignal||!this.currentFlashConfig)return;const c=this.progressSignal(),E=this.currentFlashConfig,C=c*E.cycles%1,Q=C<.5?C*2:1-(C-.5)*2,f=this.originalAlpha+(E.flashAlpha-this.originalAlpha)*Q;A.alpha=f}).subscription),(n==="tint"||n==="both")&&(this.tintEffect=et(()=>{if(!A||!this.progressSignal||!this.currentFlashConfig)return;const c=A.tint;if(c===void 0)return;const E=Y(c),C=this.progressSignal(),Q=this.currentFlashConfig,f=C*Q.cycles%1,y=f<.5?f*2:1-(f-.5)*2,D=this.originalTint>>16&255,b=this.originalTint>>8&255,S=this.originalTint&255,F=Q.flashTint>>16&255,U=Q.flashTint>>8&255,J=Q.flashTint&255,L=Math.round(D+(F-D)*y),it=Math.round(b+(U-b)*y),Ht=Math.round(S+(J-S)*y),nt=L<<16|it<<8|Ht;E?c.set(nt):A.tint=nt}).subscription),await this.progressSignal.set(1,{duration:s}),A){A.alpha=this.originalAlpha;const c=A.tint;if(c!==void 0){const E=typeof this.originalTint=="number"?this.originalTint:16777215;Y(c)?c.set(E):A.tint=E}}this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),this.currentFlashConfig=null,(g=i.onComplete)==null||g.call(i)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){var t;if(this.progressSignal&&(this.progressSignal.set(0,{duration:0}),this.progressSignal=null),this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),this.currentFlashConfig=null,(t=this.elementRef)!=null&&t.componentInstance){const A=this.elementRef.componentInstance;A.alpha=this.originalAlpha;const i=A.tint;if(i!==void 0){const n=typeof this.originalTint=="number"?this.originalTint:16777215;Y(i)?i.set(n):A.tint=n}}this.flashSubscription&&(this.flashSubscription=null),this.elementRef=null}}Mt("flash",zs);function jt(e){return e&&typeof e=="string"?e.endsWith("%"):!1}const $s=["added","childAdded","childRemoved","click","clickcapture","destroyed","globalmousemove","globalpointermove","globaltouchmove","mousedown","mousedowncapture","mouseenter","mouseentercapture","mouseleave","mouseleavecapture","mousemove","mousemovecapture","mouseout","mouseoutcapture","mouseover","mouseovercapture","mouseup","mouseupcapture","mouseupoutside","mouseupoutsidecapture","pointercancel","pointercancelcapture","pointerdown","pointerdowncapture","pointerenter","pointerentercapture","pointerleave","pointerleavecapture","pointermove","pointermovecapture","pointerout","pointeroutcapture","pointerover","pointerovercapture","pointertap","pointertapcapture","pointerup","pointerupcapture","pointerupoutside","pointerupoutsidecapture","removed","rightclick","rightclickcapture","rightdown","rightdowncapture","rightup","rightupcapture","rightupoutside","rightupoutsidecapture","tap","tapcapture","touchcancel","touchcancelcapture","touchend","touchendcapture","touchendoutside","touchendoutsidecapture","touchmove","touchmovecapture","touchstart","touchstartcapture","wheel","wheelcapture"];function wt(e){var t,A,i,n;return n=class extends e{constructor(){super(...arguments);Je(this,t);Je(this,A);Je(this,i);bA(this,t,null),this.isFlex=!1,this.fullProps={},this.isMounted=!1,this._anchorPoints=new m.ObservablePoint({_onUpdate:()=>{}},0,0),this.isCustomAnchor=!1,this.displayWidth=W(0),this.displayHeight=W(0),this.overrideProps=[],this.layout=null,this.onBeforeDestroy=null,this.onAfterMount=null,this.subjectInit=new re(null),this.disableLayout=!1,bA(this,A,new Map),bA(this,i,null)}get deltaRatio(){var o,h;return(h=(o=dt(this,t))==null?void 0:o.scheduler)==null?void 0:h.tick.value.deltaRatio}get parentIsFlex(){var o;return this.disableLayout?!1:(o=this.parent)==null?void 0:o.isFlex}onInit(o){this._id=o.id;for(let h of $s)if(o[h]&&!this.overrideProps.includes(h)){this.eventMode="static";const l=o[h];h==="click"?(this.on("pointertap",l),dt(this,A).set("pointertap",l)):(this.on(h,l),dt(this,A).set(h,l))}(o.onBeforeDestroy||o["on-before-destroy"])&&(this.onBeforeDestroy=o.onBeforeDestroy||o["on-before-destroy"]),(o.onAfterMount||o["on-after-mount"])&&(this.onAfterMount=o.onAfterMount||o["on-after-mount"]),(o.justifyContent||o.alignItems||o.flexDirection||o.flexWrap||o.alignContent||o.display=="flex"||jt(o.width)||jt(o.height)||o.isRoot)&&(this.layout={},this.isFlex=!0),this.subjectInit.next(this)}async onMount({parent:o,props:h},l){if(!this.destroyed&&(bA(this,t,h.context),o)){const B=o.componentInstance;if(B.isFlex&&!this.layout&&!this.disableLayout)try{this.layout={}}catch(g){console.warn("Failed to set layout:",g)}l===void 0?B.addChild(this):B.addChildAt(this,l),this.isMounted=!0,this.onUpdate(h);const r=g=>{g.computedLayout&&bA(this,i,{width:g.computedLayout.width,height:g.computedLayout.height})};this.on("layout",r),dt(this,A).set("layout",r),this.onAfterMount&&await this.onAfterMount()}}onUpdate(o){if(this.fullProps={...this.fullProps,...o},this.destroyed||!dt(this,t)||!this.parent)return;o.x!==void 0&&this.setX(o.x),o.y!==void 0&&this.setY(o.y),o.scale!==void 0&&IA(this.scale,o.scale),o.anchor!==void 0&&!this.isCustomAnchor&&IA(this.anchor,o.anchor),o.width!==void 0&&this.setWidth(o.width),o.height!==void 0&&this.setHeight(o.height),o.minWidth!==void 0&&this.setMinWidth(o.minWidth),o.minHeight!==void 0&&this.setMinHeight(o.minHeight),o.maxWidth!==void 0&&this.setMaxWidth(o.maxWidth),o.maxHeight!==void 0&&this.setMaxHeight(o.maxHeight),o.aspectRatio!==void 0&&this.setAspectRatio(o.aspectRatio),o.flexGrow!==void 0&&this.setFlexGrow(o.flexGrow),o.flexShrink!==void 0&&this.setFlexShrink(o.flexShrink),o.flexBasis!==void 0&&this.setFlexBasis(o.flexBasis),o.rowGap!==void 0&&this.setRowGap(o.rowGap),o.columnGap!==void 0&&this.setColumnGap(o.columnGap),o.top!==void 0&&this.setTop(o.top),o.left!==void 0&&this.setLeft(o.left),o.right!==void 0&&this.setRight(o.right),o.bottom!==void 0&&this.setBottom(o.bottom),o.objectFit!==void 0&&this.setObjectFit(o.objectFit),o.objectPosition!==void 0&&this.setObjectPosition(o.objectPosition),o.transformOrigin!==void 0&&this.setTransformOrigin(o.transformOrigin),o.skew!==void 0&&IA(this.skew,o.skew),o.tint&&(this.tint=o.tint),o.rotation!==void 0&&(this.rotation=o.rotation),o.angle!==void 0&&(this.angle=o.angle),o.zIndex!==void 0&&(this.zIndex=o.zIndex),o.roundPixels!==void 0&&(this.roundPixels=o.roundPixels),o.cursor&&(this.cursor=o.cursor),o.visible!==void 0&&(this.visible=o.visible),o.alpha!==void 0&&(this.alpha=o.alpha),o.pivot&&IA(this.pivot,o.pivot),o.flexDirection&&this.setFlexDirection(o.flexDirection),o.flexWrap&&this.setFlexWrap(o.flexWrap),o.justifyContent&&this.setJustifyContent(o.justifyContent),o.alignItems&&this.setAlignItems(o.alignItems),o.alignContent&&this.setAlignContent(o.alignContent),o.alignSelf&&this.setAlignSelf(o.alignSelf),o.margin&&this.setMargin(o.margin),o.padding&&this.setPadding(o.padding),o.gap&&this.setGap(o.gap),o.border&&this.setBorder(o.border),o.positionType&&this.setPositionType(o.positionType),o.filters&&(this.filters=o.filters),o.maskOf&&yt(o.maskOf)&&(o.maskOf.componentInstance.mask=this),o.blendMode&&(this.blendMode=o.blendMode),o.filterArea&&(this.filterArea=o.filterArea);const h=this.filters||[];if(o.blur){let l=h.find(B=>B instanceof m.BlurFilter);if(!l){const B=typeof o.blur=="number"?{strength:o.blur}:o.blur;l=new m.BlurFilter(B),h.push(l)}Object.assign(l,o.blur)}this.filters=h}async onDestroy(o,h){for(const[l,B]of dt(this,A))this.off(l,B);dt(this,A).clear(),this.onBeforeDestroy&&await this.onBeforeDestroy(),h&&h(),super.destroy()}setFlexDirection(o){this.layout={flexDirection:o}}setFlexWrap(o){this.layout={flexWrap:o}}setAlignContent(o){this.layout={alignContent:o}}setAlignSelf(o){this.layout={alignSelf:o}}setAlignItems(o){this.layout={alignItems:o}}setJustifyContent(o){this.layout={justifyContent:o}}setPosition(o){o instanceof Array?o.length===2?this.layout={positionY:o[0],positionX:o[1]}:o.length===4&&(this.layout={positionTop:o[0],positionRight:o[1],positionBottom:o[2],positionLeft:o[3]}):this.layout={position:o}}setX(o){o=o+this.getWidth()*this._anchorPoints.x,this.parentIsFlex?(this.x=o,this.layout={x:o}):this.x=o}setY(o){o=o+this.getHeight()*this._anchorPoints.y,this.parentIsFlex?(this.y=o,this.layout={y:o}):this.y=o}setPadding(o){o instanceof Array?o.length===2?this.layout={paddingVertical:o[0],paddingHorizontal:o[1]}:o.length===4&&(this.layout={paddingTop:o[0],paddingRight:o[1],paddingBottom:o[2],paddingLeft:o[3]}):this.layout={padding:o}}setMargin(o){o instanceof Array?o.length===2?this.layout={marginVertical:o[0],marginHorizontal:o[1]}:o.length===4&&(this.layout={marginTop:o[0],marginRight:o[1],marginBottom:o[2],marginLeft:o[3]}):this.layout={margin:o}}setGap(o){this.layout={gap:o}}setBorder(o){o instanceof Array?o.length===2?this.layout={borderVertical:o[0],borderHorizontal:o[1]}:o.length===4&&(this.layout={borderTop:o[0],borderRight:o[1],borderBottom:o[2],borderLeft:o[3]}):this.layout={border:o}}setPositionType(o){this.layout={position:o}}setWidth(o){this.displayWidth.set(o),this.parentIsFlex?this.layout={width:o}:this.width=o}setHeight(o){this.displayHeight.set(o),this.parentIsFlex?this.layout={height:o}:this.height=o}getWidth(){var h;return jt(this.fullProps.width)?((h=dt(this,i))==null?void 0:h.width)!==void 0?dt(this,i).width:typeof this.width=="number"?this.width:0:typeof this.width=="number"&&this.width>0?this.width:typeof this.displayWidth()=="number"?this.displayWidth():0}getHeight(){var h;return jt(this.fullProps.height)?((h=dt(this,i))==null?void 0:h.height)!==void 0?dt(this,i).height:typeof this.height=="number"?this.height:0:typeof this.height=="number"&&this.height>0?this.height:typeof this.displayHeight()=="number"?this.displayHeight():0}setMinWidth(o){this.layout={minWidth:o}}setMinHeight(o){this.layout={minHeight:o}}setMaxWidth(o){this.layout={maxWidth:o}}setMaxHeight(o){this.layout={maxHeight:o}}setAspectRatio(o){this.layout={aspectRatio:o}}setFlexGrow(o){this.layout={flexGrow:o}}setFlexShrink(o){this.layout={flexShrink:o}}setFlexBasis(o){this.layout={flexBasis:o}}setRowGap(o){this.layout={rowGap:o}}setColumnGap(o){this.layout={columnGap:o}}setTop(o){this.layout={top:o}}setLeft(o){this.layout={left:o}}setRight(o){this.layout={right:o}}setBottom(o){this.layout={bottom:o}}setObjectFit(o){this.layout={objectFit:o}}setObjectPosition(o){this.layout={objectPosition:o}}setTransformOrigin(o){this.layout={transformOrigin:o}}},t=new WeakMap,A=new WeakMap,i=new WeakMap,n}class vg{constructor(){this.assets=new Map,this.onProgressCallbacks=new Set,this.onCompleteCallbacks=new Set,this.assetCounter=0,this.isComplete=!1}registerAsset(t){const A=`asset_${this.assetCounter++}_${t}`;return this.assets.set(A,{progress:0,completed:!1}),this.isComplete=!1,this.updateGlobalProgress(),A}updateProgress(t,A){const i=this.assets.get(t);if(!i){console.warn(`Asset ${t} not found in tracker`);return}i.progress=Math.max(0,Math.min(1,A)),this.updateGlobalProgress()}completeAsset(t){const A=this.assets.get(t);if(!A){console.warn(`Asset ${t} not found in tracker`);return}A.progress=1,A.completed=!0,this.updateGlobalProgress(),this.checkCompletion()}removeAsset(t){this.assets.delete(t),this.updateGlobalProgress()}onProgress(t){this.onProgressCallbacks.add(t);try{t(this.getGlobalProgress())}catch(A){console.error("Error in onProgress callback:",A)}return()=>{this.onProgressCallbacks.delete(t)}}onComplete(t){return this.onCompleteCallbacks.add(t),this.isComplete&&t(),()=>{this.onCompleteCallbacks.delete(t)}}getGlobalProgress(){if(this.assets.size===0)return 1;let t=0;for(const A of this.assets.values())t+=A.progress;return t/this.assets.size}getAssetCount(){return this.assets.size}getCompletedCount(){let t=0;for(const A of this.assets.values())A.completed&&t++;return t}checkCompletion(){if(this.isComplete)return;Array.from(this.assets.values()).every(A=>A.completed)&&this.assets.size>0&&(this.isComplete=!0,this.onCompleteCallbacks.forEach(A=>{try{A()}catch(i){console.error("Error in onComplete callback:",i)}}))}updateGlobalProgress(){const t=this.getGlobalProgress();Array.from(this.onProgressCallbacks).forEach(i=>{try{i(t)}catch(n){console.error("Error in onProgress callback:",n)}})}reset(){this.assets.clear(),this.onProgressCallbacks.clear(),this.onCompleteCallbacks.clear(),this.assetCounter=0,this.isComplete=!1}}lt("Canvas",class extends wt(m.Container){});const Sg=async(e={})=>{let{cursorStyles:t,width:A,height:i,class:n}=It(e);e.width||(A=W(800)),e.height||(i=W(600));const s=W({width:0,height:0});e.isRoot=!0;const a=new vg,o={...e,context:{canvasSize:s,app:W(null),globalLoader:a},width:A==null?void 0:A(),height:i==null?void 0:i()};e.tick||(o.context.tick=o.tick=W({timestamp:0,deltaTime:0,frame:0,deltaRatio:1}));const h=ct("Canvas",o);return h.render=(l,B)=>{if(!B)return;const r=B.renderer,g=r.view.canvas;globalThis.__PIXI_STAGE__=h.componentInstance,globalThis.__PIXI_RENDERER__=r,e.tickStart!==!1&&h.directives.tick.start(),et(()=>{h.propObservables.tick(),r.render(h.componentInstance)}),B.stage=h.componentInstance,B.stage.layout={width:B.screen.width,height:B.screen.height,justifyContent:e.justifyContent,alignItems:e.alignItems},s.set({width:B.screen.width,height:B.screen.height}),B.renderer.on("resize",(E,C)=>{s.set({width:E,height:C}),B.stage.layout&&(B.stage.layout={width:E,height:C})}),e.tickStart!==!1&&h.directives.tick.start(),B.ticker.add(()=>{h.propObservables.tick()}),t&&et(()=>{r.events.cursorStyles=t()}),n&&et(()=>{g.classList.add(n())});const c=l.querySelector("canvas");c?l.replaceChild(g,c):l.appendChild(g),o.context.app.set(B)},h};class to extends wt(m.Container){constructor(){super(...arguments),this.isCustomAnchor=!0}onUpdate(t){t.anchor&&(IA(this._anchorPoints,t.anchor),t.pivot=[this.getWidth()*this._anchorPoints.x,this.getHeight()*this._anchorPoints.y]),super.onUpdate(t),t.sortableChildren!=null&&(this.sortableChildren=t.sortableChildren)}async onMount(t){await super.onMount(t);const{componentInstance:A,props:i}=t,{pixiChildren:n}=i;n&&n.forEach(o=>{A.addChild(o)});const s=jt(i.width),a=jt(i.height);(s||a)&&this.on("layout",o=>{const h=o.computedLayout;s&&h.width!==void 0&&this.displayWidth.set(h.width),a&&h.height!==void 0&&this.displayHeight.set(h.height)})}}lt("Container",to);const KA=e=>ct("Container",e);class xg extends wt(m.Graphics){async onInit(t){await super.onInit(t)}async onMount(t,A){await super.onMount(t,A);const{props:i,propObservables:n}=t,s=Y(n==null?void 0:n.width)?n.width:W(i.width||0),a=Y(n==null?void 0:n.height)?n.height:W(i.height||0);this._width=s,this._height=a;const o=jt(s()),h=jt(a());i.draw&&(this.clearEffect=et(()=>{var r;const l=s(),B=a();typeof l=="string"||typeof B=="string"||(this.clear(),(r=i.draw)==null||r.call(i,this,l,B),this.subjectInit.next(this))})),this.on("layout",l=>{const B=l.computedLayout;o&&Y(s)&&s()!==B.width&&s.set(B.width),h&&Y(a)&&a()!==B.height&&a.set(B.height)})}onUpdate(t){super.onUpdate(t),t.width!==void 0&&this._width&&this._width()!==t.width&&this._width.set(t.width),t.height!==void 0&&this._height&&this._height()!==t.height&&this._height.set(t.height)}async onDestroy(t,A){const i=async()=>{var n;(n=this.clearEffect)==null||n.subscription.unsubscribe(),A()};await super.onDestroy(t,i)}}lt("Graphics",xg);function qt(e){return ct("Graphics",e)}function Ao(e){const{color:t,borderRadius:A,border:i}=It(e,{borderRadius:null,border:null});return qt({draw:(n,s,a)=>{A()?n.roundRect(0,0,s,a,A()):n.rect(0,0,s,a),i&&n.stroke(i),n.fill(t())},...e})}function bg(e,t,A){const{color:i,border:n}=A;"radius"in A?e.circle(0,0,A.radius()):e.ellipse(0,0,A.width()/2,A.height()/2),n()&&e.stroke(n()),e.fill(i())}function eo(e){const{radius:t,color:A,border:i}=It(e,{border:null});return qt({draw:n=>bg(n,"circle",{radius:t,color:A,border:i}),...e})}function io(e){const{width:t,height:A,color:i,border:n}=It(e,{border:null});return qt({draw:(s,a,o)=>{s.ellipse(0,0,a/2,o/2),n()&&s.stroke(n()),s.fill(i())},...e})}function kg(e){const{width:t,height:A,color:i,border:n}=It(e,{border:null,color:"#000"});return qt({draw:(s,a,o)=>{s.moveTo(0,o),s.lineTo(a/2,0),s.lineTo(a,o),s.lineTo(0,o),s.fill(i()),n&&s.stroke(n)},...e})}function Mg(e){return qt({draw:async t=>{if(e.src){const A=await m.Assets.load({src:e.src,data:{parseAsGraphicsContext:!0}}),i=new m.Graphics(A);t.context=i.context}else e.content?t.svg(e.content):e.svg&&t.svg(e.svg)},...e})}class Rg extends wt(m.Mesh){constructor(){super({geometry:new m.Geometry})}onInit(t){if(super.onInit(t),t.geometry)try{this.geometry=t.geometry}catch(A){console.warn("Failed to set geometry:",A)}t.shader&&(this.shader=t.shader)}async onUpdate(t){if(super.onUpdate(t),t.geometry)try{this.geometry=t.geometry}catch(A){console.warn("Failed to update geometry:",A)}t.shader&&(this.shader=t.shader),t.texture?typeof t.texture=="string"?this.texture=await m.Assets.load(t.texture):this.texture=t.texture:t.image&&(this.texture=await m.Assets.load(t.image)),t.tint!==void 0&&(this.tint=t.tint),t.blendMode!==void 0&&(this.blendMode=t.blendMode),t.roundPixels!==void 0&&(this.roundPixels=t.roundPixels)}async onDestroy(t,A){const i=async()=>{A()};await super.onDestroy(t,i)}}lt("Mesh",Rg);const _g=e=>ct("Mesh",e);x.currentSubscriptionsTracker=null,x.mountTracker=null;function Di(e){var t;(t=x.mountTracker)==null||t.call(x,e)}function Fg(e){Di(t=>{const{context:A}=t.props;let i;return A.tick&&(i=A.tick.observable.subscribe(({value:n})=>{e(n,t)})),()=>{i==null||i.unsubscribe()}})}function ht(e,t={},...A){const i=new Set,n=new Set;x.currentSubscriptionsTracker=a=>{i.add(a)},x.mountTracker=a=>{n.add(a)},A[0]instanceof Array&&(A=A[0]);let s;return Array.isArray(e)?e.length===1?s=e[0]:s=ht(KA,{},...e):"tag"in e||e instanceof V?s=e:s=e({...t,children:A}),s||(s={}),s.effectSubscriptions=Array.from(i),s.effectMounts=[...Array.from(n),...s.effectMounts??[]],t!=null&&t.dependencies&&(s.props=s.props||{},s.props.dependencies=t.dependencies),s instanceof Promise&&s.then(a=>{a.props.isRoot&&n.forEach(o=>o(a))}),x.currentSubscriptionsTracker=null,x.mountTracker=null,s}function Gg(e){return ht(KA)}/*!
|
|
21
|
+
*/(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(A){var i=this;if(!i.ctx||!i.ctx.listener)return i;for(var n=i._howls.length-1;n>=0;n--)i._howls[n].stereo(A);return i},HowlerGlobal.prototype.pos=function(A,i,n){var s=this;if(!s.ctx||!s.ctx.listener)return s;if(i=typeof i!="number"?s._pos[1]:i,n=typeof n!="number"?s._pos[2]:n,typeof A=="number")s._pos=[A,i,n],typeof s.ctx.listener.positionX<"u"?(s.ctx.listener.positionX.setTargetAtTime(s._pos[0],Howler.ctx.currentTime,.1),s.ctx.listener.positionY.setTargetAtTime(s._pos[1],Howler.ctx.currentTime,.1),s.ctx.listener.positionZ.setTargetAtTime(s._pos[2],Howler.ctx.currentTime,.1)):s.ctx.listener.setPosition(s._pos[0],s._pos[1],s._pos[2]);else return s._pos;return s},HowlerGlobal.prototype.orientation=function(A,i,n,s,a,g){var r=this;if(!r.ctx||!r.ctx.listener)return r;var l=r._orientation;if(i=typeof i!="number"?l[1]:i,n=typeof n!="number"?l[2]:n,s=typeof s!="number"?l[3]:s,a=typeof a!="number"?l[4]:a,g=typeof g!="number"?l[5]:g,typeof A=="number")r._orientation=[A,i,n,s,a,g],typeof r.ctx.listener.forwardX<"u"?(r.ctx.listener.forwardX.setTargetAtTime(A,Howler.ctx.currentTime,.1),r.ctx.listener.forwardY.setTargetAtTime(i,Howler.ctx.currentTime,.1),r.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),r.ctx.listener.upX.setTargetAtTime(s,Howler.ctx.currentTime,.1),r.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),r.ctx.listener.upZ.setTargetAtTime(g,Howler.ctx.currentTime,.1)):r.ctx.listener.setOrientation(A,i,n,s,a,g);else return l;return r},Howl.prototype.init=function(A){return function(i){var n=this;return n._orientation=i.orientation||[1,0,0],n._stereo=i.stereo||null,n._pos=i.pos||null,n._pannerAttr={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:360,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:360,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:0,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:"inverse",maxDistance:typeof i.maxDistance<"u"?i.maxDistance:1e4,panningModel:typeof i.panningModel<"u"?i.panningModel:"HRTF",refDistance:typeof i.refDistance<"u"?i.refDistance:1,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:1},n._onstereo=i.onstereo?[{fn:i.onstereo}]:[],n._onpos=i.onpos?[{fn:i.onpos}]:[],n._onorientation=i.onorientation?[{fn:i.onorientation}]:[],A.call(this,i)}}(Howl.prototype.init),Howl.prototype.stereo=function(A,i){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"stereo",action:function(){n.stereo(A,i)}}),n;var s=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof i>"u")if(typeof A=="number")n._stereo=A,n._pos=[A,0,0];else return n._stereo;for(var a=n._getSoundIds(i),g=0;g<a.length;g++){var r=n._soundById(a[g]);if(r)if(typeof A=="number")r._stereo=A,r._pos=[A,0,0],r._node&&(r._pannerAttr.panningModel="equalpower",(!r._panner||!r._panner.pan)&&t(r,s),s==="spatial"?typeof r._panner.positionX<"u"?(r._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),r._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),r._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):r._panner.setPosition(A,0,0):r._panner.pan.setValueAtTime(A,Howler.ctx.currentTime)),n._emit("stereo",r._id);else return r._stereo}return n},Howl.prototype.pos=function(A,i,n,s){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"pos",action:function(){a.pos(A,i,n,s)}}),a;if(i=typeof i!="number"?0:i,n=typeof n!="number"?-.5:n,typeof s>"u")if(typeof A=="number")a._pos=[A,i,n];else return a._pos;for(var g=a._getSoundIds(s),r=0;r<g.length;r++){var l=a._soundById(g[r]);if(l)if(typeof A=="number")l._pos=[A,i,n],l._node&&((!l._panner||l._panner.pan)&&t(l,"spatial"),typeof l._panner.positionX<"u"?(l._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(i,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):l._panner.setPosition(A,i,n)),a._emit("pos",l._id);else return l._pos}return a},Howl.prototype.orientation=function(A,i,n,s){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"orientation",action:function(){a.orientation(A,i,n,s)}}),a;if(i=typeof i!="number"?a._orientation[1]:i,n=typeof n!="number"?a._orientation[2]:n,typeof s>"u")if(typeof A=="number")a._orientation=[A,i,n];else return a._orientation;for(var g=a._getSoundIds(s),r=0;r<g.length;r++){var l=a._soundById(g[r]);if(l)if(typeof A=="number")l._orientation=[A,i,n],l._node&&(l._panner||(l._pos||(l._pos=a._pos||[0,0,-.5]),t(l,"spatial")),typeof l._panner.orientationX<"u"?(l._panner.orientationX.setValueAtTime(A,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(i,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):l._panner.setOrientation(A,i,n)),a._emit("orientation",l._id);else return l._orientation}return a},Howl.prototype.pannerAttr=function(){var A=this,i=arguments,n,s,a;if(!A._webAudio)return A;if(i.length===0)return A._pannerAttr;if(i.length===1)if(typeof i[0]=="object")n=i[0],typeof s>"u"&&(n.pannerAttr||(n.pannerAttr={coneInnerAngle:n.coneInnerAngle,coneOuterAngle:n.coneOuterAngle,coneOuterGain:n.coneOuterGain,distanceModel:n.distanceModel,maxDistance:n.maxDistance,refDistance:n.refDistance,rolloffFactor:n.rolloffFactor,panningModel:n.panningModel}),A._pannerAttr={coneInnerAngle:typeof n.pannerAttr.coneInnerAngle<"u"?n.pannerAttr.coneInnerAngle:A._coneInnerAngle,coneOuterAngle:typeof n.pannerAttr.coneOuterAngle<"u"?n.pannerAttr.coneOuterAngle:A._coneOuterAngle,coneOuterGain:typeof n.pannerAttr.coneOuterGain<"u"?n.pannerAttr.coneOuterGain:A._coneOuterGain,distanceModel:typeof n.pannerAttr.distanceModel<"u"?n.pannerAttr.distanceModel:A._distanceModel,maxDistance:typeof n.pannerAttr.maxDistance<"u"?n.pannerAttr.maxDistance:A._maxDistance,refDistance:typeof n.pannerAttr.refDistance<"u"?n.pannerAttr.refDistance:A._refDistance,rolloffFactor:typeof n.pannerAttr.rolloffFactor<"u"?n.pannerAttr.rolloffFactor:A._rolloffFactor,panningModel:typeof n.pannerAttr.panningModel<"u"?n.pannerAttr.panningModel:A._panningModel});else return a=A._soundById(parseInt(i[0],10)),a?a._pannerAttr:A._pannerAttr;else i.length===2&&(n=i[0],s=parseInt(i[1],10));for(var g=A._getSoundIds(s),r=0;r<g.length;r++)if(a=A._soundById(g[r]),a){var l=a._pannerAttr;l={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:l.coneInnerAngle,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:l.coneOuterAngle,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:l.coneOuterGain,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:l.distanceModel,maxDistance:typeof n.maxDistance<"u"?n.maxDistance:l.maxDistance,refDistance:typeof n.refDistance<"u"?n.refDistance:l.refDistance,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:l.rolloffFactor,panningModel:typeof n.panningModel<"u"?n.panningModel:l.panningModel};var I=a._panner;I||(a._pos||(a._pos=A._pos||[0,0,-.5]),t(a,"spatial"),I=a._panner),I.coneInnerAngle=l.coneInnerAngle,I.coneOuterAngle=l.coneOuterAngle,I.coneOuterGain=l.coneOuterGain,I.distanceModel=l.distanceModel,I.maxDistance=l.maxDistance,I.refDistance=l.refDistance,I.rolloffFactor=l.rolloffFactor,I.panningModel=l.panningModel}return A},Sound.prototype.init=function(A){return function(){var i=this,n=i._parent;i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,A.call(this),i._stereo?n.stereo(i._stereo):i._pos&&n.pos(i._pos[0],i._pos[1],i._pos[2],i._id)}}(Sound.prototype.init),Sound.prototype.reset=function(A){return function(){var i=this,n=i._parent;return i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,i._stereo?n.stereo(i._stereo):i._pos?n.pos(i._pos[0],i._pos[1],i._pos[2],i._id):i._panner&&(i._panner.disconnect(0),i._panner=void 0,n._refreshBuffer(i)),A.call(this)}}(Sound.prototype.reset);var t=function(A,i){i=i||"spatial",i==="spatial"?(A._panner=Howler.ctx.createPanner(),A._panner.coneInnerAngle=A._pannerAttr.coneInnerAngle,A._panner.coneOuterAngle=A._pannerAttr.coneOuterAngle,A._panner.coneOuterGain=A._pannerAttr.coneOuterGain,A._panner.distanceModel=A._pannerAttr.distanceModel,A._panner.maxDistance=A._pannerAttr.maxDistance,A._panner.refDistance=A._pannerAttr.refDistance,A._panner.rolloffFactor=A._pannerAttr.rolloffFactor,A._panner.panningModel=A._pannerAttr.panningModel,typeof A._panner.positionX<"u"?(A._panner.positionX.setValueAtTime(A._pos[0],Howler.ctx.currentTime),A._panner.positionY.setValueAtTime(A._pos[1],Howler.ctx.currentTime),A._panner.positionZ.setValueAtTime(A._pos[2],Howler.ctx.currentTime)):A._panner.setPosition(A._pos[0],A._pos[1],A._pos[2]),typeof A._panner.orientationX<"u"?(A._panner.orientationX.setValueAtTime(A._orientation[0],Howler.ctx.currentTime),A._panner.orientationY.setValueAtTime(A._orientation[1],Howler.ctx.currentTime),A._panner.orientationZ.setValueAtTime(A._orientation[2],Howler.ctx.currentTime)):A._panner.setOrientation(A._orientation[0],A._orientation[1],A._orientation[2])):(A._panner=Howler.ctx.createStereoPanner(),A._panner.pan.setValueAtTime(A._stereo,Howler.ctx.currentTime)),A._panner.connect(A._node),A._paused||A._parent.pause(A._id,!0).play(A._id,!0)}})()})(iA);const bg=gr({__proto__:null,default:Sg(iA)},[iA]),Zs=["load","loaderror","playerror","play","end","pause","stop","mute","volume","rate","seek","fade","unlock"];let zs=class extends Mt{constructor(){super(...arguments),this.sounds=[],this.eventsFn=[],this.maxVolume=1,this.maxDistance=100}onInit(t){}onMount(t){const{props:A}=t,i=A.context.tick,n=A.sound.value??A.sound;if(!n.src)return;const{src:s,autoplay:a,loop:g,volume:r,spatial:l}=n,I=Array.isArray(s)?s:[s];for(const o of I){if(!o)continue;const h=new iA.Howl({src:o,autoplay:a,loop:g,volume:r});for(let c of Zs){if(!n[c])continue;const E=n[c];this.eventsFn.push(E),h.on(c,E)}this.sounds.push(h)}if(l&&this.sounds.length>0){const{soundListenerPosition:o}=A.context;if(!o)throw new ii("SoundListenerPosition directive is required for spatial sound in component parent");const{x:h,y:c}=o;this.tickSubscription=it(()=>{i();const{x:E,y:f}=t.componentInstance,Q=ns(E,f,h(),c()),C=Math.max(this.maxVolume-Q/this.maxDistance,0);this.sounds.forEach(y=>y.volume(C))}).subscription}this.onUpdate(n)}onUpdate(t){const A=t.value??t,{volume:i,loop:n,mute:s,seek:a,playing:g,rate:r,spatial:l}=A;this.sounds.forEach(I=>{i!==void 0&&I.volume(i),n!==void 0&&I.loop(n),s!==void 0&&I.mute(s),a!==void 0&&I.seek(a),g!==void 0&&(g?I.play():I.pause()),r!==void 0&&I.rate(r)}),l&&(this.maxVolume=l.maxVolume??this.maxVolume,this.maxDistance=l.maxDistance??this.maxDistance)}onDestroy(){var t;this.sounds.forEach(A=>{A.stop();for(let i of Zs){const n=this.eventsFn.find(s=>s===this.eventsFn[i]);n&&A.off(i,n)}}),this.sounds=[],this.eventsFn=[],(t=this.tickSubscription)==null||t.unsubscribe()}};class xg extends Mt{onMount(t){var A;t.props.context.soundListenerPosition=(A=t.propObservables)==null?void 0:A.soundListenerPosition}onInit(t){}onUpdate(t){}onDestroy(){}}Rt("sound",zs),Rt("soundListenerPosition",xg);const kg=(e,t,A)=>{e.props.context={...e.props.context??{},[t]:A}};class $s extends Mt{constructor(){super(...arguments),this.elementRef=null}onInit(t){this.elementRef=t}onMount(t){kg(t,"drop",t)}onUpdate(){}onDestroy(){this.elementRef=null}}class to extends Mt{constructor(){super(...arguments),this.elementRef=null,this.stageRef=null,this.offsetInParent=new v.Point,this.isDragging=!1,this.viewport=null,this.animationFrameId=null,this.lastPointerPosition=new v.Point,this.pressedKeys=new Set,this.pointerIsDown=!1,this.onDragMoveHandler=()=>{},this.onDragEndHandler=()=>{},this.onDragStartHandler=()=>{},this.onKeyDownHandler=()=>{},this.onKeyUpHandler=()=>{},this.subscriptions=[]}onInit(t){this.elementRef=t,this.onDragMoveHandler=this.onDragMove.bind(this),this.onDragEndHandler=this.onDragEnd.bind(this),this.onDragStartHandler=this.onPointerDown.bind(this),this.onKeyDownHandler=this.onKeyDown.bind(this),this.onKeyUpHandler=this.onKeyUp.bind(this)}onMount(t){const{rootElement:A,canvasSize:i,viewport:n,tick:s}=t.props.context,a=t.componentInstance,g=this.dragProps;if(Object.keys(g).length===0){this.onDestroy();return}if(!a||(this.stageRef=A.componentInstance,!this.stageRef))return;this.viewport=n,a.eventMode="static",this.stageRef.eventMode="static";const l=it(()=>{this.stageRef&&(this.stageRef.hitArea=new v.Rectangle(0,0,i().width,i().height))});a.on("pointerdown",this.onDragStartHandler),this.stageRef.on("pointerup",this.onDragEndHandler),this.stageRef.on("pointerupoutside",this.onDragEndHandler),g.keyToPress&&g.keyToPress,window.addEventListener("keydown",this.onKeyDownHandler),window.addEventListener("keyup",this.onKeyUpHandler),this.subscriptions=[s.observable.subscribe(()=>{this.isDragging&&this.viewport&&this.updateViewportPosition(this.lastPointerPosition)}),l.subscription]}get dragProps(){var i;const t=(i=this.elementRef)==null?void 0:i.props.drag,A=Bt((t==null?void 0:t.value)??t,{snap:0,viewport:{},direction:"all",keyToPress:[]});return A.viewport=Bt(A.viewport,{edgeThreshold:300,maxSpeed:40}),A}get axis(){const t=this.dragProps.direction(),A={x:!0,y:!0};return t==="x"&&(A.y=!1),t==="y"&&(A.x=!1),A}onDragMove(t){var c,E;if(!this.isDragging||!((c=this.elementRef)!=null&&c.componentInstance)||!this.elementRef.componentInstance.parent)return;const A=this.elementRef.componentInstance,i=A.parent,n=this.dragProps,s=this.elementRef.propObservables,a=yg((n==null?void 0:n.snap())??0);(E=n==null?void 0:n.move)==null||E.call(n,t);const g=i.toLocal(t.global),r=g.x-this.offsetInParent.x,l=g.y-this.offsetInParent.y;n!=null&&n.snap()?(A.position.x=a(r),A.position.y=a(l)):(this.axis.x&&(A.position.x=r),this.axis.y&&(A.position.y=l)),this.lastPointerPosition.copyFrom(t.global);const{x:I,y:o}=s,h=(f,Q)=>{CA(f)?f.dependencies.forEach(C=>{C.set(Q)}):T(f)&&f.set(Q)};I!==void 0&&h(I,A.position.x),o!==void 0&&h(o,A.position.y)}updateViewportPosition(t){var Q,C;if(!this.viewport||!this.elementRef)return;const A=this.dragProps,i=(Q=A==null?void 0:A.viewport)==null?void 0:Q.edgeThreshold(),n=(C=A==null?void 0:A.viewport)==null?void 0:C.maxSpeed(),s=0,a=this.viewport.screenWidth,g=0,r=this.viewport.screenHeight,l=this.elementRef.componentInstance,I=t.x-s,o=a-t.x,h=t.y-g,c=r-t.y;let E=0,f=0;if(I<i?E=-(n*(1-I/i)):o<i&&(E=n*(1-o/i)),h<i?f=-(n*(1-h/i)):c<i&&(f=n*(1-c/i)),E!==0||f!==0){const y=this.viewport.center;this.viewport.moveCenter(this.viewport.center.x+E,this.viewport.center.y+f),this.axis.x&&y.x!==this.viewport.center.x&&(l.position.x+=E),this.axis.y&&y.y!==this.viewport.center.y&&(l.position.y+=f)}}onDragEnd(){var A;if(this.pointerIsDown=!1,!this.isDragging)return;const t=this.dragProps;this.isDragging=!1,(A=t==null?void 0:t.end)==null||A.call(t),this.stageRef&&this.stageRef.off("pointermove",this.onDragMoveHandler)}onKeyDown(t){this.pressedKeys.add(t.code),this.pressedKeys.add(t.key.toLowerCase()),this.pointerIsDown&&!this.isDragging&&this.areRequiredKeysPressed()&&this.startDrag()}onKeyUp(t){this.pressedKeys.delete(t.code),this.pressedKeys.delete(t.key.toLowerCase()),this.isDragging&&!this.areRequiredKeysPressed()&&this.onDragEnd()}areRequiredKeysPressed(){const t=this.dragProps.keyToPress?this.dragProps.keyToPress:[];return!t||t.length===0?!0:t.some(A=>this.pressedKeys.has(A)?!0:A.toLowerCase()==="space"?this.pressedKeys.has("Space")||this.pressedKeys.has(" "):A.toLowerCase()==="shift"?this.pressedKeys.has("ShiftLeft")||this.pressedKeys.has("ShiftRight"):A.toLowerCase()==="control"||A.toLowerCase()==="ctrl"?this.pressedKeys.has("ControlLeft")||this.pressedKeys.has("ControlRight"):A.toLowerCase()==="alt"?this.pressedKeys.has("AltLeft")||this.pressedKeys.has("AltRight"):!1)}onPointerDown(t){var s;if(!((s=this.elementRef)!=null&&s.componentInstance)||!this.stageRef||!this.elementRef.componentInstance.parent)return;this.pointerIsDown=!0;const A=this.elementRef.componentInstance,n=A.parent.toLocal(t.global);this.offsetInParent.x=n.x-A.position.x,this.offsetInParent.y=n.y-A.position.y,this.lastPointerPosition.copyFrom(t.global),this.areRequiredKeysPressed()&&this.startDrag()}startDrag(){var A;if(this.isDragging||!this.stageRef)return;this.isDragging=!0;const t=this.dragProps;(A=t==null?void 0:t.start)==null||A.call(t),this.stageRef.on("pointermove",this.onDragMoveHandler)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.onMount(this.elementRef))}onDestroy(){var A;this.subscriptions.forEach(i=>i.unsubscribe());const t=(A=this.elementRef)==null?void 0:A.componentInstance;t&&t.off("pointerdown",this.onDragStartHandler),this.stageRef&&(this.stageRef.off("pointermove",this.onDragMoveHandler),this.stageRef.off("pointerup",this.onDragEndHandler),this.stageRef.off("pointerupoutside",this.onDragEndHandler)),window.removeEventListener("keydown",this.onKeyDownHandler),window.removeEventListener("keyup",this.onKeyUpHandler),this.stageRef=null,this.viewport=null,this.pressedKeys.clear(),this.pointerIsDown=!1}}Rt("drag",to),Rt("drop",$s);class Ao extends Mt{onInit(t){}onMount(t){const{image:A}=t.props.transition,i=new v.Sprite(v.Texture.from(A));i.texture.baseTexture.wrapMode=v.WRAP_MODES.REPEAT;const n=new v.DisplacementFilter(i),s=t.componentInstance;s.filters=[n],s.addChild(i),setTimeout(()=>{js({from:0,to:1,duration:500,onUpdate:a=>{n.scale.x=a,n.scale.y=a}})},5e3)}onUpdate(t){}onDestroy(){}}Rt("transition",Ao);function VA(e){return(e==null?void 0:e.start)&&(e==null?void 0:e.listen)}function Mg(e){const t=W({config:e,value:0,resolve:A=>{}});return{start:A=>new Promise(i=>{t.set({config:{...e,...A},resolve:i,value:Math.random()})}),listen:()=>({config:e,seed:t()})}}function De(e,t){if(!VA(e))throw new Error("In 'on(arg)' must have a trigger signal type");let A;it(()=>{const i=e.listen(),n=i==null?void 0:i.seed;if(n){if(A===void 0){A=n.value;return}if(n.value!==A){A=n.value;try{const s=t(i==null?void 0:i.seed.config);s&&typeof s.then=="function"?s.then(a=>n.resolve(a)).catch(()=>n.resolve(void 0)):n.resolve(s)}catch{n.resolve(void 0)}}}})}class eo extends Mt{constructor(){super(...arguments),this.elementRef=null,this.originalPosition=new v.Point,this.progressSignal=null,this.shakeSubscription=null,this.positionEffect=null,this.currentShakeConfig=null}onInit(t){this.elementRef=t}onMount(t){const A=t.componentInstance;if(!A)return;const i=this.shakeProps;!i.trigger||!VA(i.trigger)||(this.originalPosition.set(A.position.x,A.position.y),this.shakeSubscription=De(i.trigger,async n=>{await this.performShake(n)}))}get shakeProps(){var A;const t=(A=this.elementRef)==null?void 0:A.props.shake;return Bt((t==null?void 0:t.value)??t,{intensity:10,duration:500,frequency:10,direction:"both"})}async performShake(t){var I,o,h;if(!((I=this.elementRef)!=null&&I.componentInstance))return;const A=this.elementRef.componentInstance,i=this.shakeProps,n=(t==null?void 0:t.intensity)??i.intensity(),s=(t==null?void 0:t.duration)??i.duration(),a=(t==null?void 0:t.frequency)??i.frequency(),g=(t==null?void 0:t.direction)??i.direction();this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.originalPosition.set(A.position.x,A.position.y),A.position.x=this.originalPosition.x,A.position.y=this.originalPosition.y,(o=i.onStart)==null||o.call(i),this.currentShakeConfig={intensity:n,frequency:a,direction:g,randomSeed:Math.random()*1e3},this.progressSignal?(this.progressSignal.set(0,{duration:0}),await new Promise(c=>setTimeout(c,0))):this.progressSignal=vi(0,{duration:s,ease:c=>c});const r=g!=="y",l=g!=="x";this.positionEffect=it(()=>{if(!A||!this.progressSignal||!this.currentShakeConfig)return;const c=this.progressSignal(),E=this.currentShakeConfig,f=1-c,Q=c*E.frequency,C=Math.sin(Q*Math.PI*2),y=Math.sin(E.randomSeed+c*10)*.25+1,D=r?C*E.intensity*f*y:0,m=l?C*E.intensity*f*y:0;A.position.x=this.originalPosition.x+D,A.position.y=this.originalPosition.y+m}).subscription,await this.progressSignal.set(1,{duration:s}),A&&(A.position.x=this.originalPosition.x,A.position.y=this.originalPosition.y),this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.currentShakeConfig=null,(h=i.onComplete)==null||h.call(i)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){var t;if(this.progressSignal&&(this.progressSignal.set(0,{duration:0}),this.progressSignal=null),this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.currentShakeConfig=null,(t=this.elementRef)!=null&&t.componentInstance){const A=this.elementRef.componentInstance;A.position.x=this.originalPosition.x,A.position.y=this.originalPosition.y}this.shakeSubscription&&(this.shakeSubscription=null),this.elementRef=null}}Rt("shake",eo);class io extends Mt{constructor(){super(...arguments),this.elementRef=null,this.progressSignal=null,this.flashSubscription=null,this.alphaEffect=null,this.tintEffect=null,this.originalAlpha=1,this.originalTint=16777215,this.currentFlashConfig=null}onInit(t){this.elementRef=t}onMount(t){const A=t.componentInstance;if(!A)return;const i=this.flashProps;if(!i.trigger||!VA(i.trigger))return;this.originalAlpha===1&&!i.originalAlpha?this.originalAlpha=A.alpha??1:i.originalAlpha!==void 0&&(this.originalAlpha=i.originalAlpha);const n=A.tint;this.originalTint===16777215&&!i.originalTint?this.originalTint=(T(n)?n():n)??16777215:i.originalTint!==void 0&&(this.originalTint=i.originalTint),this.flashSubscription=De(i.trigger,async s=>{await this.performFlash(s)})}get flashProps(){var A;const t=(A=this.elementRef)==null?void 0:A.props.flash;return Bt((t==null?void 0:t.value)??t,{type:"alpha",duration:300,cycles:1,alpha:.3,tint:16777215})}async performFlash(t){var I,o,h;if(!((I=this.elementRef)!=null&&I.componentInstance))return;const A=this.elementRef.componentInstance,i=this.flashProps,n=(t==null?void 0:t.type)??(typeof i.type=="function"?i.type():i.type),s=(t==null?void 0:t.duration)??(typeof i.duration=="function"?i.duration():i.duration),a=(t==null?void 0:t.cycles)??(typeof i.cycles=="function"?i.cycles():i.cycles),g=(t==null?void 0:t.alpha)??(typeof i.alpha=="function"?i.alpha():i.alpha),r=(t==null?void 0:t.tint)??(typeof i.tint=="function"?i.tint():i.tint);this.progressSignal&&this.progressSignal.set(0,{duration:0}),this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),A.alpha=this.originalAlpha;const l=A.tint;if(l!==void 0){const c=typeof this.originalTint=="number"?this.originalTint:16777215;T(l)?l.set(c):A.tint=c}if((o=i.onStart)==null||o.call(i),this.currentFlashConfig={type:n,duration:s,cycles:a,flashAlpha:g,flashTint:r},this.progressSignal||(this.progressSignal=vi(0,{duration:s,ease:c=>c})),this.progressSignal.set(0,{duration:0}),await new Promise(c=>setTimeout(c,0)),(n==="alpha"||n==="both")&&(this.alphaEffect=it(()=>{if(!A||!this.progressSignal||!this.currentFlashConfig)return;const c=this.progressSignal(),E=this.currentFlashConfig,f=c*E.cycles%1,Q=f<.5?f*2:1-(f-.5)*2,C=this.originalAlpha+(E.flashAlpha-this.originalAlpha)*Q;A.alpha=C}).subscription),(n==="tint"||n==="both")&&(this.tintEffect=it(()=>{if(!A||!this.progressSignal||!this.currentFlashConfig)return;const c=A.tint;if(c===void 0)return;const E=T(c),f=this.progressSignal(),Q=this.currentFlashConfig,C=f*Q.cycles%1,y=C<.5?C*2:1-(C-.5)*2,D=this.originalTint>>16&255,m=this.originalTint>>8&255,S=this.originalTint&255,R=Q.flashTint>>16&255,N=Q.flashTint>>8&255,J=Q.flashTint&255,U=Math.round(D+(R-D)*y),nt=Math.round(m+(N-m)*y),Ut=Math.round(S+(J-S)*y),st=U<<16|nt<<8|Ut;E?c.set(st):A.tint=st}).subscription),await this.progressSignal.set(1,{duration:s}),A){A.alpha=this.originalAlpha;const c=A.tint;if(c!==void 0){const E=typeof this.originalTint=="number"?this.originalTint:16777215;T(c)?c.set(E):A.tint=E}}this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),this.currentFlashConfig=null,(h=i.onComplete)==null||h.call(i)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){var t;if(this.progressSignal&&(this.progressSignal.set(0,{duration:0}),this.progressSignal=null),this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),this.currentFlashConfig=null,(t=this.elementRef)!=null&&t.componentInstance){const A=this.elementRef.componentInstance;A.alpha=this.originalAlpha;const i=A.tint;if(i!==void 0){const n=typeof this.originalTint=="number"?this.originalTint:16777215;T(i)?i.set(n):A.tint=n}}this.flashSubscription&&(this.flashSubscription=null),this.elementRef=null}}Rt("flash",io);function qt(e){return e&&typeof e=="string"?e.endsWith("%"):!1}const no=["added","childAdded","childRemoved","click","clickcapture","destroyed","globalmousemove","globalpointermove","globaltouchmove","mousedown","mousedowncapture","mouseenter","mouseentercapture","mouseleave","mouseleavecapture","mousemove","mousemovecapture","mouseout","mouseoutcapture","mouseover","mouseovercapture","mouseup","mouseupcapture","mouseupoutside","mouseupoutsidecapture","pointercancel","pointercancelcapture","pointerdown","pointerdowncapture","pointerenter","pointerentercapture","pointerleave","pointerleavecapture","pointermove","pointermovecapture","pointerout","pointeroutcapture","pointerover","pointerovercapture","pointertap","pointertapcapture","pointerup","pointerupcapture","pointerupoutside","pointerupoutsidecapture","removed","rightclick","rightclickcapture","rightdown","rightdowncapture","rightup","rightupcapture","rightupoutside","rightupoutsidecapture","tap","tapcapture","touchcancel","touchcancelcapture","touchend","touchendcapture","touchendoutside","touchendoutsidecapture","touchmove","touchmovecapture","touchstart","touchstartcapture","wheel","wheelcapture"];function mt(e){var t,A,i,n,s;return s=class extends e{constructor(){super(...arguments);re(this,t);re(this,A);re(this,i);re(this,n);Wt(this,t,null),this.isFlex=!1,this.fullProps={},this.isMounted=!1,this._anchorPoints=new v.ObservablePoint({_onUpdate:()=>{}},0,0),this.isCustomAnchor=!1,this.displayWidth=W(0),this.displayHeight=W(0),this.overrideProps=[],this.layout=null,this.onBeforeDestroy=null,this.onAfterMount=null,this.subjectInit=new tA(null),this.disableLayout=!1,Wt(this,A,new Map),Wt(this,i,null),Wt(this,n,null)}getElement(){return It(this,n)}get deltaRatio(){var r,l;return(l=(r=It(this,t))==null?void 0:r.scheduler)==null?void 0:l.tick.value.deltaRatio}get parentIsFlex(){var r;return this.disableLayout?!1:(r=this.parent)==null?void 0:r.isFlex}onInit(r){this._id=r.id;for(let l of no)if(r[l]&&!this.overrideProps.includes(l)){this.eventMode="static";const I=r[l],o=(...h)=>{if(!(It(this,n)&&_t(It(this,n))))return I(...h)};l==="click"?(this.on("pointertap",o),It(this,A).set("pointertap",o)):(this.on(l,o),It(this,A).set(l,o))}(r.onBeforeDestroy||r["on-before-destroy"])&&(this.onBeforeDestroy=r.onBeforeDestroy||r["on-before-destroy"]),(r.onAfterMount||r["on-after-mount"])&&(this.onAfterMount=r.onAfterMount||r["on-after-mount"]),(r.justifyContent||r.alignItems||r.flexDirection||r.flexWrap||r.alignContent||r.display=="flex"||qt(r.width)||qt(r.height)||r.isRoot)&&(this.layout={},this.isFlex=!0),this.subjectInit.next(this)}async onMount(r,l){if(!this.destroyed&&(Wt(this,n,r),Wt(this,t,r.props.context),r.parent)){const I=r.parent.componentInstance;if(I.isFlex&&!this.layout&&!this.disableLayout)try{this.layout={}}catch(h){console.warn("Failed to set layout:",h)}l===void 0?I.addChild(this):I.addChildAt(this,l),this.isMounted=!0,this.onUpdate(r.props);const o=h=>{h.computedLayout&&Wt(this,i,{width:h.computedLayout.width,height:h.computedLayout.height})};this.on("layout",o),It(this,A).set("layout",o),this.onAfterMount&&await this.onAfterMount()}}onUpdate(r){if(this.fullProps={...this.fullProps,...r},this.destroyed||!It(this,t)||!this.parent)return;r.x!==void 0&&this.setX(r.x),r.y!==void 0&&this.setY(r.y),r.scale!==void 0&&EA(this.scale,r.scale),r.anchor!==void 0&&!this.isCustomAnchor&&EA(this.anchor,r.anchor),r.width!==void 0&&this.setWidth(r.width),r.height!==void 0&&this.setHeight(r.height),r.minWidth!==void 0&&this.setMinWidth(r.minWidth),r.minHeight!==void 0&&this.setMinHeight(r.minHeight),r.maxWidth!==void 0&&this.setMaxWidth(r.maxWidth),r.maxHeight!==void 0&&this.setMaxHeight(r.maxHeight),r.aspectRatio!==void 0&&this.setAspectRatio(r.aspectRatio),r.flexGrow!==void 0&&this.setFlexGrow(r.flexGrow),r.flexShrink!==void 0&&this.setFlexShrink(r.flexShrink),r.flexBasis!==void 0&&this.setFlexBasis(r.flexBasis),r.rowGap!==void 0&&this.setRowGap(r.rowGap),r.columnGap!==void 0&&this.setColumnGap(r.columnGap),r.top!==void 0&&this.setTop(r.top),r.left!==void 0&&this.setLeft(r.left),r.right!==void 0&&this.setRight(r.right),r.bottom!==void 0&&this.setBottom(r.bottom),r.objectFit!==void 0&&this.setObjectFit(r.objectFit),r.objectPosition!==void 0&&this.setObjectPosition(r.objectPosition),r.transformOrigin!==void 0&&this.setTransformOrigin(r.transformOrigin),r.skew!==void 0&&EA(this.skew,r.skew),r.tint&&(this.tint=r.tint),r.rotation!==void 0&&(this.rotation=r.rotation),r.angle!==void 0&&(this.angle=r.angle),r.zIndex!==void 0&&(this.zIndex=r.zIndex),r.roundPixels!==void 0&&(this.roundPixels=r.roundPixels),r.cursor&&(this.cursor=r.cursor),r.visible!==void 0&&(this.visible=r.visible),r.alpha!==void 0&&(this.alpha=r.alpha),r.pivot&&EA(this.pivot,r.pivot),r.flexDirection&&this.setFlexDirection(r.flexDirection),r.flexWrap&&this.setFlexWrap(r.flexWrap),r.justifyContent&&this.setJustifyContent(r.justifyContent),r.alignItems&&this.setAlignItems(r.alignItems),r.alignContent&&this.setAlignContent(r.alignContent),r.alignSelf&&this.setAlignSelf(r.alignSelf),r.margin&&this.setMargin(r.margin),r.padding&&this.setPadding(r.padding),r.gap&&this.setGap(r.gap),r.border&&this.setBorder(r.border),r.positionType&&this.setPositionType(r.positionType),r.filters&&(this.filters=r.filters),r.maskOf&&Qt(r.maskOf)&&(r.maskOf.componentInstance.mask=this),r.blendMode&&(this.blendMode=r.blendMode),r.filterArea&&(this.filterArea=r.filterArea);const l=this.filters||[];if(r.blur){let I=l.find(o=>o instanceof v.BlurFilter);if(!I){const o=typeof r.blur=="number"?{strength:r.blur}:r.blur;I=new v.BlurFilter(o),l.push(I)}Object.assign(I,r.blur)}this.filters=l}async onDestroy(r,l){for(const[I,o]of It(this,A))this.off(I,o);It(this,A).clear(),Wt(this,n,null),this.onBeforeDestroy&&await this.onBeforeDestroy(),l&&l(),super.destroy()}setFlexDirection(r){this.layout={flexDirection:r}}setFlexWrap(r){this.layout={flexWrap:r}}setAlignContent(r){this.layout={alignContent:r}}setAlignSelf(r){this.layout={alignSelf:r}}setAlignItems(r){this.layout={alignItems:r}}setJustifyContent(r){this.layout={justifyContent:r}}setPosition(r){r instanceof Array?r.length===2?this.layout={positionY:r[0],positionX:r[1]}:r.length===4&&(this.layout={positionTop:r[0],positionRight:r[1],positionBottom:r[2],positionLeft:r[3]}):this.layout={position:r}}setX(r){r=r+this.getWidth()*this._anchorPoints.x,this.parentIsFlex?(this.x=r,this.layout={x:r}):this.x=r}setY(r){r=r+this.getHeight()*this._anchorPoints.y,this.parentIsFlex?(this.y=r,this.layout={y:r}):this.y=r}setPadding(r){r instanceof Array?r.length===2?this.layout={paddingVertical:r[0],paddingHorizontal:r[1]}:r.length===4&&(this.layout={paddingTop:r[0],paddingRight:r[1],paddingBottom:r[2],paddingLeft:r[3]}):this.layout={padding:r}}setMargin(r){r instanceof Array?r.length===2?this.layout={marginVertical:r[0],marginHorizontal:r[1]}:r.length===4&&(this.layout={marginTop:r[0],marginRight:r[1],marginBottom:r[2],marginLeft:r[3]}):this.layout={margin:r}}setGap(r){this.layout={gap:r}}setBorder(r){r instanceof Array?r.length===2?this.layout={borderVertical:r[0],borderHorizontal:r[1]}:r.length===4&&(this.layout={borderTop:r[0],borderRight:r[1],borderBottom:r[2],borderLeft:r[3]}):this.layout={border:r}}setPositionType(r){this.layout={position:r}}setWidth(r){this.displayWidth.set(r),this.parentIsFlex?this.layout={width:r}:this.width=r}setHeight(r){this.displayHeight.set(r),this.parentIsFlex?this.layout={height:r}:this.height=r}getWidth(){var l;return qt(this.fullProps.width)?((l=It(this,i))==null?void 0:l.width)!==void 0?It(this,i).width:typeof this.width=="number"?this.width:0:typeof this.width=="number"&&this.width>0?this.width:typeof this.displayWidth()=="number"?this.displayWidth():0}getHeight(){var l;return qt(this.fullProps.height)?((l=It(this,i))==null?void 0:l.height)!==void 0?It(this,i).height:typeof this.height=="number"?this.height:0:typeof this.height=="number"&&this.height>0?this.height:typeof this.displayHeight()=="number"?this.displayHeight():0}setMinWidth(r){this.layout={minWidth:r}}setMinHeight(r){this.layout={minHeight:r}}setMaxWidth(r){this.layout={maxWidth:r}}setMaxHeight(r){this.layout={maxHeight:r}}setAspectRatio(r){this.layout={aspectRatio:r}}setFlexGrow(r){this.layout={flexGrow:r}}setFlexShrink(r){this.layout={flexShrink:r}}setFlexBasis(r){this.layout={flexBasis:r}}setRowGap(r){this.layout={rowGap:r}}setColumnGap(r){this.layout={columnGap:r}}setTop(r){this.layout={top:r}}setLeft(r){this.layout={left:r}}setRight(r){this.layout={right:r}}setBottom(r){this.layout={bottom:r}}setObjectFit(r){this.layout={objectFit:r}}setObjectPosition(r){this.layout={objectPosition:r}}setTransformOrigin(r){this.layout={transformOrigin:r}}},t=new WeakMap,A=new WeakMap,i=new WeakMap,n=new WeakMap,s}class Rg{constructor(){this.assets=new Map,this.onProgressCallbacks=new Set,this.onCompleteCallbacks=new Set,this.assetCounter=0,this.isComplete=!1}registerAsset(t){const A=`asset_${this.assetCounter++}_${t}`;return this.assets.set(A,{progress:0,completed:!1}),this.isComplete=!1,this.updateGlobalProgress(),A}updateProgress(t,A){const i=this.assets.get(t);if(!i){console.warn(`Asset ${t} not found in tracker`);return}i.progress=Math.max(0,Math.min(1,A)),this.updateGlobalProgress()}completeAsset(t){const A=this.assets.get(t);if(!A){console.warn(`Asset ${t} not found in tracker`);return}A.progress=1,A.completed=!0,this.updateGlobalProgress(),this.checkCompletion()}removeAsset(t){this.assets.delete(t),this.updateGlobalProgress()}onProgress(t){this.onProgressCallbacks.add(t);try{t(this.getGlobalProgress())}catch(A){console.error("Error in onProgress callback:",A)}return()=>{this.onProgressCallbacks.delete(t)}}onComplete(t){return this.onCompleteCallbacks.add(t),this.isComplete&&t(),()=>{this.onCompleteCallbacks.delete(t)}}getGlobalProgress(){if(this.assets.size===0)return 1;let t=0;for(const A of this.assets.values())t+=A.progress;return t/this.assets.size}getAssetCount(){return this.assets.size}getCompletedCount(){let t=0;for(const A of this.assets.values())A.completed&&t++;return t}checkCompletion(){if(this.isComplete)return;Array.from(this.assets.values()).every(A=>A.completed)&&this.assets.size>0&&(this.isComplete=!0,this.onCompleteCallbacks.forEach(A=>{try{A()}catch(i){console.error("Error in onComplete callback:",i)}}))}updateGlobalProgress(){const t=this.getGlobalProgress();Array.from(this.onProgressCallbacks).forEach(i=>{try{i(t)}catch(n){console.error("Error in onProgress callback:",n)}})}reset(){this.assets.clear(),this.onProgressCallbacks.clear(),this.onCompleteCallbacks.clear(),this.assetCounter=0,this.isComplete=!1}}ht("Canvas",class extends mt(v.Container){});const _g=async(e={})=>{let{cursorStyles:t,width:A,height:i,class:n}=Bt(e);e.width||(A=W(800)),e.height||(i=W(600));const s=W({width:0,height:0});e.isRoot=!0;const a=new Rg,g={...e,context:{canvasSize:s,app:W(null),globalLoader:a},width:A==null?void 0:A(),height:i==null?void 0:i()};e.tick?g.context.tick=e.tick:g.context.tick=g.tick=W({timestamp:0,deltaTime:0,frame:0,deltaRatio:1}),globalThis.__CANVAS_ENGINE_TICK__=g.context.tick;const r=ut("Canvas",g);return r.render=(l,I)=>{if(!I)return;const o=I.renderer,h=o.view.canvas;globalThis.__PIXI_STAGE__=r.componentInstance,globalThis.__PIXI_RENDERER__=o,e.tickStart!==!1&&r.directives.tick.start(),it(()=>{r.propObservables.tick(),o.render(r.componentInstance)}),I.stage=r.componentInstance,I.stage.layout={width:I.screen.width,height:I.screen.height,justifyContent:e.justifyContent,alignItems:e.alignItems},s.set({width:I.screen.width,height:I.screen.height}),I.renderer.on("resize",(E,f)=>{s.set({width:E,height:f}),I.stage.layout&&(I.stage.layout={width:E,height:f})}),e.tickStart!==!1&&r.directives.tick.start(),I.ticker.add(()=>{r.propObservables.tick()}),t&&it(()=>{o.events.cursorStyles=t()}),n&&it(()=>{h.classList.add(n())});const c=l.querySelector("canvas");c?l.replaceChild(h,c):l.appendChild(h),g.context.app.set(I)},r};class Ri extends mt(v.Container){constructor(){super(...arguments),this.isCustomAnchor=!0}onUpdate(t){t.anchor&&(EA(this._anchorPoints,t.anchor),t.pivot=[this.getWidth()*this._anchorPoints.x,this.getHeight()*this._anchorPoints.y]),super.onUpdate(t),t.sortableChildren!=null&&(this.sortableChildren=t.sortableChildren)}async onMount(t){await super.onMount(t);const{componentInstance:A,props:i}=t,{pixiChildren:n}=i;n&&n.forEach(g=>{A.addChild(g)});const s=qt(i.width),a=qt(i.height);(s||a)&&this.on("layout",g=>{const r=g.computedLayout;s&&r.width!==void 0&&this.displayWidth.set(r.width),a&&r.height!==void 0&&this.displayHeight.set(r.height)})}}ht("Container",Ri);const qA=e=>(ht("Container",Ri),ut("Container",e));class Fg extends mt(v.Graphics){async onInit(t){await super.onInit(t)}async onMount(t,A){await super.onMount(t,A);const{props:i,propObservables:n}=t,s=T(n==null?void 0:n.width)?n.width:W(i.width||0),a=T(n==null?void 0:n.height)?n.height:W(i.height||0);this._width=s,this._height=a;const g=qt(s()),r=qt(a());i.draw&&(this.clearEffect=it(()=>{var o;const l=s(),I=a();typeof l=="string"||typeof I=="string"||(this.clear(),(o=i.draw)==null||o.call(i,this,l,I),this.subjectInit.next(this))})),this.on("layout",l=>{const I=l.computedLayout;g&&T(s)&&s()!==I.width&&s.set(I.width),r&&T(a)&&a()!==I.height&&a.set(I.height)})}onUpdate(t){super.onUpdate(t),t.width!==void 0&&this._width&&this._width()!==t.width&&this._width.set(t.width),t.height!==void 0&&this._height&&this._height()!==t.height&&this._height.set(t.height)}async onDestroy(t,A){const i=async()=>{var n;(n=this.clearEffect)==null||n.subscription.unsubscribe(),A()};await super.onDestroy(t,i)}}ht("Graphics",Fg);function Xt(e){return ut("Graphics",e)}function so(e){const{color:t,borderRadius:A,border:i}=Bt(e,{borderRadius:null,border:null});return Xt({draw:(n,s,a)=>{A()?n.roundRect(0,0,s,a,A()):n.rect(0,0,s,a),i&&n.stroke(i),n.fill(t())},...e})}function Gg(e,t,A){const{color:i,border:n}=A;"radius"in A?e.circle(0,0,A.radius()):e.ellipse(0,0,A.width()/2,A.height()/2),n()&&e.stroke(n()),e.fill(i())}function oo(e){const{radius:t,color:A,border:i}=Bt(e,{border:null});return Xt({draw:n=>Gg(n,"circle",{radius:t,color:A,border:i}),...e})}function ro(e){const{width:t,height:A,color:i,border:n}=Bt(e,{border:null});return Xt({draw:(s,a,g)=>{s.ellipse(0,0,a/2,g/2),n()&&s.stroke(n()),s.fill(i())},...e})}function Ng(e){const{width:t,height:A,color:i,border:n}=Bt(e,{border:null,color:"#000"});return Xt({draw:(s,a,g)=>{s.moveTo(0,g),s.lineTo(a/2,0),s.lineTo(a,g),s.lineTo(0,g),s.fill(i()),n&&s.stroke(n)},...e})}function Hg(e){return Xt({draw:async t=>{if(e.src){const A=await v.Assets.load({src:e.src,data:{parseAsGraphicsContext:!0}}),i=new v.Graphics(A);t.context=i.context}else e.content?t.svg(e.content):e.svg&&t.svg(e.svg)},...e})}class Lg extends mt(v.Mesh){constructor(){super({geometry:new v.Geometry})}onInit(t){if(super.onInit(t),t.geometry)try{this.geometry=t.geometry}catch(A){console.warn("Failed to set geometry:",A)}t.shader&&(this.shader=t.shader)}async onUpdate(t){if(super.onUpdate(t),t.geometry)try{this.geometry=t.geometry}catch(A){console.warn("Failed to update geometry:",A)}t.shader&&(this.shader=t.shader),t.texture?typeof t.texture=="string"?this.texture=await v.Assets.load(t.texture):this.texture=t.texture:t.image&&(this.texture=await v.Assets.load(t.image)),t.tint!==void 0&&(this.tint=t.tint),t.blendMode!==void 0&&(this.blendMode=t.blendMode),t.roundPixels!==void 0&&(this.roundPixels=t.roundPixels)}async onDestroy(t,A){const i=async()=>{A()};await super.onDestroy(t,i)}}ht("Mesh",Lg);const Ug=e=>ut("Mesh",e);x.currentSubscriptionsTracker=null,x.mountTracker=null;function _i(e){var t;(t=x.mountTracker)==null||t.call(x,e)}function Og(e){_i(t=>{const{context:A}=t.props;let i;return A.tick&&(i=A.tick.observable.subscribe(({value:n})=>{_t(t)||e(n,t)})),()=>{i==null||i.unsubscribe()}})}function ct(e,t={},...A){const i=new Set,n=new Set;x.currentSubscriptionsTracker=a=>{i.add(a)},x.mountTracker=a=>{n.add(a)},A[0]instanceof Array&&(A=A[0]);let s;return Array.isArray(e)?e.length===1?s=e[0]:s=ct(qA,{},...e):"tag"in e||e instanceof q?s=e:s=e({...t,children:A}),s||(s={}),s.effectSubscriptions=Array.from(i),s.effectMounts=[...Array.from(n),...s.effectMounts??[]],t!=null&&t.dependencies&&(s.props=s.props||{},s.props.dependencies=t.dependencies),s instanceof Promise&&s.then(a=>{a.props.isRoot&&n.forEach(g=>g(a))}),x.currentSubscriptionsTracker=null,x.mountTracker=null,s}function Tg(e){return ct(qA)}/*!
|
|
22
22
|
* @barvynkoa/particle-emitter - v6.0.0
|
|
23
23
|
* Compiled Mon, 27 May 2024 12:15:21 UTC
|
|
24
24
|
*
|
|
25
25
|
* @barvynkoa/particle-emitter is licensed under the MIT License.
|
|
26
26
|
* http://www.opensource.org/licenses/mit-license
|
|
27
|
-
*/class vi{constructor(t){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(t)}init(t){if(!t||!t.length)this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});else if(Array.isArray(t[0]))for(let A=0;A<t.length;++A){const i=t[A];let n=i[0];for(let s=1;s<i.length;++s){const a=i[s];this.segments.push({p1:n,p2:a,l:0}),n=a}}else{let A=t[0];for(let i=1;i<t.length;++i){const n=t[i];this.segments.push({p1:A,p2:n,l:0}),A=n}}for(let A=0;A<this.segments.length;++A){const{p1:i,p2:n}=this.segments[A],s=Math.sqrt((n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y));this.segments[A].l=s,this.totalLength+=s,this.countingLengths.push(this.totalLength)}}getRandPos(t){const A=Math.random()*this.totalLength;let i,n;if(this.segments.length===1)i=this.segments[0],n=A;else for(let o=0;o<this.countingLengths.length;++o)if(A<this.countingLengths[o]){i=this.segments[o],n=o===0?A:A-this.countingLengths[o-1];break}n/=i.l||1;const{p1:s,p2:a}=i;t.x=s.x+n*(a.x-s.x),t.y=s.y+n*(a.y-s.y)}}vi.type="polygonalChain",vi.editorConfig=null;class Si{constructor(t){this.x=t.x,this.y=t.y,this.w=t.w,this.h=t.h}getRandPos(t){t.x=Math.random()*this.w+this.x,t.y=Math.random()*this.h+this.y}}Si.type="rect",Si.editorConfig=null;class Rt{constructor(t,A,i){this.value=t,this.time=A,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:oo(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:a}=i[0],o=n=new Rt(typeof s=="string"?ye(s):s,a,t.ease);if(i.length>2||i.length===2&&i[1].value!==s)for(let h=1;h<i.length;++h){const{value:l,time:B}=i[h];n.next=new Rt(typeof l=="string"?ye(l):l,B),n=n.next}return o.isStepped=!!t.isStepped,o}const A=new Rt(typeof t.start=="string"?ye(t.start):t.start,0);return t.end!==t.start&&(A.next=new Rt(typeof t.end=="string"?ye(t.end):t.end,1)),A}}let YA=m.Texture.from;const _t=Math.PI/180;function Lt(e,t){if(!e)return;const A=Math.sin(e),i=Math.cos(e),n=t.x*i-t.y*A,s=t.x*A+t.y*i;t.x=n,t.y=s}function pe(e,t,A){return e<<16|t<<8|A}function no(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Ng(e){const t=1/no(e);e.x*=t,e.y*=t}function so(e,t){e.x*=t,e.y*=t}function ye(e,t){t||(t={}),e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2));let A;return e.length===8&&(A=e.substr(0,2),e=e.substr(2)),t.r=parseInt(e.substr(0,2),16),t.g=parseInt(e.substr(2,2),16),t.b=parseInt(e.substr(4,2),16),A&&(t.a=parseInt(A,16)),t}function oo(e){const t=e.length,A=1/t;return function(i){const n=t*i|0,s=(i-n*A)*t,a=e[n]||e[t-1];return a.s+s*(2*(1-s)*(a.cp-a.s)+s*(a.e-a.s))}}function Hg(e){return e||"normal"}class we{constructor(t){this.x=t.x||0,this.y=t.y||0,this.radius=t.radius,this.innerRadius=t.innerRadius||0,this.rotation=!!t.affectRotation}getRandPos(t){this.innerRadius!==this.radius?t.x=Math.random()*(this.radius-this.innerRadius)+this.innerRadius:t.x=this.radius,t.y=0;const A=Math.random()*Math.PI*2;this.rotation&&(t.rotation+=A),Lt(A,t.position),t.position.x+=this.x,t.position.y+=this.y}}we.type="torus",we.editorConfig=null;var j;(function(e){e[e.Spawn=0]="Spawn",e[e.Normal=2]="Normal",e[e.Late=5]="Late"})(j||(j={}));class xi{constructor(t){this.order=j.Late,this.minStart=t.minStart,this.maxStart=t.maxStart,this.accel=t.accel,this.rotate=!!t.rotate,this.maxSpeed=t.maxSpeed??0}initParticles(t){let A=t;for(;A;){const i=Math.random()*(this.maxStart-this.minStart)+this.minStart;A.config.velocity?A.config.velocity.set(i,0):A.config.velocity=new m.Point(i,0),Lt(A.rotation,A.config.velocity),A=A.next}}updateParticle(t,A){const i=t.config.velocity,n=i.x,s=i.y;if(i.x+=this.accel.x*A,i.y+=this.accel.y*A,this.maxSpeed){const a=no(i);a>this.maxSpeed&&so(i,this.maxSpeed/a)}t.x+=(n+i.x)/2*A,t.y+=(s+i.y)/2*A,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}xi.type="moveAcceleration",xi.editorConfig=null;function Lg(e){return this.ease&&(e=this.ease(e)),(this.first.next.value-this.first.value)*e+this.first.value}function Ug(e){this.ease&&(e=this.ease(e));const t=this.first.value,A=this.first.next.value,i=(A.r-t.r)*e+t.r,n=(A.g-t.g)*e+t.g,s=(A.b-t.b)*e+t.b;return pe(i,n,s)}function Og(e){this.ease&&(e=this.ease(e));let t=this.first,A=t.next;for(;e>A.time;)t=A,A=A.next;return e=(e-t.time)/(A.time-t.time),(A.value-t.value)*e+t.value}function Tg(e){this.ease&&(e=this.ease(e));let t=this.first,A=t.next;for(;e>A.time;)t=A,A=A.next;e=(e-t.time)/(A.time-t.time);const i=t.value,n=A.value,s=(n.r-i.r)*e+i.r,a=(n.g-i.g)*e+i.g,o=(n.b-i.b)*e+i.b;return pe(s,a,o)}function Jg(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;return t.value}function Pg(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;const A=t.value;return pe(A.r,A.g,A.b)}class WA{constructor(t=!1){this.first=null,this.isColor=!!t,this.interpolate=null,this.ease=null}reset(t){this.first=t,t.next&&t.next.time>=1?this.interpolate=this.isColor?Ug:Lg:t.isStepped?this.interpolate=this.isColor?Pg:Jg:this.interpolate=this.isColor?Tg:Og,this.ease=this.first.ease}}class bi{constructor(t){this.order=j.Normal,this.list=new WA(!1),this.list.reset(Rt.createList(t.alpha))}initParticles(t){let A=t;for(;A;)A.alpha=this.list.first.value,A=A.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}bi.type="alpha",bi.editorConfig=null;class ki{constructor(t){this.order=j.Normal,this.value=t.alpha}initParticles(t){let A=t;for(;A;)A.alpha=this.value,A=A.next}}ki.type="alphaStatic",ki.editorConfig=null;function ro(e){const t=[];for(let A=0;A<e.length;++A){let i=e[A];if(typeof i=="string")t.push(YA(i));else if(i instanceof m.Texture)t.push(i);else{let n=i.count||1;for(typeof i.texture=="string"?i=YA(i.texture):i=i.texture;n>0;--n)t.push(i)}}return t}class Mi{constructor(t){this.order=j.Normal,this.anims=[];for(let A=0;A<t.anims.length;++A){const i=t.anims[A],n=ro(i.textures),s=i.framerate<0?-1:i.framerate>0?i.framerate:60,a={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(a)}}initParticles(t){let A=t;for(;A;){const i=Math.floor(Math.random()*this.anims.length),n=A.config.anim=this.anims[i];A.texture=n.textures[0],A.config.animElapsed=0,n.framerate===-1?(A.config.animDuration=A.maxLife,A.config.animFramerate=n.textures.length/A.maxLife):(A.config.animDuration=n.duration,A.config.animFramerate=n.framerate),A=A.next}}updateParticle(t,A){const i=t.config,n=i.anim;i.animElapsed+=A,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const s=i.animElapsed*i.animFramerate+1e-7|0;t.texture=n.textures[s]||n.textures[n.textures.length-1]||m.Texture.EMPTY}}Mi.type="animatedRandom",Mi.editorConfig=null;class Ri{constructor(t){this.order=j.Normal;const A=t.anim,i=ro(A.textures),n=A.framerate<0?-1:A.framerate>0?A.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!A.loop:!1}}initParticles(t){let A=t;const i=this.anim;for(;A;)A.texture=i.textures[0],A.config.animElapsed=0,i.framerate===-1?(A.config.animDuration=A.maxLife,A.config.animFramerate=i.textures.length/A.maxLife):(A.config.animDuration=i.duration,A.config.animFramerate=i.framerate),A=A.next}updateParticle(t,A){const i=this.anim,n=t.config;n.animElapsed+=A,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const s=n.animElapsed*n.animFramerate+1e-7|0;t.texture=i.textures[s]||i.textures[i.textures.length-1]||m.Texture.EMPTY}}Ri.type="animatedSingle",Ri.editorConfig=null;class _i{constructor(t){this.order=j.Normal,this.value=t.blendMode}initParticles(t){let A=t;for(;A;)A.blendMode=Hg(this.value),A=A.next}}_i.type="blendMode",_i.editorConfig=null;class Fi{constructor(t){this.order=j.Spawn,this.spacing=t.spacing*_t,this.start=t.start*_t,this.distance=t.distance}initParticles(t){let A=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*A:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,Lt(n,i.position)),i=i.next,++A}}}Fi.type="spawnBurst",Fi.editorConfig=null;class Gi{constructor(t){this.order=j.Normal,this.list=new WA(!0),this.list.reset(Rt.createList(t.color))}initParticles(t){let A=t;const i=this.list.first.value,n=pe(i.r,i.g,i.b);for(;A;)A.tint=n,A=A.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Gi.type="color",Gi.editorConfig=null;class Ni{constructor(t){this.order=j.Normal;let A=t.color;A.charAt(0)==="#"?A=A.substr(1):A.indexOf("0x")===0&&(A=A.substr(2)),this.value=parseInt(A,16)}initParticles(t){let A=t;for(;A;)A.tint=this.value,A=A.next}}Ni.type="colorStatic",Ni.editorConfig=null;class Hi{constructor(t){this.order=j.Normal,this.index=0,this.textures=t.textures.map(A=>typeof A=="string"?YA(A):A)}initParticles(t){let A=t;for(;A;)A.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),A=A.next}}Hi.type="textureOrdered",Hi.editorConfig=null;const BA=new m.Point,ao=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Kg=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(ao).join("|"),"g");function Yg(e){const t=e.match(Kg);for(let A=t.length-1;A>=0;--A)ao.indexOf(t[A])>=0&&(t[A]=`Math.${t[A]}`);return e=t.join(""),new Function("x",`return ${e};`)}class Li{constructor(t){if(this.order=j.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Yg(t.path)}catch{this.path=null}else this.path=A=>A;this.list=new WA(!1),this.list.reset(Rt.createList(t.speed)),this.minMult=t.minMult??1}initParticles(t){let A=t;for(;A;){A.config.initRotation=A.rotation,A.config.initPosition?A.config.initPosition.copyFrom(A.position):A.config.initPosition=new m.Point(A.x,A.y),A.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;A.config.speedMult=i,A=A.next}}updateParticle(t,A){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*A,BA.x=t.config.movement,BA.y=this.path(BA.x),Lt(t.config.initRotation,BA),t.position.x=t.config.initPosition.x+BA.x,t.position.y=t.config.initPosition.y+BA.y}}Li.type="movePath",Li.editorConfig=null;class Ui{constructor(){this.order=j.Spawn}initParticles(t){}}Ui.type="spawnPoint",Ui.editorConfig=null;class Oi{constructor(t){this.order=j.Normal,this.textures=t.textures.map(A=>typeof A=="string"?YA(A):A)}initParticles(t){let A=t;for(;A;){const i=Math.floor(Math.random()*this.textures.length);A.texture=this.textures[i],A=A.next}}}Oi.type="textureRandom",Oi.editorConfig=null;class Ti{constructor(t){this.order=j.Normal,this.minStart=t.minStart*_t,this.maxStart=t.maxStart*_t,this.minSpeed=t.minSpeed*_t,this.maxSpeed=t.maxSpeed*_t,this.accel=t.accel*_t}initParticles(t){let A=t;for(;A;)this.minStart===this.maxStart?A.rotation+=this.maxStart:A.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,A.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,A=A.next}updateParticle(t,A){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*A,t.rotation+=(t.config.rotSpeed+i)/2*A}else t.rotation+=t.config.rotSpeed*A}}Ti.type="rotation",Ti.editorConfig=null;class Ji{constructor(t){this.order=j.Normal,this.min=t.min*_t,this.max=t.max*_t}initParticles(t){let A=t;for(;A;)this.min===this.max?A.rotation+=this.max:A.rotation+=Math.random()*(this.max-this.min)+this.min,A=A.next}}Ji.type="rotationStatic",Ji.editorConfig=null;class Pi{constructor(t){this.order=j.Late+1,this.rotation=(t.rotation||0)*_t}initParticles(t){let A=t;for(;A;)A.rotation=this.rotation,A=A.next}}Pi.type="noRotation",Pi.editorConfig=null;class Ki{constructor(t){this.order=j.Normal,this.list=new WA(!1),this.list.reset(Rt.createList(t.scale)),this.minMult=t.minMult??1}initParticles(t){let A=t;for(;A;){const i=Math.random()*(1-this.minMult)+this.minMult;A.config.scaleMult=i,A.scale.x=A.scale.y=this.list.first.value*i,A=A.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}Ki.type="scale",Ki.editorConfig=null;class Yi{constructor(t){this.order=j.Normal,this.min=t.min,this.max=t.max}initParticles(t){let A=t;for(;A;){const i=Math.random()*(this.max-this.min)+this.min;A.scale.x=A.scale.y=i,A=A.next}}}Yi.type="scaleStatic",Yi.editorConfig=null;class mt{static registerShape(t,A){mt.shapes[A||t.type]=t}constructor(t){this.order=j.Spawn;const A=mt.shapes[t.type];if(!A)throw new Error(`No shape found with type '${t.type}'`);this.shape=new A(t.data)}initParticles(t){let A=t;for(;A;)this.shape.getRandPos(A),A=A.next}}mt.type="spawnShape",mt.editorConfig=null,mt.shapes={},mt.registerShape(vi),mt.registerShape(Si),mt.registerShape(we),mt.registerShape(we,"circle");class Wi{constructor(t){this.order=j.Normal,this.texture=typeof t.texture=="string"?YA(t.texture):t.texture}initParticles(t){let A=t;for(;A;)A.texture=this.texture,A=A.next}}Wi.type="textureSingle",Wi.editorConfig=null;class ji{constructor(t){this.order=j.Late,this.list=new WA(!1),this.list.reset(Rt.createList(t.speed)),this.minMult=t.minMult??1}initParticles(t){let A=t;for(;A;){const i=Math.random()*(1-this.minMult)+this.minMult;A.config.speedMult=i,A.config.velocity?A.config.velocity.set(this.list.first.value*i,0):A.config.velocity=new m.Point(this.list.first.value*i,0),Lt(A.rotation,A.config.velocity),A=A.next}}updateParticle(t,A){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;Ng(n),so(n,i),t.x+=n.x*A,t.y+=n.y*A}}ji.type="moveSpeed",ji.editorConfig=null;class qi{constructor(t){this.order=j.Late,this.min=t.min,this.max=t.max}initParticles(t){let A=t;for(;A;){const i=Math.random()*(this.max-this.min)+this.min;A.config.velocity?A.config.velocity.set(i,0):A.config.velocity=new m.Point(i,0),Lt(A.rotation,A.config.velocity),A=A.next}}updateParticle(t,A){const i=t.config.velocity;t.x+=i.x*A,t.y+=i.y*A}}qi.type="moveSpeedStatic",qi.editorConfig=null;class Vi extends m.Sprite{constructor(t){super(),this.prevChild=this.nextChild=null,this.emitter=t,this.config={},this.anchor.x=this.anchor.y=.5,this.maxLife=0,this.age=0,this.agePercent=0,this.oneOverLife=0,this.next=null,this.prev=null,this.init=this.init,this.kill=this.kill}init(t){this.maxLife=t,this.age=this.agePercent=0,this.rotation=0,this.position.x=this.position.y=0,this.scale.x=this.scale.y=1,this.tint=16777215,this.alpha=1,this.oneOverLife=1/this.maxLife,this.visible=!0}kill(){this.emitter.recycle(this)}destroy(){this.parent&&this.parent.removeChild(this),this.emitter=this.next=this.prev=null,super.destroy()}}const Xi=m.Ticker.shared,AA=Symbol("Position particle per emitter position");class P{static registerBehavior(t){P.knownBehaviors[t.type]=t}constructor(t,A){this.initBehaviors=[],this.updateBehaviors=[],this.recycleBehaviors=[],this.minLifetime=0,this.maxLifetime=0,this.customEase=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=new m.Point,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new m.Point,this._prevEmitterPos=new m.Point,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=t,A&&this.init(A),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}get frequency(){return this._frequency}set frequency(t){typeof t=="number"&&t>0?this._frequency=t:this._frequency=1}get parent(){return this._parent}set parent(t){this.cleanup(),this._parent=t}init(t){if(!t)return;this.cleanup(),this._origConfig=t,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,t.ease?this.customEase=typeof t.ease=="function"?t.ease:oo(t.ease):this.customEase=null,this.particlesPerWave=1,t.particlesPerWave&&t.particlesPerWave>1&&(this.particlesPerWave=t.particlesPerWave),this.frequency=t.frequency,this.spawnChance=typeof t.spawnChance=="number"&&t.spawnChance>0?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=t.maxParticles>0?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos.set(0),t.pos?this.spawnPos.copyFrom(t.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=t.emit===void 0?!0:!!t.emit,this.autoUpdate=!!t.autoUpdate;const A=t.behaviors.map(i=>{const n=P.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);A.push(AA),A.sort((i,n)=>i===AA?n.order===j.Spawn?1:-1:n===AA?i.order===j.Spawn?-1:1:i.order-n.order),this.initBehaviors=A.slice(),this.updateBehaviors=A.filter(i=>i!==AA&&i.updateParticle),this.recycleBehaviors=A.filter(i=>i!==AA&&i.recycleParticle)}getBehavior(t){return P.knownBehaviors[t]&&this.initBehaviors.find(A=>A instanceof P.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const A=new Vi(this);A.next=this._poolFirst,this._poolFirst=A}}recycle(t,A=!1){for(let i=0;i<this.recycleBehaviors.length;++i)this.recycleBehaviors[i].recycleParticle(t,!A);t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===this._activeParticlesLast&&(this._activeParticlesLast=t.prev),t===this._activeParticlesFirst&&(this._activeParticlesFirst=t.next),t.prev=null,t.next=this._poolFirst,this._poolFirst=t,t.parent&&t.parent.removeChild(t),--this.particleCount}rotate(t){if(this.rotation===t)return;const A=t-this.rotation;this.rotation=t,Lt(A,this.spawnPos),this._posChanged=!0}updateSpawnPos(t,A){this._posChanged=!0,this.spawnPos.x=t,this.spawnPos.y=A}updateOwnerPos(t,A){this._posChanged=!0,this.ownerPos.x=t,this.ownerPos.y=A}resetPositionTracking(){this._prevPosIsValid=!1}get emit(){return this._emit}set emit(t){this._emit=!!t,this._emitterLife=this.emitterLifetime}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){this._autoUpdate&&!t?Xi.remove(this.update,this):!this._autoUpdate&&t&&Xi.add(this.update,this),this._autoUpdate=!!t}playOnceAndDestroy(t){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=t}playOnce(t){this.emit=!0,this._completeCallback=t}update(t){if(typeof t!="number"&&(t=t.deltaTime),this._autoUpdate&&(t=Xi.elapsedMS*.001),!this._parent)return;for(let a=this._activeParticlesFirst,o;a;a=o)if(o=a.next,a.age+=t,a.age>a.maxLife||a.age<0)this.recycle(a);else{let h=a.age*a.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),a.agePercent=h;for(let l=0;l<this.updateBehaviors.length;++l)if(this.updateBehaviors[l].updateParticle(a,t)){this.recycle(a);break}}let A,i;this._prevPosIsValid&&(A=this._prevEmitterPos.x,i=this._prevEmitterPos.y);const n=this.ownerPos.x+this.spawnPos.x,s=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=t<0?0:t;this._spawnTimer<=0;){if(this._emitterLife>=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let a,o;if(this._prevPosIsValid&&this._posChanged){const B=1+this._spawnTimer/t;a=(n-A)*B+A,o=(s-i)*B+i}else a=n,o=s;let h=null,l=null;for(let B=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),r=0;r<B;++r){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let g;if(this.minLifetime===this.maxLifetime?g=this.minLifetime:g=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=g)continue;let c;this._poolFirst?(c=this._poolFirst,this._poolFirst=this._poolFirst.next,c.next=null):c=new Vi(this),c.init(g),this.addAtBack?this._parent.addChildAt(c,0):this._parent.addChild(c),h?(l.next=c,c.prev=l,l=c):l=h=c,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=l):(this._activeParticlesFirst=h,this._activeParticlesLast=l);for(let B=0;B<this.initBehaviors.length;++B){const r=this.initBehaviors[B];if(r===AA)for(let g=h,c;g;g=c){c=g.next,this.rotation!==0&&(Lt(this.rotation,g.position),g.rotation+=this.rotation),g.position.x+=a,g.position.y+=o,g.age+=-this._spawnTimer;let E=g.age*g.oneOverLife;this.customEase&&(this.customEase.length===4?E=this.customEase(E,0,1,1):E=this.customEase(E)),g.agePercent=E}else r.initParticles(h)}for(let B=h,r;B;B=r){r=B.next;for(let g=0;g<this.updateBehaviors.length;++g)if(this.updateBehaviors[g].updateParticle(B,-this._spawnTimer)){this.recycle(B);break}}}this._spawnTimer+=this._frequency}if(this._posChanged&&(this._prevEmitterPos.x=n,this._prevEmitterPos.y=s,this._prevPosIsValid=!0,this._posChanged=!1),!this._emit&&!this._activeParticlesFirst){if(this._completeCallback){const a=this._completeCallback;this._completeCallback=null,a()}this._destroyWhenComplete&&this.destroy()}}emitNow(){const t=this.ownerPos.x+this.spawnPos.x,A=this.ownerPos.y+this.spawnPos.y;let i=null,n=null;for(let s=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),a=0;a<s;++a){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new Vi(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,o.init(h),this.addAtBack?this._parent.addChildAt(o,0):this._parent.addChild(o),i?(n.next=o,o.prev=n,n=o):n=i=o,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let s=0;s<this.initBehaviors.length;++s){const a=this.initBehaviors[s];if(a===AA)for(let o=i,h;o;o=h)h=o.next,this.rotation!==0&&(Lt(this.rotation,o.position),o.rotation+=this.rotation),o.position.x+=t,o.position.y+=A;else a.initParticles(i)}}}cleanup(){let t,A;for(t=this._activeParticlesFirst;t;t=A)A=t.next,this.recycle(t,!0);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0}get destroyed(){return!(this._parent&&this.initBehaviors.length)}destroy(){this.autoUpdate=!1,this.cleanup();let t;for(let A=this._poolFirst;A;A=t)t=A.next,A.destroy();this._poolFirst=this._parent=this.spawnPos=this.ownerPos=this.customEase=this._completeCallback=null,this.initBehaviors.length=this.updateBehaviors.length=this.recycleBehaviors.length=0}}P.knownBehaviors={},P.registerBehavior(xi),P.registerBehavior(bi),P.registerBehavior(ki),P.registerBehavior(Mi),P.registerBehavior(Ri),P.registerBehavior(_i),P.registerBehavior(Fi),P.registerBehavior(Gi),P.registerBehavior(Ni),P.registerBehavior(Hi),P.registerBehavior(Li),P.registerBehavior(Ui),P.registerBehavior(Oi),P.registerBehavior(Ti),P.registerBehavior(Ji),P.registerBehavior(Pi),P.registerBehavior(Ki),P.registerBehavior(Yi),P.registerBehavior(mt),P.registerBehavior(Wi),P.registerBehavior(ji),P.registerBehavior(qi);class Wg extends to{constructor(){super(...arguments),this.elapsed=Date.now()}async onMount(t){await super.onMount(t);const{props:A}=t,i=A.context.tick;this.emitter=new P(this,A.config),this.subscriptionTick=i.observable.subscribe(n=>{if(!this.emitter)return;const s=Date.now();this.emitter.update((s-this.elapsed)*.001),this.elapsed=s})}onUpdate(t){}async onDestroy(t,A){const i=async()=>{var n;(n=this.emitter)==null||n.destroy(),this.emitter=null,this.subscriptionTick.unsubscribe(),A()};await super.onDestroy(t,i)}}lt("ParticlesEmitter",Wg);function jg(e){return ct("ParticlesEmitter",e)}const go=console.log;class qg extends wt(m.Sprite){constructor(){super(...arguments),this.currentAnimation=null,this.time=0,this.frameIndex=0,this.animations=new Map,this.subscriptionSheet=[],this.sheetParams={},this.sheetCurrentAnimation="stand",this.app=null,this.globalLoader=null,this.trackedAssetIds=new Set,this.currentAnimationContainer=null}get renderer(){var t;return(t=this.app)==null?void 0:t.renderer}async detectImageDimensions(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error(`Invalid image path provided to detectImageDimensions: ${t}`);let A=null;this.globalLoader&&(A=this.globalLoader.registerAsset(t),this.trackedAssetIds.add(A));const i=await m.Assets.load(t,n=>{this.globalLoader&&A&&this.globalLoader.updateProgress(A,n)});return this.globalLoader&&A&&this.globalLoader.completeAsset(A),{width:i.width,height:i.height}}async createTextures(t){let{width:A,height:i,framesHeight:n,framesWidth:s,image:a,offset:o}=t;if(!a||typeof a!="string"||a.trim()==="")return console.warn("Invalid image path provided to createTextures:",a),[];let h=null;this.globalLoader&&(h=this.globalLoader.registerAsset(a),this.trackedAssetIds.add(h));const l=await m.Assets.load(a,C=>{this.globalLoader&&h&&this.globalLoader.updateProgress(h,C)});this.globalLoader&&h&&this.globalLoader.completeAsset(h),(!A||A<=0)&&(A=l.width,t.width=A),(!i||i<=0)&&(i=l.height,t.height=i);const B=t.spriteWidth,r=t.spriteHeight,g=[],c=o&&o.x||0,E=o&&o.y||0;for(let C=0;C<n;C++){g[C]=[];for(let Q=0;Q<s;Q++){const f=Q*B+c,y=C*r+E;if(y>i)throw go(`Warning, there is a problem with the height of the "${this.id}" spritesheet. When cutting into frames, the frame exceeds the height of the image.`);if(f>A)throw go(`Warning, there is a problem with the width of the "${this.id}" spritesheet. When cutting into frames, the frame exceeds the width of the image.`);g[C].push(new m.Texture({source:l.source,frame:new m.Rectangle(f,y,B,r)}))}}return g}async createAnimations(){const{textures:t}=this.spritesheet;if(t)for(let A in t){const s={...["width","height","framesHeight","framesWidth","rectWidth","rectHeight","offset","image","sound"].reduce((C,Q)=>({...C,[Q]:this.spritesheet[Q]}),{}),...t[A]},{rectWidth:a,width:o=0,framesWidth:h=1,rectHeight:l,height:B=0,framesHeight:r=1,image:g}=s;let c=o,E=B;if(g&&(!c||c<=0||!E||E<=0)){const C=await this.detectImageDimensions(g);(!c||c<=0)&&(c=C.width,s.width=c),(!E||E<=0)&&(E=C.height,s.height=E)}s.spriteWidth=a||c/h,s.spriteHeight=l||E/r,this.animations.set(A,{frames:await this.createTextures(s),name:A,animations:t[A].animations,params:[],data:s,sprites:[]})}}async onMount(t){var h,l;const{props:A,propObservables:i}=t,n=A.context.tick,s=A.sheet??{},a=((h=A.sheet)==null?void 0:h.definition)??{};if(this.app=A.context.app(),this.globalLoader=((l=A.context)==null?void 0:l.globalLoader)||null,s!=null&&s.onFinish&&(this.onFinish=s.onFinish),this.subscriptionTick=n.observable.subscribe(B=>{this.destroyed||this.update(B)}),a&&(this.spritesheet=a.value??a,await this.createAnimations()),s.params)for(let B in i==null?void 0:i.sheet.params){const r=i==null?void 0:i.sheet.params[B];Y(r)?this.subscriptionSheet.push(r.observable.subscribe(g=>{this.animations.size!=0&&this.play(this.sheetCurrentAnimation,[{[B]:g}])})):this.play(this.sheetCurrentAnimation,[{[B]:r}])}const o=Et(()=>{const{x:B,y:r}=i??{};if(!B||!r)return!1;const g=B,c=r,E=wi(g)&&g.animatedState().current!==g.animatedState().end,C=wi(c)&&c.animatedState().current!==c.animatedState().end;return E||C});et(()=>{const B=o();this.isMounted&&(B?this.sheetCurrentAnimation="walk":this.sheetCurrentAnimation="stand",this.spritesheet&&this.has(this.sheetCurrentAnimation)&&this.play(this.sheetCurrentAnimation,[this.sheetParams]))}),super.onMount(t)}async onUpdate(t){var s,a,o,h;if(this.destroyed)return;super.onUpdate(t),!this.globalLoader&&((s=t.context)!=null&&s.globalLoader)&&(this.globalLoader=t.context.globalLoader);const A=async l=>{var c;if(!l||typeof l!="string"||l.trim()==="")return console.warn("Invalid image path provided to setTexture:",l),null;let B=null;this.globalLoader&&(B=this.globalLoader.registerAsset(l),this.trackedAssetIds.add(B));const r=(c=this.fullProps.loader)==null?void 0:c.onProgress,g=await m.Assets.load(l,E=>{var C;if(this.globalLoader&&B&&this.globalLoader.updateProgress(B,E),r&&r(E),E==1){this.globalLoader&&B&&this.globalLoader.completeAsset(B);const Q=(C=this.fullProps.loader)==null?void 0:C.onComplete;Q&&setTimeout(()=>{Q(g)})}});return g},i=t.sheet,n=((a=t.sheet)==null?void 0:a.definition)??{};if((n==null?void 0:n.type)==="reset"&&(this.spritesheet=n.value??n,await this.resetAnimations()),i!=null&&i.params&&(this.sheetParams=i==null?void 0:i.params),i!=null&&i.playing&&this.isMounted&&(this.sheetCurrentAnimation=i==null?void 0:i.playing,this.play(this.sheetCurrentAnimation,[this.sheetParams])),t.hitbox&&(this.hitbox=t.hitbox.value??t.hitbox),t.scaleMode)this.baseTexture.scaleMode=t.scaleMode;else if(t.image&&this.fullProps.rectangle===void 0){const l=await A(this.fullProps.image);l&&(this.texture=l)}else t.texture&&(yt(t.texture)?(t.texture.componentInstance.subjectInit.subscribe(),this.texture=(o=this.renderer)==null?void 0:o.generateTexture(t.texture.componentInstance)):this.texture=t.texture);if(t.rectangle!==void 0){const{x:l,y:B,width:r,height:g}=((h=t.rectangle)==null?void 0:h.value)??t.rectangle,c=await A(this.fullProps.image);c&&(this.texture=new m.Texture({source:c.source,frame:new m.Rectangle(l,B,r,g)}))}}async onDestroy(t,A){const i=async()=>{this.globalLoader&&(this.trackedAssetIds.forEach(n=>{this.globalLoader.removeAsset(n)}),this.trackedAssetIds.clear()),this.subscriptionSheet.forEach(n=>n.unsubscribe()),this.subscriptionTick.unsubscribe(),this.currentAnimationContainer&&this.parent instanceof m.Container&&this.parent.removeChild(this.currentAnimationContainer),A&&A()};await super.onDestroy(t,i)}has(t){return this.animations.has(t)}get(t){return this.animations.get(t)}isPlaying(t){return t?this.currentAnimation==null?!1:this.currentAnimation.name==t:!!this.currentAnimation}stop(){this.currentAnimation=null}play(t,A=[]){var h;const i=(h=this.currentAnimation)==null?void 0:h.params;if(this.isPlaying(t)&&ge(A,i||[]))return;const n=this.get(t);if(!n)throw new Error(`Impossible to play the ${t} animation because it doesn't exist on the "${this.id}" spritesheet`);const s=structuredClone(A);this.removeChildren(),n.sprites=[],this.currentAnimation=n,this.currentAnimation.params=s,this.time=0,this.frameIndex=0;let a=n.animations;a=Zn(a)?a(...s):a,this.currentAnimationContainer=new m.Container;for(let l of a){const B=new m.Sprite;for(let r of l)this.currentAnimation.sprites.push(r);this.currentAnimationContainer.addChild(B)}const o=this.currentAnimation.data.sound;o&&new $t.Howl({src:o,autoplay:!0,loop:!1,volume:1}),this.update({deltaRatio:1})}async resetAnimations(){this.stop(),this.animations.clear(),this.currentAnimation=null,this.currentAnimationContainer=null,this.time=0,this.frameIndex=0,this.removeChildren(),this.spritesheet&&(await this.createAnimations(),this.play(this.sheetCurrentAnimation,[this.sheetParams]))}update({deltaRatio:t}){if(!this.isPlaying()||!this.currentAnimation||!this.currentAnimationContainer)return;const A=this,{frames:i,sprites:n,data:s}=this.currentAnimation;let a=n[this.frameIndex];const o=n[this.frameIndex+1];for(let h of this.currentAnimationContainer.children){let l=function(C,Q){const y=B(Q||C);y!==void 0&&(A[C]=y)};if(!a||a.frameY==null||a.frameX==null)continue;this.texture=i[a.frameY][a.frameX];const B=C=>a[C]??s[C]??this.spritesheet[C],r=C=>{const Q=B(C);Q&&this[C].set(...Q)};this.applyTransform&&(a={...a,...this.applyTransform(a,s,this.spritesheet)});const g=B("spriteRealSize"),c=typeof g=="number"?g:g==null?void 0:g.height;typeof g=="number"||g==null||g.width;const E=()=>{if(c&&this.hitbox){const{spriteWidth:C,spriteHeight:Q}=s,f=(C-this.hitbox.w)/2/C,y=(Q-c)/2,D=(Q-this.hitbox.h-y)/Q;this.anchor.set(f,D)}};a.sound,E(),r("anchor"),r("scale"),r("skew"),r("pivot"),l("alpha","opacity"),l("x"),l("y"),l("angle"),l("rotation"),l("visible")}if(!o){this.time=0,this.frameIndex=0,this.onFinish&&n.length>1&&this.onFinish();return}this.time+=t??1,this.time>=o.time&&this.frameIndex++}}lt("Sprite",qg);const Zi=e=>ct("Sprite",e);function Vg(e){const t={audioprocess:null,canplay:null,canplaythrough:null,complete:null,durationchange:null,emptied:null,ended:null,loadeddata:null,loadedmetadata:null,pause:null,play:null,playing:null,progress:null,ratechange:null,seeked:null,seeking:null,stalled:null,suspend:null,timeupdate:null,volumechange:null,waiting:null},A=W(null),i=oi(e),{play:n,loop:s,muted:a}=i({play:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}});return et(()=>{const o=A(),h=n();o&&h!==void 0&&(h?o.play():o.pause()),o&&s()&&(o.loop=s()),o&&a()&&(o.muted=a())}),Di(()=>()=>{for(let o in t)t[o]&&A().removeEventListener(o,t[o])}),ht(Zi,{...e,image:e.src,loader:{onComplete:o=>{var l;const h=o.source.resource;A.set(h),(l=e==null?void 0:e.loader)!=null&&l.onComplete&&e.loader.onComplete(o);for(let B in t)if(e[B]){const r=g=>{e[B](g)};t[B]=r,h.addEventListener(B,r)}}}})}class Xg extends wt(m.Text){constructor(){super(...arguments),this.fullText="",this.currentIndex=0,this.typewriterSpeed=1,this._wordWrapWidth=0,this.typewriterOptions={},this.lastSoundTime=0,this.soundDuration=0}async onMount(t,A){const{props:i}=t;await super.onMount(t,A);const n=i.context.tick;i.text&&i.typewriter&&(this.fullText=i.text,this.text="",this.currentIndex=0,i.typewriter&&(this.typewriterOptions=i.typewriter,this.typewriterOptions.skip&&PA(this.typewriterOptions.skip)&&de(this.typewriterOptions.skip,()=>{this.skipTypewriter()}),this.typewriterOptions.sound&&this.initializeTypewriterSound()),this.updateLayout()),this.subscriptionTick=n.observable.subscribe(()=>{i.typewriter&&this.typewriterEffect()})}onUpdate(t){if(super.onUpdate(t),t.typewriter&&t.typewriter&&(this.typewriterOptions=t.typewriter,t.typewriter.sound&&this.initializeTypewriterSound()),t.text!==void 0&&(this.text=""+t.text),t.text!==void 0&&t.text!==this.fullText&&this.fullProps.typewriter&&(this.text="",this.currentIndex=0,this.fullText=t.text,this.updateLayout()),t.style){for(const A in t.style)this.style[A]=t.style[A];t.style.wordWrapWidth&&(this._wordWrapWidth=t.style.wordWrapWidth)}t.color&&(this.style.fill=t.color),t.size&&(this.style.fontSize=t.size),t.fontFamily&&(this.style.fontFamily=t.fontFamily),this.updateLayout()}get onCompleteCallback(){return this.typewriterOptions.onComplete}initializeTypewriterSound(){var t;(t=this.typewriterOptions.sound)!=null&&t.src&&(this.typewriterSound=new $t.Howl({src:[this.typewriterOptions.sound.src],volume:this.typewriterOptions.sound.volume??.5,rate:this.typewriterOptions.sound.rate??1,preload:!0,onload:()=>{var A;if(this.typewriterSound){const i=this.typewriterSound.duration(),n=((A=this.typewriterOptions.sound)==null?void 0:A.rate)??1;this.soundDuration=i/n*1e3}}}))}playTypewriterSound(t){!this.typewriterSound||!this.typewriterOptions.sound||this.soundDuration>0&&t-this.lastSoundTime<this.soundDuration||(this.typewriterSound.play(),this.lastSoundTime=t)}updateLayout(){this._wordWrapWidth?this.setWidth(this._wordWrapWidth):this.setWidth(this.width),this.setHeight(this.height)}typewriterEffect(){if(this.currentIndex<this.fullText.length){const t=Math.min(this.currentIndex+(this.typewriterOptions.speed??1),this.fullText.length);this.text=this.fullText.slice(0,t),this.currentIndex=t,this.typewriterOptions.sound&&this.playTypewriterSound(Date.now()),this.updateLayout(),this.currentIndex===this.fullText.length&&this.onCompleteCallback&&this.onCompleteCallback()}}skipTypewriter(){this.skipSignal&&this.skipSignal(),this.text=this.fullText,this.currentIndex=this.fullText.length,this.updateLayout()}async onDestroy(t,A){const i=async()=>{this.subscriptionTick&&this.subscriptionTick.unsubscribe(),this.typewriterSound&&(this.typewriterSound.stop(),this.typewriterSound.unload(),this.typewriterSound=void 0),A&&A()};await super.onDestroy(t,i)}}lt("Text",Xg);function ho(e){return ct("Text",e)}class Zg extends wt(m.TilingSprite){onUpdate(t){super.onUpdate(t),t.image&&(this.texture=m.Texture.from(t.image)),t.tileScale&&this.tileScale.set(t.tileScale.x,t.tileScale.y),t.tilePosition&&this.tilePosition.set(t.tilePosition.x,t.tilePosition.y),t.width!==void 0&&(this.width=t.width),t.height!==void 0&&(this.height=t.height)}}lt("TilingSprite",Zg);function zg(e){return ct("TilingSprite",e)}var $g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function th(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={exports:{}};(function(e,t){(function(){var A,i;i=function(n){return e.exports=n},A={linear:function(n,s,a,o){return a*n/o+s},easeInQuad:function(n,s,a,o){return a*(n/=o)*n+s},easeOutQuad:function(n,s,a,o){return-a*(n/=o)*(n-2)+s},easeInOutQuad:function(n,s,a,o){return(n/=o/2)<1?a/2*n*n+s:-a/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,a,o){return a*(n/=o)*n*n+s},easeOutCubic:function(n,s,a,o){return a*((n=n/o-1)*n*n+1)+s},easeInOutCubic:function(n,s,a,o){return(n/=o/2)<1?a/2*n*n*n+s:a/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,a,o){return a*(n/=o)*n*n*n+s},easeOutQuart:function(n,s,a,o){return-a*((n=n/o-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,a,o){return(n/=o/2)<1?a/2*n*n*n*n+s:-a/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,a,o){return a*(n/=o)*n*n*n*n+s},easeOutQuint:function(n,s,a,o){return a*((n=n/o-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,a,o){return(n/=o/2)<1?a/2*n*n*n*n*n+s:a/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,a,o){return-a*Math.cos(n/o*(Math.PI/2))+a+s},easeOutSine:function(n,s,a,o){return a*Math.sin(n/o*(Math.PI/2))+s},easeInOutSine:function(n,s,a,o){return-a/2*(Math.cos(Math.PI*n/o)-1)+s},easeInExpo:function(n,s,a,o){return n===0?s:a*Math.pow(2,10*(n/o-1))+s},easeOutExpo:function(n,s,a,o){return n===o?s+a:a*(-Math.pow(2,-10*n/o)+1)+s},easeInOutExpo:function(n,s,a,o){return(n/=o/2)<1?a/2*Math.pow(2,10*(n-1))+s:a/2*(-Math.pow(2,-10*--n)+2)+s},easeInCirc:function(n,s,a,o){return-a*(Math.sqrt(1-(n/=o)*n)-1)+s},easeOutCirc:function(n,s,a,o){return a*Math.sqrt(1-(n=n/o-1)*n)+s},easeInOutCirc:function(n,s,a,o){return(n/=o/2)<1?-a/2*(Math.sqrt(1-n*n)-1)+s:a/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,a,o){var h,l,B;return B=1.70158,l=0,h=a,n===0||(n/=o),l||(l=o*.3),h<Math.abs(a)?(h=a,B=l/4):B=l/(2*Math.PI)*Math.asin(a/h),-(h*Math.pow(2,10*(n-=1))*Math.sin((n*o-B)*(2*Math.PI)/l))+s},easeOutElastic:function(n,s,a,o){var h,l,B;return B=1.70158,l=0,h=a,n===0||(n/=o),l||(l=o*.3),h<Math.abs(a)?(h=a,B=l/4):B=l/(2*Math.PI)*Math.asin(a/h),h*Math.pow(2,-10*n)*Math.sin((n*o-B)*(2*Math.PI)/l)+a+s},easeInOutElastic:function(n,s,a,o){var h,l,B;return B=1.70158,l=0,h=a,n===0||(n/=o/2),l||(l=o*.44999999999999996),h<Math.abs(a)?(h=a,B=l/4):B=l/(2*Math.PI)*Math.asin(a/h),n<1?-.5*(h*Math.pow(2,10*(n-=1))*Math.sin((n*o-B)*(2*Math.PI)/l))+s:h*Math.pow(2,-10*(n-=1))*Math.sin((n*o-B)*(2*Math.PI)/l)*.5+a+s},easeInBack:function(n,s,a,o,h){return h===void 0&&(h=1.70158),a*(n/=o)*n*((h+1)*n-h)+s},easeOutBack:function(n,s,a,o,h){return h===void 0&&(h=1.70158),a*((n=n/o-1)*n*((h+1)*n+h)+1)+s},easeInOutBack:function(n,s,a,o,h){return h===void 0&&(h=1.70158),(n/=o/2)<1?a/2*(n*n*(((h*=1.525)+1)*n-h))+s:a/2*((n-=2)*n*(((h*=1.525)+1)*n+h)+2)+s},easeInBounce:function(n,s,a,o){var h;return h=A.easeOutBounce(o-n,0,a,o),a-h+s},easeOutBounce:function(n,s,a,o){return(n/=o)<.36363636363636365?a*(7.5625*n*n)+s:n<.7272727272727273?a*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?a*(7.5625*(n-=.8181818181818182)*n+.9375)+s:a*(7.5625*(n-=.9545454545454546)*n+.984375)+s},easeInOutBounce:function(n,s,a,o){var h;return n<o/2?(h=A.easeInBounce(n*2,0,a,o),h*.5+s):(h=A.easeOutBounce(n*2-o,0,a,o),h*.5+a*.5+s)}},i(A)}).call($g)})(lo);var Ah=lo.exports;const co=th(Ah);function me(e,t){if(e){if(typeof e=="function")return e;if(typeof e=="string")return co[e]}else return co[t]}class eh{constructor(t){this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.eventMode="static",this.viewport.forceHitArea||(this.viewport.hitArea=new m.Rectangle(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){var t;(t=this.viewport.options.events.domElement)==null||t.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.visible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const A=this.viewport.plugins.get("decelerate",!0),i=this.viewport.plugins.get("bounce",!0);(!A||!A.isActive())&&(!i||!i.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.visible)return;const A=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const i=t.global.x-this.last.x,n=t.global.y-this.last.y;(this.checkThreshold(i)||this.checkThreshold(n))&&(this.clickedAvailable=!1)}A&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.visible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const A=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),A&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const A=new m.Point;return this.viewport.options.events.mapPositionToPoint(A,t.clientX,t.clientY),A}handleWheel(t){if(this.viewport.pause||!this.viewport.visible)return;const A=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=A.x&&A.x<=this.viewport.right&&this.viewport.top<=A.y&&A.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const A of this.touches)if(A.id===t)return A;return null}remove(t){for(let A=0;A<this.touches.length;A++)if(this.touches[A].id===t){this.touches.splice(A,1);return}}count(){return(this.isMouseDown?1:0)+this.touches.length}}const jA=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class ih{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,A,i=jA.length){const n=this.plugins[t];n&&n.destroy(),this.plugins[t]=A;const s=jA.indexOf(t);s!==-1&&jA.splice(s,1),jA.splice(i,0,t),this.sort()}get(t,A){var i;return A&&(i=this.plugins[t])!=null&&i.paused?null:this.plugins[t]}update(t){for(const A of this.list)A.update(t)}resize(){for(const t of this.list)t.resize()}reset(){for(const t of this.list)t.reset()}removeAll(){this.list.forEach(t=>{t.destroy()}),this.plugins={},this.sort()}remove(t){var A;this.plugins[t]&&((A=this.plugins[t])==null||A.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var A;(A=this.plugins[t])==null||A.pause()}resume(t){var A;(A=this.plugins[t])==null||A.resume()}sort(){this.list=[];for(const t of jA)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let A=!1;for(const i of this.list)i.down(t)&&(A=!0);return A}move(t){let A=!1;for(const i of this.viewport.plugins.list)i.move(t)&&(A=!0);return A}up(t){let A=!1;for(const i of this.list)i.up(t)&&(A=!0);return A}wheel(t){let A=!1;for(const i of this.list)i.wheel(t)&&(A=!0);return A}}class Ct{constructor(t){this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}const nh={removeOnInterrupt:!1,ease:"linear",time:1e3};class sh extends Ct{constructor(t,A={}){super(t),this.startWidth=null,this.startHeight=null,this.deltaWidth=null,this.deltaHeight=null,this.width=null,this.height=null,this.time=0,this.options=Object.assign({},nh,A),this.options.ease=me(this.options.ease),this.setupPosition(),this.setupZoom(),this.time=0}setupPosition(){typeof this.options.position<"u"?(this.startX=this.parent.center.x,this.startY=this.parent.center.y,this.deltaX=this.options.position.x-this.parent.center.x,this.deltaY=this.options.position.y-this.parent.center.y,this.keepCenter=!1):this.keepCenter=!0}setupZoom(){this.width=null,this.height=null,typeof this.options.scale<"u"?this.width=this.parent.screenWidth/this.options.scale:typeof this.options.scaleX<"u"||typeof this.options.scaleY<"u"?(typeof this.options.scaleX<"u"&&(this.width=this.parent.screenWidth/this.options.scaleX),typeof this.options.scaleY<"u"&&(this.height=this.parent.screenHeight/this.options.scaleY)):(typeof this.options.width<"u"&&(this.width=this.options.width),typeof this.options.height<"u"&&(this.height=this.options.height)),this.width!==null&&(this.startWidth=this.parent.screenWidthInWorldPixels,this.deltaWidth=this.width-this.startWidth),this.height!==null&&(this.startHeight=this.parent.screenHeightInWorldPixels,this.deltaHeight=this.height-this.startHeight)}down(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("animate"),!1}complete(){this.parent.plugins.remove("animate"),this.width!==null&&this.parent.fitWidth(this.width,this.keepCenter,this.height===null),this.height!==null&&this.parent.fitHeight(this.height,this.keepCenter,this.width===null),!this.keepCenter&&this.options.position&&this.parent.moveCenter(this.options.position),this.parent.emit("animate-end",this.parent),this.options.callbackOnComplete&&this.options.callbackOnComplete(this.parent)}update(t){if(this.paused)return;this.time+=t;const A=new m.Point(this.parent.scale.x,this.parent.scale.y);if(this.time>=this.options.time){const i=this.parent.width,n=this.parent.height;this.complete(),(i!==this.parent.width||n!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:A,type:"animate"})}else{const i=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const n=this.startWidth,s=this.deltaWidth;this.parent.fitWidth(n+s*i,this.keepCenter,this.height===null)}if(this.height!==null){const n=this.startHeight,s=this.deltaHeight;this.parent.fitHeight(n+s*i,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const n=this.startX,s=this.startY,a=this.deltaX,o=this.deltaY,h=new m.Point(this.parent.x,this.parent.y);this.parent.moveCenter(n+a*i,s+o*i),this.parent.emit("moved",{viewport:this.parent,original:h,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:A,type:"animate"})}}}const oh={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class rh extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},oh,A),this.ease=me(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const i=this.options.underflow.toLowerCase();i==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=i.indexOf("left")!==-1?-1:i.indexOf("right")!==-1?1:0,this.underflowY=i.indexOf("top")!==-1?-1:i.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const A=this.toX;A.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),A.time>=this.options.time?(this.parent.x=A.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(A.time,A.start,A.delta,this.options.time)}if(this.toY){const A=this.toY;A.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),A.time>=this.options.time?(this.parent.y=A.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(A.time,A.start,A.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const A=typeof t.x>"u"?0:t.x,i=typeof t.y>"u"?0:t.y,n=typeof t.width>"u"?this.parent.worldWidth:t.width,s=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.left<A,right:this.parent.right>n,top:this.parent.top<i,bottom:this.parent.bottom>s,topLeft:new m.Point(A*this.parent.scale.x,i*this.parent.scale.y),bottomRight:new m.Point(n*this.parent.scale.x-this.parent.screenWidth,s*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new m.Point(0,0),bottomRight:new m.Point(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,A;if(this.paused)return;let i,n=this.parent.plugins.get("decelerate",!0);n&&(n.x||n.y)&&(n.x&&n.percentChangeX===((t=n.options)==null?void 0:t.friction)||n.y&&n.percentChangeY===((A=n.options)==null?void 0:A.friction))&&(i=this.oob(),(i.left&&this.left||i.right&&this.right)&&(n.percentChangeX=this.options.friction),(i.top&&this.top||i.bottom&&this.bottom)&&(n.percentChangeY=this.options.friction));const s=this.parent.plugins.get("drag",!0)||{},a=this.parent.plugins.get("pinch",!0)||{};if(n=n||{},!(s!=null&&s.active)&&!(a!=null&&a.active)&&(!this.toX||!this.toY)&&(!n.x||!n.y)){i=i||this.oob();const o=i.topLeft,h=i.bottomRight;if(!this.toX&&!n.x){let l=null;i.left&&this.left?l=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-o.x:i.right&&this.right&&(l=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-h.x),l!==null&&this.parent.x!==l&&(this.toX={time:0,start:this.parent.x,delta:l-this.parent.x,end:l},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!n.y){let l=null;i.top&&this.top?l=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-o.y:i.bottom&&this.bottom&&(l=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-h.y),l!==null&&this.parent.y!==l&&(this.toY={time:0,start:this.parent.y,delta:l-this.parent.y,end:l},this.parent.emit("bounce-y-start",this.parent))}}}reset(){this.toX=this.toY=null,this.bounce()}}const ah={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class gh extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},ah,A),this.options.direction&&(this.options.left=this.options.direction==="x"||this.options.direction==="all"?!0:null,this.options.right=this.options.direction==="x"||this.options.direction==="all"?!0:null,this.options.top=this.options.direction==="y"||this.options.direction==="all"?!0:null,this.options.bottom=this.options.direction==="y"||this.options.direction==="all"?!0:null),this.parseUnderflow(),this.last={x:null,y:null,scaleX:null,scaleY:null},this.update()}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="none"?this.noUnderflow=!0:t==="center"?(this.underflowX=this.underflowY=0,this.noUnderflow=!1):(this.underflowX=t.indexOf("left")!==-1?-1:t.indexOf("right")!==-1?1:0,this.underflowY=t.indexOf("top")!==-1?-1:t.indexOf("bottom")!==-1?1:0,this.noUnderflow=!1)}move(){return this.update(),!1}update(){if(this.paused||this.parent.x===this.last.x&&this.parent.y===this.last.y&&this.parent.scale.x===this.last.scaleX&&this.parent.scale.y===this.last.scaleY)return;const t=new m.Point(this.parent.x,this.parent.y),A=this.parent.plugins.decelerate||{};if(this.options.left!==null||this.options.right!==null){let i=!1;if(!this.noUnderflow&&this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x!==0&&(this.parent.x=0,i=!0);break;case 1:this.parent.x!==this.parent.screenWidth-this.parent.screenWorldWidth&&(this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth,i=!0);break;default:this.parent.x!==(this.parent.screenWidth-this.parent.screenWorldWidth)/2&&(this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2,i=!0)}else this.options.left!==null&&this.parent.left<(this.options.left===!0?0:this.options.left)&&(this.parent.x=-(this.options.left===!0?0:this.options.left)*this.parent.scale.x,A.x=0,i=!0),this.options.right!==null&&this.parent.right>(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,A.x=0,i=!0);i&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let i=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y!==0&&(this.parent.y=0,i=!0);break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,i=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,i=!0)}else this.options.top!==null&&this.parent.top<(this.options.top===!0?0:this.options.top)&&(this.parent.y=-(this.options.top===!0?0:this.options.top)*this.parent.scale.y,A.y=0,i=!0),this.options.bottom!==null&&this.parent.bottom>(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,A.y=0,i=!0);i&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}}const hh={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class lh extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},hh,A),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&t<this.options.minWidth){const i=this.parent.scale.x;this.parent.fitWidth(this.options.minWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/i,t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxWidth!==null&&t>this.options.maxWidth){const i=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/i,t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&A<this.options.minHeight){const i=this.parent.scale.y;this.parent.fitHeight(this.options.minHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/i,t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxHeight!==null&&A>this.options.maxHeight){const i=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/i,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},A={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const s=this.options.minScale;t.x=typeof s.x>"u"?null:s.x,t.y=typeof s.y>"u"?null:s.y}if(typeof this.options.maxScale=="number")A.x=this.options.maxScale,A.y=this.options.maxScale;else if(this.options.maxScale!==null){const s=this.options.maxScale;A.x=typeof s.x>"u"?null:s.x,A.y=typeof s.y>"u"?null:s.y}let i=this.parent.scale.x,n=this.parent.scale.y;t.x!==null&&i<t.x&&(i=t.x),A.x!==null&&i>A.x&&(i=A.x),t.y!==null&&n<t.y&&(n=t.y),A.y!==null&&n>A.y&&(n=A.y),(i!==this.parent.scale.x||n!==this.parent.scale.y)&&(this.parent.scale.set(i,n),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}}const ch={friction:.98,bounce:.8,minSpeed:.01},Vt=16;class Ih extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},ch,A),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",i=>this.handleMoved(i))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const A=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?A.x===t.original.x&&(A.x=this.parent.x):t.type==="clamp-y"&&t.original&&A.y===t.original.y&&(A.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const A of this.saved)if(A.time>=t-100){const i=t-A.time;this.x=(this.parent.x-A.x)/i,this.y=(this.parent.y-A.y)/i,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const A=this.x||this.y,i=this.timeSinceRelease,n=this.timeSinceRelease+t;if(this.x){const s=this.percentChangeX,a=Math.log(s);this.parent.x+=this.x*Vt/a*(Math.pow(s,n/Vt)-Math.pow(s,i/Vt)),this.x*=Math.pow(this.percentChangeX,t/Vt)}if(this.y){const s=this.percentChangeY,a=Math.log(s);this.parent.y+=this.y*Vt/a*(Math.pow(s,n/Vt)-Math.pow(s,i/Vt)),this.y*=Math.pow(this.percentChangeY,t/Vt)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x)<this.options.minSpeed&&Math.abs(this.y)<this.options.minSpeed&&(this.x=0,this.y=0):(Math.abs(this.x||0)<this.options.minSpeed&&(this.x=0),Math.abs(this.y||0)<this.options.minSpeed&&(this.y=0)),A&&this.parent.emit("moved",{viewport:this.parent,type:"decelerate"})}reset(){this.x=this.y=null}}const uh={direction:"all",pressDrag:!0,wheel:!0,wheelScroll:1,reverse:!1,clampWheel:!1,underflow:"center",factor:1,mouseButtons:"all",keyToPress:null,ignoreKeyToPressOnTouch:!1,lineHeight:20,wheelSwapAxes:!1};class Bh extends Ct{constructor(t,A={}){super(t),this.windowEventHandlers=[],this.options=Object.assign({},uh,A),this.moved=!1,this.reverse=this.options.reverse?1:-1,this.xDirection=!this.options.direction||this.options.direction==="all"||this.options.direction==="x",this.yDirection=!this.options.direction||this.options.direction==="all"||this.options.direction==="y",this.keyIsPressed=!1,this.parseUnderflow(),this.mouseButtons(this.options.mouseButtons),this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){const A=n=>{t.includes(n.code)&&(this.keyIsPressed=!0)},i=n=>{t.includes(n.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",i),this.addWindowEventHandler("keydown",A)}addWindowEventHandler(t,A){typeof window>"u"||(window.addEventListener(t,A),this.windowEventHandlers.push({event:t,handler:A}))}destroy(){typeof window>"u"||this.windowEventHandlers.forEach(({event:t,handler:A})=>{window.removeEventListener(t,A)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const A=t.pointerType==="mouse",i=this.parent.input.count();return!!((i===1||i>1&&!this.parent.plugins.get("pinch",!0))&&(!A||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},(this.parent.parent||this.parent).toLocal(this.last,void 0,this.last),this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const A=t.global.x,i=t.global.y,n=this.parent.input.count();if(n===1||n>1&&!this.parent.plugins.get("pinch",!0)){const s={x:A,y:i};(this.parent.parent||this.parent).toLocal(s,void 0,s);const a=s.x-this.last.x,o=s.y-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(a)||this.yDirection&&this.parent.input.checkThreshold(o))return this.xDirection&&(this.parent.x+=(s.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(s.y-this.last.y)*this.options.factor),this.last=s,this.moved||this.parent.emit("drag-start",{event:t,screen:new m.Point(this.last.x,this.last.y),world:this.parent.toWorld(new m.Point(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const A=this.parent.input.touches;if(A.length===1){const i=A[0];return i.last&&(this.last={x:i.last.x,y:i.last.y},this.current=i.id),this.moved=!1,!0}else if(this.last&&this.moved){const i=new m.Point(this.last.x,this.last.y);return(this.parent.parent||this.parent).toGlobal(i,i,!0),this.parent.emit("drag-end",{event:t,screen:i,world:this.parent.toWorld(i),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const A=this.parent.plugins.get("wheel",!0);if(!A||!A.options.wheelZoom&&!t.ctrlKey){const i=t.deltaMode?this.options.lineHeight:1,n=[t.deltaX,t.deltaY],[s,a]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=s*i*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=a*i*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x=0;break;case 1:this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}else this.parent.left<0?(this.parent.x=0,t.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y=0;break;case 1:this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}else this.parent.top<0&&(this.parent.y=0,t.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}}const Eh={speed:0,acceleration:null,radius:null};class Ch extends Ct{constructor(t,A,i={}){super(t),this.target=A,this.options=Object.assign({},Eh,i),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const A=this.parent.center;let i=this.target.x,n=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-A.y,2)+Math.pow(this.target.x-A.x,2))>this.options.radius){const o=Math.atan2(this.target.y-A.y,this.target.x-A.x);i=this.target.x-Math.cos(o)*this.options.radius,n=this.target.y-Math.sin(o)*this.options.radius}else return;const s=i-A.x,a=n-A.y;if(s||a)if(this.options.speed)if(this.options.acceleration){const o=Math.atan2(n-A.y,i-A.x),h=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));if(h){const l=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);h>l?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const B=Math.cos(o)*this.velocity.x,r=Math.sin(o)*this.velocity.y,g=Math.abs(B)>Math.abs(s)?i:A.x+B,c=Math.abs(r)>Math.abs(a)?n:A.y+r;this.parent.moveCenter(g,c),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const o=Math.atan2(n-A.y,i-A.x),h=Math.cos(o)*this.options.speed,l=Math.sin(o)*this.options.speed,B=Math.abs(h)>Math.abs(s)?i:A.x+h,r=Math.abs(l)>Math.abs(a)?n:A.y+l;this.parent.moveCenter(B,r),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(i,n),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}const fh={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class Qh extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},fh,A),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const A=t.global.x,i=t.global.y;if(this.radiusSquared){const n=this.parent.toScreen(this.parent.center);if(Math.pow(n.x-A,2)+Math.pow(n.y-i,2)>=this.radiusSquared){const s=Math.atan2(n.y-i,n.x-A);this.options.linear?(this.horizontal=Math.round(Math.cos(s))*this.options.speed*this.reverse*.06,this.vertical=Math.round(Math.sin(s))*this.options.speed*this.reverse*.06):(this.horizontal=Math.cos(s)*this.options.speed*this.reverse*.06,this.vertical=Math.sin(s)*this.options.speed*this.reverse*.06)}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&A<this.left?this.horizontal=Number(this.reverse)*this.options.speed*.06:this.right!==null&&A>this.right?this.horizontal=-1*this.reverse*this.options.speed*.06:(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&i<this.top?this.vertical=Number(this.reverse)*this.options.speed*.06:this.bottom!==null&&i>this.bottom?this.vertical=-1*this.reverse*this.options.speed*.06:(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/16.666666666666668})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/16.666666666666668})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}}const dh={noDrag:!1,percent:1,center:null,factor:1,axis:"all"},ph=new m.Point;class yh extends Ct{constructor(t,A={}){super(t),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},dh,A)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const{x:A,y:i}=(this.parent.parent||this.parent).toLocal(t.global,void 0,ph),n=this.parent.input.touches;if(n.length>=2){const s=n[0],a=n[1],o=s.last&&a.last?Math.sqrt(Math.pow(a.last.x-s.last.x,2)+Math.pow(a.last.y-s.last.y,2)):null;if(s.id===t.pointerId?s.last={x:A,y:i,data:t}:a.id===t.pointerId&&(a.last={x:A,y:i,data:t}),o){let h;const l=new m.Point(s.last.x+(a.last.x-s.last.x)/2,s.last.y+(a.last.y-s.last.y)/2);this.options.center||(h=this.parent.toLocal(l,this.parent.parent||this.parent));let B=Math.sqrt(Math.pow(a.last.x-s.last.x,2)+Math.pow(a.last.y-s.last.y,2));B=B===0?B=1e-10:B;const r=(1-o/B)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=r),this.isAxisY()&&(this.parent.scale.y+=r),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:l});const g=this.parent.plugins.get("clamp-zoom",!0);if(g&&g.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const c=(this.parent.parent||this.parent).toLocal(h,this.parent);this.parent.x+=(l.x-c.x)*this.options.factor,this.parent.y+=(l.y-c.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(l.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(l.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=l,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}}const wh={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class mh extends Ct{constructor(t,A,i,n={}){super(t),this.options=Object.assign({},wh,n),this.ease=me(n.ease,"easeInOutSine"),this.x=A,this.y=i,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const A=this.snapping;A.time+=t;let i,n,s;const a=this.startX,o=this.startY,h=this.deltaX,l=this.deltaY;if(A.time>this.options.time)i=!0,n=a+h,s=o+l;else{const B=this.ease(A.time,0,1,this.options.time);n=a+h*B,s=o+l*B}this.options.topLeft?this.parent.moveCorner(n,s):this.parent.moveCenter(n,s),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),i&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const A=this.options.topLeft?this.parent.corner:this.parent.center;(A.x!==this.x||A.y!==this.y)&&this.snapStart()}}}const Dh={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class vh extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},Dh,A),this.ease=me(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):A.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,i=this.parent.screenWidth/this.xScale,n=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:A,deltaX:i-t,deltaY:n-A},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let A;if(!this.options.center&&!this.options.noMove&&(A=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const i=this.snapping;if(i.time+=t,i.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const s=this.snapping,a=this.ease(s.time,s.startX,s.deltaX,this.options.time),o=this.ease(s.time,s.startY,s.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/a,this.parent.scale.y=this.parent.screenHeight/o}const n=this.parent.plugins.get("clamp-zoom",!0);n&&n.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(A))}}resume(){this.snapping=null,super.resume()}}const Sh={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class xh extends Ct{constructor(t,A={}){super(t),this.options=Object.assign({},Sh,A),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){typeof window>"u"||(window.addEventListener("keydown",A=>{t.includes(A.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",A=>{t.includes(A.code)&&(this.keyIsPressed=!1)}))}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,A=this.smoothing;let i;this.options.center||(i=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=A.x),this.isAxisY()&&(this.parent.scale.y+=A.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const n=this.parent.plugins.get("clamp-zoom",!0);if(n&&n.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const s=this.parent.parent||this.parent;s.toLocal(i,this.parent,i);const a=s.toLocal(t);this.parent.x+=a.x-i.x,this.parent.y+=a.y-i.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,typeof this.options.smooth=="number"&&this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const A=this.parent.input.getPointerPosition(t),i=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,n=Math.pow(2,(1+this.options.percent)*i);let s;this.options.center||(s=this.parent.toLocal(A)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const a=this.parent.plugins.get("clamp-zoom",!0);if(a&&a.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.parent||this.parent;o.toLocal(s,this.parent,s);const h=o.toLocal(A);this.parent.x+=h.x-s.x,this.parent.y+=h.y-s.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const A=this.parent.input.getPointerPosition(t),i=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,n=Math.pow(2,(1+this.options.percent)*i);if(this.options.smooth){const s={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+s.x)*n-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+s.y)*n-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=A}else{let s;this.options.center||(s=this.parent.toLocal(A)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const a=this.parent.plugins.get("clamp-zoom",!0);if(a&&a.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.parent||this.parent;o.toLocal(s,this.parent,s);const h=o.toLocal(A);this.parent.x+=h.x-s.x,this.parent.y+=h.y-s.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}}const bh={screenWidth:typeof window>"u"?0:window.innerWidth,screenHeight:typeof window>"u"?0:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:m.Ticker.shared,allowPreserveDragOutside:!1};class kh extends m.Container{constructor(t){super(),this._disableOnContextMenu=A=>A.preventDefault(),this.options={...bh,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new eh(this),this.plugins=new ih(this)}destroy(t){var A;!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&((A=this.options.events.domElement)==null||A.removeEventListener("contextmenu",this._disableOnContextMenu)),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new m.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=typeof window>"u"?0:window.innerWidth,A=typeof window>"u"?0:window.innerHeight,i,n){this.screenWidth=t,this.screenHeight=A,typeof i<"u"&&(this._worldWidth=i),typeof n<"u"&&(this._worldHeight=n),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new m.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,A){return arguments.length===2?this.toLocal(new m.Point(t,A)):this.toLocal(t)}toScreen(t,A){return arguments.length===2?this.toGlobal(new m.Point(t,A)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new m.Point(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let A,i;typeof t[0]=="number"?(A=t[0],i=t[1]):(A=t[0].x,i=t[0].y);const n=(this.worldScreenWidth/2-A)*this.scale.x,s=(this.worldScreenHeight/2-i)*this.scale.y;return(this.x!==n||this.y!==s)&&(this.position.set(n,s),this.plugins.reset(),this.dirty=!0),this}get corner(){return new m.Point(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let A,i;return t.length===1?(A=-t[0].x*this.scale.x,i=-t[0].y*this.scale.y):(A=-t[0]*this.scale.x,i=-t[1]*this.scale.y),(A!==this.x||i!==this.y)&&(this.position.set(A,i),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,A){const i=this.screenWidth/t,n=this.screenHeight/A;return Math.min(i,n)}findCover(t,A){const i=this.screenWidth/t,n=this.screenHeight/A;return Math.max(i,n)}fitWidth(t=this.worldWidth,A,i=!0,n){let s;A&&(s=this.center),this.scale.x=this.screenWidth/t,i&&(this.scale.y=this.scale.x);const a=this.plugins.get("clamp-zoom",!0);return!n&&a&&a.clamp(),A&&s&&this.moveCenter(s),this}fitHeight(t=this.worldHeight,A,i=!0,n){let s;A&&(s=this.center),this.scale.y=this.screenHeight/t,i&&(this.scale.x=this.scale.y);const a=this.plugins.get("clamp-zoom",!0);return!n&&a&&a.clamp(),A&&s&&this.moveCenter(s),this}fitWorld(t){let A;t&&(A=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;const i=this.plugins.get("clamp-zoom",!0);return i&&i.clamp(),t&&A&&this.moveCenter(A),this}fit(t,A=this.worldWidth,i=this.worldHeight){let n;t&&(n=this.center),this.scale.x=this.screenWidth/A,this.scale.y=this.screenHeight/i,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;const s=this.plugins.get("clamp-zoom",!0);return s&&s.clamp(),t&&n&&this.moveCenter(n),this}setZoom(t,A){let i;A&&(i=this.center),this.scale.set(t);const n=this.plugins.get("clamp-zoom",!0);return n&&n.clamp(),A&&i&&this.moveCenter(i),this}zoomPercent(t,A){return this.setZoom(this.scale.x+this.scale.x*t,A)}zoom(t,A){return this.fitWidth(t+this.worldScreenWidth,A),this}get scaled(){return this.scale.x}set scaled(t){this.setZoom(t,!0)}snapZoom(t){return this.plugins.add("snap-zoom",new vh(this,t)),this}OOB(){return{left:this.left<0,right:this.right>this.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new m.Point(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new m.Rectangle(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new Bh(this,t)),this}clamp(t){return this.plugins.add("clamp",new gh(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Ih(this,t)),this}bounce(t){return this.plugins.add("bounce",new rh(this,t)),this}pinch(t){return this.plugins.add("pinch",new yh(this,t)),this}snap(t,A,i){return this.plugins.add("snap",new mh(this,t,A,i)),this}follow(t,A){return this.plugins.add("follow",new Ch(this,t,A)),this}wheel(t){return this.plugins.add("wheel",new xh(this,t)),this}animate(t){return this.plugins.add("animate",new sh(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new lh(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new Qh(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,A,i,n,s){s&&(i>this.worldScreenWidth||n>this.worldScreenHeight)&&(this.fit(!0,i,n),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let a=!1;t<this.left?(this.left=t,a=!0):t+i>this.right&&(this.right=t+i,a=!0),A<this.top?(this.top=A,a=!0):A+n>this.bottom&&(this.bottom=A+n,a=!0),a&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const Mh=["bounce-x-end","bounce-x-start","bounce-y-end","bounce-y-start","clicked","drag-end","drag-start","frame-end","mouse-edge-end","mouse-edge-start","moved","moved-end","pinch-end","pinch-start","snap-end","snap-start","snap-zoom-end","snap-zoom-start","wheel-scroll","zoomed","zoomed-end"];class Rh extends wt(kh){constructor(){const t={noTicker:!0,events:{domElement:{addEventListener:()=>{}}}};super(t),this.overrideProps=["wheel"]}onInit(t){super.onInit(t);for(let A of Mh)t[A]&&this.on(A,t[A])}async onMount(t,A){await super.onMount(t,A);const{props:i}=t,{tick:n,app:s,canvasSize:a}=i.context;et(()=>{this.screenWidth=a().width,this.screenHeight=a().height}),et(()=>{const o=s();if(!o)return;const h=o.renderer;h.events.domElement.addEventListener("wheel",this.input.wheelFunction),this.options.events=h.events}),this.tickSubscription=n.observable.subscribe(({value:o})=>{this.update(o.timestamp)}),t.props.context.viewport=this,this.updateViewportSettings(i)}onUpdate(t){super.onUpdate(t),this.updateViewportSettings(t)}updateViewportSettings(t){t.screenWidth!==void 0&&(this.screenWidth=t.screenWidth),t.screenHeight!==void 0&&(this.screenHeight=t.screenHeight),t.worldWidth!==void 0&&(this.worldWidth=t.worldWidth),t.worldHeight!==void 0&&(this.worldHeight=t.worldHeight),t.drag&&this.drag(t.drag),t.clamp&&this.clamp(t.clamp.value??t.clamp),t.wheel&&(t.wheel===!0?this.wheel():this.wheel(t.wheel)),t.decelerate&&(t.decelerate===!0?this.decelerate():this.decelerate(t.decelerate)),t.pinch&&(t.pinch===!0?this.pinch():this.pinch(t.pinch))}async onDestroy(t,A){const i=async()=>{this.tickSubscription.unsubscribe(),A()};await super.onDestroy(t,i)}}lt("Viewport",Rh);function _h(e){return ct("Viewport",e)}class Fh extends wt(m.NineSliceSprite){constructor(){super({width:0,height:0})}async onUpdate(t){for(const[A,i]of Object.entries(t))i!==void 0&&(A==="image"?this.texture=await m.Assets.load(i):A in this&&(this[A]=i))}}lt("NineSliceSprite",Fh);function Gh(e){return ct("NineSliceSprite",e)}const Io=["click","mouseover","mouseout","mouseenter","mouseleave","mousemove","mouseup","mousedown","touchstart","touchend","touchmove","touchcancel","wheel","scroll","resize","focus","blur","change","input","submit","reset","keydown","keyup","keypress","contextmenu","drag","dragend","dragenter","dragleave","dragover","drop","dragstart","select","selectstart","selectend","selectall","selectnone"];class Nh{constructor(){this.eventListeners=new Map,this.onBeforeDestroy=null,this.valueSignal=null,this.isFormElementType=!1}isFormElement(t){return["input","textarea","select"].includes(t.toLowerCase())}onInit(t){var A;typeof t.element=="string"?(this.element=document.createElement(t.element),this.isFormElementType=this.isFormElement(t.element)):(this.element=t.element.value,this.isFormElementType=this.isFormElement(this.element.tagName)),(t.onBeforeDestroy||t["on-before-destroy"])&&(this.onBeforeDestroy=t.onBeforeDestroy||t["on-before-destroy"]);for(const i of Io)if((A=t.attrs)!=null&&A[i]){const n=s=>{var a,o,h,l;if(i==="submit"&&this.element.tagName.toLowerCase()==="form"){s.preventDefault();const B=new FormData(this.element),r={};B.forEach((g,c)=>{r[c]?Array.isArray(r[c])?r[c].push(g):r[c]=[r[c],g]:r[c]=g}),(o=(a=t.attrs)[i])==null||o.call(a,s,r)}else(l=(h=t.attrs)[i])==null||l.call(h,s)};this.eventListeners.set(i,n),this.element.addEventListener(i,n,!1)}if(t.children)for(const i of t.children)zn(i)?i.subscribe(({elements:n})=>{for(const s of n)this.element.appendChild(s.componentInstance.element)}):this.element.appendChild(i.componentInstance.element);this.onUpdate(t)}onMount(t){const i=t.propObservables.attrs;if(this.isFormElementType&&(i!=null&&i.value)&&Y(i.value)){this.valueSignal=i.value,this.element.value=this.valueSignal();const n=s=>{const a=s.target;this.valueSignal.set(a.value)};this.eventListeners.set("input",n),this.element.addEventListener("input",n,!1)}}onUpdate(t){if(this.element){for(const[A,i]of Object.entries(t.attrs||{}))if(A==="class"){const n=i.items||i.value||i;if(this.element.className="",typeof n=="string")this.element.className=n;else if(Array.isArray(n))this.element.classList.add(...n);else if(typeof n=="object"&&n!==null)for(const[s,a]of Object.entries(n))a&&this.element.classList.add(s)}else if(A==="style"){const n=i.items||i.value||i;if(typeof n=="string")this.element.setAttribute("style",n);else if(typeof n=="object"&&n!==null)for(const[s,a]of Object.entries(n))a!=null&&(this.element.style[s]=a)}else if(A==="value"&&this.isFormElementType)if(Y(i)){const n=this.element.value,s=i();n!==s&&(this.element.value=s)}else this.element.value=i;else Io.includes(A)||this.element.setAttribute(A,i);t.textContent&&(this.element.textContent=t.textContent)}}async onDestroy(t,A){if(this.element){this.onBeforeDestroy&&await this.onBeforeDestroy();for(const[i,n]of this.eventListeners)this.element.removeEventListener(i,n,!1);this.eventListeners.clear(),this.element.remove(),A&&A()}}}lt("DOMElement",Nh);const uo=e=>ct("DOMElement",e);class Hh extends wt(m.DOMContainer){constructor(){super(...arguments),this.disableLayout=!0}onInit(t){const A=ht(uo,{element:"div"},t.children);this.element=A.componentInstance.element}}lt("DOMContainer",Hh);const Lh=e=>ct("DOMContainer",e);var Bo=(e=>(e.Normal="normal",e.Hover="hover",e.Pressed="pressed",e.Disabled="disabled",e))(Bo||{});function Uh(e){const t=W("normal"),A=W(!1),i=W(!1),n=oi(e),{text:s,disabled:a,width:o,height:h,style:l,shape:B,controlName:r}=n({text:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:Number,default:120},height:{type:Number,default:40},style:{type:Object,default:()=>({})},shape:{type:String,default:"rect"},controlName:{type:String,default:void 0}}),g=()=>e.controls?Y(e.controls)?e.controls():e.controls:null;et(()=>{const Q=a(),f=A(),y=i();Q?t.set("disabled"):f?t.set("pressed"):y?t.set("hover"):t.set("normal")});const c={pointerenter:Q=>{var f;a()||(i.set(!0),(f=e.hoverEnter)==null||f.call(e,Q))},pointerleave:Q=>{var f;i.set(!1),A.set(!1),(f=e.hoverLeave)==null||f.call(e,Q)},pointerdown:async Q=>{var f;if(!a()){A.set(!0),(f=e.pressDown)==null||f.call(e,Q);const y=g(),D=r();y&&D&&y.applyControl&&await y.applyControl(D,!0)}},pointerup:async Q=>{var f;if(!a()&&A()){A.set(!1),(f=e.pressUp)==null||f.call(e,Q);const y=g(),D=r();y&&D&&y.applyControl&&await y.applyControl(D,!1)}},pointertap:async Q=>{var f;if(!a()){(f=e.click)==null||f.call(e,Q);const y=g(),D=r();y&&D&&y.applyControl&&await y.applyControl(D)}}},E=()=>{if(e.background)return e.background;const Q=B(),f=Et(()=>{const D=l().backgroundColor||{normal:"#007bff",hover:"#0056b3",pressed:"#004085",disabled:"#6c757d"},b=t();return D[b]||D.normal});if(Q==="circle"){const y=Et(()=>Math.min(o(),h())/2);return ht(eo,{radius:y,x:Et(()=>o()/2),y:Et(()=>h()/2),color:f})}else return Q==="ellipse"?ht(io,{width:o,height:h,color:f}):ht(Ao,{width:o,height:h,color:f})},C=()=>e.children&&e.children.length>0?e.children:[ht(ho,{text:s,x:Et(()=>o()/2),y:Et(()=>h()/2),anchor:{x:.5,y:.5},style:Et(()=>{const f=l().text||{};return{fontSize:f.fontSize||16,fontFamily:f.fontFamily||"Arial",fill:f.color||"#ffffff"}})()})];return ht(KA,{x:e.x,y:e.y,width:e.width,height:e.height,alpha:e.alpha,visible:e.visible,cursor:e.cursor||"pointer",...c},[E(),...C()])}function Oh(e={}){const t=Object.assign({outerScale:{x:1,y:1},innerScale:{x:1,y:1},innerColor:"black",outerColor:"black"},e),A=()=>Y(t.controls)?t.controls():t.controls;let i=70,n=10;const s=.5;let a=!1,o=null,h=0;const l=W(0),B=W(0),r=W(s);function g(b){const S=b.x-0,F=b.y-0;return Math.min(1,Math.sqrt(S*S+F*F)/i)}function c(b){let S=Math.atan2(b.y,b.x);return S>=-Math.PI/8&&S<0||S>=0&&S<Math.PI/8?"right":S>=Math.PI/8&&S<3*Math.PI/8?"bottom_right":S>=3*Math.PI/8&&S<5*Math.PI/8?"bottom":S>=5*Math.PI/8&&S<7*Math.PI/8?"bottom_left":S>=7*Math.PI/8&&S<Math.PI||S>=-Math.PI&&S<-7*Math.PI/8?"left":S>=-7*Math.PI/8&&S<-5*Math.PI/8?"top_left":S>=-5*Math.PI/8&&S<-3*Math.PI/8?"top":"top_right"}function E(b){var F;o=b.getLocalPosition(this),a=!0,r.set(1),(F=t.onStart)==null||F.call(t);const S=A();S&&(S.handleJoystickStart?S.handleJoystickStart():S.joystick&&S.joystick.handleJoystickStart&&S.joystick.handleJoystickStart())}function C(){var S;if(!a)return;l.set(0),B.set(0),a=!1,r.set(s),(S=t.onEnd)==null||S.call(t);const b=A();b&&(b.handleJoystickEnd?b.handleJoystickEnd():b.joystick&&b.joystick.handleJoystickEnd&&b.joystick.handleJoystickEnd())}function Q(b){var VA,XA,ke;if(a==!1)return;let S=b.getLocalPosition(this),F=S.x-((o==null?void 0:o.x)??0),U=S.y-((o==null?void 0:o.y)??0),J=new sr.Point(0,0),L=0;if(F==0&&U==0)return;let it="left";if(F==0){U>0?(J.set(0,U>i?i:U),L=270,it="bottom"):(J.set(0,-(Math.abs(U)>i?i:Math.abs(U))),L=90,it="top"),l.set(J.x),B.set(J.y),h=g(J);const vt={angle:L,direction:it,power:h};(VA=t.onChange)==null||VA.call(t,vt);const at=A();at&&(at.handleJoystickChange?at.handleJoystickChange(vt):at.joystick&&at.joystick.handleJoystickChange&&at.joystick.handleJoystickChange(vt));return}if(U==0){F>0?(J.set(Math.abs(F)>i?i:Math.abs(F),0),L=0,it="right"):(J.set(-(Math.abs(F)>i?i:Math.abs(F)),0),L=180,it="left"),l.set(J.x),B.set(J.y),h=g(J);const vt={angle:L,direction:it,power:h};(XA=t.onChange)==null||XA.call(t,vt);const at=A();at&&(at.handleJoystickChange?at.handleJoystickChange(vt):at.joystick&&at.joystick.handleJoystickChange&&at.joystick.handleJoystickChange(vt));return}let Ht=Math.abs(U/F),nt=Math.atan(Ht);L=nt*180/Math.PI;let rt=0,X=0;F*F+U*U>=i*i?(rt=i*Math.cos(nt),X=i*Math.sin(nt)):(rt=Math.abs(F)>i?i:Math.abs(F),X=Math.abs(U)>i?i:Math.abs(U)),U<0&&(X=-Math.abs(X)),F<0&&(rt=-Math.abs(rt)),F>0&&U<0||(F<0&&U<0?L=180-L:F<0&&U>0?L=L+180:F>0&&U>0&&(L=360-L)),J.set(rt,X),h=g(J),it=c(J),l.set(J.x),B.set(J.y);const Qt={angle:L,direction:it,power:h};(ke=t.onChange)==null||ke.call(t,Qt);const st=A();st&&(st.handleJoystickChange?st.handleJoystickChange(Qt):st.joystick&&st.joystick.handleJoystickChange&&st.joystick.handleJoystickChange(Qt))}let f,y;t.outer?y=ht(Zi,{image:t.outer,anchor:{x:.5,y:.5},scale:t.outerScale}):y=ht(qt,{draw:b=>{b.circle(0,0,i).fill(t.outerColor)},alpha:.5});const D={scale:t.innerScale,x:l,y:B,alpha:r};return t.inner?f=t.inner:f=ht(qt,{draw:b=>{b.circle(0,0,n*2.5).fill(t.innerColor)},...D}),ht(KA,{...e,pointerdown:E,pointerup:C,pointerupoutside:C,pointermove:Q},y,f)}var Th=(()=>{var e=tt&&tt.tagName.toUpperCase()==="SCRIPT"&&tt.src||new URL("index.global.js",document.baseURI).href;return function(t){t=t||{};var A;A||(A=typeof t<"u"?t:{});var i,n;A.ready=new Promise(function(I,u){i=I,n=u});var s=Object.assign({},A),a="";typeof document<"u"&&document.currentScript&&(a=document.currentScript.src),e&&(a=e),a.indexOf("blob:")!==0?a=a.substr(0,a.replace(/[?#].*/,"").lastIndexOf("/")+1):a="";var o=A.print||console.log.bind(console),h=A.printErr||console.warn.bind(console);Object.assign(A,s),s=null;var l;A.wasmBinary&&(l=A.wasmBinary),A.noExitRuntime,typeof WebAssembly!="object"&&X("no native wasm support detected");var B,r=!1;function g(I,u,d){d=u+d;for(var p="";!(u>=d);){var w=I[u++];if(!w)break;if(w&128){var v=I[u++]&63;if((w&224)==192)p+=String.fromCharCode((w&31)<<6|v);else{var k=I[u++]&63;w=(w&240)==224?(w&15)<<12|v<<6|k:(w&7)<<18|v<<12|k<<6|I[u++]&63,65536>w?p+=String.fromCharCode(w):(w-=65536,p+=String.fromCharCode(55296|w>>10,56320|w&1023))}}else p+=String.fromCharCode(w)}return p}var c,E,C,Q,f,y,D,b,S;function F(){var I=B.buffer;c=I,A.HEAP8=E=new Int8Array(I),A.HEAP16=Q=new Int16Array(I),A.HEAP32=y=new Int32Array(I),A.HEAPU8=C=new Uint8Array(I),A.HEAPU16=f=new Uint16Array(I),A.HEAPU32=D=new Uint32Array(I),A.HEAPF32=b=new Float32Array(I),A.HEAPF64=S=new Float64Array(I)}var U,J=[],L=[],it=[];function Ht(){var I=A.preRun.shift();J.unshift(I)}var nt=0,rt=null;function X(I){throw A.onAbort&&A.onAbort(I),I="Aborted("+I+")",h(I),r=!0,I=new WebAssembly.RuntimeError(I+". Build with -sASSERTIONS for more info."),n(I),I}function Qt(I){return I.startsWith("data:application/octet-stream;base64,")}var st;if(st="data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAAAGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAV/f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QLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgACABIAFBMGoQQg8LECQACyAAIAEgAUEwaiADEEULcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QdwlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwt5AgF/AX0jAEEQayIDJAAgA0EIaiAAIAFBAnRB7CVqKAIAIAIQU0MAAMB/IQQCQAJAAkAgAy0ADEEBaw4CAAECCyADKgIIIQQMAQsgAyoCCEMAAAAAlEMK1yM8lCEECyADQRBqJAAgBEMAAAA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2AgQgACADQegyaiIDKAIANgIIIAMgADYCACAAKAIIIAA2AgRB6DpB6DopAwBCASABrYaENwMACyACQX9HC80BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQSBqIgEvAQAQHwJAAkAgAyoCCCIHIAIqAgAiBlwEQCAHIAdbBEAgAi0ABCECDAILIAYgBlwhBAsgAi0ABCECIARFDQAgAy0ADCACQf8BcUYNAQsgBSABIAYgAhA5A0AgAC0AACIBQQRxDQEgACABQQRyOgAAIAAoAhAiAQRAIAAgAREAAAsgAEGAgID+BzYCnAEgACgC5AMiAA0ACwsgA0EQaiQAC0ABAX8CQEGsOy0AAEEBcQRAQag7KAIAIQIMAQtBAUGAJxAMIQJBrDtBAToAAEGoOyACNgIACyACIAAgAUEAEBMLzQECA38CfSMAQRBrIgMkAEEBIQQgA0EIaiAAQfwAaiIFIAAgAUEBdGpBMmoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALDwAgASAAKAIAaiACOQMACw0AIAEgACgCAGorAwALCwAgAARAIAAQIwsLxwECBH8CfSMAQRBrIgIkACACQQhqIABB/ABqIgQgAEEeaiIFLwEAEB9BASEDAkACQCACKgIIIgcgASoCACIGXARAIAcgB1sEQCABLQAEIQEMAgsgBiAGXCEDCyABLQAEIQEgA0UNACACLQAMIAFB/wFxRg0BCyAEIAUgBiABEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyACQRBqJAALlgMCA34CfyAAvSICQjSIp0H/D3EiBEH/D0YEQCAARAAAAAAAAPA/oiIAIACjDwsgAkIBhiIBQoCAgICAgIDw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RsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2AiwCQCABvSIZQgBTBEBBASERQZkJIRMgAZoiAb0hGQwBCyAEQYAQcQRAQQEhEUGcCSET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yAEIAVBAXEEfyABKAIAIABqKAIABSAACxEdAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERIACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRDAALNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFE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RBqJAAPCyABQYAINgIAIABBBUHYJSABECwQJAALLgEBfyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgBBADYCEAsXACAAKAIEKAIIIgAgACgCACgCCBEAAAsuAQF/IAAoAgghAiAAIAE2AgggAgRAIAIgAigCACgCBBEAAAsgACgCAEEFNgIQCz4BAX8gACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIAIgBBADYCCCAAIAAtAABB7wFxOgAAC0kBAX8jAEEQayIGJAAgBiABKAIEKAIEIgEgAiADIAQgBSABKAIAKAIIERAAIAAgBisDALY4AgAgACAGKwMItjgCBCAGQRBqJAALcwECfyMAQRBrIgIkACAAKAIEIQMgACABNgIEIAMEQCADIAMoAgAoAgQRAAALIAAoAgAiACgC6AMgACgC7ANHBEAgAkH5IzYCACAAQQVB2CUgAhAsECQACyAAQQQ2AgggACAALQAAQRByOgAAIAJBEGokAAs8AQF/AkAgACgCACIAKALsAyAAKALoAyIAa0ECdSABTQ0AIAAgAUECdGooAgAiAEUNACAAKAIEIQILIAILGQAgACgCACgC5AMiAEUEQEEADwsgACgCBAsXACAAKAIAIgAoAuwDIAAoAugDa0ECdQuOAwEDfyMAQdACayICJAACQCAAKAIAIgAoAuwDIAAoAugDRg0AIAEoAgAiAygC5AMhASAAIAMQb0UNACAAIAFGBEAgAkEIakEAQcQCECoaIAJBADoAGCACQgA3AxAgAkGAgID+BzYCDCACQRxqQQBBxAEQKhogAkHgAWohBCACQSBqIQEDQCABQoCAgPyLgIDAv383AhAgAUKBgICAEDcCCCABQoCAgPyLgIDAv383AgAgAUEYaiIBIARHDQALIAJCgICA/IuAgMC/fzcD8AEgAkKBgICAEDcD6AEgAkKAgID8i4CAwL9/NwPgASACQoCAgP6HgIDg/wA3AoQCIAJCgICA/oeAgOD/ADcC/AEgAiACLQD4AUH4AXE6APgBIAJBjAJqQQBBwAAQKhogA0GYAWogAkEIakHEAhArGiADQQA2AuQDCwNAIAAtAAAiAUE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AA2x0AAGZpaWkAAAAA1B0AAMQdAADEHQAA3B0AANQdAADEHQAAxB0AANwdAADFHQAAxB0AAMQdAADEHQAAxB0AANwdAADUHQAAxB0AANUdAADVHQAAxB0AANQdAADEHQAAoR0AANQdAADEHQAAuR0AANUdAADFHQAAAAAAANQdAADEHQAA4h0AAOIdAADbHQAAdmlpZGRpAADBHQAAxR0AQcArC0EZAAoAGRkZAAAAAAUAAAAAAAAJAAAAAAsAAAAAAAAAABkAEQoZGRkDCgcAAQAJCxgAAAkGCwAACwAGGQAAABkZGQBBkSwLIQ4AAAAAAAAAABkACg0ZGRkADQAAAgAJDgAAAAkADgAADgBByywLAQwAQdcsCxUTAAAAABMAAAAACQwAAAAAAAwAAAwAQYUtCwEQAEGRLQsVDwAAAAQPAAAAAAkQAAAAAAAQAAAQAEG/LQsBEgBByy0LHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!Qt(st)){var VA=st;st=A.locateFile?A.locateFile(VA,a):a+VA}function XA(){var I=st;try{if(I==st&&l)return new Uint8Array(l);if(Qt(I))try{var u=zl(I.slice(37)),d=new Uint8Array(u.length);for(I=0;I<u.length;++I)d[I]=u.charCodeAt(I);var p=d}catch{throw Error("Converting base64 string to bytes failed.")}else p=void 0;var w=p;if(w)return w;throw"both async and sync fetching of the wasm failed"}catch(v){X(v)}}function ke(){return l||typeof fetch!="function"?Promise.resolve().then(function(){return XA()}):fetch(st,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+st+"'";return I.arrayBuffer()}).catch(function(){return XA()})}function vt(I){for(;0<I.length;)I.shift()(A)}function at(I){if(I===void 0)return"_unknown";I=I.replace(/[^a-zA-Z0-9_]/g,"$");var u=I.charCodeAt(0);return 48<=u&&57>=u?"_"+I:I}function sn(I,u){return I=at(I),function(){return u.apply(this,arguments)}}var St=[{},{value:void 0},{value:null},{value:!0},{value:!1}],on=[];function Me(I){var u=Error,d=sn(I,function(p){this.name=I,this.message=p,p=Error(p).stack,p!==void 0&&(this.stack=this.toString()+`
|
|
28
|
-
`+p.replace(/^Error(:[^\n]*)?\n/,""))});return d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},d}var vA=void 0;function O(I){throw new vA(I)}var ZA=I=>(I||O("Cannot use deleted val. handle = "+I),St[I].value),Re=I=>{switch(I){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var u=on.length?on.pop():St.length;return St[u]={ga:1,value:I},u}},Oo=void 0,To=void 0;function ot(I){for(var u="";C[I];)u+=To[C[I++]];return u}var zA=[];function rn(){for(;zA.length;){var I=zA.pop();I.M.$=!1,I.delete()}}var $A=void 0,Ut={};function an(I,u){for(u===void 0&&O("ptr should not be undefined");I.R;)u=I.ba(u),I=I.R;return u}var sA={};function Jo(I){I=zo(I);var u=ot(I);return Jt(I),u}function Po(I,u){var d=sA[I];return d===void 0&&O(u+" has unknown type "+Jo(I)),d}function _e(){}var gn=!1;function Ko(I){--I.count.value,I.count.value===0&&(I.T?I.U.W(I.T):I.P.N.W(I.O))}function Yo(I,u,d){return u===d?I:d.R===void 0?null:(I=Yo(I,u,d.R),I===null?null:d.na(I))}var Wo={};function Rl(I,u){return u=an(I,u),Ut[u]}var jo=void 0;function Fe(I){throw new jo(I)}function Ge(I,u){return u.P&&u.O||Fe("makeClassHandle requires ptr and ptrType"),!!u.U!=!!u.T&&Fe("Both smartPtrType and smartPtr must be specified"),u.count={value:1},SA(Object.create(I,{M:{value:u}}))}function SA(I){return typeof FinalizationRegistry>"u"?(SA=u=>u,I):(gn=new FinalizationRegistry(u=>{Ko(u.M)}),SA=u=>{var d=u.M;return d.T&&gn.register(u,{M:d},u),u},_e=u=>{gn.unregister(u)},SA(I))}var Ne={};function hn(I){for(;I.length;){var u=I.pop();I.pop()(u)}}function te(I){return this.fromWireType(y[I>>2])}var xA={},He={};function Xt(I,u,d){function p(M){M=d(M),M.length!==I.length&&Fe("Mismatched type converter count");for(var _=0;_<I.length;++_)Ot(I[_],M[_])}I.forEach(function(M){He[M]=u});var w=Array(u.length),v=[],k=0;u.forEach((M,_)=>{sA.hasOwnProperty(M)?w[_]=sA[M]:(v.push(M),xA.hasOwnProperty(M)||(xA[M]=[]),xA[M].push(()=>{w[_]=sA[M],++k,k===v.length&&p(w)}))}),v.length===0&&p(w)}function ln(I){switch(I){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+I)}}function Ot(I,u,d={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");var p=u.name;if(I||O('type "'+p+'" must have a positive integer typeid pointer'),sA.hasOwnProperty(I)){if(d.ua)return;O("Cannot register type '"+p+"' twice")}sA[I]=u,delete He[I],xA.hasOwnProperty(I)&&(u=xA[I],delete xA[I],u.forEach(w=>w()))}function cn(I){O(I.M.P.N.name+" instance already deleted")}function Zt(){}function In(I,u,d){if(I[u].S===void 0){var p=I[u];I[u]=function(){return I[u].S.hasOwnProperty(arguments.length)||O("Function '"+d+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+I[u].S+")!"),I[u].S[arguments.length].apply(this,arguments)},I[u].S=[],I[u].S[p.Z]=p}}function _l(I,u){A.hasOwnProperty(I)?(O("Cannot register public name '"+I+"' twice"),In(A,I,I),A.hasOwnProperty(void 0)&&O("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),A[I].S[void 0]=u):A[I]=u}function Fl(I,u,d,p,w,v,k,M){this.name=I,this.constructor=u,this.X=d,this.W=p,this.R=w,this.pa=v,this.ba=k,this.na=M,this.ja=[]}function un(I,u,d){for(;u!==d;)u.ba||O("Expected null or instance of "+d.name+", got an instance of "+u.name),I=u.ba(I),u=u.R;return I}function Gl(I,u){return u===null?(this.ea&&O("null is not a valid "+this.name),0):(u.M||O('Cannot pass "'+fn(u)+'" as a '+this.name),u.M.O||O("Cannot pass deleted object as a pointer of type "+this.name),un(u.M.O,u.M.P.N,this.N))}function Nl(I,u){if(u===null){if(this.ea&&O("null is not a valid "+this.name),this.da){var d=this.fa();return I!==null&&I.push(this.W,d),d}return 0}if(u.M||O('Cannot pass "'+fn(u)+'" as a '+this.name),u.M.O||O("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&u.M.P.ca&&O("Cannot convert argument of type "+(u.M.U?u.M.U.name:u.M.P.name)+" to parameter type "+this.name),d=un(u.M.O,u.M.P.N,this.N),this.da)switch(u.M.T===void 0&&O("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:u.M.U===this?d=u.M.T:O("Cannot convert argument of type "+(u.M.U?u.M.U.name:u.M.P.name)+" to parameter type "+this.name);break;case 1:d=u.M.T;break;case 2:if(u.M.U===this)d=u.M.T;else{var p=u.clone();d=this.xa(d,Re(function(){p.delete()})),I!==null&&I.push(this.W,d)}break;default:O("Unsupporting sharing policy")}return d}function Hl(I,u){return u===null?(this.ea&&O("null is not a valid "+this.name),0):(u.M||O('Cannot pass "'+fn(u)+'" as a '+this.name),u.M.O||O("Cannot pass deleted object as a pointer of type "+this.name),u.M.P.ca&&O("Cannot convert argument of type "+u.M.P.name+" to parameter type "+this.name),un(u.M.O,u.M.P.N,this.N))}function Tt(I,u,d,p){this.name=I,this.N=u,this.ea=d,this.ca=p,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,u.R!==void 0?this.toWireType=Nl:(this.toWireType=p?Gl:Hl,this.V=null)}function Ll(I,u){A.hasOwnProperty(I)||Fe("Replacing nonexistant public symbol"),A[I]=u,A[I].Z=void 0}function Ul(I,u){var d=[];return function(){if(d.length=0,Object.assign(d,arguments),I.includes("j")){var p=A["dynCall_"+I];p=d.length?p.apply(null,[u].concat(d)):p.call(null,u)}else p=U.get(u).apply(null,d);return p}}function xt(I,u){I=ot(I);var d=I.includes("j")?Ul(I,u):U.get(u);return typeof d!="function"&&O("unknown function pointer with signature "+I+": "+u),d}var qo=void 0;function Le(I,u){function d(v){w[v]||sA[v]||(He[v]?He[v].forEach(d):(p.push(v),w[v]=!0))}var p=[],w={};throw u.forEach(d),new qo(I+": "+p.map(Jo).join([", "]))}function Bn(I,u,d,p,w){var v=u.length;2>v&&O("argTypes array size mismatch! Must at least get return value and 'this' types!");var k=u[1]!==null&&d!==null,M=!1;for(d=1;d<u.length;++d)if(u[d]!==null&&u[d].V===void 0){M=!0;break}var _=u[0].name!=="void",R=v-2,G=Array(R),N=[],T=[];return function(){if(arguments.length!==R&&O("function "+I+" called with "+arguments.length+" arguments, expected "+R+" args!"),T.length=0,N.length=k?2:1,N[0]=w,k){var $=u[1].toWireType(T,this);N[1]=$}for(var K=0;K<R;++K)G[K]=u[K+2].toWireType(T,arguments[K]),N.push(G[K]);if(K=p.apply(null,N),M)hn(T);else for(var ut=k?1:2;ut<u.length;ut++){var bt=ut===1?$:G[ut-2];u[ut].V!==null&&u[ut].V(bt)}return $=_?u[0].fromWireType(K):void 0,$}}function En(I,u){for(var d=[],p=0;p<I;p++)d.push(D[u+4*p>>2]);return d}function Cn(I){4<I&&--St[I].ga===0&&(St[I]=void 0,on.push(I))}function fn(I){if(I===null)return"null";var u=typeof I;return u==="object"||u==="array"||u==="function"?I.toString():""+I}function Ol(I,u){switch(u){case 2:return function(d){return this.fromWireType(b[d>>2])};case 3:return function(d){return this.fromWireType(S[d>>3])};default:throw new TypeError("Unknown float type: "+I)}}function Tl(I,u,d){switch(u){case 0:return d?function(p){return E[p]}:function(p){return C[p]};case 1:return d?function(p){return Q[p>>1]}:function(p){return f[p>>1]};case 2:return d?function(p){return y[p>>2]}:function(p){return D[p>>2]};default:throw new TypeError("Unknown integer type: "+I)}}function Jl(I,u){for(var d="",p=0;!(p>=u/2);++p){var w=Q[I+2*p>>1];if(w==0)break;d+=String.fromCharCode(w)}return d}function Pl(I,u,d){if(d===void 0&&(d=2147483647),2>d)return 0;d-=2;var p=u;d=d<2*I.length?d/2:I.length;for(var w=0;w<d;++w)Q[u>>1]=I.charCodeAt(w),u+=2;return Q[u>>1]=0,u-p}function Kl(I){return 2*I.length}function Yl(I,u){for(var d=0,p="";!(d>=u/4);){var w=y[I+4*d>>2];if(w==0)break;++d,65536<=w?(w-=65536,p+=String.fromCharCode(55296|w>>10,56320|w&1023)):p+=String.fromCharCode(w)}return p}function Wl(I,u,d){if(d===void 0&&(d=2147483647),4>d)return 0;var p=u;d=p+d-4;for(var w=0;w<I.length;++w){var v=I.charCodeAt(w);if(55296<=v&&57343>=v){var k=I.charCodeAt(++w);v=65536+((v&1023)<<10)|k&1023}if(y[u>>2]=v,u+=4,u+4>d)break}return y[u>>2]=0,u-p}function jl(I){for(var u=0,d=0;d<I.length;++d){var p=I.charCodeAt(d);55296<=p&&57343>=p&&++d,u+=4}return u}var ql={};function Vo(I){var u=ql[I];return u===void 0?ot(I):u}var Ue=[];function Vl(I){var u=Ue.length;return Ue.push(I),u}function Xl(I,u){for(var d=Array(I),p=0;p<I;++p)d[p]=Po(D[u+4*p>>2],"parameter "+p);return d}var Xo=[],Zl=[null,[],[]];vA=A.BindingError=Me("BindingError"),A.count_emval_handles=function(){for(var I=0,u=5;u<St.length;++u)St[u]!==void 0&&++I;return I},A.get_first_emval=function(){for(var I=5;I<St.length;++I)if(St[I]!==void 0)return St[I];return null},Oo=A.PureVirtualError=Me("PureVirtualError");for(var Zo=Array(256),Oe=0;256>Oe;++Oe)Zo[Oe]=String.fromCharCode(Oe);To=Zo,A.getInheritedInstanceCount=function(){return Object.keys(Ut).length},A.getLiveInheritedInstances=function(){var I=[],u;for(u in Ut)Ut.hasOwnProperty(u)&&I.push(Ut[u]);return I},A.flushPendingDeletes=rn,A.setDelayFunction=function(I){$A=I,zA.length&&$A&&$A(rn)},jo=A.InternalError=Me("InternalError"),Zt.prototype.isAliasOf=function(I){if(!(this instanceof Zt&&I instanceof Zt))return!1;var u=this.M.P.N,d=this.M.O,p=I.M.P.N;for(I=I.M.O;u.R;)d=u.ba(d),u=u.R;for(;p.R;)I=p.ba(I),p=p.R;return u===p&&d===I},Zt.prototype.clone=function(){if(this.M.O||cn(this),this.M.aa)return this.M.count.value+=1,this;var I=SA,u=Object,d=u.create,p=Object.getPrototypeOf(this),w=this.M;return I=I(d.call(u,p,{M:{value:{count:w.count,$:w.$,aa:w.aa,O:w.O,P:w.P,T:w.T,U:w.U}}})),I.M.count.value+=1,I.M.$=!1,I},Zt.prototype.delete=function(){this.M.O||cn(this),this.M.$&&!this.M.aa&&O("Object already scheduled for deletion"),_e(this),Ko(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Zt.prototype.isDeleted=function(){return!this.M.O},Zt.prototype.deleteLater=function(){return this.M.O||cn(this),this.M.$&&!this.M.aa&&O("Object already scheduled for deletion"),zA.push(this),zA.length===1&&$A&&$A(rn),this.M.$=!0,this},Tt.prototype.qa=function(I){return this.ka&&(I=this.ka(I)),I},Tt.prototype.ha=function(I){this.W&&this.W(I)},Tt.prototype.argPackAdvance=8,Tt.prototype.readValueFromPointer=te,Tt.prototype.deleteObject=function(I){I!==null&&I.delete()},Tt.prototype.fromWireType=function(I){function u(){return this.da?Ge(this.N.X,{P:this.wa,O:d,U:this,T:I}):Ge(this.N.X,{P:this,O:I})}var d=this.qa(I);if(!d)return this.ha(I),null;var p=Rl(this.N,d);if(p!==void 0)return p.M.count.value===0?(p.M.O=d,p.M.T=I,p.clone()):(p=p.clone(),this.ha(I),p);if(p=this.N.pa(d),p=Wo[p],!p)return u.call(this);p=this.ca?p.la:p.pointerType;var w=Yo(d,this.N,p.N);return w===null?u.call(this):this.da?Ge(p.N.X,{P:p,O:w,U:this,T:I}):Ge(p.N.X,{P:p,O:w})},qo=A.UnboundTypeError=Me("UnboundTypeError");var zl=typeof atob=="function"?atob:function(I){var u="",d=0;I=I.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(d++)),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(d++)),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(d++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(d++));p=p<<2|w>>4,w=(w&15)<<4|v>>2;var M=(v&3)<<6|k;u+=String.fromCharCode(p),v!==64&&(u+=String.fromCharCode(w)),k!==64&&(u+=String.fromCharCode(M))}while(d<I.length);return u},$l={l:function(I,u,d,p){X("Assertion failed: "+(I?g(C,I):"")+", at: "+[u?u?g(C,u):"":"unknown filename",d,p?p?g(C,p):"":"unknown function"])},q:function(I,u,d){I=ot(I),u=Po(u,"wrapper"),d=ZA(d);var p=[].slice,w=u.N,v=w.X,k=w.R.X,M=w.R.constructor;I=sn(I,function(){w.R.ja.forEach((function(R){if(this[R]===k[R])throw new Oo("Pure virtual function "+R+" must be implemented in JavaScript")}).bind(this)),Object.defineProperty(this,"__parent",{value:v}),this.__construct.apply(this,p.call(arguments))}),v.__construct=function(){this===v&&O("Pass correct 'this' to __construct");var R=M.implement.apply(void 0,[this].concat(p.call(arguments)));_e(R);var G=R.M;R.notifyOnDestruction(),G.aa=!0,Object.defineProperties(this,{M:{value:G}}),SA(this),R=G.O,R=an(w,R),Ut.hasOwnProperty(R)?O("Tried to register registered instance: "+R):Ut[R]=this},v.__destruct=function(){this===v&&O("Pass correct 'this' to __destruct"),_e(this);var R=this.M.O;R=an(w,R),Ut.hasOwnProperty(R)?delete Ut[R]:O("Tried to unregister unregistered instance: "+R)},I.prototype=Object.create(v);for(var _ in d)I.prototype[_]=d[_];return Re(I)},j:function(I){var u=Ne[I];delete Ne[I];var d=u.fa,p=u.W,w=u.ia,v=w.map(k=>k.ta).concat(w.map(k=>k.za));Xt([I],v,k=>{var M={};return w.forEach((_,R)=>{var G=k[R],N=_.ra,T=_.sa,$=k[R+w.length],K=_.ya,ut=_.Aa;M[_.oa]={read:bt=>G.fromWireType(N(T,bt)),write:(bt,Ae)=>{var Pt=[];K(ut,bt,$.toWireType(Pt,Ae)),hn(Pt)}}}),[{name:u.name,fromWireType:function(_){var R={},G;for(G in M)R[G]=M[G].read(_);return p(_),R},toWireType:function(_,R){for(var G in M)if(!(G in R))throw new TypeError('Missing field: "'+G+'"');var N=d();for(G in M)M[G].write(N,R[G]);return _!==null&&_.push(p,N),N},argPackAdvance:8,readValueFromPointer:te,V:p}]})},v:function(){},B:function(I,u,d,p,w){var v=ln(d);u=ot(u),Ot(I,{name:u,fromWireType:function(k){return!!k},toWireType:function(k,M){return M?p:w},argPackAdvance:8,readValueFromPointer:function(k){if(d===1)var M=E;else if(d===2)M=Q;else if(d===4)M=y;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(M[k>>v])},V:null})},f:function(I,u,d,p,w,v,k,M,_,R,G,N,T){G=ot(G),v=xt(w,v),M&&(M=xt(k,M)),R&&(R=xt(_,R)),T=xt(N,T);var $=at(G);_l($,function(){Le("Cannot construct "+G+" due to unbound types",[p])}),Xt([I,u,d],p?[p]:[],function(K){if(K=K[0],p)var ut=K.N,bt=ut.X;else bt=Zt.prototype;K=sn($,function(){if(Object.getPrototypeOf(this)!==Ae)throw new vA("Use 'new' to construct "+G);if(Pt.Y===void 0)throw new vA(G+" has no accessible constructor");var Ar=Pt.Y[arguments.length];if(Ar===void 0)throw new vA("Tried to invoke ctor of "+G+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Pt.Y).toString()+") parameters instead!");return Ar.apply(this,arguments)});var Ae=Object.create(bt,{constructor:{value:K}});K.prototype=Ae;var Pt=new Fl(G,K,Ae,T,ut,v,M,R);ut=new Tt(G,Pt,!0,!1),bt=new Tt(G+"*",Pt,!1,!1);var tr=new Tt(G+" const*",Pt,!1,!0);return Wo[I]={pointerType:bt,la:tr},Ll($,K),[ut,bt,tr]})},d:function(I,u,d,p,w,v,k){var M=En(d,p);u=ot(u),v=xt(w,v),Xt([],[I],function(_){function R(){Le("Cannot call "+G+" due to unbound types",M)}_=_[0];var G=_.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var N=_.N.constructor;return N[u]===void 0?(R.Z=d-1,N[u]=R):(In(N,u,G),N[u].S[d-1]=R),Xt([],M,function(T){return T=Bn(G,[T[0],null].concat(T.slice(1)),null,v,k),N[u].S===void 0?(T.Z=d-1,N[u]=T):N[u].S[d-1]=T,[]}),[]})},p:function(I,u,d,p,w,v){0<u||X();var k=En(u,d);w=xt(p,w),Xt([],[I],function(M){M=M[0];var _="constructor "+M.name;if(M.N.Y===void 0&&(M.N.Y=[]),M.N.Y[u-1]!==void 0)throw new vA("Cannot register multiple constructors with identical number of parameters ("+(u-1)+") for class '"+M.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return M.N.Y[u-1]=()=>{Le("Cannot construct "+M.name+" due to unbound types",k)},Xt([],k,function(R){return R.splice(1,0,null),M.N.Y[u-1]=Bn(_,R,null,w,v),[]}),[]})},a:function(I,u,d,p,w,v,k,M){var _=En(d,p);u=ot(u),v=xt(w,v),Xt([],[I],function(R){function G(){Le("Cannot call "+N+" due to unbound types",_)}R=R[0];var N=R.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),M&&R.N.ja.push(u);var T=R.N.X,$=T[u];return $===void 0||$.S===void 0&&$.className!==R.name&&$.Z===d-2?(G.Z=d-2,G.className=R.name,T[u]=G):(In(T,u,N),T[u].S[d-2]=G),Xt([],_,function(K){return K=Bn(N,K,R,v,k),T[u].S===void 0?(K.Z=d-2,T[u]=K):T[u].S[d-2]=K,[]}),[]})},A:function(I,u){u=ot(u),Ot(I,{name:u,fromWireType:function(d){var p=ZA(d);return Cn(d),p},toWireType:function(d,p){return Re(p)},argPackAdvance:8,readValueFromPointer:te,V:null})},n:function(I,u,d){d=ln(d),u=ot(u),Ot(I,{name:u,fromWireType:function(p){return p},toWireType:function(p,w){return w},argPackAdvance:8,readValueFromPointer:Ol(u,d),V:null})},e:function(I,u,d,p,w){u=ot(u),w===-1&&(w=4294967295),w=ln(d);var v=M=>M;if(p===0){var k=32-8*d;v=M=>M<<k>>>k}d=u.includes("unsigned")?function(M,_){return _>>>0}:function(M,_){return _},Ot(I,{name:u,fromWireType:v,toWireType:d,argPackAdvance:8,readValueFromPointer:Tl(u,w,p!==0),V:null})},b:function(I,u,d){function p(v){v>>=2;var k=D;return new w(c,k[v+1],k[v])}var w=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];d=ot(d),Ot(I,{name:d,fromWireType:p,argPackAdvance:8,readValueFromPointer:p},{ua:!0})},o:function(I,u){u=ot(u);var d=u==="std::string";Ot(I,{name:u,fromWireType:function(p){var w=D[p>>2],v=p+4;if(d)for(var k=v,M=0;M<=w;++M){var _=v+M;if(M==w||C[_]==0){if(k=k?g(C,k,_-k):"",R===void 0)var R=k;else R+="\0",R+=k;k=_+1}}else{for(R=Array(w),M=0;M<w;++M)R[M]=String.fromCharCode(C[v+M]);R=R.join("")}return Jt(p),R},toWireType:function(p,w){w instanceof ArrayBuffer&&(w=new Uint8Array(w));var v,k=typeof w=="string";if(k||w instanceof Uint8Array||w instanceof Uint8ClampedArray||w instanceof Int8Array||O("Cannot pass non-string to std::string"),d&&k){var M=0;for(v=0;v<w.length;++v){var _=w.charCodeAt(v);127>=_?M++:2047>=_?M+=2:55296<=_&&57343>=_?(M+=4,++v):M+=3}v=M}else v=w.length;if(M=Qn(4+v+1),_=M+4,D[M>>2]=v,d&&k){if(k=_,_=v+1,v=C,0<_){_=k+_-1;for(var R=0;R<w.length;++R){var G=w.charCodeAt(R);if(55296<=G&&57343>=G){var N=w.charCodeAt(++R);G=65536+((G&1023)<<10)|N&1023}if(127>=G){if(k>=_)break;v[k++]=G}else{if(2047>=G){if(k+1>=_)break;v[k++]=192|G>>6}else{if(65535>=G){if(k+2>=_)break;v[k++]=224|G>>12}else{if(k+3>=_)break;v[k++]=240|G>>18,v[k++]=128|G>>12&63}v[k++]=128|G>>6&63}v[k++]=128|G&63}}v[k]=0}}else if(k)for(k=0;k<v;++k)R=w.charCodeAt(k),255<R&&(Jt(_),O("String has UTF-16 code units that do not fit in 8 bits")),C[_+k]=R;else for(k=0;k<v;++k)C[_+k]=w[k];return p!==null&&p.push(Jt,M),M},argPackAdvance:8,readValueFromPointer:te,V:function(p){Jt(p)}})},i:function(I,u,d){if(d=ot(d),u===2)var p=Jl,w=Pl,v=Kl,k=()=>f,M=1;else u===4&&(p=Yl,w=Wl,v=jl,k=()=>D,M=2);Ot(I,{name:d,fromWireType:function(_){for(var R=D[_>>2],G=k(),N,T=_+4,$=0;$<=R;++$){var K=_+4+$*u;($==R||G[K>>M]==0)&&(T=p(T,K-T),N===void 0?N=T:(N+="\0",N+=T),T=K+u)}return Jt(_),N},toWireType:function(_,R){typeof R!="string"&&O("Cannot pass non-string to C++ string type "+d);var G=v(R),N=Qn(4+G+u);return D[N>>2]=G>>M,w(R,N+4,G+u),_!==null&&_.push(Jt,N),N},argPackAdvance:8,readValueFromPointer:te,V:function(_){Jt(_)}})},k:function(I,u,d,p,w,v){Ne[I]={name:ot(u),fa:xt(d,p),W:xt(w,v),ia:[]}},h:function(I,u,d,p,w,v,k,M,_,R){Ne[I].ia.push({oa:ot(u),ta:d,ra:xt(p,w),sa:v,za:k,ya:xt(M,_),Aa:R})},C:function(I,u){u=ot(u),Ot(I,{va:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(I,u,d,p,w){I=Ue[I],u=ZA(u),d=Vo(d);var v=[];return D[p>>2]=Re(v),I(u,d,v,w)},t:function(I,u,d,p){I=Ue[I],u=ZA(u),d=Vo(d),I(u,d,null,p)},g:Cn,m:function(I,u){var d=Xl(I,u),p=d[0];u=p.name+"_$"+d.slice(1).map(function(k){return k.name}).join("_")+"$";var w=Xo[u];if(w!==void 0)return w;var v=Array(I-1);return w=Vl((k,M,_,R)=>{for(var G=0,N=0;N<I-1;++N)v[N]=d[N+1].readValueFromPointer(R+G),G+=d[N+1].argPackAdvance;for(k=k[M].apply(k,v),N=0;N<I-1;++N)d[N+1].ma&&d[N+1].ma(v[N]);if(!p.va)return p.toWireType(_,k)}),Xo[u]=w},D:function(I){4<I&&(St[I].ga+=1)},r:function(I){var u=ZA(I);hn(u),Cn(I)},c:function(){X("")},x:function(I,u,d){C.copyWithin(I,u,u+d)},w:function(I){var u=C.length;if(I>>>=0,2147483648<I)return!1;for(var d=1;4>=d;d*=2){var p=u*(1+.2/d);p=Math.min(p,I+100663296);var w=Math;p=Math.max(I,p),w=w.min.call(w,2147483648,p+(65536-p%65536)%65536);t:{try{B.grow(w-c.byteLength+65535>>>16),F();var v=1;break t}catch{}v=void 0}if(v)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(I,u,d,p){for(var w=0,v=0;v<d;v++){var k=D[u>>2],M=D[u+4>>2];u+=8;for(var _=0;_<M;_++){var R=C[k+_],G=Zl[I];R===0||R===10?((I===1?o:h)(g(G,0)),G.length=0):G.push(R)}w+=M}return D[p>>2]=w,0}};(function(){function I(w){A.asm=w.exports,B=A.asm.E,F(),U=A.asm.J,L.unshift(A.asm.F),nt--,A.monitorRunDependencies&&A.monitorRunDependencies(nt),nt==0&&rt&&(w=rt,rt=null,w())}function u(w){I(w.instance)}function d(w){return ke().then(function(v){return WebAssembly.instantiate(v,p)}).then(function(v){return v}).then(w,function(v){h("failed to asynchronously prepare wasm: "+v),X(v)})}var p={a:$l};if(nt++,A.monitorRunDependencies&&A.monitorRunDependencies(nt),A.instantiateWasm)try{return A.instantiateWasm(p,I)}catch(w){h("Module.instantiateWasm callback failed with error: "+w),n(w)}return function(){return l||typeof WebAssembly.instantiateStreaming!="function"||Qt(st)||typeof fetch!="function"?d(u):fetch(st,{credentials:"same-origin"}).then(function(w){return WebAssembly.instantiateStreaming(w,p).then(u,function(v){return h("wasm streaming compile failed: "+v),h("falling back to ArrayBuffer instantiation"),d(u)})})}().catch(n),{}})(),A.___wasm_call_ctors=function(){return(A.___wasm_call_ctors=A.asm.F).apply(null,arguments)};var zo=A.___getTypeName=function(){return(zo=A.___getTypeName=A.asm.G).apply(null,arguments)};A.__embind_initialize_bindings=function(){return(A.__embind_initialize_bindings=A.asm.H).apply(null,arguments)};var Qn=A._malloc=function(){return(Qn=A._malloc=A.asm.I).apply(null,arguments)},Jt=A._free=function(){return(Jt=A._free=A.asm.K).apply(null,arguments)};A.dynCall_jiji=function(){return(A.dynCall_jiji=A.asm.L).apply(null,arguments)};var Te;rt=function I(){Te||$o(),Te||(rt=I)};function $o(){function I(){if(!Te&&(Te=!0,A.calledRun=!0,!r)){if(vt(L),i(A),A.onRuntimeInitialized&&A.onRuntimeInitialized(),A.postRun)for(typeof A.postRun=="function"&&(A.postRun=[A.postRun]);A.postRun.length;){var u=A.postRun.shift();it.unshift(u)}vt(it)}}if(!(0<nt)){if(A.preRun)for(typeof A.preRun=="function"&&(A.preRun=[A.preRun]);A.preRun.length;)Ht();vt(J),0<nt||(A.setStatus?(A.setStatus("Running..."),setTimeout(function(){setTimeout(function(){A.setStatus("")},1),I()},1)):I())}}if(A.preInit)for(typeof A.preInit=="function"&&(A.preInit=[A.preInit]);0<A.preInit.length;)A.preInit.pop()();return $o(),t.ready}})();let z=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),De=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Eo=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),eA=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),EA=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),H=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),CA=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),Jh=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Ft=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),fA=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),ft=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),QA=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),zi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Co=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),dA=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),pA=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),Gt=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),yA=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({});const Ph={ALIGN_AUTO:z.Auto,ALIGN_FLEX_START:z.FlexStart,ALIGN_CENTER:z.Center,ALIGN_FLEX_END:z.FlexEnd,ALIGN_STRETCH:z.Stretch,ALIGN_BASELINE:z.Baseline,ALIGN_SPACE_BETWEEN:z.SpaceBetween,ALIGN_SPACE_AROUND:z.SpaceAround,ALIGN_SPACE_EVENLY:z.SpaceEvenly,BOX_SIZING_BORDER_BOX:De.BorderBox,BOX_SIZING_CONTENT_BOX:De.ContentBox,DIMENSION_WIDTH:Eo.Width,DIMENSION_HEIGHT:Eo.Height,DIRECTION_INHERIT:eA.Inherit,DIRECTION_LTR:eA.LTR,DIRECTION_RTL:eA.RTL,DISPLAY_FLEX:EA.Flex,DISPLAY_NONE:EA.None,DISPLAY_CONTENTS:EA.Contents,EDGE_LEFT:H.Left,EDGE_TOP:H.Top,EDGE_RIGHT:H.Right,EDGE_BOTTOM:H.Bottom,EDGE_START:H.Start,EDGE_END:H.End,EDGE_HORIZONTAL:H.Horizontal,EDGE_VERTICAL:H.Vertical,EDGE_ALL:H.All,ERRATA_NONE:CA.None,ERRATA_STRETCH_FLEX_BASIS:CA.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:CA.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:CA.AbsolutePercentAgainstInnerSize,ERRATA_ALL:CA.All,ERRATA_CLASSIC:CA.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Jh.WebFlexBasis,FLEX_DIRECTION_COLUMN:Ft.Column,FLEX_DIRECTION_COLUMN_REVERSE:Ft.ColumnReverse,FLEX_DIRECTION_ROW:Ft.Row,FLEX_DIRECTION_ROW_REVERSE:Ft.RowReverse,GUTTER_COLUMN:fA.Column,GUTTER_ROW:fA.Row,GUTTER_ALL:fA.All,JUSTIFY_FLEX_START:ft.FlexStart,JUSTIFY_CENTER:ft.Center,JUSTIFY_FLEX_END:ft.FlexEnd,JUSTIFY_SPACE_BETWEEN:ft.SpaceBetween,JUSTIFY_SPACE_AROUND:ft.SpaceAround,JUSTIFY_SPACE_EVENLY:ft.SpaceEvenly,LOG_LEVEL_ERROR:QA.Error,LOG_LEVEL_WARN:QA.Warn,LOG_LEVEL_INFO:QA.Info,LOG_LEVEL_DEBUG:QA.Debug,LOG_LEVEL_VERBOSE:QA.Verbose,LOG_LEVEL_FATAL:QA.Fatal,MEASURE_MODE_UNDEFINED:zi.Undefined,MEASURE_MODE_EXACTLY:zi.Exactly,MEASURE_MODE_AT_MOST:zi.AtMost,NODE_TYPE_DEFAULT:Co.Default,NODE_TYPE_TEXT:Co.Text,OVERFLOW_VISIBLE:dA.Visible,OVERFLOW_HIDDEN:dA.Hidden,OVERFLOW_SCROLL:dA.Scroll,POSITION_TYPE_STATIC:pA.Static,POSITION_TYPE_RELATIVE:pA.Relative,POSITION_TYPE_ABSOLUTE:pA.Absolute,UNIT_UNDEFINED:Gt.Undefined,UNIT_POINT:Gt.Point,UNIT_PERCENT:Gt.Percent,UNIT_AUTO:Gt.Auto,WRAP_NO_WRAP:yA.NoWrap,WRAP_WRAP:yA.Wrap,WRAP_WRAP_REVERSE:yA.WrapReverse};function Kh(e){function t(n,s,a){const o=n[s];n[s]=function(){for(var h=arguments.length,l=new Array(h),B=0;B<h;B++)l[B]=arguments[B];return a.call(this,o,...l)}}for(const n of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){const s={[Gt.Point]:e.Node.prototype[n],[Gt.Percent]:e.Node.prototype[`${n}Percent`],[Gt.Auto]:e.Node.prototype[`${n}Auto`]};t(e.Node.prototype,n,function(a){for(var o=arguments.length,h=new Array(o>1?o-1:0),l=1;l<o;l++)h[l-1]=arguments[l];const B=h.pop();let r,g;if(B==="auto")r=Gt.Auto,g=void 0;else if(typeof B=="object")r=B.unit,g=B.valueOf();else if(r=typeof B=="string"&&B.endsWith("%")?Gt.Percent:Gt.Point,g=parseFloat(B),B!==void 0&&!Number.isNaN(B)&&Number.isNaN(g))throw new Error(`Invalid value ${B} for ${n}`);if(!s[r])throw new Error(`Failed to execute "${n}": Unsupported unit '${B}'`);return g!==void 0?s[r].call(this,...h,g):s[r].call(this,...h)})}function A(n){return e.MeasureCallback.implement({measure:function(){const{width:s,height:a}=n(...arguments);return{width:s??NaN,height:a??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(n,s){return s?n.call(this,A(s)):this.unsetMeasureFunc()});function i(n){return e.DirtiedCallback.implement({dirtied:n})}return t(e.Node.prototype,"setDirtiedFunc",function(n,s){n.call(this,i(s))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(n,s)=>s?e.Node.createWithConfig(s):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let n=0,s=this.getChildCount();n<s;++n)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:eA.LTR;return n.call(this,s,a,o)}),{Config:e.Config,Node:e.Node,...Ph}}async function Yh(){return Kh(await Th())}let fo;function Wh(){return fo}function jh(e){fo=e}function ve(e,t){return e?typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?(t??(t=1),t*(parseFloat(e)/100)):Number.isNaN(parseFloat(e))?0:parseFloat(e):0}function iA(e){return typeof e=="number"?"number":e.endsWith("%")?"percentage":Number.isNaN(parseInt(e,10))?"keyword":"number"}function Se(e,t,A){return(t[e]-A[e])/2}function Qo(e,t,A,i,n){const s=t==="percentage"?i[A]-n[A]:1;return ve(e)*s}function po(e,t,A){const[i,n]=e,s=iA(i),a=iA(n),o={x:void 0,y:void 0};switch(i){case"top":o.y=0;break;case"bottom":o.y=t.height-A.height;break;case"center":n==="left"||n==="right"?o.y=Se("height",t,A):o.x=Se("width",t,A);break;case"left":o.x=0;break;case"right":o.x=t.width-A.width;break;default:{const h=n==="top"||n==="bottom"||a!=="keyword"?"width":"height",l=h==="width"?"x":"y";o[l]=Qo(i,s,h,t,A)}}switch(n){case"top":o.y=0;break;case"bottom":o.y=t.height-A.height;break;case"center":o.y===void 0?o.y=Se("height",t,A):o.x=Se("width",t,A);break;case"left":o.x=0;break;case"right":o.x=t.width-A.width;break;default:{const h=o.y===void 0?"y":"x",l=h==="y"?"height":"width";o[h]=Qo(n,a,l,t,A)}}return o}function xe(e,t,A,i){const n=e==="right"||e==="bottom",s=A==="percentage"?t*i:t;return n?-s:s}function qh(e,t,A){const[i,n,s,a]=e,o=iA(i),h=iA(n),l=iA(s),B=iA(a);if(h==="keyword"||B==="keyword")throw new Error("Invalid objectPosition value: second and fourth values must be numbers or percentages");if(o!=="keyword"||l!=="keyword")throw new Error("Invalid objectPosition value: first and third values must be keywords");const r=po([i,s],t,A),g={...r},c=ve(n),E=ve(a);return i==="left"||i==="right"?g.x=r.x+xe(i,c,h,A.width):(i==="top"||i==="bottom")&&(g.y=r.y+xe(i,c,h,A.height)),s==="left"||s==="right"?g.x=r.x+xe(s,E,B,A.width):(s==="top"||s==="bottom")&&(g.y=r.y+xe(s,E,B,A.height)),g}function Vh(e,t,A){const i=e[0],n={x:void 0,y:void 0};switch(i){case"top":n.y=0,n.x=(t.width-A.width)/2;break;case"bottom":n.y=t.height-A.height,n.x=(t.width-A.width)/2;break;case"left":n.x=0,n.y=(t.height-A.height)/2;break;case"right":n.x=t.width-A.width,n.y=(t.height-A.height)/2;break;case"center":n.x=(t.width-A.width)/2,n.y=(t.height-A.height)/2;break;default:{const a=iA(i)==="percentage"?t.width-A.width:1;n.x=ve(i)*a,n.y=(t.height-A.height)/2}}return n}function $i(e,t,A){if(!e)return{x:0,y:0};const i=typeof e=="string"?e.split(" "):[e];switch(i.length){case 1:return Vh(i,t,A);case 2:return po(i,t,A);case 4:return qh(i,t,A);default:throw new Error("Invalid objectPosition value: must have 1, 2, or 4 values")}}const Xh=new m.Bounds,tn={width:0,height:0};function yo(e){const t=e.target.getLocalBounds(Xh),A=e.target.scale;return tn.width=Math.abs(t.width*A.x),tn.height=Math.abs(t.height*A.y),tn}function wo(e,t,A=.49){return Math.abs(e-t)<A}const qA=new Map;function Zh(e,t=100,A){if(!qA.has(e)){let i=null;const n=(...s)=>{if(qA.get(e).args=s,i)return;const a=()=>{i=null;const o=qA.get(e).args;e(...o)};t===0?a():i=setTimeout(a,t)};qA.set(e,{throttledFunction:n,args:null})}return qA.get(e).throttledFunction}var zh=Object.defineProperty,$h=(e,t,A)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,nA=(e,t,A)=>$h(e,typeof t!="symbol"?t+"":t,A);class mo{constructor(){nA(this,"autoUpdate",!0),nA(this,"_debugEnabled",!1),nA(this,"_debugRenderer",null),nA(this,"_throttledUpdateSize"),nA(this,"_throttle",100),nA(this,"_modificationCount",50)}async init(t){jh(await Yh());const{layout:A}=t??{},{autoUpdate:i,enableDebug:n,throttle:s,debugModificationCount:a}=A??{};n&&this.enableDebug(!0),i!==void 0&&(this.autoUpdate=i),this._throttle=s??this._throttle,this._throttledUpdateSize=Zh(o=>this._updateSize(o),this._throttle),this._modificationCount=a??this._modificationCount}async enableDebug(t=!this._debugEnabled){if(this._debugEnabled=t,!this._debugRenderer){const A=await Promise.resolve().then(()=>xl);this._debugRenderer=new A.DebugRenderer}this._debugEnabled||this._debugRenderer.reset()}update(t){this._debugEnabled&&this._debugRenderer&&(this._debugRenderer.reset(),t.addChild(this._debugRenderer.holder)),this._throttledUpdateSize(t),this.updateLayout(t)}prerender({container:t}){this.autoUpdate&&this.update(t)}_updateSize(t){const A=t._layout;if(A){const i=A.style;if(i.width==="intrinsic"||i.height==="intrinsic"){const n=yo(A);if(i.width==="intrinsic"){const s=A.yoga.getWidth().value;wo(s,n.width)||(A.yoga.setWidth(n.width),A.invalidateRoot())}if(i.height==="intrinsic"){const s=A.yoga.getHeight().value;wo(s,n.height)||(A.yoga.setHeight(n.height),A.invalidateRoot())}}if(!t.visible){A._onChildRemoved();return}}for(let i=0;i<t.children.length;i++)this._updateSize(t.children[i])}updateLayout(t){var A,i,n,s;const a=t._layout;if(t.visible){if(a){const o=a.yoga,h=a.style,l=(A=t.parent)==null?void 0:A.isOverflowContainer;if(!((i=t.parent)==null?void 0:i._layout)&&!l&&a._isDirty&&(a._isDirty=!1,o.calculateLayout(h.width,h.height,o.getDirection()??eA.LTR)),o.hasNewLayout()||a._forceUpdate){o.markLayoutSeen(),a._forceUpdate=!1,a._computedLayout=o.getComputedLayout();const r=$i(h.transformOrigin,a._computedLayout,{width:0,height:0});a._computedPixiLayout={...t.computeLayoutData(a._computedLayout),originX:r.x,originY:r.y},t.emit("layout",a),(n=t.onLayout)==null||n.call(t,a),t._onUpdate()}this._debugEnabled&&(a._styles.custom.debug||a._modificationCount>this._modificationCount&&a._styles.custom.debugHeat!==!1)&&((s=this._debugRenderer)==null||s.render(a))}for(let o=0;o<t.children.length;o++)this.updateLayout(t.children[o])}}destroy(){!this._debugEnabled&&this._debugRenderer&&this._debugRenderer.destroy()}}nA(mo,"extension",{type:[m.ExtensionType.WebGLSystem,m.ExtensionType.WebGPUSystem],name:"layout"});const Do={"flex-start":z.FlexStart,"flex-end":z.FlexEnd,center:z.Center,stretch:z.Stretch,"space-between":z.SpaceBetween,"space-around":z.SpaceAround,"space-evenly":z.SpaceEvenly},vo={"flex-start":z.FlexStart,"flex-end":z.FlexEnd,center:z.Center,stretch:z.Stretch,baseline:z.Baseline},So={"border-box":De.BorderBox,"content-box":De.ContentBox},xo={ltr:eA.LTR,rtl:eA.RTL},bo={none:EA.None,flex:EA.Flex,contents:EA.Contents},ko={row:Ft.Row,column:Ft.Column,"row-reverse":Ft.RowReverse,"column-reverse":Ft.ColumnReverse},Mo={wrap:yA.Wrap,nowrap:yA.NoWrap,"wrap-reverse":yA.WrapReverse},Ro={"flex-start":ft.FlexStart,"flex-end":ft.FlexEnd,center:ft.Center,"space-between":ft.SpaceBetween,"space-around":ft.SpaceAround,"space-evenly":ft.SpaceEvenly},_o={visible:dA.Visible,hidden:dA.Hidden,scroll:dA.Scroll},Fo={absolute:pA.Absolute,relative:pA.Relative,static:pA.Static},tl={alignContent:(e,t)=>e.setAlignContent(Al(t)),alignItems:(e,t)=>e.setAlignItems(Go(t)),alignSelf:(e,t)=>e.setAlignSelf(Go(t)),aspectRatio:(e,t)=>e.setAspectRatio(t),borderBottomWidth:(e,t)=>e.setBorder(H.Bottom,t),borderEndWidth:(e,t)=>e.setBorder(H.End,t),borderLeftWidth:(e,t)=>e.setBorder(H.Left,t),borderRightWidth:(e,t)=>e.setBorder(H.Right,t),borderStartWidth:(e,t)=>e.setBorder(H.Start,t),borderTopWidth:(e,t)=>e.setBorder(H.Top,t),borderWidth:(e,t)=>e.setBorder(H.All,t),borderInlineWidth:(e,t)=>e.setBorder(H.Horizontal,t),borderBlockWidth:(e,t)=>e.setBorder(H.Vertical,t),bottom:(e,t)=>e.setPosition(H.Bottom,t),boxSizing:(e,t)=>e.setBoxSizing(el(t)),direction:(e,t)=>e.setDirection(il(t)),display:(e,t)=>e.setDisplay(nl(t)),end:(e,t)=>e.setPosition(H.End,t),flex:(e,t)=>e.setFlex(t),flexBasis:(e,t)=>e.setFlexBasis(t),flexDirection:(e,t)=>e.setFlexDirection(sl(t)),rowGap:(e,t)=>e.setGap(fA.Row,t),gap:(e,t)=>e.setGap(fA.All,t),columnGap:(e,t)=>e.setGap(fA.Column,t),flexGrow:(e,t)=>e.setFlexGrow(t),flexShrink:(e,t)=>e.setFlexShrink(t),flexWrap:(e,t)=>e.setFlexWrap(ol(t)),height:(e,t)=>e.setHeight(t),justifyContent:(e,t)=>e.setJustifyContent(rl(t)),left:(e,t)=>e.setPosition(H.Left,t),margin:(e,t)=>e.setMargin(H.All,t),marginBottom:(e,t)=>e.setMargin(H.Bottom,t),marginEnd:(e,t)=>e.setMargin(H.End,t),marginLeft:(e,t)=>e.setMargin(H.Left,t),marginRight:(e,t)=>e.setMargin(H.Right,t),marginStart:(e,t)=>e.setMargin(H.Start,t),marginTop:(e,t)=>e.setMargin(H.Top,t),marginInline:(e,t)=>e.setMargin(H.Horizontal,t),marginBlock:(e,t)=>e.setMargin(H.Vertical,t),maxHeight:(e,t)=>e.setMaxHeight(t),maxWidth:(e,t)=>e.setMaxWidth(t),minHeight:(e,t)=>e.setMinHeight(t),minWidth:(e,t)=>e.setMinWidth(t),overflow:(e,t)=>e.setOverflow(al(t)),padding:(e,t)=>e.setPadding(H.All,t),paddingBottom:(e,t)=>e.setPadding(H.Bottom,t),paddingEnd:(e,t)=>e.setPadding(H.End,t),paddingLeft:(e,t)=>e.setPadding(H.Left,t),paddingRight:(e,t)=>e.setPadding(H.Right,t),paddingStart:(e,t)=>e.setPadding(H.Start,t),paddingTop:(e,t)=>e.setPadding(H.Top,t),paddingInline:(e,t)=>e.setPadding(H.Horizontal,t),paddingBlock:(e,t)=>e.setPadding(H.Vertical,t),position:(e,t)=>e.setPositionType(gl(t)),right:(e,t)=>e.setPosition(H.Right,t),start:(e,t)=>e.setPosition(H.Start,t),top:(e,t)=>e.setPosition(H.Top,t),insetInline:(e,t)=>e.setPosition(H.Horizontal,t),insetBlock:(e,t)=>e.setPosition(H.Vertical,t),inset:(e,t)=>e.setPosition(H.All,t),width:(e,t)=>e.setWidth(t)};function Al(e){if(e in Do)return Do[e];throw new Error(`"${e}" is not a valid value for alignContent`)}function Go(e){if(e in vo)return vo[e];throw new Error(`"${e}" is not a valid value for alignItems`)}function el(e){if(e in So)return So[e];throw new Error(`"${e}" is not a valid value for boxSizing`)}function il(e){if(e in xo)return xo[e];throw new Error(`"${e}" is not a valid value for direction`)}function nl(e){if(e in bo)return bo[e];throw new Error(`"${e}" is not a valid value for display`)}function sl(e){if(e in ko)return ko[e];throw new Error(`"${e}" is not a valid value for flexDirection`)}function ol(e){if(e in Mo)return Mo[e];throw new Error(`"${e}" is not a valid value for flexWrap`)}function rl(e){if(e in Ro)return Ro[e];throw new Error(`"${e}" is not a valid value for justifyContent`)}function al(e){if(e in _o)return _o[e];throw new Error(`"${e}" is not a valid value for overflow`)}function gl(e){if(e in Fo)return Fo[e];throw new Error(`"${e}" is not a valid value for position`)}function hl(e,t={}){for(const[A,i]of Object.entries(t))try{const n=tl[A];n&&n(e,i)}catch{}if(t.width!==void 0){const A=t.left!==void 0&&t.right!==void 0?"auto":t.width;e.setWidth(A)}if(t.height!==void 0){const A=t.top!==void 0&&t.bottom!==void 0?"auto":t.height;e.setHeight(A)}}function ll(e,t){let i={...e._styles.custom,...t};i={...{...wA.defaultStyle.shared,...e.target instanceof m.ViewContainer||i.isLeaf||wA.defaultStyle.shared.isLeaf?wA.defaultStyle.leaf:wA.defaultStyle.container},...i};const s={...i},a=i.width==="intrinsic",o=i.height==="intrinsic";if(a||o){const{width:h,height:l}=yo(e);a&&(s.width=h),o&&(s.height=l)}return{custom:i,yoga:s}}function cl(e,t){var A;let i=t.layout,n=-1;if(!i&&t.isOverflowContainer&&(i=(A=t.parent)==null?void 0:A.layout,n=t.children.indexOf(e.target),t=t.parent),i){const s=e.yoga.getParent();if(s&&s.removeChild(e.yoga),t.children.indexOf(e.target)===t.children.length-1&&n===-1){i.yoga.insertChild(e.yoga,i.yoga.getChildCount());return}for(let a=0;a<t.children.length;a++){const o=t.children[a];if(o.layout&&o.visible&&n++,o===e.target)break}i.yoga.insertChild(e.yoga,n)}}function Il(e){const t=e.yoga.getParent();t&&t.removeChild(e.yoga)}var ul=Object.defineProperty,Bl=(e,t,A)=>t in e?ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,Dt=(e,t,A)=>Bl(e,typeof t!="symbol"?t+"":t,A);class wA{constructor({target:t}){Dt(this,"yoga"),Dt(this,"target"),Dt(this,"_isDirty",!1),Dt(this,"_computedPixiLayout",{x:0,y:0,offsetX:0,offsetY:0,scaleX:1,scaleY:1,originX:0,originY:0}),Dt(this,"_computedLayout",{left:0,right:0,top:0,bottom:0,width:0,height:0}),Dt(this,"_styles",{custom:{},yoga:{}}),Dt(this,"_modificationCount",0),Dt(this,"_forceUpdate",!1),Dt(this,"hasParent",!1),Dt(this,"_trackedStyleKeys",["borderRadius","borderColor","backgroundColor","objectFit","objectPosition","transformOrigin","isLeaf"]),this.target=t,this.yoga=Wh().Node.create(),t.on("added",this._onChildAdded,this),t.on("removed",this._onChildRemoved,this),t.on("destroyed",this.destroy,this)}get style(){return this._styles.custom}get computedLayout(){return this._computedLayout}get computedPixiLayout(){return this._computedPixiLayout}get realX(){return this.target.localTransform.tx}get realY(){return this.target.localTransform.ty}get realScaleX(){return this.target.localTransform.a}get realScaleY(){return this.target.localTransform.d}setStyle(t){const A=ll(this,t),i=JSON.stringify(this._styles.custom)!==JSON.stringify(A.custom),n=JSON.stringify(this._styles.yoga)!==JSON.stringify(A.yoga),s=i||n,a=this._trackedStyleKeys.some(o=>A.custom[o]!==this._styles.custom[o]);this._styles=A,a&&(this._forceUpdate=!0),s&&(hl(this.yoga,this._styles.yoga),this.target._onUpdate(),this.invalidateRoot())}invalidateRoot(){const t=this.getRoot();t._layout._isDirty=!0,t._onUpdate(),this._modificationCount++}forceUpdate(){this._forceUpdate=!0}getRoot(){var t,A;let i=this.target;for(;(t=i.parent)!=null&&t._layout||(A=i.parent)!=null&&A.isOverflowContainer;)i=i.parent,i.isOverflowContainer&&(i=i.parent);return i}_onChildAdded(t){this.hasParent||(this.hasParent=!0,this.invalidateRoot(),cl(this,t))}_onChildRemoved(){this.hasParent&&(this.hasParent=!1,this.invalidateRoot(),Il(this))}destroy(){this.invalidateRoot(),this.yoga.free(),this.target.off("added",this._onChildAdded,this),this.target.off("removed",this._onChildRemoved,this),this._styles=null,this._computedPixiLayout=null,this._computedLayout=null,this.target=null,this.hasParent=!1}}Dt(wA,"defaultStyle",{leaf:{width:"intrinsic",height:"intrinsic"},container:{width:"auto",height:"auto"},shared:{transformOrigin:"50%",objectPosition:"center",flexShrink:1,flexDirection:"row",alignContent:"stretch",flexWrap:"nowrap",overflow:"visible"}});function No(e,t,A){let i=1,n=1;switch(e){case"fill":i=t.width/A.width,n=t.height/A.height;break;case"contain":{const s=Math.min(t.width/A.width,t.height/A.height);i=s,n=s;break}case"cover":{const s=Math.max(t.width/A.width,t.height/A.height);i=s,n=s;break}case"none":i=1,n=1;break;case"scale-down":{const s=Math.min(1,t.width/A.width,t.height/A.height);i=s,n=s;break}}return{offsetScaleX:i,offsetScaleY:n}}function Ho(e,t,A,i){const n=e.getLocalBounds(),s=e.layout.style.objectFit||A;let{offsetScaleX:a,offsetScaleY:o}=No(s,t,n);const h={width:n.width*a,height:n.height*o};let{x:l,y:B}=$i(e.layout.style.objectPosition,t,h);i?(l+=n.width*a*i._x,B+=n.height*o*i._y):(l-=n.minX*a,B-=n.minY*o);const r=e.layout.style.applySizeDirectly;return(r===!0||r==null&&(e instanceof m.TilingSprite||e instanceof m.NineSliceSprite))&&(e.width=n.width*a,e.height=n.height*o,a=1,o=1),{x:t.left,y:t.top,offsetX:l,offsetY:B,scaleX:a,scaleY:o}}const An=Object.getOwnPropertyDescriptor(m.Container.prototype,"visible"),El={_layout:null,get layout(){return this._layout??null},set layout(e){if(e=e===!0?{}:e,!e){this._layout&&(this._layout.destroy(),this._layout=null,this.updateLocalTransform=m.Container.prototype.updateLocalTransform,Object.defineProperty(m.Container.prototype,"visible",An));return}this._layout||(this._layout=new wA({target:this}),Object.defineProperty(m.Container.prototype,"visible",{...An,set(t){An.set.call(this,t),this.layout&&(t&&this.parent?this.layout._onChildAdded(this.parent):this.layout._onChildRemoved())}}),this.parent&&this.visible&&this._layout._onChildAdded(this.parent)),this._layout.setStyle(e),this.updateLocalTransform=this.updateLocalTransformWithLayout,this._onUpdate()},updateLocalTransformWithLayout(){const e=this._didContainerChangeTick;if(this._didLocalTransformChangeId===e)return;this._didLocalTransformChangeId=e;const t=this._layout,{x:A,y:i,offsetX:n,offsetY:s,scaleX:a,scaleY:o,originX:h,originY:l}=t._computedPixiLayout,B=this.localTransform,{rotation:r,skew:g,scale:c,position:E}=this,C=r+g._y,Q=r-g._x,f=Math.cos(C)*c._x,y=Math.sin(C)*c._x,D=-Math.sin(Q)*c._y,b=Math.cos(Q)*c._y,S=E._x+A-h*f-l*D,F=E._y+i-h*y-l*b;B.a=f*a,B.b=y*a,B.c=D*o,B.d=b*o,B.tx=S+(n*f+s*D)+h,B.ty=F+(n*y+s*b)+l},computeLayoutData(e){const t=this._layout,{isLeaf:A}=t._styles.custom;return A?Ho(this,e,"fill"):{x:e.left,y:e.top,offsetX:0,offsetY:0,scaleX:1,scaleY:1}}};m.extensions.mixin(m.Container,El);const Lo=new m.Point(0,0),Cl={computeLayoutData(e){const t=this._style;Lo.copyFrom(this.scale),this.scale=1,t.wordWrap&&(t.wordWrapWidth=e.width);let A=this.getLocalBounds();const i=this.layout.style.objectFit||"scale-down",{offsetScaleX:n,offsetScaleY:s}=No(i,e,A);t.wordWrap&&(t.wordWrapWidth=e.width/Math.min(1,Math.max(n,s))),A=this.getLocalBounds();const a={width:A.width*n,height:A.height*s};let{x:o,y:h}=$i(this.layout.style.objectPosition,e,a);return o+=A.width*n*this.anchor._x,h+=A.height*s*this.anchor._y,this.layout.style.applySizeDirectly===!0&&(this.width=A.width*n,this.height=A.height*s),this.scale.copyFrom(Lo),{x:e.left,y:e.top,offsetX:o,offsetY:h,scaleX:n,scaleY:s}}};m.extensions.mixin(m.AbstractText,Cl);const en=Object.getOwnPropertyDescriptor(m.AbstractText.prototype,"text");Object.defineProperty(m.AbstractText.prototype,"text",{...en,set(e){var t;const A=en.get.call(this);en.set.call(this,e),A!==e&&((t=this.layout)==null||t.forceUpdate())}});const fl={computeLayoutData(e){return Ho(this,e,"fill",this._anchor)}};m.extensions.mixin(m.ViewContainer,fl);var Nt=(e=>(e.Margin="margin",e.Padding="padding",e.Border="border",e.Flex="flex",e.Content="content",e))(Nt||{});function nn(e,t){const A=`getComputed${t.charAt(0).toUpperCase()+t.slice(1)}`;return{top:e.yoga[A](H.Top),right:e.yoga[A](H.Right),bottom:e.yoga[A](H.Bottom),left:e.yoga[A](H.Left)}}function Ql(e,t){const{width:A,height:i}=e.computedLayout,n=nn(e,"margin"),s=nn(e,"border"),a=nn(e,"padding"),o=t.get("margin");o.outer.x=-n.left,o.outer.y=-n.top,o.outer.width=A+n.left+n.right,o.outer.height=i+n.top+n.bottom,o.inner.x=0,o.inner.y=0,o.inner.width=A,o.inner.height=i;const h=t.get("border");h.outer.x=0,h.outer.y=0,h.outer.width=A,h.outer.height=i,h.inner.x=s.left,h.inner.y=s.top,h.inner.width=A-s.left-s.right,h.inner.height=i-s.top-s.bottom;const l=t.get("padding");l.outer.copyFrom(h.inner),l.inner.x=a.left+s.left,l.inner.y=a.top+s.top,l.inner.width=A-a.left-a.right-s.left-s.right,l.inner.height=i-a.top-a.bottom-s.top-s.bottom,dl(e,t)}function dl(e,t){var A;const i=t.get("flex"),n=t.get("padding");i.outer.copyFrom(n.inner);const s=new m.Bounds,a=e.yoga.getChildCount();for(let h=0;h<a;h++){const B=e.yoga.getChild(h).getComputedLayout();s.addRect(new m.Rectangle(B.left,B.top,B.width,B.height))}const o=e.yoga.getFlexDirection();o===Ft.Column||o===Ft.ColumnReverse?(s.width=i.outer.width,s.x=i.outer.x):(s.height=i.outer.height,s.y=i.outer.y),(A=i.inner)==null||A.copyFrom(s.rectangle),t.get("content").outer.copyFrom(s.rectangle)}var pl=Object.defineProperty,yl=(e,t,A)=>t in e?pl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,Uo=(e,t,A)=>yl(e,typeof t!="symbol"?t+"":t,A);function wl(e,t,A){const i=Math.round(e[0]+(t[0]-e[0])*A),n=Math.round(e[1]+(t[1]-e[1])*A),s=Math.round(e[2]+(t[2]-e[2])*A);return`rgb(${i},${n},${s})`}class ml extends m.Container{constructor(){super(),Uo(this,"graphics"),Uo(this,"heatGraphics"),this.graphics=new Map,Object.values(Nt).forEach(t=>{const A=new m.Graphics;this.graphics.set(t,A),this.addChild(A)}),this.heatGraphics=new m.Graphics,this.addChild(this.heatGraphics)}init(t){const{target:A,alpha:i,heat:n}=t;t.heatOnly||Object.entries(t).forEach(([o,h])=>{if(o==="target"||o==="alpha"||o==="heat"||o==="heatOnly")return;h=h;const l=this.graphics.get(o);if(!(!l||!h.draw))if(h.inner)this.drawCutBox(l,h.outer,h.inner,h.color,i);else{const{x:B,y:r,width:g,height:c}=h.outer;l.rect(B,r,g,Math.max(c,1)),l.fill({color:h.color,alpha:i})}});const{invalidationCount:s,draw:a}=n;if(s>0&&a){const h=Math.min(s/20,1),l=t[Nt.Margin],g=wl([255,255,0],[255,0,0],h);this.heatGraphics.rect(l.outer.x,l.outer.y,l.outer.width,l.outer.height),this.heatGraphics.fill({color:g,alpha:Math.min(.3,h)}),this.heatGraphics.stroke({color:g,alpha:Math.max(.3,h),pixelLine:!0})}this.position.set(A.x,A.y)}reset(){this.graphics.forEach(t=>t.clear()),this.heatGraphics.clear(),this.removeFromParent()}drawCutBox(t,A,i,n,s){const{x:a,y:o,width:h,height:l}=A,{x:B,y:r,width:g,height:c}=i;t.rect(a,o,h,l),t.fill({color:n,alpha:s}),t.rect(B,r,g,c),t.cut()}}var Dl=Object.defineProperty,vl=(e,t,A)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,be=(e,t,A)=>vl(e,typeof t!="symbol"?t+"":t,A);class Sl{constructor(){be(this,"holder",new m.Container),be(this,"regions",new Map),be(this,"colors",{[Nt.Margin]:"#B68655",[Nt.Padding]:"#BAC57F",[Nt.Border]:"#E7C583",[Nt.Content]:"#89B1BE",[Nt.Flex]:"#6E28D9"}),be(this,"alpha",.75),Object.values(Nt).forEach(t=>{this.regions.set(t,{outer:new m.Rectangle,inner:new m.Rectangle})}),this.holder.__devtoolIgnore=!0,this.holder.__devtoolIgnoreChildren=!0,this.holder.eventMode="none",this.holder.interactiveChildren=!1}reset(){for(let t=this.holder.children.length-1;t>=0;t--){const A=this.holder.children[t];m.BigPool.return(A)}}render(t){Ql(t,this.regions);const A=Object.values(Nt).reduce((o,h)=>{const l=this.regions.get(h);if(!l)return o;const B=`debugDraw${h.charAt(0).toUpperCase()}${h.slice(1)}`;return o[h]={...l,color:this.colors[h],draw:t._styles.custom[B]??!0},o},{}),{left:i,top:n}=t.computedLayout,s=t.target.getGlobalPosition(),a=m.BigPool.get(ml,{...A,target:{x:s.x+i,y:s.y+n},alpha:this.alpha,heat:{invalidationCount:t._modificationCount,draw:t._styles.custom.debugHeat!==!1},heatOnly:!t._styles.custom.debug});this.holder.addChildAt(a,0)}destroy(){this.reset(),this.holder.destroy(),this.regions.clear()}}const xl=Object.freeze(Object.defineProperty({__proto__:null,DebugRenderer:Sl},Symbol.toStringTag,{value:"Module"}));m.extensions.add(mo);const bl=async(e,t,A)=>{const i=new m.Application;await i.init({resizeTo:e,autoStart:!1,antialias:!0,...A??{}});const n=await ht(t);if(n.tag!="Canvas")throw new Error("Canvas is required");n.render(e,i);const{backgroundColor:s}=It(n.props,{backgroundColor:"black"});return i.renderer.background.color=s(),{canvasElement:n,app:i}},kl={linear:Xa,easeIn:Qi,easeInOut:Us,easeOut:Za,circIn:Os,circInOut:za,circOut:Ts,backIn:di,backInOut:tg,backOut:$a,anticipate:Ag,bounceIn:sg,bounceInOut:og,bounceOut:Ce};class Ml{constructor(t,A,i,n,s,a,o=0){this.x0=t,this.y0=A,this.x1=i,this.y1=n,this.x2=s,this.y2=a,this.focalPoint=o,this.gradient=null,this.texture=null,this.size=600,this.size=t;const h=this.size*.5;this.canvas=m.DOMAdapter.get().createCanvas(),this.canvas.width=this.size,this.canvas.height=this.size,this.ctx=this.canvas.getContext("2d"),this.ctx&&(this.gradient=this.ctx.createRadialGradient(h*(1-o),h,0,h,h,h-.5))}addColorStop(t,A){this.gradient&&this.gradient.addColorStop(t,A)}render({translate:t}={}){const{x0:A,y0:i,x1:n,y1:s,x2:a,y2:o,focalPoint:h}=this,l=this.size;if(this.ctx&&this.gradient){this.ctx.fillStyle=this.gradient,this.ctx.fillRect(0,0,l,l),this.texture=new m.Texture({source:new m.ImageSource({resource:this.canvas,addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"})});const B=new m.Matrix,r=Math.sqrt((n-A)*(n-A)+(s-i)*(s-i)),g=Math.sqrt((a-A)*(a-A)+(o-i)*(o-i)),c=Math.atan2(s-i,n-A),E=r/l,C=g/l;B.rotate(-c),B.scale(E,C),t&&B.translate(t.x,t.y),this.transform=B}return{texture:this.texture,matrix:this.transform}}}return x.ArraySubject=FA,x.Button=Uh,x.ButtonState=Bo,x.Canvas=Sg,x.Circle=eo,x.Container=KA,x.ControlsBase=he,x.ControlsDirective=as,x.DOMContainer=Lh,x.DOMElement=uo,x.DisplayObject=wt,x.Drag=Vs,x.Drop=qs,x.EVENTS=$s,x.Easing=kl,x.Ellipse=io,x.Flash=zs,x.GamepadControls=os,x.Graphics=qt,x.Howl=Ca,x.Howler=$t.Howler,x.Input=ts,x.Joystick=Oh,x.JoystickControls=rs,x.KeyboardControls=is,x.Mesh=_g,x.NineSliceSprite=Gh,x.ObjectSubject=GA,x.ParticlesEmitter=jg,x.RadialGradient=Ml,x.Rect=Ao,x.Scene=Gg,x.Scheduler=gs,x.Shake=Zs,x.Sound=Is,x.Sprite=Zi,x.Svg=Mg,x.Text=ho,x.TilingSprite=zg,x.Transition=Xs,x.Triangle=kg,x.Utils=$r,x.Video=Vg,x.Viewport=_h,x.ViewportFollow=ls,x.animatedSequence=Dg,x.animatedSignal=mi,x.bootstrapCanvas=bl,x.computed=Et,x.cond=Ba,x.createComponent=ct,x.effect=et,x.h=ht,x.isAnimatedSignal=wi,x.isArraySubject=la,x.isComputed=ce,x.isElement=yt,x.isObjectSubject=ca,x.isObservable=Gr,x.isPrimitive=si,x.isSignal=Y,x.isTrigger=PA,x.loop=ua,x.mount=Di,x.on=de,x.registerComponent=lt,x.signal=W,x.tick=Fg,x.trigger=mg,x.useDefineProps=oi,x.useProps=It,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),x}({},PIXI);
|
|
27
|
+
*/class Fi{constructor(t){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(t)}init(t){if(!t||!t.length)this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});else if(Array.isArray(t[0]))for(let A=0;A<t.length;++A){const i=t[A];let n=i[0];for(let s=1;s<i.length;++s){const a=i[s];this.segments.push({p1:n,p2:a,l:0}),n=a}}else{let A=t[0];for(let i=1;i<t.length;++i){const n=t[i];this.segments.push({p1:A,p2:n,l:0}),A=n}}for(let A=0;A<this.segments.length;++A){const{p1:i,p2:n}=this.segments[A],s=Math.sqrt((n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y));this.segments[A].l=s,this.totalLength+=s,this.countingLengths.push(this.totalLength)}}getRandPos(t){const A=Math.random()*this.totalLength;let i,n;if(this.segments.length===1)i=this.segments[0],n=A;else for(let g=0;g<this.countingLengths.length;++g)if(A<this.countingLengths[g]){i=this.segments[g],n=g===0?A:A-this.countingLengths[g-1];break}n/=i.l||1;const{p1:s,p2:a}=i;t.x=s.x+n*(a.x-s.x),t.y=s.y+n*(a.y-s.y)}}Fi.type="polygonalChain",Fi.editorConfig=null;class Gi{constructor(t){this.x=t.x,this.y=t.y,this.w=t.w,this.h=t.h}getRandPos(t){t.x=Math.random()*this.w+this.x,t.y=Math.random()*this.h+this.y}}Gi.type="rect",Gi.editorConfig=null;class Ft{constructor(t,A,i){this.value=t,this.time=A,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:ho(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:a}=i[0],g=n=new Ft(typeof s=="string"?Se(s):s,a,t.ease);if(i.length>2||i.length===2&&i[1].value!==s)for(let r=1;r<i.length;++r){const{value:l,time:I}=i[r];n.next=new Ft(typeof l=="string"?Se(l):l,I),n=n.next}return g.isStepped=!!t.isStepped,g}const A=new Ft(typeof t.start=="string"?Se(t.start):t.start,0);return t.end!==t.start&&(A.next=new Ft(typeof t.end=="string"?Se(t.end):t.end,1)),A}}let XA=v.Texture.from;const Gt=Math.PI/180;function Ot(e,t){if(!e)return;const A=Math.sin(e),i=Math.cos(e),n=t.x*i-t.y*A,s=t.x*A+t.y*i;t.x=n,t.y=s}function ve(e,t,A){return e<<16|t<<8|A}function ao(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Jg(e){const t=1/ao(e);e.x*=t,e.y*=t}function go(e,t){e.x*=t,e.y*=t}function Se(e,t){t||(t={}),e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2));let A;return e.length===8&&(A=e.substr(0,2),e=e.substr(2)),t.r=parseInt(e.substr(0,2),16),t.g=parseInt(e.substr(2,2),16),t.b=parseInt(e.substr(4,2),16),A&&(t.a=parseInt(A,16)),t}function ho(e){const t=e.length,A=1/t;return function(i){const n=t*i|0,s=(i-n*A)*t,a=e[n]||e[t-1];return a.s+s*(2*(1-s)*(a.cp-a.s)+s*(a.e-a.s))}}function Pg(e){return e||"normal"}class be{constructor(t){this.x=t.x||0,this.y=t.y||0,this.radius=t.radius,this.innerRadius=t.innerRadius||0,this.rotation=!!t.affectRotation}getRandPos(t){this.innerRadius!==this.radius?t.x=Math.random()*(this.radius-this.innerRadius)+this.innerRadius:t.x=this.radius,t.y=0;const A=Math.random()*Math.PI*2;this.rotation&&(t.rotation+=A),Ot(A,t.position),t.position.x+=this.x,t.position.y+=this.y}}be.type="torus",be.editorConfig=null;var j;(function(e){e[e.Spawn=0]="Spawn",e[e.Normal=2]="Normal",e[e.Late=5]="Late"})(j||(j={}));class Ni{constructor(t){this.order=j.Late,this.minStart=t.minStart,this.maxStart=t.maxStart,this.accel=t.accel,this.rotate=!!t.rotate,this.maxSpeed=t.maxSpeed??0}initParticles(t){let A=t;for(;A;){const i=Math.random()*(this.maxStart-this.minStart)+this.minStart;A.config.velocity?A.config.velocity.set(i,0):A.config.velocity=new v.Point(i,0),Ot(A.rotation,A.config.velocity),A=A.next}}updateParticle(t,A){const i=t.config.velocity,n=i.x,s=i.y;if(i.x+=this.accel.x*A,i.y+=this.accel.y*A,this.maxSpeed){const a=ao(i);a>this.maxSpeed&&go(i,this.maxSpeed/a)}t.x+=(n+i.x)/2*A,t.y+=(s+i.y)/2*A,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Ni.type="moveAcceleration",Ni.editorConfig=null;function Kg(e){return this.ease&&(e=this.ease(e)),(this.first.next.value-this.first.value)*e+this.first.value}function Yg(e){this.ease&&(e=this.ease(e));const t=this.first.value,A=this.first.next.value,i=(A.r-t.r)*e+t.r,n=(A.g-t.g)*e+t.g,s=(A.b-t.b)*e+t.b;return ve(i,n,s)}function Wg(e){this.ease&&(e=this.ease(e));let t=this.first,A=t.next;for(;e>A.time;)t=A,A=A.next;return e=(e-t.time)/(A.time-t.time),(A.value-t.value)*e+t.value}function jg(e){this.ease&&(e=this.ease(e));let t=this.first,A=t.next;for(;e>A.time;)t=A,A=A.next;e=(e-t.time)/(A.time-t.time);const i=t.value,n=A.value,s=(n.r-i.r)*e+i.r,a=(n.g-i.g)*e+i.g,g=(n.b-i.b)*e+i.b;return ve(s,a,g)}function Vg(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;return t.value}function qg(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;const A=t.value;return ve(A.r,A.g,A.b)}class ZA{constructor(t=!1){this.first=null,this.isColor=!!t,this.interpolate=null,this.ease=null}reset(t){this.first=t,t.next&&t.next.time>=1?this.interpolate=this.isColor?Yg:Kg:t.isStepped?this.interpolate=this.isColor?qg:Vg:this.interpolate=this.isColor?jg:Wg,this.ease=this.first.ease}}class Hi{constructor(t){this.order=j.Normal,this.list=new ZA(!1),this.list.reset(Ft.createList(t.alpha))}initParticles(t){let A=t;for(;A;)A.alpha=this.list.first.value,A=A.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}Hi.type="alpha",Hi.editorConfig=null;class Li{constructor(t){this.order=j.Normal,this.value=t.alpha}initParticles(t){let A=t;for(;A;)A.alpha=this.value,A=A.next}}Li.type="alphaStatic",Li.editorConfig=null;function lo(e){const t=[];for(let A=0;A<e.length;++A){let i=e[A];if(typeof i=="string")t.push(XA(i));else if(i instanceof v.Texture)t.push(i);else{let n=i.count||1;for(typeof i.texture=="string"?i=XA(i.texture):i=i.texture;n>0;--n)t.push(i)}}return t}class Ui{constructor(t){this.order=j.Normal,this.anims=[];for(let A=0;A<t.anims.length;++A){const i=t.anims[A],n=lo(i.textures),s=i.framerate<0?-1:i.framerate>0?i.framerate:60,a={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(a)}}initParticles(t){let A=t;for(;A;){const i=Math.floor(Math.random()*this.anims.length),n=A.config.anim=this.anims[i];A.texture=n.textures[0],A.config.animElapsed=0,n.framerate===-1?(A.config.animDuration=A.maxLife,A.config.animFramerate=n.textures.length/A.maxLife):(A.config.animDuration=n.duration,A.config.animFramerate=n.framerate),A=A.next}}updateParticle(t,A){const i=t.config,n=i.anim;i.animElapsed+=A,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const s=i.animElapsed*i.animFramerate+1e-7|0;t.texture=n.textures[s]||n.textures[n.textures.length-1]||v.Texture.EMPTY}}Ui.type="animatedRandom",Ui.editorConfig=null;class Oi{constructor(t){this.order=j.Normal;const A=t.anim,i=lo(A.textures),n=A.framerate<0?-1:A.framerate>0?A.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!A.loop:!1}}initParticles(t){let A=t;const i=this.anim;for(;A;)A.texture=i.textures[0],A.config.animElapsed=0,i.framerate===-1?(A.config.animDuration=A.maxLife,A.config.animFramerate=i.textures.length/A.maxLife):(A.config.animDuration=i.duration,A.config.animFramerate=i.framerate),A=A.next}updateParticle(t,A){const i=this.anim,n=t.config;n.animElapsed+=A,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const s=n.animElapsed*n.animFramerate+1e-7|0;t.texture=i.textures[s]||i.textures[i.textures.length-1]||v.Texture.EMPTY}}Oi.type="animatedSingle",Oi.editorConfig=null;class Ti{constructor(t){this.order=j.Normal,this.value=t.blendMode}initParticles(t){let A=t;for(;A;)A.blendMode=Pg(this.value),A=A.next}}Ti.type="blendMode",Ti.editorConfig=null;class Ji{constructor(t){this.order=j.Spawn,this.spacing=t.spacing*Gt,this.start=t.start*Gt,this.distance=t.distance}initParticles(t){let A=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*A:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,Ot(n,i.position)),i=i.next,++A}}}Ji.type="spawnBurst",Ji.editorConfig=null;class Pi{constructor(t){this.order=j.Normal,this.list=new ZA(!0),this.list.reset(Ft.createList(t.color))}initParticles(t){let A=t;const i=this.list.first.value,n=ve(i.r,i.g,i.b);for(;A;)A.tint=n,A=A.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Pi.type="color",Pi.editorConfig=null;class Ki{constructor(t){this.order=j.Normal;let A=t.color;A.charAt(0)==="#"?A=A.substr(1):A.indexOf("0x")===0&&(A=A.substr(2)),this.value=parseInt(A,16)}initParticles(t){let A=t;for(;A;)A.tint=this.value,A=A.next}}Ki.type="colorStatic",Ki.editorConfig=null;class Yi{constructor(t){this.order=j.Normal,this.index=0,this.textures=t.textures.map(A=>typeof A=="string"?XA(A):A)}initParticles(t){let A=t;for(;A;)A.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),A=A.next}}Yi.type="textureOrdered",Yi.editorConfig=null;const dA=new v.Point,co=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Xg=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(co).join("|"),"g");function Zg(e){const t=e.match(Xg);for(let A=t.length-1;A>=0;--A)co.indexOf(t[A])>=0&&(t[A]=`Math.${t[A]}`);return e=t.join(""),new Function("x",`return ${e};`)}class Wi{constructor(t){if(this.order=j.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Zg(t.path)}catch{this.path=null}else this.path=A=>A;this.list=new ZA(!1),this.list.reset(Ft.createList(t.speed)),this.minMult=t.minMult??1}initParticles(t){let A=t;for(;A;){A.config.initRotation=A.rotation,A.config.initPosition?A.config.initPosition.copyFrom(A.position):A.config.initPosition=new v.Point(A.x,A.y),A.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;A.config.speedMult=i,A=A.next}}updateParticle(t,A){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*A,dA.x=t.config.movement,dA.y=this.path(dA.x),Ot(t.config.initRotation,dA),t.position.x=t.config.initPosition.x+dA.x,t.position.y=t.config.initPosition.y+dA.y}}Wi.type="movePath",Wi.editorConfig=null;class ji{constructor(){this.order=j.Spawn}initParticles(t){}}ji.type="spawnPoint",ji.editorConfig=null;class Vi{constructor(t){this.order=j.Normal,this.textures=t.textures.map(A=>typeof A=="string"?XA(A):A)}initParticles(t){let A=t;for(;A;){const i=Math.floor(Math.random()*this.textures.length);A.texture=this.textures[i],A=A.next}}}Vi.type="textureRandom",Vi.editorConfig=null;class qi{constructor(t){this.order=j.Normal,this.minStart=t.minStart*Gt,this.maxStart=t.maxStart*Gt,this.minSpeed=t.minSpeed*Gt,this.maxSpeed=t.maxSpeed*Gt,this.accel=t.accel*Gt}initParticles(t){let A=t;for(;A;)this.minStart===this.maxStart?A.rotation+=this.maxStart:A.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,A.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,A=A.next}updateParticle(t,A){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*A,t.rotation+=(t.config.rotSpeed+i)/2*A}else t.rotation+=t.config.rotSpeed*A}}qi.type="rotation",qi.editorConfig=null;class Xi{constructor(t){this.order=j.Normal,this.min=t.min*Gt,this.max=t.max*Gt}initParticles(t){let A=t;for(;A;)this.min===this.max?A.rotation+=this.max:A.rotation+=Math.random()*(this.max-this.min)+this.min,A=A.next}}Xi.type="rotationStatic",Xi.editorConfig=null;class Zi{constructor(t){this.order=j.Late+1,this.rotation=(t.rotation||0)*Gt}initParticles(t){let A=t;for(;A;)A.rotation=this.rotation,A=A.next}}Zi.type="noRotation",Zi.editorConfig=null;class zi{constructor(t){this.order=j.Normal,this.list=new ZA(!1),this.list.reset(Ft.createList(t.scale)),this.minMult=t.minMult??1}initParticles(t){let A=t;for(;A;){const i=Math.random()*(1-this.minMult)+this.minMult;A.config.scaleMult=i,A.scale.x=A.scale.y=this.list.first.value*i,A=A.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}zi.type="scale",zi.editorConfig=null;class $i{constructor(t){this.order=j.Normal,this.min=t.min,this.max=t.max}initParticles(t){let A=t;for(;A;){const i=Math.random()*(this.max-this.min)+this.min;A.scale.x=A.scale.y=i,A=A.next}}}$i.type="scaleStatic",$i.editorConfig=null;class Dt{static registerShape(t,A){Dt.shapes[A||t.type]=t}constructor(t){this.order=j.Spawn;const A=Dt.shapes[t.type];if(!A)throw new Error(`No shape found with type '${t.type}'`);this.shape=new A(t.data)}initParticles(t){let A=t;for(;A;)this.shape.getRandPos(A),A=A.next}}Dt.type="spawnShape",Dt.editorConfig=null,Dt.shapes={},Dt.registerShape(Fi),Dt.registerShape(Gi),Dt.registerShape(be),Dt.registerShape(be,"circle");class tn{constructor(t){this.order=j.Normal,this.texture=typeof t.texture=="string"?XA(t.texture):t.texture}initParticles(t){let A=t;for(;A;)A.texture=this.texture,A=A.next}}tn.type="textureSingle",tn.editorConfig=null;class An{constructor(t){this.order=j.Late,this.list=new ZA(!1),this.list.reset(Ft.createList(t.speed)),this.minMult=t.minMult??1}initParticles(t){let A=t;for(;A;){const i=Math.random()*(1-this.minMult)+this.minMult;A.config.speedMult=i,A.config.velocity?A.config.velocity.set(this.list.first.value*i,0):A.config.velocity=new v.Point(this.list.first.value*i,0),Ot(A.rotation,A.config.velocity),A=A.next}}updateParticle(t,A){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;Jg(n),go(n,i),t.x+=n.x*A,t.y+=n.y*A}}An.type="moveSpeed",An.editorConfig=null;class en{constructor(t){this.order=j.Late,this.min=t.min,this.max=t.max}initParticles(t){let A=t;for(;A;){const i=Math.random()*(this.max-this.min)+this.min;A.config.velocity?A.config.velocity.set(i,0):A.config.velocity=new v.Point(i,0),Ot(A.rotation,A.config.velocity),A=A.next}}updateParticle(t,A){const i=t.config.velocity;t.x+=i.x*A,t.y+=i.y*A}}en.type="moveSpeedStatic",en.editorConfig=null;class nn extends v.Sprite{constructor(t){super(),this.prevChild=this.nextChild=null,this.emitter=t,this.config={},this.anchor.x=this.anchor.y=.5,this.maxLife=0,this.age=0,this.agePercent=0,this.oneOverLife=0,this.next=null,this.prev=null,this.init=this.init,this.kill=this.kill}init(t){this.maxLife=t,this.age=this.agePercent=0,this.rotation=0,this.position.x=this.position.y=0,this.scale.x=this.scale.y=1,this.tint=16777215,this.alpha=1,this.oneOverLife=1/this.maxLife,this.visible=!0}kill(){this.emitter.recycle(this)}destroy(){this.parent&&this.parent.removeChild(this),this.emitter=this.next=this.prev=null,super.destroy()}}const sn=v.Ticker.shared,nA=Symbol("Position particle per emitter position");class K{static registerBehavior(t){K.knownBehaviors[t.type]=t}constructor(t,A){this.initBehaviors=[],this.updateBehaviors=[],this.recycleBehaviors=[],this.minLifetime=0,this.maxLifetime=0,this.customEase=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=new v.Point,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new v.Point,this._prevEmitterPos=new v.Point,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=t,A&&this.init(A),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}get frequency(){return this._frequency}set frequency(t){typeof t=="number"&&t>0?this._frequency=t:this._frequency=1}get parent(){return this._parent}set parent(t){this.cleanup(),this._parent=t}init(t){if(!t)return;this.cleanup(),this._origConfig=t,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,t.ease?this.customEase=typeof t.ease=="function"?t.ease:ho(t.ease):this.customEase=null,this.particlesPerWave=1,t.particlesPerWave&&t.particlesPerWave>1&&(this.particlesPerWave=t.particlesPerWave),this.frequency=t.frequency,this.spawnChance=typeof t.spawnChance=="number"&&t.spawnChance>0?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=t.maxParticles>0?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos.set(0),t.pos?this.spawnPos.copyFrom(t.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=t.emit===void 0?!0:!!t.emit,this.autoUpdate=!!t.autoUpdate;const A=t.behaviors.map(i=>{const n=K.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);A.push(nA),A.sort((i,n)=>i===nA?n.order===j.Spawn?1:-1:n===nA?i.order===j.Spawn?-1:1:i.order-n.order),this.initBehaviors=A.slice(),this.updateBehaviors=A.filter(i=>i!==nA&&i.updateParticle),this.recycleBehaviors=A.filter(i=>i!==nA&&i.recycleParticle)}getBehavior(t){return K.knownBehaviors[t]&&this.initBehaviors.find(A=>A instanceof K.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const A=new nn(this);A.next=this._poolFirst,this._poolFirst=A}}recycle(t,A=!1){for(let i=0;i<this.recycleBehaviors.length;++i)this.recycleBehaviors[i].recycleParticle(t,!A);t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===this._activeParticlesLast&&(this._activeParticlesLast=t.prev),t===this._activeParticlesFirst&&(this._activeParticlesFirst=t.next),t.prev=null,t.next=this._poolFirst,this._poolFirst=t,t.parent&&t.parent.removeChild(t),--this.particleCount}rotate(t){if(this.rotation===t)return;const A=t-this.rotation;this.rotation=t,Ot(A,this.spawnPos),this._posChanged=!0}updateSpawnPos(t,A){this._posChanged=!0,this.spawnPos.x=t,this.spawnPos.y=A}updateOwnerPos(t,A){this._posChanged=!0,this.ownerPos.x=t,this.ownerPos.y=A}resetPositionTracking(){this._prevPosIsValid=!1}get emit(){return this._emit}set emit(t){this._emit=!!t,this._emitterLife=this.emitterLifetime}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){this._autoUpdate&&!t?sn.remove(this.update,this):!this._autoUpdate&&t&&sn.add(this.update,this),this._autoUpdate=!!t}playOnceAndDestroy(t){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=t}playOnce(t){this.emit=!0,this._completeCallback=t}update(t){if(typeof t!="number"&&(t=t.deltaTime),this._autoUpdate&&(t=sn.elapsedMS*.001),!this._parent)return;for(let a=this._activeParticlesFirst,g;a;a=g)if(g=a.next,a.age+=t,a.age>a.maxLife||a.age<0)this.recycle(a);else{let r=a.age*a.oneOverLife;this.customEase&&(this.customEase.length===4?r=this.customEase(r,0,1,1):r=this.customEase(r)),a.agePercent=r;for(let l=0;l<this.updateBehaviors.length;++l)if(this.updateBehaviors[l].updateParticle(a,t)){this.recycle(a);break}}let A,i;this._prevPosIsValid&&(A=this._prevEmitterPos.x,i=this._prevEmitterPos.y);const n=this.ownerPos.x+this.spawnPos.x,s=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=t<0?0:t;this._spawnTimer<=0;){if(this._emitterLife>=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let a,g;if(this._prevPosIsValid&&this._posChanged){const I=1+this._spawnTimer/t;a=(n-A)*I+A,g=(s-i)*I+i}else a=n,g=s;let r=null,l=null;for(let I=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),o=0;o<I;++o){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let h;if(this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=h)continue;let c;this._poolFirst?(c=this._poolFirst,this._poolFirst=this._poolFirst.next,c.next=null):c=new nn(this),c.init(h),this.addAtBack?this._parent.addChildAt(c,0):this._parent.addChild(c),r?(l.next=c,c.prev=l,l=c):l=r=c,++this.particleCount}if(r){this._activeParticlesLast?(this._activeParticlesLast.next=r,r.prev=this._activeParticlesLast,this._activeParticlesLast=l):(this._activeParticlesFirst=r,this._activeParticlesLast=l);for(let I=0;I<this.initBehaviors.length;++I){const o=this.initBehaviors[I];if(o===nA)for(let h=r,c;h;h=c){c=h.next,this.rotation!==0&&(Ot(this.rotation,h.position),h.rotation+=this.rotation),h.position.x+=a,h.position.y+=g,h.age+=-this._spawnTimer;let E=h.age*h.oneOverLife;this.customEase&&(this.customEase.length===4?E=this.customEase(E,0,1,1):E=this.customEase(E)),h.agePercent=E}else o.initParticles(r)}for(let I=r,o;I;I=o){o=I.next;for(let h=0;h<this.updateBehaviors.length;++h)if(this.updateBehaviors[h].updateParticle(I,-this._spawnTimer)){this.recycle(I);break}}}this._spawnTimer+=this._frequency}if(this._posChanged&&(this._prevEmitterPos.x=n,this._prevEmitterPos.y=s,this._prevPosIsValid=!0,this._posChanged=!1),!this._emit&&!this._activeParticlesFirst){if(this._completeCallback){const a=this._completeCallback;this._completeCallback=null,a()}this._destroyWhenComplete&&this.destroy()}}emitNow(){const t=this.ownerPos.x+this.spawnPos.x,A=this.ownerPos.y+this.spawnPos.y;let i=null,n=null;for(let s=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),a=0;a<s;++a){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let g;this._poolFirst?(g=this._poolFirst,this._poolFirst=this._poolFirst.next,g.next=null):g=new nn(this);let r;this.minLifetime===this.maxLifetime?r=this.minLifetime:r=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,g.init(r),this.addAtBack?this._parent.addChildAt(g,0):this._parent.addChild(g),i?(n.next=g,g.prev=n,n=g):n=i=g,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let s=0;s<this.initBehaviors.length;++s){const a=this.initBehaviors[s];if(a===nA)for(let g=i,r;g;g=r)r=g.next,this.rotation!==0&&(Ot(this.rotation,g.position),g.rotation+=this.rotation),g.position.x+=t,g.position.y+=A;else a.initParticles(i)}}}cleanup(){let t,A;for(t=this._activeParticlesFirst;t;t=A)A=t.next,this.recycle(t,!0);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0}get destroyed(){return!(this._parent&&this.initBehaviors.length)}destroy(){this.autoUpdate=!1,this.cleanup();let t;for(let A=this._poolFirst;A;A=t)t=A.next,A.destroy();this._poolFirst=this._parent=this.spawnPos=this.ownerPos=this.customEase=this._completeCallback=null,this.initBehaviors.length=this.updateBehaviors.length=this.recycleBehaviors.length=0}}K.knownBehaviors={},K.registerBehavior(Ni),K.registerBehavior(Hi),K.registerBehavior(Li),K.registerBehavior(Ui),K.registerBehavior(Oi),K.registerBehavior(Ti),K.registerBehavior(Ji),K.registerBehavior(Pi),K.registerBehavior(Ki),K.registerBehavior(Yi),K.registerBehavior(Wi),K.registerBehavior(ji),K.registerBehavior(Vi),K.registerBehavior(qi),K.registerBehavior(Xi),K.registerBehavior(Zi),K.registerBehavior(zi),K.registerBehavior($i),K.registerBehavior(Dt),K.registerBehavior(tn),K.registerBehavior(An),K.registerBehavior(en);class zg extends Ri{constructor(){super(...arguments),this.elapsed=Date.now()}async onMount(t){await super.onMount(t);const{props:A}=t,i=A.context.tick;this.emitter=new K(this,A.config),this.subscriptionTick=i.observable.subscribe(n=>{if(!this.emitter)return;const s=Date.now();this.emitter.update((s-this.elapsed)*.001),this.elapsed=s})}onUpdate(t){}async onDestroy(t,A){const i=async()=>{var n;(n=this.emitter)==null||n.destroy(),this.emitter=null,this.subscriptionTick.unsubscribe(),A()};await super.onDestroy(t,i)}}ht("ParticlesEmitter",zg);function $g(e){return ut("ParticlesEmitter",e)}const Io=console.log;class uo extends mt(v.Sprite){constructor(){super(...arguments),this.currentAnimation=null,this.time=0,this.frameIndex=0,this.animations=new Map,this.subscriptionSheet=[],this.sheetParams={},this.sheetCurrentAnimation="stand",this.app=null,this.globalLoader=null,this.trackedAssetIds=new Set,this.currentAnimationContainer=null}get renderer(){var t;return(t=this.app)==null?void 0:t.renderer}async detectImageDimensions(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error(`Invalid image path provided to detectImageDimensions: ${t}`);let A=null;this.globalLoader&&(A=this.globalLoader.registerAsset(t),this.trackedAssetIds.add(A));const i=await v.Assets.load(t,n=>{this.globalLoader&&A&&this.globalLoader.updateProgress(A,n)});return this.globalLoader&&A&&this.globalLoader.completeAsset(A),{width:i.width,height:i.height}}async createTextures(t){let{width:A,height:i,framesHeight:n,framesWidth:s,image:a,offset:g}=t;if(!a||typeof a!="string"||a.trim()==="")return console.warn("Invalid image path provided to createTextures:",a),[];let r=null;this.globalLoader&&(r=this.globalLoader.registerAsset(a),this.trackedAssetIds.add(r));const l=await v.Assets.load(a,f=>{this.globalLoader&&r&&this.globalLoader.updateProgress(r,f)});this.globalLoader&&r&&this.globalLoader.completeAsset(r),(!A||A<=0)&&(A=l.width,t.width=A),(!i||i<=0)&&(i=l.height,t.height=i);const I=t.spriteWidth,o=t.spriteHeight,h=[],c=g&&g.x||0,E=g&&g.y||0;for(let f=0;f<n;f++){h[f]=[];for(let Q=0;Q<s;Q++){const C=Q*I+c,y=f*o+E;if(y>i)throw Io(`Warning, there is a problem with the height of the "${this.id}" spritesheet. When cutting into frames, the frame exceeds the height of the image.`);if(C>A)throw Io(`Warning, there is a problem with the width of the "${this.id}" spritesheet. When cutting into frames, the frame exceeds the width of the image.`);h[f].push(new v.Texture({source:l.source,frame:new v.Rectangle(C,y,I,o)}))}}return h}async createAnimations(){const{textures:t}=this.spritesheet;if(t)for(let A in t){const s={...["width","height","framesHeight","framesWidth","rectWidth","rectHeight","offset","image","sound"].reduce((f,Q)=>({...f,[Q]:this.spritesheet[Q]}),{}),...t[A]},{rectWidth:a,width:g=0,framesWidth:r=1,rectHeight:l,height:I=0,framesHeight:o=1,image:h}=s;let c=g,E=I;if(h&&(!c||c<=0||!E||E<=0)){const f=await this.detectImageDimensions(h);(!c||c<=0)&&(c=f.width,s.width=c),(!E||E<=0)&&(E=f.height,s.height=E)}s.spriteWidth=a||c/r,s.spriteHeight=l||E/o,this.animations.set(A,{frames:await this.createTextures(s),name:A,animations:t[A].animations,params:[],data:s,sprites:[]})}}async onMount(t){var r,l;this["#element"]=t;const{props:A,propObservables:i}=t,n=A.context.tick,s=A.sheet??{},a=((r=A.sheet)==null?void 0:r.definition)??{};if(this.app=A.context.app(),this.globalLoader=((l=A.context)==null?void 0:l.globalLoader)||null,s!=null&&s.onFinish&&(this.onFinish=s.onFinish),this.subscriptionTick=n.observable.subscribe(I=>{this.destroyed||this.update(I)}),a&&(this.spritesheet=a.value??a,await this.createAnimations()),s.params)for(let I in i==null?void 0:i.sheet.params){const o=i==null?void 0:i.sheet.params[I];T(o)?this.subscriptionSheet.push(o.observable.subscribe(h=>{this.animations.size!=0&&this.play(this.sheetCurrentAnimation,[{[I]:h}])})):this.play(this.sheetCurrentAnimation,[{[I]:o}])}const g=Ct(()=>{const{x:I,y:o}=i??{};if(!I||!o)return!1;const h=I,c=o,E=QA(h)&&h.animatedState().current!==h.animatedState().end,f=QA(c)&&c.animatedState().current!==c.animatedState().end;return E||f});it(()=>{const I=g();this.isMounted&&(I?this.sheetCurrentAnimation="walk":this.sheetCurrentAnimation="stand",this.spritesheet&&this.has(this.sheetCurrentAnimation)&&this.play(this.sheetCurrentAnimation,[this.sheetParams]))}),super.onMount(t)}async onUpdate(t){var s,a,g,r;if(this.destroyed)return;super.onUpdate(t),!this.globalLoader&&((s=t.context)!=null&&s.globalLoader)&&(this.globalLoader=t.context.globalLoader);const A=async l=>{var c;if(!l||typeof l!="string"||l.trim()==="")return console.warn("Invalid image path provided to setTexture:",l),null;let I=null;this.globalLoader&&(I=this.globalLoader.registerAsset(l),this.trackedAssetIds.add(I));const o=(c=this.fullProps.loader)==null?void 0:c.onProgress,h=await v.Assets.load(l,E=>{var f;if(this.globalLoader&&I&&this.globalLoader.updateProgress(I,E),o&&o(E),E==1){this.globalLoader&&I&&this.globalLoader.completeAsset(I);const Q=(f=this.fullProps.loader)==null?void 0:f.onComplete;Q&&setTimeout(()=>{Q(h)})}});return h},i=t.sheet,n=((a=t.sheet)==null?void 0:a.definition)??{};if((n==null?void 0:n.type)==="reset"&&(this.spritesheet=n.value??n,await this.resetAnimations()),i!=null&&i.params&&(this.sheetParams=i==null?void 0:i.params),i!=null&&i.playing&&this.isMounted&&this.spritesheet&&this.animations.size>0&&(this.sheetCurrentAnimation=i==null?void 0:i.playing,this.play(this.sheetCurrentAnimation,[this.sheetParams])),t.hitbox&&(this.hitbox=t.hitbox.value??t.hitbox),t.scaleMode)this.baseTexture.scaleMode=t.scaleMode;else if(t.image&&this.fullProps.rectangle===void 0){const l=await A(this.fullProps.image);l&&(this.texture=l)}else t.texture&&(Qt(t.texture)?(t.texture.componentInstance.subjectInit.subscribe(),this.texture=(g=this.renderer)==null?void 0:g.generateTexture(t.texture.componentInstance)):this.texture=t.texture);if(t.rectangle!==void 0){const{x:l,y:I,width:o,height:h}=((r=t.rectangle)==null?void 0:r.value)??t.rectangle,c=await A(this.fullProps.image);c&&(this.texture=new v.Texture({source:c.source,frame:new v.Rectangle(l,I,o,h)}))}}async onDestroy(t,A){const i=async()=>{this.globalLoader&&(this.trackedAssetIds.forEach(n=>{this.globalLoader.removeAsset(n)}),this.trackedAssetIds.clear()),this.subscriptionSheet.forEach(n=>n.unsubscribe()),this.subscriptionTick.unsubscribe(),this.currentAnimationContainer&&this.parent instanceof v.Container&&this.parent.removeChild(this.currentAnimationContainer),A&&A()};await super.onDestroy(t,i)}has(t){return this.animations.has(t)}get(t){return this.animations.get(t)}isPlaying(t){return t?this.currentAnimation==null?!1:this.currentAnimation.name==t:!!this.currentAnimation}stop(){this.currentAnimation=null}play(t,A=[]){var r;const i=(r=this.currentAnimation)==null?void 0:r.params;if(this.isPlaying(t)&&ue(A,i||[]))return;const n=this.get(t);if(!n)throw new Error(`Impossible to play the ${t} animation because it doesn't exist on the "${this.id}" spritesheet`);const s=structuredClone(A);this.removeChildren(),n.sprites=[],this.currentAnimation=n,this.currentAnimation.params=s,this.time=0,this.frameIndex=0;let a=n.animations;a=es(a)?a(...s):a,this.currentAnimationContainer=new v.Container;for(let l of a){const I=new v.Sprite;for(let o of l)this.currentAnimation.sprites.push(o);this.currentAnimationContainer.addChild(I)}const g=this.currentAnimation.data.sound;g&&new iA.Howl({src:g,autoplay:!0,loop:!1,volume:1}),this.update({deltaRatio:1})}async resetAnimations(){this.stop(),this.animations.clear(),this.currentAnimation=null,this.currentAnimationContainer=null,this.time=0,this.frameIndex=0,this.removeChildren(),this.spritesheet&&(await this.createAnimations(),this.play(this.sheetCurrentAnimation,[this.sheetParams]))}update({deltaRatio:t}){const A=this.getElement();if(A&&_t(A)||!this.isPlaying()||!this.currentAnimation||!this.currentAnimationContainer)return;const i=this,{frames:n,sprites:s,data:a}=this.currentAnimation;let g=s[this.frameIndex];const r=s[this.frameIndex+1];for(let l of this.currentAnimationContainer.children){let I=function(Q,C){const D=o(C||Q);D!==void 0&&(i[Q]=D)};if(!g||g.frameY==null||g.frameX==null)continue;this.texture=n[g.frameY][g.frameX];const o=Q=>g[Q]??a[Q]??this.spritesheet[Q],h=Q=>{const C=o(Q);C&&this[Q].set(...C)};this.applyTransform&&(g={...g,...this.applyTransform(g,a,this.spritesheet)});const c=o("spriteRealSize"),E=typeof c=="number"?c:c==null?void 0:c.height;typeof c=="number"||c==null||c.width;const f=()=>{if(E&&this.hitbox){const{spriteWidth:Q,spriteHeight:C}=a,y=(Q-this.hitbox.w)/2/Q,D=(C-E)/2,m=(C-this.hitbox.h-D)/C;this.anchor.set(y,m)}};g.sound,f(),h("anchor"),h("scale"),h("skew"),h("pivot"),I("alpha","opacity"),I("x"),I("y"),I("angle"),I("rotation"),I("visible")}if(!r){this.time=0,this.frameIndex=0,this.onFinish&&s.length>1&&this.onFinish();return}this.time+=t??1,this.time>=r.time&&this.frameIndex++}}ht("Sprite",uo);const on=e=>(ht("Sprite",uo),ut("Sprite",e));function th(e){const t={audioprocess:null,canplay:null,canplaythrough:null,complete:null,durationchange:null,emptied:null,ended:null,loadeddata:null,loadedmetadata:null,pause:null,play:null,playing:null,progress:null,ratechange:null,seeked:null,seeking:null,stalled:null,suspend:null,timeupdate:null,volumechange:null,waiting:null},A=W(null),i=ki(e),{play:n,loop:s,muted:a}=i({play:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}});return it(()=>{const g=A(),r=n();g&&r!==void 0&&(r?g.play():g.pause()),g&&s()&&(g.loop=s()),g&&a()&&(g.muted=a())}),_i(()=>()=>{for(let g in t)t[g]&&A().removeEventListener(g,t[g])}),ct(on,{...e,image:e.src,loader:{onComplete:g=>{var l;const r=g.source.resource;A.set(r),(l=e==null?void 0:e.loader)!=null&&l.onComplete&&e.loader.onComplete(g);for(let I in t)if(e[I]){const o=h=>{e[I](h)};t[I]=o,r.addEventListener(I,o)}}}})}class Ah extends mt(v.Text){constructor(){super(...arguments),this.fullText="",this.currentIndex=0,this.typewriterSpeed=1,this._wordWrapWidth=0,this.typewriterOptions={},this.lastSoundTime=0,this.soundDuration=0}async onMount(t,A){const{props:i}=t;await super.onMount(t,A);const n=i.context.tick;i.text&&i.typewriter&&(this.fullText=i.text,this.text="",this.currentIndex=0,i.typewriter&&(this.typewriterOptions=i.typewriter,this.typewriterOptions.skip&&VA(this.typewriterOptions.skip)&&De(this.typewriterOptions.skip,()=>{this.skipTypewriter()}),this.typewriterOptions.sound&&this.initializeTypewriterSound()),this.updateLayout()),this.subscriptionTick=n.observable.subscribe(()=>{i.typewriter&&this.typewriterEffect()})}onUpdate(t){if(super.onUpdate(t),t.typewriter&&t.typewriter&&(this.typewriterOptions=t.typewriter,t.typewriter.sound&&this.initializeTypewriterSound()),t.text!==void 0&&(this.text=""+t.text),t.text!==void 0&&t.text!==this.fullText&&this.fullProps.typewriter&&(this.text="",this.currentIndex=0,this.fullText=t.text,this.updateLayout()),t.style){for(const A in t.style)this.style[A]=t.style[A];t.style.wordWrapWidth&&(this._wordWrapWidth=t.style.wordWrapWidth)}t.color&&(this.style.fill=t.color),t.size&&(this.style.fontSize=t.size),t.fontFamily&&(this.style.fontFamily=t.fontFamily),this.updateLayout()}get onCompleteCallback(){return this.typewriterOptions.onComplete}initializeTypewriterSound(){var t;(t=this.typewriterOptions.sound)!=null&&t.src&&(this.typewriterSound=new iA.Howl({src:[this.typewriterOptions.sound.src],volume:this.typewriterOptions.sound.volume??.5,rate:this.typewriterOptions.sound.rate??1,preload:!0,onload:()=>{var A;if(this.typewriterSound){const i=this.typewriterSound.duration(),n=((A=this.typewriterOptions.sound)==null?void 0:A.rate)??1;this.soundDuration=i/n*1e3}}}))}playTypewriterSound(t){!this.typewriterSound||!this.typewriterOptions.sound||this.soundDuration>0&&t-this.lastSoundTime<this.soundDuration||(this.typewriterSound.play(),this.lastSoundTime=t)}updateLayout(){this._wordWrapWidth?this.setWidth(this._wordWrapWidth):this.setWidth(this.width),this.setHeight(this.height)}typewriterEffect(){if(this.currentIndex<this.fullText.length){const t=Math.min(this.currentIndex+(this.typewriterOptions.speed??1),this.fullText.length);this.text=this.fullText.slice(0,t),this.currentIndex=t,this.typewriterOptions.sound&&this.playTypewriterSound(Date.now()),this.updateLayout(),this.currentIndex===this.fullText.length&&this.onCompleteCallback&&this.onCompleteCallback()}}skipTypewriter(){this.skipSignal&&this.skipSignal(),this.text=this.fullText,this.currentIndex=this.fullText.length,this.updateLayout()}async onDestroy(t,A){const i=async()=>{this.subscriptionTick&&this.subscriptionTick.unsubscribe(),this.typewriterSound&&(this.typewriterSound.stop(),this.typewriterSound.unload(),this.typewriterSound=void 0),A&&A()};await super.onDestroy(t,i)}}ht("Text",Ah);function Bo(e){return ut("Text",e)}class eh extends mt(v.TilingSprite){onUpdate(t){super.onUpdate(t),t.image&&(this.texture=v.Texture.from(t.image)),t.tileScale&&this.tileScale.set(t.tileScale.x,t.tileScale.y),t.tilePosition&&this.tilePosition.set(t.tilePosition.x,t.tilePosition.y),t.width!==void 0&&(this.width=t.width),t.height!==void 0&&(this.height=t.height)}}ht("TilingSprite",eh);function ih(e){return ut("TilingSprite",e)}var nh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo={exports:{}};(function(e,t){(function(){var A,i;i=function(n){return e.exports=n},A={linear:function(n,s,a,g){return a*n/g+s},easeInQuad:function(n,s,a,g){return a*(n/=g)*n+s},easeOutQuad:function(n,s,a,g){return-a*(n/=g)*(n-2)+s},easeInOutQuad:function(n,s,a,g){return(n/=g/2)<1?a/2*n*n+s:-a/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,a,g){return a*(n/=g)*n*n+s},easeOutCubic:function(n,s,a,g){return a*((n=n/g-1)*n*n+1)+s},easeInOutCubic:function(n,s,a,g){return(n/=g/2)<1?a/2*n*n*n+s:a/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,a,g){return a*(n/=g)*n*n*n+s},easeOutQuart:function(n,s,a,g){return-a*((n=n/g-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,a,g){return(n/=g/2)<1?a/2*n*n*n*n+s:-a/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,a,g){return a*(n/=g)*n*n*n*n+s},easeOutQuint:function(n,s,a,g){return a*((n=n/g-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,a,g){return(n/=g/2)<1?a/2*n*n*n*n*n+s:a/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,a,g){return-a*Math.cos(n/g*(Math.PI/2))+a+s},easeOutSine:function(n,s,a,g){return a*Math.sin(n/g*(Math.PI/2))+s},easeInOutSine:function(n,s,a,g){return-a/2*(Math.cos(Math.PI*n/g)-1)+s},easeInExpo:function(n,s,a,g){return n===0?s:a*Math.pow(2,10*(n/g-1))+s},easeOutExpo:function(n,s,a,g){return n===g?s+a:a*(-Math.pow(2,-10*n/g)+1)+s},easeInOutExpo:function(n,s,a,g){return(n/=g/2)<1?a/2*Math.pow(2,10*(n-1))+s:a/2*(-Math.pow(2,-10*--n)+2)+s},easeInCirc:function(n,s,a,g){return-a*(Math.sqrt(1-(n/=g)*n)-1)+s},easeOutCirc:function(n,s,a,g){return a*Math.sqrt(1-(n=n/g-1)*n)+s},easeInOutCirc:function(n,s,a,g){return(n/=g/2)<1?-a/2*(Math.sqrt(1-n*n)-1)+s:a/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,a,g){var r,l,I;return I=1.70158,l=0,r=a,n===0||(n/=g),l||(l=g*.3),r<Math.abs(a)?(r=a,I=l/4):I=l/(2*Math.PI)*Math.asin(a/r),-(r*Math.pow(2,10*(n-=1))*Math.sin((n*g-I)*(2*Math.PI)/l))+s},easeOutElastic:function(n,s,a,g){var r,l,I;return I=1.70158,l=0,r=a,n===0||(n/=g),l||(l=g*.3),r<Math.abs(a)?(r=a,I=l/4):I=l/(2*Math.PI)*Math.asin(a/r),r*Math.pow(2,-10*n)*Math.sin((n*g-I)*(2*Math.PI)/l)+a+s},easeInOutElastic:function(n,s,a,g){var r,l,I;return I=1.70158,l=0,r=a,n===0||(n/=g/2),l||(l=g*.44999999999999996),r<Math.abs(a)?(r=a,I=l/4):I=l/(2*Math.PI)*Math.asin(a/r),n<1?-.5*(r*Math.pow(2,10*(n-=1))*Math.sin((n*g-I)*(2*Math.PI)/l))+s:r*Math.pow(2,-10*(n-=1))*Math.sin((n*g-I)*(2*Math.PI)/l)*.5+a+s},easeInBack:function(n,s,a,g,r){return r===void 0&&(r=1.70158),a*(n/=g)*n*((r+1)*n-r)+s},easeOutBack:function(n,s,a,g,r){return r===void 0&&(r=1.70158),a*((n=n/g-1)*n*((r+1)*n+r)+1)+s},easeInOutBack:function(n,s,a,g,r){return r===void 0&&(r=1.70158),(n/=g/2)<1?a/2*(n*n*(((r*=1.525)+1)*n-r))+s:a/2*((n-=2)*n*(((r*=1.525)+1)*n+r)+2)+s},easeInBounce:function(n,s,a,g){var r;return r=A.easeOutBounce(g-n,0,a,g),a-r+s},easeOutBounce:function(n,s,a,g){return(n/=g)<.36363636363636365?a*(7.5625*n*n)+s:n<.7272727272727273?a*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?a*(7.5625*(n-=.8181818181818182)*n+.9375)+s:a*(7.5625*(n-=.9545454545454546)*n+.984375)+s},easeInOutBounce:function(n,s,a,g){var r;return n<g/2?(r=A.easeInBounce(n*2,0,a,g),r*.5+s):(r=A.easeOutBounce(n*2-g,0,a,g),r*.5+a*.5+s)}},i(A)}).call(nh)})(Eo);var oh=Eo.exports;const fo=sh(oh);function xe(e,t){if(e){if(typeof e=="function")return e;if(typeof e=="string")return fo[e]}else return fo[t]}class rh{constructor(t){this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.eventMode="static",this.viewport.forceHitArea||(this.viewport.hitArea=new v.Rectangle(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){var t;(t=this.viewport.options.events.domElement)==null||t.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.visible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const A=this.viewport.plugins.get("decelerate",!0),i=this.viewport.plugins.get("bounce",!0);(!A||!A.isActive())&&(!i||!i.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.visible)return;const A=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const i=t.global.x-this.last.x,n=t.global.y-this.last.y;(this.checkThreshold(i)||this.checkThreshold(n))&&(this.clickedAvailable=!1)}A&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.visible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const A=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),A&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const A=new v.Point;return this.viewport.options.events.mapPositionToPoint(A,t.clientX,t.clientY),A}handleWheel(t){if(this.viewport.pause||!this.viewport.visible)return;const A=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=A.x&&A.x<=this.viewport.right&&this.viewport.top<=A.y&&A.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const A of this.touches)if(A.id===t)return A;return null}remove(t){for(let A=0;A<this.touches.length;A++)if(this.touches[A].id===t){this.touches.splice(A,1);return}}count(){return(this.isMouseDown?1:0)+this.touches.length}}const zA=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class ah{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,A,i=zA.length){const n=this.plugins[t];n&&n.destroy(),this.plugins[t]=A;const s=zA.indexOf(t);s!==-1&&zA.splice(s,1),zA.splice(i,0,t),this.sort()}get(t,A){var i;return A&&(i=this.plugins[t])!=null&&i.paused?null:this.plugins[t]}update(t){for(const A of this.list)A.update(t)}resize(){for(const t of this.list)t.resize()}reset(){for(const t of this.list)t.reset()}removeAll(){this.list.forEach(t=>{t.destroy()}),this.plugins={},this.sort()}remove(t){var A;this.plugins[t]&&((A=this.plugins[t])==null||A.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var A;(A=this.plugins[t])==null||A.pause()}resume(t){var A;(A=this.plugins[t])==null||A.resume()}sort(){this.list=[];for(const t of zA)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let A=!1;for(const i of this.list)i.down(t)&&(A=!0);return A}move(t){let A=!1;for(const i of this.viewport.plugins.list)i.move(t)&&(A=!0);return A}up(t){let A=!1;for(const i of this.list)i.up(t)&&(A=!0);return A}wheel(t){let A=!1;for(const i of this.list)i.wheel(t)&&(A=!0);return A}}class dt{constructor(t){this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}const gh={removeOnInterrupt:!1,ease:"linear",time:1e3};class hh extends dt{constructor(t,A={}){super(t),this.startWidth=null,this.startHeight=null,this.deltaWidth=null,this.deltaHeight=null,this.width=null,this.height=null,this.time=0,this.options=Object.assign({},gh,A),this.options.ease=xe(this.options.ease),this.setupPosition(),this.setupZoom(),this.time=0}setupPosition(){typeof this.options.position<"u"?(this.startX=this.parent.center.x,this.startY=this.parent.center.y,this.deltaX=this.options.position.x-this.parent.center.x,this.deltaY=this.options.position.y-this.parent.center.y,this.keepCenter=!1):this.keepCenter=!0}setupZoom(){this.width=null,this.height=null,typeof this.options.scale<"u"?this.width=this.parent.screenWidth/this.options.scale:typeof this.options.scaleX<"u"||typeof this.options.scaleY<"u"?(typeof this.options.scaleX<"u"&&(this.width=this.parent.screenWidth/this.options.scaleX),typeof this.options.scaleY<"u"&&(this.height=this.parent.screenHeight/this.options.scaleY)):(typeof this.options.width<"u"&&(this.width=this.options.width),typeof this.options.height<"u"&&(this.height=this.options.height)),this.width!==null&&(this.startWidth=this.parent.screenWidthInWorldPixels,this.deltaWidth=this.width-this.startWidth),this.height!==null&&(this.startHeight=this.parent.screenHeightInWorldPixels,this.deltaHeight=this.height-this.startHeight)}down(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("animate"),!1}complete(){this.parent.plugins.remove("animate"),this.width!==null&&this.parent.fitWidth(this.width,this.keepCenter,this.height===null),this.height!==null&&this.parent.fitHeight(this.height,this.keepCenter,this.width===null),!this.keepCenter&&this.options.position&&this.parent.moveCenter(this.options.position),this.parent.emit("animate-end",this.parent),this.options.callbackOnComplete&&this.options.callbackOnComplete(this.parent)}update(t){if(this.paused)return;this.time+=t;const A=new v.Point(this.parent.scale.x,this.parent.scale.y);if(this.time>=this.options.time){const i=this.parent.width,n=this.parent.height;this.complete(),(i!==this.parent.width||n!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:A,type:"animate"})}else{const i=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const n=this.startWidth,s=this.deltaWidth;this.parent.fitWidth(n+s*i,this.keepCenter,this.height===null)}if(this.height!==null){const n=this.startHeight,s=this.deltaHeight;this.parent.fitHeight(n+s*i,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const n=this.startX,s=this.startY,a=this.deltaX,g=this.deltaY,r=new v.Point(this.parent.x,this.parent.y);this.parent.moveCenter(n+a*i,s+g*i),this.parent.emit("moved",{viewport:this.parent,original:r,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:A,type:"animate"})}}}const lh={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class ch extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},lh,A),this.ease=xe(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const i=this.options.underflow.toLowerCase();i==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=i.indexOf("left")!==-1?-1:i.indexOf("right")!==-1?1:0,this.underflowY=i.indexOf("top")!==-1?-1:i.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const A=this.toX;A.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),A.time>=this.options.time?(this.parent.x=A.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(A.time,A.start,A.delta,this.options.time)}if(this.toY){const A=this.toY;A.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),A.time>=this.options.time?(this.parent.y=A.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(A.time,A.start,A.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const A=typeof t.x>"u"?0:t.x,i=typeof t.y>"u"?0:t.y,n=typeof t.width>"u"?this.parent.worldWidth:t.width,s=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.left<A,right:this.parent.right>n,top:this.parent.top<i,bottom:this.parent.bottom>s,topLeft:new v.Point(A*this.parent.scale.x,i*this.parent.scale.y),bottomRight:new v.Point(n*this.parent.scale.x-this.parent.screenWidth,s*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new v.Point(0,0),bottomRight:new v.Point(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,A;if(this.paused)return;let i,n=this.parent.plugins.get("decelerate",!0);n&&(n.x||n.y)&&(n.x&&n.percentChangeX===((t=n.options)==null?void 0:t.friction)||n.y&&n.percentChangeY===((A=n.options)==null?void 0:A.friction))&&(i=this.oob(),(i.left&&this.left||i.right&&this.right)&&(n.percentChangeX=this.options.friction),(i.top&&this.top||i.bottom&&this.bottom)&&(n.percentChangeY=this.options.friction));const s=this.parent.plugins.get("drag",!0)||{},a=this.parent.plugins.get("pinch",!0)||{};if(n=n||{},!(s!=null&&s.active)&&!(a!=null&&a.active)&&(!this.toX||!this.toY)&&(!n.x||!n.y)){i=i||this.oob();const g=i.topLeft,r=i.bottomRight;if(!this.toX&&!n.x){let l=null;i.left&&this.left?l=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-g.x:i.right&&this.right&&(l=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-r.x),l!==null&&this.parent.x!==l&&(this.toX={time:0,start:this.parent.x,delta:l-this.parent.x,end:l},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!n.y){let l=null;i.top&&this.top?l=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-g.y:i.bottom&&this.bottom&&(l=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-r.y),l!==null&&this.parent.y!==l&&(this.toY={time:0,start:this.parent.y,delta:l-this.parent.y,end:l},this.parent.emit("bounce-y-start",this.parent))}}}reset(){this.toX=this.toY=null,this.bounce()}}const Ih={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class uh extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},Ih,A),this.options.direction&&(this.options.left=this.options.direction==="x"||this.options.direction==="all"?!0:null,this.options.right=this.options.direction==="x"||this.options.direction==="all"?!0:null,this.options.top=this.options.direction==="y"||this.options.direction==="all"?!0:null,this.options.bottom=this.options.direction==="y"||this.options.direction==="all"?!0:null),this.parseUnderflow(),this.last={x:null,y:null,scaleX:null,scaleY:null},this.update()}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="none"?this.noUnderflow=!0:t==="center"?(this.underflowX=this.underflowY=0,this.noUnderflow=!1):(this.underflowX=t.indexOf("left")!==-1?-1:t.indexOf("right")!==-1?1:0,this.underflowY=t.indexOf("top")!==-1?-1:t.indexOf("bottom")!==-1?1:0,this.noUnderflow=!1)}move(){return this.update(),!1}update(){if(this.paused||this.parent.x===this.last.x&&this.parent.y===this.last.y&&this.parent.scale.x===this.last.scaleX&&this.parent.scale.y===this.last.scaleY)return;const t=new v.Point(this.parent.x,this.parent.y),A=this.parent.plugins.decelerate||{};if(this.options.left!==null||this.options.right!==null){let i=!1;if(!this.noUnderflow&&this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x!==0&&(this.parent.x=0,i=!0);break;case 1:this.parent.x!==this.parent.screenWidth-this.parent.screenWorldWidth&&(this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth,i=!0);break;default:this.parent.x!==(this.parent.screenWidth-this.parent.screenWorldWidth)/2&&(this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2,i=!0)}else this.options.left!==null&&this.parent.left<(this.options.left===!0?0:this.options.left)&&(this.parent.x=-(this.options.left===!0?0:this.options.left)*this.parent.scale.x,A.x=0,i=!0),this.options.right!==null&&this.parent.right>(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,A.x=0,i=!0);i&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let i=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y!==0&&(this.parent.y=0,i=!0);break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,i=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,i=!0)}else this.options.top!==null&&this.parent.top<(this.options.top===!0?0:this.options.top)&&(this.parent.y=-(this.options.top===!0?0:this.options.top)*this.parent.scale.y,A.y=0,i=!0),this.options.bottom!==null&&this.parent.bottom>(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,A.y=0,i=!0);i&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}}const Bh={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class Eh extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},Bh,A),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&t<this.options.minWidth){const i=this.parent.scale.x;this.parent.fitWidth(this.options.minWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/i,t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxWidth!==null&&t>this.options.maxWidth){const i=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/i,t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&A<this.options.minHeight){const i=this.parent.scale.y;this.parent.fitHeight(this.options.minHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/i,t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxHeight!==null&&A>this.options.maxHeight){const i=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/i,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},A={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const s=this.options.minScale;t.x=typeof s.x>"u"?null:s.x,t.y=typeof s.y>"u"?null:s.y}if(typeof this.options.maxScale=="number")A.x=this.options.maxScale,A.y=this.options.maxScale;else if(this.options.maxScale!==null){const s=this.options.maxScale;A.x=typeof s.x>"u"?null:s.x,A.y=typeof s.y>"u"?null:s.y}let i=this.parent.scale.x,n=this.parent.scale.y;t.x!==null&&i<t.x&&(i=t.x),A.x!==null&&i>A.x&&(i=A.x),t.y!==null&&n<t.y&&(n=t.y),A.y!==null&&n>A.y&&(n=A.y),(i!==this.parent.scale.x||n!==this.parent.scale.y)&&(this.parent.scale.set(i,n),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}}const fh={friction:.98,bounce:.8,minSpeed:.01},Zt=16;class Ch extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},fh,A),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",i=>this.handleMoved(i))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const A=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?A.x===t.original.x&&(A.x=this.parent.x):t.type==="clamp-y"&&t.original&&A.y===t.original.y&&(A.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const A of this.saved)if(A.time>=t-100){const i=t-A.time;this.x=(this.parent.x-A.x)/i,this.y=(this.parent.y-A.y)/i,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const A=this.x||this.y,i=this.timeSinceRelease,n=this.timeSinceRelease+t;if(this.x){const s=this.percentChangeX,a=Math.log(s);this.parent.x+=this.x*Zt/a*(Math.pow(s,n/Zt)-Math.pow(s,i/Zt)),this.x*=Math.pow(this.percentChangeX,t/Zt)}if(this.y){const s=this.percentChangeY,a=Math.log(s);this.parent.y+=this.y*Zt/a*(Math.pow(s,n/Zt)-Math.pow(s,i/Zt)),this.y*=Math.pow(this.percentChangeY,t/Zt)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x)<this.options.minSpeed&&Math.abs(this.y)<this.options.minSpeed&&(this.x=0,this.y=0):(Math.abs(this.x||0)<this.options.minSpeed&&(this.x=0),Math.abs(this.y||0)<this.options.minSpeed&&(this.y=0)),A&&this.parent.emit("moved",{viewport:this.parent,type:"decelerate"})}reset(){this.x=this.y=null}}const Qh={direction:"all",pressDrag:!0,wheel:!0,wheelScroll:1,reverse:!1,clampWheel:!1,underflow:"center",factor:1,mouseButtons:"all",keyToPress:null,ignoreKeyToPressOnTouch:!1,lineHeight:20,wheelSwapAxes:!1};class dh extends dt{constructor(t,A={}){super(t),this.windowEventHandlers=[],this.options=Object.assign({},Qh,A),this.moved=!1,this.reverse=this.options.reverse?1:-1,this.xDirection=!this.options.direction||this.options.direction==="all"||this.options.direction==="x",this.yDirection=!this.options.direction||this.options.direction==="all"||this.options.direction==="y",this.keyIsPressed=!1,this.parseUnderflow(),this.mouseButtons(this.options.mouseButtons),this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){const A=n=>{t.includes(n.code)&&(this.keyIsPressed=!0)},i=n=>{t.includes(n.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",i),this.addWindowEventHandler("keydown",A)}addWindowEventHandler(t,A){typeof window>"u"||(window.addEventListener(t,A),this.windowEventHandlers.push({event:t,handler:A}))}destroy(){typeof window>"u"||this.windowEventHandlers.forEach(({event:t,handler:A})=>{window.removeEventListener(t,A)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const A=t.pointerType==="mouse",i=this.parent.input.count();return!!((i===1||i>1&&!this.parent.plugins.get("pinch",!0))&&(!A||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},(this.parent.parent||this.parent).toLocal(this.last,void 0,this.last),this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const A=t.global.x,i=t.global.y,n=this.parent.input.count();if(n===1||n>1&&!this.parent.plugins.get("pinch",!0)){const s={x:A,y:i};(this.parent.parent||this.parent).toLocal(s,void 0,s);const a=s.x-this.last.x,g=s.y-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(a)||this.yDirection&&this.parent.input.checkThreshold(g))return this.xDirection&&(this.parent.x+=(s.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(s.y-this.last.y)*this.options.factor),this.last=s,this.moved||this.parent.emit("drag-start",{event:t,screen:new v.Point(this.last.x,this.last.y),world:this.parent.toWorld(new v.Point(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const A=this.parent.input.touches;if(A.length===1){const i=A[0];return i.last&&(this.last={x:i.last.x,y:i.last.y},this.current=i.id),this.moved=!1,!0}else if(this.last&&this.moved){const i=new v.Point(this.last.x,this.last.y);return(this.parent.parent||this.parent).toGlobal(i,i,!0),this.parent.emit("drag-end",{event:t,screen:i,world:this.parent.toWorld(i),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const A=this.parent.plugins.get("wheel",!0);if(!A||!A.options.wheelZoom&&!t.ctrlKey){const i=t.deltaMode?this.options.lineHeight:1,n=[t.deltaX,t.deltaY],[s,a]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=s*i*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=a*i*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x=0;break;case 1:this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}else this.parent.left<0?(this.parent.x=0,t.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y=0;break;case 1:this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}else this.parent.top<0&&(this.parent.y=0,t.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}}const ph={speed:0,acceleration:null,radius:null};class yh extends dt{constructor(t,A,i={}){super(t),this.target=A,this.options=Object.assign({},ph,i),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const A=this.parent.center;let i=this.target.x,n=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-A.y,2)+Math.pow(this.target.x-A.x,2))>this.options.radius){const g=Math.atan2(this.target.y-A.y,this.target.x-A.x);i=this.target.x-Math.cos(g)*this.options.radius,n=this.target.y-Math.sin(g)*this.options.radius}else return;const s=i-A.x,a=n-A.y;if(s||a)if(this.options.speed)if(this.options.acceleration){const g=Math.atan2(n-A.y,i-A.x),r=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));if(r){const l=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);r>l?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const I=Math.cos(g)*this.velocity.x,o=Math.sin(g)*this.velocity.y,h=Math.abs(I)>Math.abs(s)?i:A.x+I,c=Math.abs(o)>Math.abs(a)?n:A.y+o;this.parent.moveCenter(h,c),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const g=Math.atan2(n-A.y,i-A.x),r=Math.cos(g)*this.options.speed,l=Math.sin(g)*this.options.speed,I=Math.abs(r)>Math.abs(s)?i:A.x+r,o=Math.abs(l)>Math.abs(a)?n:A.y+l;this.parent.moveCenter(I,o),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(i,n),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}const wh={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class mh extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},wh,A),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const A=t.global.x,i=t.global.y;if(this.radiusSquared){const n=this.parent.toScreen(this.parent.center);if(Math.pow(n.x-A,2)+Math.pow(n.y-i,2)>=this.radiusSquared){const s=Math.atan2(n.y-i,n.x-A);this.options.linear?(this.horizontal=Math.round(Math.cos(s))*this.options.speed*this.reverse*.06,this.vertical=Math.round(Math.sin(s))*this.options.speed*this.reverse*.06):(this.horizontal=Math.cos(s)*this.options.speed*this.reverse*.06,this.vertical=Math.sin(s)*this.options.speed*this.reverse*.06)}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&A<this.left?this.horizontal=Number(this.reverse)*this.options.speed*.06:this.right!==null&&A>this.right?this.horizontal=-1*this.reverse*this.options.speed*.06:(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&i<this.top?this.vertical=Number(this.reverse)*this.options.speed*.06:this.bottom!==null&&i>this.bottom?this.vertical=-1*this.reverse*this.options.speed*.06:(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/16.666666666666668})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/16.666666666666668})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}}const Dh={noDrag:!1,percent:1,center:null,factor:1,axis:"all"},vh=new v.Point;class Sh extends dt{constructor(t,A={}){super(t),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},Dh,A)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const{x:A,y:i}=(this.parent.parent||this.parent).toLocal(t.global,void 0,vh),n=this.parent.input.touches;if(n.length>=2){const s=n[0],a=n[1],g=s.last&&a.last?Math.sqrt(Math.pow(a.last.x-s.last.x,2)+Math.pow(a.last.y-s.last.y,2)):null;if(s.id===t.pointerId?s.last={x:A,y:i,data:t}:a.id===t.pointerId&&(a.last={x:A,y:i,data:t}),g){let r;const l=new v.Point(s.last.x+(a.last.x-s.last.x)/2,s.last.y+(a.last.y-s.last.y)/2);this.options.center||(r=this.parent.toLocal(l,this.parent.parent||this.parent));let I=Math.sqrt(Math.pow(a.last.x-s.last.x,2)+Math.pow(a.last.y-s.last.y,2));I=I===0?I=1e-10:I;const o=(1-g/I)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=o),this.isAxisY()&&(this.parent.scale.y+=o),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:l});const h=this.parent.plugins.get("clamp-zoom",!0);if(h&&h.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const c=(this.parent.parent||this.parent).toLocal(r,this.parent);this.parent.x+=(l.x-c.x)*this.options.factor,this.parent.y+=(l.y-c.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(l.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(l.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=l,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}}const bh={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class xh extends dt{constructor(t,A,i,n={}){super(t),this.options=Object.assign({},bh,n),this.ease=xe(n.ease,"easeInOutSine"),this.x=A,this.y=i,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const A=this.snapping;A.time+=t;let i,n,s;const a=this.startX,g=this.startY,r=this.deltaX,l=this.deltaY;if(A.time>this.options.time)i=!0,n=a+r,s=g+l;else{const I=this.ease(A.time,0,1,this.options.time);n=a+r*I,s=g+l*I}this.options.topLeft?this.parent.moveCorner(n,s):this.parent.moveCenter(n,s),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),i&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const A=this.options.topLeft?this.parent.corner:this.parent.center;(A.x!==this.x||A.y!==this.y)&&this.snapStart()}}}const kh={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class Mh extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},kh,A),this.ease=xe(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):A.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,A=this.parent.worldScreenHeight,i=this.parent.screenWidth/this.xScale,n=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:A,deltaX:i-t,deltaY:n-A},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let A;if(!this.options.center&&!this.options.noMove&&(A=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const i=this.snapping;if(i.time+=t,i.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const s=this.snapping,a=this.ease(s.time,s.startX,s.deltaX,this.options.time),g=this.ease(s.time,s.startY,s.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/a,this.parent.scale.y=this.parent.screenHeight/g}const n=this.parent.plugins.get("clamp-zoom",!0);n&&n.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(A))}}resume(){this.snapping=null,super.resume()}}const Rh={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class _h extends dt{constructor(t,A={}){super(t),this.options=Object.assign({},Rh,A),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){typeof window>"u"||(window.addEventListener("keydown",A=>{t.includes(A.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",A=>{t.includes(A.code)&&(this.keyIsPressed=!1)}))}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,A=this.smoothing;let i;this.options.center||(i=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=A.x),this.isAxisY()&&(this.parent.scale.y+=A.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const n=this.parent.plugins.get("clamp-zoom",!0);if(n&&n.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const s=this.parent.parent||this.parent;s.toLocal(i,this.parent,i);const a=s.toLocal(t);this.parent.x+=a.x-i.x,this.parent.y+=a.y-i.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,typeof this.options.smooth=="number"&&this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const A=this.parent.input.getPointerPosition(t),i=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,n=Math.pow(2,(1+this.options.percent)*i);let s;this.options.center||(s=this.parent.toLocal(A)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const a=this.parent.plugins.get("clamp-zoom",!0);if(a&&a.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.parent||this.parent;g.toLocal(s,this.parent,s);const r=g.toLocal(A);this.parent.x+=r.x-s.x,this.parent.y+=r.y-s.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const A=this.parent.input.getPointerPosition(t),i=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,n=Math.pow(2,(1+this.options.percent)*i);if(this.options.smooth){const s={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+s.x)*n-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+s.y)*n-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=A}else{let s;this.options.center||(s=this.parent.toLocal(A)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const a=this.parent.plugins.get("clamp-zoom",!0);if(a&&a.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.parent||this.parent;g.toLocal(s,this.parent,s);const r=g.toLocal(A);this.parent.x+=r.x-s.x,this.parent.y+=r.y-s.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}}const Fh={screenWidth:typeof window>"u"?0:window.innerWidth,screenHeight:typeof window>"u"?0:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:v.Ticker.shared,allowPreserveDragOutside:!1};class Gh extends v.Container{constructor(t){super(),this._disableOnContextMenu=A=>A.preventDefault(),this.options={...Fh,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new rh(this),this.plugins=new ah(this)}destroy(t){var A;!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&((A=this.options.events.domElement)==null||A.removeEventListener("contextmenu",this._disableOnContextMenu)),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new v.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=typeof window>"u"?0:window.innerWidth,A=typeof window>"u"?0:window.innerHeight,i,n){this.screenWidth=t,this.screenHeight=A,typeof i<"u"&&(this._worldWidth=i),typeof n<"u"&&(this._worldHeight=n),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new v.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,A){return arguments.length===2?this.toLocal(new v.Point(t,A)):this.toLocal(t)}toScreen(t,A){return arguments.length===2?this.toGlobal(new v.Point(t,A)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new v.Point(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let A,i;typeof t[0]=="number"?(A=t[0],i=t[1]):(A=t[0].x,i=t[0].y);const n=(this.worldScreenWidth/2-A)*this.scale.x,s=(this.worldScreenHeight/2-i)*this.scale.y;return(this.x!==n||this.y!==s)&&(this.position.set(n,s),this.plugins.reset(),this.dirty=!0),this}get corner(){return new v.Point(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let A,i;return t.length===1?(A=-t[0].x*this.scale.x,i=-t[0].y*this.scale.y):(A=-t[0]*this.scale.x,i=-t[1]*this.scale.y),(A!==this.x||i!==this.y)&&(this.position.set(A,i),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,A){const i=this.screenWidth/t,n=this.screenHeight/A;return Math.min(i,n)}findCover(t,A){const i=this.screenWidth/t,n=this.screenHeight/A;return Math.max(i,n)}fitWidth(t=this.worldWidth,A,i=!0,n){let s;A&&(s=this.center),this.scale.x=this.screenWidth/t,i&&(this.scale.y=this.scale.x);const a=this.plugins.get("clamp-zoom",!0);return!n&&a&&a.clamp(),A&&s&&this.moveCenter(s),this}fitHeight(t=this.worldHeight,A,i=!0,n){let s;A&&(s=this.center),this.scale.y=this.screenHeight/t,i&&(this.scale.x=this.scale.y);const a=this.plugins.get("clamp-zoom",!0);return!n&&a&&a.clamp(),A&&s&&this.moveCenter(s),this}fitWorld(t){let A;t&&(A=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;const i=this.plugins.get("clamp-zoom",!0);return i&&i.clamp(),t&&A&&this.moveCenter(A),this}fit(t,A=this.worldWidth,i=this.worldHeight){let n;t&&(n=this.center),this.scale.x=this.screenWidth/A,this.scale.y=this.screenHeight/i,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;const s=this.plugins.get("clamp-zoom",!0);return s&&s.clamp(),t&&n&&this.moveCenter(n),this}setZoom(t,A){let i;A&&(i=this.center),this.scale.set(t);const n=this.plugins.get("clamp-zoom",!0);return n&&n.clamp(),A&&i&&this.moveCenter(i),this}zoomPercent(t,A){return this.setZoom(this.scale.x+this.scale.x*t,A)}zoom(t,A){return this.fitWidth(t+this.worldScreenWidth,A),this}get scaled(){return this.scale.x}set scaled(t){this.setZoom(t,!0)}snapZoom(t){return this.plugins.add("snap-zoom",new Mh(this,t)),this}OOB(){return{left:this.left<0,right:this.right>this.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new v.Point(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new v.Rectangle(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new dh(this,t)),this}clamp(t){return this.plugins.add("clamp",new uh(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Ch(this,t)),this}bounce(t){return this.plugins.add("bounce",new ch(this,t)),this}pinch(t){return this.plugins.add("pinch",new Sh(this,t)),this}snap(t,A,i){return this.plugins.add("snap",new xh(this,t,A,i)),this}follow(t,A){return this.plugins.add("follow",new yh(this,t,A)),this}wheel(t){return this.plugins.add("wheel",new _h(this,t)),this}animate(t){return this.plugins.add("animate",new hh(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Eh(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new mh(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,A,i,n,s){s&&(i>this.worldScreenWidth||n>this.worldScreenHeight)&&(this.fit(!0,i,n),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let a=!1;t<this.left?(this.left=t,a=!0):t+i>this.right&&(this.right=t+i,a=!0),A<this.top?(this.top=A,a=!0):A+n>this.bottom&&(this.bottom=A+n,a=!0),a&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const Nh=["bounce-x-end","bounce-x-start","bounce-y-end","bounce-y-start","clicked","drag-end","drag-start","frame-end","mouse-edge-end","mouse-edge-start","moved","moved-end","pinch-end","pinch-start","snap-end","snap-start","snap-zoom-end","snap-zoom-start","wheel-scroll","zoomed","zoomed-end"];class Hh extends mt(Gh){constructor(){const t={noTicker:!0,events:{domElement:{addEventListener:()=>{}}}};super(t),this.overrideProps=["wheel"]}onInit(t){super.onInit(t);for(let A of Nh)t[A]&&this.on(A,t[A])}async onMount(t,A){await super.onMount(t,A);const{props:i}=t,{tick:n,app:s,canvasSize:a}=i.context;it(()=>{this.screenWidth=a().width,this.screenHeight=a().height}),it(()=>{const g=s();if(!g)return;const r=g.renderer;r.events.domElement.addEventListener("wheel",this.input.wheelFunction),this.options.events=r.events}),this.tickSubscription=n.observable.subscribe(({value:g})=>{this.update(g.timestamp)}),t.props.context.viewport=this,this.updateViewportSettings(i)}onUpdate(t){super.onUpdate(t),this.updateViewportSettings(t)}updateViewportSettings(t){t.screenWidth!==void 0&&(this.screenWidth=t.screenWidth),t.screenHeight!==void 0&&(this.screenHeight=t.screenHeight),t.worldWidth!==void 0&&(this.worldWidth=t.worldWidth),t.worldHeight!==void 0&&(this.worldHeight=t.worldHeight),t.drag&&this.drag(t.drag),t.clamp&&this.clamp(t.clamp.value??t.clamp),t.wheel&&(t.wheel===!0?this.wheel():this.wheel(t.wheel)),t.decelerate&&(t.decelerate===!0?this.decelerate():this.decelerate(t.decelerate)),t.pinch&&(t.pinch===!0?this.pinch():this.pinch(t.pinch))}async onDestroy(t,A){const i=async()=>{this.tickSubscription.unsubscribe(),A()};await super.onDestroy(t,i)}}ht("Viewport",Hh);function Lh(e){return ut("Viewport",e)}class Uh extends mt(v.NineSliceSprite){constructor(){super({width:0,height:0})}async onUpdate(t){for(const[A,i]of Object.entries(t))i!==void 0&&(A==="image"?this.texture=await v.Assets.load(i):A in this&&(this[A]=i))}}ht("NineSliceSprite",Uh);function Oh(e){return ut("NineSliceSprite",e)}const Co=["click","mouseover","mouseout","mouseenter","mouseleave","mousemove","mouseup","mousedown","touchstart","touchend","touchmove","touchcancel","wheel","scroll","resize","focus","blur","change","input","submit","reset","keydown","keyup","keypress","contextmenu","drag","dragend","dragenter","dragleave","dragover","drop","dragstart","select","selectstart","selectend","selectall","selectnone"];class Th{constructor(){this.eventListeners=new Map,this.onBeforeDestroy=null,this.valueSignal=null,this.isFormElementType=!1}isFormElement(t){return["input","textarea","select"].includes(t.toLowerCase())}onInit(t){var A;typeof t.element=="string"?(this.element=document.createElement(t.element),this.isFormElementType=this.isFormElement(t.element)):(this.element=t.element.value,this.isFormElementType=this.isFormElement(this.element.tagName)),(t.onBeforeDestroy||t["on-before-destroy"])&&(this.onBeforeDestroy=t.onBeforeDestroy||t["on-before-destroy"]);for(const i of Co)if((A=t.attrs)!=null&&A[i]){const n=s=>{var a,g,r,l;if(i==="submit"&&this.element.tagName.toLowerCase()==="form"){s.preventDefault();const I=new FormData(this.element),o={};I.forEach((h,c)=>{o[c]?Array.isArray(o[c])?o[c].push(h):o[c]=[o[c],h]:o[c]=h}),(g=(a=t.attrs)[i])==null||g.call(a,s,o)}else(l=(r=t.attrs)[i])==null||l.call(r,s)};this.eventListeners.set(i,n),this.element.addEventListener(i,n,!1)}if(t.children)for(const i of t.children)is(i)?i.subscribe(({elements:n})=>{for(const s of n)this.element.appendChild(s.componentInstance.element)}):this.element.appendChild(i.componentInstance.element);this.onUpdate(t)}onMount(t){const i=t.propObservables.attrs;if(this.isFormElementType&&(i!=null&&i.value)&&T(i.value)){this.valueSignal=i.value,this.element.value=this.valueSignal();const n=s=>{const a=s.target;this.valueSignal.set(a.value)};this.eventListeners.set("input",n),this.element.addEventListener("input",n,!1)}}onUpdate(t){if(this.element){for(const[A,i]of Object.entries(t.attrs||{}))if(A==="class"){const n=i.items||i.value||i;if(this.element.className="",typeof n=="string")this.element.className=n;else if(Array.isArray(n))this.element.classList.add(...n);else if(typeof n=="object"&&n!==null)for(const[s,a]of Object.entries(n))a&&this.element.classList.add(s)}else if(A==="style"){const n=i.items||i.value||i;if(typeof n=="string")this.element.setAttribute("style",n);else if(typeof n=="object"&&n!==null)for(const[s,a]of Object.entries(n))a!=null&&(this.element.style[s]=a)}else if(A==="value"&&this.isFormElementType)if(T(i)){const n=this.element.value,s=i();n!==s&&(this.element.value=s)}else this.element.value=i;else Co.includes(A)||this.element.setAttribute(A,i);t.textContent&&(this.element.textContent=t.textContent)}}async onDestroy(t,A){if(this.element){this.onBeforeDestroy&&await this.onBeforeDestroy();for(const[i,n]of this.eventListeners)this.element.removeEventListener(i,n,!1);this.eventListeners.clear(),this.element.remove(),A&&A()}}}ht("DOMElement",Th);const Qo=e=>ut("DOMElement",e);class Jh extends mt(v.DOMContainer){constructor(){super(...arguments),this.disableLayout=!0}onInit(t){const A=ct(Qo,{element:"div"},t.children);this.element=A.componentInstance.element}}ht("DOMContainer",Jh);const Ph=e=>ut("DOMContainer",e);var po=(e=>(e.Normal="normal",e.Hover="hover",e.Pressed="pressed",e.Disabled="disabled",e))(po||{});function Kh(e){const t=W("normal"),A=W(!1),i=W(!1),n=ki(e),{text:s,disabled:a,width:g,height:r,style:l,shape:I,controlName:o}=n({text:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:Number,default:120},height:{type:Number,default:40},style:{type:Object,default:()=>({})},shape:{type:String,default:"rect"},controlName:{type:String,default:void 0}}),h=()=>e.controls?T(e.controls)?e.controls():e.controls:null;it(()=>{const Q=a(),C=A(),y=i();Q?t.set("disabled"):C?t.set("pressed"):y?t.set("hover"):t.set("normal")});const c={pointerenter:Q=>{var C;a()||(i.set(!0),(C=e.hoverEnter)==null||C.call(e,Q))},pointerleave:Q=>{var C;i.set(!1),A.set(!1),(C=e.hoverLeave)==null||C.call(e,Q)},pointerdown:async Q=>{var C;if(!a()){A.set(!0),(C=e.pressDown)==null||C.call(e,Q);const y=h(),D=o();y&&D&&y.applyControl&&await y.applyControl(D,!0)}},pointerup:async Q=>{var C;if(!a()&&A()){A.set(!1),(C=e.pressUp)==null||C.call(e,Q);const y=h(),D=o();y&&D&&y.applyControl&&await y.applyControl(D,!1)}},pointertap:async Q=>{var C;if(!a()){(C=e.click)==null||C.call(e,Q);const y=h(),D=o();y&&D&&y.applyControl&&await y.applyControl(D)}}},E=()=>{if(e.background)return e.background;const Q=I(),C=Ct(()=>{const D=l().backgroundColor||{normal:"#007bff",hover:"#0056b3",pressed:"#004085",disabled:"#6c757d"},m=t();return D[m]||D.normal});if(Q==="circle"){const y=Ct(()=>Math.min(g(),r())/2);return ct(oo,{radius:y,x:Ct(()=>g()/2),y:Ct(()=>r()/2),color:C})}else return Q==="ellipse"?ct(ro,{width:g,height:r,color:C}):ct(so,{width:g,height:r,color:C})},f=()=>e.children&&e.children.length>0?e.children:[ct(Bo,{text:s,x:Ct(()=>g()/2),y:Ct(()=>r()/2),anchor:{x:.5,y:.5},style:Ct(()=>{const C=l().text||{};return{fontSize:C.fontSize||16,fontFamily:C.fontFamily||"Arial",fill:C.color||"#ffffff"}})()})];return ct(qA,{x:e.x,y:e.y,width:e.width,height:e.height,alpha:e.alpha,visible:e.visible,cursor:e.cursor||"pointer",...c},[E(),...f()])}function Yh(e={}){const t=Object.assign({outerScale:{x:1,y:1},innerScale:{x:1,y:1},innerColor:"black",outerColor:"black"},e),A=()=>T(t.controls)?t.controls():t.controls;let i=70,n=10;const s=.5;let a=!1,g=null,r=0;const l=W(0),I=W(0),o=W(s);function h(m){const S=m.x-0,R=m.y-0;return Math.min(1,Math.sqrt(S*S+R*R)/i)}function c(m){let S=Math.atan2(m.y,m.x);return S>=-Math.PI/8&&S<0||S>=0&&S<Math.PI/8?"right":S>=Math.PI/8&&S<3*Math.PI/8?"bottom_right":S>=3*Math.PI/8&&S<5*Math.PI/8?"bottom":S>=5*Math.PI/8&&S<7*Math.PI/8?"bottom_left":S>=7*Math.PI/8&&S<Math.PI||S>=-Math.PI&&S<-7*Math.PI/8?"left":S>=-7*Math.PI/8&&S<-5*Math.PI/8?"top_left":S>=-5*Math.PI/8&&S<-3*Math.PI/8?"top":"top_right"}function E(m){var R;g=m.getLocalPosition(this),a=!0,o.set(1),(R=t.onStart)==null||R.call(t);const S=A();S&&(S.handleJoystickStart?S.handleJoystickStart():S.joystick&&S.joystick.handleJoystickStart&&S.joystick.handleJoystickStart())}function f(){var S;if(!a)return;l.set(0),I.set(0),a=!1,o.set(s),(S=t.onEnd)==null||S.call(t);const m=A();m&&(m.handleJoystickEnd?m.handleJoystickEnd():m.joystick&&m.joystick.handleJoystickEnd&&m.joystick.handleJoystickEnd())}function Q(m){var te,Ae,Ge;if(a==!1)return;let S=m.getLocalPosition(this),R=S.x-((g==null?void 0:g.x)??0),N=S.y-((g==null?void 0:g.y)??0),J=new hr.Point(0,0),U=0;if(R==0&&N==0)return;let nt="left";if(R==0){N>0?(J.set(0,N>i?i:N),U=270,nt="bottom"):(J.set(0,-(Math.abs(N)>i?i:Math.abs(N))),U=90,nt="top"),l.set(J.x),I.set(J.y),r=h(J);const St={angle:U,direction:nt,power:r};(te=t.onChange)==null||te.call(t,St);const gt=A();gt&&(gt.handleJoystickChange?gt.handleJoystickChange(St):gt.joystick&>.joystick.handleJoystickChange&>.joystick.handleJoystickChange(St));return}if(N==0){R>0?(J.set(Math.abs(R)>i?i:Math.abs(R),0),U=0,nt="right"):(J.set(-(Math.abs(R)>i?i:Math.abs(R)),0),U=180,nt="left"),l.set(J.x),I.set(J.y),r=h(J);const St={angle:U,direction:nt,power:r};(Ae=t.onChange)==null||Ae.call(t,St);const gt=A();gt&&(gt.handleJoystickChange?gt.handleJoystickChange(St):gt.joystick&>.joystick.handleJoystickChange&>.joystick.handleJoystickChange(St));return}let Ut=Math.abs(N/R),st=Math.atan(Ut);U=st*180/Math.PI;let at=0,Z=0;R*R+N*N>=i*i?(at=i*Math.cos(st),Z=i*Math.sin(st)):(at=Math.abs(R)>i?i:Math.abs(R),Z=Math.abs(N)>i?i:Math.abs(N)),N<0&&(Z=-Math.abs(Z)),R<0&&(at=-Math.abs(at)),R>0&&N<0||(R<0&&N<0?U=180-U:R<0&&N>0?U=U+180:R>0&&N>0&&(U=360-U)),J.set(at,Z),r=h(J),nt=c(J),l.set(J.x),I.set(J.y);const yt={angle:U,direction:nt,power:r};(Ge=t.onChange)==null||Ge.call(t,yt);const ot=A();ot&&(ot.handleJoystickChange?ot.handleJoystickChange(yt):ot.joystick&&ot.joystick.handleJoystickChange&&ot.joystick.handleJoystickChange(yt))}let C,y;t.outer?y=ct(on,{image:t.outer,anchor:{x:.5,y:.5},scale:t.outerScale}):y=ct(Xt,{draw:m=>{m.circle(0,0,i).fill(t.outerColor)},alpha:.5});const D={scale:t.innerScale,x:l,y:I,alpha:o};return t.inner?C=t.inner:C=ct(Xt,{draw:m=>{m.circle(0,0,n*2.5).fill(t.innerColor)},...D}),ct(qA,{...e,pointerdown:E,pointerup:f,pointerupoutside:f,pointermove:Q},y,C)}var Wh=(()=>{var e=et&&et.tagName.toUpperCase()==="SCRIPT"&&et.src||new URL("index.global.js",document.baseURI).href;return function(t){t=t||{};var A;A||(A=typeof t<"u"?t:{});var i,n;A.ready=new Promise(function(u,B){i=u,n=B});var s=Object.assign({},A),a="";typeof document<"u"&&document.currentScript&&(a=document.currentScript.src),e&&(a=e),a.indexOf("blob:")!==0?a=a.substr(0,a.replace(/[?#].*/,"").lastIndexOf("/")+1):a="";var g=A.print||console.log.bind(console),r=A.printErr||console.warn.bind(console);Object.assign(A,s),s=null;var l;A.wasmBinary&&(l=A.wasmBinary),A.noExitRuntime,typeof WebAssembly!="object"&&Z("no native wasm support detected");var I,o=!1;function h(u,B,d){d=B+d;for(var p="";!(B>=d);){var w=u[B++];if(!w)break;if(w&128){var b=u[B++]&63;if((w&224)==192)p+=String.fromCharCode((w&31)<<6|b);else{var k=u[B++]&63;w=(w&240)==224?(w&15)<<12|b<<6|k:(w&7)<<18|b<<12|k<<6|u[B++]&63,65536>w?p+=String.fromCharCode(w):(w-=65536,p+=String.fromCharCode(55296|w>>10,56320|w&1023))}}else p+=String.fromCharCode(w)}return p}var c,E,f,Q,C,y,D,m,S;function R(){var u=I.buffer;c=u,A.HEAP8=E=new Int8Array(u),A.HEAP16=Q=new Int16Array(u),A.HEAP32=y=new Int32Array(u),A.HEAPU8=f=new Uint8Array(u),A.HEAPU16=C=new Uint16Array(u),A.HEAPU32=D=new Uint32Array(u),A.HEAPF32=m=new Float32Array(u),A.HEAPF64=S=new Float64Array(u)}var N,J=[],U=[],nt=[];function Ut(){var u=A.preRun.shift();J.unshift(u)}var st=0,at=null;function Z(u){throw A.onAbort&&A.onAbort(u),u="Aborted("+u+")",r(u),o=!0,u=new WebAssembly.RuntimeError(u+". Build with -sASSERTIONS for more info."),n(u),u}function yt(u){return u.startsWith("data:application/octet-stream;base64,")}var ot;if(ot="data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAAAGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAV/f39/fwBgAn9/AX1gBX9/f319AX1gAX8BfWADf35/AX5gB39/f39/f38AYAZ/f39/f38AYAR/f39/AX9gBn9/f319fQF9YAR/f31/AGADf399AX1gBn98f39/fwF/YAR/fHx/AGACf30AYAh/f39/f39/fwBgDX9/f39/f39/f39/f38AYAp/f39/f39/f39/AGAFf39/f38BfGAEfHx/fwF9YA1/fX1/f399fX9/f39/AX9gB39/f319f38AYAJ+fwF/YAN/fX0BfWABfAF8YAN/fHwAYAR/f319AGAHf39/fX19fQF9YA1/fX99f31/fX19fX1/AX9gC39/f39/f399fX19AX9gCH9/f39/f319AGAEf39+fgBgB39/f39/f38Bf2ACfH8BfGAFf398fH8AYAN/f38BfGAEf39/fABgA39/fQBgBn9/fX99fwF/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhAWUAEQFhAWYAIAFhAWcAAAFhAWgAIQFhAWkAAwFhAWoAAAFhAWsAFwFhAWwACgFhAW0ABQFhAW4AAwFhAW8AAQFhAXAAFwFhAXEABgFhAXIAAAFhAXMAIgFhAXQACgFhAXUADQFhAXYAFgFhAXcAAgFhAXgAAwFhAXkAGAFhAXoAAgFhAUEAAQFhAUIAEQFhAUMAAQFhAUQAAAOiAqACAgMSBwcACRkDAAoRBgYKEwAPDxMBBiMTCgcHGgMUASQFJRQHAwMKCgMmAQYYDxobFAAKBw8KBwMDAgkCAAAFGwACBwIHBgIDAQMIDAABKAkHBQURACkZASoAAAIrLAI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EWxsL2AICBH8BfSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgACABIAFBMGoQQg8LECQACyAAIAEgAUEwaiADEEULcAI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wiAQRAIAEQIwsgACgCACIBBEAgACABNgIEIAEQIwsgABAjC4EEAQN/IwBBEGsiAyQAIABCADcCBCAAQcEgOwAVIABCADcCDCAAQoCAgICAgIACNwIYIAAgAC0AF0HgAXE6ABcgACAALQAAQeABcUEFcjoAACAAIAAtABRBgAFxOgAUIABBIGpBAEHOABAqGiAAQgA3AXIgAEGEgBA2AW4gAEEANgF6IABCADcCgAEgAEIANwKIASAAQgA3ApABIABCADcCoAEgAEKAgICAgICA4P8ANwKYASAAQQA6AKgBIABBrAFqQQBBxAEQKhogAEHwAmohBCAAQbABaiECA0AgAkKAgID8i4CAwL9/NwIQIAJCgYCAgBA3AgggAkKAgID8i4CAwL9/NwIAIAJBGGoiAiAERw0ACyAAQoCAgPyLgIDAv383AvACIABCgICA/IuAgMC/fzcCgAMgAEKBgICAEDcC+AIgAEKAgID+h4CA4P8ANwKUAyAAQoCAgP6HgIDg/wA3AowDIABBiANqIgIgAi0AAEH4AXE6AAAgAEGcA2pBAEHYABAqGiAAQQA6AIQEIABBgICA/gc2AoAEIABBADoA/AMgAEGAgID+BzYC+AMgACABNgL0AyABBEAgAS0ACEEBcQRAIAAgAC0AFEHzAXFBCHI6ABQgACAALwAVQfD/A3FBBHI7ABULIANBEGokACAADwsgA0GiGjYCACADEHIQJAALMwAgACABQQJ0QfwlaigCAEECdGoqApQDIABBFGoiACABQQEgAhAiIAAgAUEBIAIQIZKSC44DAQp/IwBB0AJrIgEkACAAKALoAyIDIAAoAuwDIgVHBEAgAUGMAmohBiABQeABaiEHIAFBIGohCCABQRxqIQkgAUEQaiEEA0AgAygCACICLQAXQRB0QYCAMHFBgIAgRgRAIAFBCGpBAEHEAhAqGiABQYCAgP4HNgIMIARBADoACCAEQgA3AgAgCUEAQcQBECoaIAghAANAIABCgICA/IuAgMC/fzcCECAAQoGAgIAQNwIIIABCgICA/IuAgMC/fzcCACAAQRhqIgAgB0cNAAsgAUKAgID8i4CAwL9/NwPwASABQoGAgIAQNwPoASABQoCAg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AkACQAJAAkACQAJAAkACQCABQQlrDhIACgsMCgsCAwQFDAsMDAoLBwgJCyACIAIoAgAiAUEEajYCACAAIAEoAgA2AgAPCwALIAIgAigCACIBQQRqNgIAIAAgATIBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIANBEGokAAtdAQR/IAAoAgAhAgNAIAIsAAAiAxBXBEBBfyEEIAAgAkEBaiICNgIAIAFBzJmz5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsFIAQLIQEMAQsLIAELrhQCEn8BfiMAQdAAayIIJAAgCCABNgJMIAhBN2ohFyAIQThqIRQCQAJAAkACQANAIAEhDSAHIA5B/////wdzSg0BIAcgDmohDgJAAkACQCANIgctAAAiCQRAA0ACQAJAIAlB/wFxIgFFBEAgByEBDAELIAFBJUcNASAHIQkDQCAJLQABQSVHBEAgCSEBDAILIAdBAWohByAJLQACIQogCUECaiIBIQkgCkElRg0ACwsgByANayIHIA5B/////wdzIhhKDQcgAARAIAAgDSAHECYLIAcNBiAIIAE2AkwgAUEBaiEHQX8hEgJAI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QaiQAIAALGwEBfyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBS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iIIRAAAAAAAAPBBYyAIRAAAAAAAAAAAZnEEQCAIqwwBC0EACyEBIAYoAgwhAyAAIAEpAwA3AwAgACABKQMINwMIIAMQESAGQTBqJAALCQAgABCQARAjCwwAIAAoAghB6BwQZgsJACAAEJIBECMLVQECfyMAQTBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEwEB4gAkEwECshACACQTBqJAAgAAs7AQF/IAEgACgCBCIFQQF1aiEBIAAoAgAhACABIAIgAyAEIAVBAXEEfyABKAIAIABqKAIABSAACxEdAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERIACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRDAALNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBArGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQIwsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQeAmNgIAIAELBQBBpDsLaQECfyMAQRBrIgYkACABIAAoAgQiB0EBdWohASAAKAIAIQAgBiABIAIgAyAEIAUgB0EBcQR/IAEoAgAgAGooAgAFIAALERAAQRAQHiIAIAYpAwg3AwggACAGKQMANwMAIAZBEGokACAACwUAQaA7Cx0AIAAoAgAiACAALQAAQfcBcUEIQQAgARtyOgAAC6oBAgJ/AX0jAEEQayICJAAgACgCACEAIAFB/wFxIgNBBkkEQAJ/AkACQAJAIANBBGsOAgABAgsgAEHUA2ogAC0AiANBA3FBAkYNAhogAEHMA2oMAgsgAEHMA2ogAC0AiANBA3FBAkYNARogAEHUA2oMAQsgACABQf8BcUECdGpBzANqCyoCACEEIAJBEGokACAEuw8LIAJB7hA2AgAgAEEFQdglIAIQLBAkAAuqAQICfwF9IwBBEGsiAiQAIAAoAgAhACABQf8BcSIDQQZJBEACfwJAAkACQCADQQRrDgIAAQILIABBxANqIAAtAIgDQQNxQQJGDQIaIABBvANqDAILIAB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0H/AXEgCyAMIAQgBUEBQQAgCkEIakEAQfA6KAIAED0EQCAAIAAtAIgDQQNxIAQgBRB2IABEAAAAAAAAAABEAAAAAAAAAAAQcwsgCkFAayQACw0AIAAoAgAtAABBAXELFQAgACgCACIAIAAtAABB/gFxOgAACxAAIAAoAgAtAABBBHFBAnYLegECfyMAQRBrIgEkACAAKAIAIgAoAggEQANAIAAtAAAiAkEEcUUEQCAAIAJBBHI6AAAgACgCECICBEAgACACEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQELCyABQRBqJAAPCyABQYAINgIAIABBBUHYJSABECwQJAALLgEBfyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgBBADYCEAsXACAAKAIEKAIIIgAgACgCACgCCBEAAAsuAQF/IAAoAgghAiAAIAE2AgggAgRAIAIgAigCACgCBBEAAAsgACgCAEEFNgIQCz4BAX8gACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIAIgBBADYCCCAAIAAtAABB7wFxOgAAC0kBAX8jAEEQayIGJAAgBiABKAIEKAIEIgEgAiADIAQgBSABKAIAKAIIERAAIAAgBisDALY4AgAgACAGKwMItjgCBCAGQRBqJAALcwECfyMAQRBrIgIkACAAKAIEIQMgACABNgIEIAMEQCADIAMoAgAoAgQRAAALIAAoAgAiACgC6AMgACgC7ANHBEAgAkH5IzYCACAAQQVB2CUgAhAsECQACyAAQQQ2AgggACAALQAAQRByOgAAIAJBEGokAAs8AQF/AkAgACgCACIAKALsAyAAKALoAyIAa0ECdSABTQ0AIAAgAUECdGooAgAiAEUNACAAKAIEIQILIAILGQAgACgCACgC5AMiAEUEQEEADwsgACgCBAsXACAAKAIAIgAoAuwDIAAoAugDa0ECdQuOAwEDfyMAQdACayICJAACQCAAKAIAIgAoAuwDIAAoAugDRg0AIAEoAgAiAygC5AMhASAAIAMQb0UNACAAIAFGBEAgAkEIakEAQcQCECoaIAJBADoAGCACQgA3AxAgAkGAgID+BzYCDCACQRxqQQB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AEGUMgsF/////woAQdgyCwHT",!yt(ot)){var te=ot;ot=A.locateFile?A.locateFile(te,a):a+te}function Ae(){var u=ot;try{if(u==ot&&l)return new Uint8Array(l);if(yt(u))try{var B=ic(u.slice(37)),d=new Uint8Array(B.length);for(u=0;u<B.length;++u)d[u]=B.charCodeAt(u);var p=d}catch{throw Error("Converting base64 string to bytes failed.")}else p=void 0;var w=p;if(w)return w;throw"both async and sync fetching of the wasm failed"}catch(b){Z(b)}}function Ge(){return l||typeof fetch!="function"?Promise.resolve().then(function(){return Ae()}):fetch(ot,{credentials:"same-origin"}).then(function(u){if(!u.ok)throw"failed to load wasm binary file at '"+ot+"'";return u.arrayBuffer()}).catch(function(){return Ae()})}function St(u){for(;0<u.length;)u.shift()(A)}function gt(u){if(u===void 0)return"_unknown";u=u.replace(/[^a-zA-Z0-9_]/g,"$");var B=u.charCodeAt(0);return 48<=B&&57>=B?"_"+u:u}function In(u,B){return u=gt(u),function(){return B.apply(this,arguments)}}var bt=[{},{value:void 0},{value:null},{value:!0},{value:!1}],un=[];function Ne(u){var B=Error,d=In(u,function(p){this.name=u,this.message=p,p=Error(p).stack,p!==void 0&&(this.stack=this.toString()+`
|
|
28
|
+
`+p.replace(/^Error(:[^\n]*)?\n/,""))});return d.prototype=Object.create(B.prototype),d.prototype.constructor=d,d.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},d}var MA=void 0;function O(u){throw new MA(u)}var ee=u=>(u||O("Cannot use deleted val. handle = "+u),bt[u].value),He=u=>{switch(u){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var B=un.length?un.pop():bt.length;return bt[B]={ga:1,value:u},B}},Yo=void 0,Wo=void 0;function rt(u){for(var B="";f[u];)B+=Wo[f[u++]];return B}var ie=[];function Bn(){for(;ie.length;){var u=ie.pop();u.M.$=!1,u.delete()}}var ne=void 0,Tt={};function En(u,B){for(B===void 0&&O("ptr should not be undefined");u.R;)B=u.ba(B),u=u.R;return B}var aA={};function jo(u){u=ir(u);var B=rt(u);return Kt(u),B}function Vo(u,B){var d=aA[u];return d===void 0&&O(B+" has unknown type "+jo(u)),d}function Le(){}var fn=!1;function qo(u){--u.count.value,u.count.value===0&&(u.T?u.U.W(u.T):u.P.N.W(u.O))}function Xo(u,B,d){return B===d?u:d.R===void 0?null:(u=Xo(u,B,d.R),u===null?null:d.na(u))}var Zo={};function Hl(u,B){return B=En(u,B),Tt[B]}var zo=void 0;function Ue(u){throw new zo(u)}function Oe(u,B){return B.P&&B.O||Ue("makeClassHandle requires ptr and ptrType"),!!B.U!=!!B.T&&Ue("Both smartPtrType and smartPtr must be specified"),B.count={value:1},RA(Object.create(u,{M:{value:B}}))}function RA(u){return typeof FinalizationRegistry>"u"?(RA=B=>B,u):(fn=new FinalizationRegistry(B=>{qo(B.M)}),RA=B=>{var d=B.M;return d.T&&fn.register(B,{M:d},B),B},Le=B=>{fn.unregister(B)},RA(u))}var Te={};function Cn(u){for(;u.length;){var B=u.pop();u.pop()(B)}}function se(u){return this.fromWireType(y[u>>2])}var _A={},Je={};function zt(u,B,d){function p(M){M=d(M),M.length!==u.length&&Ue("Mismatched type converter count");for(var F=0;F<u.length;++F)Jt(u[F],M[F])}u.forEach(function(M){Je[M]=B});var w=Array(B.length),b=[],k=0;B.forEach((M,F)=>{aA.hasOwnProperty(M)?w[F]=aA[M]:(b.push(M),_A.hasOwnProperty(M)||(_A[M]=[]),_A[M].push(()=>{w[F]=aA[M],++k,k===b.length&&p(w)}))}),b.length===0&&p(w)}function Qn(u){switch(u){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+u)}}function Jt(u,B,d={}){if(!("argPackAdvance"in B))throw new TypeError("registerType registeredInstance requires argPackAdvance");var p=B.name;if(u||O('type "'+p+'" must have a positive integer typeid pointer'),aA.hasOwnProperty(u)){if(d.ua)return;O("Cannot register type '"+p+"' twice")}aA[u]=B,delete Je[u],_A.hasOwnProperty(u)&&(B=_A[u],delete _A[u],B.forEach(w=>w()))}function dn(u){O(u.M.P.N.name+" instance already deleted")}function $t(){}function pn(u,B,d){if(u[B].S===void 0){var p=u[B];u[B]=function(){return u[B].S.hasOwnProperty(arguments.length)||O("Function '"+d+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+u[B].S+")!"),u[B].S[arguments.length].apply(this,arguments)},u[B].S=[],u[B].S[p.Z]=p}}function Ll(u,B){A.hasOwnProperty(u)?(O("Cannot register public name '"+u+"' twice"),pn(A,u,u),A.hasOwnProperty(void 0)&&O("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),A[u].S[void 0]=B):A[u]=B}function Ul(u,B,d,p,w,b,k,M){this.name=u,this.constructor=B,this.X=d,this.W=p,this.R=w,this.pa=b,this.ba=k,this.na=M,this.ja=[]}function yn(u,B,d){for(;B!==d;)B.ba||O("Expected null or instance of "+d.name+", got an instance of "+B.name),u=B.ba(u),B=B.R;return u}function Ol(u,B){return B===null?(this.ea&&O("null is not a valid "+this.name),0):(B.M||O('Cannot pass "'+vn(B)+'" as a '+this.name),B.M.O||O("Cannot pass deleted object as a pointer of type "+this.name),yn(B.M.O,B.M.P.N,this.N))}function Tl(u,B){if(B===null){if(this.ea&&O("null is not a valid "+this.name),this.da){var d=this.fa();return u!==null&&u.push(this.W,d),d}return 0}if(B.M||O('Cannot pass "'+vn(B)+'" as a '+this.name),B.M.O||O("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&B.M.P.ca&&O("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name),d=yn(B.M.O,B.M.P.N,this.N),this.da)switch(B.M.T===void 0&&O("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:B.M.U===this?d=B.M.T:O("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name);break;case 1:d=B.M.T;break;case 2:if(B.M.U===this)d=B.M.T;else{var p=B.clone();d=this.xa(d,He(function(){p.delete()})),u!==null&&u.push(this.W,d)}break;default:O("Unsupporting sharing policy")}return d}function Jl(u,B){return B===null?(this.ea&&O("null is not a valid "+this.name),0):(B.M||O('Cannot pass "'+vn(B)+'" as a '+this.name),B.M.O||O("Cannot pass deleted object as a pointer of type "+this.name),B.M.P.ca&&O("Cannot convert argument of type "+B.M.P.name+" to parameter type "+this.name),yn(B.M.O,B.M.P.N,this.N))}function Pt(u,B,d,p){this.name=u,this.N=B,this.ea=d,this.ca=p,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,B.R!==void 0?this.toWireType=Tl:(this.toWireType=p?Ol:Jl,this.V=null)}function Pl(u,B){A.hasOwnProperty(u)||Ue("Replacing nonexistant public symbol"),A[u]=B,A[u].Z=void 0}function Kl(u,B){var d=[];return function(){if(d.length=0,Object.assign(d,arguments),u.includes("j")){var p=A["dynCall_"+u];p=d.length?p.apply(null,[B].concat(d)):p.call(null,B)}else p=N.get(B).apply(null,d);return p}}function xt(u,B){u=rt(u);var d=u.includes("j")?Kl(u,B):N.get(B);return typeof d!="function"&&O("unknown function pointer with signature "+u+": "+B),d}var $o=void 0;function Pe(u,B){function d(b){w[b]||aA[b]||(Je[b]?Je[b].forEach(d):(p.push(b),w[b]=!0))}var p=[],w={};throw B.forEach(d),new $o(u+": "+p.map(jo).join([", "]))}function wn(u,B,d,p,w){var b=B.length;2>b&&O("argTypes array size mismatch! Must at least get return value and 'this' types!");var k=B[1]!==null&&d!==null,M=!1;for(d=1;d<B.length;++d)if(B[d]!==null&&B[d].V===void 0){M=!0;break}var F=B[0].name!=="void",_=b-2,G=Array(_),H=[],P=[];return function(){if(arguments.length!==_&&O("function "+u+" called with "+arguments.length+" arguments, expected "+_+" args!"),P.length=0,H.length=k?2:1,H[0]=w,k){var At=B[1].toWireType(P,this);H[1]=At}for(var Y=0;Y<_;++Y)G[Y]=B[Y+2].toWireType(P,arguments[Y]),H.push(G[Y]);if(Y=p.apply(null,H),M)Cn(P);else for(var Et=k?1:2;Et<B.length;Et++){var kt=Et===1?At:G[Et-2];B[Et].V!==null&&B[Et].V(kt)}return At=F?B[0].fromWireType(Y):void 0,At}}function mn(u,B){for(var d=[],p=0;p<u;p++)d.push(D[B+4*p>>2]);return d}function Dn(u){4<u&&--bt[u].ga===0&&(bt[u]=void 0,un.push(u))}function vn(u){if(u===null)return"null";var B=typeof u;return B==="object"||B==="array"||B==="function"?u.toString():""+u}function Yl(u,B){switch(B){case 2:return function(d){return this.fromWireType(m[d>>2])};case 3:return function(d){return this.fromWireType(S[d>>3])};default:throw new TypeError("Unknown float type: "+u)}}function Wl(u,B,d){switch(B){case 0:return d?function(p){return E[p]}:function(p){return f[p]};case 1:return d?function(p){return Q[p>>1]}:function(p){return C[p>>1]};case 2:return d?function(p){return y[p>>2]}:function(p){return D[p>>2]};default:throw new TypeError("Unknown integer type: "+u)}}function jl(u,B){for(var d="",p=0;!(p>=B/2);++p){var w=Q[u+2*p>>1];if(w==0)break;d+=String.fromCharCode(w)}return d}function Vl(u,B,d){if(d===void 0&&(d=2147483647),2>d)return 0;d-=2;var p=B;d=d<2*u.length?d/2:u.length;for(var w=0;w<d;++w)Q[B>>1]=u.charCodeAt(w),B+=2;return Q[B>>1]=0,B-p}function ql(u){return 2*u.length}function Xl(u,B){for(var d=0,p="";!(d>=B/4);){var w=y[u+4*d>>2];if(w==0)break;++d,65536<=w?(w-=65536,p+=String.fromCharCode(55296|w>>10,56320|w&1023)):p+=String.fromCharCode(w)}return p}function Zl(u,B,d){if(d===void 0&&(d=2147483647),4>d)return 0;var p=B;d=p+d-4;for(var w=0;w<u.length;++w){var b=u.charCodeAt(w);if(55296<=b&&57343>=b){var k=u.charCodeAt(++w);b=65536+((b&1023)<<10)|k&1023}if(y[B>>2]=b,B+=4,B+4>d)break}return y[B>>2]=0,B-p}function zl(u){for(var B=0,d=0;d<u.length;++d){var p=u.charCodeAt(d);55296<=p&&57343>=p&&++d,B+=4}return B}var $l={};function tr(u){var B=$l[u];return B===void 0?rt(u):B}var Ke=[];function tc(u){var B=Ke.length;return Ke.push(u),B}function Ac(u,B){for(var d=Array(u),p=0;p<u;++p)d[p]=Vo(D[B+4*p>>2],"parameter "+p);return d}var Ar=[],ec=[null,[],[]];MA=A.BindingError=Ne("BindingError"),A.count_emval_handles=function(){for(var u=0,B=5;B<bt.length;++B)bt[B]!==void 0&&++u;return u},A.get_first_emval=function(){for(var u=5;u<bt.length;++u)if(bt[u]!==void 0)return bt[u];return null},Yo=A.PureVirtualError=Ne("PureVirtualError");for(var er=Array(256),Ye=0;256>Ye;++Ye)er[Ye]=String.fromCharCode(Ye);Wo=er,A.getInheritedInstanceCount=function(){return Object.keys(Tt).length},A.getLiveInheritedInstances=function(){var u=[],B;for(B in Tt)Tt.hasOwnProperty(B)&&u.push(Tt[B]);return u},A.flushPendingDeletes=Bn,A.setDelayFunction=function(u){ne=u,ie.length&&ne&&ne(Bn)},zo=A.InternalError=Ne("InternalError"),$t.prototype.isAliasOf=function(u){if(!(this instanceof $t&&u instanceof $t))return!1;var B=this.M.P.N,d=this.M.O,p=u.M.P.N;for(u=u.M.O;B.R;)d=B.ba(d),B=B.R;for(;p.R;)u=p.ba(u),p=p.R;return B===p&&d===u},$t.prototype.clone=function(){if(this.M.O||dn(this),this.M.aa)return this.M.count.value+=1,this;var u=RA,B=Object,d=B.create,p=Object.getPrototypeOf(this),w=this.M;return u=u(d.call(B,p,{M:{value:{count:w.count,$:w.$,aa:w.aa,O:w.O,P:w.P,T:w.T,U:w.U}}})),u.M.count.value+=1,u.M.$=!1,u},$t.prototype.delete=function(){this.M.O||dn(this),this.M.$&&!this.M.aa&&O("Object already scheduled for deletion"),Le(this),qo(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},$t.prototype.isDeleted=function(){return!this.M.O},$t.prototype.deleteLater=function(){return this.M.O||dn(this),this.M.$&&!this.M.aa&&O("Object already scheduled for deletion"),ie.push(this),ie.length===1&&ne&&ne(Bn),this.M.$=!0,this},Pt.prototype.qa=function(u){return this.ka&&(u=this.ka(u)),u},Pt.prototype.ha=function(u){this.W&&this.W(u)},Pt.prototype.argPackAdvance=8,Pt.prototype.readValueFromPointer=se,Pt.prototype.deleteObject=function(u){u!==null&&u.delete()},Pt.prototype.fromWireType=function(u){function B(){return this.da?Oe(this.N.X,{P:this.wa,O:d,U:this,T:u}):Oe(this.N.X,{P:this,O:u})}var d=this.qa(u);if(!d)return this.ha(u),null;var p=Hl(this.N,d);if(p!==void 0)return p.M.count.value===0?(p.M.O=d,p.M.T=u,p.clone()):(p=p.clone(),this.ha(u),p);if(p=this.N.pa(d),p=Zo[p],!p)return B.call(this);p=this.ca?p.la:p.pointerType;var w=Xo(d,this.N,p.N);return w===null?B.call(this):this.da?Oe(p.N.X,{P:p,O:w,U:this,T:u}):Oe(p.N.X,{P:p,O:w})},$o=A.UnboundTypeError=Ne("UnboundTypeError");var ic=typeof atob=="function"?atob:function(u){var B="",d=0;u=u.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(d++)),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(d++)),b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(d++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(u.charAt(d++));p=p<<2|w>>4,w=(w&15)<<4|b>>2;var M=(b&3)<<6|k;B+=String.fromCharCode(p),b!==64&&(B+=String.fromCharCode(w)),k!==64&&(B+=String.fromCharCode(M))}while(d<u.length);return B},nc={l:function(u,B,d,p){Z("Assertion failed: "+(u?h(f,u):"")+", at: "+[B?B?h(f,B):"":"unknown filename",d,p?p?h(f,p):"":"unknown function"])},q:function(u,B,d){u=rt(u),B=Vo(B,"wrapper"),d=ee(d);var p=[].slice,w=B.N,b=w.X,k=w.R.X,M=w.R.constructor;u=In(u,function(){w.R.ja.forEach((function(_){if(this[_]===k[_])throw new Yo("Pure virtual function "+_+" must be implemented in JavaScript")}).bind(this)),Object.defineProperty(this,"__parent",{value:b}),this.__construct.apply(this,p.call(arguments))}),b.__construct=function(){this===b&&O("Pass correct 'this' to __construct");var _=M.implement.apply(void 0,[this].concat(p.call(arguments)));Le(_);var G=_.M;_.notifyOnDestruction(),G.aa=!0,Object.defineProperties(this,{M:{value:G}}),RA(this),_=G.O,_=En(w,_),Tt.hasOwnProperty(_)?O("Tried to register registered instance: "+_):Tt[_]=this},b.__destruct=function(){this===b&&O("Pass correct 'this' to __destruct"),Le(this);var _=this.M.O;_=En(w,_),Tt.hasOwnProperty(_)?delete Tt[_]:O("Tried to unregister unregistered instance: "+_)},u.prototype=Object.create(b);for(var F in d)u.prototype[F]=d[F];return He(u)},j:function(u){var B=Te[u];delete Te[u];var d=B.fa,p=B.W,w=B.ia,b=w.map(k=>k.ta).concat(w.map(k=>k.za));zt([u],b,k=>{var M={};return w.forEach((F,_)=>{var G=k[_],H=F.ra,P=F.sa,At=k[_+w.length],Y=F.ya,Et=F.Aa;M[F.oa]={read:kt=>G.fromWireType(H(P,kt)),write:(kt,oe)=>{var Yt=[];Y(Et,kt,At.toWireType(Yt,oe)),Cn(Yt)}}}),[{name:B.name,fromWireType:function(F){var _={},G;for(G in M)_[G]=M[G].read(F);return p(F),_},toWireType:function(F,_){for(var G in M)if(!(G in _))throw new TypeError('Missing field: "'+G+'"');var H=d();for(G in M)M[G].write(H,_[G]);return F!==null&&F.push(p,H),H},argPackAdvance:8,readValueFromPointer:se,V:p}]})},v:function(){},B:function(u,B,d,p,w){var b=Qn(d);B=rt(B),Jt(u,{name:B,fromWireType:function(k){return!!k},toWireType:function(k,M){return M?p:w},argPackAdvance:8,readValueFromPointer:function(k){if(d===1)var M=E;else if(d===2)M=Q;else if(d===4)M=y;else throw new TypeError("Unknown boolean type size: "+B);return this.fromWireType(M[k>>b])},V:null})},f:function(u,B,d,p,w,b,k,M,F,_,G,H,P){G=rt(G),b=xt(w,b),M&&(M=xt(k,M)),_&&(_=xt(F,_)),P=xt(H,P);var At=gt(G);Ll(At,function(){Pe("Cannot construct "+G+" due to unbound types",[p])}),zt([u,B,d],p?[p]:[],function(Y){if(Y=Y[0],p)var Et=Y.N,kt=Et.X;else kt=$t.prototype;Y=In(At,function(){if(Object.getPrototypeOf(this)!==oe)throw new MA("Use 'new' to construct "+G);if(Yt.Y===void 0)throw new MA(G+" has no accessible constructor");var or=Yt.Y[arguments.length];if(or===void 0)throw new MA("Tried to invoke ctor of "+G+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Yt.Y).toString()+") parameters instead!");return or.apply(this,arguments)});var oe=Object.create(kt,{constructor:{value:Y}});Y.prototype=oe;var Yt=new Ul(G,Y,oe,P,Et,b,M,_);Et=new Pt(G,Yt,!0,!1),kt=new Pt(G+"*",Yt,!1,!1);var sr=new Pt(G+" const*",Yt,!1,!0);return Zo[u]={pointerType:kt,la:sr},Pl(At,Y),[Et,kt,sr]})},d:function(u,B,d,p,w,b,k){var M=mn(d,p);B=rt(B),b=xt(w,b),zt([],[u],function(F){function _(){Pe("Cannot call "+G+" due to unbound types",M)}F=F[0];var G=F.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]);var H=F.N.constructor;return H[B]===void 0?(_.Z=d-1,H[B]=_):(pn(H,B,G),H[B].S[d-1]=_),zt([],M,function(P){return P=wn(G,[P[0],null].concat(P.slice(1)),null,b,k),H[B].S===void 0?(P.Z=d-1,H[B]=P):H[B].S[d-1]=P,[]}),[]})},p:function(u,B,d,p,w,b){0<B||Z();var k=mn(B,d);w=xt(p,w),zt([],[u],function(M){M=M[0];var F="constructor "+M.name;if(M.N.Y===void 0&&(M.N.Y=[]),M.N.Y[B-1]!==void 0)throw new MA("Cannot register multiple constructors with identical number of parameters ("+(B-1)+") for class '"+M.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return M.N.Y[B-1]=()=>{Pe("Cannot construct "+M.name+" due to unbound types",k)},zt([],k,function(_){return _.splice(1,0,null),M.N.Y[B-1]=wn(F,_,null,w,b),[]}),[]})},a:function(u,B,d,p,w,b,k,M){var F=mn(d,p);B=rt(B),b=xt(w,b),zt([],[u],function(_){function G(){Pe("Cannot call "+H+" due to unbound types",F)}_=_[0];var H=_.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]),M&&_.N.ja.push(B);var P=_.N.X,At=P[B];return At===void 0||At.S===void 0&&At.className!==_.name&&At.Z===d-2?(G.Z=d-2,G.className=_.name,P[B]=G):(pn(P,B,H),P[B].S[d-2]=G),zt([],F,function(Y){return Y=wn(H,Y,_,b,k),P[B].S===void 0?(Y.Z=d-2,P[B]=Y):P[B].S[d-2]=Y,[]}),[]})},A:function(u,B){B=rt(B),Jt(u,{name:B,fromWireType:function(d){var p=ee(d);return Dn(d),p},toWireType:function(d,p){return He(p)},argPackAdvance:8,readValueFromPointer:se,V:null})},n:function(u,B,d){d=Qn(d),B=rt(B),Jt(u,{name:B,fromWireType:function(p){return p},toWireType:function(p,w){return w},argPackAdvance:8,readValueFromPointer:Yl(B,d),V:null})},e:function(u,B,d,p,w){B=rt(B),w===-1&&(w=4294967295),w=Qn(d);var b=M=>M;if(p===0){var k=32-8*d;b=M=>M<<k>>>k}d=B.includes("unsigned")?function(M,F){return F>>>0}:function(M,F){return F},Jt(u,{name:B,fromWireType:b,toWireType:d,argPackAdvance:8,readValueFromPointer:Wl(B,w,p!==0),V:null})},b:function(u,B,d){function p(b){b>>=2;var k=D;return new w(c,k[b+1],k[b])}var w=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][B];d=rt(d),Jt(u,{name:d,fromWireType:p,argPackAdvance:8,readValueFromPointer:p},{ua:!0})},o:function(u,B){B=rt(B);var d=B==="std::string";Jt(u,{name:B,fromWireType:function(p){var w=D[p>>2],b=p+4;if(d)for(var k=b,M=0;M<=w;++M){var F=b+M;if(M==w||f[F]==0){if(k=k?h(f,k,F-k):"",_===void 0)var _=k;else _+="\0",_+=k;k=F+1}}else{for(_=Array(w),M=0;M<w;++M)_[M]=String.fromCharCode(f[b+M]);_=_.join("")}return Kt(p),_},toWireType:function(p,w){w instanceof ArrayBuffer&&(w=new Uint8Array(w));var b,k=typeof w=="string";if(k||w instanceof Uint8Array||w instanceof Uint8ClampedArray||w instanceof Int8Array||O("Cannot pass non-string to std::string"),d&&k){var M=0;for(b=0;b<w.length;++b){var F=w.charCodeAt(b);127>=F?M++:2047>=F?M+=2:55296<=F&&57343>=F?(M+=4,++b):M+=3}b=M}else b=w.length;if(M=Sn(4+b+1),F=M+4,D[M>>2]=b,d&&k){if(k=F,F=b+1,b=f,0<F){F=k+F-1;for(var _=0;_<w.length;++_){var G=w.charCodeAt(_);if(55296<=G&&57343>=G){var H=w.charCodeAt(++_);G=65536+((G&1023)<<10)|H&1023}if(127>=G){if(k>=F)break;b[k++]=G}else{if(2047>=G){if(k+1>=F)break;b[k++]=192|G>>6}else{if(65535>=G){if(k+2>=F)break;b[k++]=224|G>>12}else{if(k+3>=F)break;b[k++]=240|G>>18,b[k++]=128|G>>12&63}b[k++]=128|G>>6&63}b[k++]=128|G&63}}b[k]=0}}else if(k)for(k=0;k<b;++k)_=w.charCodeAt(k),255<_&&(Kt(F),O("String has UTF-16 code units that do not fit in 8 bits")),f[F+k]=_;else for(k=0;k<b;++k)f[F+k]=w[k];return p!==null&&p.push(Kt,M),M},argPackAdvance:8,readValueFromPointer:se,V:function(p){Kt(p)}})},i:function(u,B,d){if(d=rt(d),B===2)var p=jl,w=Vl,b=ql,k=()=>C,M=1;else B===4&&(p=Xl,w=Zl,b=zl,k=()=>D,M=2);Jt(u,{name:d,fromWireType:function(F){for(var _=D[F>>2],G=k(),H,P=F+4,At=0;At<=_;++At){var Y=F+4+At*B;(At==_||G[Y>>M]==0)&&(P=p(P,Y-P),H===void 0?H=P:(H+="\0",H+=P),P=Y+B)}return Kt(F),H},toWireType:function(F,_){typeof _!="string"&&O("Cannot pass non-string to C++ string type "+d);var G=b(_),H=Sn(4+G+B);return D[H>>2]=G>>M,w(_,H+4,G+B),F!==null&&F.push(Kt,H),H},argPackAdvance:8,readValueFromPointer:se,V:function(F){Kt(F)}})},k:function(u,B,d,p,w,b){Te[u]={name:rt(B),fa:xt(d,p),W:xt(w,b),ia:[]}},h:function(u,B,d,p,w,b,k,M,F,_){Te[u].ia.push({oa:rt(B),ta:d,ra:xt(p,w),sa:b,za:k,ya:xt(M,F),Aa:_})},C:function(u,B){B=rt(B),Jt(u,{va:!0,name:B,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(u,B,d,p,w){u=Ke[u],B=ee(B),d=tr(d);var b=[];return D[p>>2]=He(b),u(B,d,b,w)},t:function(u,B,d,p){u=Ke[u],B=ee(B),d=tr(d),u(B,d,null,p)},g:Dn,m:function(u,B){var d=Ac(u,B),p=d[0];B=p.name+"_$"+d.slice(1).map(function(k){return k.name}).join("_")+"$";var w=Ar[B];if(w!==void 0)return w;var b=Array(u-1);return w=tc((k,M,F,_)=>{for(var G=0,H=0;H<u-1;++H)b[H]=d[H+1].readValueFromPointer(_+G),G+=d[H+1].argPackAdvance;for(k=k[M].apply(k,b),H=0;H<u-1;++H)d[H+1].ma&&d[H+1].ma(b[H]);if(!p.va)return p.toWireType(F,k)}),Ar[B]=w},D:function(u){4<u&&(bt[u].ga+=1)},r:function(u){var B=ee(u);Cn(B),Dn(u)},c:function(){Z("")},x:function(u,B,d){f.copyWithin(u,B,B+d)},w:function(u){var B=f.length;if(u>>>=0,2147483648<u)return!1;for(var d=1;4>=d;d*=2){var p=B*(1+.2/d);p=Math.min(p,u+100663296);var w=Math;p=Math.max(u,p),w=w.min.call(w,2147483648,p+(65536-p%65536)%65536);t:{try{I.grow(w-c.byteLength+65535>>>16),R();var b=1;break t}catch{}b=void 0}if(b)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(u,B,d,p){for(var w=0,b=0;b<d;b++){var k=D[B>>2],M=D[B+4>>2];B+=8;for(var F=0;F<M;F++){var _=f[k+F],G=ec[u];_===0||_===10?((u===1?g:r)(h(G,0)),G.length=0):G.push(_)}w+=M}return D[p>>2]=w,0}};(function(){function u(w){A.asm=w.exports,I=A.asm.E,R(),N=A.asm.J,U.unshift(A.asm.F),st--,A.monitorRunDependencies&&A.monitorRunDependencies(st),st==0&&at&&(w=at,at=null,w())}function B(w){u(w.instance)}function d(w){return Ge().then(function(b){return WebAssembly.instantiate(b,p)}).then(function(b){return b}).then(w,function(b){r("failed to asynchronously prepare wasm: "+b),Z(b)})}var p={a:nc};if(st++,A.monitorRunDependencies&&A.monitorRunDependencies(st),A.instantiateWasm)try{return A.instantiateWasm(p,u)}catch(w){r("Module.instantiateWasm callback failed with error: "+w),n(w)}return function(){return l||typeof WebAssembly.instantiateStreaming!="function"||yt(ot)||typeof fetch!="function"?d(B):fetch(ot,{credentials:"same-origin"}).then(function(w){return WebAssembly.instantiateStreaming(w,p).then(B,function(b){return r("wasm streaming compile failed: "+b),r("falling back to ArrayBuffer instantiation"),d(B)})})}().catch(n),{}})(),A.___wasm_call_ctors=function(){return(A.___wasm_call_ctors=A.asm.F).apply(null,arguments)};var ir=A.___getTypeName=function(){return(ir=A.___getTypeName=A.asm.G).apply(null,arguments)};A.__embind_initialize_bindings=function(){return(A.__embind_initialize_bindings=A.asm.H).apply(null,arguments)};var Sn=A._malloc=function(){return(Sn=A._malloc=A.asm.I).apply(null,arguments)},Kt=A._free=function(){return(Kt=A._free=A.asm.K).apply(null,arguments)};A.dynCall_jiji=function(){return(A.dynCall_jiji=A.asm.L).apply(null,arguments)};var We;at=function u(){We||nr(),We||(at=u)};function nr(){function u(){if(!We&&(We=!0,A.calledRun=!0,!o)){if(St(U),i(A),A.onRuntimeInitialized&&A.onRuntimeInitialized(),A.postRun)for(typeof A.postRun=="function"&&(A.postRun=[A.postRun]);A.postRun.length;){var B=A.postRun.shift();nt.unshift(B)}St(nt)}}if(!(0<st)){if(A.preRun)for(typeof A.preRun=="function"&&(A.preRun=[A.preRun]);A.preRun.length;)Ut();St(J),0<st||(A.setStatus?(A.setStatus("Running..."),setTimeout(function(){setTimeout(function(){A.setStatus("")},1),u()},1)):u())}}if(A.preInit)for(typeof A.preInit=="function"&&(A.preInit=[A.preInit]);0<A.preInit.length;)A.preInit.pop()();return nr(),t.ready}})();let $=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),ke=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),yo=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),sA=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),pA=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),L=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),yA=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),jh=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Nt=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),wA=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),pt=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),mA=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),rn=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),wo=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),DA=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),vA=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),Ht=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),SA=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({});const Vh={ALIGN_AUTO:$.Auto,ALIGN_FLEX_START:$.FlexStart,ALIGN_CENTER:$.Center,ALIGN_FLEX_END:$.FlexEnd,ALIGN_STRETCH:$.Stretch,ALIGN_BASELINE:$.Baseline,ALIGN_SPACE_BETWEEN:$.SpaceBetween,ALIGN_SPACE_AROUND:$.SpaceAround,ALIGN_SPACE_EVENLY:$.SpaceEvenly,BOX_SIZING_BORDER_BOX:ke.BorderBox,BOX_SIZING_CONTENT_BOX:ke.ContentBox,DIMENSION_WIDTH:yo.Width,DIMENSION_HEIGHT:yo.Height,DIRECTION_INHERIT:sA.Inherit,DIRECTION_LTR:sA.LTR,DIRECTION_RTL:sA.RTL,DISPLAY_FLEX:pA.Flex,DISPLAY_NONE:pA.None,DISPLAY_CONTENTS:pA.Contents,EDGE_LEFT:L.Left,EDGE_TOP:L.Top,EDGE_RIGHT:L.Right,EDGE_BOTTOM:L.Bottom,EDGE_START:L.Start,EDGE_END:L.End,EDGE_HORIZONTAL:L.Horizontal,EDGE_VERTICAL:L.Vertical,EDGE_ALL:L.All,ERRATA_NONE:yA.None,ERRATA_STRETCH_FLEX_BASIS:yA.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:yA.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:yA.AbsolutePercentAgainstInnerSize,ERRATA_ALL:yA.All,ERRATA_CLASSIC:yA.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:jh.WebFlexBasis,FLEX_DIRECTION_COLUMN:Nt.Column,FLEX_DIRECTION_COLUMN_REVERSE:Nt.ColumnReverse,FLEX_DIRECTION_ROW:Nt.Row,FLEX_DIRECTION_ROW_REVERSE:Nt.RowReverse,GUTTER_COLUMN:wA.Column,GUTTER_ROW:wA.Row,GUTTER_ALL:wA.All,JUSTIFY_FLEX_START:pt.FlexStart,JUSTIFY_CENTER:pt.Center,JUSTIFY_FLEX_END:pt.FlexEnd,JUSTIFY_SPACE_BETWEEN:pt.SpaceBetween,JUSTIFY_SPACE_AROUND:pt.SpaceAround,JUSTIFY_SPACE_EVENLY:pt.SpaceEvenly,LOG_LEVEL_ERROR:mA.Error,LOG_LEVEL_WARN:mA.Warn,LOG_LEVEL_INFO:mA.Info,LOG_LEVEL_DEBUG:mA.Debug,LOG_LEVEL_VERBOSE:mA.Verbose,LOG_LEVEL_FATAL:mA.Fatal,MEASURE_MODE_UNDEFINED:rn.Undefined,MEASURE_MODE_EXACTLY:rn.Exactly,MEASURE_MODE_AT_MOST:rn.AtMost,NODE_TYPE_DEFAULT:wo.Default,NODE_TYPE_TEXT:wo.Text,OVERFLOW_VISIBLE:DA.Visible,OVERFLOW_HIDDEN:DA.Hidden,OVERFLOW_SCROLL:DA.Scroll,POSITION_TYPE_STATIC:vA.Static,POSITION_TYPE_RELATIVE:vA.Relative,POSITION_TYPE_ABSOLUTE:vA.Absolute,UNIT_UNDEFINED:Ht.Undefined,UNIT_POINT:Ht.Point,UNIT_PERCENT:Ht.Percent,UNIT_AUTO:Ht.Auto,WRAP_NO_WRAP:SA.NoWrap,WRAP_WRAP:SA.Wrap,WRAP_WRAP_REVERSE:SA.WrapReverse};function qh(e){function t(n,s,a){const g=n[s];n[s]=function(){for(var r=arguments.length,l=new Array(r),I=0;I<r;I++)l[I]=arguments[I];return a.call(this,g,...l)}}for(const n of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){const s={[Ht.Point]:e.Node.prototype[n],[Ht.Percent]:e.Node.prototype[`${n}Percent`],[Ht.Auto]:e.Node.prototype[`${n}Auto`]};t(e.Node.prototype,n,function(a){for(var g=arguments.length,r=new Array(g>1?g-1:0),l=1;l<g;l++)r[l-1]=arguments[l];const I=r.pop();let o,h;if(I==="auto")o=Ht.Auto,h=void 0;else if(typeof I=="object")o=I.unit,h=I.valueOf();else if(o=typeof I=="string"&&I.endsWith("%")?Ht.Percent:Ht.Point,h=parseFloat(I),I!==void 0&&!Number.isNaN(I)&&Number.isNaN(h))throw new Error(`Invalid value ${I} for ${n}`);if(!s[o])throw new Error(`Failed to execute "${n}": Unsupported unit '${I}'`);return h!==void 0?s[o].call(this,...r,h):s[o].call(this,...r)})}function A(n){return e.MeasureCallback.implement({measure:function(){const{width:s,height:a}=n(...arguments);return{width:s??NaN,height:a??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(n,s){return s?n.call(this,A(s)):this.unsetMeasureFunc()});function i(n){return e.DirtiedCallback.implement({dirtied:n})}return t(e.Node.prototype,"setDirtiedFunc",function(n,s){n.call(this,i(s))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(n,s)=>s?e.Node.createWithConfig(s):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let n=0,s=this.getChildCount();n<s;++n)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:sA.LTR;return n.call(this,s,a,g)}),{Config:e.Config,Node:e.Node,...Vh}}async function Xh(){return qh(await Wh())}let mo;function Zh(){return mo}function zh(e){mo=e}function Me(e,t){return e?typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?(t??(t=1),t*(parseFloat(e)/100)):Number.isNaN(parseFloat(e))?0:parseFloat(e):0}function oA(e){return typeof e=="number"?"number":e.endsWith("%")?"percentage":Number.isNaN(parseInt(e,10))?"keyword":"number"}function Re(e,t,A){return(t[e]-A[e])/2}function Do(e,t,A,i,n){const s=t==="percentage"?i[A]-n[A]:1;return Me(e)*s}function vo(e,t,A){const[i,n]=e,s=oA(i),a=oA(n),g={x:void 0,y:void 0};switch(i){case"top":g.y=0;break;case"bottom":g.y=t.height-A.height;break;case"center":n==="left"||n==="right"?g.y=Re("height",t,A):g.x=Re("width",t,A);break;case"left":g.x=0;break;case"right":g.x=t.width-A.width;break;default:{const r=n==="top"||n==="bottom"||a!=="keyword"?"width":"height",l=r==="width"?"x":"y";g[l]=Do(i,s,r,t,A)}}switch(n){case"top":g.y=0;break;case"bottom":g.y=t.height-A.height;break;case"center":g.y===void 0?g.y=Re("height",t,A):g.x=Re("width",t,A);break;case"left":g.x=0;break;case"right":g.x=t.width-A.width;break;default:{const r=g.y===void 0?"y":"x",l=r==="y"?"height":"width";g[r]=Do(n,a,l,t,A)}}return g}function _e(e,t,A,i){const n=e==="right"||e==="bottom",s=A==="percentage"?t*i:t;return n?-s:s}function $h(e,t,A){const[i,n,s,a]=e,g=oA(i),r=oA(n),l=oA(s),I=oA(a);if(r==="keyword"||I==="keyword")throw new Error("Invalid objectPosition value: second and fourth values must be numbers or percentages");if(g!=="keyword"||l!=="keyword")throw new Error("Invalid objectPosition value: first and third values must be keywords");const o=vo([i,s],t,A),h={...o},c=Me(n),E=Me(a);return i==="left"||i==="right"?h.x=o.x+_e(i,c,r,A.width):(i==="top"||i==="bottom")&&(h.y=o.y+_e(i,c,r,A.height)),s==="left"||s==="right"?h.x=o.x+_e(s,E,I,A.width):(s==="top"||s==="bottom")&&(h.y=o.y+_e(s,E,I,A.height)),h}function tl(e,t,A){const i=e[0],n={x:void 0,y:void 0};switch(i){case"top":n.y=0,n.x=(t.width-A.width)/2;break;case"bottom":n.y=t.height-A.height,n.x=(t.width-A.width)/2;break;case"left":n.x=0,n.y=(t.height-A.height)/2;break;case"right":n.x=t.width-A.width,n.y=(t.height-A.height)/2;break;case"center":n.x=(t.width-A.width)/2,n.y=(t.height-A.height)/2;break;default:{const a=oA(i)==="percentage"?t.width-A.width:1;n.x=Me(i)*a,n.y=(t.height-A.height)/2}}return n}function an(e,t,A){if(!e)return{x:0,y:0};const i=typeof e=="string"?e.split(" "):[e];switch(i.length){case 1:return tl(i,t,A);case 2:return vo(i,t,A);case 4:return $h(i,t,A);default:throw new Error("Invalid objectPosition value: must have 1, 2, or 4 values")}}const Al=new v.Bounds,gn={width:0,height:0};function So(e){const t=e.target.getLocalBounds(Al),A=e.target.scale;return gn.width=Math.abs(t.width*A.x),gn.height=Math.abs(t.height*A.y),gn}function bo(e,t,A=.49){return Math.abs(e-t)<A}const $A=new Map;function el(e,t=100,A){if(!$A.has(e)){let i=null;const n=(...s)=>{if($A.get(e).args=s,i)return;const a=()=>{i=null;const g=$A.get(e).args;e(...g)};t===0?a():i=setTimeout(a,t)};$A.set(e,{throttledFunction:n,args:null})}return $A.get(e).throttledFunction}var il=Object.defineProperty,nl=(e,t,A)=>t in e?il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,rA=(e,t,A)=>nl(e,typeof t!="symbol"?t+"":t,A);class xo{constructor(){rA(this,"autoUpdate",!0),rA(this,"_debugEnabled",!1),rA(this,"_debugRenderer",null),rA(this,"_throttledUpdateSize"),rA(this,"_throttle",100),rA(this,"_modificationCount",50)}async init(t){zh(await Xh());const{layout:A}=t??{},{autoUpdate:i,enableDebug:n,throttle:s,debugModificationCount:a}=A??{};n&&this.enableDebug(!0),i!==void 0&&(this.autoUpdate=i),this._throttle=s??this._throttle,this._throttledUpdateSize=el(g=>this._updateSize(g),this._throttle),this._modificationCount=a??this._modificationCount}async enableDebug(t=!this._debugEnabled){if(this._debugEnabled=t,!this._debugRenderer){const A=await Promise.resolve().then(()=>_l);this._debugRenderer=new A.DebugRenderer}this._debugEnabled||this._debugRenderer.reset()}update(t){this._debugEnabled&&this._debugRenderer&&(this._debugRenderer.reset(),t.addChild(this._debugRenderer.holder)),this._throttledUpdateSize(t),this.updateLayout(t)}prerender({container:t}){this.autoUpdate&&this.update(t)}_updateSize(t){const A=t._layout;if(A){const i=A.style;if(i.width==="intrinsic"||i.height==="intrinsic"){const n=So(A);if(i.width==="intrinsic"){const s=A.yoga.getWidth().value;bo(s,n.width)||(A.yoga.setWidth(n.width),A.invalidateRoot())}if(i.height==="intrinsic"){const s=A.yoga.getHeight().value;bo(s,n.height)||(A.yoga.setHeight(n.height),A.invalidateRoot())}}if(!t.visible){A._onChildRemoved();return}}for(let i=0;i<t.children.length;i++)this._updateSize(t.children[i])}updateLayout(t){var A,i,n,s;const a=t._layout;if(t.visible){if(a){const g=a.yoga,r=a.style,l=(A=t.parent)==null?void 0:A.isOverflowContainer;if(!((i=t.parent)==null?void 0:i._layout)&&!l&&a._isDirty&&(a._isDirty=!1,g.calculateLayout(r.width,r.height,g.getDirection()??sA.LTR)),g.hasNewLayout()||a._forceUpdate){g.markLayoutSeen(),a._forceUpdate=!1,a._computedLayout=g.getComputedLayout();const o=an(r.transformOrigin,a._computedLayout,{width:0,height:0});a._computedPixiLayout={...t.computeLayoutData(a._computedLayout),originX:o.x,originY:o.y},t.emit("layout",a),(n=t.onLayout)==null||n.call(t,a),t._onUpdate()}this._debugEnabled&&(a._styles.custom.debug||a._modificationCount>this._modificationCount&&a._styles.custom.debugHeat!==!1)&&((s=this._debugRenderer)==null||s.render(a))}for(let g=0;g<t.children.length;g++)this.updateLayout(t.children[g])}}destroy(){!this._debugEnabled&&this._debugRenderer&&this._debugRenderer.destroy()}}rA(xo,"extension",{type:[v.ExtensionType.WebGLSystem,v.ExtensionType.WebGPUSystem],name:"layout"});const ko={"flex-start":$.FlexStart,"flex-end":$.FlexEnd,center:$.Center,stretch:$.Stretch,"space-between":$.SpaceBetween,"space-around":$.SpaceAround,"space-evenly":$.SpaceEvenly},Mo={"flex-start":$.FlexStart,"flex-end":$.FlexEnd,center:$.Center,stretch:$.Stretch,baseline:$.Baseline},Ro={"border-box":ke.BorderBox,"content-box":ke.ContentBox},_o={ltr:sA.LTR,rtl:sA.RTL},Fo={none:pA.None,flex:pA.Flex,contents:pA.Contents},Go={row:Nt.Row,column:Nt.Column,"row-reverse":Nt.RowReverse,"column-reverse":Nt.ColumnReverse},No={wrap:SA.Wrap,nowrap:SA.NoWrap,"wrap-reverse":SA.WrapReverse},Ho={"flex-start":pt.FlexStart,"flex-end":pt.FlexEnd,center:pt.Center,"space-between":pt.SpaceBetween,"space-around":pt.SpaceAround,"space-evenly":pt.SpaceEvenly},Lo={visible:DA.Visible,hidden:DA.Hidden,scroll:DA.Scroll},Uo={absolute:vA.Absolute,relative:vA.Relative,static:vA.Static},sl={alignContent:(e,t)=>e.setAlignContent(ol(t)),alignItems:(e,t)=>e.setAlignItems(Oo(t)),alignSelf:(e,t)=>e.setAlignSelf(Oo(t)),aspectRatio:(e,t)=>e.setAspectRatio(t),borderBottomWidth:(e,t)=>e.setBorder(L.Bottom,t),borderEndWidth:(e,t)=>e.setBorder(L.End,t),borderLeftWidth:(e,t)=>e.setBorder(L.Left,t),borderRightWidth:(e,t)=>e.setBorder(L.Right,t),borderStartWidth:(e,t)=>e.setBorder(L.Start,t),borderTopWidth:(e,t)=>e.setBorder(L.Top,t),borderWidth:(e,t)=>e.setBorder(L.All,t),borderInlineWidth:(e,t)=>e.setBorder(L.Horizontal,t),borderBlockWidth:(e,t)=>e.setBorder(L.Vertical,t),bottom:(e,t)=>e.setPosition(L.Bottom,t),boxSizing:(e,t)=>e.setBoxSizing(rl(t)),direction:(e,t)=>e.setDirection(al(t)),display:(e,t)=>e.setDisplay(gl(t)),end:(e,t)=>e.setPosition(L.End,t),flex:(e,t)=>e.setFlex(t),flexBasis:(e,t)=>e.setFlexBasis(t),flexDirection:(e,t)=>e.setFlexDirection(hl(t)),rowGap:(e,t)=>e.setGap(wA.Row,t),gap:(e,t)=>e.setGap(wA.All,t),columnGap:(e,t)=>e.setGap(wA.Column,t),flexGrow:(e,t)=>e.setFlexGrow(t),flexShrink:(e,t)=>e.setFlexShrink(t),flexWrap:(e,t)=>e.setFlexWrap(ll(t)),height:(e,t)=>e.setHeight(t),justifyContent:(e,t)=>e.setJustifyContent(cl(t)),left:(e,t)=>e.setPosition(L.Left,t),margin:(e,t)=>e.setMargin(L.All,t),marginBottom:(e,t)=>e.setMargin(L.Bottom,t),marginEnd:(e,t)=>e.setMargin(L.End,t),marginLeft:(e,t)=>e.setMargin(L.Left,t),marginRight:(e,t)=>e.setMargin(L.Right,t),marginStart:(e,t)=>e.setMargin(L.Start,t),marginTop:(e,t)=>e.setMargin(L.Top,t),marginInline:(e,t)=>e.setMargin(L.Horizontal,t),marginBlock:(e,t)=>e.setMargin(L.Vertical,t),maxHeight:(e,t)=>e.setMaxHeight(t),maxWidth:(e,t)=>e.setMaxWidth(t),minHeight:(e,t)=>e.setMinHeight(t),minWidth:(e,t)=>e.setMinWidth(t),overflow:(e,t)=>e.setOverflow(Il(t)),padding:(e,t)=>e.setPadding(L.All,t),paddingBottom:(e,t)=>e.setPadding(L.Bottom,t),paddingEnd:(e,t)=>e.setPadding(L.End,t),paddingLeft:(e,t)=>e.setPadding(L.Left,t),paddingRight:(e,t)=>e.setPadding(L.Right,t),paddingStart:(e,t)=>e.setPadding(L.Start,t),paddingTop:(e,t)=>e.setPadding(L.Top,t),paddingInline:(e,t)=>e.setPadding(L.Horizontal,t),paddingBlock:(e,t)=>e.setPadding(L.Vertical,t),position:(e,t)=>e.setPositionType(ul(t)),right:(e,t)=>e.setPosition(L.Right,t),start:(e,t)=>e.setPosition(L.Start,t),top:(e,t)=>e.setPosition(L.Top,t),insetInline:(e,t)=>e.setPosition(L.Horizontal,t),insetBlock:(e,t)=>e.setPosition(L.Vertical,t),inset:(e,t)=>e.setPosition(L.All,t),width:(e,t)=>e.setWidth(t)};function ol(e){if(e in ko)return ko[e];throw new Error(`"${e}" is not a valid value for alignContent`)}function Oo(e){if(e in Mo)return Mo[e];throw new Error(`"${e}" is not a valid value for alignItems`)}function rl(e){if(e in Ro)return Ro[e];throw new Error(`"${e}" is not a valid value for boxSizing`)}function al(e){if(e in _o)return _o[e];throw new Error(`"${e}" is not a valid value for direction`)}function gl(e){if(e in Fo)return Fo[e];throw new Error(`"${e}" is not a valid value for display`)}function hl(e){if(e in Go)return Go[e];throw new Error(`"${e}" is not a valid value for flexDirection`)}function ll(e){if(e in No)return No[e];throw new Error(`"${e}" is not a valid value for flexWrap`)}function cl(e){if(e in Ho)return Ho[e];throw new Error(`"${e}" is not a valid value for justifyContent`)}function Il(e){if(e in Lo)return Lo[e];throw new Error(`"${e}" is not a valid value for overflow`)}function ul(e){if(e in Uo)return Uo[e];throw new Error(`"${e}" is not a valid value for position`)}function Bl(e,t={}){for(const[A,i]of Object.entries(t))try{const n=sl[A];n&&n(e,i)}catch{}if(t.width!==void 0){const A=t.left!==void 0&&t.right!==void 0?"auto":t.width;e.setWidth(A)}if(t.height!==void 0){const A=t.top!==void 0&&t.bottom!==void 0?"auto":t.height;e.setHeight(A)}}function El(e,t){let i={...e._styles.custom,...t};i={...{...bA.defaultStyle.shared,...e.target instanceof v.ViewContainer||i.isLeaf||bA.defaultStyle.shared.isLeaf?bA.defaultStyle.leaf:bA.defaultStyle.container},...i};const s={...i},a=i.width==="intrinsic",g=i.height==="intrinsic";if(a||g){const{width:r,height:l}=So(e);a&&(s.width=r),g&&(s.height=l)}return{custom:i,yoga:s}}function fl(e,t){var A;let i=t.layout,n=-1;if(!i&&t.isOverflowContainer&&(i=(A=t.parent)==null?void 0:A.layout,n=t.children.indexOf(e.target),t=t.parent),i){const s=e.yoga.getParent();if(s&&s.removeChild(e.yoga),t.children.indexOf(e.target)===t.children.length-1&&n===-1){i.yoga.insertChild(e.yoga,i.yoga.getChildCount());return}for(let a=0;a<t.children.length;a++){const g=t.children[a];if(g.layout&&g.visible&&n++,g===e.target)break}i.yoga.insertChild(e.yoga,n)}}function Cl(e){const t=e.yoga.getParent();t&&t.removeChild(e.yoga)}var Ql=Object.defineProperty,dl=(e,t,A)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,vt=(e,t,A)=>dl(e,typeof t!="symbol"?t+"":t,A);class bA{constructor({target:t}){vt(this,"yoga"),vt(this,"target"),vt(this,"_isDirty",!1),vt(this,"_computedPixiLayout",{x:0,y:0,offsetX:0,offsetY:0,scaleX:1,scaleY:1,originX:0,originY:0}),vt(this,"_computedLayout",{left:0,right:0,top:0,bottom:0,width:0,height:0}),vt(this,"_styles",{custom:{},yoga:{}}),vt(this,"_modificationCount",0),vt(this,"_forceUpdate",!1),vt(this,"hasParent",!1),vt(this,"_trackedStyleKeys",["borderRadius","borderColor","backgroundColor","objectFit","objectPosition","transformOrigin","isLeaf"]),this.target=t,this.yoga=Zh().Node.create(),t.on("added",this._onChildAdded,this),t.on("removed",this._onChildRemoved,this),t.on("destroyed",this.destroy,this)}get style(){return this._styles.custom}get computedLayout(){return this._computedLayout}get computedPixiLayout(){return this._computedPixiLayout}get realX(){return this.target.localTransform.tx}get realY(){return this.target.localTransform.ty}get realScaleX(){return this.target.localTransform.a}get realScaleY(){return this.target.localTransform.d}setStyle(t){const A=El(this,t),i=JSON.stringify(this._styles.custom)!==JSON.stringify(A.custom),n=JSON.stringify(this._styles.yoga)!==JSON.stringify(A.yoga),s=i||n,a=this._trackedStyleKeys.some(g=>A.custom[g]!==this._styles.custom[g]);this._styles=A,a&&(this._forceUpdate=!0),s&&(Bl(this.yoga,this._styles.yoga),this.target._onUpdate(),this.invalidateRoot())}invalidateRoot(){const t=this.getRoot();t._layout._isDirty=!0,t._onUpdate(),this._modificationCount++}forceUpdate(){this._forceUpdate=!0}getRoot(){var t,A;let i=this.target;for(;(t=i.parent)!=null&&t._layout||(A=i.parent)!=null&&A.isOverflowContainer;)i=i.parent,i.isOverflowContainer&&(i=i.parent);return i}_onChildAdded(t){this.hasParent||(this.hasParent=!0,this.invalidateRoot(),fl(this,t))}_onChildRemoved(){this.hasParent&&(this.hasParent=!1,this.invalidateRoot(),Cl(this))}destroy(){this.invalidateRoot(),this.yoga.free(),this.target.off("added",this._onChildAdded,this),this.target.off("removed",this._onChildRemoved,this),this._styles=null,this._computedPixiLayout=null,this._computedLayout=null,this.target=null,this.hasParent=!1}}vt(bA,"defaultStyle",{leaf:{width:"intrinsic",height:"intrinsic"},container:{width:"auto",height:"auto"},shared:{transformOrigin:"50%",objectPosition:"center",flexShrink:1,flexDirection:"row",alignContent:"stretch",flexWrap:"nowrap",overflow:"visible"}});function To(e,t,A){let i=1,n=1;switch(e){case"fill":i=t.width/A.width,n=t.height/A.height;break;case"contain":{const s=Math.min(t.width/A.width,t.height/A.height);i=s,n=s;break}case"cover":{const s=Math.max(t.width/A.width,t.height/A.height);i=s,n=s;break}case"none":i=1,n=1;break;case"scale-down":{const s=Math.min(1,t.width/A.width,t.height/A.height);i=s,n=s;break}}return{offsetScaleX:i,offsetScaleY:n}}function Jo(e,t,A,i){const n=e.getLocalBounds(),s=e.layout.style.objectFit||A;let{offsetScaleX:a,offsetScaleY:g}=To(s,t,n);const r={width:n.width*a,height:n.height*g};let{x:l,y:I}=an(e.layout.style.objectPosition,t,r);i?(l+=n.width*a*i._x,I+=n.height*g*i._y):(l-=n.minX*a,I-=n.minY*g);const o=e.layout.style.applySizeDirectly;return(o===!0||o==null&&(e instanceof v.TilingSprite||e instanceof v.NineSliceSprite))&&(e.width=n.width*a,e.height=n.height*g,a=1,g=1),{x:t.left,y:t.top,offsetX:l,offsetY:I,scaleX:a,scaleY:g}}const hn=Object.getOwnPropertyDescriptor(v.Container.prototype,"visible"),pl={_layout:null,get layout(){return this._layout??null},set layout(e){if(e=e===!0?{}:e,!e){this._layout&&(this._layout.destroy(),this._layout=null,this.updateLocalTransform=v.Container.prototype.updateLocalTransform,Object.defineProperty(v.Container.prototype,"visible",hn));return}this._layout||(this._layout=new bA({target:this}),Object.defineProperty(v.Container.prototype,"visible",{...hn,set(t){hn.set.call(this,t),this.layout&&(t&&this.parent?this.layout._onChildAdded(this.parent):this.layout._onChildRemoved())}}),this.parent&&this.visible&&this._layout._onChildAdded(this.parent)),this._layout.setStyle(e),this.updateLocalTransform=this.updateLocalTransformWithLayout,this._onUpdate()},updateLocalTransformWithLayout(){const e=this._didContainerChangeTick;if(this._didLocalTransformChangeId===e)return;this._didLocalTransformChangeId=e;const t=this._layout,{x:A,y:i,offsetX:n,offsetY:s,scaleX:a,scaleY:g,originX:r,originY:l}=t._computedPixiLayout,I=this.localTransform,{rotation:o,skew:h,scale:c,position:E}=this,f=o+h._y,Q=o-h._x,C=Math.cos(f)*c._x,y=Math.sin(f)*c._x,D=-Math.sin(Q)*c._y,m=Math.cos(Q)*c._y,S=E._x+A-r*C-l*D,R=E._y+i-r*y-l*m;I.a=C*a,I.b=y*a,I.c=D*g,I.d=m*g,I.tx=S+(n*C+s*D)+r,I.ty=R+(n*y+s*m)+l},computeLayoutData(e){const t=this._layout,{isLeaf:A}=t._styles.custom;return A?Jo(this,e,"fill"):{x:e.left,y:e.top,offsetX:0,offsetY:0,scaleX:1,scaleY:1}}};v.extensions.mixin(v.Container,pl);const Po=new v.Point(0,0),yl={computeLayoutData(e){const t=this._style;Po.copyFrom(this.scale),this.scale=1,t.wordWrap&&(t.wordWrapWidth=e.width);let A=this.getLocalBounds();const i=this.layout.style.objectFit||"scale-down",{offsetScaleX:n,offsetScaleY:s}=To(i,e,A);t.wordWrap&&(t.wordWrapWidth=e.width/Math.min(1,Math.max(n,s))),A=this.getLocalBounds();const a={width:A.width*n,height:A.height*s};let{x:g,y:r}=an(this.layout.style.objectPosition,e,a);return g+=A.width*n*this.anchor._x,r+=A.height*s*this.anchor._y,this.layout.style.applySizeDirectly===!0&&(this.width=A.width*n,this.height=A.height*s),this.scale.copyFrom(Po),{x:e.left,y:e.top,offsetX:g,offsetY:r,scaleX:n,scaleY:s}}};v.extensions.mixin(v.AbstractText,yl);const ln=Object.getOwnPropertyDescriptor(v.AbstractText.prototype,"text");Object.defineProperty(v.AbstractText.prototype,"text",{...ln,set(e){var t;const A=ln.get.call(this);ln.set.call(this,e),A!==e&&((t=this.layout)==null||t.forceUpdate())}});const wl={computeLayoutData(e){return Jo(this,e,"fill",this._anchor)}};v.extensions.mixin(v.ViewContainer,wl);var Lt=(e=>(e.Margin="margin",e.Padding="padding",e.Border="border",e.Flex="flex",e.Content="content",e))(Lt||{});function cn(e,t){const A=`getComputed${t.charAt(0).toUpperCase()+t.slice(1)}`;return{top:e.yoga[A](L.Top),right:e.yoga[A](L.Right),bottom:e.yoga[A](L.Bottom),left:e.yoga[A](L.Left)}}function ml(e,t){const{width:A,height:i}=e.computedLayout,n=cn(e,"margin"),s=cn(e,"border"),a=cn(e,"padding"),g=t.get("margin");g.outer.x=-n.left,g.outer.y=-n.top,g.outer.width=A+n.left+n.right,g.outer.height=i+n.top+n.bottom,g.inner.x=0,g.inner.y=0,g.inner.width=A,g.inner.height=i;const r=t.get("border");r.outer.x=0,r.outer.y=0,r.outer.width=A,r.outer.height=i,r.inner.x=s.left,r.inner.y=s.top,r.inner.width=A-s.left-s.right,r.inner.height=i-s.top-s.bottom;const l=t.get("padding");l.outer.copyFrom(r.inner),l.inner.x=a.left+s.left,l.inner.y=a.top+s.top,l.inner.width=A-a.left-a.right-s.left-s.right,l.inner.height=i-a.top-a.bottom-s.top-s.bottom,Dl(e,t)}function Dl(e,t){var A;const i=t.get("flex"),n=t.get("padding");i.outer.copyFrom(n.inner);const s=new v.Bounds,a=e.yoga.getChildCount();for(let r=0;r<a;r++){const I=e.yoga.getChild(r).getComputedLayout();s.addRect(new v.Rectangle(I.left,I.top,I.width,I.height))}const g=e.yoga.getFlexDirection();g===Nt.Column||g===Nt.ColumnReverse?(s.width=i.outer.width,s.x=i.outer.x):(s.height=i.outer.height,s.y=i.outer.y),(A=i.inner)==null||A.copyFrom(s.rectangle),t.get("content").outer.copyFrom(s.rectangle)}var vl=Object.defineProperty,Sl=(e,t,A)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,Ko=(e,t,A)=>Sl(e,typeof t!="symbol"?t+"":t,A);function bl(e,t,A){const i=Math.round(e[0]+(t[0]-e[0])*A),n=Math.round(e[1]+(t[1]-e[1])*A),s=Math.round(e[2]+(t[2]-e[2])*A);return`rgb(${i},${n},${s})`}class xl extends v.Container{constructor(){super(),Ko(this,"graphics"),Ko(this,"heatGraphics"),this.graphics=new Map,Object.values(Lt).forEach(t=>{const A=new v.Graphics;this.graphics.set(t,A),this.addChild(A)}),this.heatGraphics=new v.Graphics,this.addChild(this.heatGraphics)}init(t){const{target:A,alpha:i,heat:n}=t;t.heatOnly||Object.entries(t).forEach(([g,r])=>{if(g==="target"||g==="alpha"||g==="heat"||g==="heatOnly")return;r=r;const l=this.graphics.get(g);if(!(!l||!r.draw))if(r.inner)this.drawCutBox(l,r.outer,r.inner,r.color,i);else{const{x:I,y:o,width:h,height:c}=r.outer;l.rect(I,o,h,Math.max(c,1)),l.fill({color:r.color,alpha:i})}});const{invalidationCount:s,draw:a}=n;if(s>0&&a){const r=Math.min(s/20,1),l=t[Lt.Margin],h=bl([255,255,0],[255,0,0],r);this.heatGraphics.rect(l.outer.x,l.outer.y,l.outer.width,l.outer.height),this.heatGraphics.fill({color:h,alpha:Math.min(.3,r)}),this.heatGraphics.stroke({color:h,alpha:Math.max(.3,r),pixelLine:!0})}this.position.set(A.x,A.y)}reset(){this.graphics.forEach(t=>t.clear()),this.heatGraphics.clear(),this.removeFromParent()}drawCutBox(t,A,i,n,s){const{x:a,y:g,width:r,height:l}=A,{x:I,y:o,width:h,height:c}=i;t.rect(a,g,r,l),t.fill({color:n,alpha:s}),t.rect(I,o,h,c),t.cut()}}var kl=Object.defineProperty,Ml=(e,t,A)=>t in e?kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A,Fe=(e,t,A)=>Ml(e,typeof t!="symbol"?t+"":t,A);class Rl{constructor(){Fe(this,"holder",new v.Container),Fe(this,"regions",new Map),Fe(this,"colors",{[Lt.Margin]:"#B68655",[Lt.Padding]:"#BAC57F",[Lt.Border]:"#E7C583",[Lt.Content]:"#89B1BE",[Lt.Flex]:"#6E28D9"}),Fe(this,"alpha",.75),Object.values(Lt).forEach(t=>{this.regions.set(t,{outer:new v.Rectangle,inner:new v.Rectangle})}),this.holder.__devtoolIgnore=!0,this.holder.__devtoolIgnoreChildren=!0,this.holder.eventMode="none",this.holder.interactiveChildren=!1}reset(){for(let t=this.holder.children.length-1;t>=0;t--){const A=this.holder.children[t];v.BigPool.return(A)}}render(t){ml(t,this.regions);const A=Object.values(Lt).reduce((g,r)=>{const l=this.regions.get(r);if(!l)return g;const I=`debugDraw${r.charAt(0).toUpperCase()}${r.slice(1)}`;return g[r]={...l,color:this.colors[r],draw:t._styles.custom[I]??!0},g},{}),{left:i,top:n}=t.computedLayout,s=t.target.getGlobalPosition(),a=v.BigPool.get(xl,{...A,target:{x:s.x+i,y:s.y+n},alpha:this.alpha,heat:{invalidationCount:t._modificationCount,draw:t._styles.custom.debugHeat!==!1},heatOnly:!t._styles.custom.debug});this.holder.addChildAt(a,0)}destroy(){this.reset(),this.holder.destroy(),this.regions.clear()}}const _l=Object.freeze(Object.defineProperty({__proto__:null,DebugRenderer:Rl},Symbol.toStringTag,{value:"Module"}));v.extensions.add(xo);const Fl=async(e,t,A)=>{const i=new v.Application;await i.init({resizeTo:e,autoStart:!1,antialias:!0,...A??{}});const n=await ct(t);if(n.tag!="Canvas")throw new Error("Canvas is required");n.render(e,i);const{backgroundColor:s}=Bt(n.props,{backgroundColor:"black"});return i.renderer.background.color=s(),{canvasElement:n,app:i}},Gl={linear:Xa,easeIn:yi,easeInOut:Us,easeOut:Za,circIn:Os,circInOut:za,circOut:Ts,backIn:wi,backInOut:tg,backOut:$a,anticipate:Ag,bounceIn:sg,bounceInOut:og,bounceOut:ye};class Nl{constructor(t,A,i,n,s,a,g=0){this.x0=t,this.y0=A,this.x1=i,this.y1=n,this.x2=s,this.y2=a,this.focalPoint=g,this.gradient=null,this.texture=null,this.size=600,this.size=t;const r=this.size*.5;this.canvas=v.DOMAdapter.get().createCanvas(),this.canvas.width=this.size,this.canvas.height=this.size,this.ctx=this.canvas.getContext("2d"),this.ctx&&(this.gradient=this.ctx.createRadialGradient(r*(1-g),r,0,r,r,r-.5))}addColorStop(t,A){this.gradient&&this.gradient.addColorStop(t,A)}render({translate:t}={}){const{x0:A,y0:i,x1:n,y1:s,x2:a,y2:g,focalPoint:r}=this,l=this.size;if(this.ctx&&this.gradient){this.ctx.fillStyle=this.gradient,this.ctx.fillRect(0,0,l,l),this.texture=new v.Texture({source:new v.ImageSource({resource:this.canvas,addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"})});const I=new v.Matrix,o=Math.sqrt((n-A)*(n-A)+(s-i)*(s-i)),h=Math.sqrt((a-A)*(a-A)+(g-i)*(g-i)),c=Math.atan2(s-i,n-A),E=o/l,f=h/l;I.rotate(-c),I.scale(E,f),t&&I.translate(t.x,t.y),this.transform=I}return{texture:this.texture,matrix:this.transform}}}return x.ArraySubject=UA,x.Button=Kh,x.ButtonState=po,x.Canvas=_g,x.Circle=oo,x.Container=qA,x.ControlsBase=Ee,x.ControlsDirective=Vs,x.DOMContainer=Ph,x.DOMElement=Qo,x.DisplayObject=mt,x.Drag=to,x.Drop=$s,x.EVENTS=no,x.Easing=Gl,x.Ellipse=ro,x.Flash=io,x.GamepadControls=ls,x.Graphics=Xt,x.Howl=bg,x.Howler=iA.Howler,x.Input=ss,x.Joystick=Yh,x.JoystickControls=cs,x.KeyboardControls=as,x.Mesh=Ug,x.NineSliceSprite=Oh,x.ObjectSubject=OA,x.ParticlesEmitter=$g,x.RadialGradient=Nl,x.Rect=so,x.Scene=Tg,x.Scheduler=qs,x.Shake=eo,x.Sound=zs,x.Sprite=on,x.Svg=Hg,x.Text=Bo,x.TilingSprite=ih,x.Transition=Ao,x.Triangle=Ng,x.Utils=na,x.Video=th,x.Viewport=Lh,x.ViewportFollow=Xs,x.animatedSequence=mg,x.animatedSignal=vi,x.bootstrapCanvas=Fl,x.computed=Ct,x.cond=vg,x.createComponent=ut,x.effect=it,x.h=ct,x.isAnimatedSignal=QA,x.isArraySubject=Ea,x.isComputed=CA,x.isElement=Qt,x.isElementFrozen=_t,x.isObjectSubject=fa,x.isObservable=Or,x.isPrimitive=bi,x.isSignal=T,x.isTrigger=VA,x.linkedSignal=Is,x.loop=Dg,x.mount=_i,x.on=De,x.registerComponent=ht,x.signal=W,x.tick=Og,x.trigger=Mg,x.untracked=hi,x.useDefineProps=ki,x.useProps=Bt,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),x}({},PIXI);
|
|
29
29
|
//# sourceMappingURL=index.global.js.map
|