canvasengine 2.0.0-beta.56 → 2.0.0-beta.59

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.
@@ -1,5 +1,5 @@
1
- var CanvasEngine=(function(x,D){"use strict";var Re,Fe;var qA=typeof document<"u"?document.currentScript:null;function Mr(A){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(A){for(const e in A)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(A,e);Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>A[e]})}}return t.default=A,Object.freeze(t)}function Rr(A,t){for(var e=0;e<t.length;e++){const i=t[e];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in A)){const s=Object.getOwnPropertyDescriptor(i,n);s&&Object.defineProperty(A,n,s.get?s:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}const Fr=Mr(D);var XA=function(A,t){return XA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},XA(A,t)};function ie(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");XA(A,t);function e(){this.constructor=A}A.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function _r(A,t,e,i){function n(s){return s instanceof e?s:new e(function(r){r(s)})}return new(e||(e=Promise))(function(s,r){function a(u){try{c(i.next(u))}catch(o){r(o)}}function h(u){try{c(i.throw(u))}catch(o){r(o)}}function c(u){u.done?s(u.value):n(u.value).then(a,h)}c((i=i.apply(A,t||[])).next())})}function Pn(A,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(c){return function(u){return h([c,u])}}function h(c){if(i)throw new TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(e=0)),e;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){e.label=c[1];break}if(c[0]===6&&e.label<s[1]){e.label=s[1],s=c;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(c);break}s[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(A,e)}catch(u){c=[6,u],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Ie(A){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&A[t],i=0;if(e)return e.call(A);if(A&&typeof A.length=="number")return{next:function(){return A&&i>=A.length&&(A=void 0),{value:A&&A[i++],done:!A}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(A,t){var e=typeof Symbol=="function"&&A[Symbol.iterator];if(!e)return A;var i=e.call(A),n,s=[],r;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(r)throw r.error}}return s}function Le(A,t,e){if(e||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 A.concat(s||Array.prototype.slice.call(t))}function de(A){return this instanceof de?(this.v=A,this):new de(A)}function Nr(A,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(A,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",r),n[Symbol.asyncIterator]=function(){return this},n;function r(g){return function(I){return Promise.resolve(I).then(g,o)}}function a(g,I){i[g]&&(n[g]=function(B){return new Promise(function(C,E){s.push([g,B,C,E])>1||h(g,B)})},I&&(n[g]=I(n[g])))}function h(g,I){try{c(i[g](I))}catch(B){l(s[0][3],B)}}function c(g){g.value instanceof de?Promise.resolve(g.value.v).then(u,o):l(s[0][2],g)}function u(g){h("next",g)}function o(g){h("throw",g)}function l(g,I){g(I),s.shift(),s.length&&h(s[0][0],s[0][1])}}function Gr(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=A[Symbol.asyncIterator],e;return t?t.call(A):(A=typeof Ie=="function"?Ie(A):A[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=A[s]&&function(r){return new Promise(function(a,h){r=A[s](r),n(a,h,r.done,r.value)})}}function n(s,r,a,h){Promise.resolve(h).then(function(c){s({value:c,done:a})},r)}}typeof SuppressedError=="function"&&SuppressedError;function et(A){return typeof A=="function"}function Jn(A){var t=function(i){Error.call(i),i.stack=new Error().stack},e=A(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ZA=Jn(function(A){return function(e){A(this),this.message=e?e.length+` errors occurred during unsubscription:
2
- `+e.map(function(i,n){return n+1+") "+i.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function zA(A,t){if(A){var e=A.indexOf(t);0<=e&&A.splice(e,1)}}var lA=(function(){function A(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return A.prototype.unsubscribe=function(){var t,e,i,n,s;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r))try{for(var a=Ie(r),h=a.next();!h.done;h=a.next()){var c=h.value;c.remove(this)}}catch(B){t={error:B}}finally{try{h&&!h.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else r.remove(this);var u=this.initialTeardown;if(et(u))try{u()}catch(B){s=B instanceof ZA?B.errors:[B]}var o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Ie(o),g=l.next();!g.done;g=l.next()){var I=g.value;try{Wn(I)}catch(B){s=s??[],B instanceof ZA?s=Le(Le([],He(s)),He(B.errors)):s.push(B)}}}catch(B){i={error:B}}finally{try{g&&!g.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(s)throw new ZA(s)}},A.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Wn(t);else{if(t instanceof A){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},A.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},A.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},A.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&zA(e,t)},A.prototype.remove=function(t){var e=this._finalizers;e&&zA(e,t),t instanceof A&&t._removeParent(this)},A.EMPTY=(function(){var t=new A;return t.closed=!0,t})(),A})(),Kn=lA.EMPTY;function Yn(A){return A instanceof lA||A&&"closed"in A&&et(A.remove)&&et(A.add)&&et(A.unsubscribe)}function Wn(A){et(A)?A():A.unsubscribe()}var Hr={Promise:void 0},Lr={setTimeout:function(A,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,Le([A,t],He(e)))},clearTimeout:function(A){return clearTimeout(A)},delegate:void 0};function Vn(A){Lr.setTimeout(function(){throw A})}function jn(){}function hA(A){A()}var $A=(function(A){ie(t,A);function t(e){var i=A.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Yn(e)&&e.add(i)):i.destination=Or,i}return t.create=function(e,i,n){return new Ue(e,i,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,A.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(lA),Ur=(function(){function A(t){this.partialObserver=t}return A.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){cA(i)}},A.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){cA(i)}else cA(t)},A.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){cA(e)}},A})(),Ue=(function(A){ie(t,A);function t(e,i,n){var s=A.call(this)||this,r;return et(e)||!e?r={next:e??void 0,error:i??void 0,complete:n??void 0}:r=e,s.destination=new Ur(r),s}return t})($A);function cA(A){Vn(A)}function Tr(A){throw A}var Or={closed:!0,next:jn,error:Tr,complete:jn},ti=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ei(A){return A}function Pr(A){return A.length===0?ei:A.length===1?A[0]:function(e){return A.reduce(function(i,n){return n(i)},e)}}var $=(function(){function A(t){t&&(this._subscribe=t)}return A.prototype.lift=function(t){var e=new A;return e.source=this,e.operator=t,e},A.prototype.subscribe=function(t,e,i){var n=this,s=Kr(t)?t:new Ue(t,e,i);return hA(function(){var r=n,a=r.operator,h=r.source;s.add(a?a.call(s,h):h?n._subscribe(s):n._trySubscribe(s))}),s},A.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},A.prototype.forEach=function(t,e){var i=this;return e=qn(e),new e(function(n,s){var r=new Ue({next:function(a){try{t(a)}catch(h){s(h),r.unsubscribe()}},error:s,complete:n});i.subscribe(r)})},A.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},A.prototype[ti]=function(){return this},A.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Pr(t)(this)},A.prototype.toPromise=function(t){var e=this;return t=qn(t),new t(function(i,n){var s;e.subscribe(function(r){return s=r},function(r){return n(r)},function(){return i(s)})})},A.create=function(t){return new A(t)},A})();function qn(A){var t;return(t=A??Hr.Promise)!==null&&t!==void 0?t:Promise}function Jr(A){return A&&et(A.next)&&et(A.error)&&et(A.complete)}function Kr(A){return A&&A instanceof $A||Jr(A)&&Yn(A)}function Yr(A){return et(A?.lift)}function Be(A){return function(t){if(Yr(t))return t.lift(function(e){try{return A(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function gA(A,t,e,i,n){return new Wr(A,t,e,i,n)}var Wr=(function(A){ie(t,A);function t(e,i,n,s,r,a){var h=A.call(this,e)||this;return h.onFinalize=r,h.shouldUnsubscribe=a,h._next=i?function(c){try{i(c)}catch(u){e.error(u)}}:A.prototype._next,h._error=s?function(c){try{s(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:A.prototype._error,h._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:A.prototype._complete,h}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;A.prototype.unsubscribe.call(this),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t})($A),Vr=Jn(function(A){return function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ne=(function(A){ie(t,A);function t(){var e=A.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Xn(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Vr},t.prototype.next=function(e){var i=this;hA(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var r=Ie(i.currentObservers),a=r.next();!a.done;a=r.next()){var h=a.value;h.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(s=r.return)&&s.call(r)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var i=this;hA(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var n=i.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;hA(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.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 e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),A.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,n=this,s=n.hasError,r=n.isStopped,a=n.observers;return s||r?Kn:(this.currentObservers=null,a.push(e),new lA(function(){i.currentObservers=null,zA(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,n=i.hasError,s=i.thrownError,r=i.isStopped;n?e.error(s):r&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,i){return new Xn(e,i)},t})($),Xn=(function(A){ie(t,A);function t(e,i){var n=A.call(this)||this;return n.destination=e,n.source=i,n}return t.prototype.next=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)},t.prototype.error=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:Kn},t})(ne),se=(function(A){ie(t,A);function t(e){var i=A.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=A.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,n=e.thrownError,s=e._value;if(i)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){A.prototype.next.call(this,this._value=e)},t})(ne),Zn={now:function(){return(Zn.delegate||Date).now()},delegate:void 0},jr=(function(A){ie(t,A);function t(e,i,n){e===void 0&&(e=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Zn);var s=A.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,n=i.isStopped,s=i._buffer,r=i._infiniteTimeWindow,a=i._timestampProvider,h=i._windowTime;n||(s.push(e),!r&&s.push(a.now()+h)),this._trimBuffer(),A.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),n=this,s=n._infiniteTimeWindow,r=n._buffer,a=r.slice(),h=0;h<a.length&&!e.closed;h+=s?1:2)e.next(a[h]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,n=e._timestampProvider,s=e._buffer,r=e._infiniteTimeWindow,a=(r?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!r){for(var h=n.now(),c=0,u=1;u<s.length&&s[u]<=h;u+=2)c=u;c&&s.splice(0,c+1)}},t})(ne);function qr(A){return A&&et(A.schedule)}function zn(A){return A[A.length-1]}function Xr(A){return et(zn(A))?A.pop():void 0}function Zr(A){return qr(zn(A))?A.pop():void 0}var $n=(function(A){return A&&typeof A.length=="number"&&typeof A!="function"});function ts(A){return et(A?.then)}function es(A){return et(A[ti])}function As(A){return Symbol.asyncIterator&&et(A?.[Symbol.asyncIterator])}function is(A){return new TypeError("You provided "+(A!==null&&typeof A=="object"?"an invalid object":"'"+A+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function zr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ns=zr();function ss(A){return et(A?.[ns])}function os(A){return Nr(this,arguments,function(){var e,i,n,s;return Pn(this,function(r){switch(r.label){case 0:e=A.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,de(e.read())];case 3:return i=r.sent(),n=i.value,s=i.done,s?[4,de(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,de(n)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function rs(A){return et(A?.getReader)}function Ee(A){if(A instanceof $)return A;if(A!=null){if(es(A))return $r(A);if($n(A))return ta(A);if(ts(A))return ea(A);if(As(A))return as(A);if(ss(A))return Aa(A);if(rs(A))return ia(A)}throw is(A)}function $r(A){return new $(function(t){var e=A[ti]();if(et(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ta(A){return new $(function(t){for(var e=0;e<A.length&&!t.closed;e++)t.next(A[e]);t.complete()})}function ea(A){return new $(function(t){A.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Vn)})}function Aa(A){return new $(function(t){var e,i;try{for(var n=Ie(A),s=n.next();!s.done;s=n.next()){var r=s.value;if(t.next(r),t.closed)return}}catch(a){e={error:a}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}t.complete()})}function as(A){return new $(function(t){na(A,t).catch(function(e){return t.error(e)})})}function ia(A){return as(os(A))}function na(A,t){var e,i,n,s;return _r(this,void 0,void 0,function(){var r,a;return Pn(this,function(h){switch(h.label){case 0:h.trys.push([0,5,6,11]),e=Gr(A),h.label=1;case 1:return[4,e.next()];case 2:if(i=h.sent(),!!i.done)return[3,4];if(r=i.value,t.next(r),t.closed)return[2];h.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=h.sent(),n={error:a},[3,11];case 6:return h.trys.push([6,,9,10]),i&&!i.done&&(s=e.return)?[4,s.call(e)]:[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 qt(A,t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=!1);var s=t.schedule(function(){e(),n?A.add(this.schedule(null,i)):this.unsubscribe()},i);if(A.add(s),!n)return s}function ls(A,t){return t===void 0&&(t=0),Be(function(e,i){e.subscribe(gA(i,function(n){return qt(i,A,function(){return i.next(n)},t)},function(){return qt(i,A,function(){return i.complete()},t)},function(n){return qt(i,A,function(){return i.error(n)},t)}))})}function hs(A,t){return t===void 0&&(t=0),Be(function(e,i){i.add(A.schedule(function(){return e.subscribe(i)},t))})}function sa(A,t){return Ee(A).pipe(hs(t),ls(t))}function oa(A,t){return Ee(A).pipe(hs(t),ls(t))}function ra(A,t){return new $(function(e){var i=0;return t.schedule(function(){i===A.length?e.complete():(e.next(A[i++]),e.closed||this.schedule())})})}function aa(A,t){return new $(function(e){var i;return qt(e,t,function(){i=A[ns](),qt(e,t,function(){var n,s,r;try{n=i.next(),s=n.value,r=n.done}catch(a){e.error(a);return}r?e.complete():e.next(s)},0,!0)}),function(){return et(i?.return)&&i.return()}})}function cs(A,t){if(!A)throw new Error("Iterable cannot be null");return new $(function(e){qt(e,t,function(){var i=A[Symbol.asyncIterator]();qt(e,t,function(){i.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function la(A,t){return cs(os(A),t)}function ha(A,t){if(A!=null){if(es(A))return sa(A,t);if($n(A))return ra(A,t);if(ts(A))return oa(A,t);if(As(A))return cs(A,t);if(ss(A))return aa(A,t);if(rs(A))return la(A,t)}throw is(A)}function uA(A,t){return t?ha(A,t):Ee(A)}function ca(A){return!!A&&(A instanceof $||et(A.lift)&&et(A.subscribe))}function Ai(A,t){return Be(function(e,i){var n=0;e.subscribe(gA(i,function(s){i.next(A.call(t,s,n++))}))})}var ga=Array.isArray;function ua(A,t){return ga(t)?A.apply(void 0,Le([],He(t))):A(t)}function fa(A){return Ai(function(t){return ua(A,t)})}var Ia=Array.isArray,da=Object.getPrototypeOf,Ba=Object.prototype,Ea=Object.keys;function Ca(A){if(A.length===1){var t=A[0];if(Ia(t))return{args:t,keys:null};if(Qa(t)){var e=Ea(t);return{args:e.map(function(i){return t[i]}),keys:e}}}return{args:A,keys:null}}function Qa(A){return A&&typeof A=="object"&&da(A)===Ba}function pa(A,t){return A.reduce(function(e,i,n){return e[i]=t[n],e},{})}function fA(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];var e=Zr(A),i=Xr(A),n=Ca(A),s=n.args,r=n.keys;if(s.length===0)return uA([],e);var a=new $(ya(s,e,r?function(h){return pa(r,h)}:ei));return i?a.pipe(fa(i)):a}function ya(A,t,e){return e===void 0&&(e=ei),function(i){gs(t,function(){for(var n=A.length,s=new Array(n),r=n,a=n,h=function(u){gs(t,function(){var o=uA(A[u],t),l=!1;o.subscribe(gA(i,function(g){s[u]=g,l||(l=!0,a--),a||i.next(e(s.slice()))},function(){--r||i.complete()}))},i)},c=0;c<n;c++)h(c)},i)}}function gs(A,t,e){A?qt(e,A,t):t()}function ma(A){return new $(function(t){Ee(A()).subscribe(t)})}function Te(A,t){return Be(function(e,i){var n=0;e.subscribe(gA(i,function(s){return A.call(t,s,n++)&&i.next(s)}))})}function wa(A){return Be(function(t,e){try{t.subscribe(e)}finally{e.add(A)}})}function us(A){A===void 0&&(A={});var t=A.connector,e=t===void 0?function(){return new ne}:t,i=A.resetOnError,n=i===void 0?!0:i,s=A.resetOnComplete,r=s===void 0?!0:s,a=A.resetOnRefCountZero,h=a===void 0?!0:a;return function(c){var u,o,l,g=0,I=!1,B=!1,C=function(){o?.unsubscribe(),o=void 0},E=function(){C(),u=l=void 0,I=B=!1},y=function(){var w=u;E(),w?.unsubscribe()};return Be(function(w,b){g++,!B&&!I&&C();var M=l=l??e();b.add(function(){g--,g===0&&!B&&!I&&(o=ii(y,h))}),M.subscribe(b),!u&&g>0&&(u=new Ue({next:function(N){return M.next(N)},error:function(N){B=!0,C(),o=ii(E,n,N),M.error(N)},complete:function(){I=!0,C(),o=ii(E,r),M.complete()}}),Ee(w).subscribe(u))})(c)}}function ii(A,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];if(t===!0){A();return}if(t!==!1){var n=new Ue({next:function(){n.unsubscribe(),A()}});return Ee(t.apply(void 0,Le([],He(e)))).subscribe(n)}}function va(A,t,e){var i,n,s,r,a=!1;return A&&typeof A=="object"?(i=A.bufferSize,r=i===void 0?1/0:i,n=A.windowTime,t=n===void 0?1/0:n,s=A.refCount,a=s===void 0?!1:s,e=A.scheduler):r=A??1/0,us({connector:function(){return new jr(r,t,e)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Ce(){return typeof window<"u"}function Ot(){return typeof performance<"u"?performance.now():Date.now()}function _t(A){return 1e3/A}function Xt(A){return A&&A instanceof Promise}function Oe(A,t){if(A.length!==t.length)return!1;for(let e=0;e<A.length;e++){const i=A[e],n=t[e];if(typeof i=="object"&&i!==null){if(typeof n!="object"||n===null)return!1;if(Array.isArray(i)){if(!Array.isArray(n)||!Oe(i,n))return!1}else if(!fs(i,n))return!1}else if(i!==n)return!1}return!0}function fs(A,t){const e=Object.keys(A),i=Object.keys(t);if(e.length!==i.length)return!1;for(let n of e)if(!t.hasOwnProperty(n)||!Da(A[n],t[n]))return!1;return!0}function Da(A,t){return A===t?!0:typeof A!=typeof t?!1:typeof A=="object"&&A!==null?Array.isArray(A)?Array.isArray(t)&&Oe(A,t):fs(A,t):!1}function ni(A){return{}.toString.call(A)==="[object Function]"}function IA(A){return typeof A=="object"&&A!=null&&!Array.isArray(A)&&A.constructor===Object}function Is(A){return A instanceof $}function si(A,t,e,i=!1){if(Object(A)!==A)return A;typeof t=="string"&&(t=t.split("."));let n=t.length;if(!n)return A;let s=A;for(let r=0;r<n-1;r++){let a=t[r],h=t[r+1],c=!isNaN(Number(h))&&isFinite(Number(h));(!s[a]||typeof s[a]!="object")&&(s[a]=c&&!i?[]:{}),s=s[a]}return s[t[n-1]]=e,A}function ba(A,t){const e=t.split(".");let i=A;for(let n of e){if(i[n]===void 0)return;i=i[n]}return i}function Sa(A){console.log(A)}function oi(A){console.error(A)}function oe(A,t){typeof t=="number"?A.set(t):Array.isArray(t)?A.set(t[0],t[1]):IA(t)&&"value"in t?A.set(t.value.x,t.value.y):A.set(t.x,t.y)}function ds(A,t,e,i){const n=A-e,s=t-i;return Math.sqrt(n*n+s*s)}const xa=Object.freeze(Object.defineProperty({__proto__:null,arrayEquals:Oe,calculateDistance:ds,error:oi,fps2ms:_t,get:ba,isBrowser:Ce,isFunction:ni,isObject:IA,isObservable:Is,isPromise:Xt,log:Sa,preciseNow:Ot,set:si,setObservablePoint:oe},Symbol.toStringTag,{value:"Module"}));class dA{constructor(){this.boundKeys={},this.stop=!1,this._controlsOptions={},this.serverFps=60}start(){this.setupListeners(),this.interval=setInterval(()=>{this.preStep()},_t(this.serverFps??60))}destroy(){this.interval&&clearInterval(this.interval),this.cleanup()}bindKey(t,e,i,n){Array.isArray(t)||(t=[t]);const s=Object.assign({repeat:!1},i);t.forEach(r=>{this.boundKeys[r]={actionName:e,options:s,parameters:n}})}applyInput(t){const e=this.boundKeys[t];if(!e)return;const{repeat:i,keyDown:n}=e.options;if(n){let s=e.parameters;typeof s=="function"&&(s=s()),n(e)}}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 e in t){const i=t[e],{bind:n}=i;let s=n;Array.isArray(s)||(s=[n]);for(let r of s)this.bindKey(r,e,i)}this._controlsOptions=t}}get options(){return this._controlsOptions}}var Bs=(A=>(A.Break="break",A.Backspace="backspace",A.Tab="tab",A.Clear="clear",A.Enter="enter",A.Shift="shift",A.Ctrl="ctrl",A.Alt="alt",A.Pause="pause/break",A.CapsLock="caps lock",A.Escape="escape",A.Conversion="conversion",A.NonConversion="non-conversion",A.Space="space",A.PageUp="page up",A.PageDown="page down",A.End="end",A.Home="home",A[A.Left=4]="Left",A[A.Up=1]="Up",A[A.Right=2]="Right",A[A.Down=3]="Down",A.Select="select",A.Print="print",A.Execute="execute",A.PrintScreen="Print Screen",A.Insert="insert",A.Delete="delete",A.Zero="0",A.One="1",A.Two="2",A.Three="3",A.Four="4",A.Five="5",A.Six="6",A.Seven="7",A.Height="8",A.Nine="9",A.Equal="=",A.Semicolon="semicolon (firefox), equals",A.LessThan="<",A.Equals="equals (firefox)",A.Beta="ß",A.At="@",A.A="a",A.B="b",A.C="c",A.D="d",A.E="e",A.F="f",A.G="g",A.H="h",A.I="i",A.J="j",A.K="k",A.L="l",A.M="m",A.N="n",A.O="o",A.P="p",A.Q="q",A.R="r",A.S="s",A.T="t",A.U="u",A.V="v",A.W="w",A.X="x",A.Y="y",A.Z="z",A.SearchKey="Windows Key / Left ⌘ / Chromebook Search key",A.NumPad0="numpad 0",A.NumPad1="numpad 1",A.NumPad2="numpad 2",A.NumPad3="numpad 3",A.NumPad4="numpad 4",A.NumPad5="numpad 5",A.NumPad6="numpad 6",A.NumPad7="numpad 7",A.NumPad8="numpad 8",A.NumPad9="numpad 9",A.Multiply="multiply",A.Add="add",A.Subtract="subtract",A.DecimalPoint="decimal point",A.Divide="divide",A.F1="f1",A.F2="f2",A.F3="f3",A.F4="f4",A.F5="f5",A.F6="f6",A.F7="f7",A.F8="f8",A.F9="f9",A.F10="f10",A.F11="f11",A.F12="f12",A.F13="f13",A.F14="f14",A.F15="f15",A.F16="f16",A.F17="f17",A.F18="f18",A.F19="f19",A.F20="f20",A.F21="f21",A.F22="f22",A.F23="f23",A.F24="f24",A.NumLock="num lock",A.ScrollLock="scroll lock",A.CircumflexAccent="^",A.ExclamationMark="!",A.Hash="#",A.Dollar="$",A.AccentU="ù",A.PageBackward="page backward",A.PageForWard="page forward",A.Star="*",A.DecreaseVolume="decrease volume level",A.IncreaseVolume="increase volume level",A.Next="next",A.Previous="previous",A.Stop="stop",A.PlayPause="play/pause",A.Email="e-mail",A.SemiColon="semi-colon / ñ",A.EqualSign="equal sign",A.Comma="comma",A.Dash="dash",A.FowardSlach="forward slash / ç",A.GraveAccent="grave accent / ñ / æ",A.OpenBracket="open bracket",A.BackSlach="back slash",A.CloseBracket="close bracket / å",A.SingleQuote="single quote / ø",A.BackQuote="`",A.Altgr="altgr",A))(Bs||{});const Es={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"},Cs=(A=>{const t={};for(let e in A){const i=A[e];t[i]=e}return t})(Es);class Qs extends dA{constructor(){super(...arguments),this.keyState={},this.lastKeyPressed=null,this.lastActionTimes={},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 e=this.boundKeys[t];if(e){const{keyDown:i}=e.options;i&&this.applyInput(t)}}else{const e=Object.keys(this.boundKeys);for(let i of e)this.applyInput(i)}}applyInput(t){const e=this.keyState[t];if(!e)return;const{isDown:i,count:n}=e;if(i){const s=this.boundKeys[t];if(!s)return;const{repeat:r,keyDown:a,throttle:h}=s.options;if(r||n==0){if(typeof h=="number"){const u=Date.now(),o=this.lastActionTimes[s.actionName]??0;if(u-o<h)return;this.lastActionTimes[s.actionName]=u}let c=s.parameters;typeof c=="function"&&(c=c()),a&&a(s),this.keyState[t].count++}}}applyKeyDown(t){const e=Cs[t],i=new Event("keydown");i.keyCode=e,this.onKeyChange(i,!0)}applyKeyUp(t){const e=Cs[t],i=new Event("keyup");i.keyCode=e,this.onKeyChange(i,!1)}applyKeyPress(t){return new Promise(e=>{this.applyKeyDown(t),setTimeout(()=>{this.applyKeyUp(t),e()},200)})}onKeyChange(t,e){t=t||window.event;const i=Es[t.keyCode];if(i&&this.boundKeys[i]){if(this.keyState[i]==null&&(this.keyState[i]={count:0,isDown:!0}),this.keyState[i].isDown=e,!e){this.keyState[i].count=0;const{keyUp:n}=this.boundKeys[i].options;n&&n(this.boundKeys[i])}this.lastKeyPressed=e?t.keyCode:null}i&&this.updateDirectionState(i,e)}updateDirectionState(t,e){switch(t){case"up":this.directionState.up=e;break;case"down":this.directionState.down=e;break;case"left":this.directionState.left=e;break;case"right":this.directionState.right=e;break}}getDirection(){const{up:t,down:e,left:i,right:n}=this.directionState;return t&&i?"up_left":t&&n?"up_right":e&&i?"down_left":e&&n?"down_right":t?"up":e?"down":i?"left":n?"right":"none"}async applyControl(t,e){const i=this._controlsOptions[t];if(i){const n=Array.isArray(i.bind)?i.bind[0]:i.bind;e===void 0?await this.applyKeyPress(n):e?this.applyKeyDown(n):this.applyKeyUp(n)}}listenInputs(){super.listenInputs(),this.keyState={}}}var Dt={events:{},publish:function(t,e){this.events.hasOwnProperty(t)&&this.events[t].forEach(function(i){return i(e)})},subscribe:function(t,e){return this.events.hasOwnProperty(t)||(this.events[t]=[]),this.events[t].push(e),{unsubscribe:(function(){var i=this.events[t].indexOf(e);i!==-1&&this.events[t].splice(i,1)}).bind(this)}}},Z={CONNECT:{NATIVE:"gamepadconnected",ALIAS:"connect"},DISCONNECT:{NATIVE:"gamepaddisconnected",ALIAS:"disconnect"},BUTTON_PRESS:{ALIAS:"button_press"},BUTTON_RELEASE:{ALIAS:"button_release"},AXIS_MOVEMENT:{ALIAS:"axis_move"}},Qe={LEFT:{NAME:"left_stick",AXES:{X:0,Y:1}},RIGHT:{NAME:"right_stick",AXES:{X:2,Y:3}}},BA={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},ka={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},Ma=.8,ps=function(A){console.warn&&typeof console.warn=="function"?console.warn(A):console.log(A)},Ra=function(A,t){var e=[];return Object.keys(t).forEach(function(i){(t[i]===A||Array.isArray(t[i])&&t[i].indexOf(A)!==-1)&&e.push(i)}),e},Fa=function(A){return!!A&&!!A.type&&!!A.playEffect&&typeof A.playEffect=="function"||!1},_a=function(){return!!window.navigator.getGamepads&&typeof window.navigator.getGamepads=="function"||!1},dt={loopStarted:!1,instances:{},buttonEvents:{joypad:[]},settings:{axisMovementThreshold:Ma},remove:function(t){return delete this.instances[t]},on:function(t,e){switch(t){case Z.CONNECT.ALIAS:return Dt.subscribe(Z.CONNECT.ALIAS,e);case Z.DISCONNECT.ALIAS:return Dt.subscribe(Z.DISCONNECT.ALIAS,e);case Z.BUTTON_PRESS.ALIAS:return Dt.subscribe(Z.BUTTON_PRESS.ALIAS,e);case Z.BUTTON_RELEASE.ALIAS:return Dt.subscribe(Z.BUTTON_RELEASE.ALIAS,e);case Z.AXIS_MOVEMENT.ALIAS:return Dt.subscribe(Z.AXIS_MOVEMENT.ALIAS,e)}},vibrate:function(t,e){var i=t.vibrationActuator,n=e||this.settings.vibration;if(Fa(i)){var s=i.type;return t.vibrationActuator.playEffect(s,n)}ps("No vibration actuator interface found - https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator")},set:function(t){var e=t.axisMovementThreshold,i=t.vibration,n=t.customButtonMapping,s=parseFloat(e);isNaN(s)||(this.settings.axisMovementThreshold=s),this.settings.vibration=i,this.settings.customButtonMapping=n},trigger:function(t,e){return Dt.publish(t,e)}},Na=function(A){A.buttons.forEach(function(t,e){var i=dt.settings.customButtonMapping,n=i||ka,s=Ra(e,n),r=dt.buttonEvents;s&&s.length&&s.forEach(function(a){t.pressed?(r.joypad[A.index][a]||(r.joypad[A.index][a]={pressed:!0,hold:!1,released:!1}),r.joypad[A.index][a].button=t,r.joypad[A.index][a].index=e,r.joypad[A.index][a].gamepad=A):!t.pressed&&r.joypad[A.index][a]&&(r.joypad[A.index][a].released=!0,r.joypad[A.index][a].hold=!1)})})},Ga=function(A){var t=function(r){return new CustomEvent(Z.AXIS_MOVEMENT.ALIAS,{detail:r})},e=dt.settings.axisMovementThreshold,i=A.axes,n=i.length,s=n/2;i.forEach(function(r,a){if(Math.abs(r)>e){var h=null,c=null,u=r;h=a<s?Qe.LEFT.NAME:Qe.RIGHT.NAME,(a===Qe.LEFT.AXES.X||a===Qe.RIGHT.AXES.X)&&(c=r<0?BA.LEFT:BA.RIGHT),(a===Qe.LEFT.AXES.Y||a===Qe.RIGHT.AXES.Y)&&(c=r<0?BA.TOP:BA.BOTTOM);var o={gamepad:A,totalSticks:s,stickMoved:h,directionOfMovement:c,axisMovementValue:u,axis:a};return window.dispatchEvent(t(o))}})},Ha=function(A,t){t[A].pressed?(ys(Z.BUTTON_PRESS.ALIAS,t,A),t[A].pressed=!1,t[A].hold=!0,t[A].last_event=Z.BUTTON_PRESS.ALIAS):t[A].hold||t[A].released&&t[A].last_event===Z.BUTTON_PRESS.ALIAS&&(ys(Z.BUTTON_RELEASE.ALIAS,t,A),delete t[A])},ri={id:null,start:function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame,e=dt.buttonEvents,i=window.navigator.getGamepads();i=Array.prototype.slice.call(i),i.forEach(function(n,s){n&&(e.joypad[s]||(e.joypad[s]={}),dt.instances[s]=n,Na(n),Ga(n))}),e.joypad.forEach(function(n){n&&Object.keys(n).forEach(function(s){Ha(s,n)})}),this.id=t(this.start.bind(this))},stop:function(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame;return e(t)}},La=function(){window.addEventListener(Z.CONNECT.NATIVE,function(A){if(Dt.publish(Z.CONNECT.ALIAS,A),!dt.loopStarted)return dt.loopStarted=!0,ri.start()}),window.addEventListener(Z.DISCONNECT.NATIVE,function(A){if(Dt.publish(Z.DISCONNECT.ALIAS,A),dt.remove(A.gamepad.index),dt.buttonEvents.joypad[A.gamepad.index]=null,!Object.keys(dt.instances).length)return dt.loopStarted=!1,ri.stop(ri.id)}),window.addEventListener(Z.BUTTON_PRESS.ALIAS,function(A){return Dt.publish(Z.BUTTON_PRESS.ALIAS,A)}),window.addEventListener(Z.BUTTON_RELEASE.ALIAS,function(A){return Dt.publish(Z.BUTTON_RELEASE.ALIAS,A)}),window.addEventListener(Z.AXIS_MOVEMENT.ALIAS,function(A){return Dt.publish(Z.AXIS_MOVEMENT.ALIAS,A)})},ys=function(A,t,e){var i=function(h){return new CustomEvent(A,{detail:h})},n=t[e],s=n.index,r=n.gamepad,a={buttonName:e,button:t[e].button,index:s,gamepad:r};window.dispatchEvent(i(a))};La(),_a()?window.joypad=dt:(window.joypad={},ps("Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API"));const ai={button_0:"action",button_1:"back",button_9:"back"},li={top:"up",bottom:"down",left:"left",right:"right"};class ms extends dA{constructor(){super(...arguments),this.gamepadEnabled=!0,this.gamepadConfig={enabled:!0,buttonMapping:ai,axisMapping:li,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",e=>this.handleGamepadButtonPress(e)),this.joypad.on("axis_move",e=>this.handleGamepadAxisMove(e))}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:e}=t.detail,n=(this.gamepadConfig.buttonMapping||ai)[e];n&&this.applyControl(n).catch(()=>{})}handleGamepadAxisMove(t){if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;this.gamepadMoving=!0,this.gamepadAxisDate=Date.now();let e=t.detail.directionOfMovement;const i=this.gamepadConfig.axisMapping||li;if(e==="top"?e=i.top||"up":e==="bottom"?e=i.bottom||"down":e==="left"?e=i.left||"left":e==="right"&&(e=i.right||"right"),this.joypad&&this.joypad.instances){const s=Object.values(this.joypad.instances);if(s.length>0){const r=s[0],a=r.axes?.[0]||0,h=r.axes?.[1]||0;this.currentPower=Math.min(1,Math.sqrt(a*a+h*h))}}this.gamepadDirections={[e]:!0};const n=["up","down","left","right"];for(const s of n)this.gamepadDirections[s]||this.applyControl(s,!1).catch(()=>{});this.processGamepadMovement()}processGamepadMovement(){if(this.gamepadMoving&&!this.stop){if(this.joypad&&this.joypad.instances){const t=Object.values(this.joypad.instances);if(t.length>0){const e=t[0],i=e.axes?.[0]||0,n=e.axes?.[1]||0;this.currentPower=Math.min(1,Math.sqrt(i*i+n*n))}}for(const t in this.gamepadDirections)this.gamepadDirections[t]&&this.applyControl(t,!0,{power:this.currentPower}).catch(()=>{})}}preStep(){if(this.stop)return;if(Date.now()-this.gamepadAxisDate>100&&this.gamepadMoving){const e=["up","down","left","right"];for(const i of e)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||ai,axisMapping:t.axisMapping||li,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,e,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const r of s){const a=this.boundKeys[r];if(a.actionName===String(t)){if(e===void 0){if(a.options.keyDown){let h=i??a.parameters;typeof h=="function"&&(h=h()),a.options.keyDown(a,h)}return new Promise(h=>{setTimeout(()=>{if(a.options.keyUp){let c=i??a.parameters;typeof c=="function"&&(c=c()),a.options.keyUp(a,c)}h()},200)})}else if(e){if(a.options.keyDown){let h=i??a.parameters;typeof h=="function"&&(h=h()),a.options.keyDown(a,h)}}else if(a.options.keyUp){let h=i??a.parameters;typeof h=="function"&&(h=h()),a.options.keyUp(a,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 e=this.connectCallbacks.indexOf(t);e>-1&&this.connectCallbacks.splice(e,1)}offDisconnect(t){const e=this.disconnectCallbacks.indexOf(t);e>-1&&this.disconnectCallbacks.splice(e,1)}isConnected(){return this.gamepadMoveInterval!==null}reinit(){this.joypad||this.initGamepad()}}const hi={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 ws extends dA{constructor(){super(...arguments),this.joystickEnabled=!0,this.joystickConfig={enabled:!0,directionMapping:hi,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 e=this.joystickConfig.directionMapping||hi,i=t.direction,n=e[i];if(!n){this.stopAllMovements();return}const s=Array.isArray(n)?n:[n],r=this.joystickDirections,a={};s.forEach(u=>{a[u]=!0});const h=new Set([...Object.keys(this.joystickDirections),...Object.keys(a)]);for(const u of h){const o=this.joystickDirections[u],l=a[u]||!1;o&&!l&&this.applyControl(u,!1).catch(()=>{})}this.joystickDirections={...a},this.joystickMoving=!0;const c=s.filter(u=>!r[u]);for(const u of c)this.applyControl(u,!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 e of t)this.applyControl(e,!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||hi,moveInterval:t.moveInterval||50,threshold:t.threshold||.1}}extractJoystickConfig(t){t.joystick&&this.updateJoystickConfig(t.joystick)}getJoystickConfig(){return this.joystickConfig}async applyControl(t,e,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const r of s){const a=this.boundKeys[r];if(a.actionName===String(t)){if(e===void 0){if(a.options.keyDown){let h=i??a.parameters;typeof h=="function"&&(h=h()),a.options.keyDown(a,h)}return new Promise(h=>{setTimeout(()=>{if(a.options.keyUp){let c=i??a.parameters;typeof c=="function"&&(c=c()),a.options.keyUp(a,c)}h()},200)})}else if(e){if(a.options.keyDown){let h=i??a.parameters;typeof h=="function"&&(h=h()),a.options.keyDown(a,h)}}else if(a.options.keyUp){let h=i??a.parameters;typeof h=="function"&&(h=h()),a.options.keyUp(a,h)}break}}}setInputs(t){super.setInputs(t),this.extractJoystickConfig(t)}isActive(){return this.joystickMoving}}const ci={};class Bt{}function Et(A,t){ci[A]=t}function gi(A,t){if(!ci[t])return null;const e=new ci[t];return e.onInit?.(A),e}var Ua=Object.defineProperty,z=(A,t)=>Ua(A,"name",{value:t,configurable:!0}),Pe=(Re=class extends se{_items=[];constructor(t=[]){super({type:"init",items:t}),this.createProxy(t)}createProxy(t){this._items=new Proxy(t,{get:z((e,i,n)=>{const s=e[i];return typeof s=="function"?(...r)=>{let a="update",h,c=!1,u=[],o=!0;switch(i){case"push":h=e.length,a="add",c=!0;break;case"pop":h=e.length-1,a="remove",c=!0;break;case"unshift":h=0,a="add",c=!0;break;case"shift":h=0,a="remove",c=!0;break;case"splice":h=r[0];const g=r[1],I=r.slice(2);u=I,g>0&&I.length===0?a="remove":g===0&&I.length>0?a="add":g===0&&I.length===0?o=!1:a="update",c=!0;break}const l=s.apply(e,r);return c&&o&&(i==="splice"?this.next({type:a,index:h,items:u}):this.next({type:a,index:h,items:r})),l}:Reflect.get(e,i,n)},"get"),set:z((e,i,n)=>{const s=isNaN(Number(i))?void 0:Number(i);return e[i]=n,this.next({type:"update",index:s,items:[n]}),!0},"set")})}get items(){return this._items}set items(t){this.createProxy(t),this.next({type:"reset",items:t})}},z(Re,"ArraySubject"),Re),Ta=z(A=>"_items"in A,"isArraySubject"),Je=(Fe=class extends se{_obj;constructor(t={}){super({type:"init",value:t}),this.createProxy(t)}createProxy(t){this._obj=new Proxy(t,{get:z((e,i,n)=>Reflect.get(e,i,n),"get"),set:z((e,i,n,s)=>{const r=i,a=r in e?"update":"add";return e[r]=n,this.next({type:a,key:r,value:n}),!0},"set"),deleteProperty:z((e,i)=>{const n=i;if(n in e){const s=e[n];return delete e[n],this.next({type:"remove",key:n,value:s}),!0}return!1},"deleteProperty")})}get obj(){return this._obj}set obj(t){this.createProxy(t),this.next({type:"reset",value:t})}},z(Fe,"ObjectSubject"),Fe),Oa=z(A=>"_obj"in A,"isObjectSubject"),Pa=z(()=>{const A="__REACTIVE_STORE__";if(typeof globalThis<"u")return globalThis[A]||(globalThis[A]={currentDependencyTracker:null,currentSubscriptionsTracker:null}),globalThis[A];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[A]||(t[A]={currentDependencyTracker:null,currentSubscriptionsTracker:null}),t[A]},"getGlobalReactiveStore"),lt=Pa(),ui=z(A=>{lt.currentDependencyTracker&&lt.currentDependencyTracker(A)},"trackDependency");function Y(A,t){let e;Array.isArray(A)?e=new Pe(A):typeof A=="object"&&A!==null?e=new Je(A):e=new se(A);const i=z(()=>e instanceof Pe?e.items:e instanceof Je?e.obj:e.value,"getValue"),n=z(function(){return ui(n),i()},"fn");return n.set=s=>{const r=i();let a=!0;t?.equal?a=!t.equal(r,s):a=r!==s,a&&(e instanceof Pe?e.items=s:e instanceof Je?e.obj=s:e.next(s))},n._isFrozen=!1,n.freeze=()=>{n._isFrozen=!0},n.unfreeze=()=>{n._isFrozen=!1,e instanceof Pe?e.next({type:"init",items:e.items}):e instanceof Je?e.next({type:"init",value:e.obj}):e.next(e.value)},n.mutate=s=>{const r=i();s(r)},n.update=s=>{const r=s(i());n.set(r)},n.observable=e.asObservable().pipe(Te(()=>!n._isFrozen)),n._subject=e,n}z(Y,"signal");function _(A){return!!(A&&A.observable)}z(_,"isSignal");function pe(A){return _(A)&&!!A.dependencies}z(pe,"isComputed");function Ct(A,t){const e=new Set;let i=!0,n;const s=lt.currentDependencyTracker;lt.currentDependencyTracker=c=>{e.add(c)},n=A(),A.isEffect&&(t=n),lt.currentDependencyTracker=s;const r=[...e].map(c=>{if(pe(c)&&"dependencies"in c){const u=c;if(u.dependencies.size===0)return new se(u()).asObservable()}return c.observable}),a=fA(r).pipe(Te(()=>!i),Ai(()=>A()),wa(()=>t?.())),h=z(function(){return ui(h),n},"fn");return h.observable=a,h.subscription=a.subscribe(c=>{n=c}),h.dependencies=e,lt.currentSubscriptionsTracker?.(h.subscription),i=!1,h}z(Ct,"computed");function vs(A,t){const e=new Set;let i=!0,n,s,r,a,h,c,u=!1,o,l=0,g=null;if(typeof A=="function")s=A,h=t?.equal;else{const w=A;if(r=w.source,a=w.computation,h=w.equal,typeof r=="function"&&!_(r)){const b=r;s=z(()=>{const M=b();if(a.length>1){const N=a(M,c);return c={source:M,value:N},N}else{const N=a(M);return c={source:M,value:N},N}},"computeFunction")}else{const b=r;s=z(()=>{const M=b();if(a.length>1){const N=a(M,c);return c={source:M,value:N},N}else{const N=a(M);return c={source:M,value:N},N}},"computeFunction")}}const I=lt.currentDependencyTracker;lt.currentDependencyTracker=w=>{e.add(w)},r&&typeof r=="function"&&!_(r)||r&&_(r)&&e.add(r),n=s(),lt.currentDependencyTracker=I;const B=new se(n),C=[...e].map(w=>{if(pe(w)&&"dependencies"in w){const b=w;if(b.dependencies.size===0)return new se(b()).asObservable()}return w.observable});let E;C.length>0?E=fA(C).pipe(Te(()=>!i),Ai(()=>{const w=s();return h?h(n,w)||(n=w,u=!1):n!==w&&(n=w,u=!1),n})):E=B.asObservable().pipe(Te(()=>!i));const y=z(function(){if(ui(y),u&&e.size>0){if(g!==l){const w=s();return u=!1,o=void 0,n=w,g=null,w}return o}return u?o:(e.size===0&&(n=s()),n)},"fn");return y.observable=new $(w=>{const b=E.subscribe(N=>{e.size>0&&(l++,u=!1,g=null),n=N,w.next(N)});let M;return e.size===0&&(M=B.pipe(Te(()=>!i)).subscribe(N=>{w.next(N)})),w.next(n),()=>{b.unsubscribe(),M&&M.unsubscribe()}}),y.subscription=y.observable.subscribe(()=>{}),y.dependencies=e,y._subject=B,y.set=w=>{u||(g=l,a&&r&&(c={source:fi(()=>{if(typeof r=="function"){const M=r;return _(M)?M():r()}return r()}),value:w})),u=!0,o=w,n=w,B.next(w)},lt.currentSubscriptionsTracker?.(y.subscription),i=!1,y}z(vs,"linkedSignal");function fi(A){const t=lt.currentDependencyTracker,e=lt.currentSubscriptionsTracker;lt.currentDependencyTracker=null,lt.currentSubscriptionsTracker=null;try{return A()}finally{lt.currentDependencyTracker=t,lt.currentSubscriptionsTracker=e}}z(fi,"untracked");function it(A){return A.isEffect=!0,Ct(A)}z(it,"effect");function Ds(A,t){var e={};for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&t.indexOf(i)<0&&(e[i]=A[i]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(A);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(A,i[n])&&(e[i[n]]=A[i[n]]);return e}var bs=function(){};const Ii=(A,t,e)=>Math.min(Math.max(e,A),t),di=.001,Ja=.01,Ka=10,Ya=.05,Wa=1;function Va({duration:A=800,bounce:t=.25,velocity:e=0,mass:i=1}){let n,s,r=1-t;r=Ii(Ya,Wa,r),A=Ii(Ja,Ka,A/1e3),r<1?(n=c=>{const u=c*r,o=u*A,l=u-e,g=Bi(c,r),I=Math.exp(-o);return di-l/g*I},s=c=>{const o=c*r*A,l=o*e+e,g=Math.pow(r,2)*Math.pow(c,2)*A,I=Math.exp(-o),B=Bi(Math.pow(c,2),r);return(-n(c)+di>0?-1:1)*((l-g)*I)/B}):(n=c=>{const u=Math.exp(-c*A),o=(c-e)*A+1;return-di+u*o},s=c=>{const u=Math.exp(-c*A),o=(e-c)*(A*A);return u*o});const a=5/A,h=qa(n,s,a);if(A=A*1e3,isNaN(h))return{stiffness:100,damping:10,duration:A};{const c=Math.pow(h,2)*i;return{stiffness:c,damping:r*2*Math.sqrt(i*c),duration:A}}}const ja=12;function qa(A,t,e){let i=e;for(let n=1;n<ja;n++)i=i-A(i)/t(i);return i}function Bi(A,t){return A*Math.sqrt(1-t*t)}const Xa=["duration","bounce"],Za=["stiffness","damping","mass"];function Ss(A,t){return t.some(e=>A[e]!==void 0)}function za(A){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},A);if(!Ss(A,Za)&&Ss(A,Xa)){const e=Va(A);t=Object.assign(Object.assign(Object.assign({},t),e),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Ei(A){var{from:t=0,to:e=1,restSpeed:i=2,restDelta:n}=A,s=Ds(A,["from","to","restSpeed","restDelta"]);const r={done:!1,value:t};let{stiffness:a,damping:h,mass:c,velocity:u,duration:o,isResolvedFromDuration:l}=za(s),g=xs,I=xs;function B(){const C=u?-(u/1e3):0,E=e-t,y=h/(2*Math.sqrt(a*c)),w=Math.sqrt(a/c)/1e3;if(n===void 0&&(n=Math.min(Math.abs(e-t)/100,.4)),y<1){const b=Bi(w,y);g=M=>{const N=Math.exp(-y*w*M);return e-N*((C+y*w*E)/b*Math.sin(b*M)+E*Math.cos(b*M))},I=M=>{const N=Math.exp(-y*w*M);return y*w*N*(Math.sin(b*M)*(C+y*w*E)/b+E*Math.cos(b*M))-N*(Math.cos(b*M)*(C+y*w*E)-b*E*Math.sin(b*M))}}else if(y===1)g=b=>e-Math.exp(-w*b)*(E+(C+w*E)*b);else{const b=w*Math.sqrt(y*y-1);g=M=>{const N=Math.exp(-y*w*M),O=Math.min(b*M,300);return e-N*((C+y*w*E)*Math.sinh(O)+b*E*Math.cosh(O))/b}}}return B(),{next:C=>{const E=g(C);if(l)r.done=C>=o;else{const y=I(C)*1e3,w=Math.abs(y)<=i,b=Math.abs(e-E)<=n;r.done=w&&b}return r.value=r.done?e:E,r},flipTarget:()=>{u=-u,[t,e]=[e,t],B()}}}Ei.needsInterpolation=(A,t)=>typeof A=="string"||typeof t=="string";const xs=A=>0,ks=(A,t,e)=>{const i=t-A;return i===0?1:(e-A)/i},Ci=(A,t,e)=>-e*A+e*t+A,Ms=(A,t)=>e=>Math.max(Math.min(e,t),A),Ke=A=>A%1?Number(A.toFixed(5)):A,EA=/(-)?([\d]*\.?[\d])+/g,Qi=/(#[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,$a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ye(A){return typeof A=="string"}const CA={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},Rs=Object.assign(Object.assign({},CA),{transform:Ms(0,1)});Object.assign(Object.assign({},CA),{default:1});const We=(A=>({test:t=>Ye(t)&&t.endsWith(A)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${A}`}))("%");Object.assign(Object.assign({},We),{parse:A=>We.parse(A)/100,transform:A=>We.transform(A*100)});const pi=(A,t)=>e=>!!(Ye(e)&&$a.test(e)&&e.startsWith(A)||t&&Object.prototype.hasOwnProperty.call(e,t)),Fs=(A,t,e)=>i=>{if(!Ye(i))return i;const[n,s,r,a]=i.match(EA);return{[A]:parseFloat(n),[t]:parseFloat(s),[e]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},re={test:pi("hsl","hue"),parse:Fs("hue","saturation","lightness"),transform:({hue:A,saturation:t,lightness:e,alpha:i=1})=>"hsla("+Math.round(A)+", "+We.transform(Ke(t))+", "+We.transform(Ke(e))+", "+Ke(Rs.transform(i))+")"},tl=Ms(0,255),yi=Object.assign(Object.assign({},CA),{transform:A=>Math.round(tl(A))}),Zt={test:pi("rgb","red"),parse:Fs("red","green","blue"),transform:({red:A,green:t,blue:e,alpha:i=1})=>"rgba("+yi.transform(A)+", "+yi.transform(t)+", "+yi.transform(e)+", "+Ke(Rs.transform(i))+")"};function el(A){let t="",e="",i="",n="";return A.length>5?(t=A.substr(1,2),e=A.substr(3,2),i=A.substr(5,2),n=A.substr(7,2)):(t=A.substr(1,1),e=A.substr(2,1),i=A.substr(3,1),n=A.substr(4,1),t+=t,e+=e,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}const mi={test:pi("#"),parse:el,transform:Zt.transform},QA={test:A=>Zt.test(A)||mi.test(A)||re.test(A),parse:A=>Zt.test(A)?Zt.parse(A):re.test(A)?re.parse(A):mi.parse(A),transform:A=>Ye(A)?A:A.hasOwnProperty("red")?Zt.transform(A):re.transform(A)},_s="${c}",Ns="${n}";function Al(A){var t,e,i,n;return isNaN(A)&&Ye(A)&&((e=(t=A.match(EA))===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0)+((n=(i=A.match(Qi))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function Gs(A){typeof A=="number"&&(A=`${A}`);const t=[];let e=0;const i=A.match(Qi);i&&(e=i.length,A=A.replace(Qi,_s),t.push(...i.map(QA.parse)));const n=A.match(EA);return n&&(A=A.replace(EA,Ns),t.push(...n.map(CA.parse))),{values:t,numColors:e,tokenised:A}}function Hs(A){return Gs(A).values}function Ls(A){const{values:t,numColors:e,tokenised:i}=Gs(A),n=t.length;return s=>{let r=i;for(let a=0;a<n;a++)r=r.replace(a<e?_s:Ns,a<e?QA.transform(s[a]):Ke(s[a]));return r}}const il=A=>typeof A=="number"?0:A;function nl(A){const t=Hs(A);return Ls(A)(t.map(il))}const Us={test:Al,parse:Hs,createTransformer:Ls,getAnimatableNone:nl};function wi(A,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<.16666666666666666?A+(t-A)*6*e:e<.5?t:e<.6666666666666666?A+(t-A)*(.6666666666666666-e)*6:A}function Ts({hue:A,saturation:t,lightness:e,alpha:i}){A/=360,t/=100,e/=100;let n=0,s=0,r=0;if(!t)n=s=r=e;else{const a=e<.5?e*(1+t):e+t-e*t,h=2*e-a;n=wi(h,a,A+.3333333333333333),s=wi(h,a,A),r=wi(h,a,A-.3333333333333333)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(r*255),alpha:i}}const sl=(A,t,e)=>{const i=A*A,n=t*t;return Math.sqrt(Math.max(0,e*(n-i)+i))},ol=[mi,Zt,re],Os=A=>ol.find(t=>t.test(A)),Ps=(A,t)=>{let e=Os(A),i=Os(t),n=e.parse(A),s=i.parse(t);e===re&&(n=Ts(n),e=Zt),i===re&&(s=Ts(s),i=Zt);const r=Object.assign({},n);return a=>{for(const h in r)h!=="alpha"&&(r[h]=sl(n[h],s[h],a));return r.alpha=Ci(n.alpha,s.alpha,a),e.transform(r)}},rl=A=>typeof A=="number",al=(A,t)=>e=>t(A(e)),Js=(...A)=>A.reduce(al);function Ks(A,t){return rl(A)?e=>Ci(A,t,e):QA.test(A)?Ps(A,t):Vs(A,t)}const Ys=(A,t)=>{const e=[...A],i=e.length,n=A.map((s,r)=>Ks(s,t[r]));return s=>{for(let r=0;r<i;r++)e[r]=n[r](s);return e}},ll=(A,t)=>{const e=Object.assign(Object.assign({},A),t),i={};for(const n in e)A[n]!==void 0&&t[n]!==void 0&&(i[n]=Ks(A[n],t[n]));return n=>{for(const s in i)e[s]=i[s](n);return e}};function Ws(A){const t=Us.parse(A),e=t.length;let i=0,n=0,s=0;for(let r=0;r<e;r++)i||typeof t[r]=="number"?i++:t[r].hue!==void 0?s++:n++;return{parsed:t,numNumbers:i,numRGB:n,numHSL:s}}const Vs=(A,t)=>{const e=Us.createTransformer(t),i=Ws(A),n=Ws(t);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Js(Ys(i.parsed,n.parsed),e):r=>`${r>0?t:A}`},hl=(A,t)=>e=>Ci(A,t,e);function cl(A){if(typeof A=="number")return hl;if(typeof A=="string")return QA.test(A)?Ps:Vs;if(Array.isArray(A))return Ys;if(typeof A=="object")return ll}function gl(A,t,e){const i=[],n=e||cl(A[0]),s=A.length-1;for(let r=0;r<s;r++){let a=n(A[r],A[r+1]);if(t){const h=Array.isArray(t)?t[r]:t;a=Js(h,a)}i.push(a)}return i}function ul([A,t],[e]){return i=>e(ks(A,t,i))}function fl(A,t){const e=A.length,i=e-1;return n=>{let s=0,r=!1;if(n<=A[0]?r=!0:n>=A[i]&&(s=i-1,r=!0),!r){let h=1;for(;h<e&&!(A[h]>n||h===i);h++);s=h-1}const a=ks(A[s],A[s+1],n);return t[s](a)}}function js(A,t,{clamp:e=!0,ease:i,mixer:n}={}){const s=A.length;bs(s===t.length),bs(!i||!Array.isArray(i)||i.length===s-1),A[0]>A[s-1]&&(A=[].concat(A),t=[].concat(t),A.reverse(),t.reverse());const r=gl(t,i,n),a=s===2?ul(A,r):fl(A,r);return e?h=>a(Ii(A[0],A[s-1],h)):a}const pA=A=>t=>1-A(1-t),vi=A=>t=>t<=.5?A(2*t)/2:(2-A(2*(1-t)))/2,Il=A=>t=>Math.pow(t,A),qs=A=>t=>t*t*((A+1)*t-A),dl=A=>{const t=qs(A);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))},Xs=1.525,Bl=4/11,El=8/11,Cl=9/10,Ql=A=>A,Di=Il(2),pl=pA(Di),Zs=vi(Di),zs=A=>1-Math.sin(Math.acos(A)),$s=pA(zs),yl=vi($s),bi=qs(Xs),ml=pA(bi),wl=vi(bi),vl=dl(Xs),Dl=4356/361,bl=35442/1805,Sl=16061/1805,yA=A=>{if(A===1||A===0)return A;const t=A*A;return A<Bl?7.5625*t:A<El?9.075*t-9.9*A+3.4:A<Cl?Dl*t-bl*A+Sl:10.8*A*A-20.52*A+10.72},xl=pA(yA),kl=A=>A<.5?.5*(1-yA(1-A*2)):.5*yA(A*2-1)+.5;function Ml(A,t){return A.map(()=>t||Zs).splice(0,A.length-1)}function Rl(A){const t=A.length;return A.map((e,i)=>i!==0?i/(t-1):0)}function Fl(A,t){return A.map(e=>e*t)}function mA({from:A=0,to:t=1,ease:e,offset:i,duration:n=300}){const s={done:!1,value:A},r=Array.isArray(t)?t:[A,t],a=Fl(i&&i.length===r.length?i:Rl(r),n);function h(){return js(a,r,{ease:Array.isArray(e)?e:Ml(r,e)})}let c=h();return{next:u=>(s.value=c(u),s.done=u>=n,s),flipTarget:()=>{r.reverse(),c=h()}}}function _l({velocity:A=0,from:t=0,power:e=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){const r={done:!1,value:t};let a=e*A;const h=t+a,c=s===void 0?h:s(h);return c!==h&&(a=c-t),{next:u=>{const o=-a*Math.exp(-u/i);return r.done=!(o>n||o<-n),r.value=r.done?c:c+o,r},flipTarget:()=>{}}}const to={keyframes:mA,spring:Ei,decay:_l};function Nl(A){if(Array.isArray(A.to))return mA;if(to[A.type])return to[A.type];const t=new Set(Object.keys(A));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?mA:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ei:mA}const eo=1/60*1e3,Gl=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ao=typeof window<"u"?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(Gl()),eo);function Hl(A){let t=[],e=[],i=0,n=!1,s=!1;const r=new WeakSet,a={schedule:(h,c=!1,u=!1)=>{const o=u&&n,l=o?t:e;return c&&r.add(h),l.indexOf(h)===-1&&(l.push(h),o&&n&&(i=t.length)),h},cancel:h=>{const c=e.indexOf(h);c!==-1&&e.splice(c,1),r.delete(h)},process:h=>{if(n){s=!0;return}if(n=!0,[t,e]=[e,t],e.length=0,i=t.length,i)for(let c=0;c<i;c++){const u=t[c];u(h),r.has(u)&&(a.schedule(u),A())}n=!1,s&&(s=!1,a.process(h))}};return a}const Ll=40;let Si=!0,Ve=!1,xi=!1;const je={delta:0,timestamp:0},qe=["read","update","preRender","render","postRender"],wA=qe.reduce((A,t)=>(A[t]=Hl(()=>Ve=!0),A),{}),Ul=qe.reduce((A,t)=>{const e=wA[t];return A[t]=(i,n=!1,s=!1)=>(Ve||Pl(),e.schedule(i,n,s)),A},{}),Tl=qe.reduce((A,t)=>(A[t]=wA[t].cancel,A),{});qe.reduce((A,t)=>(A[t]=()=>wA[t].process(je),A),{});const Ol=A=>wA[A].process(je),io=A=>{Ve=!1,je.delta=Si?eo:Math.max(Math.min(A-je.timestamp,Ll),1),je.timestamp=A,xi=!0,qe.forEach(Ol),xi=!1,Ve&&(Si=!1,Ao(io))},Pl=()=>{Ve=!0,Si=!0,xi||Ao(io)};function no(A,t,e=0){return A-t-e}function Jl(A,t,e=0,i=!0){return i?no(t+-A,t,e):t-(A-t)+e}function Kl(A,t,e,i){return i?A>=t+e:A<=-e}const Yl=A=>{const t=({delta:e})=>A(e);return{start:()=>Ul.update(t,!0),stop:()=>Tl.update(t)}};function so(A){var t,e,{from:i,autoplay:n=!0,driver:s=Yl,elapsed:r=0,repeat:a=0,repeatType:h="loop",repeatDelay:c=0,onPlay:u,onStop:o,onComplete:l,onRepeat:g,onUpdate:I}=A,B=Ds(A,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=B,E,y=0,w=B.duration,b,M=!1,N=!0,O;const K=Nl(B);!((e=(t=K).needsInterpolation)===null||e===void 0)&&e.call(t,i,C)&&(O=js([0,100],[i,C],{clamp:!1}),i=0,C=100);const H=K(Object.assign(Object.assign({},B),{from:i,to:C}));function T(){y++,h==="reverse"?(N=y%2===0,r=Jl(r,w,c,N)):(r=no(r,w,c),h==="mirror"&&H.flipTarget()),M=!1,g&&g()}function W(){E.stop(),l&&l()}function At(tt){if(N||(tt=-tt),r+=tt,!M){const ut=H.next(Math.max(0,r));b=ut.value,O&&(b=O(b)),M=N?ut.done:r<=0}I?.(b),M&&(y===0&&(w??(w=r)),y<a?Kl(r,w,c,N)&&T():W())}function rt(){u?.(),E=s(At),E.start()}return n&&rt(),{stop:()=>{o?.(),E.stop()}}}const Wl=A=>{if(typeof A=="number")return t=>Math.round(t/A)*A;{let t=0;const e=A.length;return i=>{let n=Math.abs(A[0]-i);for(t=1;t<e;t++){const s=A[t],r=Math.abs(s-i);if(r===0)return s;if(r>n)return A[t-1];if(t===e-1)return s;n=r}}}};function Vl(){return globalThis.__CANVAS_ENGINE_TICK__}function ye(A){return A.animatedState!==void 0}function ki(A,t={}){const e={current:A,start:A,end:A},i=20;let n=null,s=!1;const r=Y(A),a=Y(e);it(()=>{const u=a();r.set(u.current)});function h(u,o={}){if(u===void 0)return a();const l=a(),g={current:l.current,start:l.current,end:u};a.set(g),n&&(n.stop(),n=null),s=!1;const I={...t,...o},B=I.duration??i,C=I.ease??(b=>b);I.tick||Vl();const E=l.current,y=u,w=o.onComplete??t.onComplete;n=so({from:E,to:y,duration:B,ease:C,onUpdate:b=>{if(s)return;const M=b;a.update(N=>({...N,current:M})),I.onUpdate?.(M),o.onUpdate?.(M)},onComplete:()=>{a.update(b=>({...b,current:y})),w?.()}})}const c=function(){return a().current};for(const u in r)c[u]=r[u];return c.animatedState=a,c.update=u=>{h(u(a().current))},c.set=async(u,o={})=>new Promise(l=>{const g=o.onComplete;h(u,{...o,onComplete:()=>{g?g():t.onComplete&&t.onComplete(),l()}})}),c.pause=()=>{s||(s=!0,n&&(n.stop(),n=null))},c.resume=()=>{if(!s)return;s=!1;const u=a();u.current!==u.end&&h(u.end,t)},c}async function jl(A){for(const t of A)Array.isArray(t)?await Promise.all(t.map(e=>e())):await t()}const Mi={},bt=A=>A&&typeof A=="object"&&"tag"in A&&"props"in A&&"componentInstance"in A,Ri=A=>typeof A=="string"||typeof A=="number"||typeof A=="boolean"||A===null||A===void 0,ql={Sprite:"DOMSprite"},Xl=new Set(["DOMContainer","DOMElement","DOMSprite"]),Zl=new Set(["Canvas","Container","Graphics","Rect","Circle","Ellipse","Triangle","Svg","Mesh","Scene","ParticlesEmitter","Sprite","Video","Text","TilingSprite","Viewport","NineSliceSprite","Button","Joystick","FocusContainer"]),zl=A=>{let t=A;for(;t;){if(t.tag==="DOMContainer"||t.tag==="DOMElement")return!0;t=t.parent}return!1},$l=A=>{A.propSubscriptions?.forEach(t=>t.unsubscribe()),A.effectSubscriptions?.forEach(t=>t.unsubscribe()),A.effectUnmounts?.forEach(t=>t?.())},vA=(A,t)=>{if(!zl(A)||Xl.has(t.tag))return t;const e=ql[t.tag];if(e){$l(t);const i=t.propObservables??t.props;return ot(e,i)}if(Zl.has(t.tag))throw new Error(`Component ${t.tag} is not implemented for DOMContainer context yet. Only Sprite is supported.`);return t};function st(A,t){Mi[A]=t}let oo=!1;function Fi(){oo||(oo=!0)}async function Xe(A){return(await Promise.all(A.map(async e=>_(e)?e():Xt(e)?await e:e))).every(e=>e!==void 0)}function ro(A){return new Promise(async t=>{if(await Xe(A)){t();return}const i=A.filter(r=>_(r));if(i.length===0)return;const n=i.map(r=>r.observable),s=fA(n).subscribe(async()=>{await Xe(A)&&(s.unsubscribe(),t())})})}function St(A){if(!A)return!1;const t=A.propObservables?.freeze??A.props?.freeze;if(t!=null){if(_(t)){if(t()===!0)return!0}else if(t===!0)return!0}return A.parent?St(A.parent):!1}function _i(A,t){if(!A.propObservables)return;const e=i=>{if(_(i)&&ye(i)){const n=i;t?n.pause():n.resume()}else IA(i)&&!bt(i)&&Object.values(i).forEach(e)};Object.values(A.propObservables).forEach(e)}function ht(A){if(Array.isArray(A)){A.forEach(t=>ht(t));return}if(A){if(A.props?.children)for(let t of A.props.children)ht(t);for(let t in A.directives)A.directives[t].onDestroy?.(A);A.componentInstance&&A.componentInstance.onDestroy?A.componentInstance.onDestroy(A.parent,()=>{A.propSubscriptions?.forEach(t=>t.unsubscribe()),A.effectSubscriptions?.forEach(t=>t.unsubscribe()),A.effectUnmounts?.forEach(t=>{Xt(t)?t.then(e=>{e?.()}):t?.()})}):(A.propSubscriptions?.forEach(t=>t.unsubscribe()),A.effectSubscriptions?.forEach(t=>t.unsubscribe()),A.effectUnmounts?.forEach(t=>t?.()))}}function ot(A,t){if(!Mi[A])throw new Error(`Component ${A} is not registered`);const e=new Mi[A],i={tag:A,props:{},componentInstance:e,propSubscriptions:[],propObservables:t,parent:null,directives:{},effectUnmounts:[],effectSubscriptions:[],effectMounts:[],destroy(){ht(this)},allElements:new ne,isFrozen:!1};if(t){const u=(o,l="")=>{const g=(I,B,C)=>{if(I==""){i.props[B]=C;return}si(i.props,I+"."+B,C)};Object.entries(o).forEach(([I,B])=>{if(_(B)){const C=B;if("dependencies"in C&&C.dependencies.size==0){g(l,I,C()),I==="freeze"&&(i.isFrozen=C()===!0);return}if(I==="freeze"){i.isFrozen=C()===!0,_i(i,i.isFrozen),i.propSubscriptions.push(C.observable.subscribe(E=>{const y=i.isFrozen;i.isFrozen=E===!0,y!==i.isFrozen&&_i(i,i.isFrozen)}));return}i.propSubscriptions.push(C.observable.subscribe(E=>{if(St(i)){ye(C)&&C.pause();return}if(ye(C)&&C.resume(),g(l,I,E),i.directives[I]&&i.directives[I].onUpdate?.(E,i),I=="tick")return St(i),void 0;e.onUpdate?.(l==""?{[I]:E}:si({},l+"."+I,E))}))}else I==="freeze"&&(i.isFrozen=B===!0,_i(i,i.isFrozen)),IA(B)&&I!="context"&&!bt(B)?u(B,(l?l+".":"")+I):g(l,I,B)})};u(t)}e.onInit?.(i.props);const n=new ne;if(t?.isRoot&&(i.allElements=n,i.props.context.rootElement=i,i.componentInstance.onMount?.(i),h(i)),t)for(let u in t){const o=gi(i,u);o&&(i.directives[u]=o)}function s(u,o,l,g){const I=l.filter(E=>_(E));if(l.filter(E=>Xt(E)),I.length===0)return;const B=I.map(E=>E.observable),C=fA(B).subscribe(async()=>{if(await Xe(l)){C.unsubscribe();const y=o.propSubscriptions.indexOf(C);y>-1&&o.propSubscriptions.splice(y,1),r(u,o,g),h(o)}});o.propSubscriptions.push(C)}function r(u,o,l){o.componentInstance.onMount?.(o,l);for(let g in o.directives)o.directives[g].onMount?.(o);o.effectMounts.forEach(g=>{o.effectUnmounts.push(g(o))})}async function a(u,o,l){let g=u;for(;g?.tag==="fragment";)g=g.parent;if(o.props.context=g.props.context,o.parent=g,!o.propObservables?.freeze&&!o.props?.freeze&&St(g)&&(o.isFrozen=!0),o.props.dependencies&&Array.isArray(o.props.dependencies)){const I=o.props.dependencies;if(!await Xe(I)){s(g,o,I,l);return}}r(g,o,l)}async function h(u){if(u.props.attach&&(_(u.propObservables?.attach)?await new Promise(l=>{let g=null;u.propSubscriptions.push(u.propObservables.attach.observable.subscribe(async I=>{const B=I?.value??I;if(!B)throw new Error(`attach in ${u.tag} is undefined or null, add a component`);g&&ht(g),g=B,await c(u,B),l(void 0)}))}):u.props.children.push(u.props.attach)),!!u.props.children)for(let o of u.props.children)o&&await c(u,o)}async function c(u,o){if(Xt(o)&&(o=await o),o instanceof $){const l=new Map,g=(E,y)=>{if(l.has(E))return;const w=vA(u,E);l.set(E,w),a(u,w,y),h(w)},I=E=>{l.forEach((y,w)=>{E.has(w)||(l.delete(w),y!==w&&ht(y))})},B=(E,y,w)=>{if(E instanceof $){c(u,E);return}if(Array.isArray(E)){E.forEach(b=>B(b,y,w));return}bt(E)&&(y.add(E),g(E,w))},C=o.subscribe(E=>{if(E&&typeof E=="object"&&"elements"in E){const{elements:y,prev:w}=E,b=y.filter(N=>N!==null),M=new Set;if(w){b.forEach(N=>{const O=u.props.children.indexOf(w.props.key);B(N,M,O+1)}),I(M);return}b.forEach((N,O)=>{B(N,M,O)}),I(M)}else if(bt(E)){const y=vA(u,E);a(u,y),h(y)}else Array.isArray(E)&&E.forEach(async y=>{if(y instanceof $)await c(u,y);else if(bt(y)){const w=vA(u,y);a(u,w),h(w)}});n.next(void 0)});u.effectSubscriptions.push(C)}else if(bt(o)){const l=vA(u,o);a(u,l),await h(l)}}return i}function th(A,t){return pe(A)&&A.dependencies.size==0?A=Y(A()):_(A)||(A=Y(A)),ma(()=>{let e=[],i=new Map,n=!0;const s=a=>a?bt(a)?a:{tag:"fragment",props:{children:Array.isArray(a)?a:[a]},componentInstance:{},propSubscriptions:[],effectSubscriptions:[],effectMounts:[],effectUnmounts:[],propObservables:{},parent:null,directives:{},destroy(){ht(this)},allElements:new ne,isFrozen:!1}:null,r=a=>Array.isArray(a());return new $(a=>{const h=r(A)?A.observable.subscribe(c=>{if(n){n=!1,e.forEach(l=>l.destroy()),e=[],i.clear();const o=A();o&&o.forEach((l,g)=>{const I=s(t(l,g));I&&(e.push(I),i.set(g,I))}),a.next({elements:[...e]});return}const u=Array.isArray(c)||c&&typeof c=="object"&&!("type"in c);if(c.type==="init"||c.type==="reset"||u){e.forEach(l=>ht(l)),e=[],i.clear();const o=A();o&&o.forEach((l,g)=>{const I=s(t(l,g));I&&(e.push(I),i.set(g,I))})}else if(c.type==="add"&&c.index!==void 0){const o=c.items.map((l,g)=>{const I=s(t(l,c.index+g));return I&&i.set(c.index+g,I),I}).filter(l=>l!==null);e.splice(c.index,0,...o)}else if(c.type==="remove"&&c.index!==void 0)e.splice(c.index,1).forEach(l=>{ht(l),i.delete(c.index)});else if(c.type==="update"&&c.index!==void 0&&c.items.length===1){const o=c.index,l=c.items[0];if(o>=e.length||e[o]===void 0||!i.has(o)){const g=s(t(l,o));g?(e.splice(o,0,g),i.set(o,g)):console.warn(`Element creation returned null for index ${o} during add-like update.`)}else{const g=e[o];ht(g);const I=s(t(l,o));I?(e[o]=I,i.set(o,I)):(e.splice(o,1),i.delete(o))}}a.next({elements:[...e]})}):A.observable.subscribe(c=>{const u=c.key;if(n){n=!1,e.forEach(l=>ht(l)),e=[],i.clear();const o=A();o&&Object.entries(o).forEach(([l,g])=>{const I=s(t(g,l));I&&(e.push(I),i.set(l,I))}),a.next({elements:[...e]});return}if(c.type==="init"||c.type==="reset"){e.forEach(l=>ht(l)),e=[],i.clear();const o=A();o&&Object.entries(o).forEach(([l,g])=>{const I=s(t(g,l));I&&(e.push(I),i.set(l,I))})}else if(c.type==="add"&&c.key&&c.value!==void 0){const o=s(t(c.value,u));o&&(e.push(o),i.set(u,o))}else if(c.type==="remove"&&c.key){const o=e.findIndex(l=>i.get(u)===l);if(o!==-1){const[l]=e.splice(o,1);ht(l),i.delete(u)}}else if(c.type==="update"&&c.key&&c.value!==void 0){const o=e.findIndex(l=>i.get(u)===l);if(o!==-1){const l=e[o];ht(l);const g=s(t(c.value,u));g&&(e[o]=g,i.set(u,g))}}a.next({elements:[...e]})});return()=>{h.unsubscribe(),e.forEach(c=>ht(c))}})}).pipe(va({bufferSize:1,refCount:!0}))}function eh(A,t,...e){let i=null,n=-1;const s=[];let r=null;const a=c=>_(c)?c:typeof c=="function"?Ct(c):Y(c);for(const c of e)if(Array.isArray(c))s.push({condition:a(c[0]),elementFn:c[1]});else if(typeof c=="function"){r=c;break}const h=[{condition:a(A),elementFn:t},...s];return new $(c=>{const u=[],o=()=>{let l=-1;for(let B=0;B<h.length;B++){const C=h[B].condition;if(C()){l=B;break}}const g=l===-1&&r,I=g?-2:l;if(I!==n)if(i&&(ht(i),i=null),n=I,g){let B=r();Xt(B)?uA(B).subscribe(C=>{i=C,c.next({type:"init",elements:[C]})}):(i=B,c.next({type:"init",elements:[i]}))}else if(l>=0){let B=h[l].elementFn();Xt(B)?uA(B).subscribe(C=>{i=C,c.next({type:"init",elements:[C]})}):(i=B,c.next({type:"init",elements:[i]}))}else c.next({elements:[]})};return h.forEach(({condition:l})=>{const g=l;u.push(g.observable.subscribe(()=>{o()}))}),o(),()=>{u.forEach(l=>l.unsubscribe()),i&&ht(i)}}).pipe(us())}class ao extends Bt{constructor(){super(...arguments),this.keyboardControls=null,this.gamepadControls=null,this.joystickControls=null,this.freezeSubscription=null,this.element=null}onInit(t){this.element=t;const e=t.props.controls?.value??t.props.controls;if(!e)return;this.keyboardControls=new Qs,this.keyboardControls.setInputs(e),this.keyboardControls.start();const i=e.gamepad;i!==void 0&&i.enabled!==!1&&(this.gamepadControls=new ms,this.gamepadControls.setInputs(e),this.gamepadControls.start());const n=e.joystick;n!==void 0&&n.enabled!==!1&&(this.joystickControls=new ws,this.joystickControls.setInputs(e),this.joystickControls.start()),St(t)&&this.stopInputs();const s=t.propObservables?.freeze??t.props?.freeze;_(s)&&(this.freezeSubscription=s.observable.subscribe(r=>{r?this.stopInputs():this.listenInputs()}))}onMount(t){}onUpdate(t,e){const i=t.controls?.value??t.controls;i&&(this.keyboardControls&&this.keyboardControls.setInputs(i),this.gamepadControls&&this.gamepadControls.setInputs(i)),t.freeze!==void 0&&this.element&&(St(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){return this.keyboardControls?.getControl(t)}getControls(){return this.keyboardControls?.getControls()||{}}async applyControl(t,e,i){this.keyboardControls&&await this.keyboardControls.applyControl(t,e),this.gamepadControls&&await this.gamepadControls.applyControl(t,e,i),this.joystickControls&&await this.joystickControls.applyControl(t,e,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(){return this.keyboardControls?.options||{}}get keyboard(){return this.keyboardControls}get gamepad(){return this.gamepadControls}get joystick(){return this.joystickControls}}Et("controls",ao);class lo extends Bt{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){this.tick=t.propObservables?.tick}onDestroy(){}onMount(t){}onUpdate(t){}nextTick(t){const e=typeof t=="number"&&t>0?t:Ot();this.lastTimestamp===0?(this.lastTimestamp=e,this.deltaTime=0):(this.deltaTime=e-this.lastTimestamp,this.lastTimestamp=e),this.timestamp=e,this.tick.set({timestamp:this.timestamp,deltaTime:this.deltaTime,frame:this.frame,deltaRatio:~~this.deltaTime/~~_t(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 e=i=>{Ce()?window.requestAnimationFrame(i.bind(this)):setTimeout(()=>{this.requestedDelay=0,i(Ot())},_t(this.fps)+this.requestedDelay)};if(this.maxFps){const i=_t(this.maxFps);let n=Ot(),s=Ot();const r=a=>{if(this._stop)return;e(r),n=Ot();const h=n-s;h>i&&(s=n-h%i,this.nextTick(a))};e(r)}else{const i=n=>{e(i),this.nextTick(n)};e(i)}return this}stop(){this._stop=!0}}Et("tick",lo);const Qt=(A,t={})=>{if(_(A))return A();const e={};for(let i in A){const n=A[i];e[i]=Ri(n)?Y(n):n}for(let i in t)i in e||(e[i]=Ri(t[i])?Y(t[i]):t[i]);return e},Ni=A=>t=>{const e=_(A)?A():A,i={};for(const n in t){const s=t[n],r=e[n];let a;if(typeof s=="function")Gi(n,r,[s]),a=r;else if(Array.isArray(s))Gi(n,r,s),a=r;else if(s&&typeof s=="object"){if(s.required&&r===void 0)throw new Error(`Missing required prop: ${n}`);if(s.type){const h=Array.isArray(s.type)?s.type:[s.type];Gi(n,r,h)}if(s.validator&&!s.validator(r,e))throw new Error(`Invalid prop: custom validation failed for prop "${n}"`);r===void 0&&"default"in s?a=typeof s.default=="function"?s.default(e):s.default:a=r}i[n]=_(a)?a:Y(a)}return{...Qt(e),...i}};function Gi(A,t,e){if(t==null)return;const i=_(t)?t():t;if(!e.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 "${A}". Expected ${e.map(s=>s.name).join(" or ")}`)}class ho extends Bt{onInit(t){}onMount(t){this.onUpdate(t.props.viewportFollow,t)}onUpdate(t,e){const i=e.props.context?.viewport;if(!i){if(t)throw oi("ViewportFollow directive requires a Viewport component to be mounted in the same context");return}if(t)if(t===!0)i.follow(e.componentInstance);else{const n=Qt(t,{speed:void 0,acceleration:void 0,radius:void 0});i.follow(e.componentInstance,{speed:n.speed(),acceleration:n.acceleration(),radius:n.radius()})}else t===null&&i.plugins.remove("follow")}onDestroy(t){const{viewportFollow:e}=t.props,i=t.props.context?.viewport;e&&i&&i.plugins.remove("follow")}}Et("viewportFollow",ho);var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ah(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Hi={};var co;function ih(){return co||(co=1,(function(A){(function(){var t=function(){this.init()};t.prototype={init:function(){var o=this||e;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 l=this||e;if(o=parseFloat(o),l.ctx||u(),typeof o<"u"&&o>=0&&o<=1){if(l._volume=o,l._muted)return l;l.usingWebAudio&&l.masterGain.gain.setValueAtTime(o,e.ctx.currentTime);for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var I=l._howls[g]._getSoundIds(),B=0;B<I.length;B++){var C=l._howls[g]._soundById(I[B]);C&&C._node&&(C._node.volume=C._volume*o)}return l}return l._volume},mute:function(o){var l=this||e;l.ctx||u(),l._muted=o,l.usingWebAudio&&l.masterGain.gain.setValueAtTime(o?0:l._volume,e.ctx.currentTime);for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var I=l._howls[g]._getSoundIds(),B=0;B<I.length;B++){var C=l._howls[g]._soundById(I[B]);C&&C._node&&(C._node.muted=o?!0:C._muted)}return l},stop:function(){for(var o=this||e,l=0;l<o._howls.length;l++)o._howls[l].stop();return o},unload:function(){for(var o=this||e,l=o._howls.length-1;l>=0;l--)o._howls[l].unload();return o.usingWebAudio&&o.ctx&&typeof o.ctx.close<"u"&&(o.ctx.close(),o.ctx=null,u()),o},codecs:function(o){return(this||e)._codecs[o.replace(/^x-/,"")]},_setup:function(){var o=this||e;if(o.state=o.ctx&&o.ctx.state||"suspended",o._autoSuspend(),!o.usingWebAudio)if(typeof Audio<"u")try{var l=new Audio;typeof l.oncanplaythrough>"u"&&(o._canPlayEvent="canplay")}catch{o.noAudio=!0}else o.noAudio=!0;try{var l=new Audio;l.muted&&(o.noAudio=!0)}catch{}return o.noAudio||o._setupCodecs(),o},_setupCodecs:function(){var o=this||e,l=null;try{l=typeof Audio<"u"?new Audio:null}catch{return o}if(!l||typeof l.canPlayType!="function")return o;var g=l.canPlayType("audio/mpeg;").replace(/^no$/,""),I=o._navigator?o._navigator.userAgent:"",B=I.match(/OPR\/(\d+)/g),C=B&&parseInt(B[0].split("/")[1],10)<33,E=I.indexOf("Safari")!==-1&&I.indexOf("Chrome")===-1,y=I.match(/Version\/(.*?) /),w=E&&y&&parseInt(y[1],10)<15;return o._codecs={mp3:!!(!C&&(g||l.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!g,opus:!!l.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!l.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!l.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(l.canPlayType('audio/wav; codecs="1"')||l.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!l.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!l.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(l.canPlayType("audio/x-m4a;")||l.canPlayType("audio/m4a;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(l.canPlayType("audio/x-m4b;")||l.canPlayType("audio/m4b;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(l.canPlayType("audio/x-mp4;")||l.canPlayType("audio/mp4;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&l.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&l.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!l.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(l.canPlayType("audio/x-flac;")||l.canPlayType("audio/flac;")).replace(/^no$/,"")},o},_unlockAudio:function(){var o=this||e;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 l=function(g){for(;o._html5AudioPool.length<o.html5PoolSize;)try{var I=new Audio;I._unlocked=!0,o._releaseHtml5Audio(I)}catch{o.noAudio=!0;break}for(var B=0;B<o._howls.length;B++)if(!o._howls[B]._webAudio)for(var C=o._howls[B]._getSoundIds(),E=0;E<C.length;E++){var y=o._howls[B]._soundById(C[E]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}o._autoResume();var w=o.ctx.createBufferSource();w.buffer=o._scratchBuffer,w.connect(o.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof o.ctx.resume=="function"&&o.ctx.resume(),w.onended=function(){w.disconnect(0),o._audioUnlocked=!0,document.removeEventListener("touchstart",l,!0),document.removeEventListener("touchend",l,!0),document.removeEventListener("click",l,!0),document.removeEventListener("keydown",l,!0);for(var b=0;b<o._howls.length;b++)o._howls[b]._emit("unlock")}};return document.addEventListener("touchstart",l,!0),document.addEventListener("touchend",l,!0),document.addEventListener("click",l,!0),document.addEventListener("keydown",l,!0),o}},_obtainHtml5Audio:function(){var o=this||e;if(o._html5AudioPool.length)return o._html5AudioPool.pop();var l=new Audio().play();return l&&typeof Promise<"u"&&(l instanceof Promise||typeof l.then=="function")&&l.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(o){var l=this||e;return o._unlocked&&l._html5AudioPool.push(o),l},_autoSuspend:function(){var o=this;if(!(!o.autoSuspend||!o.ctx||typeof o.ctx.suspend>"u"||!e.usingWebAudio)){for(var l=0;l<o._howls.length;l++)if(o._howls[l]._webAudio){for(var g=0;g<o._howls[l]._sounds.length;g++)if(!o._howls[l]._sounds[g]._paused)return o}return o._suspendTimer&&clearTimeout(o._suspendTimer),o._suspendTimer=setTimeout(function(){if(o.autoSuspend){o._suspendTimer=null,o.state="suspending";var I=function(){o.state="suspended",o._resumeAfterSuspend&&(delete o._resumeAfterSuspend,o._autoResume())};o.ctx.suspend().then(I,I)}},3e4),o}},_autoResume:function(){var o=this;if(!(!o.ctx||typeof o.ctx.resume>"u"||!e.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 l=0;l<o._howls.length;l++)o._howls[l]._emit("resume")}),o._suspendTimer&&(clearTimeout(o._suspendTimer),o._suspendTimer=null)):o.state==="suspending"&&(o._resumeAfterSuspend=!0),o}};var e=new t,i=function(o){var l=this;if(!o.src||o.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}l.init(o)};i.prototype={init:function(o){var l=this;return e.ctx||u(),l._autoplay=o.autoplay||!1,l._format=typeof o.format!="string"?o.format:[o.format],l._html5=o.html5||!1,l._muted=o.mute||!1,l._loop=o.loop||!1,l._pool=o.pool||5,l._preload=typeof o.preload=="boolean"||o.preload==="metadata"?o.preload:!0,l._rate=o.rate||1,l._sprite=o.sprite||{},l._src=typeof o.src!="string"?o.src:[o.src],l._volume=o.volume!==void 0?o.volume:1,l._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},l._duration=0,l._state="unloaded",l._sounds=[],l._endTimers={},l._queue=[],l._playLock=!1,l._onend=o.onend?[{fn:o.onend}]:[],l._onfade=o.onfade?[{fn:o.onfade}]:[],l._onload=o.onload?[{fn:o.onload}]:[],l._onloaderror=o.onloaderror?[{fn:o.onloaderror}]:[],l._onplayerror=o.onplayerror?[{fn:o.onplayerror}]:[],l._onpause=o.onpause?[{fn:o.onpause}]:[],l._onplay=o.onplay?[{fn:o.onplay}]:[],l._onstop=o.onstop?[{fn:o.onstop}]:[],l._onmute=o.onmute?[{fn:o.onmute}]:[],l._onvolume=o.onvolume?[{fn:o.onvolume}]:[],l._onrate=o.onrate?[{fn:o.onrate}]:[],l._onseek=o.onseek?[{fn:o.onseek}]:[],l._onunlock=o.onunlock?[{fn:o.onunlock}]:[],l._onresume=[],l._webAudio=e.usingWebAudio&&!l._html5,typeof e.ctx<"u"&&e.ctx&&e.autoUnlock&&e._unlockAudio(),e._howls.push(l),l._autoplay&&l._queue.push({event:"play",action:function(){l.play()}}),l._preload&&l._preload!=="none"&&l.load(),l},load:function(){var o=this,l=null;if(e.noAudio){o._emit("loaderror",null,"No audio support.");return}typeof o._src=="string"&&(o._src=[o._src]);for(var g=0;g<o._src.length;g++){var I,B;if(o._format&&o._format[g])I=o._format[g];else{if(B=o._src[g],typeof B!="string"){o._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}I=/^data:audio\/([^;,]+);/i.exec(B),I||(I=/\.([^.]+)$/.exec(B.split("?",1)[0])),I&&(I=I[1].toLowerCase())}if(I||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),I&&e.codecs(I)){l=o._src[g];break}}if(!l){o._emit("loaderror",null,"No codec support for selected audio sources.");return}return o._src=l,o._state="loading",window.location.protocol==="https:"&&l.slice(0,5)==="http:"&&(o._html5=!0,o._webAudio=!1),new n(o),o._webAudio&&r(o),o},play:function(o,l){var g=this,I=null;if(typeof o=="number")I=o,o=null;else{if(typeof o=="string"&&g._state==="loaded"&&!g._sprite[o])return null;if(typeof o>"u"&&(o="__default",!g._playLock)){for(var B=0,C=0;C<g._sounds.length;C++)g._sounds[C]._paused&&!g._sounds[C]._ended&&(B++,I=g._sounds[C]._id);B===1?o=null:I=null}}var E=I?g._soundById(I):g._inactiveSound();if(!E)return null;if(I&&!o&&(o=E._sprite||"__default"),g._state!=="loaded"){E._sprite=o,E._ended=!1;var y=E._id;return g._queue.push({event:"play",action:function(){g.play(y)}}),y}if(I&&!E._paused)return l||g._loadQueue("play"),E._id;g._webAudio&&e._autoResume();var w=Math.max(0,E._seek>0?E._seek:g._sprite[o][0]/1e3),b=Math.max(0,(g._sprite[o][0]+g._sprite[o][1])/1e3-w),M=b*1e3/Math.abs(E._rate),N=g._sprite[o][0]/1e3,O=(g._sprite[o][0]+g._sprite[o][1])/1e3;E._sprite=o,E._ended=!1;var K=function(){E._paused=!1,E._seek=w,E._start=N,E._stop=O,E._loop=!!(E._loop||g._sprite[o][2])};if(w>=O){g._ended(E);return}var H=E._node;if(g._webAudio){var T=function(){g._playLock=!1,K(),g._refreshBuffer(E);var tt=E._muted||g._muted?0:E._volume;H.gain.setValueAtTime(tt,e.ctx.currentTime),E._playStart=e.ctx.currentTime,typeof H.bufferSource.start>"u"?E._loop?H.bufferSource.noteGrainOn(0,w,86400):H.bufferSource.noteGrainOn(0,w,b):E._loop?H.bufferSource.start(0,w,86400):H.bufferSource.start(0,w,b),M!==1/0&&(g._endTimers[E._id]=setTimeout(g._ended.bind(g,E),M)),l||setTimeout(function(){g._emit("play",E._id),g._loadQueue()},0)};e.state==="running"&&e.ctx.state!=="interrupted"?T():(g._playLock=!0,g.once("resume",T),g._clearTimer(E._id))}else{var W=function(){H.currentTime=w,H.muted=E._muted||g._muted||e._muted||H.muted,H.volume=E._volume*e.volume(),H.playbackRate=E._rate;try{var tt=H.play();if(tt&&typeof Promise<"u"&&(tt instanceof Promise||typeof tt.then=="function")?(g._playLock=!0,K(),tt.then(function(){g._playLock=!1,H._unlocked=!0,l?g._loadQueue():g._emit("play",E._id)}).catch(function(){g._playLock=!1,g._emit("playerror",E._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."),E._ended=!0,E._paused=!0})):l||(g._playLock=!1,K(),g._emit("play",E._id)),H.playbackRate=E._rate,H.paused){g._emit("playerror",E._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"||E._loop?g._endTimers[E._id]=setTimeout(g._ended.bind(g,E),M):(g._endTimers[E._id]=function(){g._ended(E),H.removeEventListener("ended",g._endTimers[E._id],!1)},H.addEventListener("ended",g._endTimers[E._id],!1))}catch(ut){g._emit("playerror",E._id,ut)}};H.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(H.src=g._src,H.load());var At=window&&window.ejecta||!H.readyState&&e._navigator.isCocoonJS;if(H.readyState>=3||At)W();else{g._playLock=!0,g._state="loading";var rt=function(){g._state="loaded",W(),H.removeEventListener(e._canPlayEvent,rt,!1)};H.addEventListener(e._canPlayEvent,rt,!1),g._clearTimer(E._id)}}return E._id},pause:function(o){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"pause",action:function(){l.pause(o)}}),l;for(var g=l._getSoundIds(o),I=0;I<g.length;I++){l._clearTimer(g[I]);var B=l._soundById(g[I]);if(B&&!B._paused&&(B._seek=l.seek(g[I]),B._rateSeek=0,B._paused=!0,l._stopFade(g[I]),B._node))if(l._webAudio){if(!B._node.bufferSource)continue;typeof B._node.bufferSource.stop>"u"?B._node.bufferSource.noteOff(0):B._node.bufferSource.stop(0),l._cleanBuffer(B._node)}else(!isNaN(B._node.duration)||B._node.duration===1/0)&&B._node.pause();arguments[1]||l._emit("pause",B?B._id:null)}return l},stop:function(o,l){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"stop",action:function(){g.stop(o)}}),g;for(var I=g._getSoundIds(o),B=0;B<I.length;B++){g._clearTimer(I[B]);var C=g._soundById(I[B]);C&&(C._seek=C._start||0,C._rateSeek=0,C._paused=!0,C._ended=!0,g._stopFade(I[B]),C._node&&(g._webAudio?C._node.bufferSource&&(typeof C._node.bufferSource.stop>"u"?C._node.bufferSource.noteOff(0):C._node.bufferSource.stop(0),g._cleanBuffer(C._node)):(!isNaN(C._node.duration)||C._node.duration===1/0)&&(C._node.currentTime=C._start||0,C._node.pause(),C._node.duration===1/0&&g._clearSound(C._node))),l||g._emit("stop",C._id))}return g},mute:function(o,l){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"mute",action:function(){g.mute(o,l)}}),g;if(typeof l>"u")if(typeof o=="boolean")g._muted=o;else return g._muted;for(var I=g._getSoundIds(l),B=0;B<I.length;B++){var C=g._soundById(I[B]);C&&(C._muted=o,C._interval&&g._stopFade(C._id),g._webAudio&&C._node?C._node.gain.setValueAtTime(o?0:C._volume,e.ctx.currentTime):C._node&&(C._node.muted=e._muted?!0:o),g._emit("mute",C._id))}return g},volume:function(){var o=this,l=arguments,g,I;if(l.length===0)return o._volume;if(l.length===1||l.length===2&&typeof l[1]>"u"){var B=o._getSoundIds(),C=B.indexOf(l[0]);C>=0?I=parseInt(l[0],10):g=parseFloat(l[0])}else l.length>=2&&(g=parseFloat(l[0]),I=parseInt(l[1],10));var E;if(typeof g<"u"&&g>=0&&g<=1){if(o._state!=="loaded"||o._playLock)return o._queue.push({event:"volume",action:function(){o.volume.apply(o,l)}}),o;typeof I>"u"&&(o._volume=g),I=o._getSoundIds(I);for(var y=0;y<I.length;y++)E=o._soundById(I[y]),E&&(E._volume=g,l[2]||o._stopFade(I[y]),o._webAudio&&E._node&&!E._muted?E._node.gain.setValueAtTime(g,e.ctx.currentTime):E._node&&!E._muted&&(E._node.volume=g*e.volume()),o._emit("volume",E._id))}else return E=I?o._soundById(I):o._sounds[0],E?E._volume:0;return o},fade:function(o,l,g,I){var B=this;if(B._state!=="loaded"||B._playLock)return B._queue.push({event:"fade",action:function(){B.fade(o,l,g,I)}}),B;o=Math.min(Math.max(0,parseFloat(o)),1),l=Math.min(Math.max(0,parseFloat(l)),1),g=parseFloat(g),B.volume(o,I);for(var C=B._getSoundIds(I),E=0;E<C.length;E++){var y=B._soundById(C[E]);if(y){if(I||B._stopFade(C[E]),B._webAudio&&!y._muted){var w=e.ctx.currentTime,b=w+g/1e3;y._volume=o,y._node.gain.setValueAtTime(o,w),y._node.gain.linearRampToValueAtTime(l,b)}B._startFadeInterval(y,o,l,g,C[E],typeof I>"u")}}return B},_startFadeInterval:function(o,l,g,I,B,C){var E=this,y=l,w=g-l,b=Math.abs(w/.01),M=Math.max(4,b>0?I/b:I),N=Date.now();o._fadeTo=g,o._interval=setInterval(function(){var O=(Date.now()-N)/I;N=Date.now(),y+=w*O,y=Math.round(y*100)/100,w<0?y=Math.max(g,y):y=Math.min(g,y),E._webAudio?o._volume=y:E.volume(y,o._id,!0),C&&(E._volume=y),(g<l&&y<=g||g>l&&y>=g)&&(clearInterval(o._interval),o._interval=null,o._fadeTo=null,E.volume(g,o._id),E._emit("fade",o._id))},M)},_stopFade:function(o){var l=this,g=l._soundById(o);return g&&g._interval&&(l._webAudio&&g._node.gain.cancelScheduledValues(e.ctx.currentTime),clearInterval(g._interval),g._interval=null,l.volume(g._fadeTo,o),g._fadeTo=null,l._emit("fade",o)),l},loop:function(){var o=this,l=arguments,g,I,B;if(l.length===0)return o._loop;if(l.length===1)if(typeof l[0]=="boolean")g=l[0],o._loop=g;else return B=o._soundById(parseInt(l[0],10)),B?B._loop:!1;else l.length===2&&(g=l[0],I=parseInt(l[1],10));for(var C=o._getSoundIds(I),E=0;E<C.length;E++)B=o._soundById(C[E]),B&&(B._loop=g,o._webAudio&&B._node&&B._node.bufferSource&&(B._node.bufferSource.loop=g,g&&(B._node.bufferSource.loopStart=B._start||0,B._node.bufferSource.loopEnd=B._stop,o.playing(C[E])&&(o.pause(C[E],!0),o.play(C[E],!0)))));return o},rate:function(){var o=this,l=arguments,g,I;if(l.length===0)I=o._sounds[0]._id;else if(l.length===1){var B=o._getSoundIds(),C=B.indexOf(l[0]);C>=0?I=parseInt(l[0],10):g=parseFloat(l[0])}else l.length===2&&(g=parseFloat(l[0]),I=parseInt(l[1],10));var E;if(typeof g=="number"){if(o._state!=="loaded"||o._playLock)return o._queue.push({event:"rate",action:function(){o.rate.apply(o,l)}}),o;typeof I>"u"&&(o._rate=g),I=o._getSoundIds(I);for(var y=0;y<I.length;y++)if(E=o._soundById(I[y]),E){o.playing(I[y])&&(E._rateSeek=o.seek(I[y]),E._playStart=o._webAudio?e.ctx.currentTime:E._playStart),E._rate=g,o._webAudio&&E._node&&E._node.bufferSource?E._node.bufferSource.playbackRate.setValueAtTime(g,e.ctx.currentTime):E._node&&(E._node.playbackRate=g);var w=o.seek(I[y]),b=(o._sprite[E._sprite][0]+o._sprite[E._sprite][1])/1e3-w,M=b*1e3/Math.abs(E._rate);(o._endTimers[I[y]]||!E._paused)&&(o._clearTimer(I[y]),o._endTimers[I[y]]=setTimeout(o._ended.bind(o,E),M)),o._emit("rate",E._id)}}else return E=o._soundById(I),E?E._rate:o._rate;return o},seek:function(){var o=this,l=arguments,g,I;if(l.length===0)o._sounds.length&&(I=o._sounds[0]._id);else if(l.length===1){var B=o._getSoundIds(),C=B.indexOf(l[0]);C>=0?I=parseInt(l[0],10):o._sounds.length&&(I=o._sounds[0]._id,g=parseFloat(l[0]))}else l.length===2&&(g=parseFloat(l[0]),I=parseInt(l[1],10));if(typeof I>"u")return 0;if(typeof g=="number"&&(o._state!=="loaded"||o._playLock))return o._queue.push({event:"seek",action:function(){o.seek.apply(o,l)}}),o;var E=o._soundById(I);if(E)if(typeof g=="number"&&g>=0){var y=o.playing(I);y&&o.pause(I,!0),E._seek=g,E._ended=!1,o._clearTimer(I),!o._webAudio&&E._node&&!isNaN(E._node.duration)&&(E._node.currentTime=g);var w=function(){y&&o.play(I,!0),o._emit("seek",I)};if(y&&!o._webAudio){var b=function(){o._playLock?setTimeout(b,0):w()};setTimeout(b,0)}else w()}else if(o._webAudio){var M=o.playing(I)?e.ctx.currentTime-E._playStart:0,N=E._rateSeek?E._rateSeek-E._seek:0;return E._seek+(N+M*Math.abs(E._rate))}else return E._node.currentTime;return o},playing:function(o){var l=this;if(typeof o=="number"){var g=l._soundById(o);return g?!g._paused:!1}for(var I=0;I<l._sounds.length;I++)if(!l._sounds[I]._paused)return!0;return!1},duration:function(o){var l=this,g=l._duration,I=l._soundById(o);return I&&(g=l._sprite[I._sprite][1]/1e3),g},state:function(){return this._state},unload:function(){for(var o=this,l=o._sounds,g=0;g<l.length;g++)l[g]._paused||o.stop(l[g]._id),o._webAudio||(o._clearSound(l[g]._node),l[g]._node.removeEventListener("error",l[g]._errorFn,!1),l[g]._node.removeEventListener(e._canPlayEvent,l[g]._loadFn,!1),l[g]._node.removeEventListener("ended",l[g]._endFn,!1),e._releaseHtml5Audio(l[g]._node)),delete l[g]._node,o._clearTimer(l[g]._id);var I=e._howls.indexOf(o);I>=0&&e._howls.splice(I,1);var B=!0;for(g=0;g<e._howls.length;g++)if(e._howls[g]._src===o._src||o._src.indexOf(e._howls[g]._src)>=0){B=!1;break}return s&&B&&delete s[o._src],e.noAudio=!1,o._state="unloaded",o._sounds=[],o=null,null},on:function(o,l,g,I){var B=this,C=B["_on"+o];return typeof l=="function"&&C.push(I?{id:g,fn:l,once:I}:{id:g,fn:l}),B},off:function(o,l,g){var I=this,B=I["_on"+o],C=0;if(typeof l=="number"&&(g=l,l=null),l||g)for(C=0;C<B.length;C++){var E=g===B[C].id;if(l===B[C].fn&&E||!l&&E){B.splice(C,1);break}}else if(o)I["_on"+o]=[];else{var y=Object.keys(I);for(C=0;C<y.length;C++)y[C].indexOf("_on")===0&&Array.isArray(I[y[C]])&&(I[y[C]]=[])}return I},once:function(o,l,g){var I=this;return I.on(o,l,g,1),I},_emit:function(o,l,g){for(var I=this,B=I["_on"+o],C=B.length-1;C>=0;C--)(!B[C].id||B[C].id===l||o==="load")&&(setTimeout((function(E){E.call(this,l,g)}).bind(I,B[C].fn),0),B[C].once&&I.off(o,B[C].fn,B[C].id));return I._loadQueue(o),I},_loadQueue:function(o){var l=this;if(l._queue.length>0){var g=l._queue[0];g.event===o&&(l._queue.shift(),l._loadQueue()),o||g.action()}return l},_ended:function(o){var l=this,g=o._sprite;if(!l._webAudio&&o._node&&!o._node.paused&&!o._node.ended&&o._node.currentTime<o._stop)return setTimeout(l._ended.bind(l,o),100),l;var I=!!(o._loop||l._sprite[g][2]);if(l._emit("end",o._id),!l._webAudio&&I&&l.stop(o._id,!0).play(o._id),l._webAudio&&I){l._emit("play",o._id),o._seek=o._start||0,o._rateSeek=0,o._playStart=e.ctx.currentTime;var B=(o._stop-o._start)*1e3/Math.abs(o._rate);l._endTimers[o._id]=setTimeout(l._ended.bind(l,o),B)}return l._webAudio&&!I&&(o._paused=!0,o._ended=!0,o._seek=o._start||0,o._rateSeek=0,l._clearTimer(o._id),l._cleanBuffer(o._node),e._autoSuspend()),!l._webAudio&&!I&&l.stop(o._id,!0),l},_clearTimer:function(o){var l=this;if(l._endTimers[o]){if(typeof l._endTimers[o]!="function")clearTimeout(l._endTimers[o]);else{var g=l._soundById(o);g&&g._node&&g._node.removeEventListener("ended",l._endTimers[o],!1)}delete l._endTimers[o]}return l},_soundById:function(o){for(var l=this,g=0;g<l._sounds.length;g++)if(o===l._sounds[g]._id)return l._sounds[g];return null},_inactiveSound:function(){var o=this;o._drain();for(var l=0;l<o._sounds.length;l++)if(o._sounds[l]._ended)return o._sounds[l].reset();return new n(o)},_drain:function(){var o=this,l=o._pool,g=0,I=0;if(!(o._sounds.length<l)){for(I=0;I<o._sounds.length;I++)o._sounds[I]._ended&&g++;for(I=o._sounds.length-1;I>=0;I--){if(g<=l)return;o._sounds[I]._ended&&(o._webAudio&&o._sounds[I]._node&&o._sounds[I]._node.disconnect(0),o._sounds.splice(I,1),g--)}}},_getSoundIds:function(o){var l=this;if(typeof o>"u"){for(var g=[],I=0;I<l._sounds.length;I++)g.push(l._sounds[I]._id);return g}else return[o]},_refreshBuffer:function(o){var l=this;return o._node.bufferSource=e.ctx.createBufferSource(),o._node.bufferSource.buffer=s[l._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,e.ctx.currentTime),l},_cleanBuffer:function(o){var l=this,g=e._navigator&&e._navigator.vendor.indexOf("Apple")>=0;if(!o.bufferSource)return l;if(e._scratchBuffer&&o.bufferSource&&(o.bufferSource.onended=null,o.bufferSource.disconnect(0),g))try{o.bufferSource.buffer=e._scratchBuffer}catch{}return o.bufferSource=null,l},_clearSound:function(o){var l=/MSIE |Trident\//.test(e._navigator&&e._navigator.userAgent);l||(o.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(o){this._parent=o,this.init()};n.prototype={init:function(){var o=this,l=o._parent;return o._muted=l._muted,o._loop=l._loop,o._volume=l._volume,o._rate=l._rate,o._seek=0,o._paused=!0,o._ended=!0,o._sprite="__default",o._id=++e._counter,l._sounds.push(o),o.create(),o},create:function(){var o=this,l=o._parent,g=e._muted||o._muted||o._parent._muted?0:o._volume;return l._webAudio?(o._node=typeof e.ctx.createGain>"u"?e.ctx.createGainNode():e.ctx.createGain(),o._node.gain.setValueAtTime(g,e.ctx.currentTime),o._node.paused=!0,o._node.connect(e.masterGain)):e.noAudio||(o._node=e._obtainHtml5Audio(),o._errorFn=o._errorListener.bind(o),o._node.addEventListener("error",o._errorFn,!1),o._loadFn=o._loadListener.bind(o),o._node.addEventListener(e._canPlayEvent,o._loadFn,!1),o._endFn=o._endListener.bind(o),o._node.addEventListener("ended",o._endFn,!1),o._node.src=l._src,o._node.preload=l._preload===!0?"auto":l._preload,o._node.volume=g*e.volume(),o._node.load()),o},reset:function(){var o=this,l=o._parent;return o._muted=l._muted,o._loop=l._loop,o._volume=l._volume,o._rate=l._rate,o._seek=0,o._rateSeek=0,o._paused=!0,o._ended=!0,o._sprite="__default",o._id=++e._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,l=o._parent;l._duration=Math.ceil(o._node.duration*10)/10,Object.keys(l._sprite).length===0&&(l._sprite={__default:[0,l._duration*1e3]}),l._state!=="loaded"&&(l._state="loaded",l._emit("load"),l._loadQueue()),o._node.removeEventListener(e._canPlayEvent,o._loadFn,!1)},_endListener:function(){var o=this,l=o._parent;l._duration===1/0&&(l._duration=Math.ceil(o._node.duration*10)/10,l._sprite.__default[1]===1/0&&(l._sprite.__default[1]=l._duration*1e3),l._ended(o)),o._node.removeEventListener("ended",o._endFn,!1)}};var s={},r=function(o){var l=o._src;if(s[l]){o._duration=s[l].duration,c(o);return}if(/^data:[^;]+;base64,/.test(l)){for(var g=atob(l.split(",")[1]),I=new Uint8Array(g.length),B=0;B<g.length;++B)I[B]=g.charCodeAt(B);h(I.buffer,o)}else{var C=new XMLHttpRequest;C.open(o._xhr.method,l,!0),C.withCredentials=o._xhr.withCredentials,C.responseType="arraybuffer",o._xhr.headers&&Object.keys(o._xhr.headers).forEach(function(E){C.setRequestHeader(E,o._xhr.headers[E])}),C.onload=function(){var E=(C.status+"")[0];if(E!=="0"&&E!=="2"&&E!=="3"){o._emit("loaderror",null,"Failed loading audio file with status: "+C.status+".");return}h(C.response,o)},C.onerror=function(){o._webAudio&&(o._html5=!0,o._webAudio=!1,o._sounds=[],delete s[l],o.load())},a(C)}},a=function(o){try{o.send()}catch{o.onerror()}},h=function(o,l){var g=function(){l._emit("loaderror",null,"Decoding audio data failed.")},I=function(B){B&&l._sounds.length>0?(s[l._src]=B,c(l,B)):g()};typeof Promise<"u"&&e.ctx.decodeAudioData.length===1?e.ctx.decodeAudioData(o).then(I).catch(g):e.ctx.decodeAudioData(o,I,g)},c=function(o,l){l&&!o._duration&&(o._duration=l.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())},u=function(){if(e.usingWebAudio){try{typeof AudioContext<"u"?e.ctx=new AudioContext:typeof webkitAudioContext<"u"?e.ctx=new webkitAudioContext:e.usingWebAudio=!1}catch{e.usingWebAudio=!1}e.ctx||(e.usingWebAudio=!1);var o=/iP(hone|od|ad)/.test(e._navigator&&e._navigator.platform),l=e._navigator&&e._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),g=l?parseInt(l[1],10):null;if(o&&g&&g<9){var I=/safari/.test(e._navigator&&e._navigator.userAgent.toLowerCase());e._navigator&&!I&&(e.usingWebAudio=!1)}e.usingWebAudio&&(e.masterGain=typeof e.ctx.createGain>"u"?e.ctx.createGainNode():e.ctx.createGain(),e.masterGain.gain.setValueAtTime(e._muted?0:e._volume,e.ctx.currentTime),e.masterGain.connect(e.ctx.destination)),e._setup()}};A.Howler=e,A.Howl=i,typeof Ze<"u"?(Ze.HowlerGlobal=t,Ze.Howler=e,Ze.Howl=i,Ze.Sound=n):typeof window<"u"&&(window.HowlerGlobal=t,window.Howler=e,window.Howl=i,window.Sound=n)})();(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){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(e);return i},HowlerGlobal.prototype.pos=function(e,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 e=="number")s._pos=[e,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(e,i,n,s,r,a){var h=this;if(!h.ctx||!h.ctx.listener)return h;var c=h._orientation;if(i=typeof i!="number"?c[1]:i,n=typeof n!="number"?c[2]:n,s=typeof s!="number"?c[3]:s,r=typeof r!="number"?c[4]:r,a=typeof a!="number"?c[5]:a,typeof e=="number")h._orientation=[e,i,n,s,r,a],typeof h.ctx.listener.forwardX<"u"?(h.ctx.listener.forwardX.setTargetAtTime(e,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(r,Howler.ctx.currentTime,.1),h.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):h.ctx.listener.setOrientation(e,i,n,s,r,a);else return c;return h},Howl.prototype.init=(function(e){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}]:[],e.call(this,i)}})(Howl.prototype.init),Howl.prototype.stereo=function(e,i){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"stereo",action:function(){n.stereo(e,i)}}),n;var s=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof i>"u")if(typeof e=="number")n._stereo=e,n._pos=[e,0,0];else return n._stereo;for(var r=n._getSoundIds(i),a=0;a<r.length;a++){var h=n._soundById(r[a]);if(h)if(typeof e=="number")h._stereo=e,h._pos=[e,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(e,Howler.ctx.currentTime),h._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),h._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):h._panner.setPosition(e,0,0):h._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",h._id);else return h._stereo}return n},Howl.prototype.pos=function(e,i,n,s){var r=this;if(!r._webAudio)return r;if(r._state!=="loaded")return r._queue.push({event:"pos",action:function(){r.pos(e,i,n,s)}}),r;if(i=typeof i!="number"?0:i,n=typeof n!="number"?-.5:n,typeof s>"u")if(typeof e=="number")r._pos=[e,i,n];else return r._pos;for(var a=r._getSoundIds(s),h=0;h<a.length;h++){var c=r._soundById(a[h]);if(c)if(typeof e=="number")c._pos=[e,i,n],c._node&&((!c._panner||c._panner.pan)&&t(c,"spatial"),typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(i,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):c._panner.setPosition(e,i,n)),r._emit("pos",c._id);else return c._pos}return r},Howl.prototype.orientation=function(e,i,n,s){var r=this;if(!r._webAudio)return r;if(r._state!=="loaded")return r._queue.push({event:"orientation",action:function(){r.orientation(e,i,n,s)}}),r;if(i=typeof i!="number"?r._orientation[1]:i,n=typeof n!="number"?r._orientation[2]:n,typeof s>"u")if(typeof e=="number")r._orientation=[e,i,n];else return r._orientation;for(var a=r._getSoundIds(s),h=0;h<a.length;h++){var c=r._soundById(a[h]);if(c)if(typeof e=="number")c._orientation=[e,i,n],c._node&&(c._panner||(c._pos||(c._pos=r._pos||[0,0,-.5]),t(c,"spatial")),typeof c._panner.orientationX<"u"?(c._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(i,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):c._panner.setOrientation(e,i,n)),r._emit("orientation",c._id);else return c._orientation}return r},Howl.prototype.pannerAttr=function(){var e=this,i=arguments,n,s,r;if(!e._webAudio)return e;if(i.length===0)return e._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}),e._pannerAttr={coneInnerAngle:typeof n.pannerAttr.coneInnerAngle<"u"?n.pannerAttr.coneInnerAngle:e._coneInnerAngle,coneOuterAngle:typeof n.pannerAttr.coneOuterAngle<"u"?n.pannerAttr.coneOuterAngle:e._coneOuterAngle,coneOuterGain:typeof n.pannerAttr.coneOuterGain<"u"?n.pannerAttr.coneOuterGain:e._coneOuterGain,distanceModel:typeof n.pannerAttr.distanceModel<"u"?n.pannerAttr.distanceModel:e._distanceModel,maxDistance:typeof n.pannerAttr.maxDistance<"u"?n.pannerAttr.maxDistance:e._maxDistance,refDistance:typeof n.pannerAttr.refDistance<"u"?n.pannerAttr.refDistance:e._refDistance,rolloffFactor:typeof n.pannerAttr.rolloffFactor<"u"?n.pannerAttr.rolloffFactor:e._rolloffFactor,panningModel:typeof n.pannerAttr.panningModel<"u"?n.pannerAttr.panningModel:e._panningModel});else return r=e._soundById(parseInt(i[0],10)),r?r._pannerAttr:e._pannerAttr;else i.length===2&&(n=i[0],s=parseInt(i[1],10));for(var a=e._getSoundIds(s),h=0;h<a.length;h++)if(r=e._soundById(a[h]),r){var c=r._pannerAttr;c={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:c.coneOuterAngle,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:c.coneOuterGain,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:c.distanceModel,maxDistance:typeof n.maxDistance<"u"?n.maxDistance:c.maxDistance,refDistance:typeof n.refDistance<"u"?n.refDistance:c.refDistance,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:c.rolloffFactor,panningModel:typeof n.panningModel<"u"?n.panningModel:c.panningModel};var u=r._panner;u||(r._pos||(r._pos=e._pos||[0,0,-.5]),t(r,"spatial"),u=r._panner),u.coneInnerAngle=c.coneInnerAngle,u.coneOuterAngle=c.coneOuterAngle,u.coneOuterGain=c.coneOuterGain,u.distanceModel=c.distanceModel,u.maxDistance=c.maxDistance,u.refDistance=c.refDistance,u.rolloffFactor=c.rolloffFactor,u.panningModel=c.panningModel}return e},Sound.prototype.init=(function(e){return function(){var i=this,n=i._parent;i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,e.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(e){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)),e.call(this)}})(Sound.prototype.reset);var t=function(e,i){i=i||"spatial",i==="spatial"?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,typeof e._panner.positionX<"u"?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),typeof e._panner.orientationX<"u"?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}})()})(Hi)),Hi}var me=ih();const nh=Rr({__proto__:null,default:Ah(me)},[me]),go=["load","loaderror","playerror","play","end","pause","stop","mute","volume","rate","seek","fade","unlock"];let uo=class extends Bt{constructor(){super(...arguments),this.sounds=[],this.eventsFn=[],this.maxVolume=1,this.maxDistance=100}onInit(t){}onMount(t){const{props:e}=t,i=e.context.tick,n=e.sound.value??e.sound;if(!n.src)return;const{src:s,autoplay:r,loop:a,volume:h,spatial:c}=n,u=Array.isArray(s)?s:[s];for(const o of u){if(!o)continue;const l=new me.Howl({src:o,autoplay:r,loop:a,volume:h});for(let g of go){if(!n[g])continue;const I=n[g];this.eventsFn.push(I),l.on(g,I)}this.sounds.push(l)}if(c&&this.sounds.length>0){const{soundListenerPosition:o}=e.context;if(!o)throw new oi("SoundListenerPosition directive is required for spatial sound in component parent");const{x:l,y:g}=o;this.tickSubscription=it(()=>{i();const{x:I,y:B}=t.componentInstance,C=ds(I,B,l(),g()),E=Math.max(this.maxVolume-C/this.maxDistance,0);this.sounds.forEach(y=>y.volume(E))}).subscription}this.onUpdate(n)}onUpdate(t){const e=t.value??t,{volume:i,loop:n,mute:s,seek:r,playing:a,rate:h,spatial:c}=e;this.sounds.forEach(u=>{i!==void 0&&u.volume(i),n!==void 0&&u.loop(n),s!==void 0&&u.mute(s),r!==void 0&&u.seek(r),a!==void 0&&(a?u.play():u.pause()),h!==void 0&&u.rate(h)}),c&&(this.maxVolume=c.maxVolume??this.maxVolume,this.maxDistance=c.maxDistance??this.maxDistance)}onDestroy(){this.sounds.forEach(t=>{t.stop();for(let e of go){const i=this.eventsFn.find(n=>n===this.eventsFn[e]);i&&t.off(e,i)}}),this.sounds=[],this.eventsFn=[],this.tickSubscription?.unsubscribe()}};class sh extends Bt{onMount(t){t.props.context.soundListenerPosition=t.propObservables?.soundListenerPosition}onInit(t){}onUpdate(t){}onDestroy(){}}Et("sound",uo),Et("soundListenerPosition",sh);const oh=(A,t,e)=>{A.props.context={...A.props.context??{},[t]:e}};class fo extends Bt{constructor(){super(...arguments),this.elementRef=null}onInit(t){this.elementRef=t}onMount(t){oh(t,"drop",t)}onUpdate(){}onDestroy(){this.elementRef=null}}class Io extends Bt{constructor(){super(...arguments),this.elementRef=null,this.stageRef=null,this.offsetInParent=new D.Point,this.isDragging=!1,this.viewport=null,this.animationFrameId=null,this.lastPointerPosition=new D.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:e,canvasSize:i,viewport:n,tick:s}=t.props.context,r=t.componentInstance,a=this.dragProps;if(Object.keys(a).length===0){this.onDestroy();return}if(!r||(this.stageRef=e.componentInstance,!this.stageRef))return;this.viewport=n,r.eventMode="static",this.stageRef.eventMode="static";const c=it(()=>{this.stageRef&&(this.stageRef.hitArea=new D.Rectangle(0,0,i().width,i().height))});r.on("pointerdown",this.onDragStartHandler),this.stageRef.on("pointerup",this.onDragEndHandler),this.stageRef.on("pointerupoutside",this.onDragEndHandler),a.keyToPress&&a.keyToPress,window.addEventListener("keydown",this.onKeyDownHandler),window.addEventListener("keyup",this.onKeyUpHandler),this.subscriptions=[s.observable.subscribe(()=>{this.isDragging&&this.viewport&&this.updateViewportPosition(this.lastPointerPosition)}),c.subscription]}get dragProps(){const t=this.elementRef?.props.drag,e=Qt(t?.value??t,{snap:0,viewport:{},direction:"all",keyToPress:[]});return e.viewport=Qt(e.viewport,{edgeThreshold:300,maxSpeed:40}),e}get axis(){const t=this.dragProps.direction(),e={x:!0,y:!0};return t==="x"&&(e.y=!1),t==="y"&&(e.x=!1),e}onDragMove(t){if(!this.isDragging||!this.elementRef?.componentInstance||!this.elementRef.componentInstance.parent)return;const e=this.elementRef.componentInstance,i=e.parent,n=this.dragProps,s=this.elementRef.propObservables,r=Wl(n?.snap()??0);n?.move?.(t);const a=i.toLocal(t.global),h=a.x-this.offsetInParent.x,c=a.y-this.offsetInParent.y;n?.snap()?(e.position.x=r(h),e.position.y=r(c)):(this.axis.x&&(e.position.x=h),this.axis.y&&(e.position.y=c)),this.lastPointerPosition.copyFrom(t.global);const{x:u,y:o}=s,l=(g,I)=>{pe(g)?g.dependencies.forEach(B=>{B.set(I)}):_(g)&&g.set(I)};u!==void 0&&l(u,e.position.x),o!==void 0&&l(o,e.position.y)}updateViewportPosition(t){if(!this.viewport||!this.elementRef)return;const e=this.dragProps,i=e?.viewport?.edgeThreshold(),n=e?.viewport?.maxSpeed(),s=0,r=this.viewport.screenWidth,a=0,h=this.viewport.screenHeight,c=this.elementRef.componentInstance,u=t.x-s,o=r-t.x,l=t.y-a,g=h-t.y;let I=0,B=0;if(u<i?I=-(n*(1-u/i)):o<i&&(I=n*(1-o/i)),l<i?B=-(n*(1-l/i)):g<i&&(B=n*(1-g/i)),I!==0||B!==0){const C=this.viewport.center;this.viewport.moveCenter(this.viewport.center.x+I,this.viewport.center.y+B),this.axis.x&&C.x!==this.viewport.center.x&&(c.position.x+=I),this.axis.y&&C.y!==this.viewport.center.y&&(c.position.y+=B)}}onDragEnd(){if(this.pointerIsDown=!1,!this.isDragging)return;const t=this.dragProps;this.isDragging=!1,t?.end?.(),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(e=>this.pressedKeys.has(e)?!0:e.toLowerCase()==="space"?this.pressedKeys.has("Space")||this.pressedKeys.has(" "):e.toLowerCase()==="shift"?this.pressedKeys.has("ShiftLeft")||this.pressedKeys.has("ShiftRight"):e.toLowerCase()==="control"||e.toLowerCase()==="ctrl"?this.pressedKeys.has("ControlLeft")||this.pressedKeys.has("ControlRight"):e.toLowerCase()==="alt"?this.pressedKeys.has("AltLeft")||this.pressedKeys.has("AltRight"):!1)}onPointerDown(t){if(!this.elementRef?.componentInstance||!this.stageRef||!this.elementRef.componentInstance.parent)return;this.pointerIsDown=!0;const e=this.elementRef.componentInstance,n=e.parent.toLocal(t.global);this.offsetInParent.x=n.x-e.position.x,this.offsetInParent.y=n.y-e.position.y,this.lastPointerPosition.copyFrom(t.global),this.areRequiredKeysPressed()&&this.startDrag()}startDrag(){if(this.isDragging||!this.stageRef)return;this.isDragging=!0,this.dragProps?.start?.(),this.stageRef.on("pointermove",this.onDragMoveHandler)}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.onMount(this.elementRef))}onDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());const t=this.elementRef?.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}}Et("drag",Io),Et("drop",fo);class Bo extends Bt{onInit(t){}onMount(t){const{image:e}=t.props.transition,i=new D.Sprite(D.Texture.from(e));i.texture.baseTexture.wrapMode=D.WRAP_MODES.REPEAT;const n=new D.DisplacementFilter(i),s=t.componentInstance;s.filters=[n],s.addChild(i),setTimeout(()=>{so({from:0,to:1,duration:500,onUpdate:r=>{n.scale.x=r,n.scale.y=r}})},5e3)}onUpdate(t){}onDestroy(){}}Et("transition",Bo);function ze(A){return A?.start&&A?.listen}function rh(A){const t=Y({config:A,value:0,resolve:e=>{}});return{start:e=>new Promise(i=>{const n=Math.random();t.set({config:{...A,...e},resolve:i,value:n})}),listen:()=>({config:A,seed:t()})}}function DA(A,t){if(!ze(A))throw new Error("In 'on(arg)' must have a trigger signal type");let e;return it(()=>{const n=A.listen(),s=n?.seed;if(s){if(e===void 0){e=s.value;return}if(s.value!==e){e=s.value;try{const r=t(n?.seed.config);r&&typeof r.then=="function"?r.then(a=>s.resolve(a)).catch(()=>s.resolve(void 0)):s.resolve(r)}catch{s.resolve(void 0)}}}}).subscription}class Eo extends Bt{constructor(){super(...arguments),this.elementRef=null,this.originalPosition=new D.Point,this.progressSignal=null,this.shakeSubscription=null,this.positionEffect=null,this.currentShakeConfig=null}onInit(t){this.elementRef=t}onMount(t){const e=t.componentInstance;if(!e)return;const i=this.shakeProps;!i.trigger||!ze(i.trigger)||(this.originalPosition.set(e.position.x,e.position.y),this.shakeSubscription&&(this.shakeSubscription.unsubscribe(),this.shakeSubscription=null),this.shakeSubscription=DA(i.trigger,async n=>{await this.performShake(n)}))}get shakeProps(){const t=this.elementRef?.props.shake;return Qt(t?.value??t,{intensity:10,duration:500,frequency:10,direction:"both"})}resolveSignalValue(t){return _(t)?t():t}async performShake(t){if(!this.elementRef?.componentInstance)return;const e=this.elementRef.componentInstance,i=this.shakeProps,n=t?.intensity??this.resolveSignalValue(i.intensity),s=t?.duration??this.resolveSignalValue(i.duration),r=t?.frequency??this.resolveSignalValue(i.frequency),a=t?.direction??this.resolveSignalValue(i.direction);this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null);const h=this.originalPosition.x===0&&this.originalPosition.y===0&&e.parent,c=e.position.x!==this.originalPosition.x||e.position.y!==this.originalPosition.y;(h||c)&&this.originalPosition.set(e.position.x,e.position.y),e.position.x=this.originalPosition.x,e.position.y=this.originalPosition.y,i.onStart?.(),this.currentShakeConfig={intensity:n,frequency:r,direction:a,randomSeed:Math.random()*1e3},this.progressSignal?await this.progressSignal.set(0,{duration:0}):this.progressSignal=ki(0,{duration:s,ease:l=>l});const u=a!=="y",o=a!=="x";this.positionEffect=it(()=>{if(!e||!this.progressSignal||!this.currentShakeConfig)return;const l=this.progressSignal(),g=this.currentShakeConfig,I=1-l,B=l*g.frequency,C=Math.sin(B*Math.PI*2),E=Math.sin(g.randomSeed+l*10)*.25+1,y=u?C*g.intensity*I*E:0,w=o?C*g.intensity*I*E:0;e.position.x=this.originalPosition.x+y,e.position.y=this.originalPosition.y+w}).subscription,await this.progressSignal.set(1,{duration:s}),e&&(e.position.x=this.originalPosition.x,e.position.y=this.originalPosition.y),this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.currentShakeConfig=null,i.onComplete?.()}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){if(this.progressSignal&&(this.progressSignal.set(0,{duration:0}),this.progressSignal=null),this.positionEffect&&(this.positionEffect.unsubscribe(),this.positionEffect=null),this.currentShakeConfig=null,this.elementRef?.componentInstance){const t=this.elementRef.componentInstance;t.position.x=this.originalPosition.x,t.position.y=this.originalPosition.y}this.shakeSubscription&&(this.shakeSubscription.unsubscribe(),this.shakeSubscription=null),this.elementRef=null}}Et("shake",Eo);class Co extends Bt{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 e=t.componentInstance;if(!e)return;const i=this.flashProps;if(!i.trigger||!ze(i.trigger))return;this.originalAlpha===1&&!i.originalAlpha?this.originalAlpha=e.alpha??1:i.originalAlpha!==void 0&&(this.originalAlpha=i.originalAlpha);const n=e.tint;this.originalTint===16777215&&!i.originalTint?this.originalTint=(_(n)?n():n)??16777215:i.originalTint!==void 0&&(this.originalTint=i.originalTint),this.flashSubscription=DA(i.trigger,async s=>{await this.performFlash(s)})}get flashProps(){const t=this.elementRef?.props.flash;return Qt(t?.value??t,{type:"alpha",duration:300,cycles:1,alpha:.3,tint:16777215})}async performFlash(t){if(!this.elementRef?.componentInstance)return;const e=this.elementRef.componentInstance,i=this.flashProps,n=t?.type??(typeof i.type=="function"?i.type():i.type),s=t?.duration??(typeof i.duration=="function"?i.duration():i.duration),r=t?.cycles??(typeof i.cycles=="function"?i.cycles():i.cycles),a=t?.alpha??(typeof i.alpha=="function"?i.alpha():i.alpha),h=t?.tint??(typeof i.tint=="function"?i.tint():i.tint);this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),e.alpha=this.originalAlpha;const c=e.tint;if(c!==void 0){const l=typeof this.originalTint=="number"?this.originalTint:16777215;_(c)?c.set(l):e.tint=l}i.onStart?.(),this.progressSignal&&await this.progressSignal.set(0,{duration:0});const u={type:n,duration:s,cycles:r,flashAlpha:a,flashTint:h};if(this.currentFlashConfig=u,this.progressSignal||(this.progressSignal=ki(0,{duration:s,ease:l=>l})),(n==="alpha"||n==="both")&&(this.alphaEffect=it(()=>{if(!e||!this.progressSignal||!this.currentFlashConfig)return;const l=this.progressSignal(),g=this.currentFlashConfig,I=l*g.cycles%1,B=I<.5?I*2:1-(I-.5)*2,C=this.originalAlpha+(g.flashAlpha-this.originalAlpha)*B;e.alpha=C}).subscription),(n==="tint"||n==="both")&&(this.tintEffect=it(()=>{if(!e||!this.progressSignal||!this.currentFlashConfig)return;const l=e.tint;if(l===void 0)return;const g=_(l),I=this.progressSignal(),B=this.currentFlashConfig,C=I*B.cycles%1,E=C<.5?C*2:1-(C-.5)*2,y=this.originalTint>>16&255,w=this.originalTint>>8&255,b=this.originalTint&255,M=B.flashTint>>16&255,N=B.flashTint>>8&255,O=B.flashTint&255,K=Math.round(y+(M-y)*E),H=Math.round(w+(N-w)*E),T=Math.round(b+(O-b)*E),W=K<<16|H<<8|T;g?l.set(W):e.tint=W}).subscription),await this.progressSignal.set(1,{duration:s}),this.currentFlashConfig===u&&e){e.alpha=this.originalAlpha;const l=e.tint;if(l!==void 0){const g=typeof this.originalTint=="number"?this.originalTint:16777215;_(l)?l.set(g):e.tint=g}this.alphaEffect&&(this.alphaEffect.unsubscribe(),this.alphaEffect=null),this.tintEffect&&(this.tintEffect.unsubscribe(),this.tintEffect=null),this.currentFlashConfig=null}i.onComplete?.()}onUpdate(t){t.type&&t.type==="reset"&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){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,this.elementRef?.componentInstance){const t=this.elementRef.componentInstance;t.alpha=this.originalAlpha;const e=t.tint;if(e!==void 0){const i=typeof this.originalTint=="number"?this.originalTint:16777215;_(e)?e.set(i):t.tint=i}}this.flashSubscription&&(this.flashSubscription=null),this.elementRef=null}}Et("flash",Co);const bA=(A,t,e)=>Math.max(t,Math.min(e,A));class Qo extends Bt{constructor(){super(...arguments),this.elementRef=null,this.tickSubscription=null,this.sampleAccumulatorMs=0,this.managesAlpha=!1}onInit(t){this.elementRef=t}onMount(t){this.elementRef=t,this.evaluateVisibility(),this.bindTick()}onUpdate(){this.sampleAccumulatorMs=0,this.evaluateVisibility()}onDestroy(){const t=this.elementRef?.componentInstance;if(t){const e=this.readBaseVisible();t.visible=e,this.managesAlpha&&(t.alpha=this.readBaseAlpha())}this.tickSubscription?.unsubscribe(),this.tickSubscription=null,this.sampleAccumulatorMs=0,this.managesAlpha=!1,this.elementRef=null}bindTick(){this.tickSubscription?.unsubscribe(),this.tickSubscription=null;const t=this.elementRef?.props?.context?.tick;t?.observable&&(this.tickSubscription=t.observable.subscribe(e=>{const i=e?.value??e,n=Number(i?.deltaTime),s=this.readOptions(),r=1e3/s.sampleHz;this.sampleAccumulatorMs+=Number.isFinite(n)?n:r,!(this.sampleAccumulatorMs<r)&&(this.sampleAccumulatorMs=0,this.evaluateVisibility(s))}))}resolveSignalValue(t,e){if(t==null)return e;if(_(t)){const i=t();return i??e}return t}readOptions(){const t=this.elementRef?.props?.fogVisibility,e=t?.value??t??{},i=this.resolveSignalValue(e.controller,null),n=this.resolveSignalValue(e.mode,"visible"),s=bA(Number(this.resolveSignalValue(e.threshold,.65)),0,1),r=this.resolveSignalValue(e.hideAs,"visible"),a=bA(Number(this.resolveSignalValue(e.hiddenAlpha,0)),0,1),h=bA(Number(this.resolveSignalValue(e.sampleHz,30)),1,240),c=e.point?this.resolveSignalValue(e.point,void 0):void 0;return{controller:i&&typeof i=="object"?i:null,mode:n,threshold:s,hideAs:r,hiddenAlpha:a,sampleHz:h,point:c}}readBaseVisible(){const t=this.elementRef?.propObservables?.visible??this.elementRef?.props?.visible;return!!this.resolveSignalValue(t,!0)}readBaseAlpha(){const t=this.elementRef?.propObservables?.alpha??this.elementRef?.props?.alpha,e=Number(this.resolveSignalValue(t,1));return Number.isFinite(e)?bA(e,0,1):1}samplePoint(t){if(t.point&&typeof t.point=="object"){const i=Number(this.resolveSignalValue(t.point.x,NaN)),n=Number(this.resolveSignalValue(t.point.y,NaN));if(Number.isFinite(i)&&Number.isFinite(n))return{x:i,y:n}}const e=this.elementRef?.componentInstance;return{x:Number(e?.x??0),y:Number(e?.y??0)}}resolveVisibleState(t,e,i,n){if(typeof t.isVisibleAt=="function")return!!t.isVisibleAt(e,i,n);if(typeof t.clarityAt=="function"){const s=Number(t.clarityAt(e,i));return Number.isFinite(s)?s>=n:!0}return typeof t.stateAt=="function"?t.stateAt(e,i,n)==="visible":!0}resolveExploredState(t,e,i,n){return typeof t.isExploredAt=="function"?!!t.isExploredAt(e,i):typeof t.stateAt=="function"?t.stateAt(e,i,n)!=="unknown":this.resolveVisibleState(t,e,i,n)}evaluateVisibility(t){const i=this.elementRef?.componentInstance;if(!i)return;const n=t??this.readOptions(),s=this.readBaseVisible(),r=this.readBaseAlpha();if(!n.controller){i.visible=s,this.managesAlpha&&(i.alpha=r,this.managesAlpha=!1);return}typeof n.controller.version=="function"&&n.controller.version();const{x:a,y:h}=this.samplePoint(n);let c=!0;if(n.mode==="explored"?c=this.resolveExploredState(n.controller,a,h,n.threshold):c=this.resolveVisibleState(n.controller,a,h,n.threshold),n.hideAs==="alpha"){i.visible=s,i.alpha=c?r:Math.min(r,n.hiddenAlpha),this.managesAlpha=!0;return}i.visible=s&&c,this.managesAlpha&&(i.alpha=r,this.managesAlpha=!1)}}Et("fogVisibility",Qo);function pt(A){return A&&typeof A=="string"?A.endsWith("%"):!1}const po=["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 xt(A){return class extends A{constructor(){super(...arguments),this.#t=null,this.isFlex=!1,this.fullProps={},this.isMounted=!1,this._anchorPoints=new D.ObservablePoint({_onUpdate:()=>{}},0,0),this.isCustomAnchor=!1,this.displayWidth=Y(0),this.displayHeight=Y(0),this.overrideProps=[],this.layout=null,this.onBeforeDestroy=null,this.onAfterMount=null,this.subjectInit=new se(null),this.disableLayout=!1,this.#e=new Map,this.#A=null,this.#i=null}#t;#e;#A;#i;getElement(){return this.#i}onLayoutComputed(e){}get deltaRatio(){return this.#t?.scheduler?.tick.value.deltaRatio}get parentIsFlex(){return this.disableLayout?!1:this.parent?.isFlex}onInit(e){Object.prototype.hasOwnProperty.call(this,"layout")&&delete this.layout,this._id=e.id;for(let i of po)if(e[i]&&!this.overrideProps.includes(i)){this.eventMode="static";const n=e[i],s=(...r)=>{if(!(this.#i&&St(this.#i)))return n(...r)};i==="click"?(this.on("pointertap",s),this.#e.set("pointertap",s)):(this.on(i,s),this.#e.set(i,s))}(e.onBeforeDestroy||e["on-before-destroy"])&&(this.onBeforeDestroy=e.onBeforeDestroy||e["on-before-destroy"]),(e.onAfterMount||e["on-after-mount"])&&(this.onAfterMount=e.onAfterMount||e["on-after-mount"]),(e.justifyContent||e.alignItems||e.flexDirection||e.flexWrap||e.alignContent||e.display=="flex"||pt(e.width)||pt(e.height)||e.isRoot)&&(this.layout={},this.isFlex=!0),this.subjectInit.next(this)}async onMount(e,i){if(!this.destroyed&&(this.#i=e,this.#t=e.props.context,e.parent)){let n=e.parent,s=n.componentInstance;if(typeof s?.addChild!="function"){let a=n.parent;for(;a&&typeof a.componentInstance?.addChild!="function";)a=a.parent;if(a&&typeof a.componentInstance?.addChild=="function")n=a,s=n.componentInstance;else{console.warn("DisplayObject mount skipped: parent has no addChild",{child:e.tag,parent:e.parent?.tag});return}}if(s.isFlex&&!this.layout&&!this.disableLayout)try{this.layout={}}catch(a){console.warn("Failed to set layout:",a)}i===void 0||n!==e.parent||typeof s?.addChildAt!="function"?s.addChild(this):s.addChildAt(this,i),this.isMounted=!0,this.onUpdate(e.props);const r=a=>{a.computedLayout&&(this.#A={width:a.computedLayout.width,height:a.computedLayout.height}),this.onLayoutComputed(a)};this.on("layout",r),this.#e.set("layout",r),this.onAfterMount&&await this.onAfterMount()}}onUpdate(e){if(this.fullProps={...this.fullProps,...e},this.destroyed||!this.#t||!this.parent)return;if(e.x!==void 0&&this.setX(e.x),e.y!==void 0&&this.setY(e.y),e.scale!==void 0&&oe(this.scale,e.scale),e.anchor!==void 0&&!this.isCustomAnchor&&oe(this.anchor,e.anchor),e.width!==void 0&&this.setWidth(e.width),e.height!==void 0&&this.setHeight(e.height),e.minWidth!==void 0&&this.setMinWidth(e.minWidth),e.minHeight!==void 0&&this.setMinHeight(e.minHeight),e.maxWidth!==void 0&&this.setMaxWidth(e.maxWidth),e.maxHeight!==void 0&&this.setMaxHeight(e.maxHeight),e.aspectRatio!==void 0&&this.setAspectRatio(e.aspectRatio),e.flexGrow!==void 0&&this.setFlexGrow(e.flexGrow),e.flexShrink!==void 0&&this.setFlexShrink(e.flexShrink),e.flexBasis!==void 0&&this.setFlexBasis(e.flexBasis),e.rowGap!==void 0&&this.setRowGap(e.rowGap),e.columnGap!==void 0&&this.setColumnGap(e.columnGap),e.top!==void 0&&this.setTop(e.top),e.left!==void 0&&this.setLeft(e.left),e.right!==void 0&&this.setRight(e.right),e.bottom!==void 0&&this.setBottom(e.bottom),e.objectFit!==void 0&&this.setObjectFit(e.objectFit),e.objectPosition!==void 0&&this.setObjectPosition(e.objectPosition),e.transformOrigin!==void 0&&this.setTransformOrigin(e.transformOrigin),e.skew!==void 0&&oe(this.skew,e.skew),e.tint&&(this.tint=e.tint),e.rotation!==void 0&&(this.rotation=e.rotation),e.angle!==void 0&&(this.angle=e.angle),e.zIndex!==void 0&&(this.zIndex=e.zIndex),e.roundPixels!==void 0&&(this.roundPixels=e.roundPixels),e.cursor&&(this.cursor=e.cursor),e.visible!==void 0&&(this.visible=e.visible),e.alpha!==void 0&&(this.alpha=e.alpha),e.pivot&&oe(this.pivot,e.pivot),e.flexDirection&&this.setFlexDirection(e.flexDirection),e.flexWrap&&this.setFlexWrap(e.flexWrap),e.justifyContent&&this.setJustifyContent(e.justifyContent),e.alignItems&&this.setAlignItems(e.alignItems),e.alignContent&&this.setAlignContent(e.alignContent),e.alignSelf&&this.setAlignSelf(e.alignSelf),e.margin&&this.setMargin(e.margin),e.padding&&this.setPadding(e.padding),e.gap&&this.setGap(e.gap),e.border&&this.setBorder(e.border),e.positionType&&this.setPositionType(e.positionType),e.filters&&(this.filters=e.filters),e.maskOf&&bt(e.maskOf)&&(e.maskOf.componentInstance.mask=this),e.shadowCaster!==void 0){const n=e.shadowCaster?.value??e.shadowCaster;if(n&&typeof n=="object"&&!Array.isArray(n)){const s=this.shadowCaster??{};this.shadowCaster={...s,...n}}else this.shadowCaster=n}if(e.footprintCaster!==void 0){const n=e.footprintCaster?.value??e.footprintCaster;if(n&&typeof n=="object"&&!Array.isArray(n)){const s=this.footprintCaster??{};this.footprintCaster={...s,...n}}else this.footprintCaster=n}e.blendMode&&(this.blendMode=e.blendMode),e.filterArea&&(this.filterArea=e.filterArea);const i=this.filters||[];if(e.blur){let n=i.find(s=>s instanceof D.BlurFilter);if(!n){const s=typeof e.blur=="number"?{strength:e.blur}:e.blur;n=new D.BlurFilter(s),i.push(n)}Object.assign(n,e.blur)}this.filters=i}async onDestroy(e,i){for(const[n,s]of this.#e)this.off(n,s);this.#e.clear(),this.#i=null,this.onBeforeDestroy&&await this.onBeforeDestroy(),i&&i(),super.destroy()}setFlexDirection(e){this.layout={flexDirection:e}}setFlexWrap(e){this.layout={flexWrap:e}}setAlignContent(e){this.layout={alignContent:e}}setAlignSelf(e){this.layout={alignSelf:e}}setAlignItems(e){this.layout={alignItems:e}}setJustifyContent(e){this.layout={justifyContent:e}}setPosition(e){e instanceof Array?e.length===2?this.layout={positionY:e[0],positionX:e[1]}:e.length===4&&(this.layout={positionTop:e[0],positionRight:e[1],positionBottom:e[2],positionLeft:e[3]}):this.layout={position:e}}setX(e){e=e+this.getWidth()*this._anchorPoints.x,this.parentIsFlex?(this.x=e,this.layout={x:e}):this.x=e}setY(e){e=e+this.getHeight()*this._anchorPoints.y,this.parentIsFlex?(this.y=e,this.layout={y:e}):this.y=e}setPadding(e){e instanceof Array?e.length===2?this.layout={paddingVertical:e[0],paddingHorizontal:e[1]}:e.length===4&&(this.layout={paddingTop:e[0],paddingRight:e[1],paddingBottom:e[2],paddingLeft:e[3]}):this.layout={padding:e}}setMargin(e){e instanceof Array?e.length===2?this.layout={marginVertical:e[0],marginHorizontal:e[1]}:e.length===4&&(this.layout={marginTop:e[0],marginRight:e[1],marginBottom:e[2],marginLeft:e[3]}):this.layout={margin:e}}setGap(e){this.layout={gap:e}}setBorder(e){e instanceof Array?e.length===2?this.layout={borderVertical:e[0],borderHorizontal:e[1]}:e.length===4&&(this.layout={borderTop:e[0],borderRight:e[1],borderBottom:e[2],borderLeft:e[3]}):this.layout={border:e}}setPositionType(e){this.layout={position:e}}setWidth(e){this.displayWidth.set(e),this.parentIsFlex?this.layout={width:e}:this.width=e}setHeight(e){this.displayHeight.set(e),this.parentIsFlex?this.layout={height:e}:this.height=e}getWidth(){return pt(this.fullProps.width)?this.#A?.width!==void 0?this.#A.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(){return pt(this.fullProps.height)?this.#A?.height!==void 0?this.#A.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(e){this.layout={minWidth:e}}setMinHeight(e){this.layout={minHeight:e}}setMaxWidth(e){this.layout={maxWidth:e}}setMaxHeight(e){this.layout={maxHeight:e}}setAspectRatio(e){this.layout={aspectRatio:e}}setFlexGrow(e){this.layout={flexGrow:e}}setFlexShrink(e){this.layout={flexShrink:e}}setFlexBasis(e){this.layout={flexBasis:e}}setRowGap(e){this.layout={rowGap:e}}setColumnGap(e){this.layout={columnGap:e}}setTop(e){this.layout={top:e}}setLeft(e){this.layout={left:e}}setRight(e){this.layout={right:e}}setBottom(e){this.layout={bottom:e}}setObjectFit(e){try{this.layout={objectFit:e}}catch{}}setObjectPosition(e){try{this.layout={objectPosition:e}}catch{}}setTransformOrigin(e){try{this.layout={transformOrigin:e}}catch{}}}}class ah{constructor(){this.assets=new Map,this.onProgressCallbacks=new Set,this.onCompleteCallbacks=new Set,this.assetCounter=0,this.isComplete=!1}registerAsset(t){const e=`asset_${this.assetCounter++}_${t}`;return this.assets.set(e,{progress:0,completed:!1}),this.isComplete=!1,this.updateGlobalProgress(),e}updateProgress(t,e){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,e)),this.updateGlobalProgress()}completeAsset(t){const e=this.assets.get(t);if(!e){console.warn(`Asset ${t} not found in tracker`);return}e.progress=1,e.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(e){console.error("Error in onProgress callback:",e)}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 e of this.assets.values())t+=e.progress;return t/this.assets.size}getAssetCount(){return this.assets.size}getCompletedCount(){let t=0;for(const e of this.assets.values())e.completed&&t++;return t}checkCompletion(){if(this.isComplete)return;Array.from(this.assets.values()).every(e=>e.completed)&&this.assets.size>0&&(this.isComplete=!0,this.onCompleteCallbacks.forEach(e=>{try{e()}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}}st("Canvas",class extends xt(D.Container){});const lh=async(A={})=>{let{cursorStyles:t,width:e,height:i,class:n}=Qt(A);A.width||(e=Y(800)),A.height||(i=Y(600));const s=Y({width:0,height:0});A.isRoot=!0;const r=new ah,a={...A,context:{canvasSize:s,app:Y(null),globalLoader:r},width:e?.(),height:i?.()};A.tick?a.context.tick=A.tick:a.context.tick=a.tick=Y({timestamp:0,deltaTime:0,frame:0,deltaRatio:1}),globalThis.__CANVAS_ENGINE_TICK__=a.context.tick;const h=ot("Canvas",a);return h.render=(c,u)=>{if(!u)return;const o=u.renderer,l=o.view.canvas;globalThis.__PIXI_STAGE__=h.componentInstance,globalThis.__PIXI_RENDERER__=o,A.tickStart!==!1&&h.directives.tick.start(),it(()=>{h.propObservables.tick(),o.render(h.componentInstance)}),u.stage=h.componentInstance,u.stage.layout={width:u.screen.width,height:u.screen.height,justifyContent:A.justifyContent,alignItems:A.alignItems},s.set({width:u.screen.width,height:u.screen.height}),u.renderer.on("resize",(I,B)=>{s.set({width:I,height:B}),u.stage.layout&&(u.stage.layout={width:I,height:B})}),A.tickStart!==!1&&h.directives.tick.start(),u.ticker.add(()=>{h.propObservables.tick()}),t&&it(()=>{o.events.cursorStyles=t()}),n&&it(()=>{l.classList.add(n())});const g=c.querySelector("canvas");g?c.replaceChild(l,g):c.appendChild(l),a.context.app.set(u)},h};class Li extends xt(D.Container){constructor(){super(...arguments),this.isCustomAnchor=!0}onUpdate(t){t.anchor&&(oe(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:e,props:i}=t,{pixiChildren:n}=i;n&&n.forEach(a=>{e.addChild(a)});const s=pt(i.width),r=pt(i.height);(s||r)&&this.on("layout",a=>{const h=a.computedLayout;s&&h.width!==void 0&&this.displayWidth.set(h.width),r&&h.height!==void 0&&this.displayHeight.set(h.height)})}}st("Container",Li);const $e=A=>(st("Container",Li),ot("Container",A));class hh extends xt(D.Graphics){constructor(){super(...arguments),this.isCustomAnchor=!0}async onInit(t){await super.onInit(t),this.setObjectFit("none")}async onMount(t,e){await super.onMount(t,e);const{props:i,propObservables:n}=t,s=_(n?.width)?n.width:Y(i.width||0),r=_(n?.height)?n.height:Y(i.height||0),a=_(n?.anchor)?n.anchor:Y(i.anchor||[0,0]);this._width=s,this._height=r;const h=pt(s()),c=pt(r());i.draw&&(this.clearEffect=it(()=>{const u=s(),o=r(),l=a();typeof u=="string"||typeof o=="string"||(this.clear(),i.draw?.(this,u,o,l),this.subjectInit.next(this))})),this.on("layout",u=>{const o=u.computedLayout;h&&_(s)&&s()!==o.width&&s.set(o.width),c&&_(r)&&r()!==o.height&&r.set(o.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,e){const i=async()=>{this.clearEffect?.subscription.unsubscribe(),e()};await super.onDestroy(t,i)}}st("Graphics",hh);function ae(A){return ot("Graphics",A)}const Ui=(A,t,e)=>{const i=new D.ObservablePoint({_onUpdate:()=>{}},0,0);oe(i,A);const n=i.x,s=i.y;return{x:-n*t,y:-s*e}};function yo(A){const{color:t,borderRadius:e,border:i}=Qt(A,{borderRadius:null,border:null});return ae({draw:(n,s,r,a)=>{const{x:h,y:c}=Ui(a,s,r);e()?n.roundRect(h,c,s,r,e()):n.rect(h,c,s,r),i&&n.stroke(i),n.fill(t())},...A})}function Ti(A){const{color:t,border:e,radius:i}=Qt(A,{border:null,radius:null});return ae({draw:(n,s,r,a)=>{const{x:h,y:c}=Ui(a,s,r);s==r||r==0?n.circle(h,c,i()||s):n.ellipse(h,c,s,r),e()&&n.stroke(e()),n.fill(t())},...A})}function mo(A){return Ti(A)}function ch(A){const{color:t,border:e}=Qt(A,{border:null,color:"#000"});return ae({draw:(i,n,s,r)=>{const{x:a,y:h}=Ui(r,n,s);i.moveTo(a,h+s),i.lineTo(a+n/2,h),i.lineTo(a+n,h+s),i.lineTo(a,h+s),i.fill(t()),e&&i.stroke(e)},...A})}function gh(A){return ae({draw:async t=>{if(A.src){const e=await D.Assets.load({src:A.src,data:{parseAsGraphicsContext:!0}}),i=new D.Graphics(e);t.context=i.context}else A.content?t.svg(A.content):A.svg&&t.svg(A.svg)},...A})}class uh extends xt(D.Mesh){constructor(){super({geometry:new D.Geometry})}onInit(t){if(super.onInit(t),t.geometry)try{this.geometry=t.geometry}catch(e){console.warn("Failed to set geometry:",e)}t.shader&&(this.shader=t.shader)}async onUpdate(t){if(super.onUpdate(t),t.geometry)try{this.geometry=t.geometry}catch(e){console.warn("Failed to update geometry:",e)}t.shader&&(this.shader=t.shader),t.texture?typeof t.texture=="string"?this.texture=await D.Assets.load(t.texture):this.texture=t.texture:t.image&&(this.texture=await D.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,e){const i=async()=>{e()};await super.onDestroy(t,i)}}st("Mesh",uh);const fh=A=>ot("Mesh",A);x.currentSubscriptionsTracker=null,x.mountTracker=null;function Oi(A){x.mountTracker?.(A)}function Ih(A){Oi(t=>{const{context:e}=t.props;let i;return e.tick&&(i=e.tick.observable.subscribe(({value:n})=>{St(t)||A(n,t)})),()=>{i?.unsubscribe()}})}function SA(A,t={},e){const i=new Set,n=new Set;x.currentSubscriptionsTracker=r=>{i.add(r)},x.mountTracker=r=>{n.add(r)},e[0]instanceof Array&&(e=e[0]);let s;return Array.isArray(A)?A.length===1?s=A[0]:s=SA($e,{},A):"tag"in A||A instanceof $?s=A:s=A({...t,children:e}),s||(s={}),s.effectSubscriptions=Array.from(i),s.effectMounts=[...Array.from(n),...s.effectMounts??[]],t?.dependencies&&(s.props=s.props||{},s.props.dependencies=t.dependencies),s instanceof Promise&&s.then(r=>{r.props.isRoot&&n.forEach(a=>a(r))}),x.currentSubscriptionsTracker=null,x.mountTracker=null,s}function gt(A,t={},...e){return t?.dependencies?!t.dependencies.some(Xt)&&t.dependencies.every(s=>_(s)?s()!==void 0:s!==void 0)?SA(A,t,e):new $(n=>{ro(t.dependencies).then(()=>{const s=SA(A,t,e);n.next(s)})}):SA(A,t,e)}function dh(A){return gt($e)}class Pi{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 e=0;e<t.length;++e){const i=t[e];let n=i[0];for(let s=1;s<i.length;++s){const r=i[s];this.segments.push({p1:n,p2:r,l:0}),n=r}}else{let e=t[0];for(let i=1;i<t.length;++i){const n=t[i];this.segments.push({p1:e,p2:n,l:0}),e=n}}for(let e=0;e<this.segments.length;++e){const{p1:i,p2:n}=this.segments[e],s=Math.sqrt((n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y));this.segments[e].l=s,this.totalLength+=s,this.countingLengths.push(this.totalLength)}}getRandPos(t){const e=Math.random()*this.totalLength;let i,n;if(this.segments.length===1)i=this.segments[0],n=e;else for(let a=0;a<this.countingLengths.length;++a)if(e<this.countingLengths[a]){i=this.segments[a],n=a===0?e:e-this.countingLengths[a-1];break}n/=i.l||1;const{p1:s,p2:r}=i;t.x=s.x+n*(r.x-s.x),t.y=s.y+n*(r.y-s.y)}}Pi.type="polygonalChain",Pi.editorConfig=null;class Ji{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}}Ji.type="rect",Ji.editorConfig=null;class Nt{constructor(t,e,i){this.value=t,this.time=e,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:Do(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:r}=i[0],a=n=new Nt(typeof s=="string"?kA(s):s,r,t.ease);if(i.length>2||i.length===2&&i[1].value!==s)for(let h=1;h<i.length;++h){const{value:c,time:u}=i[h];n.next=new Nt(typeof c=="string"?kA(c):c,u),n=n.next}return a.isStepped=!!t.isStepped,a}const e=new Nt(typeof t.start=="string"?kA(t.start):t.start,0);return t.end!==t.start&&(e.next=new Nt(typeof t.end=="string"?kA(t.end):t.end,1)),e}}let tA=D.Texture.from;const Gt=Math.PI/180;function Pt(A,t){if(!A)return;const e=Math.sin(A),i=Math.cos(A),n=t.x*i-t.y*e,s=t.x*e+t.y*i;t.x=n,t.y=s}function xA(A,t,e){return A<<16|t<<8|e}function wo(A){return Math.sqrt(A.x*A.x+A.y*A.y)}function Bh(A){const t=1/wo(A);A.x*=t,A.y*=t}function vo(A,t){A.x*=t,A.y*=t}function kA(A,t){t||(t={}),A.charAt(0)==="#"?A=A.substr(1):A.indexOf("0x")===0&&(A=A.substr(2));let e;return A.length===8&&(e=A.substr(0,2),A=A.substr(2)),t.r=parseInt(A.substr(0,2),16),t.g=parseInt(A.substr(2,2),16),t.b=parseInt(A.substr(4,2),16),e&&(t.a=parseInt(e,16)),t}function Do(A){const t=A.length,e=1/t;return function(i){const n=t*i|0,s=(i-n*e)*t,r=A[n]||A[t-1];return r.s+s*(2*(1-s)*(r.cp-r.s)+s*(r.e-r.s))}}function Eh(A){return A||"normal"}class MA{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 e=Math.random()*Math.PI*2;this.rotation&&(t.rotation+=e),Pt(e,t.position),t.position.x+=this.x,t.position.y+=this.y}}MA.type="torus",MA.editorConfig=null;var X;(function(A){A[A.Spawn=0]="Spawn",A[A.Normal=2]="Normal",A[A.Late=5]="Late"})(X||(X={}));class Ki{constructor(t){this.order=X.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 e=t;for(;e;){const i=Math.random()*(this.maxStart-this.minStart)+this.minStart;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new D.Point(i,0),Pt(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=t.config.velocity,n=i.x,s=i.y;if(i.x+=this.accel.x*e,i.y+=this.accel.y*e,this.maxSpeed){const r=wo(i);r>this.maxSpeed&&vo(i,this.maxSpeed/r)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Ki.type="moveAcceleration",Ki.editorConfig=null;function Ch(A){return this.ease&&(A=this.ease(A)),(this.first.next.value-this.first.value)*A+this.first.value}function Qh(A){this.ease&&(A=this.ease(A));const t=this.first.value,e=this.first.next.value,i=(e.r-t.r)*A+t.r,n=(e.g-t.g)*A+t.g,s=(e.b-t.b)*A+t.b;return xA(i,n,s)}function ph(A){this.ease&&(A=this.ease(A));let t=this.first,e=t.next;for(;A>e.time;)t=e,e=e.next;return A=(A-t.time)/(e.time-t.time),(e.value-t.value)*A+t.value}function yh(A){this.ease&&(A=this.ease(A));let t=this.first,e=t.next;for(;A>e.time;)t=e,e=e.next;A=(A-t.time)/(e.time-t.time);const i=t.value,n=e.value,s=(n.r-i.r)*A+i.r,r=(n.g-i.g)*A+i.g,a=(n.b-i.b)*A+i.b;return xA(s,r,a)}function mh(A){this.ease&&(A=this.ease(A));let t=this.first;for(;t.next&&A>t.next.time;)t=t.next;return t.value}function wh(A){this.ease&&(A=this.ease(A));let t=this.first;for(;t.next&&A>t.next.time;)t=t.next;const e=t.value;return xA(e.r,e.g,e.b)}class eA{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?Qh:Ch:t.isStepped?this.interpolate=this.isColor?wh:mh:this.interpolate=this.isColor?yh:ph,this.ease=this.first.ease}}class Yi{constructor(t){this.order=X.Normal,this.list=new eA(!1),this.list.reset(Nt.createList(t.alpha))}initParticles(t){let e=t;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}Yi.type="alpha",Yi.editorConfig=null;class Wi{constructor(t){this.order=X.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Wi.type="alphaStatic",Wi.editorConfig=null;function bo(A){const t=[];for(let e=0;e<A.length;++e){let i=A[e];if(typeof i=="string")t.push(tA(i));else if(i instanceof D.Texture)t.push(i);else{let n=i.count||1;for(typeof i.texture=="string"?i=tA(i.texture):i=i.texture;n>0;--n)t.push(i)}}return t}class Vi{constructor(t){this.order=X.Normal,this.anims=[];for(let e=0;e<t.anims.length;++e){const i=t.anims[e],n=bo(i.textures),s=i.framerate<0?-1:i.framerate>0?i.framerate:60,r={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(r)}}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.anims.length),n=e.config.anim=this.anims[i];e.texture=n.textures[0],e.config.animElapsed=0,n.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=n.textures.length/e.maxLife):(e.config.animDuration=n.duration,e.config.animFramerate=n.framerate),e=e.next}}updateParticle(t,e){const i=t.config,n=i.anim;i.animElapsed+=e,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]||D.Texture.EMPTY}}Vi.type="animatedRandom",Vi.editorConfig=null;class ji{constructor(t){this.order=X.Normal;const e=t.anim,i=bo(e.textures),n=e.framerate<0?-1:e.framerate>0?e.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!e.loop:!1}}initParticles(t){let e=t;const i=this.anim;for(;e;)e.texture=i.textures[0],e.config.animElapsed=0,i.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=i.textures.length/e.maxLife):(e.config.animDuration=i.duration,e.config.animFramerate=i.framerate),e=e.next}updateParticle(t,e){const i=this.anim,n=t.config;n.animElapsed+=e,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]||D.Texture.EMPTY}}ji.type="animatedSingle",ji.editorConfig=null;class qi{constructor(t){this.order=X.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Eh(this.value),e=e.next}}qi.type="blendMode",qi.editorConfig=null;class Xi{constructor(t){this.order=X.Spawn,this.spacing=t.spacing*Gt,this.start=t.start*Gt,this.distance=t.distance}initParticles(t){let e=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*e:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,Pt(n,i.position)),i=i.next,++e}}}Xi.type="spawnBurst",Xi.editorConfig=null;class Zi{constructor(t){this.order=X.Normal,this.list=new eA(!0),this.list.reset(Nt.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=xA(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Zi.type="color",Zi.editorConfig=null;class zi{constructor(t){this.order=X.Normal;let e=t.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(t){let e=t;for(;e;)e.tint=this.value,e=e.next}}zi.type="colorStatic",zi.editorConfig=null;class $i{constructor(t){this.order=X.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?tA(e):e)}initParticles(t){let e=t;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}$i.type="textureOrdered",$i.editorConfig=null;const we=new D.Point,So=["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"],vh=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(So).join("|"),"g");function Dh(A){const t=A.match(vh);for(let e=t.length-1;e>=0;--e)So.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return A=t.join(""),new Function("x",`return ${A};`)}class tn{constructor(t){if(this.order=X.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Dh(t.path)}catch{this.path=null}else this.path=e=>e;this.list=new eA(!1),this.list.reset(Nt.createList(t.speed)),this.minMult=t.minMult??1}initParticles(t){let e=t;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new D.Point(e.x,e.y),e.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*e,we.x=t.config.movement,we.y=this.path(we.x),Pt(t.config.initRotation,we),t.position.x=t.config.initPosition.x+we.x,t.position.y=t.config.initPosition.y+we.y}}tn.type="movePath",tn.editorConfig=null;class en{constructor(){this.order=X.Spawn}initParticles(t){}}en.type="spawnPoint",en.editorConfig=null;class An{constructor(t){this.order=X.Normal,this.textures=t.textures.map(e=>typeof e=="string"?tA(e):e)}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}An.type="textureRandom",An.editorConfig=null;class nn{constructor(t){this.order=X.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 e=t;for(;e;)this.minStart===this.maxStart?e.rotation+=this.maxStart:e.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,e.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,e=e.next}updateParticle(t,e){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*e,t.rotation+=(t.config.rotSpeed+i)/2*e}else t.rotation+=t.config.rotSpeed*e}}nn.type="rotation",nn.editorConfig=null;class sn{constructor(t){this.order=X.Normal,this.min=t.min*Gt,this.max=t.max*Gt}initParticles(t){let e=t;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}sn.type="rotationStatic",sn.editorConfig=null;class on{constructor(t){this.order=X.Late+1,this.rotation=(t.rotation||0)*Gt}initParticles(t){let e=t;for(;e;)e.rotation=this.rotation,e=e.next}}on.type="noRotation",on.editorConfig=null;class rn{constructor(t){this.order=X.Normal,this.list=new eA(!1),this.list.reset(Nt.createList(t.scale)),this.minMult=t.minMult??1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.scaleMult=i,e.scale.x=e.scale.y=this.list.first.value*i,e=e.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}rn.type="scale",rn.editorConfig=null;class an{constructor(t){this.order=X.Normal,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}an.type="scaleStatic",an.editorConfig=null;class kt{static registerShape(t,e){kt.shapes[e||t.type]=t}constructor(t){this.order=X.Spawn;const e=kt.shapes[t.type];if(!e)throw new Error(`No shape found with type '${t.type}'`);this.shape=new e(t.data)}initParticles(t){let e=t;for(;e;)this.shape.getRandPos(e),e=e.next}}kt.type="spawnShape",kt.editorConfig=null,kt.shapes={},kt.registerShape(Pi),kt.registerShape(Ji),kt.registerShape(MA),kt.registerShape(MA,"circle");class ln{constructor(t){this.order=X.Normal,this.texture=typeof t.texture=="string"?tA(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}ln.type="textureSingle",ln.editorConfig=null;class hn{constructor(t){this.order=X.Late,this.list=new eA(!1),this.list.reset(Nt.createList(t.speed)),this.minMult=t.minMult??1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e.config.velocity?e.config.velocity.set(this.list.first.value*i,0):e.config.velocity=new D.Point(this.list.first.value*i,0),Pt(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;Bh(n),vo(n,i),t.x+=n.x*e,t.y+=n.y*e}}hn.type="moveSpeed",hn.editorConfig=null;class cn{constructor(t){this.order=X.Late,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new D.Point(i,0),Pt(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=t.config.velocity;t.x+=i.x*e,t.y+=i.y*e}}cn.type="moveSpeedStatic",cn.editorConfig=null;class gn extends D.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 un=D.Ticker.shared,le=Symbol("Position particle per emitter position");class V{static registerBehavior(t){V.knownBehaviors[t.type]=t}constructor(t,e){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 D.Point,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new D.Point,this._prevEmitterPos=new D.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,e&&this.init(e),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:Do(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 e=t.behaviors.map(i=>{const n=V.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(le),e.sort((i,n)=>i===le?n.order===X.Spawn?1:-1:n===le?i.order===X.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==le&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==le&&i.recycleParticle)}getBehavior(t){return V.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof V.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new gn(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(t,e=!1){for(let i=0;i<this.recycleBehaviors.length;++i)this.recycleBehaviors[i].recycleParticle(t,!e);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 e=t-this.rotation;this.rotation=t,Pt(e,this.spawnPos),this._posChanged=!0}updateSpawnPos(t,e){this._posChanged=!0,this.spawnPos.x=t,this.spawnPos.y=e}updateOwnerPos(t,e){this._posChanged=!0,this.ownerPos.x=t,this.ownerPos.y=e}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?un.remove(this.update,this):!this._autoUpdate&&t&&un.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=un.elapsedMS*.001),!this._parent)return;for(let r=this._activeParticlesFirst,a;r;r=a)if(a=r.next,r.age+=t,r.age>r.maxLife||r.age<0)this.recycle(r);else{let h=r.age*r.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),r.agePercent=h;for(let c=0;c<this.updateBehaviors.length;++c)if(this.updateBehaviors[c].updateParticle(r,t)){this.recycle(r);break}}let e,i;this._prevPosIsValid&&(e=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 r,a;if(this._prevPosIsValid&&this._posChanged){const u=1+this._spawnTimer/t;r=(n-e)*u+e,a=(s-i)*u+i}else r=n,a=s;let h=null,c=null;for(let u=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),o=0;o<u;++o){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let l;if(this.minLifetime===this.maxLifetime?l=this.minLifetime:l=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=l)continue;let g;this._poolFirst?(g=this._poolFirst,this._poolFirst=this._poolFirst.next,g.next=null):g=new gn(this),g.init(l),this.addAtBack?this._parent.addChildAt(g,0):this._parent.addChild(g),h?(c.next=g,g.prev=c,c=g):c=h=g,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=c):(this._activeParticlesFirst=h,this._activeParticlesLast=c);for(let u=0;u<this.initBehaviors.length;++u){const o=this.initBehaviors[u];if(o===le)for(let l=h,g;l;l=g){g=l.next,this.rotation!==0&&(Pt(this.rotation,l.position),l.rotation+=this.rotation),l.position.x+=r,l.position.y+=a,l.age+=-this._spawnTimer;let I=l.age*l.oneOverLife;this.customEase&&(this.customEase.length===4?I=this.customEase(I,0,1,1):I=this.customEase(I)),l.agePercent=I}else o.initParticles(h)}for(let u=h,o;u;u=o){o=u.next;for(let l=0;l<this.updateBehaviors.length;++l)if(this.updateBehaviors[l].updateParticle(u,-this._spawnTimer)){this.recycle(u);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 r=this._completeCallback;this._completeCallback=null,r()}this._destroyWhenComplete&&this.destroy()}}emitNow(){const t=this.ownerPos.x+this.spawnPos.x,e=this.ownerPos.y+this.spawnPos.y;let i=null,n=null;for(let s=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),r=0;r<s;++r){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let a;this._poolFirst?(a=this._poolFirst,this._poolFirst=this._poolFirst.next,a.next=null):a=new gn(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,a.init(h),this.addAtBack?this._parent.addChildAt(a,0):this._parent.addChild(a),i?(n.next=a,a.prev=n,n=a):n=i=a,++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 r=this.initBehaviors[s];if(r===le)for(let a=i,h;a;a=h)h=a.next,this.rotation!==0&&(Pt(this.rotation,a.position),a.rotation+=this.rotation),a.position.x+=t,a.position.y+=e;else r.initParticles(i)}}}cleanup(){let t,e;for(t=this._activeParticlesFirst;t;t=e)e=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 e=this._poolFirst;e;e=t)t=e.next,e.destroy();this._poolFirst=this._parent=this.spawnPos=this.ownerPos=this.customEase=this._completeCallback=null,this.initBehaviors.length=this.updateBehaviors.length=this.recycleBehaviors.length=0}}V.knownBehaviors={},V.registerBehavior(Ki),V.registerBehavior(Yi),V.registerBehavior(Wi),V.registerBehavior(Vi),V.registerBehavior(ji),V.registerBehavior(qi),V.registerBehavior(Xi),V.registerBehavior(Zi),V.registerBehavior(zi),V.registerBehavior($i),V.registerBehavior(tn),V.registerBehavior(en),V.registerBehavior(An),V.registerBehavior(nn),V.registerBehavior(sn),V.registerBehavior(on),V.registerBehavior(rn),V.registerBehavior(an),V.registerBehavior(kt),V.registerBehavior(ln),V.registerBehavior(hn),V.registerBehavior(cn);class bh extends Li{constructor(){super(...arguments),this.elapsed=Date.now()}async onMount(t){await super.onMount(t);const{props:e}=t,i=e.context.tick;this.emitter=new V(this,e.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,e){const i=async()=>{this.emitter?.destroy(),this.emitter=null,this.subscriptionTick.unsubscribe(),e()};await super.onDestroy(t,i)}}st("ParticlesEmitter",bh);function Sh(A){return ot("ParticlesEmitter",A)}const xo=console.log;class ko extends xt(D.Sprite){constructor(){super(...arguments),this.hitbox=null,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(){return this.app?.renderer}async detectImageDimensions(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error(`Invalid image path provided to detectImageDimensions: ${t}`);let e=null;this.globalLoader&&(e=this.globalLoader.registerAsset(t),this.trackedAssetIds.add(e));const i=await D.Assets.load(t,n=>{this.globalLoader&&e&&this.globalLoader.updateProgress(e,n)});return this.globalLoader&&e&&this.globalLoader.completeAsset(e),{width:i.width,height:i.height}}async createTextures(t){let{width:e,height:i,framesHeight:n,framesWidth:s,image:r,offset:a}=t;if(!r||typeof r!="string"||r.trim()==="")return console.warn("Invalid image path provided to createTextures:",r),[];let h=null;this.globalLoader&&(h=this.globalLoader.registerAsset(r),this.trackedAssetIds.add(h));const c=await D.Assets.load(r,B=>{this.globalLoader&&h&&this.globalLoader.updateProgress(h,B)});this.globalLoader&&h&&this.globalLoader.completeAsset(h),(!e||e<=0)&&(e=c.width,t.width=e),(!i||i<=0)&&(i=c.height,t.height=i);const u=t.spriteWidth,o=t.spriteHeight,l=[],g=a&&a.x||0,I=a&&a.y||0;for(let B=0;B<n;B++){l[B]=[];for(let C=0;C<s;C++){const E=C*u+g,y=B*o+I;if(y>i)throw xo(`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(E>e)throw xo(`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.`);l[B].push(new D.Texture({source:c.source,frame:new D.Rectangle(E,y,u,o)}))}}return l}async createAnimations(){const{textures:t}=this.spritesheet;if(t)for(let e in t){const s={...["width","height","framesHeight","framesWidth","rectWidth","rectHeight","offset","image","sound"].reduce((B,C)=>({...B,[C]:this.spritesheet[C]}),{}),...t[e]},{rectWidth:r,width:a=0,framesWidth:h=1,rectHeight:c,height:u=0,framesHeight:o=1,image:l}=s;let g=a,I=u;if(l&&(!g||g<=0||!I||I<=0)){const B=await this.detectImageDimensions(l);(!g||g<=0)&&(g=B.width,s.width=g),(!I||I<=0)&&(I=B.height,s.height=I)}s.spriteWidth=r||g/h,s.spriteHeight=c||I/o,this.animations.set(e,{frames:await this.createTextures(s),name:e,animations:t[e].animations,params:[],data:s,sprites:[]})}}async onMount(t){this["#element"]=t;const{props:e,propObservables:i}=t,n=e.context.tick,s=e.sheet??{},r=e.sheet?.definition??{};if(this.app=e.context.app(),this.globalLoader=e.context?.globalLoader||null,s?.onFinish&&(this.onFinish=s.onFinish),this.subscriptionTick=n.observable.subscribe(h=>{this.destroyed||this.update(h)}),r){const h=r instanceof Promise?await r:r;this.spritesheet=h.value??h,await this.createAnimations()}if(s?.params&&(this.sheetParams=s.params),s?.playing&&this.has(s.playing)&&(this.sheetCurrentAnimation=s.playing,this.play(this.sheetCurrentAnimation,[this.sheetParams])),s.params)for(let h in i?.sheet.params){const c=i?.sheet.params[h];if(_(c))this.subscriptionSheet.push(c.observable.subscribe(u=>{this.animations.size!=0&&this.has(this.sheetCurrentAnimation)&&this.play(this.sheetCurrentAnimation,[{...this.sheetParams,[h]:u}])}));else{if(!this.has(this.sheetCurrentAnimation))continue;this.play(this.sheetCurrentAnimation,[{...this.sheetParams,[h]:c}])}}const a=Ct(()=>{const{x:h,y:c}=i??{};if(!h||!c)return!1;const u=h,o=c,l=ye(u)&&u.animatedState().current!==u.animatedState().end,g=ye(o)&&o.animatedState().current!==o.animatedState().end;return l||g});it(()=>{const h=a();this.isMounted&&(h?this.sheetCurrentAnimation="walk":this.sheetCurrentAnimation="stand",this.spritesheet&&this.has(this.sheetCurrentAnimation)&&this.play(this.sheetCurrentAnimation,[this.sheetParams]))}),super.onMount(t)}async onUpdate(t){if(this.destroyed)return;super.onUpdate(t),!this.globalLoader&&t.context?.globalLoader&&(this.globalLoader=t.context.globalLoader);const e=async s=>{if(!s||typeof s!="string"||s.trim()==="")return console.warn("Invalid image path provided to setTexture:",s),null;let r=null;this.globalLoader&&(r=this.globalLoader.registerAsset(s),this.trackedAssetIds.add(r));const a=this.fullProps.loader?.onProgress,h=await D.Assets.load(s,c=>{if(this.globalLoader&&r&&this.globalLoader.updateProgress(r,c),a&&a(c),c==1){this.globalLoader&&r&&this.globalLoader.completeAsset(r);const u=this.fullProps.loader?.onComplete;u&&setTimeout(()=>{u(h)})}});return h},i=t.sheet,n=t.sheet?.definition??{};if(n?.type==="reset"){const s=n.value instanceof Promise?await n.value:n.value;this.spritesheet=s??n,await this.resetAnimations()}if(i?.params&&(this.sheetParams=i?.params),i?.playing&&this.isMounted&&this.spritesheet&&this.animations.size>0&&(this.sheetCurrentAnimation=i?.playing,this.play(this.sheetCurrentAnimation,[this.sheetParams])),t.hitbox!==void 0&&(this.hitbox=this.normalizeHitbox(t.hitbox)),t.scaleMode)this.baseTexture.scaleMode=t.scaleMode;else if(t.image&&this.fullProps.rectangle===void 0){const s=await e(this.fullProps.image);s&&(this.texture=s)}else t.texture&&(bt(t.texture)?(t.texture.componentInstance.subjectInit.subscribe(),this.texture=this.renderer?.generateTexture(t.texture.componentInstance)):this.texture=t.texture);if(t.rectangle!==void 0){const{x:s,y:r,width:a,height:h}=t.rectangle?.value??t.rectangle,c=await e(this.fullProps.image);c&&(this.texture=new D.Texture({source:c.source,frame:new D.Rectangle(s,r,a,h)}))}this.hitbox&&!this.spritesheet&&this.applyHitboxAnchor(this.texture.width,this.texture.height)}async onDestroy(t,e){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 D.Container&&this.parent.removeChild(this.currentAnimationContainer),e&&e()};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,e=[]){const i=this.currentAnimation?.params;if(this.isPlaying(t)&&Oe(e,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(e);this.removeChildren(),n.sprites=[],this.currentAnimation=n,this.currentAnimation.params=s,this.time=0,this.frameIndex=0;let r=n.animations;r=ni(r)?r(...s):r,this.currentAnimationContainer=new D.Container;for(let h of r){const c=new D.Sprite;for(let u of h)this.currentAnimation.sprites.push(u);this.currentAnimationContainer.addChild(c)}const a=this.currentAnimation.data.sound;a&&new me.Howl({src:a,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 e=this.getElement();if(e&&St(e)||!this.isPlaying()||!this.currentAnimation||!this.currentAnimationContainer)return;const i=this,{frames:n,sprites:s,data:r}=this.currentAnimation;let a=s[this.frameIndex];const h=s[this.frameIndex+1];for(let c of this.currentAnimationContainer.children){let u=function(I,B){const E=o(B||I);E!==void 0&&(i[I]=E)};if(!a||a.frameY==null||a.frameX==null)continue;this.texture=n[a.frameY][a.frameX];const o=I=>a[I]??r[I]??this.spritesheet[I],l=I=>{const B=o(I);B&&this[I].set(...B)};this.applyTransform&&(a={...a,...this.applyTransform(a,r,this.spritesheet)});const g=o("spriteRealSize");a.sound,this.applyHitboxAnchor(r.spriteWidth,r.spriteHeight,g),l("anchor"),l("scale"),l("skew"),l("pivot"),u("alpha","opacity"),u("x"),u("y"),u("angle"),u("rotation"),u("visible")}if(!h){this.time=0,this.frameIndex=0,this.onFinish&&s.length>1&&this.onFinish();return}this.time+=t??1,this.time>=h.time&&this.frameIndex++}applyHitboxAnchor(t,e,i){if(!this.hitbox||!t||!e)return;const s=(typeof i=="number"?i:i?.height)??e,r=Math.max(0,(e-s)/2),a=this.clamp((t-this.hitbox.w)/2/t),h=this.clamp((e-this.hitbox.h-r)/e),c=this.clamp(a+this.hitbox.w/2/t),u=this.clamp(h+this.hitbox.h/2/e),o=this.clamp((e-r)/e);let l=a,g=h;switch(this.hitbox.anchorMode??"top-left"){case"center":l=c,g=u;break;case"foot":l=c,g=o;break}this.anchor.set(l,g)}normalizeHitbox(t){const e=t?.value??t;if(!e||typeof e!="object")return null;const{w:i,h:n,anchorMode:s}=e;return typeof i!="number"||typeof n!="number"?null:{w:i,h:n,anchorMode:s}}clamp(t){return Math.min(1,Math.max(0,t))}}st("Sprite",ko);const fn=A=>(st("Sprite",ko),ot("Sprite",A));function xh(A){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},e=Y(null),i=Ni(A),{play:n,loop:s,muted:r}=i({play:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}});return it(()=>{const a=e(),h=n();a&&h!==void 0&&(h?a.play():a.pause()),a&&s()&&(a.loop=s()),a&&r()&&(a.muted=r())}),Oi(()=>()=>{for(let a in t)t[a]&&e().removeEventListener(a,t[a])}),gt(fn,{...A,image:A.src,loader:{onComplete:a=>{const h=a.source.resource;e.set(h),A?.loader?.onComplete&&A.loader.onComplete(a);for(let c in t)if(A[c]){const u=o=>{A[c](o)};t[c]=u,h.addEventListener(c,u)}}}})}class kh extends xt(D.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,e){const{props:i}=t;await super.onMount(t,e);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&&ze(this.typewriterOptions.skip)&&DA(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 e in t.style)this.style[e]=t.style[e];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(){this.typewriterOptions.sound?.src&&(this.typewriterSound=new me.Howl({src:[this.typewriterOptions.sound.src],volume:this.typewriterOptions.sound.volume??.5,rate:this.typewriterOptions.sound.rate??1,preload:!0,onload:()=>{if(this.typewriterSound){const t=this.typewriterSound.duration(),e=this.typewriterOptions.sound?.rate??1;this.soundDuration=t/e*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,e){const i=async()=>{this.subscriptionTick&&this.subscriptionTick.unsubscribe(),this.typewriterSound&&(this.typewriterSound.stop(),this.typewriterSound.unload(),this.typewriterSound=void 0),e&&e()};await super.onDestroy(t,i)}}st("Text",kh);function Mo(A){return ot("Text",A)}class Mh extends xt(D.TilingSprite){onUpdate(t){super.onUpdate(t),t.image&&(this.texture=D.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)}}st("TilingSprite",Mh);function Rh(A){return ot("TilingSprite",A)}var Fh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _h(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Ro={exports:{}};(function(A,t){(function(){var e,i;i=function(n){return A.exports=n},e={linear:function(n,s,r,a){return r*n/a+s},easeInQuad:function(n,s,r,a){return r*(n/=a)*n+s},easeOutQuad:function(n,s,r,a){return-r*(n/=a)*(n-2)+s},easeInOutQuad:function(n,s,r,a){return(n/=a/2)<1?r/2*n*n+s:-r/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,r,a){return r*(n/=a)*n*n+s},easeOutCubic:function(n,s,r,a){return r*((n=n/a-1)*n*n+1)+s},easeInOutCubic:function(n,s,r,a){return(n/=a/2)<1?r/2*n*n*n+s:r/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,r,a){return r*(n/=a)*n*n*n+s},easeOutQuart:function(n,s,r,a){return-r*((n=n/a-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,r,a){return(n/=a/2)<1?r/2*n*n*n*n+s:-r/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,r,a){return r*(n/=a)*n*n*n*n+s},easeOutQuint:function(n,s,r,a){return r*((n=n/a-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,r,a){return(n/=a/2)<1?r/2*n*n*n*n*n+s:r/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,r,a){return-r*Math.cos(n/a*(Math.PI/2))+r+s},easeOutSine:function(n,s,r,a){return r*Math.sin(n/a*(Math.PI/2))+s},easeInOutSine:function(n,s,r,a){return-r/2*(Math.cos(Math.PI*n/a)-1)+s},easeInExpo:function(n,s,r,a){return n===0?s:r*Math.pow(2,10*(n/a-1))+s},easeOutExpo:function(n,s,r,a){return n===a?s+r:r*(-Math.pow(2,-10*n/a)+1)+s},easeInOutExpo:function(n,s,r,a){return(n/=a/2)<1?r/2*Math.pow(2,10*(n-1))+s:r/2*(-Math.pow(2,-10*--n)+2)+s},easeInCirc:function(n,s,r,a){return-r*(Math.sqrt(1-(n/=a)*n)-1)+s},easeOutCirc:function(n,s,r,a){return r*Math.sqrt(1-(n=n/a-1)*n)+s},easeInOutCirc:function(n,s,r,a){return(n/=a/2)<1?-r/2*(Math.sqrt(1-n*n)-1)+s:r/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,r,a){var h,c,u;return u=1.70158,c=0,h=r,n===0||(n/=a),c||(c=a*.3),h<Math.abs(r)?(h=r,u=c/4):u=c/(2*Math.PI)*Math.asin(r/h),-(h*Math.pow(2,10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/c))+s},easeOutElastic:function(n,s,r,a){var h,c,u;return u=1.70158,c=0,h=r,n===0||(n/=a),c||(c=a*.3),h<Math.abs(r)?(h=r,u=c/4):u=c/(2*Math.PI)*Math.asin(r/h),h*Math.pow(2,-10*n)*Math.sin((n*a-u)*(2*Math.PI)/c)+r+s},easeInOutElastic:function(n,s,r,a){var h,c,u;return u=1.70158,c=0,h=r,n===0||(n/=a/2),c||(c=a*.44999999999999996),h<Math.abs(r)?(h=r,u=c/4):u=c/(2*Math.PI)*Math.asin(r/h),n<1?-.5*(h*Math.pow(2,10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/c))+s:h*Math.pow(2,-10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/c)*.5+r+s},easeInBack:function(n,s,r,a,h){return h===void 0&&(h=1.70158),r*(n/=a)*n*((h+1)*n-h)+s},easeOutBack:function(n,s,r,a,h){return h===void 0&&(h=1.70158),r*((n=n/a-1)*n*((h+1)*n+h)+1)+s},easeInOutBack:function(n,s,r,a,h){return h===void 0&&(h=1.70158),(n/=a/2)<1?r/2*(n*n*(((h*=1.525)+1)*n-h))+s:r/2*((n-=2)*n*(((h*=1.525)+1)*n+h)+2)+s},easeInBounce:function(n,s,r,a){var h;return h=e.easeOutBounce(a-n,0,r,a),r-h+s},easeOutBounce:function(n,s,r,a){return(n/=a)<.36363636363636365?r*(7.5625*n*n)+s:n<.7272727272727273?r*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?r*(7.5625*(n-=.8181818181818182)*n+.9375)+s:r*(7.5625*(n-=.9545454545454546)*n+.984375)+s},easeInOutBounce:function(n,s,r,a){var h;return n<a/2?(h=e.easeInBounce(n*2,0,r,a),h*.5+s):(h=e.easeOutBounce(n*2-a,0,r,a),h*.5+r*.5+s)}},i(e)}).call(Fh)})(Ro);var Nh=Ro.exports;const Fo=_h(Nh);function RA(A,t){if(A){if(typeof A=="function")return A;if(typeof A=="string")return Fo[A]}else return Fo[t]}class Gh{constructor(t){this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.eventMode="static",this.viewport.forceHitArea||(this.viewport.hitArea=new D.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 e=this.viewport.plugins.get("decelerate",!0),i=this.viewport.plugins.get("bounce",!0);(!e||!e.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 e=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)}e&&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 e=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),e&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const e=new D.Point;return this.viewport.options.events.mapPositionToPoint(e,t.clientX,t.clientY),e}handleWheel(t){if(this.viewport.pause||!this.viewport.visible)return;const e=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=e.x&&e.x<=this.viewport.right&&this.viewport.top<=e.y&&e.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 e of this.touches)if(e.id===t)return e;return null}remove(t){for(let e=0;e<this.touches.length;e++)if(this.touches[e].id===t){this.touches.splice(e,1);return}}count(){return(this.isMouseDown?1:0)+this.touches.length}}const AA=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class Hh{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,e,i=AA.length){const n=this.plugins[t];n&&n.destroy(),this.plugins[t]=e;const s=AA.indexOf(t);s!==-1&&AA.splice(s,1),AA.splice(i,0,t),this.sort()}get(t,e){var i;return e&&(i=this.plugins[t])!=null&&i.paused?null:this.plugins[t]}update(t){for(const e of this.list)e.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 e;this.plugins[t]&&((e=this.plugins[t])==null||e.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var e;(e=this.plugins[t])==null||e.pause()}resume(t){var e;(e=this.plugins[t])==null||e.resume()}sort(){this.list=[];for(const t of AA)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let e=!1;for(const i of this.list)i.down(t)&&(e=!0);return e}move(t){let e=!1;for(const i of this.viewport.plugins.list)i.move(t)&&(e=!0);return e}up(t){let e=!1;for(const i of this.list)i.up(t)&&(e=!0);return e}wheel(t){let e=!1;for(const i of this.list)i.wheel(t)&&(e=!0);return e}}class yt{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 Lh={removeOnInterrupt:!1,ease:"linear",time:1e3};class Uh extends yt{constructor(t,e={}){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({},Lh,e),this.options.ease=RA(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 e=new D.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:e,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,r=this.deltaX,a=this.deltaY,h=new D.Point(this.parent.x,this.parent.y);this.parent.moveCenter(n+r*i,s+a*i),this.parent.emit("moved",{viewport:this.parent,original:h,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:e,type:"animate"})}}}const Th={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class Oh extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},Th,e),this.ease=RA(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 e=this.toX;e.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),e.time>=this.options.time?(this.parent.x=e.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(e.time,e.start,e.delta,this.options.time)}if(this.toY){const e=this.toY;e.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),e.time>=this.options.time?(this.parent.y=e.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(e.time,e.start,e.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 e=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<e,right:this.parent.right>n,top:this.parent.top<i,bottom:this.parent.bottom>s,topLeft:new D.Point(e*this.parent.scale.x,i*this.parent.scale.y),bottomRight:new D.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 D.Point(0,0),bottomRight:new D.Point(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,e;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===((e=n.options)==null?void 0:e.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)||{},r=this.parent.plugins.get("pinch",!0)||{};if(n=n||{},!(s!=null&&s.active)&&!(r!=null&&r.active)&&(!this.toX||!this.toY)&&(!n.x||!n.y)){i=i||this.oob();const a=i.topLeft,h=i.bottomRight;if(!this.toX&&!n.x){let c=null;i.left&&this.left?c=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-a.x:i.right&&this.right&&(c=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-h.x),c!==null&&this.parent.x!==c&&(this.toX={time:0,start:this.parent.x,delta:c-this.parent.x,end:c},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!n.y){let c=null;i.top&&this.top?c=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-a.y:i.bottom&&this.bottom&&(c=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-h.y),c!==null&&this.parent.y!==c&&(this.toY={time:0,start:this.parent.y,delta:c-this.parent.y,end:c},this.parent.emit("bounce-y-start",this.parent))}}}reset(){this.toX=this.toY=null,this.bounce()}}const Ph={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class Jh extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},Ph,e),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 D.Point(this.parent.x,this.parent.y),e=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,e.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,e.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,e.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,e.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 Kh={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class Yh extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},Kh,e),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,e=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,e=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,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&e<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,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxHeight!==null&&e>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},e={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")e.x=this.options.maxScale,e.y=this.options.maxScale;else if(this.options.maxScale!==null){const s=this.options.maxScale;e.x=typeof s.x>"u"?null:s.x,e.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),e.x!==null&&i>e.x&&(i=e.x),t.y!==null&&n<t.y&&(n=t.y),e.y!==null&&n>e.y&&(n=e.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 Wh={friction:.98,bounce:.8,minSpeed:.01},zt=16;class Vh extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},Wh,e),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 e=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?e.x===t.original.x&&(e.x=this.parent.x):t.type==="clamp-y"&&t.original&&e.y===t.original.y&&(e.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const e of this.saved)if(e.time>=t-100){const i=t-e.time;this.x=(this.parent.x-e.x)/i,this.y=(this.parent.y-e.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 e=this.x||this.y,i=this.timeSinceRelease,n=this.timeSinceRelease+t;if(this.x){const s=this.percentChangeX,r=Math.log(s);this.parent.x+=this.x*zt/r*(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,r=Math.log(s);this.parent.y+=this.y*zt/r*(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)),e&&this.parent.emit("moved",{viewport:this.parent,type:"decelerate"})}reset(){this.x=this.y=null}}const jh={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 qh extends yt{constructor(t,e={}){super(t),this.windowEventHandlers=[],this.options=Object.assign({},jh,e),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 e=n=>{t.includes(n.code)&&(this.keyIsPressed=!0)},i=n=>{t.includes(n.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",i),this.addWindowEventHandler("keydown",e)}addWindowEventHandler(t,e){typeof window>"u"||(window.addEventListener(t,e),this.windowEventHandlers.push({event:t,handler:e}))}destroy(){typeof window>"u"||this.windowEventHandlers.forEach(({event:t,handler:e})=>{window.removeEventListener(t,e)})}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 e=t.pointerType==="mouse",i=this.parent.input.count();return!!((i===1||i>1&&!this.parent.plugins.get("pinch",!0))&&(!e||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 e=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:e,y:i};(this.parent.parent||this.parent).toLocal(s,void 0,s);const r=s.x-this.last.x,a=s.y-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(r)||this.yDirection&&this.parent.input.checkThreshold(a))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 D.Point(this.last.x,this.last.y),world:this.parent.toWorld(new D.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 e=this.parent.input.touches;if(e.length===1){const i=e[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 D.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 e=this.parent.plugins.get("wheel",!0);if(!e||!e.options.wheelZoom&&!t.ctrlKey){const i=t.deltaMode?this.options.lineHeight:1,n=[t.deltaX,t.deltaY],[s,r]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=s*i*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=r*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 Xh={speed:0,acceleration:null,radius:null};class Zh extends yt{constructor(t,e,i={}){super(t),this.target=e,this.options=Object.assign({},Xh,i),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const e=this.parent.center;let i=this.target.x,n=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-e.y,2)+Math.pow(this.target.x-e.x,2))>this.options.radius){const a=Math.atan2(this.target.y-e.y,this.target.x-e.x);i=this.target.x-Math.cos(a)*this.options.radius,n=this.target.y-Math.sin(a)*this.options.radius}else return;const s=i-e.x,r=n-e.y;if(s||r)if(this.options.speed)if(this.options.acceleration){const a=Math.atan2(n-e.y,i-e.x),h=Math.sqrt(Math.pow(s,2)+Math.pow(r,2));if(h){const c=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);h>c?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 u=Math.cos(a)*this.velocity.x,o=Math.sin(a)*this.velocity.y,l=Math.abs(u)>Math.abs(s)?i:e.x+u,g=Math.abs(o)>Math.abs(r)?n:e.y+o;this.parent.moveCenter(l,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const a=Math.atan2(n-e.y,i-e.x),h=Math.cos(a)*this.options.speed,c=Math.sin(a)*this.options.speed,u=Math.abs(h)>Math.abs(s)?i:e.x+h,o=Math.abs(c)>Math.abs(r)?n:e.y+c;this.parent.moveCenter(u,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 zh={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class $h extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},zh,e),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 e=t.global.x,i=t.global.y;if(this.radiusSquared){const n=this.parent.toScreen(this.parent.center);if(Math.pow(n.x-e,2)+Math.pow(n.y-i,2)>=this.radiusSquared){const s=Math.atan2(n.y-i,n.x-e);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&&e<this.left?this.horizontal=Number(this.reverse)*this.options.speed*.06:this.right!==null&&e>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 tc={noDrag:!1,percent:1,center:null,factor:1,axis:"all"},ec=new D.Point;class Ac extends yt{constructor(t,e={}){super(t),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},tc,e)}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:e,y:i}=(this.parent.parent||this.parent).toLocal(t.global,void 0,ec),n=this.parent.input.touches;if(n.length>=2){const s=n[0],r=n[1],a=s.last&&r.last?Math.sqrt(Math.pow(r.last.x-s.last.x,2)+Math.pow(r.last.y-s.last.y,2)):null;if(s.id===t.pointerId?s.last={x:e,y:i,data:t}:r.id===t.pointerId&&(r.last={x:e,y:i,data:t}),a){let h;const c=new D.Point(s.last.x+(r.last.x-s.last.x)/2,s.last.y+(r.last.y-s.last.y)/2);this.options.center||(h=this.parent.toLocal(c,this.parent.parent||this.parent));let u=Math.sqrt(Math.pow(r.last.x-s.last.x,2)+Math.pow(r.last.y-s.last.y,2));u=u===0?u=1e-10:u;const o=(1-a/u)*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:c});const l=this.parent.plugins.get("clamp-zoom",!0);if(l&&l.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=(this.parent.parent||this.parent).toLocal(h,this.parent);this.parent.x+=(c.x-g.x)*this.options.factor,this.parent.y+=(c.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(c.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(c.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=c,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 ic={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class nc extends yt{constructor(t,e,i,n={}){super(t),this.options=Object.assign({},ic,n),this.ease=RA(n.ease,"easeInOutSine"),this.x=e,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 e=this.snapping;e.time+=t;let i,n,s;const r=this.startX,a=this.startY,h=this.deltaX,c=this.deltaY;if(e.time>this.options.time)i=!0,n=r+h,s=a+c;else{const u=this.ease(e.time,0,1,this.options.time);n=r+h*u,s=a+c*u}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 e=this.options.topLeft?this.parent.corner:this.parent.center;(e.x!==this.x||e.y!==this.y)&&this.snapStart()}}}const sc={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class oc extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},sc,e),this.ease=RA(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")):e.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,i=this.parent.screenWidth/this.xScale,n=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:e,deltaX:i-t,deltaY:n-e},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 e;if(!this.options.center&&!this.options.noMove&&(e=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,r=this.ease(s.time,s.startX,s.deltaX,this.options.time),a=this.ease(s.time,s.startY,s.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/r,this.parent.scale.y=this.parent.screenHeight/a}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(e))}}resume(){this.snapping=null,super.resume()}}const rc={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class ac extends yt{constructor(t,e={}){super(t),this.options=Object.assign({},rc,e),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){typeof window>"u"||(window.addEventListener("keydown",e=>{t.includes(e.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",e=>{t.includes(e.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,e=this.smoothing;let i;this.options.center||(i=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=e.x),this.isAxisY()&&(this.parent.scale.y+=e.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 r=s.toLocal(t);this.parent.x+=r.x-i.x,this.parent.y+=r.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 e=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(e)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const r=this.parent.plugins.get("clamp-zoom",!0);if(r&&r.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.parent||this.parent;a.toLocal(s,this.parent,s);const h=a.toLocal(e);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 e=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=e}else{let s;this.options.center||(s=this.parent.toLocal(e)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const r=this.parent.plugins.get("clamp-zoom",!0);if(r&&r.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.parent||this.parent;a.toLocal(s,this.parent,s);const h=a.toLocal(e);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 lc={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:D.Ticker.shared,allowPreserveDragOutside:!1};class hc extends D.Container{constructor(t){super(),this._disableOnContextMenu=e=>e.preventDefault(),this.options={...lc,...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 Gh(this),this.plugins=new Hh(this)}destroy(t){var e;!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&((e=this.options.events.domElement)==null||e.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 D.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,e=typeof window>"u"?0:window.innerHeight,i,n){this.screenWidth=t,this.screenHeight=e,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 D.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,e){return arguments.length===2?this.toLocal(new D.Point(t,e)):this.toLocal(t)}toScreen(t,e){return arguments.length===2?this.toGlobal(new D.Point(t,e)):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 D.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 e,i;typeof t[0]=="number"?(e=t[0],i=t[1]):(e=t[0].x,i=t[0].y);const n=(this.worldScreenWidth/2-e)*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 D.Point(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let e,i;return t.length===1?(e=-t[0].x*this.scale.x,i=-t[0].y*this.scale.y):(e=-t[0]*this.scale.x,i=-t[1]*this.scale.y),(e!==this.x||i!==this.y)&&(this.position.set(e,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,e){const i=this.screenWidth/t,n=this.screenHeight/e;return Math.min(i,n)}findCover(t,e){const i=this.screenWidth/t,n=this.screenHeight/e;return Math.max(i,n)}fitWidth(t=this.worldWidth,e,i=!0,n){let s;e&&(s=this.center),this.scale.x=this.screenWidth/t,i&&(this.scale.y=this.scale.x);const r=this.plugins.get("clamp-zoom",!0);return!n&&r&&r.clamp(),e&&s&&this.moveCenter(s),this}fitHeight(t=this.worldHeight,e,i=!0,n){let s;e&&(s=this.center),this.scale.y=this.screenHeight/t,i&&(this.scale.x=this.scale.y);const r=this.plugins.get("clamp-zoom",!0);return!n&&r&&r.clamp(),e&&s&&this.moveCenter(s),this}fitWorld(t){let e;t&&(e=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&&e&&this.moveCenter(e),this}fit(t,e=this.worldWidth,i=this.worldHeight){let n;t&&(n=this.center),this.scale.x=this.screenWidth/e,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,e){let i;e&&(i=this.center),this.scale.set(t);const n=this.plugins.get("clamp-zoom",!0);return n&&n.clamp(),e&&i&&this.moveCenter(i),this}zoomPercent(t,e){return this.setZoom(this.scale.x+this.scale.x*t,e)}zoom(t,e){return this.fitWidth(t+this.worldScreenWidth,e),this}get scaled(){return this.scale.x}set scaled(t){this.setZoom(t,!0)}snapZoom(t){return this.plugins.add("snap-zoom",new oc(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 D.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 D.Rectangle(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new qh(this,t)),this}clamp(t){return this.plugins.add("clamp",new Jh(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Vh(this,t)),this}bounce(t){return this.plugins.add("bounce",new Oh(this,t)),this}pinch(t){return this.plugins.add("pinch",new Ac(this,t)),this}snap(t,e,i){return this.plugins.add("snap",new nc(this,t,e,i)),this}follow(t,e){return this.plugins.add("follow",new Zh(this,t,e)),this}wheel(t){return this.plugins.add("wheel",new ac(this,t)),this}animate(t){return this.plugins.add("animate",new Uh(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Yh(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new $h(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,e,i,n,s){s&&(i>this.worldScreenWidth||n>this.worldScreenHeight)&&(this.fit(!0,i,n),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let r=!1;t<this.left?(this.left=t,r=!0):t+i>this.right&&(this.right=t+i,r=!0),e<this.top?(this.top=e,r=!0):e+n>this.bottom&&(this.bottom=e+n,r=!0),r&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const cc=["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 gc extends xt(D.Container){constructor(){super(),this.overrideProps=["wheel"];const t={noTicker:!0,events:{domElement:{addEventListener:()=>{}}}};this.viewport=new hc(t),super.addChild(this.viewport),this.#t=new D.Graphics,super.addChild(this.#t),this.mask=this.#t}#t;addChild(...t){return this.viewport.addChild(...t)}addChildAt(t,e){return this.viewport.addChildAt(t,e)}onInit(t){super.onInit(t);for(let e of cc)t[e]&&this.viewport.on(e,t[e])}async onMount(t,e){t.props.context.viewport=this.viewport,await super.onMount(t,e);const{props:i}=t,{tick:n,app:s,canvasSize:r}=i.context;it(()=>{i.screenWidth===void 0&&(this.viewport.screenWidth=r().width),i.screenHeight===void 0&&(this.viewport.screenHeight=r().height),this.updateMask()}),it(()=>{const a=s();if(!a)return;const h=a.renderer;h.events.domElement.addEventListener("wheel",this.viewport.input.wheelFunction),this.viewport.options.events=h.events}),this.tickSubscription=n.observable.subscribe(({value:a})=>{this.viewport.update(a.deltaTime)}),this.updateViewportSettings(i)}onUpdate(t){super.onUpdate(t),this.updateViewportSettings(t)}updateViewportSettings(t){t.screenWidth!==void 0&&(this.viewport.screenWidth=t.screenWidth),t.screenHeight!==void 0&&(this.viewport.screenHeight=t.screenHeight),this.updateMask(),t.worldWidth!==void 0&&(this.viewport.worldWidth=t.worldWidth),t.worldHeight!==void 0&&(this.viewport.worldHeight=t.worldHeight),t.sortableChildren!==void 0&&(this.viewport.sortableChildren=t.sortableChildren),t.drag&&this.viewport.drag(t.drag),t.clamp&&this.viewport.clamp(t.clamp.value??t.clamp),t.wheel&&(t.wheel===!0?this.viewport.wheel():this.viewport.wheel(t.wheel)),t.decelerate&&(t.decelerate===!0?this.viewport.decelerate():this.viewport.decelerate(t.decelerate)),t.pinch&&(t.pinch===!0?this.viewport.pinch():this.viewport.pinch(t.pinch))}updateMask(){this.#t&&(this.#t.clear(),this.#t.beginFill(16777215),this.#t.drawRect(0,0,this.viewport.screenWidth,this.viewport.screenHeight),this.#t.endFill())}async onDestroy(t,e){const i=async()=>{this.tickSubscription.unsubscribe(),e()};await super.onDestroy(t,i)}follow(...t){return this.viewport.follow(...t)}get plugins(){return this.viewport.plugins}}st("Viewport",gc);function uc(A){return ot("Viewport",A)}class fc extends xt(D.NineSliceSprite){constructor(){super({width:0,height:0})}async onUpdate(t){for(const[e,i]of Object.entries(t))i!==void 0&&(e==="image"?this.texture=await D.Assets.load(i):e in this&&(this[e]=i))}}st("NineSliceSprite",fc);function Ic(A){return ot("NineSliceSprite",A)}const _o=["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 No{constructor(){this.eventListeners=new Map,this.onBeforeDestroy=null,this.valueSignal=null,this.isFormElementType=!1,this.classSubscriptions=[],this.childTextSubscriptions=[]}isFormElement(t){return["input","textarea","select"].includes(t.toLowerCase())}collectClassTokens(t,e){if(t){if(_(t)){this.collectClassTokens(t(),e);return}if(typeof t=="string"){t.split(/\s+/).filter(Boolean).forEach(i=>e.push(i));return}if(Array.isArray(t)){t.forEach(i=>this.collectClassTokens(i,e));return}if(typeof t=="object")for(const[i,n]of Object.entries(t))(_(n)?n():n)&&e.push(i)}}collectClassSignals(t,e){if(t){if(_(t)){e.add(t);return}if(Array.isArray(t)){t.forEach(i=>this.collectClassSignals(i,e));return}typeof t=="object"&&Object.values(t).forEach(i=>this.collectClassSignals(i,e))}}applyClassList(t){if(this.element.className="",typeof t=="string"){this.element.className=t;return}const e=[];this.collectClassTokens(t,e),e.length>0&&this.element.classList.add(...e)}syncClassSubscriptions(t){for(const i of this.classSubscriptions)i.unsubscribe();this.classSubscriptions=[];const e=new Set;this.collectClassSignals(t,e),e.size!==0&&e.forEach(i=>{if(!i?.observable?.subscribe)return;const n=i.observable.subscribe(()=>{this.applyClassList(t)});this.classSubscriptions.push(n)})}appendChildElement(t){if(t==null||t===!1)return;if(typeof t=="string"||typeof t=="number"){this.element.appendChild(document.createTextNode(String(t)));return}if(_(t)){const n=document.createTextNode(t()==null?"":String(t()));if(this.element.appendChild(n),t.observable?.subscribe){const s=t.observable.subscribe(r=>{n.textContent=r==null?"":String(r)});this.childTextSubscriptions.push(s)}return}if(Is(t)){t.subscribe(n=>{n&&typeof n=="object"&&"elements"in n?(n.elements||[]).forEach(r=>this.appendChildElement(r)):Array.isArray(n)?n.forEach(s=>this.appendChildElement(s)):this.appendChildElement(n)});return}if(Array.isArray(t)){t.forEach(n=>this.appendChildElement(n));return}const e=t?.componentInstance?.element;if(e){this.element.appendChild(e);return}const i=t?.props?.children;i&&this.appendChildElement(i)}onInit(t){if(typeof t.element=="string")this.element=document.createElement(t.element),this.isFormElementType=this.isFormElement(t.element);else{if(this.element=t.element?.value,!this.element)throw new Error("DOMElement requires a valid element.");this.isFormElementType=this.isFormElement(this.element.tagName)}(t.onBeforeDestroy||t["on-before-destroy"])&&(this.onBeforeDestroy=t.onBeforeDestroy||t["on-before-destroy"]);for(const e of _o)if(t.attrs?.[e]){const i=n=>{if(e==="submit"&&this.element.tagName.toLowerCase()==="form"){n.preventDefault();const s=new FormData(this.element),r={};s.forEach((a,h)=>{r[h]?Array.isArray(r[h])?r[h].push(a):r[h]=[r[h],a]:r[h]=a}),t.attrs[e]?.(n,r)}else t.attrs[e]?.(n)};this.eventListeners.set(e,i),this.element.addEventListener(e,i,!1)}t.children&&this.appendChildElement(t.children),this.onUpdate(t)}onMount(t){const i=t.propObservables.attrs;if(this.isFormElementType&&i?.value&&_(i.value)){this.valueSignal=i.value,this.element.value=this.valueSignal();const n=s=>{const r=s.target;this.valueSignal.set(r.value)};this.eventListeners.set("input",n),this.element.addEventListener("input",n,!1)}}onUpdate(t){if(this.element){for(const[e,i]of Object.entries(t.attrs||{}))if(e==="tabindex"){const n=_(i)?i():i;n!=null?this.element.setAttribute("tabindex",String(n)):this.element.removeAttribute("tabindex")}else if(e==="class"){const n=i.items||i.value||i,s=_(n)?n():n;this.applyClassList(s),this.syncClassSubscriptions(s)}else if(e==="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,r]of Object.entries(n))r!=null&&(this.element.style[s]=r)}else if(e==="value"&&this.isFormElementType)if(_(i)){const n=this.element.value,s=i();n!==s&&(this.element.value=s)}else this.element.value=i;else _o.includes(e)||this.element.setAttribute(e,i);if("textContent"in t){const e=t.textContent;this.element.textContent=e==null?"":String(e)}}}async onDestroy(t,e){if(this.element){this.onBeforeDestroy&&await this.onBeforeDestroy();for(const[i,n]of this.eventListeners)this.element.removeEventListener(i,n,!1);this.eventListeners.clear();for(const i of this.classSubscriptions)i.unsubscribe();this.classSubscriptions=[];for(const i of this.childTextSubscriptions)i.unsubscribe();this.childTextSubscriptions=[],this.element.remove(),e&&e()}}}st("DOMElement",No);const Go=A=>ot("DOMElement",A),te=class te extends xt(D.DOMContainer){constructor(){super(...arguments),this.disableLayout=!0,this.canvasSizeEffect=null}hasDomContainerAncestor(){let e=this.getElement()?.parent;for(;e;){if(e.tag==="DOMContainer")return!0;e=e.parent}return!1}getPercentRatio(t){const e=parseFloat(t);return Number.isNaN(e)?null:e/100}getCanvasSize(){const t=this.fullProps?.context?.canvasSize;return typeof t=="function"?t():t}shouldUseCanvasPercent(){const t=this.fullProps?.width,e=this.fullProps?.height;return!pt(t)&&!pt(e)?!1:!this.hasDomContainerAncestor()}syncCanvasSizeEffect(){const t=this.shouldUseCanvasPercent();if(t&&!this.canvasSizeEffect){const e=this.fullProps?.context?.canvasSize;typeof e=="function"&&(this.canvasSizeEffect=it(()=>{e(),this.applyElementSize()}))}else!t&&this.canvasSizeEffect&&(this.canvasSizeEffect.subscription?.unsubscribe(),this.canvasSizeEffect=null)}applyElementSize(){if(!this.element)return;const t=this.fullProps?.width,e=this.fullProps?.height,i=this.shouldUseCanvasPercent(),n=i?this.getCanvasSize():null;if(t!==void 0)if(pt(t))if(i){const s=this.getPercentRatio(t);if(s!==null){const r=n?.width!==void 0?n.width:this.getWidth();this.element.style.width=`${r*s}px`}}else this.element.style.width=t;else typeof t=="number"?this.element.style.width=`${t}px`:typeof t=="string"&&(this.element.style.width=t);if(e!==void 0)if(pt(e))if(i){const s=this.getPercentRatio(e);if(s!==null){const r=n?.height!==void 0?n.height:this.getHeight();this.element.style.height=`${r*s}px`}}else this.element.style.height=e;else typeof e=="number"?this.element.style.height=`${e}px`:typeof e=="string"&&(this.element.style.height=e)}routeDomChildren(t){if(!t)return t;if(Array.isArray(t))return t.map(e=>this.routeDomChildren(e));if(bt(t)){if(te.DOM_ALLOWED_TAGS.has(t.tag))return t;const e=te.DOM_ROUTING_MAP[t.tag];if(e){t.propSubscriptions?.forEach(n=>n.unsubscribe()),t.effectSubscriptions?.forEach(n=>n.unsubscribe()),t.effectUnmounts?.forEach(n=>n?.());const i=t.propObservables??t.props;return ot(e,i)}if(te.DOM_UNSUPPORTED_TAGS.has(t.tag))throw new Error(`Component ${t.tag} is not implemented for DOMContainer context yet. Only Sprite is supported.`);return t.props?.children&&(t.props.children=this.routeDomChildren(t.props.children)),t}return t}onInit(t){const e=t._scopeClass;let i={element:"div"};const n={...t.attrs||{}},s=h=>{if(!e)return h;if(h==null)return e;if(typeof h=="string")return`${e} ${h}`;if(Array.isArray(h))return[e,...h];if(typeof h=="object"){if("items"in h){const c=h.items;return{...h,items:[e,c]}}if("value"in h){const c=h.value;return{...h,value:[e,c]}}return{[e]:!0,...h}}return[e,h]};t.class!==void 0&&(n.class?n.class=[t.class,n.class]:n.class=t.class),t.style!==void 0&&(typeof n.style=="object"&&n.style!==null&&typeof t.style=="object"&&t.style!==null?n.style={...n.style,...t.style}:n.style===void 0?n.style=t.style:typeof n.style=="string"&&typeof t.style=="string"?n.style=`${n.style}; ${t.style}`:n.style=t.style),t.zIndex!==void 0&&(typeof n.style=="object"&&n.style!==null?n.style={...n.style,zIndex:t.zIndex}:typeof n.style=="string"?n.style=`${n.style}; z-index: ${t.zIndex}`:n.style={zIndex:t.zIndex}),e?(i.attrs={...n},i.attrs.class=s(i.attrs.class)):Object.keys(n).length>0&&(i.attrs=n);const r=this.routeDomChildren(t.children);t.children=r;const a=gt(Go,i,r);this.element=a.componentInstance.element}async onMount(t,e){await super.onMount(t,e),this.syncCanvasSizeEffect(),this.applyElementSize()}onUpdate(t){super.onUpdate(t),this.syncCanvasSizeEffect(),this.applyElementSize()}onLayoutComputed(){this.applyElementSize()}async onDestroy(t,e){const i=()=>{this.canvasSizeEffect&&(this.canvasSizeEffect.subscription?.unsubscribe(),this.canvasSizeEffect=null),e&&e()};await super.onDestroy(t,i)}};te.DOM_ROUTING_MAP={Sprite:"DOMSprite"},te.DOM_ALLOWED_TAGS=new Set(["DOMContainer","DOMElement","DOMSprite"]),te.DOM_UNSUPPORTED_TAGS=new Set(["Canvas","Container","Graphics","Rect","Circle","Ellipse","Triangle","Svg","Mesh","Scene","ParticlesEmitter","Sprite","Video","Text","TilingSprite","Viewport","NineSliceSprite","Button","Joystick","FocusContainer"]);let In=te;st("DOMContainer",In);const dc=A=>ot("DOMContainer",A),Bc=["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 Ec extends No{constructor(){super(...arguments),this.frameIndex=0,this.frames=[],this.fps=120,this.loop=!0,this.playing=!0,this.hasExternalFrameIndex=!1,this.elapsed=0,this.sheetSubscriptions=[],this.sheetAnimations=new Map,this.sheetParams={},this.sheetTime=0,this.sheetFrameIndex=0,this.sheetFinished=!1,this.sheetLoadToken=0,this.renderElementType="div",this.wrapperElementType="div",this.isAnimating=!1,this.frameWidth=0,this.frameHeight=0,this.isContained=!1}onInit(t){const e=t,n=!(e.sheet!==void 0)&&e.image?"img":"div";this.renderElementType=e.element??n;const s=this.resolveValue(e.objectFit);this.fitMode=s??void 0,this.wrapperElementType=this.fitMode==="contain"&&this.renderElementType==="img"?"div":this.renderElementType;const r=this.mergeEventAttrs({...e,element:this.wrapperElementType});this.tickSignal=r.context?.tick,this.applyProps(r),super.onInit(r),this.syncRenderElement(),this.applyDisplayProps(r),this.render(),this.updateAnimationLoop()}onMount(t){this.tickSignal=t.props.context?.tick,super.onMount(t),this.bindPlayingSignal(t),this.bindSheetParams(t),this.updateAnimationLoop()}onUpdate(t){const e=this.mergeEventAttrs(t);super.onUpdate(e),this.applyProps(e),this.syncRenderElement(),this.applyDisplayProps(e),this.render(),this.updateAnimationLoop()}async onDestroy(t,e){this.playingSubscription&&(this.playingSubscription.unsubscribe(),this.playingSubscription=void 0),this.sheetSubscriptions.length>0&&(this.sheetSubscriptions.forEach(i=>i.unsubscribe()),this.sheetSubscriptions=[]),this.stopAnimationLoop(),await super.onDestroy(t,e)}resolveRectangle(t){if(!t)return;const e=_(t)?t():t;if(!e)return;const i=e.value??e;if(i)return i}resolveSheetDefinition(t){if(!t)return;const e=_(t)?t():t;if(e)return e.value??e}async detectImageDimensions(t){return!Ce()||!t?{width:0,height:0}:new Promise((e,i)=>{const n=new Image;n.onload=()=>e({width:n.naturalWidth,height:n.naturalHeight}),n.onerror=()=>i(new Error(`Failed to load image: ${t}`)),n.src=t})}async createSheetAnimations(t){this.sheetAnimations.clear();const{textures:e}=t;if(!e)return;const i=["width","height","framesHeight","framesWidth","rectWidth","rectHeight","offset"];for(const n in e){const r={...i.reduce((I,B)=>({...I,[B]:t[B]}),{}),...e[n],spriteWidth:0,spriteHeight:0};r.image=e[n].image??t.image;const{rectWidth:a,rectHeight:h,framesWidth:c=1,framesHeight:u=1,image:o}=r;let l=r.width||0,g=r.height||0;if(o&&(!l||l<=0||!g||g<=0)){const I=await this.detectImageDimensions(o);(!l||l<=0)&&(l=I.width),(!g||g<=0)&&(g=I.height)}!l||!g||!c||!u||(r.width=l,r.height=g,r.spriteWidth=a||l/c,r.spriteHeight=h||g/u,this.sheetAnimations.set(n,{frames:[],name:n,animations:e[n].animations,params:[],data:r}))}}async setSheetDefinition(t){const e=++this.sheetLoadToken;if(!t){this.sheetDefinition=void 0,this.sheetAnimations.clear(),this.sheetCurrentAnimation=void 0,this.sheetCurrentName=void 0;return}const i=await t;if(e!==this.sheetLoadToken)return;if(!i){this.sheetDefinition=void 0,this.sheetAnimations.clear(),this.sheetCurrentAnimation=void 0,this.sheetCurrentName=void 0;return}this.sheetDefinition=i,i.image&&(this.image=i.image),await this.createSheetAnimations(i);const n=i.textures?Object.keys(i.textures):[],s=this.sheetCurrentName||(n.includes("stand")?"stand":n[0])||void 0;s&&this.playSheet(s,[this.sheetParams]),this.render(),this.updateAnimationLoop()}playSheet(t,e=[]){const i=this.sheetCurrentAnimation?.params;if(this.sheetCurrentAnimation&&this.sheetCurrentAnimation.name===t&&Oe(e,i||[]))return;const n=this.sheetAnimations.get(t);if(!n)throw new Error(`Impossible to play the ${t} animation because it doesn't exist on the spritesheet`);const s=structuredClone(e);let r=n.animations;r=ni(r)?r(...s):r,n.frames=[],n.params=s,this.sheetCurrentAnimation=n,this.sheetCurrentName=t,this.sheetTime=0,this.sheetFrameIndex=0,this.sheetFinished=!1;const a=n.data,h=a.spriteWidth,c=a.spriteHeight,u=a.offset?.x??0,o=a.offset?.y??0;for(const l of r)for(const g of l){const I=g.frameX??0,B=g.frameY??0;n.frames.push({...g,x:I*h+u,y:B*c+o,width:h,height:c})}this.render(),this.updateAnimationLoop()}getCurrentSheetFrame(){return!this.sheetCurrentAnimation||this.sheetCurrentAnimation.frames.length===0?null:this.sheetCurrentAnimation.frames[this.sheetFrameIndex]??null}advanceSheet(t){if(!this.playing||!this.sheetCurrentAnimation)return;const e=this.sheetCurrentAnimation.frames;if(e.length<=1)return;const i=this.fps>0?this.fps:60;let n=0;t.deltaTime?n=t.deltaTime/_t(i):typeof t.deltaRatio=="number"&&(n=t.deltaRatio*(i/60));const s=e[this.sheetFrameIndex+1];if(!s){if(this.loop){this.sheetTime=0,this.sheetFrameIndex=0,this.applyFrame(e[0]);return}else this.sheetFinished||(this.sheetFinished=!0,this.sheetOnFinish&&this.sheetOnFinish());this.applyFrame(e[e.length-1]);return}this.sheetTime+=n||0,this.sheetTime>=s.time&&(this.sheetFrameIndex+=1),this.applyFrame(e[this.sheetFrameIndex])}mergeEventAttrs(t){let e=t.attrs?{...t.attrs}:void 0;for(const i of Bc){const n=t[i];n&&!e?.[i]&&(e||(e={}),e[i]=n)}return t.class!==void 0&&(e||(e={}),e.class?e.class=[t.class,e.class]:e.class=t.class),t.style!==void 0&&(e||(e={}),typeof e.style=="object"&&e.style!==null&&typeof t.style=="object"&&t.style!==null?e.style={...e.style,...t.style}:e.style===void 0?e.style=t.style:typeof e.style=="string"&&typeof t.style=="string"?e.style=`${e.style}; ${t.style}`:e.style=t.style),e?{...t,attrs:e}:t}applyProps(t){if(t.image!==void 0&&(this.image=_(t.image)?t.image():t.image),t.rectangle!==void 0&&(this.rectangle=this.resolveRectangle(t.rectangle)),t.frames!==void 0){const e=_(t.frames)?t.frames():t.frames;this.frames=e??[]}if(t.sheet!==void 0){const e=_(t.sheet)?t.sheet():t.sheet;if(e?.definition!==void 0){const i=this.resolveSheetDefinition(e.definition);i instanceof Promise?this.setSheetDefinition(i):i&&i!==this.sheetDefinition&&this.setSheetDefinition(i)}e?.params!==void 0&&(this.sheetParams={...this.sheetParams,...e.params}),e?.playing!==void 0&&(this.sheetCurrentName=e.playing),e?.onFinish!==void 0&&(this.sheetOnFinish=e.onFinish),this.sheetAnimations.size>0&&this.sheetCurrentName&&this.playSheet(this.sheetCurrentName,[this.sheetParams])}if(t.frameIndex!==void 0){const e=_(t.frameIndex),i=e?t.frameIndex():t.frameIndex;i!==void 0&&(this.frameIndex=i),this.hasExternalFrameIndex=e}if(t.fps!==void 0){const e=_(t.fps)?t.fps():t.fps;e!==void 0&&(this.fps=e)}if(t.playing!==void 0){const e=_(t.playing)?t.playing():t.playing;this.playing=e===!0,this.playing||(this.elapsed=0)}if(t.loop!==void 0){const e=_(t.loop)?t.loop():t.loop;e!==void 0&&(this.loop=e)}if(t.objectFit!==void 0){const e=this.resolveValue(t.objectFit);this.fitMode=e??void 0}}resolveValue(t){if(t===void 0)return;const e=_(t)?t():t;return e&&typeof e=="object"&&"value"in e?e.value:e}resolvePoint(t){const e=this.resolveValue(t);if(e!=null){if(typeof e=="number")return{x:e,y:e};if(Array.isArray(e)){const[i,n]=e;return{x:i??0,y:n??i??0}}if(typeof e=="object")return{x:e.x??0,y:e.y??0}}}resolveSize(t){const e=this.resolveValue(t);if(e!=null){if(typeof e=="number")return`${e}px`;if(typeof e=="string")return e}}resolvePixelSize(t){if(t){if(t.endsWith("px")){const e=parseFloat(t);return Number.isNaN(e)?void 0:e}if(/^\d+(\.\d+)?$/.test(t)){const e=parseFloat(t);return Number.isNaN(e)?void 0:e}}}toCssColor(t){return`#${Math.max(0,Math.min(16777215,t)).toString(16).padStart(6,"0")}`}applyDisplayProps(t){if(!this.element)return;if(t.width!==void 0?this.explicitWidth=this.resolveSize(t.width):this.explicitWidth=void 0,t.height!==void 0?this.explicitHeight=this.resolveSize(t.height):this.explicitHeight=void 0,this.explicitWidth!==void 0&&(this.element.style.width=this.explicitWidth),this.explicitHeight!==void 0&&(this.element.style.height=this.explicitHeight),t.alpha!==void 0){const s=this.resolveValue(t.alpha);s!==void 0&&(this.element.style.opacity=String(s))}if(t.visible!==void 0){const s=this.resolveValue(t.visible);this.element.style.display=s===!1?"none":""}if(t.zIndex!==void 0){const s=this.resolveValue(t.zIndex);s!==void 0&&(this.element.style.zIndex=String(s))}if(t.cursor!==void 0){const s=this.resolveValue(t.cursor);s!==void 0&&(this.element.style.cursor=String(s))}if(t.tint!==void 0){const s=this.resolveValue(t.tint);typeof s=="number"&&(this.element.style.filter=`drop-shadow(0 0 0 ${this.toCssColor(s)})`)}if([t.x,t.y,t.scale,t.rotation,t.angle,t.skew,t.roundPixels].some(s=>s!==void 0)){let s=this.resolveValue(t.x)??0,r=this.resolveValue(t.y)??0;this.resolveValue(t.roundPixels)&&(s=Math.round(s),r=Math.round(r));const h=this.resolvePoint(t.scale)??{x:1,y:1},c=this.resolvePoint(t.skew),u=this.resolveValue(t.angle),o=this.resolveValue(t.rotation),l=u!==void 0?u:o!==void 0?o*180/Math.PI:0,g=[`translate3d(${s}px, ${r}px, 0)`];if(l!==0&&g.push(`rotate(${l}deg)`),c){const I=c.x*180/Math.PI,B=c.y*180/Math.PI;(I!==0||B!==0)&&g.push(`skew(${I}deg, ${B}deg)`)}(h.x!==1||h.y!==1)&&g.push(`scale(${h.x}, ${h.y})`),this.element.style.transform=g.join(" ")}const i=this.resolvePoint(t.pivot),n=this.resolvePoint(t.anchor);i?this.element.style.transformOrigin=`${i.x}px ${i.y}px`:n&&(this.element.style.transformOrigin=`${n.x*100}% ${n.y*100}%`)}syncRenderElement(){if(this.element){if(this.fitMode==="contain"&&!(this.element instanceof HTMLImageElement)){if(!this.isContained){const t=document.createElement(this.renderElementType);this.element.style.position="relative",this.element.style.overflow="hidden",t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.transformOrigin="0 0",this.element.appendChild(t),this.renderElement=t,this.isContained=!0}return}this.isContained&&(this.renderElement&&this.renderElement!==this.element&&this.renderElement.remove(),this.renderElement=void 0,this.isContained=!1)}}getRenderElement(){return this.renderElement??this.element}applyContainScale(){if(!this.isContained)return;const t=this.getRenderElement();if(!t||!this.element||this.frameWidth<=0||this.frameHeight<=0)return;const e=this.resolvePixelSize(this.explicitWidth)??this.element.clientWidth,i=this.resolvePixelSize(this.explicitHeight)??this.element.clientHeight;if(!e||!i)return;const n=Math.min(e/this.frameWidth,i/this.frameHeight);!Number.isFinite(n)||n<=0||(t.style.transform=`scale(${n})`)}bindPlayingSignal(t){const e=t.propObservables?.playing;!e||!_(e)||this.playingSignal!==e&&(this.playingSubscription&&(this.playingSubscription.unsubscribe(),this.playingSubscription=void 0),this.playingSignal=e,this.playing=e(),this.playingSubscription=e.observable.subscribe(i=>{this.playing=i===!0,this.playing||(this.elapsed=0),this.updateAnimationLoop()}))}bindSheetParams(t){const i=t.propObservables?.sheet?.params;if(!(!i||typeof i!="object"))for(const n in i){const s=i[n];_(s)&&this.sheetSubscriptions.push(s.observable.subscribe(r=>{this.sheetParams={...this.sheetParams,[n]:r},this.sheetCurrentName&&this.playSheet(this.sheetCurrentName,[this.sheetParams])}))}}getFrames(){return this.frames&&this.frames.length>0?this.frames:this.rectangle?[this.rectangle]:[]}normalizeIndex(t,e){if(e<=0)return 0;if(this.loop){const i=t%e;return i<0?i+e:i}return t<0?0:t>=e?e-1:t}render(){if(!this.element)return;const t=this.getRenderElement(),e=this.getCurrentSheetFrame();if(e){this.applyFrame(e);return}const i=this.getFrames();if(i.length===0){this.renderElementType==="img"&&this.image&&t?t.src=this.image:this.image&&(t.style.backgroundImage=`url("${this.image}")`);return}const n=this.normalizeIndex(this.frameIndex,i.length);n!==this.frameIndex&&!this.loop&&(this.frameIndex=n);const s=i[n];this.applyFrame(s)}applyFrame(t){if(!this.element)return;const e=this.getRenderElement();if(!e)return;this.frameWidth=t.width,this.frameHeight=t.height,this.fitMode==="contain"?(e.style.width=`${t.width}px`,e.style.height=`${t.height}px`):(e.style.width=this.explicitWidth??`${t.width}px`,e.style.height=this.explicitHeight??`${t.height}px`);const i=t.x??0,n=t.y??0;if(this.renderElementType==="img"){const s=e;this.image&&(s.src=this.image),s.style.objectFit="none",s.style.objectPosition=`-${i}px -${n}px`,this.applyContainScale();return}this.image&&(e.style.backgroundImage=`url("${this.image}")`),e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition=`-${i}px -${n}px`,this.applyContainScale()}updateAnimationLoop(){const t=this.sheetCurrentAnimation?.frames??[];(this.sheetCurrentAnimation?this.playing&&t.length>1:this.playing&&!this.hasExternalFrameIndex&&this.getFrames().length>1&&this.fps>0)?this.startAnimationLoop():this.stopAnimationLoop()}startAnimationLoop(){if((this.tickSubscription||this.rafId!==void 0)&&this.stopAnimationLoop(),this.isAnimating=!0,this.elapsed=0,this.lastTickTimestamp=void 0,this.tickSignal?.observable){this.tickSubscription=this.tickSignal.observable.subscribe(e=>{const i=e?.value??e;if(!i)return;if(this.sheetCurrentAnimation){this.advanceSheet(i);return}let n=i.deltaTime||0;if(n<=0){const s=Ot();if(this.lastTickTimestamp===void 0){this.lastTickTimestamp=s;return}n=s-this.lastTickTimestamp,this.lastTickTimestamp=s}n>0&&this.advance(n)});return}const t=e=>{if(!this.playing||this.hasExternalFrameIndex){this.stopAnimationLoop();return}this.lastRafTimestamp===void 0&&(this.lastRafTimestamp=e);const i=e-this.lastRafTimestamp;this.lastRafTimestamp=e,this.sheetCurrentAnimation?this.advanceSheet({timestamp:e,deltaTime:i,frame:0,deltaRatio:i/_t(this.fps)}):this.advance(i),Ce()?this.rafId=window.requestAnimationFrame(t):this.rafId=setTimeout(()=>{t(Ot())},_t(this.fps))};Ce()?this.rafId=window.requestAnimationFrame(t):this.rafId=setTimeout(()=>{t(Ot())},_t(this.fps))}stopAnimationLoop(){this.isAnimating=!1,this.tickSubscription&&(this.tickSubscription.unsubscribe(),this.tickSubscription=void 0),this.rafId!==void 0&&(Ce()?window.cancelAnimationFrame(this.rafId):clearTimeout(this.rafId),this.rafId=void 0,this.lastRafTimestamp=void 0),this.lastTickTimestamp=void 0}advance(t){const e=this.getFrames();if(!this.playing||e.length<=1||this.fps<=0)return;this.elapsed+=t;const i=_t(this.fps);for(;this.elapsed>=i;)if(this.elapsed-=i,this.frameIndex+=1,!this.loop&&this.frameIndex>=e.length){this.frameIndex=e.length-1;break}this.render()}}st("DOMSprite",Ec);const Cc=A=>ot("DOMSprite",A);var Ho=(A=>(A.Normal="normal",A.Hover="hover",A.Pressed="pressed",A.Disabled="disabled",A))(Ho||{});function Qc(A){const t=Y("normal"),e=Y(!1),i=Y(!1),n=Ni(A),{text:s,disabled:r,width:a,height:h,style:c,shape:u,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}}),l=()=>A.controls?_(A.controls)?A.controls():A.controls:null;it(()=>{const C=r(),E=e(),y=i();C?t.set("disabled"):E?t.set("pressed"):y?t.set("hover"):t.set("normal")});const g={pointerenter:C=>{r()||(i.set(!0),A.hoverEnter?.(C))},pointerleave:C=>{i.set(!1),e.set(!1),A.hoverLeave?.(C)},pointerdown:async C=>{if(!r()){e.set(!0),A.pressDown?.(C);const E=l(),y=o();E&&y&&E.applyControl&&await E.applyControl(y,!0)}},pointerup:async C=>{if(!r()&&e()){e.set(!1),A.pressUp?.(C);const E=l(),y=o();E&&y&&E.applyControl&&await E.applyControl(y,!1)}},pointertap:async C=>{if(!r()){A.click?.(C);const E=l(),y=o();E&&y&&E.applyControl&&await E.applyControl(y)}}},I=()=>{if(A.background)return A.background;const C=u(),E=Ct(()=>{const w=c().backgroundColor||{normal:"#007bff",hover:"#0056b3",pressed:"#004085",disabled:"#6c757d"},b=t();return w[b]||w.normal});if(C==="circle"){const y=Ct(()=>Math.min(a(),h())/2);return gt(Ti,{radius:y,x:Ct(()=>a()/2),y:Ct(()=>h()/2),color:E})}else return C==="ellipse"?gt(mo,{width:a,height:h,color:E}):gt(yo,{width:a,height:h,color:E})},B=()=>A.children&&A.children.length>0?A.children:[gt(Mo,{text:s,x:Ct(()=>a()/2),y:Ct(()=>h()/2),anchor:{x:.5,y:.5},style:Ct(()=>{const E=c().text||{};return{fontSize:E.fontSize||16,fontFamily:E.fontFamily||"Arial",fill:E.color||"#ffffff"}})()})];return gt($e,{x:A.x,y:A.y,width:A.width,height:A.height,alpha:A.alpha,visible:A.visible,cursor:A.cursor||"pointer",tabindex:A.tabindex,...g},[I(),...B()])}function pc(A={}){const t=Object.assign({outerScale:{x:1,y:1},innerScale:{x:1,y:1},innerColor:"black",outerColor:"black"},A),e=()=>_(t.controls)?t.controls():t.controls;let i=70,n=10;const s=.5;let r=!1,a=null,h=0;const c=Y(0),u=Y(0),o=Y(s);function l(b){const M=b.x-0,N=b.y-0;return Math.min(1,Math.sqrt(M*M+N*N)/i)}function g(b){let M=Math.atan2(b.y,b.x);return M>=-Math.PI/8&&M<0||M>=0&&M<Math.PI/8?"right":M>=Math.PI/8&&M<3*Math.PI/8?"bottom_right":M>=3*Math.PI/8&&M<5*Math.PI/8?"bottom":M>=5*Math.PI/8&&M<7*Math.PI/8?"bottom_left":M>=7*Math.PI/8&&M<Math.PI||M>=-Math.PI&&M<-7*Math.PI/8?"left":M>=-7*Math.PI/8&&M<-5*Math.PI/8?"top_left":M>=-5*Math.PI/8&&M<-3*Math.PI/8?"top":"top_right"}function I(b){const M=b.currentTarget||b.target;a=b.getLocalPosition(M),r=!0,o.set(1),t.onStart?.();const N=e();N&&(N.handleJoystickStart?N.handleJoystickStart():N.joystick&&N.joystick.handleJoystickStart&&N.joystick.handleJoystickStart())}function B(){if(!r)return;c.set(0),u.set(0),r=!1,o.set(s),t.onEnd?.();const b=e();b&&(b.handleJoystickEnd?b.handleJoystickEnd():b.joystick&&b.joystick.handleJoystickEnd&&b.joystick.handleJoystickEnd())}function C(b){if(r==!1)return;const M=b.currentTarget||b.target;let N=b.getLocalPosition(M),O=N.x-(a?.x??0),K=N.y-(a?.y??0),H=new Fr.Point(0,0),T=0;if(O==0&&K==0)return;let W="left";if(O==0){K>0?(H.set(0,K>i?i:K),T=270,W="bottom"):(H.set(0,-(Math.abs(K)>i?i:Math.abs(K))),T=90,W="top"),c.set(H.x),u.set(H.y),h=l(H);const Tt={angle:T,direction:W,power:h};t.onChange?.(Tt);const ct=e();ct&&(ct.handleJoystickChange?ct.handleJoystickChange(Tt):ct.joystick&&ct.joystick.handleJoystickChange&&ct.joystick.handleJoystickChange(Tt));return}if(K==0){O>0?(H.set(Math.abs(O)>i?i:Math.abs(O),0),T=0,W="right"):(H.set(-(Math.abs(O)>i?i:Math.abs(O)),0),T=180,W="left"),c.set(H.x),u.set(H.y),h=l(H);const Tt={angle:T,direction:W,power:h};t.onChange?.(Tt);const ct=e();ct&&(ct.handleJoystickChange?ct.handleJoystickChange(Tt):ct.joystick&&ct.joystick.handleJoystickChange&&ct.joystick.handleJoystickChange(Tt));return}let At=Math.abs(K/O),rt=Math.atan(At);T=rt*180/Math.PI;let tt=0,ut=0;O*O+K*K>=i*i?(tt=i*Math.cos(rt),ut=i*Math.sin(rt)):(tt=Math.abs(O)>i?i:Math.abs(O),ut=Math.abs(K)>i?i:Math.abs(K)),K<0&&(ut=-Math.abs(ut)),O<0&&(tt=-Math.abs(tt)),O>0&&K<0||(O<0&&K<0?T=180-T:O<0&&K>0?T=T+180:O>0&&K>0&&(T=360-T)),H.set(tt,ut),h=l(H),W=g(H),c.set(H.x),u.set(H.y);const ft={angle:T,direction:W,power:h};t.onChange?.(ft);const Jt=e();Jt&&(Jt.handleJoystickChange?Jt.handleJoystickChange(ft):Jt.joystick&&Jt.joystick.handleJoystickChange&&Jt.joystick.handleJoystickChange(ft))}let E,y;t.outer?y=gt(fn,{image:t.outer,anchor:{x:.5,y:.5},scale:t.outerScale}):y=gt(ae,{draw:b=>{b.circle(0,0,i).fill(t.outerColor)},alpha:.5});const w={scale:t.innerScale,x:c,y:u,alpha:o};return t.inner?E=t.inner:E=gt(ae,{draw:b=>{b.circle(0,0,n*2.5).fill(t.innerColor)},...w}),gt($e,{...A,pointerdown:I,pointerup:B,pointerupoutside:B,pointermove:C},y,E)}const ue=class ue{constructor(){this.containers=new Map,this.scrollAnimations=new Map}static getInstance(){return ue.instance||(ue.instance=new ue),ue.instance}registerContainer(t,e){this.containers.set(t,{...e,id:t})}updateContainer(t,e){const i=this.containers.get(t);i&&this.containers.set(t,{...i,...e})}setTabindex(t,e){const i=this.containers.get(t);if(!i)return;if(i.tabindexSubscription&&i.tabindexSubscription.unsubscribe(),e==null){i.tabindex=void 0;return}i.tabindex=e;const n=_(e)?e():e;typeof n=="number"&&this.setIndex(t,n),_(e)&&(i.tabindexSubscription=e.observable.subscribe(s=>{s!==null&&s!==i.currentIndex()&&this.setIndex(t,s)}))}unregisterContainer(t){this.containers.delete(t),this.scrollAnimations.delete(t)}registerFocusable(t,e,i){const n=this.containers.get(t);if(!n){console.warn(`FocusContainer with id "${t}" not found`);return}n.focusables.set(i,e);const s=_(n.tabindex)?n.tabindex():n.tabindex;(n.pendingIndex===i||s===i&&n.currentIndex()===null)&&(n.pendingIndex=void 0,this.applyFocus(n,t,i,e))}unregisterFocusable(t,e){const i=this.containers.get(t);i&&i.focusables.delete(e)}navigate(t,e){const i=this.containers.get(t);if(!i||i.element&&St(i.element))return;const n=i.currentIndex(),s=Array.from(i.focusables.keys()).sort((a,h)=>a-h);if(s.length===0)return;let r=null;if(n===null)r=e==="next"?s[0]:s[s.length-1];else{const a=s.indexOf(n);e==="next"?a<s.length-1?r=s[a+1]:r=s[0]:a>0?r=s[a-1]:r=s[s.length-1]}if(r!==null){const a=i.tabindex;_(a)&&typeof a.set=="function"?a.set(r):this.setIndex(t,r)}}setIndex(t,e){const i=this.containers.get(t);if(!i)return;const n=i.focusables.get(e);if(!n){i.pendingIndex=e;return}this.applyFocus(i,t,e,n)}applyFocus(t,e,i,n){t.currentIndex.set(i),t.focusedElement.set(n);const s=t.tabindex;_(s)&&s()!==i&&typeof s.set=="function"&&s.set(i),t.onFocusChange&&t.onFocusChange(i,n);const r=n.componentInstance;if(r&&r.element&&typeof r.element.focus=="function"){const a=r.element;a.focus(),typeof a.scrollIntoView=="function"&&a.scrollIntoView({block:"center",behavior:"smooth"})}if(t.autoScroll){const a=t.viewport;if(a){const h=typeof t.autoScroll=="boolean"?{center:!0}:t.autoScroll;this.scrollToElement(e,i,a,h)}}}getElement(t,e){const i=this.containers.get(t);return i&&i.focusables.get(e)||null}getCurrentIndexSignal(t){const e=this.containers.get(t);return e?e.currentIndex:null}getFocusedElementSignal(t){const e=this.containers.get(t);return e?e.focusedElement:null}isElementVisible(t,e){if(!e)return!0;const i=this.getElementBounds(t),n=e.getVisibleBounds();return i.x<n.right&&i.x+i.width>n.left&&i.y<n.bottom&&i.y+i.height>n.top}getElementBounds(t){const e=t.componentInstance;if(!e)return{x:0,y:0,width:0,height:0};const i=e.getLocalBounds?.();if(!i)return{x:0,y:0,width:0,height:0};const n=e.getGlobalPosition?.();return n?{x:n.x,y:n.y,width:i.width,height:i.height}:{x:0,y:0,width:0,height:0}}scrollToElement(t,e,i,n={}){const s=this.containers.get(t);if(!s)return;const r=s.focusables.get(e);if(!r)return;const a=i||s.viewport;if(!a)return;const h=this.getElementBounds(r);a.getVisibleBounds();const c=n.padding||0,u=n.center!==!1,o=n.smooth||!1,l=n.duration||300;if(this.isElementVisible(r,a)){if(u){const g=h.x+h.width/2,I=h.y+h.height/2;o?this.animateScroll(t,a,g,I,l):a.moveCenter(g,I)}return}if(u){const g=h.x+h.width/2,I=h.y+h.height/2;o?this.animateScroll(t,a,g,I,l):a.moveCenter(g,I)}else{const g=h.x-c,I=h.y-c,B=h.width+c*2,C=h.height+c*2;if(o){const E=h.x+h.width/2,y=h.y+h.height/2;this.animateScroll(t,a,E,y,l)}else a.fit(g,I,B,C,c)}}animateScroll(t,e,i,n,s){const r=e.center,a=r.x,h=r.y,c={startTime:Date.now(),startX:a,startY:h,targetX:i,targetY:n,duration:s};this.scrollAnimations.set(t,c);const u=()=>{const o=this.scrollAnimations.get(t);if(!o)return;const l=Date.now()-o.startTime,g=Math.min(l/o.duration,1),I=1-Math.pow(1-g,3),B=o.startX+(o.targetX-o.startX)*I,C=o.startY+(o.targetY-o.startY)*I;e.moveCenter(B,C),g<1?requestAnimationFrame(u):this.scrollAnimations.delete(t)};requestAnimationFrame(u)}};ue.instance=null;let FA=ue;const mt=FA.getInstance();class yc extends Bt{constructor(){super(...arguments),this.element=null,this.controlsDirective=null,this.controlsSubscription=null}onInit(t){this.element=t}onMount(t){if(this.controlsDirective=t.directives?.controls,!this.controlsDirective){const i=gi(t,"controls");i&&(t.directives||(t.directives={}),t.directives.controls=i,this.controlsDirective=i)}const e=t.props.controls;if(e){const i=_(e)?e():e;i&&this.controlsDirective?.onUpdate({controls:i},t)}_(e)&&(this.controlsSubscription=e.observable.subscribe(i=>{i&&this.controlsDirective?.onUpdate({controls:i},t)}))}onUpdate(t,e){if(t.controls!==void 0){const i=_(t.controls)?t.controls():t.controls;i&&this.controlsDirective?.onUpdate({controls:i},e)}}onDestroy(t){this.controlsSubscription&&(this.controlsSubscription.unsubscribe(),this.controlsSubscription=null),this.element=null,this.controlsDirective=null}}Et("focusNavigation",yc);class mc{constructor(){this.containerId="",this.currentIndexSignal=null,this.focusedElementSignal=null,this.registeredFocusables=new Set}onInit(t){this.containerId=`focus-container-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;const e=Y(null),i=Y(null);this.currentIndexSignal=e,this.focusedElementSignal=i;const n=t.viewport||t.context?.viewport;mt.registerContainer(this.containerId,{focusables:new Map,currentIndex:e,focusedElement:i,onFocusChange:t.onFocusChange,autoScroll:t.autoScroll,viewport:n})}async onMount(t){if(mt.updateContainer(this.containerId,{element:t}),t.props.controls){const e=gi(t,"focusNavigation");e&&!t.directives&&(t.directives={}),e&&(t.directives.focusNavigation=e,e.onInit(t),e.onMount(t))}if(t.allElements){const e=t.allElements.subscribe(()=>{this.registerChildren(t)});t.effectSubscriptions||(t.effectSubscriptions=[]),t.effectSubscriptions.push(e)}mt.setTabindex(this.containerId,t.propObservables?.tabindex),setTimeout(()=>{this.registerChildren(t)},0)}onUpdate(t){const e=t.viewport||t.context?.viewport;mt.updateContainer(this.containerId,{viewport:e,autoScroll:t.autoScroll,onFocusChange:t.onFocusChange})}async onDestroy(t,e){for(const i of this.registeredFocusables)mt.unregisterFocusable(this.containerId,i);this.registeredFocusables.clear(),mt.unregisterContainer(this.containerId),e&&e()}registerChildren(t){if(!t.props.children)return;const e=n=>{for(const s of n)if(s){if(_(s)||s&&typeof s.subscribe=="function"){(_(s)?s.observable:s).subscribe(r=>{if(r&&typeof r=="object"&&"elements"in r){const a=r.elements||[];Array.isArray(a)&&e(a)}else Array.isArray(r)?e(r):r&&i(r)});continue}if(Array.isArray(s)){e(s);continue}i(s)}},i=n=>{if(!n||!n.componentInstance||(n.tag==="Navigation"||n.tag==="FocusContainer")&&n!==t)return;let s;if(n.props?.attrs?.tabindex!==void 0){const r=n.props.attrs.tabindex;s=_(r)?r():r}else if(n.props?.tabindex!==void 0){const r=n.props.tabindex;s=_(r)?r():r}if(s!==void 0&&s>=0&&(this.registeredFocusables.has(s)||(mt.registerFocusable(this.containerId,n,s),this.registeredFocusables.add(s))),n.props&&n.props.children)if(Array.isArray(n.props.children))e(n.props.children);else if(_(n.props.children)||n.props.children&&typeof n.props.children.subscribe=="function"){const r=(_(n.props.children)?n.props.children.observable:n.props.children).subscribe(a=>{if(a&&typeof a=="object"&&"elements"in a){const h=a.elements||[];Array.isArray(h)&&e(h)}else Array.isArray(a)?e(a):a&&i(a)});n.effectSubscriptions&&n.effectSubscriptions.push(r)}else i(n.props.children)};if(Array.isArray(t.props.children))e(t.props.children);else if(t.props.children)if(_(t.props.children)||t.props.children&&typeof t.props.children.subscribe=="function"){const n=(_(t.props.children)?t.props.children.observable:t.props.children).subscribe(s=>{if(s&&typeof s=="object"&&"elements"in s){const r=s.elements||[];Array.isArray(r)&&e(r)}else Array.isArray(s)?e(s):s&&i(s)});t.effectSubscriptions||(t.effectSubscriptions=[]),t.effectSubscriptions.push(n)}else i(t.props.children)}getContainerId(){return this.containerId}getCurrentIndexSignal(){return this.currentIndexSignal}getFocusedElementSignal(){return this.focusedElementSignal}}st("Navigation",mc);const Lo=A=>ot("Navigation",A),wc=Lo,vc=async(A,t,e)=>{const{components:i,autoRegister:n,enableLayout:s,...r}=e??{};s!==!1&&await Promise.resolve().then(()=>Eg),i?(n!==!1&&Fi(),Object.entries(i).forEach(([u,o])=>{st(u,o)})):Fi();const a=new D.Application;await a.init({resizeTo:A,autoStart:!1,antialias:!0,...r});const h=await gt(t);if(h.tag!="Canvas")throw new Error("Canvas is required");h.render(A,a);const{backgroundColor:c}=Qt(h.props,{backgroundColor:"black"});return a.renderer.background.color=c(),{canvasElement:h,app:a}};function Dc(A){return mt.getCurrentIndexSignal(A)}function bc(A){return mt.getFocusedElementSignal(A)}function Sc(A,t){const e=mt.getCurrentIndexSignal(A),i=mt.getFocusedElementSignal(A);if(!e||!i)return console.warn(`FocusContainer with id "${A}" not found`),()=>{};const n=it(()=>{const s=e(),r=i();t(s,r)});return()=>{n.subscription?.unsubscribe()}}const xc={linear:Ql,easeIn:Di,easeInOut:Zs,easeOut:pl,circIn:zs,circInOut:yl,circOut:$s,backIn:bi,backInOut:wl,backOut:ml,anticipate:vl,bounceIn:xl,bounceInOut:kl,bounceOut:yA};class kc{constructor(t,e,i,n,s,r,a=0){this.x0=t,this.y0=e,this.x1=i,this.y1=n,this.x2=s,this.y2=r,this.focalPoint=a,this.gradient=null,this.texture=null,this.size=600,this.size=t;const h=this.size*.5;this.canvas=D.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-a),h,0,h,h,h-.5))}addColorStop(t,e){this.gradient&&this.gradient.addColorStop(t,e)}render({translate:t}={}){const{x0:e,y0:i,x1:n,y1:s,x2:r,y2:a,focalPoint:h}=this,c=this.size;if(this.ctx&&this.gradient){this.ctx.fillStyle=this.gradient,this.ctx.fillRect(0,0,c,c),this.texture=new D.Texture({source:new D.ImageSource({resource:this.canvas,addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"})});const u=new D.Matrix,o=Math.sqrt((n-e)*(n-e)+(s-i)*(s-i)),l=Math.sqrt((r-e)*(r-e)+(a-i)*(a-i)),g=Math.atan2(s-i,n-e),I=o/c,B=l/c;u.rotate(-g),u.scale(I,B),t&&u.translate(t.x,t.y),this.transform=u}return{texture:this.texture,matrix:this.transform}}}function Mc(A){if("count"in A){const i=A.count();if(!Number.isFinite(i)||i<=0)return null;const n=A.min??0,s=n+i-1;return{min:n,max:s,size:i}}const t=A.min,e=A.max;return!Number.isFinite(t)||!Number.isFinite(e)||e<t?null:{min:t,max:e,size:e-t+1}}function Rc(A,t,e,i){if(i==="clamp")return Math.min(e.max,Math.max(e.min,A));if(i==="none")return A<e.min||A>e.max?t:A;const n=e.size;if(n<=0)return t;const r=((A-e.min)%n+n)%n;return e.min+r}function Fc(A,t,e="wrap"){const i=n=>{const s=A(),r=Mc(t);if(!r)return;const a=Rc(n,s,r,e);a!==s&&A.set(a)};return{next:n=>i(A()+n),set:n=>i(n)}}var _c=(()=>{var A=qA&&qA.tagName.toUpperCase()==="SCRIPT"&&qA.src||new URL("index.global.js",document.baseURI).href;return(function(t){t=t||{};var e;e||(e=typeof t<"u"?t:{});var i,n;e.ready=new Promise(function(f,d){i=f,n=d});var s=Object.assign({},e),r="";typeof document<"u"&&document.currentScript&&(r=document.currentScript.src),A&&(r=A),r.indexOf("blob:")!==0?r=r.substr(0,r.replace(/[?#].*/,"").lastIndexOf("/")+1):r="";var a=e.print||console.log.bind(console),h=e.printErr||console.warn.bind(console);Object.assign(e,s),s=null;var c;e.wasmBinary&&(c=e.wasmBinary),e.noExitRuntime,typeof WebAssembly!="object"&&tt("no native wasm support detected");var u,o=!1;function l(f,d,Q){Q=d+Q;for(var p="";!(d>=Q);){var m=f[d++];if(!m)break;if(m&128){var v=f[d++]&63;if((m&224)==192)p+=String.fromCharCode((m&31)<<6|v);else{var S=f[d++]&63;m=(m&240)==224?(m&15)<<12|v<<6|S:(m&7)<<18|v<<12|S<<6|f[d++]&63,65536>m?p+=String.fromCharCode(m):(m-=65536,p+=String.fromCharCode(55296|m>>10,56320|m&1023))}}else p+=String.fromCharCode(m)}return p}var g,I,B,C,E,y,w,b,M;function N(){var f=u.buffer;g=f,e.HEAP8=I=new Int8Array(f),e.HEAP16=C=new Int16Array(f),e.HEAP32=y=new Int32Array(f),e.HEAPU8=B=new Uint8Array(f),e.HEAPU16=E=new Uint16Array(f),e.HEAPU32=w=new Uint32Array(f),e.HEAPF32=b=new Float32Array(f),e.HEAPF64=M=new Float64Array(f)}var O,K=[],H=[],T=[];function W(){var f=e.preRun.shift();K.unshift(f)}var At=0,rt=null;function tt(f){throw e.onAbort&&e.onAbort(f),f="Aborted("+f+")",h(f),o=!0,f=new WebAssembly.RuntimeError(f+". Build with -sASSERTIONS for more info."),n(f),f}function ut(f){return f.startsWith("data:application/octet-stream;base64,")}var ft;if(ft="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/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhAWUAEQFhAWYAIAFhAWcAAAFhAWgAI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AAgAToAACAAIAJqIgNBAWsgAToAACACQQNJDQAgACABOgACIAAgAToAASADQQNrIAE6AAAgA0ECayABOgAAIAJBB0kNACAAIAE6AAMgA0EEayABOgAAIAJBCUkNACAAQQAgAGtBA3EiBGoiAyABQf8BcUGBgoQIbCIBNgIAIAMgAiAEa0F8cSIEaiICQQRrIAE2AgAgBEEJSQ0AIAMgATYCCCADIAE2AgQgAkEIayABNgIAIAJBDGsgATYCACAEQRlJDQAgAyABNgIYIAMgATYCFCADIAE2AhAgAyABNgIMIAJBEGsgATYCACACQRRrIAE2AgAgAkEYayABNgIAIAJBHGsgATYCACAEIANBBHFBGHIiBGsiAkEgSQ0AIAGtQoGAgIAQfiEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkEgayICQR9LDQALCyAAC4AEAQN/IAJBgARPBEAgACABIAIQFyAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEB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gIUIABFDQAgABAjIAYoAhAhAwsgBiADQQFqNgIQIAYoAgwgA0EDdkH8////AXFqIgAgACgCAEF+IAN3cTYCACABLwAAIQMLIANBB3EgC0EEdHJBCHIhAwsgASADOwAAIAhBEGokAAuPAQIBfwF9IwBBEGsiAyQAIANBCGogAEHoAGogAEHUAEHWACABQf4BcUECRhtqLwEAIgEgAC8BWCABQQdxGxAfQwAAwH8hBAJAAkACQCADLQAMQQFrDgIAAQILIAMqAgghBAwBCyADKgIIIAKUQwrXIzyUIQQLIANBEGokACAEQwAAAACXQwAAAAAgBCAEWxsL2AICBH8BfSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgACABIAFBMGoQQg8LECQACyAAIAEgAUEwaiADEEULcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QdwlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwt5AgF/AX0jAEEQayIDJAAgA0EIaiAAIAFBAnRB7CVqKAIAIAIQU0MAAMB/IQQCQAJAAkAgAy0ADEEBaw4CAAECCyADKgIIIQQMAQsgAyoCCEMAAAAAlEMK1yM8lCEECyADQRBqJAAgBEMAAAAAl0MAAAAAIAQgBFsbC1QAAkACQAJAAkACQCACDgQEAAECAwsgACABIAFBwgBqEEMPCyAAIAEgAUHCAGogAxBEDwsgACABIAFBwgBqEEIPCxAkAAsgACABIAFBwgBqIAMQRQsvACAAIAJFQQF0IgIgASADEGAgACACIAEQS5IgACACIAEgAxB/IAAgAiABEFKSkgvOAQIDfwJ9IwBBEGsiAyQAQQEhBCADQQhqIABB/ABqIgUgACABQQF0akH2AGoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALzgECA38CfSMAQRBrIgMkAEEBIQQgA0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AAgAUEBdGpBMmoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALDwAgASAAKAIAaiACOQMACw0AIAEgACgCAGorAwALCwAgAARAIAAQIwsLxwECBH8CfSMAQRBrIgIkACACQQhqIABB/ABqIgQgAEEeaiIFLwEAEB9BASEDAkACQCACKgIIIgcgASoCACIGXARAIAcgB1sEQCABLQAEIQEMAgsgBiAGXCEDCyABLQAEIQEgA0UNACACLQAMIAFB/wFxRg0BCyAEIAUgBiABEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyACQRBqJAALlgMCA34CfyAAvSICQjSIp0H/D3EiBEH/D0YEQCAARAAAAAAAAPA/oiIAIACjDwsgAkIBhiIBQoCAgICAgIDw/wBYBEAgAEQAAAAAAAAAAKIgACABQoCAgICAgIDw/wBRGw8LAn4gBEUEQEEAIQQgAkIMhiIBQgBZBEADQCAEQQFrIQQgAUIBhiIBQgBZDQALCyACQQEgBGuthgwBCyACQv////////8Hg0KAgICAgICACIQLIQEgBEH/B0oEQANAAkAgAUKAgICAgICACH0iA0IAUw0AIAMiAUIAUg0AIABEAAAAAAAAAACiDwsgAUIBhiEBIARBAWsiBEH/B0oNAAtB/wchBAsCQCABQoCAgICAgIAIfSIDQgBTDQAgAyIBQgBSDQAgAEQAAAAAAAAAAKIPCyABQv////////8HWARAA0AgBEEBayEEIAFCgICAgICAgARUIQUgAUIBhiEBIAUNAAsLIAJCgICAgICAgICAf4MgAUKAgICAgICACH0gBK1CNIaEIAFBASAEa62IIARBAEobhL8LiwEBA38DQCAAQQR0IgFB5DJqIAFB4DJqIgI2AgAgA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GBSAGIAEqAswDkgs4ApwDCyAJQRBqJAALcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QewlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwscACAAIAFBCCACpyACQiCIpyADpyADQiCIpxAVCwUAEFgACzkAIABFBEBBAA8LAn8gAUGAf3FBgL8DRiABQf8ATXJFBEBB/DtBGTYCAEF/DAELIAAgAToAAEEBCwvEAgACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABQQlrDhIACgsMCgsCAwQFDAsMDAoLBwgJCyACIAIoAgAiAUEEajYCACAAIAEoAgA2AgAPCwALIAIgAigCACIBQQRqNgIAIAAgATIBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIANBEGokAAtdAQR/IAAoAgAhAgNAIAIsAAAiAxBXBEBBfyEEIAAgAkEBaiICNgIAIAFBzJmz5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsF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ANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgQhASAAQQA2AgQgAQRAIAEgASgCACgCBBEAAAsgBkEgaiQAIAAQIwsLtQEBAX8jAEEQayICJAACfyABBEAgASgCACEBQYgEEB4gARBcIAENARogAkH3GTYCACACEHIQJAALQZQ7LQAARQRAQfg6QQM2AgBBiDtCgICAgICAgMA/NwIAQYA7QgA3AgBBlDtBAToAAEH8OkH8Oi0AAEH+AXE6AABB9DpBADYCAEGQO0EANgIAC0GIBBAeQfQ6EFwLIQEgAEIANwIEIAAgATYCACABIAA2AgQgAkEQaiQAIAALGwEBfyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2AiwCQCABvSIZQgBTBEBBASERQZkJIRMgAZoiAb0hGQwBCyAEQYAQcQRAQQEhEUGcCSETDAELQZ8JQZoJIARBAXEiERshEyARRSEVCwJAIBlCgICAgICAgPj/AINCgICAgICAgPj/AFEEQCAAQSAgAiARQQNqIgMgBEH//3txECkgACATIBEQJiAAQe0VQdweIAVBIHEiBRtB4RpB4B4gBRsgASABYhtBAxAmIABBICACIAMgBEGAwABzECkgAyACIAIgA0gbIQoMAQsgDEEQaiESAkACfwJAIAEgDEEsahCMASIBIAGgIgFEAAAAAAAAAABiBEAgDCAMKAIsIgZBAWs2AiwgBUEgciIOQeEARw0BDAMLIAVBIHIiDkHhAEYNAiAMKAIsIQlBBiADIANBAEgbDAELIAwgBkEdayIJNgIsIAFEAAAAAAAAsEGiIQFBBiADIANBAEgbCyELIAxBMGpBoAJBACAJQQBOG2oiDSEHA0AgBwJ/IAFEAAAAAAAA8EFjIAFEAAAAAAAAAABmcQRAIAGrDAELQQALIgM2AgAgB0EEa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wA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBArGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQIwsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQeAmNgIAIAELBQBBpDsLaQECfyMAQRBrIgYkACABIAAoAgQiB0EBdWohASAAKAIAIQAgBiABIAIgAyAEIAUgB0EBcQR/IAEoAgAgAGooAgAFIAALERAAQRAQHiIAIAYpAwg3AwggACAGKQMANwMAIAZBEGokACAACwUAQaA7Cx0AIAAoAgAiACAALQAAQfcBcUEIQQAgARtyOgAAC6oBAgJ/AX0jAEEQayIC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ekEHcUUNAgsgCCAAECAiCiAHIAUvAHoQICILWw0BIAogClsNACALIAtcDQELIAFBFGogBUEUakHoABArGiABQfwAaiAFQfwAahCgAQNAIAEtAAAiAEEEcQ0BIAEgAEEEcjoAACABKAIQIgAEQCABIAARAAALIAFBgICA/gc2ApwBIAEoAuQDIgENAAsLIAJBEGokAAvGAwEEfyMAQaAEayICJAAgACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALAkAgACgCACIAKALoAyAAKALsA0YEQCAAKALkAw0BIAAgAkEYaiAAKAL0AxBcIgEpAgA3AgAgACABKAIQNgIQIAAgASkCCDcCCCAAQRRqIAFBFGpB6AAQKxogACABKQKMATcCjAEgACABKQKEATcChAEgACABKQJ8NwJ8IAEoApQBIQQgAUEANgKUASAAKAKUASEDIAAgBDYClAEgAwRAIAMQWwsgAEGYAWogAUGYAWpB0AIQKxogACgC6AMiAwRAIAAgAzYC7AMgAxAjCyAAIAEoAugDNgLoAyAAIAEoAuwDNgLsAyAAIAEoAvADNgLwAyABQQA2AvADIAFCADcC6AMgACABKQL8AzcC/AMgACABKQL0AzcC9AMgACABKAKEBDYChAQgASgClAEhACABQQA2ApQBIAAEQCAAEFsLIAJBoARqJAAPCyACQfAcNgIQIABBBUHYJSACQRBqECwQJAALIAJB5hE2AgAgAEEFQdglIAIQLBAkAAsLAEEMEB4gABCiAQsLAEEMEB5BABCiAQsNACAAKAIALQAIQQFxCwoAIAAoAgAoAhQLGQAgAUH/AXEEQBACAAsgACgCACgCEEEBcQsYACAAKAIAIgAgAC0ACEH+AXEgAXI6AAgLJgAgASAAKAIAIgAoAhRHBEAgACABNgIUIAAgACgCDEEBajYCDAsLkgEBAn8jAEEQayICJAAgACgCACEAIAFDAAAAAGAEQCABIAAqAhhcBEAgACABOAIYIAAgACgCDEEBajYCDAsgAkEQaiQADwsgAkGIFDYCACMAQRBrIgMkACADIAI2AgwCQCAARQRAQbgw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AAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!ut(ft)){var Jt=ft;ft=e.locateFile?e.locateFile(Jt,r):r+Jt}function Tt(){var f=ft;try{if(f==ft&&c)return new Uint8Array(c);if(ut(f))try{var d=Ug(f.slice(37)),Q=new Uint8Array(d.length);for(f=0;f<d.length;++f)Q[f]=d.charCodeAt(f);var p=Q}catch{throw Error("Converting base64 string to bytes failed.")}else p=void 0;var m=p;if(m)return m;throw"both async and sync fetching of the wasm failed"}catch(v){tt(v)}}function ct(){return c||typeof fetch!="function"?Promise.resolve().then(function(){return Tt()}):fetch(ft,{credentials:"same-origin"}).then(function(f){if(!f.ok)throw"failed to load wasm binary file at '"+ft+"'";return f.arrayBuffer()}).catch(function(){return Tt()})}function Dn(f){for(;0<f.length;)f.shift()(e)}function fr(f){if(f===void 0)return"_unknown";f=f.replace(/[^a-zA-Z0-9_]/g,"$");var d=f.charCodeAt(0);return 48<=d&&57>=d?"_"+f:f}function bn(f,d){return f=fr(f),function(){return d.apply(this,arguments)}}var Mt=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Sn=[];function LA(f){var d=Error,Q=bn(f,function(p){this.name=f,this.message=p,p=Error(p).stack,p!==void 0&&(this.stack=this.toString()+`
4
- `+p.replace(/^Error(:[^\n]*)?\n/,""))});return Q.prototype=Object.create(d.prototype),Q.prototype.constructor=Q,Q.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},Q}var _e=void 0;function P(f){throw new _e(f)}var nA=f=>(f||P("Cannot use deleted val. handle = "+f),Mt[f].value),UA=f=>{switch(f){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=Sn.length?Sn.pop():Mt.length;return Mt[d]={ga:1,value:f},d}},Ir=void 0,dr=void 0;function at(f){for(var d="";B[f];)d+=dr[B[f++]];return d}var sA=[];function xn(){for(;sA.length;){var f=sA.pop();f.M.$=!1,f.delete()}}var oA=void 0,Kt={};function kn(f,d){for(d===void 0&&P("ptr should not be undefined");f.R;)d=f.ba(d),f=f.R;return d}var fe={};function Br(f){f=br(f);var d=at(f);return Vt(f),d}function Er(f,d){var Q=fe[f];return Q===void 0&&P(d+" has unknown type "+Br(f)),Q}function TA(){}var Mn=!1;function Cr(f){--f.count.value,f.count.value===0&&(f.T?f.U.W(f.T):f.P.N.W(f.O))}function Qr(f,d,Q){return d===Q?f:Q.R===void 0?null:(f=Qr(f,d,Q.R),f===null?null:Q.na(f))}var pr={};function Cg(f,d){return d=kn(f,d),Kt[d]}var yr=void 0;function OA(f){throw new yr(f)}function PA(f,d){return d.P&&d.O||OA("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&OA("Both smartPtrType and smartPtr must be specified"),d.count={value:1},Ne(Object.create(f,{M:{value:d}}))}function Ne(f){return typeof FinalizationRegistry>"u"?(Ne=d=>d,f):(Mn=new FinalizationRegistry(d=>{Cr(d.M)}),Ne=d=>{var Q=d.M;return Q.T&&Mn.register(d,{M:Q},d),d},TA=d=>{Mn.unregister(d)},Ne(f))}var JA={};function Rn(f){for(;f.length;){var d=f.pop();f.pop()(d)}}function rA(f){return this.fromWireType(y[f>>2])}var Ge={},KA={};function ee(f,d,Q){function p(k){k=Q(k),k.length!==f.length&&OA("Mismatched type converter count");for(var F=0;F<f.length;++F)Yt(f[F],k[F])}f.forEach(function(k){KA[k]=d});var m=Array(d.length),v=[],S=0;d.forEach((k,F)=>{fe.hasOwnProperty(k)?m[F]=fe[k]:(v.push(k),Ge.hasOwnProperty(k)||(Ge[k]=[]),Ge[k].push(()=>{m[F]=fe[k],++S,S===v.length&&p(m)}))}),v.length===0&&p(m)}function Fn(f){switch(f){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+f)}}function Yt(f,d,Q={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var p=d.name;if(f||P('type "'+p+'" must have a positive integer typeid pointer'),fe.hasOwnProperty(f)){if(Q.ua)return;P("Cannot register type '"+p+"' twice")}fe[f]=d,delete KA[f],Ge.hasOwnProperty(f)&&(d=Ge[f],delete Ge[f],d.forEach(m=>m()))}function _n(f){P(f.M.P.N.name+" instance already deleted")}function Ae(){}function Nn(f,d,Q){if(f[d].S===void 0){var p=f[d];f[d]=function(){return f[d].S.hasOwnProperty(arguments.length)||P("Function '"+Q+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+f[d].S+")!"),f[d].S[arguments.length].apply(this,arguments)},f[d].S=[],f[d].S[p.Z]=p}}function Qg(f,d){e.hasOwnProperty(f)?(P("Cannot register public name '"+f+"' twice"),Nn(e,f,f),e.hasOwnProperty(void 0)&&P("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),e[f].S[void 0]=d):e[f]=d}function pg(f,d,Q,p,m,v,S,k){this.name=f,this.constructor=d,this.X=Q,this.W=p,this.R=m,this.pa=v,this.ba=S,this.na=k,this.ja=[]}function Gn(f,d,Q){for(;d!==Q;)d.ba||P("Expected null or instance of "+Q.name+", got an instance of "+d.name),f=d.ba(f),d=d.R;return f}function yg(f,d){return d===null?(this.ea&&P("null is not a valid "+this.name),0):(d.M||P('Cannot pass "'+Tn(d)+'" as a '+this.name),d.M.O||P("Cannot pass deleted object as a pointer of type "+this.name),Gn(d.M.O,d.M.P.N,this.N))}function mg(f,d){if(d===null){if(this.ea&&P("null is not a valid "+this.name),this.da){var Q=this.fa();return f!==null&&f.push(this.W,Q),Q}return 0}if(d.M||P('Cannot pass "'+Tn(d)+'" as a '+this.name),d.M.O||P("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&P("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),Q=Gn(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&P("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?Q=d.M.T:P("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:Q=d.M.T;break;case 2:if(d.M.U===this)Q=d.M.T;else{var p=d.clone();Q=this.xa(Q,UA(function(){p.delete()})),f!==null&&f.push(this.W,Q)}break;default:P("Unsupporting sharing policy")}return Q}function wg(f,d){return d===null?(this.ea&&P("null is not a valid "+this.name),0):(d.M||P('Cannot pass "'+Tn(d)+'" as a '+this.name),d.M.O||P("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&P("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),Gn(d.M.O,d.M.P.N,this.N))}function Wt(f,d,Q,p){this.name=f,this.N=d,this.ea=Q,this.ca=p,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,d.R!==void 0?this.toWireType=mg:(this.toWireType=p?yg:wg,this.V=null)}function vg(f,d){e.hasOwnProperty(f)||OA("Replacing nonexistant public symbol"),e[f]=d,e[f].Z=void 0}function Dg(f,d){var Q=[];return function(){if(Q.length=0,Object.assign(Q,arguments),f.includes("j")){var p=e["dynCall_"+f];p=Q&&Q.length?p.apply(null,[d].concat(Q)):p.call(null,d)}else p=O.get(d).apply(null,Q);return p}}function Rt(f,d){f=at(f);var Q=f.includes("j")?Dg(f,d):O.get(d);return typeof Q!="function"&&P("unknown function pointer with signature "+f+": "+d),Q}var mr=void 0;function YA(f,d){function Q(v){m[v]||fe[v]||(KA[v]?KA[v].forEach(Q):(p.push(v),m[v]=!0))}var p=[],m={};throw d.forEach(Q),new mr(f+": "+p.map(Br).join([", "]))}function Hn(f,d,Q,p,m){var v=d.length;2>v&&P("argTypes array size mismatch! Must at least get return value and 'this' types!");var S=d[1]!==null&&Q!==null,k=!1;for(Q=1;Q<d.length;++Q)if(d[Q]!==null&&d[Q].V===void 0){k=!0;break}var F=d[0].name!=="void",R=v-2,G=Array(R),L=[],J=[];return function(){if(arguments.length!==R&&P("function "+f+" called with "+arguments.length+" arguments, expected "+R+" args!"),J.length=0,L.length=S?2:1,L[0]=m,S){var nt=d[1].toWireType(J,this);L[1]=nt}for(var j=0;j<R;++j)G[j]=d[j+2].toWireType(J,arguments[j]),L.push(G[j]);if(j=p.apply(null,L),k)Rn(J);else for(var It=S?1:2;It<d.length;It++){var Ft=It===1?nt:G[It-2];d[It].V!==null&&d[It].V(Ft)}return nt=F?d[0].fromWireType(j):void 0,nt}}function Ln(f,d){for(var Q=[],p=0;p<f;p++)Q.push(w[d+4*p>>2]);return Q}function Un(f){4<f&&--Mt[f].ga===0&&(Mt[f]=void 0,Sn.push(f))}function Tn(f){if(f===null)return"null";var d=typeof f;return d==="object"||d==="array"||d==="function"?f.toString():""+f}function bg(f,d){switch(d){case 2:return function(Q){return this.fromWireType(b[Q>>2])};case 3:return function(Q){return this.fromWireType(M[Q>>3])};default:throw new TypeError("Unknown float type: "+f)}}function Sg(f,d,Q){switch(d){case 0:return Q?function(p){return I[p]}:function(p){return B[p]};case 1:return Q?function(p){return C[p>>1]}:function(p){return E[p>>1]};case 2:return Q?function(p){return y[p>>2]}:function(p){return w[p>>2]};default:throw new TypeError("Unknown integer type: "+f)}}function xg(f,d){for(var Q="",p=0;!(p>=d/2);++p){var m=C[f+2*p>>1];if(m==0)break;Q+=String.fromCharCode(m)}return Q}function kg(f,d,Q){if(Q===void 0&&(Q=2147483647),2>Q)return 0;Q-=2;var p=d;Q=Q<2*f.length?Q/2:f.length;for(var m=0;m<Q;++m)C[d>>1]=f.charCodeAt(m),d+=2;return C[d>>1]=0,d-p}function Mg(f){return 2*f.length}function Rg(f,d){for(var Q=0,p="";!(Q>=d/4);){var m=y[f+4*Q>>2];if(m==0)break;++Q,65536<=m?(m-=65536,p+=String.fromCharCode(55296|m>>10,56320|m&1023)):p+=String.fromCharCode(m)}return p}function Fg(f,d,Q){if(Q===void 0&&(Q=2147483647),4>Q)return 0;var p=d;Q=p+Q-4;for(var m=0;m<f.length;++m){var v=f.charCodeAt(m);if(55296<=v&&57343>=v){var S=f.charCodeAt(++m);v=65536+((v&1023)<<10)|S&1023}if(y[d>>2]=v,d+=4,d+4>Q)break}return y[d>>2]=0,d-p}function _g(f){for(var d=0,Q=0;Q<f.length;++Q){var p=f.charCodeAt(Q);55296<=p&&57343>=p&&++Q,d+=4}return d}var Ng={};function wr(f){var d=Ng[f];return d===void 0?at(f):d}var WA=[];function Gg(f){var d=WA.length;return WA.push(f),d}function Hg(f,d){for(var Q=Array(f),p=0;p<f;++p)Q[p]=Er(w[d+4*p>>2],"parameter "+p);return Q}var vr=[],Lg=[null,[],[]];_e=e.BindingError=LA("BindingError"),e.count_emval_handles=function(){for(var f=0,d=5;d<Mt.length;++d)Mt[d]!==void 0&&++f;return f},e.get_first_emval=function(){for(var f=5;f<Mt.length;++f)if(Mt[f]!==void 0)return Mt[f];return null},Ir=e.PureVirtualError=LA("PureVirtualError");for(var Dr=Array(256),VA=0;256>VA;++VA)Dr[VA]=String.fromCharCode(VA);dr=Dr,e.getInheritedInstanceCount=function(){return Object.keys(Kt).length},e.getLiveInheritedInstances=function(){var f=[],d;for(d in Kt)Kt.hasOwnProperty(d)&&f.push(Kt[d]);return f},e.flushPendingDeletes=xn,e.setDelayFunction=function(f){oA=f,sA.length&&oA&&oA(xn)},yr=e.InternalError=LA("InternalError"),Ae.prototype.isAliasOf=function(f){if(!(this instanceof Ae&&f instanceof Ae))return!1;var d=this.M.P.N,Q=this.M.O,p=f.M.P.N;for(f=f.M.O;d.R;)Q=d.ba(Q),d=d.R;for(;p.R;)f=p.ba(f),p=p.R;return d===p&&Q===f},Ae.prototype.clone=function(){if(this.M.O||_n(this),this.M.aa)return this.M.count.value+=1,this;var f=Ne,d=Object,Q=d.create,p=Object.getPrototypeOf(this),m=this.M;return f=f(Q.call(d,p,{M:{value:{count:m.count,$:m.$,aa:m.aa,O:m.O,P:m.P,T:m.T,U:m.U}}})),f.M.count.value+=1,f.M.$=!1,f},Ae.prototype.delete=function(){this.M.O||_n(this),this.M.$&&!this.M.aa&&P("Object already scheduled for deletion"),TA(this),Cr(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Ae.prototype.isDeleted=function(){return!this.M.O},Ae.prototype.deleteLater=function(){return this.M.O||_n(this),this.M.$&&!this.M.aa&&P("Object already scheduled for deletion"),sA.push(this),sA.length===1&&oA&&oA(xn),this.M.$=!0,this},Wt.prototype.qa=function(f){return this.ka&&(f=this.ka(f)),f},Wt.prototype.ha=function(f){this.W&&this.W(f)},Wt.prototype.argPackAdvance=8,Wt.prototype.readValueFromPointer=rA,Wt.prototype.deleteObject=function(f){f!==null&&f.delete()},Wt.prototype.fromWireType=function(f){function d(){return this.da?PA(this.N.X,{P:this.wa,O:Q,U:this,T:f}):PA(this.N.X,{P:this,O:f})}var Q=this.qa(f);if(!Q)return this.ha(f),null;var p=Cg(this.N,Q);if(p!==void 0)return p.M.count.value===0?(p.M.O=Q,p.M.T=f,p.clone()):(p=p.clone(),this.ha(f),p);if(p=this.N.pa(Q),p=pr[p],!p)return d.call(this);p=this.ca?p.la:p.pointerType;var m=Qr(Q,this.N,p.N);return m===null?d.call(this):this.da?PA(p.N.X,{P:p,O:m,U:this,T:f}):PA(p.N.X,{P:p,O:m})},mr=e.UnboundTypeError=LA("UnboundTypeError");var Ug=typeof atob=="function"?atob:function(f){var d="",Q=0;f=f.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f.charAt(Q++)),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f.charAt(Q++)),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f.charAt(Q++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f.charAt(Q++));p=p<<2|m>>4,m=(m&15)<<4|v>>2;var k=(v&3)<<6|S;d+=String.fromCharCode(p),v!==64&&(d+=String.fromCharCode(m)),S!==64&&(d+=String.fromCharCode(k))}while(Q<f.length);return d},Tg={l:function(f,d,Q,p){tt("Assertion failed: "+(f?l(B,f):"")+", at: "+[d?d?l(B,d):"":"unknown filename",Q,p?p?l(B,p):"":"unknown function"])},q:function(f,d,Q){f=at(f),d=Er(d,"wrapper"),Q=nA(Q);var p=[].slice,m=d.N,v=m.X,S=m.R.X,k=m.R.constructor;f=bn(f,function(){m.R.ja.forEach((function(R){if(this[R]===S[R])throw new Ir("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&&P("Pass correct 'this' to __construct");var R=k.implement.apply(void 0,[this].concat(p.call(arguments)));TA(R);var G=R.M;R.notifyOnDestruction(),G.aa=!0,Object.defineProperties(this,{M:{value:G}}),Ne(this),R=G.O,R=kn(m,R),Kt.hasOwnProperty(R)?P("Tried to register registered instance: "+R):Kt[R]=this},v.__destruct=function(){this===v&&P("Pass correct 'this' to __destruct"),TA(this);var R=this.M.O;R=kn(m,R),Kt.hasOwnProperty(R)?delete Kt[R]:P("Tried to unregister unregistered instance: "+R)},f.prototype=Object.create(v);for(var F in Q)f.prototype[F]=Q[F];return UA(f)},j:function(f){var d=JA[f];delete JA[f];var Q=d.fa,p=d.W,m=d.ia,v=m.map(S=>S.ta).concat(m.map(S=>S.za));ee([f],v,S=>{var k={};return m.forEach((F,R)=>{var G=S[R],L=F.ra,J=F.sa,nt=S[R+m.length],j=F.ya,It=F.Aa;k[F.oa]={read:Ft=>G.fromWireType(L(J,Ft)),write:(Ft,aA)=>{var jt=[];j(It,Ft,nt.toWireType(jt,aA)),Rn(jt)}}}),[{name:d.name,fromWireType:function(F){var R={},G;for(G in k)R[G]=k[G].read(F);return p(F),R},toWireType:function(F,R){for(var G in k)if(!(G in R))throw new TypeError('Missing field: "'+G+'"');var L=Q();for(G in k)k[G].write(L,R[G]);return F!==null&&F.push(p,L),L},argPackAdvance:8,readValueFromPointer:rA,V:p}]})},v:function(){},B:function(f,d,Q,p,m){var v=Fn(Q);d=at(d),Yt(f,{name:d,fromWireType:function(S){return!!S},toWireType:function(S,k){return k?p:m},argPackAdvance:8,readValueFromPointer:function(S){if(Q===1)var k=I;else if(Q===2)k=C;else if(Q===4)k=y;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(k[S>>v])},V:null})},f:function(f,d,Q,p,m,v,S,k,F,R,G,L,J){G=at(G),v=Rt(m,v),k&&(k=Rt(S,k)),R&&(R=Rt(F,R)),J=Rt(L,J);var nt=fr(G);Qg(nt,function(){YA("Cannot construct "+G+" due to unbound types",[p])}),ee([f,d,Q],p?[p]:[],function(j){if(j=j[0],p)var It=j.N,Ft=It.X;else Ft=Ae.prototype;j=bn(nt,function(){if(Object.getPrototypeOf(this)!==aA)throw new _e("Use 'new' to construct "+G);if(jt.Y===void 0)throw new _e(G+" has no accessible constructor");var kr=jt.Y[arguments.length];if(kr===void 0)throw new _e("Tried to invoke ctor of "+G+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(jt.Y).toString()+") parameters instead!");return kr.apply(this,arguments)});var aA=Object.create(Ft,{constructor:{value:j}});j.prototype=aA;var jt=new pg(G,j,aA,J,It,v,k,R);It=new Wt(G,jt,!0,!1),Ft=new Wt(G+"*",jt,!1,!1);var xr=new Wt(G+" const*",jt,!1,!0);return pr[f]={pointerType:Ft,la:xr},vg(nt,j),[It,Ft,xr]})},d:function(f,d,Q,p,m,v,S){var k=Ln(Q,p);d=at(d),v=Rt(m,v),ee([],[f],function(F){function R(){YA("Cannot call "+G+" due to unbound types",k)}F=F[0];var G=F.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var L=F.N.constructor;return L[d]===void 0?(R.Z=Q-1,L[d]=R):(Nn(L,d,G),L[d].S[Q-1]=R),ee([],k,function(J){return J=Hn(G,[J[0],null].concat(J.slice(1)),null,v,S),L[d].S===void 0?(J.Z=Q-1,L[d]=J):L[d].S[Q-1]=J,[]}),[]})},p:function(f,d,Q,p,m,v){0<d||tt();var S=Ln(d,Q);m=Rt(p,m),ee([],[f],function(k){k=k[0];var F="constructor "+k.name;if(k.N.Y===void 0&&(k.N.Y=[]),k.N.Y[d-1]!==void 0)throw new _e("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+k.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return k.N.Y[d-1]=()=>{YA("Cannot construct "+k.name+" due to unbound types",S)},ee([],S,function(R){return R.splice(1,0,null),k.N.Y[d-1]=Hn(F,R,null,m,v),[]}),[]})},a:function(f,d,Q,p,m,v,S,k){var F=Ln(Q,p);d=at(d),v=Rt(m,v),ee([],[f],function(R){function G(){YA("Cannot call "+L+" due to unbound types",F)}R=R[0];var L=R.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),k&&R.N.ja.push(d);var J=R.N.X,nt=J[d];return nt===void 0||nt.S===void 0&&nt.className!==R.name&&nt.Z===Q-2?(G.Z=Q-2,G.className=R.name,J[d]=G):(Nn(J,d,L),J[d].S[Q-2]=G),ee([],F,function(j){return j=Hn(L,j,R,v,S),J[d].S===void 0?(j.Z=Q-2,J[d]=j):J[d].S[Q-2]=j,[]}),[]})},A:function(f,d){d=at(d),Yt(f,{name:d,fromWireType:function(Q){var p=nA(Q);return Un(Q),p},toWireType:function(Q,p){return UA(p)},argPackAdvance:8,readValueFromPointer:rA,V:null})},n:function(f,d,Q){Q=Fn(Q),d=at(d),Yt(f,{name:d,fromWireType:function(p){return p},toWireType:function(p,m){return m},argPackAdvance:8,readValueFromPointer:bg(d,Q),V:null})},e:function(f,d,Q,p,m){d=at(d),m===-1&&(m=4294967295),m=Fn(Q);var v=k=>k;if(p===0){var S=32-8*Q;v=k=>k<<S>>>S}Q=d.includes("unsigned")?function(k,F){return F>>>0}:function(k,F){return F},Yt(f,{name:d,fromWireType:v,toWireType:Q,argPackAdvance:8,readValueFromPointer:Sg(d,m,p!==0),V:null})},b:function(f,d,Q){function p(v){v>>=2;var S=w;return new m(g,S[v+1],S[v])}var m=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];Q=at(Q),Yt(f,{name:Q,fromWireType:p,argPackAdvance:8,readValueFromPointer:p},{ua:!0})},o:function(f,d){d=at(d);var Q=d==="std::string";Yt(f,{name:d,fromWireType:function(p){var m=w[p>>2],v=p+4;if(Q)for(var S=v,k=0;k<=m;++k){var F=v+k;if(k==m||B[F]==0){if(S=S?l(B,S,F-S):"",R===void 0)var R=S;else R+="\0",R+=S;S=F+1}}else{for(R=Array(m),k=0;k<m;++k)R[k]=String.fromCharCode(B[v+k]);R=R.join("")}return Vt(p),R},toWireType:function(p,m){m instanceof ArrayBuffer&&(m=new Uint8Array(m));var v,S=typeof m=="string";if(S||m instanceof Uint8Array||m instanceof Uint8ClampedArray||m instanceof Int8Array||P("Cannot pass non-string to std::string"),Q&&S){var k=0;for(v=0;v<m.length;++v){var F=m.charCodeAt(v);127>=F?k++:2047>=F?k+=2:55296<=F&&57343>=F?(k+=4,++v):k+=3}v=k}else v=m.length;if(k=On(4+v+1),F=k+4,w[k>>2]=v,Q&&S){if(S=F,F=v+1,v=B,0<F){F=S+F-1;for(var R=0;R<m.length;++R){var G=m.charCodeAt(R);if(55296<=G&&57343>=G){var L=m.charCodeAt(++R);G=65536+((G&1023)<<10)|L&1023}if(127>=G){if(S>=F)break;v[S++]=G}else{if(2047>=G){if(S+1>=F)break;v[S++]=192|G>>6}else{if(65535>=G){if(S+2>=F)break;v[S++]=224|G>>12}else{if(S+3>=F)break;v[S++]=240|G>>18,v[S++]=128|G>>12&63}v[S++]=128|G>>6&63}v[S++]=128|G&63}}v[S]=0}}else if(S)for(S=0;S<v;++S)R=m.charCodeAt(S),255<R&&(Vt(F),P("String has UTF-16 code units that do not fit in 8 bits")),B[F+S]=R;else for(S=0;S<v;++S)B[F+S]=m[S];return p!==null&&p.push(Vt,k),k},argPackAdvance:8,readValueFromPointer:rA,V:function(p){Vt(p)}})},i:function(f,d,Q){if(Q=at(Q),d===2)var p=xg,m=kg,v=Mg,S=()=>E,k=1;else d===4&&(p=Rg,m=Fg,v=_g,S=()=>w,k=2);Yt(f,{name:Q,fromWireType:function(F){for(var R=w[F>>2],G=S(),L,J=F+4,nt=0;nt<=R;++nt){var j=F+4+nt*d;(nt==R||G[j>>k]==0)&&(J=p(J,j-J),L===void 0?L=J:(L+="\0",L+=J),J=j+d)}return Vt(F),L},toWireType:function(F,R){typeof R!="string"&&P("Cannot pass non-string to C++ string type "+Q);var G=v(R),L=On(4+G+d);return w[L>>2]=G>>k,m(R,L+4,G+d),F!==null&&F.push(Vt,L),L},argPackAdvance:8,readValueFromPointer:rA,V:function(F){Vt(F)}})},k:function(f,d,Q,p,m,v){JA[f]={name:at(d),fa:Rt(Q,p),W:Rt(m,v),ia:[]}},h:function(f,d,Q,p,m,v,S,k,F,R){JA[f].ia.push({oa:at(d),ta:Q,ra:Rt(p,m),sa:v,za:S,ya:Rt(k,F),Aa:R})},C:function(f,d){d=at(d),Yt(f,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(f,d,Q,p,m){f=WA[f],d=nA(d),Q=wr(Q);var v=[];return w[p>>2]=UA(v),f(d,Q,v,m)},t:function(f,d,Q,p){f=WA[f],d=nA(d),Q=wr(Q),f(d,Q,null,p)},g:Un,m:function(f,d){var Q=Hg(f,d),p=Q[0];d=p.name+"_$"+Q.slice(1).map(function(S){return S.name}).join("_")+"$";var m=vr[d];if(m!==void 0)return m;var v=Array(f-1);return m=Gg((S,k,F,R)=>{for(var G=0,L=0;L<f-1;++L)v[L]=Q[L+1].readValueFromPointer(R+G),G+=Q[L+1].argPackAdvance;for(S=S[k].apply(S,v),L=0;L<f-1;++L)Q[L+1].ma&&Q[L+1].ma(v[L]);if(!p.va)return p.toWireType(F,S)}),vr[d]=m},D:function(f){4<f&&(Mt[f].ga+=1)},r:function(f){var d=nA(f);Rn(d),Un(f)},c:function(){tt("")},x:function(f,d,Q){B.copyWithin(f,d,d+Q)},w:function(f){var d=B.length;if(f>>>=0,2147483648<f)return!1;for(var Q=1;4>=Q;Q*=2){var p=d*(1+.2/Q);p=Math.min(p,f+100663296);var m=Math;p=Math.max(f,p),m=m.min.call(m,2147483648,p+(65536-p%65536)%65536);t:{try{u.grow(m-g.byteLength+65535>>>16),N();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(f,d,Q,p){for(var m=0,v=0;v<Q;v++){var S=w[d>>2],k=w[d+4>>2];d+=8;for(var F=0;F<k;F++){var R=B[S+F],G=Lg[f];R===0||R===10?((f===1?a:h)(l(G,0)),G.length=0):G.push(R)}m+=k}return w[p>>2]=m,0}};(function(){function f(m){e.asm=m.exports,u=e.asm.E,N(),O=e.asm.J,H.unshift(e.asm.F),At--,e.monitorRunDependencies&&e.monitorRunDependencies(At),At==0&&rt&&(m=rt,rt=null,m())}function d(m){f(m.instance)}function Q(m){return ct().then(function(v){return WebAssembly.instantiate(v,p)}).then(function(v){return v}).then(m,function(v){h("failed to asynchronously prepare wasm: "+v),tt(v)})}var p={a:Tg};if(At++,e.monitorRunDependencies&&e.monitorRunDependencies(At),e.instantiateWasm)try{return e.instantiateWasm(p,f)}catch(m){h("Module.instantiateWasm callback failed with error: "+m),n(m)}return(function(){return c||typeof WebAssembly.instantiateStreaming!="function"||ut(ft)||typeof fetch!="function"?Q(d):fetch(ft,{credentials:"same-origin"}).then(function(m){return WebAssembly.instantiateStreaming(m,p).then(d,function(v){return h("wasm streaming compile failed: "+v),h("falling back to ArrayBuffer instantiation"),Q(d)})})})().catch(n),{}})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.F).apply(null,arguments)};var br=e.___getTypeName=function(){return(br=e.___getTypeName=e.asm.G).apply(null,arguments)};e.__embind_initialize_bindings=function(){return(e.__embind_initialize_bindings=e.asm.H).apply(null,arguments)};var On=e._malloc=function(){return(On=e._malloc=e.asm.I).apply(null,arguments)},Vt=e._free=function(){return(Vt=e._free=e.asm.K).apply(null,arguments)};e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.L).apply(null,arguments)};var jA;rt=function f(){jA||Sr(),jA||(rt=f)};function Sr(){function f(){if(!jA&&(jA=!0,e.calledRun=!0,!o)){if(Dn(H),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;){var d=e.postRun.shift();T.unshift(d)}Dn(T)}}if(!(0<At)){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)W();Dn(K),0<At||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),f()},1)):f())}}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return Sr(),t.ready})})();let q=(function(A){return A[A.Auto=0]="Auto",A[A.FlexStart=1]="FlexStart",A[A.Center=2]="Center",A[A.FlexEnd=3]="FlexEnd",A[A.Stretch=4]="Stretch",A[A.Baseline=5]="Baseline",A[A.SpaceBetween=6]="SpaceBetween",A[A.SpaceAround=7]="SpaceAround",A[A.SpaceEvenly=8]="SpaceEvenly",A})({}),_A=(function(A){return A[A.BorderBox=0]="BorderBox",A[A.ContentBox=1]="ContentBox",A})({}),Uo=(function(A){return A[A.Width=0]="Width",A[A.Height=1]="Height",A})({}),he=(function(A){return A[A.Inherit=0]="Inherit",A[A.LTR=1]="LTR",A[A.RTL=2]="RTL",A})({}),ve=(function(A){return A[A.Flex=0]="Flex",A[A.None=1]="None",A[A.Contents=2]="Contents",A})({}),U=(function(A){return A[A.Left=0]="Left",A[A.Top=1]="Top",A[A.Right=2]="Right",A[A.Bottom=3]="Bottom",A[A.Start=4]="Start",A[A.End=5]="End",A[A.Horizontal=6]="Horizontal",A[A.Vertical=7]="Vertical",A[A.All=8]="All",A})({}),De=(function(A){return A[A.None=0]="None",A[A.StretchFlexBasis=1]="StretchFlexBasis",A[A.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",A[A.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",A[A.All=2147483647]="All",A[A.Classic=2147483646]="Classic",A})({}),Nc=(function(A){return A[A.WebFlexBasis=0]="WebFlexBasis",A})({}),Ht=(function(A){return A[A.Column=0]="Column",A[A.ColumnReverse=1]="ColumnReverse",A[A.Row=2]="Row",A[A.RowReverse=3]="RowReverse",A})({}),be=(function(A){return A[A.Column=0]="Column",A[A.Row=1]="Row",A[A.All=2]="All",A})({}),wt=(function(A){return A[A.FlexStart=0]="FlexStart",A[A.Center=1]="Center",A[A.FlexEnd=2]="FlexEnd",A[A.SpaceBetween=3]="SpaceBetween",A[A.SpaceAround=4]="SpaceAround",A[A.SpaceEvenly=5]="SpaceEvenly",A})({}),Se=(function(A){return A[A.Error=0]="Error",A[A.Warn=1]="Warn",A[A.Info=2]="Info",A[A.Debug=3]="Debug",A[A.Verbose=4]="Verbose",A[A.Fatal=5]="Fatal",A})({}),dn=(function(A){return A[A.Undefined=0]="Undefined",A[A.Exactly=1]="Exactly",A[A.AtMost=2]="AtMost",A})({}),To=(function(A){return A[A.Default=0]="Default",A[A.Text=1]="Text",A})({}),xe=(function(A){return A[A.Visible=0]="Visible",A[A.Hidden=1]="Hidden",A[A.Scroll=2]="Scroll",A})({}),ke=(function(A){return A[A.Static=0]="Static",A[A.Relative=1]="Relative",A[A.Absolute=2]="Absolute",A})({}),Lt=(function(A){return A[A.Undefined=0]="Undefined",A[A.Point=1]="Point",A[A.Percent=2]="Percent",A[A.Auto=3]="Auto",A})({}),Me=(function(A){return A[A.NoWrap=0]="NoWrap",A[A.Wrap=1]="Wrap",A[A.WrapReverse=2]="WrapReverse",A})({});const Gc={ALIGN_AUTO:q.Auto,ALIGN_FLEX_START:q.FlexStart,ALIGN_CENTER:q.Center,ALIGN_FLEX_END:q.FlexEnd,ALIGN_STRETCH:q.Stretch,ALIGN_BASELINE:q.Baseline,ALIGN_SPACE_BETWEEN:q.SpaceBetween,ALIGN_SPACE_AROUND:q.SpaceAround,ALIGN_SPACE_EVENLY:q.SpaceEvenly,BOX_SIZING_BORDER_BOX:_A.BorderBox,BOX_SIZING_CONTENT_BOX:_A.ContentBox,DIMENSION_WIDTH:Uo.Width,DIMENSION_HEIGHT:Uo.Height,DIRECTION_INHERIT:he.Inherit,DIRECTION_LTR:he.LTR,DIRECTION_RTL:he.RTL,DISPLAY_FLEX:ve.Flex,DISPLAY_NONE:ve.None,DISPLAY_CONTENTS:ve.Contents,EDGE_LEFT:U.Left,EDGE_TOP:U.Top,EDGE_RIGHT:U.Right,EDGE_BOTTOM:U.Bottom,EDGE_START:U.Start,EDGE_END:U.End,EDGE_HORIZONTAL:U.Horizontal,EDGE_VERTICAL:U.Vertical,EDGE_ALL:U.All,ERRATA_NONE:De.None,ERRATA_STRETCH_FLEX_BASIS:De.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:De.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:De.AbsolutePercentAgainstInnerSize,ERRATA_ALL:De.All,ERRATA_CLASSIC:De.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Nc.WebFlexBasis,FLEX_DIRECTION_COLUMN:Ht.Column,FLEX_DIRECTION_COLUMN_REVERSE:Ht.ColumnReverse,FLEX_DIRECTION_ROW:Ht.Row,FLEX_DIRECTION_ROW_REVERSE:Ht.RowReverse,GUTTER_COLUMN:be.Column,GUTTER_ROW:be.Row,GUTTER_ALL:be.All,JUSTIFY_FLEX_START:wt.FlexStart,JUSTIFY_CENTER:wt.Center,JUSTIFY_FLEX_END:wt.FlexEnd,JUSTIFY_SPACE_BETWEEN:wt.SpaceBetween,JUSTIFY_SPACE_AROUND:wt.SpaceAround,JUSTIFY_SPACE_EVENLY:wt.SpaceEvenly,LOG_LEVEL_ERROR:Se.Error,LOG_LEVEL_WARN:Se.Warn,LOG_LEVEL_INFO:Se.Info,LOG_LEVEL_DEBUG:Se.Debug,LOG_LEVEL_VERBOSE:Se.Verbose,LOG_LEVEL_FATAL:Se.Fatal,MEASURE_MODE_UNDEFINED:dn.Undefined,MEASURE_MODE_EXACTLY:dn.Exactly,MEASURE_MODE_AT_MOST:dn.AtMost,NODE_TYPE_DEFAULT:To.Default,NODE_TYPE_TEXT:To.Text,OVERFLOW_VISIBLE:xe.Visible,OVERFLOW_HIDDEN:xe.Hidden,OVERFLOW_SCROLL:xe.Scroll,POSITION_TYPE_STATIC:ke.Static,POSITION_TYPE_RELATIVE:ke.Relative,POSITION_TYPE_ABSOLUTE:ke.Absolute,UNIT_UNDEFINED:Lt.Undefined,UNIT_POINT:Lt.Point,UNIT_PERCENT:Lt.Percent,UNIT_AUTO:Lt.Auto,WRAP_NO_WRAP:Me.NoWrap,WRAP_WRAP:Me.Wrap,WRAP_WRAP_REVERSE:Me.WrapReverse};function Hc(A){function t(n,s,r){const a=n[s];n[s]=function(){for(var h=arguments.length,c=new Array(h),u=0;u<h;u++)c[u]=arguments[u];return r.call(this,a,...c)}}for(const n of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){const s={[Lt.Point]:A.Node.prototype[n],[Lt.Percent]:A.Node.prototype[`${n}Percent`],[Lt.Auto]:A.Node.prototype[`${n}Auto`]};t(A.Node.prototype,n,function(r){for(var a=arguments.length,h=new Array(a>1?a-1:0),c=1;c<a;c++)h[c-1]=arguments[c];const u=h.pop();let o,l;if(u==="auto")o=Lt.Auto,l=void 0;else if(typeof u=="object")o=u.unit,l=u.valueOf();else if(o=typeof u=="string"&&u.endsWith("%")?Lt.Percent:Lt.Point,l=parseFloat(u),u!==void 0&&!Number.isNaN(u)&&Number.isNaN(l))throw new Error(`Invalid value ${u} for ${n}`);if(!s[o])throw new Error(`Failed to execute "${n}": Unsupported unit '${u}'`);return l!==void 0?s[o].call(this,...h,l):s[o].call(this,...h)})}function e(n){return A.MeasureCallback.implement({measure:function(){const{width:s,height:r}=n(...arguments);return{width:s??NaN,height:r??NaN}}})}t(A.Node.prototype,"setMeasureFunc",function(n,s){return s?n.call(this,e(s)):this.unsetMeasureFunc()});function i(n){return A.DirtiedCallback.implement({dirtied:n})}return t(A.Node.prototype,"setDirtiedFunc",function(n,s){n.call(this,i(s))}),t(A.Config.prototype,"free",function(){A.Config.destroy(this)}),t(A.Node,"create",(n,s)=>s?A.Node.createWithConfig(s):A.Node.createDefault()),t(A.Node.prototype,"free",function(){A.Node.destroy(this)}),t(A.Node.prototype,"freeRecursive",function(){for(let n=0,s=this.getChildCount();n<s;++n)this.getChild(0).freeRecursive();this.free()}),t(A.Node.prototype,"calculateLayout",function(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:he.LTR;return n.call(this,s,r,a)}),{Config:A.Config,Node:A.Node,...Gc}}async function Lc(){return Hc(await _c())}let Oo;function Bn(){return Oo}function Po(A){Oo=A}let Jo;function Ko(A){Jo=A}function Yo(){return Jo}function iA(A,t){return A?typeof A=="number"?A:typeof A=="string"&&A.endsWith("%")?(t??(t=1),t*(parseFloat(A)/100)):Number.isNaN(parseFloat(A))?0:parseFloat(A):0}function $t(A){return typeof A=="number"?"number":A.endsWith("%")?"percentage":Number.isNaN(parseInt(A,10))?"keyword":"number"}function NA(A,t,e){return(t[A]-e[A])/2}function Wo(A,t,e,i,n){const s=t==="percentage"?i[e]-n[e]:1;return iA(A)*s}function Vo(A,t,e){const[i,n]=A,s=$t(i),r=$t(n),a={x:void 0,y:void 0};switch(i){case"top":a.y=0;break;case"bottom":a.y=t.height-e.height;break;case"center":n==="left"||n==="right"?a.y=NA("height",t,e):a.x=NA("width",t,e);break;case"left":a.x=0;break;case"right":a.x=t.width-e.width;break;default:{const h=n==="top"||n==="bottom"||r!=="keyword"?"width":"height",c=h==="width"?"x":"y";a[c]=Wo(i,s,h,t,e)}}switch(n){case"top":a.y=0;break;case"bottom":a.y=t.height-e.height;break;case"center":a.y===void 0?a.y=NA("height",t,e):a.x=NA("width",t,e);break;case"left":a.x=0;break;case"right":a.x=t.width-e.width;break;default:{const h=a.y===void 0?"y":"x",c=h==="y"?"height":"width";a[h]=Wo(n,r,c,t,e)}}return a}function GA(A,t,e,i){const n=A==="right"||A==="bottom",s=e==="percentage"?t*i:t;return n?-s:s}function Uc(A,t,e){const[i,n,s,r]=A,a=$t(i),h=$t(n),c=$t(s),u=$t(r);if(h==="keyword"||u==="keyword")throw new Error("Invalid objectPosition value: second and fourth values must be numbers or percentages");if(a!=="keyword"||c!=="keyword")throw new Error("Invalid objectPosition value: first and third values must be keywords");const o=Vo([i,s],t,e),l={...o},g=iA(n),I=iA(r);return i==="left"||i==="right"?l.x=o.x+GA(i,g,h,e.width):(i==="top"||i==="bottom")&&(l.y=o.y+GA(i,g,h,e.height)),s==="left"||s==="right"?l.x=o.x+GA(s,I,u,e.width):(s==="top"||s==="bottom")&&(l.y=o.y+GA(s,I,u,e.height)),l}function Tc(A,t,e){const i=A[0],n={x:void 0,y:void 0};switch(i){case"top":n.y=0,n.x=(t.width-e.width)/2;break;case"bottom":n.y=t.height-e.height,n.x=(t.width-e.width)/2;break;case"left":n.x=0,n.y=(t.height-e.height)/2;break;case"right":n.x=t.width-e.width,n.y=(t.height-e.height)/2;break;case"center":n.x=(t.width-e.width)/2,n.y=(t.height-e.height)/2;break;default:{const r=$t(i)==="percentage"?t.width-e.width:1;n.x=iA(i)*r,n.y=(t.height-e.height)/2}}return n}function En(A,t,e){if(!A)return{x:0,y:0};const i=typeof A=="string"?A.split(" "):[A];switch(i.length){case 1:return Tc(i,t,e);case 2:return Vo(i,t,e);case 4:return Uc(i,t,e);default:throw new Error("Invalid objectPosition value: must have 1, 2, or 4 values")}}const Cn={width:0,height:0};function Qn(A){const t=A.target.getLocalBounds(),e=A.target.scale;return Cn.width=Math.abs(t.width*e.x),Cn.height=Math.abs(t.height*e.y),Cn}function pn(A,t,e=.49){return Math.abs(A-t)<e}function Oc(A,t=0,e={}){let i,n;const s=e.maxWait?e.maxWait:t;let r,a,h,c=0;const u=!!e.leading,o="maxWait"in e,l=e.trailing??!0,g=t!==0&&typeof globalThis.requestAnimationFrame=="function";if(typeof A!="function")throw new TypeError("Expected a function");function I(T){const W=i,At=n;return i=n=void 0,c=T,r=A.apply(At,W),r}function B(T,W){return g?(typeof a=="number"&&globalThis.cancelAnimationFrame(a),globalThis.requestAnimationFrame(T)):setTimeout(T,W)}function C(T){if(g){globalThis.cancelAnimationFrame(T);return}clearTimeout(T)}function E(T){return c=T,a=B(b,t),u?I(T):r}function y(T){const W=T-(h||0),At=T-c,rt=t-W;return o?Math.min(rt,s-At):rt}function w(T){const W=T-(h||0),At=T-c;return h===void 0||W>=t||W<0||o&&At>=s}function b(){const T=Date.now();if(w(T))return M(T);a=B(b,y(T))}function M(T){return a=void 0,l&&i?I(T):(i=n=void 0,r)}function N(){a!==void 0&&C(a),c=0,i=h=n=a=void 0}function O(){return a===void 0?r:M(Date.now())}function K(){return a!==void 0}function H(...T){const W=Date.now(),At=w(W);if(i=T,n=this,h=W,At){if(a===void 0)return E(h);if(o)return a=B(b,t),I(h)}return a===void 0&&(a=B(b,t)),r}return H.cancel=N,H.flush=O,H.pending=K,H}function Pc(A,t,e={}){const i=e.leading??!0,n=e.trailing??!0;if(typeof A!="function")throw new TypeError("Expected a function");return Oc(A,t,{leading:i,trailing:n,maxWait:t})}var Jc=Object.defineProperty,Kc=(A,t,e)=>t in A?Jc(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,ce=(A,t,e)=>Kc(A,typeof t!="symbol"?t+"":t,e);class yn{constructor(){ce(this,"autoUpdate",!0),ce(this,"_debugEnabled",!1),ce(this,"_debugRenderer",null),ce(this,"_throttledUpdateSize"),ce(this,"_throttle",100),ce(this,"_modificationCount",50)}async init(t){Po(await Lc()),Ko(Bn().Config.create());const{layout:e}=t??{},{autoUpdate:i,enableDebug:n,throttle:s,debugModificationCount:r}=e??{};n&&this.enableDebug(!0),i!==void 0&&(this.autoUpdate=i),this._throttle=s??this._throttle,this._throttledUpdateSize=Pc(a=>this._updateSize(a),this._throttle,{leading:!0,trailing:!0}),this._modificationCount=r??this._modificationCount}async enableDebug(t=!this._debugEnabled){if(this._debugEnabled=t,!this._debugRenderer){const e=await Promise.resolve().then(()=>Bg);this._debugRenderer=new e.DebugRenderer}this._debugEnabled||this._debugRenderer.reset()}update(t){this._debugEnabled&&this._debugRenderer&&(this._debugRenderer.reset(),t.addChild(this._debugRenderer.holder)),this._throttle===0?this._updateSize(t):this._throttledUpdateSize(t),this.updateLayout(t)}prerender({container:t}){this.autoUpdate&&this.update(t)}_updateSize(t){if(t.destroyed)return;const e=t._layout;if(e){const i=e.style;if(i.width==="intrinsic"||i.height==="intrinsic"){const n=Qn(e);if(i.width==="intrinsic"){const s=e.yoga.getWidth().value;pn(s,n.width)||(e.yoga.setWidth(n.width),e.invalidateRoot())}if(i.height==="intrinsic"){const s=e.yoga.getHeight().value;pn(s,n.height)||(e.yoga.setHeight(n.height),e.invalidateRoot())}}if(!t.visible){e._onChildRemoved();return}}for(let i=0;i<t.children.length;i++)this._updateSize(t.children[i])}updateLayout(t){var e,i,n,s;const r=t._layout;if(t.visible){if(r){const a=r.yoga,h=r.style,c=(e=t.parent)==null?void 0:e.isOverflowContainer;if(!((i=t.parent)!=null&&i._layout)&&!c&&r._isDirty&&(r._isDirty=!1,a.calculateLayout(h.width,h.height,a.getDirection()??he.LTR)),a.hasNewLayout()||r._forceUpdate){a.markLayoutSeen(),r._forceUpdate=!1,r._computedLayout=a.getComputedLayout();const o=En(h.transformOrigin,r._computedLayout,{width:0,height:0});r._computedPixiLayout={...t.computeLayoutData(r._computedLayout),originX:o.x,originY:o.y},t.emit("layout",r),(n=t.onLayout)==null||n.call(t,r),t._onUpdate()}this._debugEnabled&&(r._styles.custom.debug||r._modificationCount>this._modificationCount&&r._styles.custom.debugHeat!==!1)&&((s=this._debugRenderer)==null||s.render(r))}for(let a=0;a<t.children.length;a++)this.updateLayout(t.children[a])}}destroy(){!this._debugEnabled&&this._debugRenderer&&this._debugRenderer.destroy()}}ce(yn,"extension",{type:[D.ExtensionType.WebGLSystem,D.ExtensionType.WebGPUSystem],name:"layout"});const jo={"flex-start":q.FlexStart,"flex-end":q.FlexEnd,center:q.Center,stretch:q.Stretch,"space-between":q.SpaceBetween,"space-around":q.SpaceAround,"space-evenly":q.SpaceEvenly},qo={"flex-start":q.FlexStart,"flex-end":q.FlexEnd,center:q.Center,stretch:q.Stretch,baseline:q.Baseline},Xo={auto:q.Auto,"flex-start":q.FlexStart,"flex-end":q.FlexEnd,center:q.Center,stretch:q.Stretch,baseline:q.Baseline},Zo={"border-box":_A.BorderBox,"content-box":_A.ContentBox},zo={ltr:he.LTR,rtl:he.RTL},$o={none:ve.None,flex:ve.Flex,contents:ve.Contents},tr={row:Ht.Row,column:Ht.Column,"row-reverse":Ht.RowReverse,"column-reverse":Ht.ColumnReverse},er={wrap:Me.Wrap,nowrap:Me.NoWrap,"wrap-reverse":Me.WrapReverse},Ar={"flex-start":wt.FlexStart,"flex-end":wt.FlexEnd,center:wt.Center,"space-between":wt.SpaceBetween,"space-around":wt.SpaceAround,"space-evenly":wt.SpaceEvenly},ir={visible:xe.Visible,hidden:xe.Hidden,scroll:xe.Scroll},nr={absolute:ke.Absolute,relative:ke.Relative,static:ke.Static},Yc={alignContent:(A,t)=>A.setAlignContent(Wc(t)),alignItems:(A,t)=>A.setAlignItems(Vc(t)),alignSelf:(A,t)=>A.setAlignSelf(jc(t)),aspectRatio:(A,t)=>A.setAspectRatio(t),borderBottomWidth:(A,t)=>A.setBorder(U.Bottom,t),borderEndWidth:(A,t)=>A.setBorder(U.End,t),borderLeftWidth:(A,t)=>A.setBorder(U.Left,t),borderRightWidth:(A,t)=>A.setBorder(U.Right,t),borderStartWidth:(A,t)=>A.setBorder(U.Start,t),borderTopWidth:(A,t)=>A.setBorder(U.Top,t),borderWidth:(A,t)=>A.setBorder(U.All,t),borderInlineWidth:(A,t)=>A.setBorder(U.Horizontal,t),borderBlockWidth:(A,t)=>A.setBorder(U.Vertical,t),bottom:(A,t)=>A.setPosition(U.Bottom,t),boxSizing:(A,t)=>A.setBoxSizing(qc(t)),direction:(A,t)=>A.setDirection(Xc(t)),display:(A,t)=>A.setDisplay(Zc(t)),end:(A,t)=>A.setPosition(U.End,t),flex:(A,t)=>A.setFlex(t),flexBasis:(A,t)=>A.setFlexBasis(t),flexDirection:(A,t)=>A.setFlexDirection(zc(t)),rowGap:(A,t)=>A.setGap(be.Row,t),gap:(A,t)=>A.setGap(be.All,t),columnGap:(A,t)=>A.setGap(be.Column,t),flexGrow:(A,t)=>A.setFlexGrow(t),flexShrink:(A,t)=>A.setFlexShrink(t),flexWrap:(A,t)=>A.setFlexWrap($c(t)),height:(A,t)=>A.setHeight(t),justifyContent:(A,t)=>A.setJustifyContent(tg(t)),left:(A,t)=>A.setPosition(U.Left,t),margin:(A,t)=>A.setMargin(U.All,t),marginBottom:(A,t)=>A.setMargin(U.Bottom,t),marginEnd:(A,t)=>A.setMargin(U.End,t),marginLeft:(A,t)=>A.setMargin(U.Left,t),marginRight:(A,t)=>A.setMargin(U.Right,t),marginStart:(A,t)=>A.setMargin(U.Start,t),marginTop:(A,t)=>A.setMargin(U.Top,t),marginInline:(A,t)=>A.setMargin(U.Horizontal,t),marginBlock:(A,t)=>A.setMargin(U.Vertical,t),maxHeight:(A,t)=>A.setMaxHeight(t),maxWidth:(A,t)=>A.setMaxWidth(t),minHeight:(A,t)=>A.setMinHeight(t),minWidth:(A,t)=>A.setMinWidth(t),overflow:(A,t)=>A.setOverflow(eg(t)),padding:(A,t)=>A.setPadding(U.All,t),paddingBottom:(A,t)=>A.setPadding(U.Bottom,t),paddingEnd:(A,t)=>A.setPadding(U.End,t),paddingLeft:(A,t)=>A.setPadding(U.Left,t),paddingRight:(A,t)=>A.setPadding(U.Right,t),paddingStart:(A,t)=>A.setPadding(U.Start,t),paddingTop:(A,t)=>A.setPadding(U.Top,t),paddingInline:(A,t)=>A.setPadding(U.Horizontal,t),paddingBlock:(A,t)=>A.setPadding(U.Vertical,t),position:(A,t)=>A.setPositionType(Ag(t)),right:(A,t)=>A.setPosition(U.Right,t),start:(A,t)=>A.setPosition(U.Start,t),top:(A,t)=>A.setPosition(U.Top,t),insetInline:(A,t)=>A.setPosition(U.Horizontal,t),insetBlock:(A,t)=>A.setPosition(U.Vertical,t),inset:(A,t)=>A.setPosition(U.All,t),width:(A,t)=>A.setWidth(t)};function Wc(A){if(A in jo)return jo[A];throw new Error(`"${A}" is not a valid value for alignContent`)}function Vc(A){if(A in qo)return qo[A];throw new Error(`"${A}" is not a valid value for alignItems`)}function jc(A){if(A in Xo)return Xo[A];throw new Error(`"${A}" is not a valid value for alignSelf`)}function qc(A){if(A in Zo)return Zo[A];throw new Error(`"${A}" is not a valid value for boxSizing`)}function Xc(A){if(A in zo)return zo[A];throw new Error(`"${A}" is not a valid value for direction`)}function Zc(A){if(A in $o)return $o[A];throw new Error(`"${A}" is not a valid value for display`)}function zc(A){if(A in tr)return tr[A];throw new Error(`"${A}" is not a valid value for flexDirection`)}function $c(A){if(A in er)return er[A];throw new Error(`"${A}" is not a valid value for flexWrap`)}function tg(A){if(A in Ar)return Ar[A];throw new Error(`"${A}" is not a valid value for justifyContent`)}function eg(A){if(A in ir)return ir[A];throw new Error(`"${A}" is not a valid value for overflow`)}function Ag(A){if(A in nr)return nr[A];throw new Error(`"${A}" is not a valid value for position`)}function sr(A,t={}){for(const[e,i]of Object.entries(t))try{const n=Yc[e];n&&n(A,i)}catch{}if(t.width!==void 0){const e=t.left!==void 0&&t.right!==void 0?"auto":t.width;A.setWidth(e)}if(t.height!==void 0){const e=t.top!==void 0&&t.bottom!==void 0?"auto":t.height;A.setHeight(e)}}function or(A,t){let i={...A._styles.custom,...t};i={...{...ge.defaultStyle.shared,...A.target instanceof D.ViewContainer||i.isLeaf||ge.defaultStyle.shared.isLeaf?ge.defaultStyle.leaf:ge.defaultStyle.container},...i};const s={...i},r=i.width==="intrinsic",a=i.height==="intrinsic";if(r||a){const{width:h,height:c}=Qn(A);r&&(s.width=h),a&&(s.height=c)}return{custom:i,yoga:s}}function rr(A,t){var e;let i=t.layout,n;if(!i&&t.isOverflowContainer&&(n=t,i=(e=n.parent)==null?void 0:e.layout,t=n.parent),!i)return!1;const s=A.yoga.getParent();s&&s.removeChild(A.yoga);const r=ig(A,t,n);return r===-1?!1:(r===i.yoga.getChildCount(),i.yoga.insertChild(A.yoga,r),!0)}function ig(A,t,e){const i=A.target;let n=0;if(e){for(const s of t.children){if(s===e){for(const r of e.children)if(!(!r.layout||!r.visible)){if(r===i)return n;n++}return-1}s.layout&&s.visible&&n++}return-1}for(const s of t.children)if(!(!s.layout||!s.visible)){if(s===i)return n;n++}return-1}function ar(A){const t=A.yoga.getParent();t&&t.removeChild(A.yoga)}var ng=Object.defineProperty,sg=(A,t,e)=>t in A?ng(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,vt=(A,t,e)=>sg(A,typeof t!="symbol"?t+"":t,e);class ge{constructor({target:t}){vt(this,"yoga"),vt(this,"target"),vt(this,"destroyed",!1),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=Bn().Node.create(Yo()),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 e=or(this,t),i=JSON.stringify(this._styles.custom)!==JSON.stringify(e.custom),n=JSON.stringify(this._styles.yoga)!==JSON.stringify(e.yoga),s=i||n,r=this._trackedStyleKeys.some(a=>e.custom[a]!==this._styles.custom[a]);this._styles=e,r&&(this._forceUpdate=!0),s&&(sr(this.yoga,this._styles.yoga),this.target._onUpdate(),this.invalidateRoot())}invalidateRoot(t){const e=this.getRoot(t);e.destroyed||(e._layout._isDirty=!0,e._onUpdate(),this._modificationCount++)}forceUpdate(){this._forceUpdate=!0}getRoot(t){var e,i;let n=t||this.target;for(;(e=n.parent)!=null&&e._layout||(i=n.parent)!=null&&i.isOverflowContainer;)n=n.parent,n.isOverflowContainer&&(n=n.parent);return n}_onChildAdded(t){this.hasParent||rr(this,t)!==!1&&(this.hasParent=!0,this.invalidateRoot())}_onChildRemoved(t){this.hasParent&&(this.hasParent=!1,this.invalidateRoot(t),ar(this))}destroy(){this.destroyed||(this.destroyed=!0,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(ge,"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 lr(A,t,e){let i=1,n=1;switch(A){case"fill":i=t.width/e.width,n=t.height/e.height;break;case"contain":{const s=Math.min(t.width/e.width,t.height/e.height);i=s,n=s;break}case"cover":{const s=Math.max(t.width/e.width,t.height/e.height);i=s,n=s;break}case"none":i=1,n=1;break;case"scale-down":{const s=Math.min(1,t.width/e.width,t.height/e.height);i=s,n=s;break}}return{offsetScaleX:i,offsetScaleY:n}}function hr(A,t,e,i){const n=A.getLocalBounds(),s=A.layout.style.objectFit||e;let{offsetScaleX:r,offsetScaleY:a}=lr(s,t,n);const h={width:n.width*r,height:n.height*a};let{x:c,y:u}=En(A.layout.style.objectPosition,t,h);i?(c+=n.width*r*i._x,u+=n.height*a*i._y):(c-=n.minX*r,u-=n.minY*a);const o=A.layout.style.applySizeDirectly;return(o===!0||o==null&&(A instanceof D.TilingSprite||A instanceof D.NineSliceSprite))&&(A.width=n.width*r,A.height=n.height*a,r=1,a=1),{x:t.left,y:t.top,offsetX:c,offsetY:u,scaleX:r,scaleY:a}}const mn=Object.getOwnPropertyDescriptor(D.Container.prototype,"visible"),og={_layout:null,get layout(){return this._layout??null},set layout(A){if(A=A===!0?{}:A,!A){this._layout&&(this._layout.destroy(),this._layout=null,this.updateLocalTransform=D.Container.prototype.updateLocalTransform,Object.defineProperty(D.Container.prototype,"visible",mn));return}if(!this._layout){this._layout=new ge({target:this}),Object.defineProperty(D.Container.prototype,"visible",{...mn,set(t){mn.set.call(this,t),this.layout&&(t&&this.parent?this.layout._onChildAdded(this.parent):this.layout._onChildRemoved())}});for(const t of this.children)t.layout&&t.visible&&(t.layout._onChildRemoved(),t.layout._onChildAdded(this));this.parent&&this.visible&&this._layout._onChildAdded(this.parent)}this._layout.setStyle(A),this.updateLocalTransform=this.updateLocalTransformWithLayout,this._onUpdate()},updateLocalTransformWithLayout(){const A=this._didContainerChangeTick;if(this._didLocalTransformChangeId===A)return;this._didLocalTransformChangeId=A;const t=this._layout,{x:e,y:i,offsetX:n,offsetY:s,scaleX:r,scaleY:a,originX:h,originY:c}=t._computedPixiLayout,u=this.localTransform,{rotation:o,skew:l,scale:g,position:I}=this,B=o+l._y,C=o-l._x,E=Math.cos(B)*g._x,y=Math.sin(B)*g._x,w=-Math.sin(C)*g._y,b=Math.cos(C)*g._y,M=I._x+e-h*E-c*w,N=I._y+i-h*y-c*b;u.a=E*r,u.b=y*r,u.c=w*a,u.d=b*a,u.tx=M+(n*E+s*w)+h,u.ty=N+(n*y+s*b)+c},computeLayoutData(A){const t=this._layout,{isLeaf:e}=t._styles.custom;return e?hr(this,A,"fill"):{x:A.left,y:A.top,offsetX:0,offsetY:0,scaleX:1,scaleY:1}}};D.extensions.mixin(D.Container,og);const cr=new D.Point(0,0),rg={computeLayoutData(A){const t=this._style;cr.copyFrom(this.scale),this.scale=1,t.wordWrap&&(t.wordWrapWidth=A.width);let e=this.getLocalBounds();const i=this.layout.style.objectFit||"scale-down",{offsetScaleX:n,offsetScaleY:s}=lr(i,A,e);t.wordWrap&&(t.wordWrapWidth=A.width/Math.min(1,Math.max(n,s))),e=this.getLocalBounds();const r={width:e.width*n,height:e.height*s};let{x:a,y:h}=En(this.layout.style.objectPosition,A,r);return a+=e.width*n*this.anchor._x,h+=e.height*s*this.anchor._y,this.layout.style.applySizeDirectly===!0&&(this.width=e.width*n,this.height=e.height*s),this.scale.copyFrom(cr),{x:A.left,y:A.top,offsetX:a,offsetY:h,scaleX:n,scaleY:s}}};D.extensions.mixin(D.AbstractText,rg);const wn=Object.getOwnPropertyDescriptor(D.AbstractText.prototype,"text");Object.defineProperty(D.AbstractText.prototype,"text",{...wn,set(A){var t;const e=wn.get.call(this);wn.set.call(this,A),e!==A&&((t=this.layout)==null||t.forceUpdate())}});const ag={computeLayoutData(A){return hr(this,A,"fill",this._anchor)}};D.extensions.mixin(D.ViewContainer,ag);var Ut=(A=>(A.Margin="margin",A.Padding="padding",A.Border="border",A.Flex="flex",A.Content="content",A))(Ut||{});function vn(A,t){const e=`getComputed${t.charAt(0).toUpperCase()+t.slice(1)}`;return{top:A.yoga[e](U.Top),right:A.yoga[e](U.Right),bottom:A.yoga[e](U.Bottom),left:A.yoga[e](U.Left)}}function lg(A,t){const{width:e,height:i}=A.computedLayout,n=vn(A,"margin"),s=vn(A,"border"),r=vn(A,"padding"),a=t.get("margin");a.outer.x=-n.left,a.outer.y=-n.top,a.outer.width=e+n.left+n.right,a.outer.height=i+n.top+n.bottom,a.inner.x=0,a.inner.y=0,a.inner.width=e,a.inner.height=i;const h=t.get("border");h.outer.x=0,h.outer.y=0,h.outer.width=e,h.outer.height=i,h.inner.x=s.left,h.inner.y=s.top,h.inner.width=e-s.left-s.right,h.inner.height=i-s.top-s.bottom;const c=t.get("padding");c.outer.copyFrom(h.inner),c.inner.x=r.left+s.left,c.inner.y=r.top+s.top,c.inner.width=e-r.left-r.right-s.left-s.right,c.inner.height=i-r.top-r.bottom-s.top-s.bottom,hg(A,t)}function hg(A,t){var e;const i=t.get("flex"),n=t.get("padding");i.outer.copyFrom(n.inner);const s=new D.Bounds,r=A.yoga.getChildCount();for(let h=0;h<r;h++){const u=A.yoga.getChild(h).getComputedLayout();s.addRect(new D.Rectangle(u.left,u.top,u.width,u.height))}const a=A.yoga.getFlexDirection();a===Ht.Column||a===Ht.ColumnReverse?(s.width=i.outer.width,s.x=i.outer.x):(s.height=i.outer.height,s.y=i.outer.y),(e=i.inner)==null||e.copyFrom(s.rectangle),t.get("content").outer.copyFrom(s.rectangle)}var cg=Object.defineProperty,gg=(A,t,e)=>t in A?cg(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,gr=(A,t,e)=>gg(A,typeof t!="symbol"?t+"":t,e);function ug(A,t,e){const i=Math.round(A[0]+(t[0]-A[0])*e),n=Math.round(A[1]+(t[1]-A[1])*e),s=Math.round(A[2]+(t[2]-A[2])*e);return`rgb(${i},${n},${s})`}class fg extends D.Container{constructor(){super(),gr(this,"graphics"),gr(this,"heatGraphics"),this.graphics=new Map,Object.values(Ut).forEach(t=>{const e=new D.Graphics;this.graphics.set(t,e),this.addChild(e)}),this.heatGraphics=new D.Graphics,this.addChild(this.heatGraphics)}init(t){const{target:e,alpha:i,heat:n}=t;t.heatOnly||Object.entries(t).forEach(([a,h])=>{if(a==="target"||a==="alpha"||a==="heat"||a==="heatOnly")return;h=h;const c=this.graphics.get(a);if(!(!c||!h.draw))if(h.inner)this.drawCutBox(c,h.outer,h.inner,h.color,i);else{const{x:u,y:o,width:l,height:g}=h.outer;c.rect(u,o,l,Math.max(g,1)),c.fill({color:h.color,alpha:i})}});const{invalidationCount:s,draw:r}=n;if(s>0&&r){const h=Math.min(s/20,1),c=t[Ut.Margin],l=ug([255,255,0],[255,0,0],h);this.heatGraphics.rect(c.outer.x,c.outer.y,c.outer.width,c.outer.height),this.heatGraphics.fill({color:l,alpha:Math.min(.3,h)}),this.heatGraphics.stroke({color:l,alpha:Math.max(.3,h),pixelLine:!0})}this.position.set(e.x,e.y)}reset(){this.graphics.forEach(t=>t.clear()),this.heatGraphics.clear(),this.removeFromParent()}drawCutBox(t,e,i,n,s){const{x:r,y:a,width:h,height:c}=e,{x:u,y:o,width:l,height:g}=i;t.rect(r,a,h,c),t.fill({color:n,alpha:s}),t.rect(u,o,l,g),t.cut()}}var Ig=Object.defineProperty,dg=(A,t,e)=>t in A?Ig(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,HA=(A,t,e)=>dg(A,typeof t!="symbol"?t+"":t,e);class ur{constructor(){HA(this,"holder",new D.Container),HA(this,"regions",new Map),HA(this,"colors",{[Ut.Margin]:"#B68655",[Ut.Padding]:"#BAC57F",[Ut.Border]:"#E7C583",[Ut.Content]:"#89B1BE",[Ut.Flex]:"#6E28D9"}),HA(this,"alpha",.75),Object.values(Ut).forEach(t=>{this.regions.set(t,{outer:new D.Rectangle,inner:new D.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 e=this.holder.children[t];D.BigPool.return(e)}}render(t){lg(t,this.regions);const e=Object.values(Ut).reduce((a,h)=>{const c=this.regions.get(h);if(!c)return a;const u=`debugDraw${h.charAt(0).toUpperCase()}${h.slice(1)}`;return a[h]={...c,color:this.colors[h],draw:t._styles.custom[u]??!0},a},{}),{left:i,top:n}=t.computedLayout,s=t.target.getGlobalPosition(),r=D.BigPool.get(fg,{...e,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(r,0)}destroy(){this.reset(),this.holder.destroy(),this.regions.clear()}}const Bg=Object.freeze(Object.defineProperty({__proto__:null,DebugRenderer:ur},Symbol.toStringTag,{value:"Module"}));D.extensions.add(yn);const Eg=Object.freeze(Object.defineProperty({__proto__:null,DebugRenderer:ur,Layout:ge,LayoutSystem:yn,applyStyle:sr,formatStyles:or,getNumberFromStyle:iA,getPixiSize:Qn,getTypeFromStyle:$t,getYoga:Bn,getYogaConfig:Yo,nearlyEqual:pn,onChildAdded:rr,onChildRemoved:ar,setYoga:Po,setYogaConfig:Ko},Symbol.toStringTag,{value:"Module"}));return x.ArraySubject=Pe,x.Button=Qc,x.ButtonState=Ho,x.Canvas=lh,x.Circle=Ti,x.Container=$e,x.ControlsBase=dA,x.ControlsDirective=ao,x.DOMContainer=dc,x.DOMElement=Go,x.DOMSprite=Cc,x.DisplayObject=xt,x.Drag=Io,x.Drop=fo,x.EVENTS=po,x.Easing=xc,x.Ellipse=mo,x.Flash=Co,x.FocusContainer=Lo,x.FocusManager=FA,x.FogVisibility=Qo,x.GamepadControls=ms,x.Graphics=ae,x.Howl=nh,x.Howler=me.Howler,x.Input=Bs,x.Joystick=pc,x.JoystickControls=ws,x.KeyboardControls=Qs,x.Mesh=fh,x.Navigation=wc,x.NineSliceSprite=Ic,x.ObjectSubject=Je,x.ParticlesEmitter=Sh,x.RadialGradient=kc,x.Rect=yo,x.Scene=dh,x.Scheduler=lo,x.Shake=Eo,x.Sound=uo,x.Sprite=fn,x.Svg=gh,x.Text=Mo,x.TilingSprite=Rh,x.Transition=Bo,x.Triangle=ch,x.Utils=xa,x.Video=xh,x.Viewport=uc,x.ViewportFollow=ho,x.animatedSequence=jl,x.animatedSignal=ki,x.bootstrapCanvas=vc,x.checkDependencies=Xe,x.computed=Ct,x.cond=eh,x.createComponent=ot,x.createTabindexNavigator=Fc,x.effect=it,x.focusManager=mt,x.h=gt,x.isAnimatedSignal=ye,x.isArraySubject=Ta,x.isComputed=pe,x.isElement=bt,x.isElementFrozen=St,x.isObjectSubject=Oa,x.isObservable=ca,x.isPrimitive=Ri,x.isSignal=_,x.isTrigger=ze,x.linkedSignal=vs,x.loop=th,x.mount=Oi,x.on=DA,x.registerAllComponents=Fi,x.registerComponent=st,x.signal=Y,x.tick=Ih,x.trigger=rh,x.untracked=fi,x.useDefineProps=Ni,x.useFocusChange=Sc,x.useFocusIndex=Dc,x.useFocusedElement=bc,x.useProps=Qt,x.waitForDependencies=ro,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),x})({},PIXI);
5
- //# sourceMappingURL=index.global.js.map
1
+ var CanvasEngine=(function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},f=(e,t,i)=>(i=e==null?{}:n(o(e)),d(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));t=f(t,1);var p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},p(e,t)};function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);p(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function h(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function g(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function _(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function v(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function y(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function x(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function ee(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof _==`function`?_(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function S(e){return typeof e==`function`}function te(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ne=te(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
2
+ `+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
3
+ `):``,this.name=`UnsubscriptionError`,this.errors=t}});function re(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ie=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=_(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var c=this.initialTeardown;if(S(c))try{c()}catch(e){i=e instanceof ne?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=_(l),d=u.next();!d.done;d=u.next()){var f=d.value;try{se(f)}catch(e){i??=[],e instanceof ne?i=y(y([],v(i)),v(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new ne(i)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)se(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&re(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&re(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),ae=ie.EMPTY;function oe(e){return e instanceof ie||e&&`closed`in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function se(e){S(e)?e():e.unsubscribe()}var C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ce={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ce.delegate;return i?.setTimeout?i.setTimeout.apply(i,y([e,t],v(n))):setTimeout.apply(void 0,y([e,t],v(n)))},clearTimeout:function(e){return(ce.delegate?.clearTimeout||clearTimeout)(e)},delegate:void 0};function le(e){ce.setTimeout(function(){var t=C.onUnhandledError;if(t)t(e);else throw e})}function ue(){}var de=(function(){return me(`C`,void 0,void 0)})();function fe(e){return me(`E`,void 0,e)}function pe(e){return me(`N`,e,void 0)}function me(e,t,n){return{kind:e,value:t,error:n}}var he=null;function w(e){if(C.useDeprecatedSynchronousErrorHandling){var t=!he;if(t&&(he={errorThrown:!1,error:null}),e(),t){var n=he,r=n.errorThrown,i=n.error;if(he=null,r)throw i}}else e()}function ge(e){C.useDeprecatedSynchronousErrorHandling&&he&&(he.errorThrown=!0,he.error=e)}var _e=function(e){m(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,oe(t)&&t.add(n)):n.destination=Ce,n}return t.create=function(e,t,n){return new be(e,t,n)},t.prototype.next=function(e){this.isStopped?E(pe(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?E(fe(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?E(de,this):(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(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ie),ve=Function.prototype.bind;function T(e,t){return ve.call(e,t)}var ye=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){xe(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){xe(e)}else xe(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){xe(e)}},e}(),be=function(e){m(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(S(t)||!t)a={next:t??void 0,error:n??void 0,complete:r??void 0};else{var o;i&&C.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&T(t.next,o),error:t.error&&T(t.error,o),complete:t.complete&&T(t.complete,o)}):a=t}return i.destination=new ye(a),i}return t}(_e);function xe(e){C.useDeprecatedSynchronousErrorHandling?ge(e):le(e)}function Se(e){throw e}function E(e,t){var n=C.onStoppedNotification;n&&ce.setTimeout(function(){return n(e,t)})}var Ce={closed:!0,next:ue,error:Se,complete:ue},we=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();function Te(e){return e}function Ee(e){return e.length===0?Te:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var D=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=ke(e)?e:new be(e,t,n);return w(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return t=De(t),new t(function(t,r){var i=new be({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[we]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ee(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=De(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function De(e){return e??C.Promise??Promise}function Oe(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function ke(e){return e&&e instanceof _e||Oe(e)&&oe(e)}function Ae(e){return S(e?.lift)}function je(e){return function(t){if(Ae(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}function Me(e,t,n,r,i){return new Ne(e,t,n,r,i)}var Ne=function(e){m(t,e);function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},t}(_e),Pe=te(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}}),Fe=function(e){m(t,e);function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t.prototype.lift=function(e){var t=new Ie(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Pe},t.prototype.next=function(e){var t=this;w(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var i=_(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;w(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;w(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,`observed`,{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?ae:(this.currentObservers=null,a.push(e),new ie(function(){t.currentObservers=null,re(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new D;return e.source=this,e},t.create=function(e,t){return new Ie(e,t)},t}(D),Ie=function(e){m(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??ae},t}(Fe),Le=function(e){m(t,e);function t(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(t.prototype,`value`,{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Fe),Re={now:function(){return(Re.delegate||Date).now()},delegate:void 0},ze=function(e){m(t,e);function t(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0),r===void 0&&(r=Re);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a<i.length&&!e.closed;a+=r?1:2)e.next(i[a]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,c=1;c<r.length&&r[c]<=o;c+=2)s=c;s&&r.splice(0,s+1)}},t}(Fe);function Be(e){return e&&S(e.schedule)}function Ve(e){return e[e.length-1]}function He(e){return S(Ve(e))?e.pop():void 0}function Ue(e){return Be(Ve(e))?e.pop():void 0}var We=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`});function Ge(e){return S(e?.then)}function Ke(e){return S(e[we])}function qe(e){return Symbol.asyncIterator&&S(e?.[Symbol.asyncIterator])}function Je(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ye(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var Xe=Ye();function Ze(e){return S(e?.[Xe])}function Qe(e){return x(this,arguments,function(){var t,n,r,i;return g(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,b(t.read())];case 3:return n=a.sent(),r=n.value,i=n.done,i?[4,b(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,b(r)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function $e(e){return S(e?.getReader)}function et(e){if(e instanceof D)return e;if(e!=null){if(Ke(e))return tt(e);if(We(e))return nt(e);if(Ge(e))return rt(e);if(qe(e))return at(e);if(Ze(e))return it(e);if($e(e))return O(e)}throw Je(e)}function tt(e){return new D(function(t){var n=e[we]();if(S(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}function nt(e){return new D(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function rt(e){return new D(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,le)})}function it(e){return new D(function(t){var n,r;try{for(var i=_(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function at(e){return new D(function(t){ot(e,t).catch(function(e){return t.error(e)})})}function O(e){return at(Qe(e))}function ot(e,t){var n,r,i,a;return h(this,void 0,void 0,function(){var o,s;return g(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=ee(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function st(e,t){return t===void 0&&(t=0),je(function(n,r){n.subscribe(Me(r,function(n){return k(r,e,function(){return r.next(n)},t)},function(){return k(r,e,function(){return r.complete()},t)},function(n){return k(r,e,function(){return r.error(n)},t)}))})}function ct(e,t){return t===void 0&&(t=0),je(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function lt(e,t){return et(e).pipe(ct(t),st(t))}function ut(e,t){return et(e).pipe(ct(t),st(t))}function dt(e,t){return new D(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ft(e,t){return new D(function(n){var r;return k(n,t,function(){r=e[Xe](),k(n,t,function(){var e,t,i;try{e=r.next(),t=e.value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return S(r?.return)&&r.return()}})}function pt(e,t){if(!e)throw Error(`Iterable cannot be null`);return new D(function(n){k(n,t,function(){var r=e[Symbol.asyncIterator]();k(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function mt(e,t){return pt(Qe(e),t)}function ht(e,t){if(e!=null){if(Ke(e))return lt(e,t);if(We(e))return dt(e,t);if(Ge(e))return ut(e,t);if(qe(e))return pt(e,t);if(Ze(e))return ft(e,t);if($e(e))return mt(e,t)}throw Je(e)}function gt(e,t){return t?ht(e,t):et(e)}function _t(e){return!!e&&(e instanceof D||S(e.lift)&&S(e.subscribe))}function vt(e,t){return je(function(n,r){var i=0;n.subscribe(Me(r,function(n){r.next(e.call(t,n,i++))}))})}var yt=Array.isArray;function bt(e,t){return yt(t)?e.apply(void 0,y([],v(t))):e(t)}function xt(e){return vt(function(t){return bt(e,t)})}var St=Array.isArray,Ct=Object.getPrototypeOf,wt=Object.prototype,Tt=Object.keys;function Et(e){if(e.length===1){var t=e[0];if(St(t))return{args:t,keys:null};if(Dt(t)){var n=Tt(t);return{args:n.map(function(e){return t[e]}),keys:n}}}return{args:e,keys:null}}function Dt(e){return e&&typeof e==`object`&&Ct(e)===wt}function Ot(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}function kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ue(e),r=He(e),i=Et(e),a=i.args,o=i.keys;if(a.length===0)return gt([],n);var s=new D(At(a,n,o?function(e){return Ot(o,e)}:Te));return r?s.pipe(xt(r)):s}function At(e,t,n){return n===void 0&&(n=Te),function(r){jt(t,function(){for(var i=e.length,a=Array(i),o=i,s=i,c=function(i){jt(t,function(){var c=gt(e[i],t),l=!1;c.subscribe(Me(r,function(e){a[i]=e,l||(l=!0,s--),s||r.next(n(a.slice()))},function(){--o||r.complete()}))},r)},l=0;l<i;l++)c(l)},r)}}function jt(e,t,n){e?k(n,e,t):t()}function Mt(e){return new D(function(t){et(e()).subscribe(t)})}function Nt(e,t){return je(function(n,r){var i=0;n.subscribe(Me(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function Pt(e){return je(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function Ft(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new Fe}:t,r=e.resetOnError,i=r===void 0?!0:r,a=e.resetOnComplete,o=a===void 0?!0:a,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(e){var t,r,a,s=0,l=!1,u=!1,d=function(){r?.unsubscribe(),r=void 0},f=function(){d(),t=a=void 0,l=u=!1},p=function(){var e=t;f(),e?.unsubscribe()};return je(function(e,m){s++,!u&&!l&&d();var h=a??=n();m.add(function(){s--,s===0&&!u&&!l&&(r=It(p,c))}),h.subscribe(m),!t&&s>0&&(t=new be({next:function(e){return h.next(e)},error:function(e){u=!0,d(),r=It(f,i,e),h.error(e)},complete:function(){l=!0,d(),r=It(f,o),h.complete()}}),et(e).subscribe(t))})(e)}}function It(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var i=new be({next:function(){i.unsubscribe(),e()}});return et(t.apply(void 0,y([],v(n)))).subscribe(i)}}function Lt(e,t,n){var r,i,a,o,s=!1;return e&&typeof e==`object`?(r=e.bufferSize,o=r===void 0?1/0:r,i=e.windowTime,t=i===void 0?1/0:i,a=e.refCount,s=a===void 0?!1:a,n=e.scheduler):o=e??1/0,Ft({connector:function(){return new ze(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}var Rt=u({arrayEquals:()=>Ut,calculateDistance:()=>en,error:()=>Qt,fps2ms:()=>Vt,get:()=>Xt,isBrowser:()=>zt,isFunction:()=>Kt,isObject:()=>qt,isObservable:()=>Jt,isPromise:()=>Ht,log:()=>Zt,preciseNow:()=>Bt,set:()=>Yt,setObservablePoint:()=>$t});function zt(){return typeof window<`u`}function Bt(){return typeof performance<`u`?performance.now():Date.now()}function Vt(e){return 1e3/e}function Ht(e){return e&&e instanceof Promise}function Ut(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(typeof r==`object`&&r){if(typeof i!=`object`||!i)return!1;if(Array.isArray(r)){if(!Array.isArray(i)||!Ut(r,i))return!1}else if(!Wt(r,i))return!1}else if(r!==i)return!1}return!0}function Wt(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!Gt(e[r],t[r]))return!1;return!0}function Gt(e,t){return e===t?!0:typeof e==typeof t&&typeof e==`object`&&e?Array.isArray(e)?Array.isArray(t)&&Ut(e,t):Wt(e,t):!1}function Kt(e){return{}.toString.call(e)===`[object Function]`}function qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&e.constructor===Object}function Jt(e){return e instanceof D}function Yt(e,t,n,r=!1){if(Object(e)!==e)return e;typeof t==`string`&&(t=t.split(`.`));let i=t.length;if(!i)return e;let a=e;for(let e=0;e<i-1;e++){let n=t[e],i=t[e+1],o=!isNaN(Number(i))&&isFinite(Number(i));(!a[n]||typeof a[n]!=`object`)&&(a[n]=o&&!r?[]:{}),a=a[n]}return a[t[i-1]]=n,e}function Xt(e,t){let n=t.split(`.`),r=e;for(let e of n){if(r[e]===void 0)return;r=r[e]}return r}function Zt(e){console.log(e)}function Qt(e){console.error(e)}function $t(e,t){typeof t==`number`?e.set(t):Array.isArray(t)?e.set(t[0],t[1]):qt(t)&&`value`in t?e.set(t.value.x,t.value.y):e.set(t.x,t.y)}function en(e,t,n,r){let i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}var tn=class{constructor(){this.boundKeys={},this.stop=!1,this._controlsOptions={},this.serverFps=60}start(){this.setupListeners(),this.interval=setInterval(()=>{this.preStep()},Vt(this.serverFps??60))}destroy(){this.interval&&clearInterval(this.interval),this.cleanup()}bindKey(e,t,n,r){Array.isArray(e)||(e=[e]);let i=Object.assign({repeat:!1},n);e.forEach(e=>{this.boundKeys[e]={actionName:t,options:i,parameters:r}})}applyInput(e){let t=this.boundKeys[e];if(!t)return;let{repeat:n,keyDown:r}=t.options;if(r){let e=t.parameters;typeof e==`function`&&(e=e()),r(t)}}getControl(e){return this.boundKeys[e]}getControls(){return this.boundKeys}stopInputs(){this.stop=!0}listenInputs(){this.stop=!1}setInputs(e){if(e){this.boundKeys={};for(let t in e){let n=e[t],{bind:r}=n,i=r;Array.isArray(i)||(i=[r]);for(let e of i)this.bindKey(e,t,n)}this._controlsOptions=e}}get options(){return this._controlsOptions}},nn=function(e){return 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}({}),rn={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`},an=(e=>{let t={};for(let n in e){let r=e[n];t[r]=n}return t})(rn),on=class extends tn{constructor(...e){super(...e),this.keyState={},this.lastKeyPressed=null,this.lastActionTimes={},this.directionState={up:!1,down:!1,left:!1,right:!1}}setupListeners(){document.addEventListener(`keydown`,e=>{this.onKeyChange(e,!0)}),document.addEventListener(`keyup`,e=>{this.onKeyChange(e,!1)})}cleanup(){document.removeEventListener(`keydown`,e=>{this.onKeyChange(e,!0)}),document.removeEventListener(`keyup`,e=>{this.onKeyChange(e,!1)})}preStep(){if(this.stop)return;let e=this.getDirection();if(e!==`none`){let t=this.boundKeys[e];if(t){let{keyDown:n}=t.options;n&&this.applyInput(e)}}else{let e=Object.keys(this.boundKeys);for(let t of e)this.applyInput(t)}}applyInput(e){let t=this.keyState[e];if(!t)return;let{isDown:n,count:r}=t;if(n){let t=this.boundKeys[e];if(!t)return;let{repeat:n,keyDown:i,throttle:a}=t.options;if(n||r==0){if(typeof a==`number`){let e=Date.now();if(e-(this.lastActionTimes[t.actionName]??0)<a)return;this.lastActionTimes[t.actionName]=e}let n=t.parameters;typeof n==`function`&&(n=n()),i&&i(t),this.keyState[e].count++}}}applyKeyDown(e){let t=an[e],n=new Event(`keydown`);n.keyCode=t,this.onKeyChange(n,!0)}applyKeyUp(e){let t=an[e],n=new Event(`keyup`);n.keyCode=t,this.onKeyChange(n,!1)}applyKeyPress(e){return new Promise(t=>{this.applyKeyDown(e),setTimeout(()=>{this.applyKeyUp(e),t()},200)})}onKeyChange(e,t){e||=window.event;let n=rn[e.keyCode];if(n&&this.boundKeys[n]){if(this.keyState[n]??(this.keyState[n]={count:0,isDown:!0}),this.keyState[n].isDown=t,!t){this.keyState[n].count=0;let{keyUp:e}=this.boundKeys[n].options;e&&e(this.boundKeys[n])}this.lastKeyPressed=t?e.keyCode:null}n&&this.updateDirectionState(n,t)}updateDirectionState(e,t){switch(e){case`up`:this.directionState.up=t;break;case`down`:this.directionState.down=t;break;case`left`:this.directionState.left=t;break;case`right`:this.directionState.right=t;break}}getDirection(){let{up:e,down:t,left:n,right:r}=this.directionState;return e&&n?`up_left`:e&&r?`up_right`:t&&n?`down_left`:t&&r?`down_right`:e?`up`:t?`down`:n?`left`:r?`right`:`none`}async applyControl(e,t){let n=this._controlsOptions[e];if(n){let e=Array.isArray(n.bind)?n.bind[0]:n.bind;t===void 0?await this.applyKeyPress(e):t?this.applyKeyDown(e):this.applyKeyUp(e)}}listenInputs(){super.listenInputs(),this.keyState={}}},sn={events:{},publish:function(e,t){this.events.hasOwnProperty(e)&&this.events[e].forEach(function(e){return e(t)})},subscribe:function(e,t){return this.events.hasOwnProperty(e)||(this.events[e]=[]),this.events[e].push(t),{unsubscribe:(function(){var n=this.events[e].indexOf(t);n!==-1&&this.events[e].splice(n,1)}).bind(this)}}},A={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`}},cn={LEFT:{NAME:`left_stick`,AXES:{X:0,Y:1}},RIGHT:{NAME:`right_stick`,AXES:{X:2,Y:3}}},ln={LEFT:`left`,RIGHT:`right`,TOP:`top`,BOTTOM:`bottom`},un={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},dn=.8,fn=function(e){console.warn&&typeof console.warn==`function`?console.warn(e):console.log(e)},pn=function(e,t){var n=[];return Object.keys(t).forEach(function(r){(t[r]===e||Array.isArray(t[r])&&t[r].indexOf(e)!==-1)&&n.push(r)}),n},mn=function(e){return!!e&&!!e.type&&!!e.playEffect&&typeof e.playEffect==`function`||!1},hn=function(){return!!window.navigator.getGamepads&&typeof window.navigator.getGamepads==`function`||!1},j={loopStarted:!1,instances:{},buttonEvents:{joypad:[]},settings:{axisMovementThreshold:dn},remove:function(e){return delete this.instances[e]},on:function(e,t){switch(e){case A.CONNECT.ALIAS:return sn.subscribe(A.CONNECT.ALIAS,t);case A.DISCONNECT.ALIAS:return sn.subscribe(A.DISCONNECT.ALIAS,t);case A.BUTTON_PRESS.ALIAS:return sn.subscribe(A.BUTTON_PRESS.ALIAS,t);case A.BUTTON_RELEASE.ALIAS:return sn.subscribe(A.BUTTON_RELEASE.ALIAS,t);case A.AXIS_MOVEMENT.ALIAS:return sn.subscribe(A.AXIS_MOVEMENT.ALIAS,t)}},vibrate:function(e,t){var n=e.vibrationActuator,r=t||this.settings.vibration;if(mn(n)){var i=n.type;return e.vibrationActuator.playEffect(i,r)}fn(`No vibration actuator interface found - https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator`)},set:function(e){var t=e.axisMovementThreshold,n=e.vibration,r=e.customButtonMapping,i=parseFloat(t);isNaN(i)||(this.settings.axisMovementThreshold=i),this.settings.vibration=n,this.settings.customButtonMapping=r},trigger:function(e,t){return sn.publish(e,t)}},gn=function(e){e.buttons.forEach(function(t,n){var r=pn(n,j.settings.customButtonMapping||un),i=j.buttonEvents;r&&r.length&&r.forEach(function(r){t.pressed?(i.joypad[e.index][r]||(i.joypad[e.index][r]={pressed:!0,hold:!1,released:!1}),i.joypad[e.index][r].button=t,i.joypad[e.index][r].index=n,i.joypad[e.index][r].gamepad=e):!t.pressed&&i.joypad[e.index][r]&&(i.joypad[e.index][r].released=!0,i.joypad[e.index][r].hold=!1)})})},_n=function(e){var t=function(e){return new CustomEvent(A.AXIS_MOVEMENT.ALIAS,{detail:e})},n=j.settings.axisMovementThreshold,r=e.axes,i=r.length/2;r.forEach(function(r,a){if(Math.abs(r)>n){var o=null,s=null,c=r;o=a<i?cn.LEFT.NAME:cn.RIGHT.NAME,(a===cn.LEFT.AXES.X||a===cn.RIGHT.AXES.X)&&(s=r<0?ln.LEFT:ln.RIGHT),(a===cn.LEFT.AXES.Y||a===cn.RIGHT.AXES.Y)&&(s=r<0?ln.TOP:ln.BOTTOM);var l={gamepad:e,totalSticks:i,stickMoved:o,directionOfMovement:s,axisMovementValue:c,axis:a};return window.dispatchEvent(t(l))}})},vn=function(e,t){t[e].pressed?(xn(A.BUTTON_PRESS.ALIAS,t,e),t[e].pressed=!1,t[e].hold=!0,t[e].last_event=A.BUTTON_PRESS.ALIAS):t[e].hold||t[e].released&&t[e].last_event===A.BUTTON_PRESS.ALIAS&&(xn(A.BUTTON_RELEASE.ALIAS,t,e),delete t[e])},yn={id:null,start:function(){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame,t=j.buttonEvents,n=window.navigator.getGamepads();n=Array.prototype.slice.call(n),n.forEach(function(e,n){e&&(t.joypad[n]||(t.joypad[n]={}),j.instances[n]=e,gn(e),_n(e))}),t.joypad.forEach(function(e){e&&Object.keys(e).forEach(function(t){vn(t,e)})}),this.id=e(this.start.bind(this))},stop:function(e){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)(e)}},bn=function(){window.addEventListener(A.CONNECT.NATIVE,function(e){if(sn.publish(A.CONNECT.ALIAS,e),!j.loopStarted)return j.loopStarted=!0,yn.start()}),window.addEventListener(A.DISCONNECT.NATIVE,function(e){if(sn.publish(A.DISCONNECT.ALIAS,e),j.remove(e.gamepad.index),j.buttonEvents.joypad[e.gamepad.index]=null,!Object.keys(j.instances).length)return j.loopStarted=!1,yn.stop(yn.id)}),window.addEventListener(A.BUTTON_PRESS.ALIAS,function(e){return sn.publish(A.BUTTON_PRESS.ALIAS,e)}),window.addEventListener(A.BUTTON_RELEASE.ALIAS,function(e){return sn.publish(A.BUTTON_RELEASE.ALIAS,e)}),window.addEventListener(A.AXIS_MOVEMENT.ALIAS,function(e){return sn.publish(A.AXIS_MOVEMENT.ALIAS,e)})},xn=function(e,t,n){var r=function(t){return new CustomEvent(e,{detail:t})},i=t[n],a=i.index,o=i.gamepad,s={buttonName:n,button:t[n].button,index:a,gamepad:o};window.dispatchEvent(r(s))};bn(),hn()?window.joypad=j:(window.joypad={},fn(`Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API`));var Sn={button_0:`action`,button_1:`back`,button_9:`back`},Cn={top:`up`,bottom:`down`,left:`left`,right:`right`},wn=class extends tn{constructor(...e){super(...e),this.gamepadEnabled=!0,this.gamepadConfig={enabled:!0,buttonMapping:Sn,axisMapping:Cn,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),null)}initGamepad(){if(typeof window>`u`)return;let e=window.joypad;if(!e){this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1);return}this.joypad=e,this.joypad.on(`connect`,()=>this.handleGamepadConnect()),this.joypad.on(`disconnect`,()=>this.handleGamepadDisconnect()),this.joypad.on(`button_press`,e=>this.handleGamepadButtonPress(e)),this.joypad.on(`axis_move`,e=>this.handleGamepadAxisMove(e))}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(e=>e()))}handleGamepadDisconnect(){this.gamepadMoveInterval&&=(clearInterval(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(e=>e())}handleGamepadButtonPress(e){if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;let{buttonName:t}=e.detail,n=(this.gamepadConfig.buttonMapping||Sn)[t];n&&this.applyControl(n).catch(()=>{})}handleGamepadAxisMove(e){if(!this.gamepadEnabled||!this.gamepadConfig.enabled||this.stop)return;this.gamepadMoving=!0,this.gamepadAxisDate=Date.now();let t=e.detail.directionOfMovement,n=this.gamepadConfig.axisMapping||Cn;if(t===`top`?t=n.top||`up`:t===`bottom`?t=n.bottom||`down`:t===`left`?t=n.left||`left`:t===`right`&&(t=n.right||`right`),this.joypad&&this.joypad.instances){let e=Object.values(this.joypad.instances);if(e.length>0){let t=e[0],n=t.axes?.[0]||0,r=t.axes?.[1]||0;this.currentPower=Math.min(1,Math.sqrt(n*n+r*r))}}this.gamepadDirections={[t]:!0};for(let e of[`up`,`down`,`left`,`right`])this.gamepadDirections[e]||this.applyControl(e,!1).catch(()=>{});this.processGamepadMovement()}processGamepadMovement(){if(this.gamepadMoving&&!this.stop){if(this.joypad&&this.joypad.instances){let e=Object.values(this.joypad.instances);if(e.length>0){let t=e[0],n=t.axes?.[0]||0,r=t.axes?.[1]||0;this.currentPower=Math.min(1,Math.sqrt(n*n+r*r))}}for(let e in this.gamepadDirections)this.gamepadDirections[e]&&this.applyControl(e,!0,{power:this.currentPower}).catch(()=>{})}}preStep(){if(!this.stop&&Date.now()-this.gamepadAxisDate>100&&this.gamepadMoving)for(let e of[`up`,`down`,`left`,`right`])this.gamepadDirections={},this.gamepadMoving=!1,this.applyControl(e,!1).catch(()=>{})}updateGamepadConfig(e){this.gamepadConfig.onConnect&&this.offConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.offDisconnect(this.gamepadConfig.onDisconnect),this.gamepadConfig={enabled:e.enabled===void 0?!0:e.enabled,buttonMapping:e.buttonMapping||Sn,axisMapping:e.axisMapping||Cn,axisThreshold:e.axisThreshold||.5,moveInterval:e.moveInterval||400,onConnect:e.onConnect,onDisconnect:e.onDisconnect,gamepadConnected:e.gamepadConnected},this.gamepadConfig.onConnect&&this.onConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.onDisconnect(this.gamepadConfig.onDisconnect)}extractGamepadConfig(e){e.gamepad&&this.updateGamepadConfig(e.gamepad)}getGamepadConfig(){return this.gamepadConfig}async applyControl(e,t,n){if(!this._controlsOptions[e])return;let r=Object.keys(this.boundKeys);for(let i of r){let r=this.boundKeys[i];if(r.actionName===String(e)){if(t===void 0){if(r.options.keyDown){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyDown(r,e)}return new Promise(e=>{setTimeout(()=>{if(r.options.keyUp){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyUp(r,e)}e()},200)})}else if(t){if(r.options.keyDown){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyDown(r,e)}}else if(r.options.keyUp){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyUp(r,e)}break}}}setInputs(e){super.setInputs(e),this.extractGamepadConfig(e)}onConnect(e){this.connectCallbacks.push(e)}onDisconnect(e){this.disconnectCallbacks.push(e)}offConnect(e){let t=this.connectCallbacks.indexOf(e);t>-1&&this.connectCallbacks.splice(t,1)}offDisconnect(e){let t=this.disconnectCallbacks.indexOf(e);t>-1&&this.disconnectCallbacks.splice(t,1)}isConnected(){return this.gamepadMoveInterval!==null}reinit(){this.joypad||this.initGamepad()}},Tn={top:`up`,bottom:`down`,left:`left`,right:`right`,top_left:[`up`,`left`],top_right:[`up`,`right`],bottom_left:[`down`,`left`],bottom_right:[`down`,`right`]},En=class extends tn{constructor(...e){super(...e),this.joystickEnabled=!0,this.joystickConfig={enabled:!0,directionMapping:Tn,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),null)}preStep(){this.stop}handleJoystickChange(e){if(!this.joystickEnabled||!this.joystickConfig.enabled||this.stop)return;if(this.joystickLastUpdate=Date.now(),this.currentPower=e.power,e.power<(this.joystickConfig.threshold||.1)){this.stopAllMovements();return}let t=(this.joystickConfig.directionMapping||Tn)[e.direction];if(!t){this.stopAllMovements();return}let n=Array.isArray(t)?t:[t],r=this.joystickDirections,i={};n.forEach(e=>{i[e]=!0});let a=new Set([...Object.keys(this.joystickDirections),...Object.keys(i)]);for(let e of a){let t=this.joystickDirections[e],n=i[e]||!1;t&&!n&&this.applyControl(e,!1).catch(()=>{})}this.joystickDirections={...i},this.joystickMoving=!0;let o=n.filter(e=>!r[e]);for(let t of o)this.applyControl(t,!0,{power:e.power}).catch(()=>{});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),null);let e=Object.keys(this.joystickDirections);for(let t of e)this.applyControl(t,!1).catch(()=>{});this.joystickDirections={},this.joystickMoving=!1,this.currentPower=0}processJoystickMovement(){if(this.joystickMoving&&!this.stop)for(let e in this.joystickDirections)this.joystickDirections[e]&&this.applyControl(e,!0,{power:this.currentPower}).catch(()=>{})}updateJoystickConfig(e){this.joystickConfig={enabled:e.enabled===void 0?!0:e.enabled,directionMapping:e.directionMapping||Tn,moveInterval:e.moveInterval||50,threshold:e.threshold||.1}}extractJoystickConfig(e){e.joystick&&this.updateJoystickConfig(e.joystick)}getJoystickConfig(){return this.joystickConfig}async applyControl(e,t,n){if(!this._controlsOptions[e])return;let r=Object.keys(this.boundKeys);for(let i of r){let r=this.boundKeys[i];if(r.actionName===String(e)){if(t===void 0){if(r.options.keyDown){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyDown(r,e)}return new Promise(e=>{setTimeout(()=>{if(r.options.keyUp){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyUp(r,e)}e()},200)})}else if(t){if(r.options.keyDown){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyDown(r,e)}}else if(r.options.keyUp){let e=n??r.parameters;typeof e==`function`&&(e=e()),r.options.keyUp(r,e)}break}}}setInputs(e){super.setInputs(e),this.extractJoystickConfig(e)}isActive(){return this.joystickMoving}},Dn={},M=class{};function On(e,t){Dn[e]=t}function kn(e,t){if(!Dn[t])return null;let n=new Dn[t];return n.onInit?.(e),n}var An=Object.defineProperty,N=(e,t)=>An(e,`name`,{value:t,configurable:!0}),jn=class extends Le{static{N(this,`ArraySubject`)}_items=[];constructor(e=[]){super({type:`init`,items:e}),this.createProxy(e)}createProxy(e){this._items=new Proxy(e,{get:N((e,t,n)=>{let r=e[t];return typeof r==`function`?(...n)=>{let i=`update`,a,o=!1,s=[],c=!0;switch(t){case`push`:a=e.length,i=`add`,o=!0;break;case`pop`:a=e.length-1,i=`remove`,o=!0;break;case`unshift`:a=0,i=`add`,o=!0;break;case`shift`:a=0,i=`remove`,o=!0;break;case`splice`:a=n[0];let t=n[1],r=n.slice(2);s=r,t>0&&r.length===0?i=`remove`:t===0&&r.length>0?i=`add`:t===0&&r.length===0?c=!1:i=`update`,o=!0;break}let l=r.apply(e,n);return o&&c&&(t===`splice`?this.next({type:i,index:a,items:s}):this.next({type:i,index:a,items:n})),l}:Reflect.get(e,t,n)},`get`),set:N((e,t,n)=>{let r=isNaN(Number(t))?void 0:Number(t);return e[t]=n,this.next({type:`update`,index:r,items:[n]}),!0},`set`)})}get items(){return this._items}set items(e){this.createProxy(e),this.next({type:`reset`,items:e})}},Mn=N(e=>`_items`in e,`isArraySubject`),Nn=class extends Le{static{N(this,`ObjectSubject`)}_obj;constructor(e={}){super({type:`init`,value:e}),this.createProxy(e)}createProxy(e){this._obj=new Proxy(e,{get:N((e,t,n)=>Reflect.get(e,t,n),`get`),set:N((e,t,n,r)=>{let i=t,a=i in e?`update`:`add`;return e[i]=n,this.next({type:a,key:i,value:n}),!0},`set`),deleteProperty:N((e,t)=>{let n=t;if(n in e){let t=e[n];return delete e[n],this.next({type:`remove`,key:n,value:t}),!0}return!1},`deleteProperty`)})}get obj(){return this._obj}set obj(e){this.createProxy(e),this.next({type:`reset`,value:e})}},Pn=N(e=>`_obj`in e,`isObjectSubject`),P=N(()=>{let 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`)(),Fn=N(e=>{P.currentDependencyTracker&&P.currentDependencyTracker(e)},`trackDependency`);function F(e,t){let n;n=Array.isArray(e)?new jn(e):typeof e==`object`&&e?new Nn(e):new Le(e);let r=N(()=>n instanceof jn?n.items:n instanceof Nn?n.obj:n.value,`getValue`),i=N(function(){return Fn(i),r()},`fn`);return i.set=e=>{let i=r(),a=!0;a=t?.equal?!t.equal(i,e):i!==e,a&&(n instanceof jn?n.items=e:n instanceof Nn?n.obj=e:n.next(e))},i._isFrozen=!1,i.freeze=()=>{i._isFrozen=!0},i.unfreeze=()=>{i._isFrozen=!1,n instanceof jn?n.next({type:`init`,items:n.items}):n instanceof Nn?n.next({type:`init`,value:n.obj}):n.next(n.value)},i.mutate=e=>{e(r())},i.update=e=>{let t=e(r());i.set(t)},i.observable=n.asObservable().pipe(Nt(()=>!i._isFrozen)),i._subject=n,i}N(F,`signal`);function I(e){return!!(e&&e.observable)}N(I,`isSignal`);function In(e){return I(e)&&!!e.dependencies}N(In,`isComputed`);function L(e,t){let n=new Set,r=!0,i,a=P.currentDependencyTracker;P.currentDependencyTracker=e=>{n.add(e)},i=e(),e.isEffect&&(t=i),P.currentDependencyTracker=a;let o=kt([...n].map(e=>{if(In(e)&&`dependencies`in e){let t=e;if(t.dependencies.size===0)return new Le(t()).asObservable()}return e.observable})).pipe(Nt(()=>!r),vt(()=>e()),Pt(()=>t?.())),s=N(function(){return Fn(s),i},`fn`);return s.observable=o,s.subscription=o.subscribe(e=>{i=e}),s.dependencies=n,P.currentSubscriptionsTracker?.(s.subscription),r=!1,s}N(L,`computed`);function Ln(e,t){let n=new Set,r=!0,i,a,o,s,c,l,u=!1,d,f=0,p=null;if(typeof e==`function`)a=e,c=t?.equal;else{let t=e;if(o=t.source,s=t.computation,c=t.equal,typeof o==`function`&&!I(o)){let e=o;a=N(()=>{let t=e();if(s.length>1){let e=s(t,l);return l={source:t,value:e},e}else{let e=s(t);return l={source:t,value:e},e}},`computeFunction`)}else{let e=o;a=N(()=>{let t=e();if(s.length>1){let e=s(t,l);return l={source:t,value:e},e}else{let e=s(t);return l={source:t,value:e},e}},`computeFunction`)}}let m=P.currentDependencyTracker;P.currentDependencyTracker=e=>{n.add(e)},o&&typeof o==`function`&&!I(o)||o&&I(o)&&n.add(o),i=a(),P.currentDependencyTracker=m;let h=new Le(i),g=[...n].map(e=>{if(In(e)&&`dependencies`in e){let t=e;if(t.dependencies.size===0)return new Le(t()).asObservable()}return e.observable}),_;_=g.length>0?kt(g).pipe(Nt(()=>!r),vt(()=>{let e=a();return c?c(i,e)||(i=e,u=!1):i!==e&&(i=e,u=!1),i})):h.asObservable().pipe(Nt(()=>!r));let v=N(function(){if(Fn(v),u&&n.size>0){if(p!==f){let e=a();return u=!1,d=void 0,i=e,p=null,e}return d}return u?d:(n.size===0&&(i=a()),i)},`fn`);return v.observable=new D(e=>{let t=_.subscribe(t=>{n.size>0?(f++,u=!1,p=null,i=t):i=t,e.next(t)}),a;return n.size===0&&(a=h.pipe(Nt(()=>!r)).subscribe(t=>{e.next(t)})),e.next(i),()=>{t.unsubscribe(),a&&a.unsubscribe()}}),v.subscription=v.observable.subscribe(()=>{}),v.dependencies=n,v._subject=h,v.set=e=>{u||(p=f,s&&o&&(l={source:Rn(()=>{if(typeof o==`function`){let e=o;return I(e)?e():o()}return o()}),value:e})),u=!0,d=e,i=e,h.next(e)},P.currentSubscriptionsTracker?.(v.subscription),r=!1,v}N(Ln,`linkedSignal`);function Rn(e){let t=P.currentDependencyTracker,n=P.currentSubscriptionsTracker;P.currentDependencyTracker=null,P.currentSubscriptionsTracker=null;try{return e()}finally{P.currentDependencyTracker=t,P.currentSubscriptionsTracker=n}}N(Rn,`untracked`);function R(e){return e.isEffect=!0,L(e)}N(R,`effect`);function zn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Bn=(e,t,n)=>Math.min(Math.max(n,e),t),Vn=.001,Hn=.01,Un=.05;function Wn({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=Bn(Un,1,o),e=Bn(Hn,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=qn(t,o),c=Math.exp(-i);return Vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=qn(t**2,o);return(-i(t)+Vn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Vn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Kn(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Gn=12;function Kn(e,t,n){let r=n;for(let n=1;n<Gn;n++)r-=e(r)/t(r);return r}function qn(e,t){return e*Math.sqrt(1-t*t)}var Jn=[`duration`,`bounce`],Yn=[`stiffness`,`damping`,`mass`];function Xn(e,t){return t.some(t=>e[t]!==void 0)}function Zn(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Xn(e,Yn)&&Xn(e,Jn)){let n=Wn(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Qn(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=zn(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=Zn(a),p=$n,m=$n;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=qn(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}Qn.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var $n=e=>0,er=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},tr=(e,t,n)=>-n*e+n*t+e,nr=(e,t)=>n=>Math.max(Math.min(n,t),e),rr=e=>e%1?Number(e.toFixed(5)):e,ir=/(-)?([\d]*\.?[\d])+/g,ar=/(#[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,or=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function sr(e){return typeof e==`string`}var cr={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},lr=Object.assign(Object.assign({},cr),{transform:nr(0,1)});Object.assign(Object.assign({},cr),{default:1});var ur=(e=>({test:t=>sr(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}))(`%`);Object.assign(Object.assign({},ur),{parse:e=>ur.parse(e)/100,transform:e=>ur.transform(e*100)});var dr=(e,t)=>n=>!!(sr(n)&&or.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),fr=(e,t,n)=>r=>{if(!sr(r))return r;let[i,a,o,s]=r.match(ir);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},pr={test:dr(`hsl`,`hue`),parse:fr(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+ur.transform(rr(t))+`, `+ur.transform(rr(n))+`, `+rr(lr.transform(r))+`)`},mr=nr(0,255),hr=Object.assign(Object.assign({},cr),{transform:e=>Math.round(mr(e))}),gr={test:dr(`rgb`,`red`),parse:fr(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+hr.transform(e)+`, `+hr.transform(t)+`, `+hr.transform(n)+`, `+rr(lr.transform(r))+`)`};function _r(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var vr={test:dr(`#`),parse:_r,transform:gr.transform},yr={test:e=>gr.test(e)||vr.test(e)||pr.test(e),parse:e=>gr.test(e)?gr.parse(e):pr.test(e)?pr.parse(e):vr.parse(e),transform:e=>sr(e)?e:e.hasOwnProperty(`red`)?gr.transform(e):pr.transform(e)},br="${c}",xr="${n}";function Sr(e){return isNaN(e)&&sr(e)&&(e.match(ir)?.length??0)+(e.match(ar)?.length??0)>0}function Cr(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(ar);r&&(n=r.length,e=e.replace(ar,br),t.push(...r.map(yr.parse)));let i=e.match(ir);return i&&(e=e.replace(ir,xr),t.push(...i.map(cr.parse))),{values:t,numColors:n,tokenised:e}}function wr(e){return Cr(e).values}function Tr(e){let{values:t,numColors:n,tokenised:r}=Cr(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?br:xr,r<n?yr.transform(e[r]):rr(e[r]));return t}}var Er=e=>typeof e==`number`?0:e;function Dr(e){let t=wr(e);return Tr(e)(t.map(Er))}var Or={test:Sr,parse:wr,createTransformer:Tr,getAnimatableNone:Dr};function kr(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ar({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=kr(s,r,e+1/3),a=kr(s,r,e),o=kr(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var jr=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Mr=[vr,gr,pr],Nr=e=>Mr.find(t=>t.test(e)),Pr=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Fr=(e,t)=>{let n=Nr(e),r=Nr(t);Pr(e),Pr(t);let i=n.parse(e),a=r.parse(t);n===pr&&(i=Ar(i),n=gr),r===pr&&(a=Ar(a),r=gr);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=jr(i[t],a[t],e));return o.alpha=tr(i.alpha,a.alpha,e),n.transform(o)}},Ir=e=>typeof e==`number`,Lr=(e,t)=>n=>t(e(n)),Rr=(...e)=>e.reduce(Lr);function zr(e,t){return Ir(e)?n=>tr(e,t,n):yr.test(e)?Fr(e,t):Ur(e,t)}var Br=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>zr(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Vr=(e,t)=>{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zr(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function Hr(e){let t=Or.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e<n;e++)r||typeof t[e]==`number`?r++:t[e].hue===void 0?i++:a++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var Ur=(e,t)=>{let n=Or.createTransformer(t),r=Hr(e),i=Hr(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Rr(Br(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},Wr=(e,t)=>n=>tr(e,t,n);function Gr(e){if(typeof e==`number`)return Wr;if(typeof e==`string`)return yr.test(e)?Fr:Ur;if(Array.isArray(e))return Br;if(typeof e==`object`)return Vr}function Kr(e,t,n){let r=[],i=n||Gr(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Rr(Array.isArray(t)?t[n]:t,a)),r.push(a)}return r}function qr([e,t],[n]){return r=>n(er(e,t,r))}function Jr(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);a=t-1}let s=er(e[a],e[a+1],i);return t[a](s)}}function Yr(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=Kr(t,r,i),s=a===2?qr(e,o):Jr(e,o);return n?t=>s(Bn(e[0],e[a-1],t)):s}var Xr=e=>t=>1-e(1-t),Zr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qr=e=>t=>t**+e,$r=e=>t=>t*t*((e+1)*t-e),ei=e=>{let t=$r(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},ti=1.525,ni=4/11,ri=8/11,ii=9/10,ai=e=>e,oi=Qr(2),si=Xr(oi),ci=Zr(oi),li=e=>1-Math.sin(Math.acos(e)),ui=Xr(li),di=Zr(ui),fi=$r(ti),pi=Xr(fi),mi=Zr(fi),hi=ei(ti),gi=4356/361,_i=35442/1805,vi=16061/1805,yi=e=>{if(e===1||e===0)return e;let t=e*e;return e<ni?7.5625*t:e<ri?9.075*t-9.9*e+3.4:e<ii?gi*t-_i*e+vi:10.8*e*e-20.52*e+10.72},bi=Xr(yi),xi=e=>e<.5?.5*(1-yi(1-e*2)):.5*yi(e*2-1)+.5;function Si(e,t){return e.map(()=>t||ci).splice(0,e.length-1)}function Ci(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function wi(e,t){return e.map(e=>e*t)}function Ti({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=wi(r&&r.length===o.length?r:Ci(o),i);function c(){return Yr(s,o,{ease:Array.isArray(n)?n:Si(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Ei({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var Di={keyframes:Ti,spring:Qn,decay:Ei};function Oi(e){if(Array.isArray(e.to))return Ti;if(Di[e.type])return Di[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?Ti:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?Qn:Ti}var ki=1/60*1e3,Ai=typeof performance<`u`?()=>performance.now():()=>Date.now(),ji=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Ai()),ki);function Mi(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){let r=t[n];r(c),o.has(r)&&(s.schedule(r),e())}i=!1,a&&(a=!1,s.process(c))}};return s}var Ni=40,Pi=!0,Fi=!1,Ii=!1,Li={delta:0,timestamp:0},Ri=[`read`,`update`,`preRender`,`render`,`postRender`],zi=Ri.reduce((e,t)=>(e[t]=Mi(()=>Fi=!0),e),{}),Bi=Ri.reduce((e,t)=>{let n=zi[t];return e[t]=(e,t=!1,r=!1)=>(Fi||Wi(),n.schedule(e,t,r)),e},{}),Vi=Ri.reduce((e,t)=>(e[t]=zi[t].cancel,e),{});Ri.reduce((e,t)=>(e[t]=()=>zi[t].process(Li),e),{});var Hi=e=>zi[e].process(Li),Ui=e=>{Fi=!1,Li.delta=Pi?ki:Math.max(Math.min(e-Li.timestamp,Ni),1),Li.timestamp=e,Ii=!0,Ri.forEach(Hi),Ii=!1,Fi&&(Pi=!1,ji(Ui))},Wi=()=>{Fi=!0,Pi=!0,Ii||ji(Ui)};function Gi(e,t,n=0){return e-t-n}function Ki(e,t,n=0,r=!0){return r?Gi(t+-e,t,n):t-(e-t)+n}function qi(e,t,n,r){return r?e>=t+n:e<=-n}var Ji=e=>{let t=({delta:t})=>e(t);return{start:()=>Bi.update(t,!0),stop:()=>Vi.update(t)}};function Yi(e){var t,{from:n,autoplay:r=!0,driver:i=Ji,elapsed:a=0,repeat:o=0,repeatType:s=`loop`,repeatDelay:c=0,onPlay:l,onStop:u,onComplete:d,onRepeat:f,onUpdate:p}=e,m=zn(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:h}=m,g,_=0,v=m.duration,y,b=!1,x=!0,ee,S=Oi(m);(t=S).needsInterpolation?.call(t,n,h)&&(ee=Yr([0,100],[n,h],{clamp:!1}),n=0,h=100);let te=S(Object.assign(Object.assign({},m),{from:n,to:h}));function ne(){_++,s===`reverse`?(x=_%2==0,a=Ki(a,v,c,x)):(a=Gi(a,v,c),s===`mirror`&&te.flipTarget()),b=!1,f&&f()}function re(){g.stop(),d&&d()}function ie(e){if(x||(e=-e),a+=e,!b){let e=te.next(Math.max(0,a));y=e.value,ee&&(y=ee(y)),b=x?e.done:a<=0}p?.(y),b&&(_===0&&(v??=a),_<o?qi(a,v,c,x)&&ne():re())}function ae(){l?.(),g=i(ie),g.start()}return r&&ae(),{stop:()=>{u?.(),g.stop()}}}var Xi=e=>{if(typeof e==`number`)return t=>Math.round(t/e)*e;{let t=0,n=e.length;return r=>{let i=Math.abs(e[0]-r);for(t=1;t<n;t++){let a=e[t],o=Math.abs(a-r);if(o===0)return a;if(o>i)return e[t-1];if(t===n-1)return a;i=o}}}};function Zi(){return globalThis.__CANVAS_ENGINE_TICK__}function Qi(e){return e.animatedState!==void 0}function $i(e,t={}){let n={current:e,start:e,end:e},r=null,i=!1,a=F(e),o=F(n);R(()=>{let e=o();a.set(e.current)});function s(e,n={}){if(e===void 0)return o();let a=o(),s={current:a.current,start:a.current,end:e};o.set(s),r&&=(r.stop(),null),i=!1;let c={...t,...n},l=c.duration??20,u=c.ease??(e=>e);c.tick||Zi();let d=a.current,f=e,p=n.onComplete??t.onComplete;r=Yi({from:d,to:f,duration:l,ease:u,onUpdate:e=>{if(i)return;let t=e;o.update(e=>({...e,current:t})),c.onUpdate?.(t),n.onUpdate?.(t)},onComplete:()=>{o.update(e=>({...e,current:f})),p?.()}})}let c=function(){return o().current};for(let e in a)c[e]=a[e];return c.animatedState=o,c.update=e=>{s(e(o().current))},c.set=async(e,n={})=>new Promise(r=>{let i=n.onComplete;s(e,{...n,onComplete:()=>{i?i():t.onComplete&&t.onComplete(),r()}})}),c.pause=()=>{i||(i=!0,r&&=(r.stop(),null))},c.resume=()=>{if(!i)return;i=!1;let e=o();e.current!==e.end&&s(e.end,t)},c}async function ea(e){for(let t of e)Array.isArray(t)?await Promise.all(t.map(e=>e())):await t()}var ta={},na=e=>e&&typeof e==`object`&&`tag`in e&&`props`in e&&`componentInstance`in e,ra=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e==null,ia={Sprite:`DOMSprite`},aa=new Set([`DOMContainer`,`DOMElement`,`DOMSprite`]),oa=new Set([`Canvas`,`Container`,`Graphics`,`Rect`,`Circle`,`Ellipse`,`Triangle`,`Svg`,`Mesh`,`Scene`,`ParticlesEmitter`,`Sprite`,`Video`,`Text`,`TilingSprite`,`Viewport`,`NineSliceSprite`,`Button`,`Joystick`,`FocusContainer`]),sa=e=>{let t=e;for(;t;){if(t.tag===`DOMContainer`||t.tag===`DOMElement`)return!0;t=t.parent}return!1},ca=e=>{e.propSubscriptions?.forEach(e=>e.unsubscribe()),e.effectSubscriptions?.forEach(e=>e.unsubscribe()),e.effectUnmounts?.forEach(e=>e?.())},la=(e,t)=>{if(!sa(e)||aa.has(t.tag))return t;let n=ia[t.tag];if(n)return ca(t),V(n,t.propObservables??t.props);if(oa.has(t.tag))throw Error(`Component ${t.tag} is not implemented for DOMContainer context yet. Only Sprite is supported.`);return t};function z(e,t){ta[e]=t}var ua=!1;function da(){ua||=!0}async function fa(e){return(await Promise.all(e.map(async e=>I(e)?e():Ht(e)?await e:e))).every(e=>e!==void 0)}function pa(e){return new Promise(async t=>{if(await fa(e)){t();return}let n=e.filter(e=>I(e));if(n.length===0)return;let r=kt(n.map(e=>e.observable)).subscribe(async()=>{await fa(e)&&(r.unsubscribe(),t())})})}function ma(e){if(!e)return!1;let t=e.propObservables?.freeze??e.props?.freeze;if(t!=null){if(I(t)){if(t()===!0)return!0}else if(t===!0)return!0}return e.parent?ma(e.parent):!1}function ha(e,t){if(!e.propObservables)return;let n=e=>{if(I(e)&&Qi(e)){let n=e;t?n.pause():n.resume()}else qt(e)&&!na(e)&&Object.values(e).forEach(n)};Object.values(e.propObservables).forEach(n)}function B(e){if(Array.isArray(e)){e.forEach(e=>B(e));return}if(e){if(e.props?.children)for(let t of e.props.children)B(t);for(let t in e.directives)e.directives[t].onDestroy?.(e);e.componentInstance&&e.componentInstance.onDestroy?e.componentInstance.onDestroy(e.parent,()=>{e.propSubscriptions?.forEach(e=>e.unsubscribe()),e.effectSubscriptions?.forEach(e=>e.unsubscribe()),e.effectUnmounts?.forEach(e=>{Ht(e)?e.then(e=>{e?.()}):e?.()})}):(e.propSubscriptions?.forEach(e=>e.unsubscribe()),e.effectSubscriptions?.forEach(e=>e.unsubscribe()),e.effectUnmounts?.forEach(e=>e?.()))}}function V(e,t){if(!ta[e])throw Error(`Component ${e} is not registered`);let n=new ta[e],r={tag:e,props:{},componentInstance:n,propSubscriptions:[],propObservables:t,parent:null,directives:{},effectUnmounts:[],effectSubscriptions:[],effectMounts:[],destroy(){B(this)},allElements:new Fe,isFrozen:!1};if(t){let e=(t,i=``)=>{let a=(e,t,n)=>{if(e==``){r.props[t]=n;return}Yt(r.props,e+`.`+t,n)};Object.entries(t).forEach(([t,o])=>{if(I(o)){let e=o;if(`dependencies`in e&&e.dependencies.size==0){a(i,t,e()),t===`freeze`&&(r.isFrozen=e()===!0);return}if(t===`freeze`){r.isFrozen=e()===!0,ha(r,r.isFrozen),r.propSubscriptions.push(e.observable.subscribe(e=>{let t=r.isFrozen;r.isFrozen=e===!0,t!==r.isFrozen&&ha(r,r.isFrozen)}));return}r.propSubscriptions.push(e.observable.subscribe(o=>{if(ma(r)){Qi(e)&&e.pause();return}if(Qi(e)&&e.resume(),a(i,t,o),r.directives[t]&&r.directives[t].onUpdate?.(o,r),t==`tick`)return ma(r),void 0;n.onUpdate?.(i==``?{[t]:o}:Yt({},i+`.`+t,o))}))}else t===`freeze`&&(r.isFrozen=o===!0,ha(r,r.isFrozen)),qt(o)&&t!=`context`&&!na(o)?e(o,(i?i+`.`:``)+t):a(i,t,o)})};e(t)}n.onInit?.(r.props);let i=new Fe;if(t?.isRoot&&(r.allElements=i,r.props.context.rootElement=r,r.componentInstance.onMount?.(r),c(r)),t)for(let e in t){let t=kn(r,e);t&&(r.directives[e]=t)}function a(e,t,n,r){let i=n.filter(e=>I(e));if(n.filter(e=>Ht(e)),i.length===0)return;let a=kt(i.map(e=>e.observable)).subscribe(async()=>{if(await fa(n)){a.unsubscribe();let n=t.propSubscriptions.indexOf(a);n>-1&&t.propSubscriptions.splice(n,1),o(e,t,r),c(t)}});t.propSubscriptions.push(a)}function o(e,t,n){t.componentInstance.onMount?.(t,n);for(let e in t.directives)t.directives[e].onMount?.(t);t.effectMounts.forEach(e=>{t.effectUnmounts.push(e(t))})}async function s(e,t,n){let r=e;for(;r?.tag===`fragment`;)r=r.parent;if(t.props.context=r.props.context,t.parent=r,!t.propObservables?.freeze&&!t.props?.freeze&&ma(r)&&(t.isFrozen=!0),t.props.dependencies&&Array.isArray(t.props.dependencies)){let e=t.props.dependencies;if(!await fa(e)){a(r,t,e,n);return}}o(r,t,n)}async function c(e){if(e.props.attach&&(I(e.propObservables?.attach)?await new Promise(t=>{let n=null;e.propSubscriptions.push(e.propObservables.attach.observable.subscribe(async r=>{let i=r?.value??r;if(!i)throw Error(`attach in ${e.tag} is undefined or null, add a component`);n&&B(n),n=i,await l(e,i),t(void 0)}))}):e.props.children.push(e.props.attach)),e.props.children)for(let t=0;t<e.props.children.length;t++){let n=e.props.children[t];n&&await l(e,n,t)}}async function l(e,t,n){Ht(t)&&(t=await t);let r=e.__childGroups??=[],a=n??(e.props.children?e.props.children.indexOf(t):-1),o={order:a>=0?a:r.length,mounted:new Map};r.push(o);let u=t=>{let n=e.componentInstance?.children;if(!t||!n)return;let r=n.indexOf(t.componentInstance);return r>=0?r:void 0},d=()=>{let e=r.filter(e=>e!==o&&e.order>o.order).sort((e,t)=>e.order-t.order);for(let t of e)for(let e of t.mounted.values()){let t=u(e);if(t!==void 0)return t}},f=(e,t)=>{for(let n=e+1;n<t.length;n++){let e=u(o.mounted.get(t[n]));if(e!==void 0)return e}return d()};if(t instanceof D){let n=o.mounted,r=()=>({tag:`fragment`,props:{children:[]},componentInstance:{},propSubscriptions:[],effectSubscriptions:[],effectMounts:[],effectUnmounts:[],propObservables:{},parent:e,directives:{},destroy(){B(this)},allElements:new Fe,isFrozen:!1}),a=(t,r,i)=>{if(n.has(t))return;let a=la(e,t);n.set(t,a),s(e,a,f(r,i)),c(a)},u=e=>{n.forEach((t,r)=>{e.has(r)||(n.delete(r),t!==r&&B(t))})},d=(e,t,i,o)=>{if(e instanceof D){if(t.add(e),!n.has(e)){let t=r();n.set(e,t),l(t,e)}return}if(Array.isArray(e)){e.forEach(e=>d(e,t,i,o));return}na(e)&&(t.add(e),a(e,i,o))},p=t.subscribe(t=>{if(t&&typeof t==`object`&&`elements`in t){let{elements:n,prev:r}=t,i=n.filter(e=>e!==null),a=new Set;if(r){i.forEach(t=>{d(t,a,e.props.children.indexOf(r.props.key)+1,i)}),u(a);return}i.forEach((e,t)=>{d(e,a,t,i)}),u(a)}else if(na(t)){let n=la(e,t);o.mounted.set(t,n),s(e,n,f(0,[t])),c(n)}else if(Array.isArray(t)){let e=new Set;t.forEach((n,r)=>{d(n,e,r,t)}),u(e)}i.next(void 0)});p.add(()=>{n.forEach(e=>{B(e)}),n.clear()}),e.effectSubscriptions.push(p)}else if(na(t)){let n=la(e,t);o.mounted.set(t,n),s(e,n,f(0,[t])),await c(n)}}return r}function ga(e,t){return In(e)&&e.dependencies.size==0?e=F(e()):I(e)||(e=F(e)),Mt(()=>{let n=[],r=new Map,i=!0,a=e=>e?na(e)?e:{tag:`fragment`,props:{children:Array.isArray(e)?e:[e]},componentInstance:{},propSubscriptions:[],effectSubscriptions:[],effectMounts:[],effectUnmounts:[],propObservables:{},parent:null,directives:{},destroy(){B(this)},allElements:new Fe,isFrozen:!1}:null,o=e=>Array.isArray(e());return new D(s=>{let c=o(e)?e.observable.subscribe(o=>{if(i){i=!1,n.forEach(e=>e.destroy()),n=[],r.clear();let o=e();o&&o.forEach((e,i)=>{let o=a(t(e,i));o&&(n.push(o),r.set(i,o))}),s.next({elements:[...n]});return}let c=Array.isArray(o)||o&&typeof o==`object`&&!(`type`in o);if(o.type===`init`||o.type===`reset`||c){n.forEach(e=>B(e)),n=[],r.clear();let i=e();i&&i.forEach((e,i)=>{let o=a(t(e,i));o&&(n.push(o),r.set(i,o))})}else if(o.type===`add`&&o.index!==void 0){let e=o.items.map((e,n)=>{let i=a(t(e,o.index+n));return i&&r.set(o.index+n,i),i}).filter(e=>e!==null);n.splice(o.index,0,...e)}else if(o.type===`remove`&&o.index!==void 0)n.splice(o.index,1).forEach(e=>{B(e),r.delete(o.index)});else if(o.type===`update`&&o.index!==void 0&&o.items.length===1){let e=o.index,i=o.items[0];if(e>=n.length||n[e]===void 0||!r.has(e)){let o=a(t(i,e));o?(n.splice(e,0,o),r.set(e,o)):console.warn(`Element creation returned null for index ${e} during add-like update.`)}else{let o=n[e];B(o);let s=a(t(i,e));s?(n[e]=s,r.set(e,s)):(n.splice(e,1),r.delete(e))}}s.next({elements:[...n]})}):e.observable.subscribe(o=>{let c=o.key;if(i){i=!1,n.forEach(e=>B(e)),n=[],r.clear();let o=e();o&&Object.entries(o).forEach(([e,i])=>{let o=a(t(i,e));o&&(n.push(o),r.set(e,o))}),s.next({elements:[...n]});return}if(o.type===`init`||o.type===`reset`){n.forEach(e=>B(e)),n=[],r.clear();let i=e();i&&Object.entries(i).forEach(([e,i])=>{let o=a(t(i,e));o&&(n.push(o),r.set(e,o))})}else if(o.type===`add`&&o.key&&o.value!==void 0){let e=a(t(o.value,c));e&&(n.push(e),r.set(c,e))}else if(o.type===`remove`&&o.key){let e=n.findIndex(e=>r.get(c)===e);if(e!==-1){let[t]=n.splice(e,1);B(t),r.delete(c)}}else if(o.type===`update`&&o.key&&o.value!==void 0){let e=n.findIndex(e=>r.get(c)===e);if(e!==-1){let i=n[e];B(i);let s=a(t(o.value,c));s&&(n[e]=s,r.set(c,s))}}s.next({elements:[...n]})});return()=>{c.unsubscribe(),n.forEach(e=>B(e))}})}).pipe(Lt({bufferSize:1,refCount:!0}))}function _a(e,t,...n){let r=null,i=-1,a=[],o=null,s=e=>I(e)?e:typeof e==`function`?L(e):F(e);for(let e of n)if(Array.isArray(e))a.push({condition:s(e[0]),elementFn:e[1]});else if(typeof e==`function`){o=e;break}let c=[{condition:s(e),elementFn:t},...a];return new D(e=>{let t=[],n=()=>{let t=-1;for(let e=0;e<c.length;e++){let n=c[e].condition;if(n()){t=e;break}}let n=t===-1&&o,a=n?-2:t;if(a!==i)if(r&&=(B(r),null),i=a,n){let t=o();Ht(t)?gt(t).subscribe(t=>{r=t,e.next({type:`init`,elements:[t]})}):(r=t,e.next({type:`init`,elements:[r]}))}else if(t>=0){let n=c[t].elementFn();Ht(n)?gt(n).subscribe(t=>{r=t,e.next({type:`init`,elements:[t]})}):(r=n,e.next({type:`init`,elements:[r]}))}else e.next({elements:[]})};return c.forEach(({condition:e})=>{let r=e;t.push(r.observable.subscribe(()=>{n()}))}),n(),()=>{t.forEach(e=>e.unsubscribe()),r&&B(r)}}).pipe(Ft())}var va=class extends M{constructor(...e){super(...e),this.keyboardControls=null,this.gamepadControls=null,this.joystickControls=null,this.freezeSubscription=null,this.element=null}onInit(e){this.element=e;let t=e.props.controls?.value??e.props.controls;if(!t)return;this.keyboardControls=new on,this.keyboardControls.setInputs(t),this.keyboardControls.start();let n=t.gamepad;n!==void 0&&n.enabled!==!1&&(this.gamepadControls=new wn,this.gamepadControls.setInputs(t),this.gamepadControls.start());let r=t.joystick;r!==void 0&&r.enabled!==!1&&(this.joystickControls=new En,this.joystickControls.setInputs(t),this.joystickControls.start()),ma(e)&&this.stopInputs();let i=e.propObservables?.freeze??e.props?.freeze;I(i)&&(this.freezeSubscription=i.observable.subscribe(e=>{e?this.stopInputs():this.listenInputs()}))}onMount(e){}onUpdate(e,t){let n=e.controls?.value??e.controls;n&&(this.keyboardControls&&this.keyboardControls.setInputs(n),this.gamepadControls&&this.gamepadControls.setInputs(n)),e.freeze!==void 0&&this.element&&(ma(this.element)?this.stopInputs():this.listenInputs())}onDestroy(e){this.freezeSubscription&&=(this.freezeSubscription.unsubscribe(),null),this.keyboardControls&&=(this.keyboardControls.destroy(),null),this.gamepadControls&&=(this.gamepadControls.destroy(),null),this.joystickControls&&=(this.joystickControls.destroy(),null),this.element=null}getControl(e){return this.keyboardControls?.getControl(e)}getControls(){return this.keyboardControls?.getControls()||{}}async applyControl(e,t,n){this.keyboardControls&&await this.keyboardControls.applyControl(e,t),this.gamepadControls&&await this.gamepadControls.applyControl(e,t,n),this.joystickControls&&await this.joystickControls.applyControl(e,t,n)}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(){return this.keyboardControls?.options||{}}get keyboard(){return this.keyboardControls}get gamepad(){return this.gamepadControls}get joystick(){return this.joystickControls}};On(`controls`,va);var ya=class extends M{constructor(...e){super(...e),this.fps=60,this.deltaTime=0,this.frame=0,this.timestamp=0,this.requestedDelay=0,this.lastTimestamp=0,this._stop=!1}onInit(e){this.tick=e.propObservables?.tick}onDestroy(){}onMount(e){}onUpdate(e){}nextTick(e){let t=typeof e==`number`&&e>0?e:Bt();this.lastTimestamp===0?(this.lastTimestamp=t,this.deltaTime=0):(this.deltaTime=t-this.lastTimestamp,this.lastTimestamp=t),this.timestamp=t,this.tick.set({timestamp:this.timestamp,deltaTime:this.deltaTime,frame:this.frame,deltaRatio:~~this.deltaTime/~~Vt(this.fps)}),this.lastTimestamp=this.timestamp,this.frame++}start(e={}){e.maxFps&&(this.maxFps=e.maxFps),e.fps&&(this.fps=e.fps),e.delay&&(this.requestedDelay=e.delay);let t=e=>{zt()?window.requestAnimationFrame(e.bind(this)):setTimeout(()=>{this.requestedDelay=0,e(Bt())},Vt(this.fps)+this.requestedDelay)};if(this.maxFps){let e=Vt(this.maxFps),n=Bt(),r=Bt(),i=a=>{if(this._stop)return;t(i),n=Bt();let o=n-r;o>e&&(r=n-o%e,this.nextTick(a))};t(i)}else{let e=n=>{t(e),this.nextTick(n)};t(e)}return this}stop(){this._stop=!0}};On(`tick`,ya);var H=(e,t={})=>{if(I(e))return e();let n={};for(let t in e){let r=e[t];n[t]=ra(r)?F(r):r}for(let e in t)e in n||(n[e]=ra(t[e])?F(t[e]):t[e]);return n},ba=e=>t=>{let n=I(e)?e():e,r={};for(let e in t){let i=t[e],a=n[e],o;if(typeof i==`function`)xa(e,a,[i]),o=a;else if(Array.isArray(i))xa(e,a,i),o=a;else if(i&&typeof i==`object`){if(i.required&&a===void 0)throw Error(`Missing required prop: ${e}`);if(i.type&&xa(e,a,Array.isArray(i.type)?i.type:[i.type]),i.validator&&!i.validator(a,n))throw Error(`Invalid prop: custom validation failed for prop "${e}"`);o=a===void 0&&`default`in i?typeof i.default==`function`?i.default(n):i.default:a}r[e]=I(o)?o:F(o)}return{...H(n),...r}};function xa(e,t,n){if(t==null)return;let r=I(t)?t():t;if(!n.some(e=>e===Number?typeof r==`number`:e===String?typeof r==`string`:e===Boolean?typeof r==`boolean`:e===Function?typeof r==`function`:e===Object?typeof r==`object`:e===Array?Array.isArray(r):e===null?r===null:r instanceof e))throw Error(`Invalid prop: type check failed for prop "${e}". Expected ${n.map(e=>e.name).join(` or `)}`)}var Sa=class extends M{onInit(e){}onMount(e){this.onUpdate(e.props.viewportFollow,e)}onUpdate(e,t){let n=t.props.context?.viewport;if(!n){if(e)throw Qt(`ViewportFollow directive requires a Viewport component to be mounted in the same context`);return}if(e)if(e===!0)n.follow(t.componentInstance);else{let r=H(e,{speed:void 0,acceleration:void 0,radius:void 0});n.follow(t.componentInstance,{speed:r.speed(),acceleration:r.acceleration(),radius:r.radius()})}else e===null&&n.plugins.remove(`follow`)}onDestroy(e){let{viewportFollow:t}=e.props,n=e.props.context?.viewport;t&&n&&n.plugins.remove(`follow`)}};On(`viewportFollow`,Sa);var Ca=f(l((e=>{(function(){"use strict";var t=function(){this.init()};t.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent=`canplaythrough`,e._navigator=typeof window<`u`&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||u(),e!==void 0&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||u(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.muted=e?!0:o._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&e.ctx.close!==void 0&&(e.ctx.close(),e.ctx=null,u()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,``)]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||`suspended`,e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<`u`)try{var t=new Audio;t.oncanplaythrough===void 0&&(e._canPlayEvent=`canplay`)}catch{e.noAudio=!0}else e.noAudio=!0;try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch{}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,t=null;try{t=typeof Audio<`u`?new Audio:null}catch{return e}if(!t||typeof t.canPlayType!=`function`)return e;var r=t.canPlayType(`audio/mpeg;`).replace(/^no$/,``),i=e._navigator?e._navigator.userAgent:``,a=i.match(/OPR\/(\d+)/g),o=a&&parseInt(a[0].split(`/`)[1],10)<33,s=i.indexOf(`Safari`)!==-1&&i.indexOf(`Chrome`)===-1,c=i.match(/Version\/(.*?) /),l=s&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!!(!o&&(r||t.canPlayType(`audio/mp3;`).replace(/^no$/,``))),mpeg:!!r,opus:!!t.canPlayType(`audio/ogg; codecs="opus"`).replace(/^no$/,``),ogg:!!t.canPlayType(`audio/ogg; codecs="vorbis"`).replace(/^no$/,``),oga:!!t.canPlayType(`audio/ogg; codecs="vorbis"`).replace(/^no$/,``),wav:!!(t.canPlayType(`audio/wav; codecs="1"`)||t.canPlayType(`audio/wav`)).replace(/^no$/,``),aac:!!t.canPlayType(`audio/aac;`).replace(/^no$/,``),caf:!!t.canPlayType(`audio/x-caf;`).replace(/^no$/,``),m4a:!!(t.canPlayType(`audio/x-m4a;`)||t.canPlayType(`audio/m4a;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),m4b:!!(t.canPlayType(`audio/x-m4b;`)||t.canPlayType(`audio/m4b;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),mp4:!!(t.canPlayType(`audio/x-mp4;`)||t.canPlayType(`audio/mp4;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),weba:!!(!l&&t.canPlayType(`audio/webm; codecs="vorbis"`).replace(/^no$/,``)),webm:!!(!l&&t.canPlayType(`audio/webm; codecs="vorbis"`).replace(/^no$/,``)),dolby:!!t.canPlayType(`audio/mp4; codecs="ec-3"`).replace(/^no$/,``),flac:!!(t.canPlayType(`audio/x-flac;`)||t.canPlayType(`audio/flac;`)).replace(/^no$/,``)},e},_unlockAudio:function(){var e=this||n;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch{e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var a=e._howls[i]._getSoundIds(),o=0;o<a.length;o++){var s=e._howls[i]._soundById(a[o]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var c=e.ctx.createBufferSource();c.buffer=e._scratchBuffer,c.connect(e.ctx.destination),c.start===void 0?c.noteOn(0):c.start(0),typeof e.ctx.resume==`function`&&e.ctx.resume(),c.onended=function(){c.disconnect(0),e._audioUnlocked=!0,document.removeEventListener(`touchstart`,t,!0),document.removeEventListener(`touchend`,t,!0),document.removeEventListener(`click`,t,!0),document.removeEventListener(`keydown`,t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit(`unlock`)}};return document.addEventListener(`touchstart`,t,!0),document.addEventListener(`touchend`,t,!0),document.addEventListener(`click`,t,!0),document.addEventListener(`keydown`,t,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=new Audio().play();return t&&typeof Promise<`u`&&(t instanceof Promise||typeof t.then==`function`)&&t.catch(function(){console.warn(`HTML5 Audio pool exhausted, returning potentially locked audio object.`)}),new Audio},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||e.ctx.suspend===void 0||!n.usingWebAudio)){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio){for(var r=0;r<e._howls[t]._sounds.length;r++)if(!e._howls[t]._sounds[r]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state=`suspending`;var t=function(){e.state=`suspended`,e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||e.ctx.resume===void 0||!n.usingWebAudio))return e.state===`running`&&e.ctx.state!==`interrupted`&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state===`suspended`||e.state===`running`&&e.ctx.state===`interrupted`?(e.ctx.resume().then(function(){e.state=`running`;for(var t=0;t<e._howls.length;t++)e._howls[t]._emit(`resume`)}),e._suspendTimer&&=(clearTimeout(e._suspendTimer),null)):e.state===`suspending`&&(e._resumeAfterSuspend=!0),e}};var n=new t,r=function(e){var t=this;if(!e.src||e.src.length===0){console.error(`An array of source files must be passed with any new Howl.`);return}t.init(e)};r.prototype={init:function(e){var t=this;return n.ctx||u(),t._autoplay=e.autoplay||!1,t._format=typeof e.format==`string`?[e.format]:e.format,t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload=typeof e.preload==`boolean`||e.preload===`metadata`?e.preload:!0,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src=typeof e.src==`string`?[e.src]:e.src,t._volume=e.volume===void 0?1:e.volume,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:`GET`,headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:!1},t._duration=0,t._state=`unloaded`,t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,n.ctx!==void 0&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:`play`,action:function(){t.play()}}),t._preload&&t._preload!==`none`&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio){e._emit(`loaderror`,null,`No audio support.`);return}typeof e._src==`string`&&(e._src=[e._src]);for(var r=0;r<e._src.length;r++){var a,s;if(e._format&&e._format[r])a=e._format[r];else{if(s=e._src[r],typeof s!=`string`){e._emit(`loaderror`,null,`Non-string found in selected audio sources - ignoring.`);continue}a=/^data:audio\/([^;,]+);/i.exec(s),a||=/\.([^.]+)$/.exec(s.split(`?`,1)[0]),a&&=a[1].toLowerCase()}if(a||console.warn(`No file extension was found. Consider using the "format" property or specify an extension.`),a&&n.codecs(a)){t=e._src[r];break}}if(!t){e._emit(`loaderror`,null,`No codec support for selected audio sources.`);return}return e._src=t,e._state=`loading`,window.location.protocol===`https:`&&t.slice(0,5)===`http:`&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&o(e),e},play:function(e,t){var r=this,i=null;if(typeof e==`number`)i=e,e=null;else if(typeof e==`string`&&r._state===`loaded`&&!r._sprite[e])return null;else if(e===void 0&&(e=`__default`,!r._playLock)){for(var a=0,o=0;o<r._sounds.length;o++)r._sounds[o]._paused&&!r._sounds[o]._ended&&(a++,i=r._sounds[o]._id);a===1?e=null:i=null}var s=i?r._soundById(i):r._inactiveSound();if(!s)return null;if(i&&!e&&(e=s._sprite||`__default`),r._state!==`loaded`){s._sprite=e,s._ended=!1;var c=s._id;return r._queue.push({event:`play`,action:function(){r.play(c)}}),c}if(i&&!s._paused)return t||r._loadQueue(`play`),s._id;r._webAudio&&n._autoResume();var l=Math.max(0,s._seek>0?s._seek:r._sprite[e][0]/1e3),u=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-l),d=u*1e3/Math.abs(s._rate),f=r._sprite[e][0]/1e3,p=(r._sprite[e][0]+r._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var m=function(){s._paused=!1,s._seek=l,s._start=f,s._stop=p,s._loop=!!(s._loop||r._sprite[e][2])};if(l>=p){r._ended(s);return}var h=s._node;if(r._webAudio){var g=function(){r._playLock=!1,m(),r._refreshBuffer(s);var e=s._muted||r._muted?0:s._volume;h.gain.setValueAtTime(e,n.ctx.currentTime),s._playStart=n.ctx.currentTime,h.bufferSource.start===void 0?s._loop?h.bufferSource.noteGrainOn(0,l,86400):h.bufferSource.noteGrainOn(0,l,u):s._loop?h.bufferSource.start(0,l,86400):h.bufferSource.start(0,l,u),d!==1/0&&(r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d)),t||setTimeout(function(){r._emit(`play`,s._id),r._loadQueue()},0)};n.state===`running`&&n.ctx.state!==`interrupted`?g():(r._playLock=!0,r.once(`resume`,g),r._clearTimer(s._id))}else{var _=function(){h.currentTime=l,h.muted=s._muted||r._muted||n._muted||h.muted,h.volume=s._volume*n.volume(),h.playbackRate=s._rate;try{var i=h.play();if(i&&typeof Promise<`u`&&(i instanceof Promise||typeof i.then==`function`)?(r._playLock=!0,m(),i.then(function(){r._playLock=!1,h._unlocked=!0,t?r._loadQueue():r._emit(`play`,s._id)}).catch(function(){r._playLock=!1,r._emit(`playerror`,s._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.`),s._ended=!0,s._paused=!0})):t||(r._playLock=!1,m(),r._emit(`play`,s._id)),h.playbackRate=s._rate,h.paused){r._emit(`playerror`,s._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}e!==`__default`||s._loop?r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d):(r._endTimers[s._id]=function(){r._ended(s),h.removeEventListener(`ended`,r._endTimers[s._id],!1)},h.addEventListener(`ended`,r._endTimers[s._id],!1))}catch(e){r._emit(`playerror`,s._id,e)}};h.src===`data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA`&&(h.src=r._src,h.load());var v=window&&window.ejecta||!h.readyState&&n._navigator.isCocoonJS;if(h.readyState>=3||v)_();else{r._playLock=!0,r._state=`loading`;var y=function(){r._state=`loaded`,_(),h.removeEventListener(n._canPlayEvent,y,!1)};h.addEventListener(n._canPlayEvent,y,!1),r._clearTimer(s._id)}}return s._id},pause:function(e){var t=this;if(t._state!==`loaded`||t._playLock)return t._queue.push({event:`pause`,action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;i._node.bufferSource.stop===void 0?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else (!isNaN(i._node.duration)||i._node.duration===1/0)&&i._node.pause();arguments[1]||t._emit(`pause`,i?i._id:null)}return t},stop:function(e,t){var n=this;if(n._state!==`loaded`||n._playLock)return n._queue.push({event:`stop`,action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var a=n._soundById(r[i]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(r[i]),a._node&&(n._webAudio?a._node.bufferSource&&(a._node.bufferSource.stop===void 0?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):(!isNaN(a._node.duration)||a._node.duration===1/0)&&(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit(`stop`,a._id))}return n},mute:function(e,t){var r=this;if(r._state!==`loaded`||r._playLock)return r._queue.push({event:`mute`,action:function(){r.mute(e,t)}}),r;if(t===void 0)if(typeof e==`boolean`)r._muted=e;else return r._muted;for(var i=r._getSoundIds(t),a=0;a<i.length;a++){var o=r._soundById(i[a]);o&&(o._muted=e,o._interval&&r._stopFade(o._id),r._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,n.ctx.currentTime):o._node&&(o._node.muted=n._muted?!0:e),r._emit(`mute`,o._id))}return r},volume:function(){var e=this,t=arguments,r,i;if(t.length===0)return e._volume;t.length===1||t.length===2&&t[1]===void 0?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):r=parseFloat(t[0]):t.length>=2&&(r=parseFloat(t[0]),i=parseInt(t[1],10));var a;if(r!==void 0&&r>=0&&r<=1){if(e._state!==`loaded`||e._playLock)return e._queue.push({event:`volume`,action:function(){e.volume.apply(e,t)}}),e;i===void 0&&(e._volume=r),i=e._getSoundIds(i);for(var o=0;o<i.length;o++)a=e._soundById(i[o]),a&&(a._volume=r,t[2]||e._stopFade(i[o]),e._webAudio&&a._node&&!a._muted?a._node.gain.setValueAtTime(r,n.ctx.currentTime):a._node&&!a._muted&&(a._node.volume=r*n.volume()),e._emit(`volume`,a._id))}else return a=i?e._soundById(i):e._sounds[0],a?a._volume:0;return e},fade:function(e,t,r,i){var a=this;if(a._state!==`loaded`||a._playLock)return a._queue.push({event:`fade`,action:function(){a.fade(e,t,r,i)}}),a;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),r=parseFloat(r),a.volume(e,i);for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c){if(i||a._stopFade(o[s]),a._webAudio&&!c._muted){var l=n.ctx.currentTime,u=l+r/1e3;c._volume=e,c._node.gain.setValueAtTime(e,l),c._node.gain.linearRampToValueAtTime(t,u)}a._startFadeInterval(c,e,t,r,o[s],i===void 0)}}return a},_startFadeInterval:function(e,t,n,r,i,a){var o=this,s=t,c=n-t,l=Math.abs(c/.01),u=Math.max(4,l>0?r/l:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-d)/r;d=Date.now(),s+=c*i,s=Math.round(s*100)/100,s=c<0?Math.max(n,s):Math.min(n,s),o._webAudio?e._volume=s:o.volume(s,e._id,!0),a&&(o._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,o.volume(n,e._id),o._emit(`fade`,e._id))},u)},_stopFade:function(e){var t=this,r=t._soundById(e);return r&&r._interval&&(t._webAudio&&r._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(r._interval),r._interval=null,t.volume(r._fadeTo,e),r._fadeTo=null,t._emit(`fade`,e)),t},loop:function(){var e=this,t=arguments,n,r,i;if(t.length===0)return e._loop;if(t.length===1)if(typeof t[0]==`boolean`)n=t[0],e._loop=n;else return i=e._soundById(parseInt(t[0],10)),i?i._loop:!1;else t.length===2&&(n=t[0],r=parseInt(t[1],10));for(var a=e._getSoundIds(r),o=0;o<a.length;o++)i=e._soundById(a[o]),i&&(i._loop=n,e._webAudio&&i._node&&i._node.bufferSource&&(i._node.bufferSource.loop=n,n&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop,e.playing(a[o])&&(e.pause(a[o],!0),e.play(a[o],!0)))));return e},rate:function(){var e=this,t=arguments,r,i;t.length===0?i=e._sounds[0]._id:t.length===1?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):r=parseFloat(t[0]):t.length===2&&(r=parseFloat(t[0]),i=parseInt(t[1],10));var a;if(typeof r==`number`){if(e._state!==`loaded`||e._playLock)return e._queue.push({event:`rate`,action:function(){e.rate.apply(e,t)}}),e;i===void 0&&(e._rate=r),i=e._getSoundIds(i);for(var o=0;o<i.length;o++)if(a=e._soundById(i[o]),a){e.playing(i[o])&&(a._rateSeek=e.seek(i[o]),a._playStart=e._webAudio?n.ctx.currentTime:a._playStart),a._rate=r,e._webAudio&&a._node&&a._node.bufferSource?a._node.bufferSource.playbackRate.setValueAtTime(r,n.ctx.currentTime):a._node&&(a._node.playbackRate=r);var s=e.seek(i[o]),c=((e._sprite[a._sprite][0]+e._sprite[a._sprite][1])/1e3-s)*1e3/Math.abs(a._rate);(e._endTimers[i[o]]||!a._paused)&&(e._clearTimer(i[o]),e._endTimers[i[o]]=setTimeout(e._ended.bind(e,a),c)),e._emit(`rate`,a._id)}}else return a=e._soundById(i),a?a._rate:e._rate;return e},seek:function(){var e=this,t=arguments,r,i;if(t.length===0?e._sounds.length&&(i=e._sounds[0]._id):t.length===1?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):e._sounds.length&&(i=e._sounds[0]._id,r=parseFloat(t[0])):t.length===2&&(r=parseFloat(t[0]),i=parseInt(t[1],10)),i===void 0)return 0;if(typeof r==`number`&&(e._state!==`loaded`||e._playLock))return e._queue.push({event:`seek`,action:function(){e.seek.apply(e,t)}}),e;var a=e._soundById(i);if(a)if(typeof r==`number`&&r>=0){var o=e.playing(i);o&&e.pause(i,!0),a._seek=r,a._ended=!1,e._clearTimer(i),!e._webAudio&&a._node&&!isNaN(a._node.duration)&&(a._node.currentTime=r);var s=function(){o&&e.play(i,!0),e._emit(`seek`,i)};if(o&&!e._webAudio){var c=function(){e._playLock?setTimeout(c,0):s()};setTimeout(c,0)}else s()}else if(e._webAudio){var l=e.playing(i)?n.ctx.currentTime-a._playStart:0,u=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(u+l*Math.abs(a._rate))}else return a._node.currentTime;return e},playing:function(e){var t=this;if(typeof e==`number`){var n=t._soundById(e);return n?!n._paused:!1}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,r=0;r<t.length;r++)t[r]._paused||e.stop(t[r]._id),e._webAudio||(e._clearSound(t[r]._node),t[r]._node.removeEventListener(`error`,t[r]._errorFn,!1),t[r]._node.removeEventListener(n._canPlayEvent,t[r]._loadFn,!1),t[r]._node.removeEventListener(`ended`,t[r]._endFn,!1),n._releaseHtml5Audio(t[r]._node)),delete t[r]._node,e._clearTimer(t[r]._id);var i=n._howls.indexOf(e);i>=0&&n._howls.splice(i,1);var o=!0;for(r=0;r<n._howls.length;r++)if(n._howls[r]._src===e._src||e._src.indexOf(n._howls[r]._src)>=0){o=!1;break}return a&&o&&delete a[e._src],n.noAudio=!1,e._state=`unloaded`,e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this,a=i[`_on`+e];return typeof t==`function`&&a.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),i},off:function(e,t,n){var r=this,i=r[`_on`+e],a=0;if(typeof t==`number`&&(n=t,t=null),t||n)for(a=0;a<i.length;a++){var o=n===i[a].id;if(t===i[a].fn&&o||!t&&o){i.splice(a,1);break}}else if(e)r[`_on`+e]=[];else{var s=Object.keys(r);for(a=0;a<s.length;a++)s[a].indexOf(`_on`)===0&&Array.isArray(r[s[a]])&&(r[s[a]]=[])}return r},once:function(e,t,n){var r=this;return r.on(e,t,n,1),r},_emit:function(e,t,n){for(var r=this,i=r[`_on`+e],a=i.length-1;a>=0;a--)(!i[a].id||i[a].id===t||e===`load`)&&(setTimeout(function(e){e.call(this,t,n)}.bind(r,i[a].fn),0),i[a].once&&r.off(e,i[a].fn,i[a].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,r=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!!(e._loop||t._sprite[r][2]);if(t._emit(`end`,e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit(`play`,e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var a=(e._stop-e._start)*1e3/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),a)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),n._autoSuspend()),!t._webAudio&&!i&&t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if(typeof t._endTimers[e]!=`function`)clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener(`ended`,t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){var t=this;if(e===void 0){for(var n=[],r=0;r<t._sounds.length;r++)n.push(t._sounds[r]._id);return n}else return[e]},_refreshBuffer:function(e){var t=this;return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=a[t._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),t},_cleanBuffer:function(e){var t=this,r=n._navigator&&n._navigator.vendor.indexOf(`Apple`)>=0;if(!e.bufferSource)return t;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),r))try{e.bufferSource.buffer=n._scratchBuffer}catch{}return e.bufferSource=null,t},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src=`data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA`)}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite=`__default`,e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,r=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=n.ctx.createGain===void 0?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(r,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener(`error`,e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener(`ended`,e._endFn,!1),e._node.src=t._src,e._node.preload=t._preload===!0?`auto`:t._preload,e._node.volume=r*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite=`__default`,e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit(`loaderror`,e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener(`error`,e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(e._node.duration*10)/10,Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!==`loaded`&&(t._state=`loaded`,t._emit(`load`),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(e._node.duration*10)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=t._duration*1e3),t._ended(e)),e._node.removeEventListener(`ended`,e._endFn,!1)}};var a={},o=function(e){var t=e._src;if(a[t]){e._duration=a[t].duration,l(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(`,`)[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);c(r.buffer,e)}else{var o=new XMLHttpRequest;o.open(e._xhr.method,t,!0),o.withCredentials=e._xhr.withCredentials,o.responseType=`arraybuffer`,e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){o.setRequestHeader(t,e._xhr.headers[t])}),o.onload=function(){var t=(o.status+``)[0];if(t!==`0`&&t!==`2`&&t!==`3`){e._emit(`loaderror`,null,`Failed loading audio file with status: `+o.status+`.`);return}c(o.response,e)},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},s(o)}},s=function(e){try{e.send()}catch{e.onerror()}},c=function(e,t){var r=function(){t._emit(`loaderror`,null,`Decoding audio data failed.`)},i=function(e){e&&t._sounds.length>0?(a[t._src]=e,l(t,e)):r()};typeof Promise<`u`&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(e).then(i).catch(r):n.ctx.decodeAudioData(e,i,r)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!==`loaded`&&(e._state=`loaded`,e._emit(`load`),e._loadQueue())},u=function(){if(n.usingWebAudio){try{typeof AudioContext<`u`?n.ctx=new AudioContext:typeof webkitAudioContext<`u`?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=t?parseInt(t[1],10):null;if(e&&r&&r<9){var i=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!i&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=n.ctx.createGain===void 0?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};typeof define==`function`&&define.amd&&define([],function(){return{Howler:n,Howl:r}}),e!==void 0&&(e.Howler=n,e.Howl=r),typeof global<`u`?(global.HowlerGlobal=t,global.Howler=n,global.Howl=r,global.Sound=i):typeof window<`u`&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,window.Sound=i)})(),(function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(t=typeof t==`number`?t:r._pos[1],n=typeof n==`number`?n:r._pos[2],typeof e==`number`)r._pos=[e,t,n],r.ctx.listener.positionX===void 0?r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]):(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1));else return r._pos;return r},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,a){var o=this;if(!o.ctx||!o.ctx.listener)return o;var s=o._orientation;if(t=typeof t==`number`?t:s[1],n=typeof n==`number`?n:s[2],r=typeof r==`number`?r:s[3],i=typeof i==`number`?i:s[4],a=typeof a==`number`?a:s[5],typeof e==`number`)o._orientation=[e,t,n,r,i,a],o.ctx.listener.forwardX===void 0?o.ctx.listener.setOrientation(e,t,n,r,i,a):(o.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),o.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),o.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),o.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),o.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),o.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1));else return s;return o},Howl.prototype.init=(function(e){return function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:t.coneInnerAngle===void 0?360:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle===void 0?360:t.coneOuterAngle,coneOuterGain:t.coneOuterGain===void 0?0:t.coneOuterGain,distanceModel:t.distanceModel===void 0?`inverse`:t.distanceModel,maxDistance:t.maxDistance===void 0?1e4:t.maxDistance,panningModel:t.panningModel===void 0?`HRTF`:t.panningModel,refDistance:t.refDistance===void 0?1:t.refDistance,rolloffFactor:t.rolloffFactor===void 0?1:t.rolloffFactor},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}})(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var r=this;if(!r._webAudio)return r;if(r._state!==`loaded`)return r._queue.push({event:`stereo`,action:function(){r.stereo(t,n)}}),r;var i=Howler.ctx.createStereoPanner===void 0?`spatial`:`stereo`;if(n===void 0)if(typeof t==`number`)r._stereo=t,r._pos=[t,0,0];else return r._stereo;for(var a=r._getSoundIds(n),o=0;o<a.length;o++){var s=r._soundById(a[o]);if(s)if(typeof t==`number`)s._stereo=t,s._pos=[t,0,0],s._node&&(s._pannerAttr.panningModel=`equalpower`,(!s._panner||!s._panner.pan)&&e(s,i),i===`spatial`?s._panner.positionX===void 0?s._panner.setPosition(t,0,0):(s._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),r._emit(`stereo`,s._id);else return s._stereo}return r},Howl.prototype.pos=function(t,n,r,i){var a=this;if(!a._webAudio)return a;if(a._state!==`loaded`)return a._queue.push({event:`pos`,action:function(){a.pos(t,n,r,i)}}),a;if(n=typeof n==`number`?n:0,r=typeof r==`number`?r:-.5,i===void 0)if(typeof t==`number`)a._pos=[t,n,r];else return a._pos;for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c)if(typeof t==`number`)c._pos=[t,n,r],c._node&&((!c._panner||c._panner.pan)&&e(c,`spatial`),c._panner.positionX===void 0?c._panner.setPosition(t,n,r):(c._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime))),a._emit(`pos`,c._id);else return c._pos}return a},Howl.prototype.orientation=function(t,n,r,i){var a=this;if(!a._webAudio)return a;if(a._state!==`loaded`)return a._queue.push({event:`orientation`,action:function(){a.orientation(t,n,r,i)}}),a;if(n=typeof n==`number`?n:a._orientation[1],r=typeof r==`number`?r:a._orientation[2],i===void 0)if(typeof t==`number`)a._orientation=[t,n,r];else return a._orientation;for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c)if(typeof t==`number`)c._orientation=[t,n,r],c._node&&(c._panner||(c._pos||=a._pos||[0,0,-.5],e(c,`spatial`)),c._panner.orientationX===void 0?c._panner.setOrientation(t,n,r):(c._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime))),a._emit(`orientation`,c._id);else return c._orientation}return a},Howl.prototype.pannerAttr=function(){var t=this,n=arguments,r,i,a;if(!t._webAudio)return t;if(n.length===0)return t._pannerAttr;if(n.length===1)if(typeof n[0]==`object`)r=n[0],i===void 0&&(r.pannerAttr||={coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel,maxDistance:r.maxDistance,refDistance:r.refDistance,rolloffFactor:r.rolloffFactor,panningModel:r.panningModel},t._pannerAttr={coneInnerAngle:r.pannerAttr.coneInnerAngle===void 0?t._coneInnerAngle:r.pannerAttr.coneInnerAngle,coneOuterAngle:r.pannerAttr.coneOuterAngle===void 0?t._coneOuterAngle:r.pannerAttr.coneOuterAngle,coneOuterGain:r.pannerAttr.coneOuterGain===void 0?t._coneOuterGain:r.pannerAttr.coneOuterGain,distanceModel:r.pannerAttr.distanceModel===void 0?t._distanceModel:r.pannerAttr.distanceModel,maxDistance:r.pannerAttr.maxDistance===void 0?t._maxDistance:r.pannerAttr.maxDistance,refDistance:r.pannerAttr.refDistance===void 0?t._refDistance:r.pannerAttr.refDistance,rolloffFactor:r.pannerAttr.rolloffFactor===void 0?t._rolloffFactor:r.pannerAttr.rolloffFactor,panningModel:r.pannerAttr.panningModel===void 0?t._panningModel:r.pannerAttr.panningModel});else return a=t._soundById(parseInt(n[0],10)),a?a._pannerAttr:t._pannerAttr;else n.length===2&&(r=n[0],i=parseInt(n[1],10));for(var o=t._getSoundIds(i),s=0;s<o.length;s++)if(a=t._soundById(o[s]),a){var c=a._pannerAttr;c={coneInnerAngle:r.coneInnerAngle===void 0?c.coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle===void 0?c.coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain===void 0?c.coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel===void 0?c.distanceModel:r.distanceModel,maxDistance:r.maxDistance===void 0?c.maxDistance:r.maxDistance,refDistance:r.refDistance===void 0?c.refDistance:r.refDistance,rolloffFactor:r.rolloffFactor===void 0?c.rolloffFactor:r.rolloffFactor,panningModel:r.panningModel===void 0?c.panningModel:r.panningModel};var l=a._panner;l||=(a._pos||=t._pos||[0,0,-.5],e(a,`spatial`),a._panner),l.coneInnerAngle=c.coneInnerAngle,l.coneOuterAngle=c.coneOuterAngle,l.coneOuterGain=c.coneOuterGain,l.distanceModel=c.distanceModel,l.maxDistance=c.maxDistance,l.refDistance=c.refDistance,l.rolloffFactor=c.rolloffFactor,l.panningModel=c.panningModel}return t},Sound.prototype.init=(function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}})(Sound.prototype.init),Sound.prototype.reset=(function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}})(Sound.prototype.reset);var e=function(e,t){t||=`spatial`,t===`spatial`?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,e._panner.positionX===void 0?e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]):(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)),e._panner.orientationX===void 0?e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2]):(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime))):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}})()}))(),1),wa=[`load`,`loaderror`,`playerror`,`play`,`end`,`pause`,`stop`,`mute`,`volume`,`rate`,`seek`,`fade`,`unlock`],Ta=class extends M{constructor(...e){super(...e),this.sounds=[],this.eventsFn=[],this.maxVolume=1,this.maxDistance=100}onInit(e){}onMount(e){let{props:t}=e,n=t.context.tick,r=t.sound.value??t.sound;if(!r.src)return;let{src:i,autoplay:a,loop:o,volume:s,spatial:c}=r,l=Array.isArray(i)?i:[i];for(let e of l){if(!e)continue;let t=new Ca.Howl({src:e,autoplay:a,loop:o,volume:s});for(let e of wa){if(!r[e])continue;let n=r[e];this.eventsFn.push(n),t.on(e,n)}this.sounds.push(t)}if(c&&this.sounds.length>0){let{soundListenerPosition:r}=t.context;if(!r)throw new Qt(`SoundListenerPosition directive is required for spatial sound in component parent`);let{x:i,y:a}=r;this.tickSubscription=R(()=>{n();let{x:t,y:r}=e.componentInstance,o=en(t,r,i(),a()),s=Math.max(this.maxVolume-o/this.maxDistance,0);this.sounds.forEach(e=>e.volume(s))}).subscription}this.onUpdate(r)}onUpdate(e){let{volume:t,loop:n,mute:r,seek:i,playing:a,rate:o,spatial:s}=e.value??e;this.sounds.forEach(e=>{t!==void 0&&e.volume(t),n!==void 0&&e.loop(n),r!==void 0&&e.mute(r),i!==void 0&&e.seek(i),a!==void 0&&(a?e.play():e.pause()),o!==void 0&&e.rate(o)}),s&&(this.maxVolume=s.maxVolume??this.maxVolume,this.maxDistance=s.maxDistance??this.maxDistance)}onDestroy(){this.sounds.forEach(e=>{e.stop();for(let t of wa){let n=this.eventsFn.find(e=>e===this.eventsFn[t]);n&&e.off(t,n)}}),this.sounds=[],this.eventsFn=[],this.tickSubscription?.unsubscribe()}},Ea=class extends M{onMount(e){e.props.context.soundListenerPosition=e.propObservables?.soundListenerPosition}onInit(e){}onUpdate(e){}onDestroy(){}};On(`sound`,Ta),On(`soundListenerPosition`,Ea);var Da=(e,t,n)=>{e.props.context={...e.props.context??{},[t]:n}},Oa=class extends M{constructor(...e){super(...e),this.elementRef=null}onInit(e){this.elementRef=e}onMount(e){Da(e,`drop`,e)}onUpdate(){}onDestroy(){this.elementRef=null}},ka=class extends M{constructor(...e){super(...e),this.elementRef=null,this.stageRef=null,this.offsetInParent=new t.Point,this.isDragging=!1,this.viewport=null,this.animationFrameId=null,this.lastPointerPosition=new t.Point,this.pressedKeys=new Set,this.pointerIsDown=!1,this.onDragMoveHandler=()=>{},this.onDragEndHandler=()=>{},this.onDragStartHandler=()=>{},this.onKeyDownHandler=()=>{},this.onKeyUpHandler=()=>{},this.subscriptions=[]}onInit(e){this.elementRef=e,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(e){let{rootElement:n,canvasSize:r,viewport:i,tick:a}=e.props.context,o=e.componentInstance,s=this.dragProps;if(Object.keys(s).length===0){this.onDestroy();return}if(!o||(this.stageRef=n.componentInstance,!this.stageRef))return;this.viewport=i,o.eventMode=`static`,this.stageRef.eventMode=`static`;let c=R(()=>{this.stageRef&&(this.stageRef.hitArea=new t.Rectangle(0,0,r().width,r().height))});o.on(`pointerdown`,this.onDragStartHandler),this.stageRef.on(`pointerup`,this.onDragEndHandler),this.stageRef.on(`pointerupoutside`,this.onDragEndHandler),s.keyToPress&&s.keyToPress,window.addEventListener(`keydown`,this.onKeyDownHandler),window.addEventListener(`keyup`,this.onKeyUpHandler),this.subscriptions=[a.observable.subscribe(()=>{this.isDragging&&this.viewport&&this.updateViewportPosition(this.lastPointerPosition)}),c.subscription]}get dragProps(){let e=this.elementRef?.props.drag,t=H(e?.value??e,{snap:0,viewport:{},direction:`all`,keyToPress:[]});return t.viewport=H(t.viewport,{edgeThreshold:300,maxSpeed:40}),t}get axis(){let e=this.dragProps.direction(),t={x:!0,y:!0};return e===`x`&&(t.y=!1),e===`y`&&(t.x=!1),t}onDragMove(e){if(!this.isDragging||!this.elementRef?.componentInstance||!this.elementRef.componentInstance.parent)return;let t=this.elementRef.componentInstance,n=t.parent,r=this.dragProps,i=this.elementRef.propObservables,a=Xi(r?.snap()??0);r?.move?.(e);let o=n.toLocal(e.global),s=o.x-this.offsetInParent.x,c=o.y-this.offsetInParent.y;r?.snap()?(t.position.x=a(s),t.position.y=a(c)):(this.axis.x&&(t.position.x=s),this.axis.y&&(t.position.y=c)),this.lastPointerPosition.copyFrom(e.global);let{x:l,y:u}=i,d=(e,t)=>{In(e)?e.dependencies.forEach(e=>{e.set(t)}):I(e)&&e.set(t)};l!==void 0&&d(l,t.position.x),u!==void 0&&d(u,t.position.y)}updateViewportPosition(e){if(!this.viewport||!this.elementRef)return;let t=this.dragProps,n=t?.viewport?.edgeThreshold(),r=t?.viewport?.maxSpeed(),i=this.viewport.screenWidth,a=this.viewport.screenHeight,o=this.elementRef.componentInstance,s=e.x-0,c=i-e.x,l=e.y-0,u=a-e.y,d=0,f=0;if(s<n?d=-(r*(1-s/n)):c<n&&(d=r*(1-c/n)),l<n?f=-(r*(1-l/n)):u<n&&(f=r*(1-u/n)),d!==0||f!==0){let e=this.viewport.center;this.viewport.moveCenter(this.viewport.center.x+d,this.viewport.center.y+f),this.axis.x&&e.x!==this.viewport.center.x&&(o.position.x+=d),this.axis.y&&e.y!==this.viewport.center.y&&(o.position.y+=f)}}onDragEnd(){if(this.pointerIsDown=!1,!this.isDragging)return;let e=this.dragProps;this.isDragging=!1,e?.end?.(),this.stageRef&&this.stageRef.off(`pointermove`,this.onDragMoveHandler)}onKeyDown(e){this.pressedKeys.add(e.code),this.pressedKeys.add(e.key.toLowerCase()),this.pointerIsDown&&!this.isDragging&&this.areRequiredKeysPressed()&&this.startDrag()}onKeyUp(e){this.pressedKeys.delete(e.code),this.pressedKeys.delete(e.key.toLowerCase()),this.isDragging&&!this.areRequiredKeysPressed()&&this.onDragEnd()}areRequiredKeysPressed(){let e=this.dragProps.keyToPress?this.dragProps.keyToPress:[];return!e||e.length===0?!0:e.some(e=>this.pressedKeys.has(e)?!0:e.toLowerCase()===`space`?this.pressedKeys.has(`Space`)||this.pressedKeys.has(` `):e.toLowerCase()===`shift`?this.pressedKeys.has(`ShiftLeft`)||this.pressedKeys.has(`ShiftRight`):e.toLowerCase()===`control`||e.toLowerCase()===`ctrl`?this.pressedKeys.has(`ControlLeft`)||this.pressedKeys.has(`ControlRight`):e.toLowerCase()===`alt`?this.pressedKeys.has(`AltLeft`)||this.pressedKeys.has(`AltRight`):!1)}onPointerDown(e){if(!this.elementRef?.componentInstance||!this.stageRef||!this.elementRef.componentInstance.parent)return;this.pointerIsDown=!0;let t=this.elementRef.componentInstance,n=t.parent.toLocal(e.global);this.offsetInParent.x=n.x-t.position.x,this.offsetInParent.y=n.y-t.position.y,this.lastPointerPosition.copyFrom(e.global),this.areRequiredKeysPressed()&&this.startDrag()}startDrag(){this.isDragging||!this.stageRef||(this.isDragging=!0,this.dragProps?.start?.(),this.stageRef.on(`pointermove`,this.onDragMoveHandler))}onUpdate(e){e.type&&e.type===`reset`&&(this.onDestroy(),this.onMount(this.elementRef))}onDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());let e=this.elementRef?.componentInstance;e&&e.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}};On(`drag`,ka),On(`drop`,Oa);var Aa=class extends M{onInit(e){}onMount(e){let{image:n}=e.props.transition,r=new t.Sprite(t.Texture.from(n));r.texture.baseTexture.wrapMode=t.WRAP_MODES.REPEAT;let i=new t.DisplacementFilter(r),a=e.componentInstance;a.filters=[i],a.addChild(r),setTimeout(()=>{Yi({from:0,to:1,duration:500,onUpdate:e=>{i.scale.x=e,i.scale.y=e}})},5e3)}onUpdate(e){}onDestroy(){}};On(`transition`,Aa);function ja(e){return e?.start&&e?.listen}function Ma(e){let t=F({config:e,value:0,resolve:e=>void 0});return{start:n=>new Promise(r=>{let i=Math.random();t.set({config:{...e,...n},resolve:r,value:i})}),listen:()=>({config:e,seed:t()})}}function Na(e,t){if(!ja(e))throw Error(`In 'on(arg)' must have a trigger signal type`);let n;return R(()=>{let r=e.listen(),i=r?.seed;if(i){if(n===void 0){n=i.value;return}if(i.value!==n){n=i.value;try{let e=t(r?.seed.config);e&&typeof e.then==`function`?e.then(e=>i.resolve(e)).catch(()=>i.resolve(void 0)):i.resolve(e)}catch{i.resolve(void 0)}}}}).subscription}var Pa=class extends M{constructor(...e){super(...e),this.elementRef=null,this.originalPosition=new t.Point,this.progressSignal=null,this.shakeSubscription=null,this.positionEffect=null,this.currentShakeConfig=null}onInit(e){this.elementRef=e}onMount(e){let t=e.componentInstance;if(!t)return;let n=this.shakeProps;!n.trigger||!ja(n.trigger)||(this.originalPosition.set(t.position.x,t.position.y),this.shakeSubscription&&=(this.shakeSubscription.unsubscribe(),null),this.shakeSubscription=Na(n.trigger,async e=>{await this.performShake(e)}))}get shakeProps(){let e=this.elementRef?.props.shake;return H(e?.value??e,{intensity:10,duration:500,frequency:10,direction:`both`})}resolveSignalValue(e){return I(e)?e():e}async performShake(e){if(!this.elementRef?.componentInstance)return;let t=this.elementRef.componentInstance,n=this.shakeProps,r=e?.intensity??this.resolveSignalValue(n.intensity),i=e?.duration??this.resolveSignalValue(n.duration),a=e?.frequency??this.resolveSignalValue(n.frequency),o=e?.direction??this.resolveSignalValue(n.direction);this.positionEffect&&=(this.positionEffect.unsubscribe(),null);let s=this.originalPosition.x===0&&this.originalPosition.y===0&&t.parent,c=t.position.x!==this.originalPosition.x||t.position.y!==this.originalPosition.y;(s||c)&&this.originalPosition.set(t.position.x,t.position.y),t.position.x=this.originalPosition.x,t.position.y=this.originalPosition.y,n.onStart?.(),this.currentShakeConfig={intensity:r,frequency:a,direction:o,randomSeed:Math.random()*1e3},this.progressSignal?await this.progressSignal.set(0,{duration:0}):this.progressSignal=$i(0,{duration:i,ease:e=>e});let l=o!==`y`,u=o!==`x`;this.positionEffect=R(()=>{if(!t||!this.progressSignal||!this.currentShakeConfig)return;let e=this.progressSignal(),n=this.currentShakeConfig,r=1-e,i=e*n.frequency,a=Math.sin(i*Math.PI*2),o=Math.sin(n.randomSeed+e*10)*.25+1,s=l?a*n.intensity*r*o:0,c=u?a*n.intensity*r*o:0;t.position.x=this.originalPosition.x+s,t.position.y=this.originalPosition.y+c}).subscription,await this.progressSignal.set(1,{duration:i}),t&&(t.position.x=this.originalPosition.x,t.position.y=this.originalPosition.y),this.positionEffect&&=(this.positionEffect.unsubscribe(),null),this.currentShakeConfig=null,n.onComplete?.()}onUpdate(e){e.type&&e.type===`reset`&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){if(this.progressSignal&&=(this.progressSignal.set(0,{duration:0}),null),this.positionEffect&&=(this.positionEffect.unsubscribe(),null),this.currentShakeConfig=null,this.elementRef?.componentInstance){let e=this.elementRef.componentInstance;e.position.x=this.originalPosition.x,e.position.y=this.originalPosition.y}this.shakeSubscription&&=(this.shakeSubscription.unsubscribe(),null),this.elementRef=null}};On(`shake`,Pa);var Fa=class extends M{constructor(...e){super(...e),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(e){this.elementRef=e}onMount(e){let t=e.componentInstance;if(!t)return;let n=this.flashProps;if(!n.trigger||!ja(n.trigger))return;this.originalAlpha===1&&!n.originalAlpha?this.originalAlpha=t.alpha??1:n.originalAlpha!==void 0&&(this.originalAlpha=n.originalAlpha);let r=t.tint;this.originalTint===16777215&&!n.originalTint?this.originalTint=(I(r)?r():r)??16777215:n.originalTint!==void 0&&(this.originalTint=n.originalTint),this.flashSubscription=Na(n.trigger,async e=>{await this.performFlash(e)})}get flashProps(){let e=this.elementRef?.props.flash;return H(e?.value??e,{type:`alpha`,duration:300,cycles:1,alpha:.3,tint:16777215})}async performFlash(e){if(!this.elementRef?.componentInstance)return;let t=this.elementRef.componentInstance,n=this.flashProps,r=e?.type??(typeof n.type==`function`?n.type():n.type),i=e?.duration??(typeof n.duration==`function`?n.duration():n.duration),a=e?.cycles??(typeof n.cycles==`function`?n.cycles():n.cycles),o=e?.alpha??(typeof n.alpha==`function`?n.alpha():n.alpha),s=e?.tint??(typeof n.tint==`function`?n.tint():n.tint);this.alphaEffect&&=(this.alphaEffect.unsubscribe(),null),this.tintEffect&&=(this.tintEffect.unsubscribe(),null),t.alpha=this.originalAlpha;let c=t.tint;if(c!==void 0){let e=typeof this.originalTint==`number`?this.originalTint:16777215;I(c)?c.set(e):t.tint=e}n.onStart?.(),this.progressSignal&&await this.progressSignal.set(0,{duration:0});let l={type:r,duration:i,cycles:a,flashAlpha:o,flashTint:s};if(this.currentFlashConfig=l,this.progressSignal||=$i(0,{duration:i,ease:e=>e}),(r===`alpha`||r===`both`)&&(this.alphaEffect=R(()=>{if(!t||!this.progressSignal||!this.currentFlashConfig)return;let e=this.progressSignal(),n=this.currentFlashConfig,r=e*n.cycles%1,i=r<.5?r*2:1-(r-.5)*2;t.alpha=this.originalAlpha+(n.flashAlpha-this.originalAlpha)*i}).subscription),(r===`tint`||r===`both`)&&(this.tintEffect=R(()=>{if(!t||!this.progressSignal||!this.currentFlashConfig)return;let e=t.tint;if(e===void 0)return;let n=I(e),r=this.progressSignal(),i=this.currentFlashConfig,a=r*i.cycles%1,o=a<.5?a*2:1-(a-.5)*2,s=this.originalTint>>16&255,c=this.originalTint>>8&255,l=this.originalTint&255,u=i.flashTint>>16&255,d=i.flashTint>>8&255,f=i.flashTint&255,p=Math.round(s+(u-s)*o),m=Math.round(c+(d-c)*o),h=Math.round(l+(f-l)*o),g=p<<16|m<<8|h;n?e.set(g):t.tint=g}).subscription),await this.progressSignal.set(1,{duration:i}),this.currentFlashConfig===l&&t){t.alpha=this.originalAlpha;let e=t.tint;if(e!==void 0){let n=typeof this.originalTint==`number`?this.originalTint:16777215;I(e)?e.set(n):t.tint=n}this.alphaEffect&&=(this.alphaEffect.unsubscribe(),null),this.tintEffect&&=(this.tintEffect.unsubscribe(),null),this.currentFlashConfig=null}n.onComplete?.()}onUpdate(e){e.type&&e.type===`reset`&&(this.onDestroy(),this.elementRef&&this.onMount(this.elementRef))}onDestroy(){if(this.progressSignal&&=(this.progressSignal.set(0,{duration:0}),null),this.alphaEffect&&=(this.alphaEffect.unsubscribe(),null),this.tintEffect&&=(this.tintEffect.unsubscribe(),null),this.currentFlashConfig=null,this.elementRef?.componentInstance){let e=this.elementRef.componentInstance;e.alpha=this.originalAlpha;let t=e.tint;if(t!==void 0){let n=typeof this.originalTint==`number`?this.originalTint:16777215;I(t)?t.set(n):e.tint=n}}this.flashSubscription&&=null,this.elementRef=null}};On(`flash`,Fa);var Ia=(e,t,n)=>Math.max(t,Math.min(n,e)),La=class extends M{constructor(...e){super(...e),this.elementRef=null,this.tickSubscription=null,this.sampleAccumulatorMs=0,this.managesAlpha=!1}onInit(e){this.elementRef=e}onMount(e){this.elementRef=e,this.evaluateVisibility(),this.bindTick()}onUpdate(){this.sampleAccumulatorMs=0,this.evaluateVisibility()}onDestroy(){let e=this.elementRef?.componentInstance;e&&(e.visible=this.readBaseVisible(),this.managesAlpha&&(e.alpha=this.readBaseAlpha())),this.tickSubscription?.unsubscribe(),this.tickSubscription=null,this.sampleAccumulatorMs=0,this.managesAlpha=!1,this.elementRef=null}bindTick(){this.tickSubscription?.unsubscribe(),this.tickSubscription=null;let e=this.elementRef?.props?.context?.tick;e?.observable&&(this.tickSubscription=e.observable.subscribe(e=>{let t=e?.value??e,n=Number(t?.deltaTime),r=this.readOptions(),i=1e3/r.sampleHz;this.sampleAccumulatorMs+=Number.isFinite(n)?n:i,!(this.sampleAccumulatorMs<i)&&(this.sampleAccumulatorMs=0,this.evaluateVisibility(r))}))}resolveSignalValue(e,t){return e==null?t:I(e)?e()??t:e}readOptions(){let e=this.elementRef?.props?.fogVisibility,t=e?.value??e??{},n=this.resolveSignalValue(t.controller,null),r=this.resolveSignalValue(t.mode,`visible`),i=Ia(Number(this.resolveSignalValue(t.threshold,.65)),0,1),a=this.resolveSignalValue(t.hideAs,`visible`),o=Ia(Number(this.resolveSignalValue(t.hiddenAlpha,0)),0,1),s=Ia(Number(this.resolveSignalValue(t.sampleHz,30)),1,240),c=t.point?this.resolveSignalValue(t.point,void 0):void 0;return{controller:n&&typeof n==`object`?n:null,mode:r,threshold:i,hideAs:a,hiddenAlpha:o,sampleHz:s,point:c}}readBaseVisible(){let e=this.elementRef?.propObservables?.visible??this.elementRef?.props?.visible;return!!this.resolveSignalValue(e,!0)}readBaseAlpha(){let e=this.elementRef?.propObservables?.alpha??this.elementRef?.props?.alpha,t=Number(this.resolveSignalValue(e,1));return Number.isFinite(t)?Ia(t,0,1):1}samplePoint(e){if(e.point&&typeof e.point==`object`){let t=Number(this.resolveSignalValue(e.point.x,NaN)),n=Number(this.resolveSignalValue(e.point.y,NaN));if(Number.isFinite(t)&&Number.isFinite(n))return{x:t,y:n}}let t=this.elementRef?.componentInstance;return{x:Number(t?.x??0),y:Number(t?.y??0)}}resolveVisibleState(e,t,n,r){if(typeof e.isVisibleAt==`function`)return!!e.isVisibleAt(t,n,r);if(typeof e.clarityAt==`function`){let i=Number(e.clarityAt(t,n));return Number.isFinite(i)?i>=r:!0}return typeof e.stateAt==`function`?e.stateAt(t,n,r)===`visible`:!0}resolveExploredState(e,t,n,r){return typeof e.isExploredAt==`function`?!!e.isExploredAt(t,n):typeof e.stateAt==`function`?e.stateAt(t,n,r)!==`unknown`:this.resolveVisibleState(e,t,n,r)}evaluateVisibility(e){let t=this.elementRef?.componentInstance;if(!t)return;let n=e??this.readOptions(),r=this.readBaseVisible(),i=this.readBaseAlpha();if(!n.controller){t.visible=r,this.managesAlpha&&=(t.alpha=i,!1);return}typeof n.controller.version==`function`&&n.controller.version();let{x:a,y:o}=this.samplePoint(n),s=!0;if(s=n.mode===`explored`?this.resolveExploredState(n.controller,a,o,n.threshold):this.resolveVisibleState(n.controller,a,o,n.threshold),n.hideAs===`alpha`){t.visible=r,t.alpha=s?i:Math.min(i,n.hiddenAlpha),this.managesAlpha=!0;return}t.visible=r&&s,this.managesAlpha&&=(t.alpha=i,!1)}};On(`fogVisibility`,La);function U(e){return e&&typeof e==`string`?e.endsWith(`%`):!1}var Ra=`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`.split(`.`);function za(e){return class extends e{constructor(...e){super(...e),this.#e=null,this.isFlex=!1,this.fullProps={},this.isMounted=!1,this._anchorPoints=new t.ObservablePoint({_onUpdate:()=>{}},0,0),this.isCustomAnchor=!1,this.displayWidth=F(0),this.displayHeight=F(0),this.overrideProps=[],this.layout=null,this.onBeforeDestroy=null,this.onAfterMount=null,this.subjectInit=new Le(null),this.disableLayout=!1,this.#t=new Map,this.#n=null,this.#r=null}#e;#t;#n;#r;getElement(){return this.#r}onLayoutComputed(e){}get deltaRatio(){return this.#e?.scheduler?.tick.value.deltaRatio}get parentIsFlex(){return this.disableLayout?!1:this.parent?.isFlex}onInit(e){Object.prototype.hasOwnProperty.call(this,`layout`)&&delete this.layout,this._id=e.id;for(let t of Ra)if(e[t]&&!this.overrideProps.includes(t)){this.eventMode=`static`;let n=e[t],r=(...e)=>{if(!(this.#r&&ma(this.#r)))return n(...e)};t===`click`?(this.on(`pointertap`,r),this.#t.set(`pointertap`,r)):(this.on(t,r),this.#t.set(t,r))}(e.onBeforeDestroy||e[`on-before-destroy`])&&(this.onBeforeDestroy=e.onBeforeDestroy||e[`on-before-destroy`]),(e.onAfterMount||e[`on-after-mount`])&&(this.onAfterMount=e.onAfterMount||e[`on-after-mount`]),(e.justifyContent||e.alignItems||e.flexDirection||e.flexWrap||e.alignContent||e.display==`flex`||U(e.width)||U(e.height)||e.isRoot)&&(this.layout={},this.isFlex=!0),this.subjectInit.next(this)}async onMount(e,t){if(!this.destroyed&&(this.#r=e,this.#e=e.props.context,e.parent)){let n=e.parent,r=n.componentInstance;if(typeof r?.addChild!=`function`){let t=n.parent;for(;t&&typeof t.componentInstance?.addChild!=`function`;)t=t.parent;if(t&&typeof t.componentInstance?.addChild==`function`)n=t,r=n.componentInstance;else{console.warn(`DisplayObject mount skipped: parent has no addChild`,{child:e.tag,parent:e.parent?.tag});return}}if(r.isFlex&&!this.layout&&!this.disableLayout)try{this.layout={}}catch(e){console.warn(`Failed to set layout:`,e)}t===void 0||n!==e.parent||typeof r?.addChildAt!=`function`?r.addChild(this):r.addChildAt(this,t),this.isMounted=!0,this.onUpdate(e.props);let i=e=>{e.computedLayout&&(this.#n={width:e.computedLayout.width,height:e.computedLayout.height}),this.onLayoutComputed(e)};this.on(`layout`,i),this.#t.set(`layout`,i),this.onAfterMount&&await this.onAfterMount()}}onUpdate(e){if(this.fullProps={...this.fullProps,...e},this.destroyed||!this.#e||!this.parent)return;if(e.x!==void 0&&this.setX(e.x),e.y!==void 0&&this.setY(e.y),e.scale!==void 0&&$t(this.scale,e.scale),e.anchor!==void 0&&!this.isCustomAnchor&&$t(this.anchor,e.anchor),e.width!==void 0&&this.setWidth(e.width),e.height!==void 0&&this.setHeight(e.height),e.minWidth!==void 0&&this.setMinWidth(e.minWidth),e.minHeight!==void 0&&this.setMinHeight(e.minHeight),e.maxWidth!==void 0&&this.setMaxWidth(e.maxWidth),e.maxHeight!==void 0&&this.setMaxHeight(e.maxHeight),e.aspectRatio!==void 0&&this.setAspectRatio(e.aspectRatio),e.flexGrow!==void 0&&this.setFlexGrow(e.flexGrow),e.flexShrink!==void 0&&this.setFlexShrink(e.flexShrink),e.flexBasis!==void 0&&this.setFlexBasis(e.flexBasis),e.rowGap!==void 0&&this.setRowGap(e.rowGap),e.columnGap!==void 0&&this.setColumnGap(e.columnGap),e.top!==void 0&&this.setTop(e.top),e.left!==void 0&&this.setLeft(e.left),e.right!==void 0&&this.setRight(e.right),e.bottom!==void 0&&this.setBottom(e.bottom),e.objectFit!==void 0&&this.setObjectFit(e.objectFit),e.objectPosition!==void 0&&this.setObjectPosition(e.objectPosition),e.transformOrigin!==void 0&&this.setTransformOrigin(e.transformOrigin),e.skew!==void 0&&$t(this.skew,e.skew),e.tint&&(this.tint=e.tint),e.rotation!==void 0&&(this.rotation=e.rotation),e.angle!==void 0&&(this.angle=e.angle),e.zIndex!==void 0&&(this.zIndex=e.zIndex),e.roundPixels!==void 0&&(this.roundPixels=e.roundPixels),e.cursor&&(this.cursor=e.cursor),e.visible!==void 0&&(this.visible=e.visible),e.alpha!==void 0&&(this.alpha=e.alpha),e.pivot&&$t(this.pivot,e.pivot),e.flexDirection&&this.setFlexDirection(e.flexDirection),e.flexWrap&&this.setFlexWrap(e.flexWrap),e.justifyContent&&this.setJustifyContent(e.justifyContent),e.alignItems&&this.setAlignItems(e.alignItems),e.alignContent&&this.setAlignContent(e.alignContent),e.alignSelf&&this.setAlignSelf(e.alignSelf),e.margin&&this.setMargin(e.margin),e.padding&&this.setPadding(e.padding),e.gap&&this.setGap(e.gap),e.border&&this.setBorder(e.border),e.positionType&&this.setPositionType(e.positionType),e.filters&&(this.filters=e.filters),e.maskOf&&na(e.maskOf)&&(e.maskOf.componentInstance.mask=this),e.shadowCaster!==void 0){let t=e.shadowCaster?.value??e.shadowCaster;if(t&&typeof t==`object`&&!Array.isArray(t)){let e=this.shadowCaster??{};this.shadowCaster={...e,...t}}else this.shadowCaster=t}if(e.footprintCaster!==void 0){let t=e.footprintCaster?.value??e.footprintCaster;if(t&&typeof t==`object`&&!Array.isArray(t)){let e=this.footprintCaster??{};this.footprintCaster={...e,...t}}else this.footprintCaster=t}e.blendMode&&(this.blendMode=e.blendMode),e.filterArea&&(this.filterArea=e.filterArea);let n=this.filters||[];if(e.blur){let r=n.find(e=>e instanceof t.BlurFilter);r||(r=new t.BlurFilter(typeof e.blur==`number`?{strength:e.blur}:e.blur),n.push(r)),Object.assign(r,e.blur)}this.filters=n}async onDestroy(e,t){for(let[e,t]of this.#t)this.off(e,t);this.#t.clear(),this.#r=null,this.onBeforeDestroy&&await this.onBeforeDestroy(),t&&t(),super.destroy()}setFlexDirection(e){this.layout={flexDirection:e}}setFlexWrap(e){this.layout={flexWrap:e}}setAlignContent(e){this.layout={alignContent:e}}setAlignSelf(e){this.layout={alignSelf:e}}setAlignItems(e){this.layout={alignItems:e}}setJustifyContent(e){this.layout={justifyContent:e}}setPosition(e){e instanceof Array?e.length===2?this.layout={positionY:e[0],positionX:e[1]}:e.length===4&&(this.layout={positionTop:e[0],positionRight:e[1],positionBottom:e[2],positionLeft:e[3]}):this.layout={position:e}}setX(e){e+=this.getWidth()*this._anchorPoints.x,this.parentIsFlex?(this.x=e,this.layout={x:e}):this.x=e}setY(e){e+=this.getHeight()*this._anchorPoints.y,this.parentIsFlex?(this.y=e,this.layout={y:e}):this.y=e}setPadding(e){e instanceof Array?e.length===2?this.layout={paddingVertical:e[0],paddingHorizontal:e[1]}:e.length===4&&(this.layout={paddingTop:e[0],paddingRight:e[1],paddingBottom:e[2],paddingLeft:e[3]}):this.layout={padding:e}}setMargin(e){e instanceof Array?e.length===2?this.layout={marginVertical:e[0],marginHorizontal:e[1]}:e.length===4&&(this.layout={marginTop:e[0],marginRight:e[1],marginBottom:e[2],marginLeft:e[3]}):this.layout={margin:e}}setGap(e){this.layout={gap:e}}setBorder(e){e instanceof Array?e.length===2?this.layout={borderVertical:e[0],borderHorizontal:e[1]}:e.length===4&&(this.layout={borderTop:e[0],borderRight:e[1],borderBottom:e[2],borderLeft:e[3]}):this.layout={border:e}}setPositionType(e){this.layout={position:e}}setWidth(e){this.displayWidth.set(e),this.parentIsFlex?this.layout={width:e}:this.width=e}setHeight(e){this.displayHeight.set(e),this.parentIsFlex?this.layout={height:e}:this.height=e}getWidth(){return U(this.fullProps.width)?this.#n?.width===void 0?typeof this.width==`number`?this.width:0:this.#n.width:typeof this.width==`number`&&this.width>0?this.width:typeof this.displayWidth()==`number`?this.displayWidth():0}getHeight(){return U(this.fullProps.height)?this.#n?.height===void 0?typeof this.height==`number`?this.height:0:this.#n.height:typeof this.height==`number`&&this.height>0?this.height:typeof this.displayHeight()==`number`?this.displayHeight():0}setMinWidth(e){this.layout={minWidth:e}}setMinHeight(e){this.layout={minHeight:e}}setMaxWidth(e){this.layout={maxWidth:e}}setMaxHeight(e){this.layout={maxHeight:e}}setAspectRatio(e){this.layout={aspectRatio:e}}setFlexGrow(e){this.layout={flexGrow:e}}setFlexShrink(e){this.layout={flexShrink:e}}setFlexBasis(e){this.layout={flexBasis:e}}setRowGap(e){this.layout={rowGap:e}}setColumnGap(e){this.layout={columnGap:e}}setTop(e){this.layout={top:e}}setLeft(e){this.layout={left:e}}setRight(e){this.layout={right:e}}setBottom(e){this.layout={bottom:e}}setObjectFit(e){try{this.layout={objectFit:e}}catch{}}setObjectPosition(e){try{this.layout={objectPosition:e}}catch{}}setTransformOrigin(e){try{this.layout={transformOrigin:e}}catch{}}}}var Ba=class{constructor(){this.assets=new Map,this.onProgressCallbacks=new Set,this.onCompleteCallbacks=new Set,this.assetCounter=0,this.isComplete=!1}registerAsset(e){let t=`asset_${this.assetCounter++}_${e}`;return this.assets.set(t,{progress:0,completed:!1}),this.isComplete=!1,this.updateGlobalProgress(),t}updateProgress(e,t){let n=this.assets.get(e);if(!n){console.warn(`Asset ${e} not found in tracker`);return}n.progress=Math.max(0,Math.min(1,t)),this.updateGlobalProgress()}completeAsset(e){let t=this.assets.get(e);if(!t){console.warn(`Asset ${e} not found in tracker`);return}t.progress=1,t.completed=!0,this.updateGlobalProgress(),this.checkCompletion()}removeAsset(e){this.assets.delete(e),this.updateGlobalProgress()}onProgress(e){this.onProgressCallbacks.add(e);try{e(this.getGlobalProgress())}catch(e){console.error(`Error in onProgress callback:`,e)}return()=>{this.onProgressCallbacks.delete(e)}}onComplete(e){return this.onCompleteCallbacks.add(e),this.isComplete&&e(),()=>{this.onCompleteCallbacks.delete(e)}}getGlobalProgress(){if(this.assets.size===0)return 1;let e=0;for(let t of this.assets.values())e+=t.progress;return e/this.assets.size}getAssetCount(){return this.assets.size}getCompletedCount(){let e=0;for(let t of this.assets.values())t.completed&&e++;return e}checkCompletion(){this.isComplete||Array.from(this.assets.values()).every(e=>e.completed)&&this.assets.size>0&&(this.isComplete=!0,this.onCompleteCallbacks.forEach(e=>{try{e()}catch(e){console.error(`Error in onComplete callback:`,e)}}))}updateGlobalProgress(){let e=this.getGlobalProgress();Array.from(this.onProgressCallbacks).forEach(t=>{try{t(e)}catch(e){console.error(`Error in onProgress callback:`,e)}})}reset(){this.assets.clear(),this.onProgressCallbacks.clear(),this.onCompleteCallbacks.clear(),this.assetCounter=0,this.isComplete=!1}};z(`Canvas`,class extends za(t.Container){});var Va=async(e={})=>{let{cursorStyles:t,width:n,height:r,class:i}=H(e);e.width||(n=F(800)),e.height||(r=F(600));let a=F({width:0,height:0});e.isRoot=!0;let o=new Ba,s={...e,context:{canvasSize:a,app:F(null),globalLoader:o},width:n?.(),height:r?.()};e.tick?s.context.tick=e.tick:s.context.tick=s.tick=F({timestamp:0,deltaTime:0,frame:0,deltaRatio:1}),globalThis.__CANVAS_ENGINE_TICK__=s.context.tick;let c=V(`Canvas`,s);return c.render=(n,r)=>{if(!r)return;let o=r.renderer,l=o.view.canvas;globalThis.__PIXI_STAGE__=c.componentInstance,globalThis.__PIXI_RENDERER__=o,e.tickStart!==!1&&c.directives.tick.start(),R(()=>{c.propObservables.tick(),o.render(c.componentInstance)}),r.stage=c.componentInstance,r.stage.layout={width:r.screen.width,height:r.screen.height,justifyContent:e.justifyContent,alignItems:e.alignItems},a.set({width:r.screen.width,height:r.screen.height}),r.renderer.on(`resize`,(e,t)=>{a.set({width:e,height:t}),r.stage.layout&&(r.stage.layout={width:e,height:t})}),e.tickStart!==!1&&c.directives.tick.start(),r.ticker.add(()=>{c.propObservables.tick()}),t&&R(()=>{o.events.cursorStyles=t()}),i&&R(()=>{l.classList.add(i())});let u=n.querySelector(`canvas`);u?n.replaceChild(l,u):n.appendChild(l),s.context.app.set(r)},c},Ha=class extends za(t.Container){constructor(...e){super(...e),this.isCustomAnchor=!0}onUpdate(e){e.anchor&&($t(this._anchorPoints,e.anchor),e.pivot=[this.getWidth()*this._anchorPoints.x,this.getHeight()*this._anchorPoints.y]),super.onUpdate(e),e.sortableChildren!=null&&(this.sortableChildren=e.sortableChildren)}async onMount(e){await super.onMount(e);let{componentInstance:t,props:n}=e,{pixiChildren:r}=n;r&&r.forEach(e=>{t.addChild(e)});let i=U(n.width),a=U(n.height);(i||a)&&this.on(`layout`,e=>{let t=e.computedLayout;i&&t.width!==void 0&&this.displayWidth.set(t.width),a&&t.height!==void 0&&this.displayHeight.set(t.height)})}};z(`Container`,Ha);var Ua=e=>(z(`Container`,Ha),V(`Container`,e));z(`Graphics`,class extends za(t.Graphics){constructor(...e){super(...e),this.isCustomAnchor=!0}async onInit(e){await super.onInit(e),this.setObjectFit(`none`)}async onMount(e,t){await super.onMount(e,t);let{props:n,propObservables:r}=e,i=I(r?.width)?r.width:F(n.width||0),a=I(r?.height)?r.height:F(n.height||0),o=I(r?.anchor)?r.anchor:F(n.anchor||[0,0]);this._width=i,this._height=a;let s=U(i()),c=U(a());n.draw&&(this.clearEffect=R(()=>{let e=i(),t=a(),r=o();typeof e==`string`||typeof t==`string`||(this.clear(),n.draw?.(this,e,t,r),this.subjectInit.next(this))})),this.on(`layout`,e=>{let t=e.computedLayout;s&&I(i)&&i()!==t.width&&i.set(t.width),c&&I(a)&&a()!==t.height&&a.set(t.height)})}onUpdate(e){super.onUpdate(e),e.width!==void 0&&this._width&&this._width()!==e.width&&this._width.set(e.width),e.height!==void 0&&this._height&&this._height()!==e.height&&this._height.set(e.height)}async onDestroy(e,t){await super.onDestroy(e,async()=>{this.clearEffect?.subscription.unsubscribe(),t()})}});function Wa(e){return V(`Graphics`,e)}var Ga=(e,n,r)=>{let i=new t.ObservablePoint({_onUpdate:()=>{}},0,0);$t(i,e);let a=i.x,o=i.y;return{x:-a*n,y:-o*r}};function Ka(e){let{color:t,borderRadius:n,border:r}=H(e,{borderRadius:null,border:null});return Wa({draw:(e,i,a,o)=>{let{x:s,y:c}=Ga(o,i,a);n()?e.roundRect(s,c,i,a,n()):e.rect(s,c,i,a),r&&e.stroke(r),e.fill(t())},...e})}function qa(e){let{color:t,border:n,radius:r}=H(e,{border:null,radius:null});return Wa({draw:(e,i,a,o)=>{let{x:s,y:c}=Ga(o,i,a);i==a||a==0?e.circle(s,c,r()||i):e.ellipse(s,c,i,a),n()&&e.stroke(n()),e.fill(t())},...e})}function Ja(e){return qa(e)}function Ya(e){let{color:t,border:n}=H(e,{border:null,color:`#000`});return Wa({draw:(e,r,i,a)=>{let{x:o,y:s}=Ga(a,r,i);e.moveTo(o,s+i),e.lineTo(o+r/2,s),e.lineTo(o+r,s+i),e.lineTo(o,s+i),e.fill(t()),n&&e.stroke(n)},...e})}function Xa(e){return Wa({draw:async n=>{e.src?n.context=new t.Graphics(await t.Assets.load({src:e.src,data:{parseAsGraphicsContext:!0}})).context:e.content?n.svg(e.content):e.svg&&n.svg(e.svg)},...e})}z(`Mesh`,class extends za(t.Mesh){constructor(){super({geometry:new t.Geometry})}onInit(e){if(super.onInit(e),e.geometry)try{this.geometry=e.geometry}catch(e){console.warn(`Failed to set geometry:`,e)}e.shader&&(this.shader=e.shader)}async onUpdate(e){if(super.onUpdate(e),e.geometry)try{this.geometry=e.geometry}catch(e){console.warn(`Failed to update geometry:`,e)}e.shader&&(this.shader=e.shader),e.texture?typeof e.texture==`string`?this.texture=await t.Assets.load(e.texture):this.texture=e.texture:e.image&&(this.texture=await t.Assets.load(e.image)),e.tint!==void 0&&(this.tint=e.tint),e.blendMode!==void 0&&(this.blendMode=e.blendMode),e.roundPixels!==void 0&&(this.roundPixels=e.roundPixels)}async onDestroy(e,t){await super.onDestroy(e,async()=>{t()})}});var Za=e=>V(`Mesh`,e),Qa=null,$a=null;function eo(e){$a?.(e)}function to(e){eo(t=>{let{context:n}=t.props,r;return n.tick&&(r=n.tick.observable.subscribe(({value:n})=>{ma(t)||e(n,t)})),()=>{r?.unsubscribe()}})}function no(e,t={},n){let r=new Set,i=new Set;Qa=e=>{r.add(e)},$a=e=>{i.add(e)},n[0]instanceof Array&&(n=n[0]);let a;return a=Array.isArray(e)?e.length===1?e[0]:no(Ua,{},e):`tag`in e||e instanceof D?e:e({...t,children:n}),a||={},a.effectSubscriptions=Array.from(r),a.effectMounts=[...Array.from(i),...a.effectMounts??[]],t?.dependencies&&(a.props=a.props||{},a.props.dependencies=t.dependencies),a instanceof Promise&&a.then(e=>{e.props.isRoot&&i.forEach(t=>t(e))}),Qa=null,$a=null,a}function W(e,t={},...n){return t?.dependencies?!t.dependencies.some(Ht)&&t.dependencies.every(e=>I(e)?e()!==void 0:e!==void 0)?no(e,t,n):new D(r=>{pa(t.dependencies).then(()=>{let i=no(e,t,n);r.next(i)})}):no(e,t,n)}function ro(e){return W(Ua)}var io=class{constructor(e){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(e)}init(e){if(!e||!e.length)this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});else if(Array.isArray(e[0]))for(let t=0;t<e.length;++t){let n=e[t],r=n[0];for(let e=1;e<n.length;++e){let t=n[e];this.segments.push({p1:r,p2:t,l:0}),r=t}}else{let t=e[0];for(let n=1;n<e.length;++n){let r=e[n];this.segments.push({p1:t,p2:r,l:0}),t=r}}for(let e=0;e<this.segments.length;++e){let{p1:t,p2:n}=this.segments[e],r=Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y));this.segments[e].l=r,this.totalLength+=r,this.countingLengths.push(this.totalLength)}}getRandPos(e){let t=Math.random()*this.totalLength,n,r;if(this.segments.length===1)n=this.segments[0],r=t;else for(let e=0;e<this.countingLengths.length;++e)if(t<this.countingLengths[e]){n=this.segments[e],r=e===0?t:t-this.countingLengths[e-1];break}r/=n.l||1;let{p1:i,p2:a}=n;e.x=i.x+r*(a.x-i.x),e.y=i.y+r*(a.y-i.y)}};io.type=`polygonalChain`,io.editorConfig=null;var ao=class{constructor(e){this.x=e.x,this.y=e.y,this.w=e.w,this.h=e.h}getRandPos(e){e.x=Math.random()*this.w+this.x,e.y=Math.random()*this.h+this.y}};ao.type=`rect`,ao.editorConfig=null;var oo=class e{constructor(e,t,n){this.value=e,this.time=t,this.next=null,this.isStepped=!1,n?this.ease=typeof n==`function`?n:go(n):this.ease=null}static createList(t){if(`list`in t){let n=t.list,r,{value:i,time:a}=n[0],o=r=new e(typeof i==`string`?ho(i):i,a,t.ease);if(n.length>2||n.length===2&&n[1].value!==i)for(let t=1;t<n.length;++t){let{value:i,time:a}=n[t];r.next=new e(typeof i==`string`?ho(i):i,a),r=r.next}return o.isStepped=!!t.isStepped,o}let n=new e(typeof t.start==`string`?ho(t.start):t.start,0);return t.end!==t.start&&(n.next=new e(typeof t.end==`string`?ho(t.end):t.end,1)),n}},so=t.Texture.from,co=Math.PI/180;function lo(e,t){if(!e)return;let n=Math.sin(e),r=Math.cos(e),i=t.x*r-t.y*n,a=t.x*n+t.y*r;t.x=i,t.y=a}function uo(e,t,n){return e<<16|t<<8|n}function fo(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function po(e){let t=1/fo(e);e.x*=t,e.y*=t}function mo(e,t){e.x*=t,e.y*=t}function ho(e,t){t||={},e.charAt(0)===`#`?e=e.substr(1):e.indexOf(`0x`)===0&&(e=e.substr(2));let n;return e.length===8&&(n=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),n&&(t.a=parseInt(n,16)),t}function go(e){let t=e.length,n=1/t;return function(r){let i=t*r|0,a=(r-i*n)*t,o=e[i]||e[t-1];return o.s+a*(2*(1-a)*(o.cp-o.s)+a*(o.e-o.s))}}function _o(e){return e||`normal`}var vo=class{constructor(e){this.x=e.x||0,this.y=e.y||0,this.radius=e.radius,this.innerRadius=e.innerRadius||0,this.rotation=!!e.affectRotation}getRandPos(e){this.innerRadius===this.radius?e.x=this.radius:e.x=Math.random()*(this.radius-this.innerRadius)+this.innerRadius,e.y=0;let t=Math.random()*Math.PI*2;this.rotation&&(e.rotation+=t),lo(t,e.position),e.position.x+=this.x,e.position.y+=this.y}};vo.type=`torus`,vo.editorConfig=null;var G;(function(e){e[e.Spawn=0]=`Spawn`,e[e.Normal=2]=`Normal`,e[e.Late=5]=`Late`})(G||={});var yo=class{constructor(e){this.order=G.Late,this.minStart=e.minStart,this.maxStart=e.maxStart,this.accel=e.accel,this.rotate=!!e.rotate,this.maxSpeed=e.maxSpeed??0}initParticles(e){let n=e;for(;n;){let e=Math.random()*(this.maxStart-this.minStart)+this.minStart;n.config.velocity?n.config.velocity.set(e,0):n.config.velocity=new t.Point(e,0),lo(n.rotation,n.config.velocity),n=n.next}}updateParticle(e,t){let n=e.config.velocity,r=n.x,i=n.y;if(n.x+=this.accel.x*t,n.y+=this.accel.y*t,this.maxSpeed){let e=fo(n);e>this.maxSpeed&&mo(n,this.maxSpeed/e)}e.x+=(r+n.x)/2*t,e.y+=(i+n.y)/2*t,this.rotate&&(e.rotation=Math.atan2(n.y,n.x))}};yo.type=`moveAcceleration`,yo.editorConfig=null;function bo(e){return this.ease&&(e=this.ease(e)),(this.first.next.value-this.first.value)*e+this.first.value}function xo(e){this.ease&&(e=this.ease(e));let t=this.first.value,n=this.first.next.value;return uo((n.r-t.r)*e+t.r,(n.g-t.g)*e+t.g,(n.b-t.b)*e+t.b)}function So(e){this.ease&&(e=this.ease(e));let t=this.first,n=t.next;for(;e>n.time;)t=n,n=n.next;return e=(e-t.time)/(n.time-t.time),(n.value-t.value)*e+t.value}function Co(e){this.ease&&(e=this.ease(e));let t=this.first,n=t.next;for(;e>n.time;)t=n,n=n.next;e=(e-t.time)/(n.time-t.time);let r=t.value,i=n.value;return uo((i.r-r.r)*e+r.r,(i.g-r.g)*e+r.g,(i.b-r.b)*e+r.b)}function wo(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 To(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;let n=t.value;return uo(n.r,n.g,n.b)}var Eo=class{constructor(e=!1){this.first=null,this.isColor=!!e,this.interpolate=null,this.ease=null}reset(e){this.first=e,e.next&&e.next.time>=1?this.interpolate=this.isColor?xo:bo:e.isStepped?this.interpolate=this.isColor?To:wo:this.interpolate=this.isColor?Co:So,this.ease=this.first.ease}},Do=class{constructor(e){this.order=G.Normal,this.list=new Eo(!1),this.list.reset(oo.createList(e.alpha))}initParticles(e){let t=e;for(;t;)t.alpha=this.list.first.value,t=t.next}updateParticle(e){e.alpha=this.list.interpolate(e.agePercent)}};Do.type=`alpha`,Do.editorConfig=null;var Oo=class{constructor(e){this.order=G.Normal,this.value=e.alpha}initParticles(e){let t=e;for(;t;)t.alpha=this.value,t=t.next}};Oo.type=`alphaStatic`,Oo.editorConfig=null;function ko(e){let n=[];for(let r=0;r<e.length;++r){let i=e[r];if(typeof i==`string`)n.push(so(i));else if(i instanceof t.Texture)n.push(i);else{let e=i.count||1;for(i=typeof i.texture==`string`?so(i.texture):i.texture;e>0;--e)n.push(i)}}return n}var Ao=class{constructor(e){this.order=G.Normal,this.anims=[];for(let t=0;t<e.anims.length;++t){let n=e.anims[t],r=ko(n.textures),i=n.framerate<0?-1:n.framerate>0?n.framerate:60,a={textures:r,duration:i>0?r.length/i:0,framerate:i,loop:i>0?!!n.loop:!1};this.anims.push(a)}}initParticles(e){let t=e;for(;t;){let e=Math.floor(Math.random()*this.anims.length),n=t.config.anim=this.anims[e];t.texture=n.textures[0],t.config.animElapsed=0,n.framerate===-1?(t.config.animDuration=t.maxLife,t.config.animFramerate=n.textures.length/t.maxLife):(t.config.animDuration=n.duration,t.config.animFramerate=n.framerate),t=t.next}}updateParticle(e,n){let r=e.config,i=r.anim;r.animElapsed+=n,r.animElapsed>=r.animDuration&&(r.anim.loop?r.animElapsed%=r.animDuration:r.animElapsed=r.animDuration-1e-6);let a=r.animElapsed*r.animFramerate+1e-7|0;e.texture=i.textures[a]||i.textures[i.textures.length-1]||t.Texture.EMPTY}};Ao.type=`animatedRandom`,Ao.editorConfig=null;var jo=class{constructor(e){this.order=G.Normal;let t=e.anim,n=ko(t.textures),r=t.framerate<0?-1:t.framerate>0?t.framerate:60;this.anim={textures:n,duration:r>0?n.length/r:0,framerate:r,loop:r>0?!!t.loop:!1}}initParticles(e){let t=e,n=this.anim;for(;t;)t.texture=n.textures[0],t.config.animElapsed=0,n.framerate===-1?(t.config.animDuration=t.maxLife,t.config.animFramerate=n.textures.length/t.maxLife):(t.config.animDuration=n.duration,t.config.animFramerate=n.framerate),t=t.next}updateParticle(e,n){let r=this.anim,i=e.config;i.animElapsed+=n,i.animElapsed>=i.animDuration&&(r.loop?i.animElapsed%=i.animDuration:i.animElapsed=i.animDuration-1e-6);let a=i.animElapsed*i.animFramerate+1e-7|0;e.texture=r.textures[a]||r.textures[r.textures.length-1]||t.Texture.EMPTY}};jo.type=`animatedSingle`,jo.editorConfig=null;var Mo=class{constructor(e){this.order=G.Normal,this.value=e.blendMode}initParticles(e){let t=e;for(;t;)t.blendMode=_o(this.value),t=t.next}};Mo.type=`blendMode`,Mo.editorConfig=null;var No=class{constructor(e){this.order=G.Spawn,this.spacing=e.spacing*co,this.start=e.start*co,this.distance=e.distance}initParticles(e){let t=0,n=e;for(;n;){let e;e=this.spacing?this.start+this.spacing*t:Math.random()*Math.PI*2,n.rotation=e,this.distance&&(n.position.x=this.distance,lo(e,n.position)),n=n.next,++t}}};No.type=`spawnBurst`,No.editorConfig=null;var Po=class{constructor(e){this.order=G.Normal,this.list=new Eo(!0),this.list.reset(oo.createList(e.color))}initParticles(e){let t=e,n=this.list.first.value,r=uo(n.r,n.g,n.b);for(;t;)t.tint=r,t=t.next}updateParticle(e){e.tint=this.list.interpolate(e.agePercent)}};Po.type=`color`,Po.editorConfig=null;var Fo=class{constructor(e){this.order=G.Normal;let t=e.color;t.charAt(0)===`#`?t=t.substr(1):t.indexOf(`0x`)===0&&(t=t.substr(2)),this.value=parseInt(t,16)}initParticles(e){let t=e;for(;t;)t.tint=this.value,t=t.next}};Fo.type=`colorStatic`,Fo.editorConfig=null;var Io=class{constructor(e){this.order=G.Normal,this.index=0,this.textures=e.textures.map(e=>typeof e==`string`?so(e):e)}initParticles(e){let t=e;for(;t;)t.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),t=t.next}};Io.type=`textureOrdered`,Io.editorConfig=null;var Lo=new t.Point,Ro=`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`.split(`.`),zo=new RegExp([`[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]`].concat(Ro).join(`|`),`g`);function Bo(e){let t=e.match(zo);for(let e=t.length-1;e>=0;--e)Ro.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return e=t.join(``),Function(`x`,`return ${e};`)}var Vo=class{constructor(e){if(this.order=G.Late,e.path)if(typeof e.path==`function`)this.path=e.path;else try{this.path=Bo(e.path)}catch{this.path=null}else this.path=e=>e;this.list=new Eo(!1),this.list.reset(oo.createList(e.speed)),this.minMult=e.minMult??1}initParticles(e){let n=e;for(;n;){n.config.initRotation=n.rotation,n.config.initPosition?n.config.initPosition.copyFrom(n.position):n.config.initPosition=new t.Point(n.x,n.y),n.config.movement=0;let e=Math.random()*(1-this.minMult)+this.minMult;n.config.speedMult=e,n=n.next}}updateParticle(e,t){let n=this.list.interpolate(e.agePercent)*e.config.speedMult;e.config.movement+=n*t,Lo.x=e.config.movement,Lo.y=this.path(Lo.x),lo(e.config.initRotation,Lo),e.position.x=e.config.initPosition.x+Lo.x,e.position.y=e.config.initPosition.y+Lo.y}};Vo.type=`movePath`,Vo.editorConfig=null;var Ho=class{constructor(){this.order=G.Spawn}initParticles(e){}};Ho.type=`spawnPoint`,Ho.editorConfig=null;var Uo=class{constructor(e){this.order=G.Normal,this.textures=e.textures.map(e=>typeof e==`string`?so(e):e)}initParticles(e){let t=e;for(;t;){let e=Math.floor(Math.random()*this.textures.length);t.texture=this.textures[e],t=t.next}}};Uo.type=`textureRandom`,Uo.editorConfig=null;var Wo=class{constructor(e){this.order=G.Normal,this.minStart=e.minStart*co,this.maxStart=e.maxStart*co,this.minSpeed=e.minSpeed*co,this.maxSpeed=e.maxSpeed*co,this.accel=e.accel*co}initParticles(e){let t=e;for(;t;)this.minStart===this.maxStart?t.rotation+=this.maxStart:t.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,t.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,t=t.next}updateParticle(e,t){if(this.accel){let n=e.config.rotSpeed;e.config.rotSpeed+=this.accel*t,e.rotation+=(e.config.rotSpeed+n)/2*t}else e.rotation+=e.config.rotSpeed*t}};Wo.type=`rotation`,Wo.editorConfig=null;var Go=class{constructor(e){this.order=G.Normal,this.min=e.min*co,this.max=e.max*co}initParticles(e){let t=e;for(;t;)this.min===this.max?t.rotation+=this.max:t.rotation+=Math.random()*(this.max-this.min)+this.min,t=t.next}};Go.type=`rotationStatic`,Go.editorConfig=null;var Ko=class{constructor(e){this.order=G.Late+1,this.rotation=(e.rotation||0)*co}initParticles(e){let t=e;for(;t;)t.rotation=this.rotation,t=t.next}};Ko.type=`noRotation`,Ko.editorConfig=null;var qo=class{constructor(e){this.order=G.Normal,this.list=new Eo(!1),this.list.reset(oo.createList(e.scale)),this.minMult=e.minMult??1}initParticles(e){let t=e;for(;t;){let e=Math.random()*(1-this.minMult)+this.minMult;t.config.scaleMult=e,t.scale.x=t.scale.y=this.list.first.value*e,t=t.next}}updateParticle(e){e.scale.x=e.scale.y=this.list.interpolate(e.agePercent)*e.config.scaleMult}};qo.type=`scale`,qo.editorConfig=null;var Jo=class{constructor(e){this.order=G.Normal,this.min=e.min,this.max=e.max}initParticles(e){let t=e;for(;t;){let e=Math.random()*(this.max-this.min)+this.min;t.scale.x=t.scale.y=e,t=t.next}}};Jo.type=`scaleStatic`,Jo.editorConfig=null;var Yo=class e{static registerShape(t,n){e.shapes[n||t.type]=t}constructor(t){this.order=G.Spawn;let n=e.shapes[t.type];if(!n)throw Error(`No shape found with type '${t.type}'`);this.shape=new n(t.data)}initParticles(e){let t=e;for(;t;)this.shape.getRandPos(t),t=t.next}};Yo.type=`spawnShape`,Yo.editorConfig=null,Yo.shapes={},Yo.registerShape(io),Yo.registerShape(ao),Yo.registerShape(vo),Yo.registerShape(vo,`circle`);var Xo=class{constructor(e){this.order=G.Normal,this.texture=typeof e.texture==`string`?so(e.texture):e.texture}initParticles(e){let t=e;for(;t;)t.texture=this.texture,t=t.next}};Xo.type=`textureSingle`,Xo.editorConfig=null;var Zo=class{constructor(e){this.order=G.Late,this.list=new Eo(!1),this.list.reset(oo.createList(e.speed)),this.minMult=e.minMult??1}initParticles(e){let n=e;for(;n;){let e=Math.random()*(1-this.minMult)+this.minMult;n.config.speedMult=e,n.config.velocity?n.config.velocity.set(this.list.first.value*e,0):n.config.velocity=new t.Point(this.list.first.value*e,0),lo(n.rotation,n.config.velocity),n=n.next}}updateParticle(e,t){let n=this.list.interpolate(e.agePercent)*e.config.speedMult,r=e.config.velocity;po(r),mo(r,n),e.x+=r.x*t,e.y+=r.y*t}};Zo.type=`moveSpeed`,Zo.editorConfig=null;var Qo=class{constructor(e){this.order=G.Late,this.min=e.min,this.max=e.max}initParticles(e){let n=e;for(;n;){let e=Math.random()*(this.max-this.min)+this.min;n.config.velocity?n.config.velocity.set(e,0):n.config.velocity=new t.Point(e,0),lo(n.rotation,n.config.velocity),n=n.next}}updateParticle(e,t){let n=e.config.velocity;e.x+=n.x*t,e.y+=n.y*t}};Qo.type=`moveSpeedStatic`,Qo.editorConfig=null;var $o=class extends t.Sprite{constructor(e){super(),this.prevChild=this.nextChild=null,this.emitter=e,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(e){this.maxLife=e,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()}},es=t.Ticker.shared,ts=Symbol(`Position particle per emitter position`),K=class e{static registerBehavior(t){e.knownBehaviors[t.type]=t}constructor(e,n){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 t.Point,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new t.Point,this._prevEmitterPos=new t.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=e,n&&this.init(n),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(e){typeof e==`number`&&e>0?this._frequency=e:this._frequency=1}get parent(){return this._parent}set parent(e){this.cleanup(),this._parent=e}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:go(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;let n=t.behaviors.map(t=>{let n=e.knownBehaviors[t.type];return n?new n(t.config):(console.error(`Unknown behavior: ${t.type}`),null)}).filter(e=>!!e);n.push(ts),n.sort((e,t)=>e===ts?t.order===G.Spawn?1:-1:t===ts?e.order===G.Spawn?-1:1:e.order-t.order),this.initBehaviors=n.slice(),this.updateBehaviors=n.filter(e=>e!==ts&&e.updateParticle),this.recycleBehaviors=n.filter(e=>e!==ts&&e.recycleParticle)}getBehavior(t){return e.knownBehaviors[t]&&this.initBehaviors.find(n=>n instanceof e.knownBehaviors[t])||null}fillPool(e){for(;e>0;--e){let e=new $o(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(e,t=!1){for(let n=0;n<this.recycleBehaviors.length;++n)this.recycleBehaviors[n].recycleParticle(e,!t);e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e===this._activeParticlesLast&&(this._activeParticlesLast=e.prev),e===this._activeParticlesFirst&&(this._activeParticlesFirst=e.next),e.prev=null,e.next=this._poolFirst,this._poolFirst=e,e.parent&&e.parent.removeChild(e),--this.particleCount}rotate(e){if(this.rotation===e)return;let t=e-this.rotation;this.rotation=e,lo(t,this.spawnPos),this._posChanged=!0}updateSpawnPos(e,t){this._posChanged=!0,this.spawnPos.x=e,this.spawnPos.y=t}updateOwnerPos(e,t){this._posChanged=!0,this.ownerPos.x=e,this.ownerPos.y=t}resetPositionTracking(){this._prevPosIsValid=!1}get emit(){return this._emit}set emit(e){this._emit=!!e,this._emitterLife=this.emitterLifetime}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){this._autoUpdate&&!e?es.remove(this.update,this):!this._autoUpdate&&e&&es.add(this.update,this),this._autoUpdate=!!e}playOnceAndDestroy(e){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=e}playOnce(e){this.emit=!0,this._completeCallback=e}update(e){if(typeof e!=`number`&&(e=e.deltaTime),this._autoUpdate&&(e=es.elapsedMS*.001),!this._parent)return;for(let t=this._activeParticlesFirst,n;t;t=n)if(n=t.next,t.age+=e,t.age>t.maxLife||t.age<0)this.recycle(t);else{let n=t.age*t.oneOverLife;this.customEase&&(n=this.customEase.length===4?this.customEase(n,0,1,1):this.customEase(n)),t.agePercent=n;for(let n=0;n<this.updateBehaviors.length;++n)if(this.updateBehaviors[n].updateParticle(t,e)){this.recycle(t);break}}let t,n;this._prevPosIsValid&&(t=this._prevEmitterPos.x,n=this._prevEmitterPos.y);let r=this.ownerPos.x+this.spawnPos.x,i=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=e<0?0:e;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){let s=1+this._spawnTimer/e;a=(r-t)*s+t,o=(i-n)*s+n}else a=r,o=i;let s=null,c=null;for(let e=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),t=0;t<e;++t){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let e;if(e=this.minLifetime===this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=e)continue;let t;this._poolFirst?(t=this._poolFirst,this._poolFirst=this._poolFirst.next,t.next=null):t=new $o(this),t.init(e),this.addAtBack?this._parent.addChildAt(t,0):this._parent.addChild(t),s?(c.next=t,t.prev=c,c=t):c=s=t,++this.particleCount}if(s){this._activeParticlesLast?(this._activeParticlesLast.next=s,s.prev=this._activeParticlesLast,this._activeParticlesLast=c):(this._activeParticlesFirst=s,this._activeParticlesLast=c);for(let e=0;e<this.initBehaviors.length;++e){let t=this.initBehaviors[e];if(t===ts)for(let e=s,t;e;e=t){t=e.next,this.rotation!==0&&(lo(this.rotation,e.position),e.rotation+=this.rotation),e.position.x+=a,e.position.y+=o,e.age+=-this._spawnTimer;let n=e.age*e.oneOverLife;this.customEase&&(n=this.customEase.length===4?this.customEase(n,0,1,1):this.customEase(n)),e.agePercent=n}else t.initParticles(s)}for(let e=s,t;e;e=t){t=e.next;for(let t=0;t<this.updateBehaviors.length;++t)if(this.updateBehaviors[t].updateParticle(e,-this._spawnTimer)){this.recycle(e);break}}}this._spawnTimer+=this._frequency}if(this._posChanged&&=(this._prevEmitterPos.x=r,this._prevEmitterPos.y=i,this._prevPosIsValid=!0,!1),!this._emit&&!this._activeParticlesFirst){if(this._completeCallback){let e=this._completeCallback;this._completeCallback=null,e()}this._destroyWhenComplete&&this.destroy()}}emitNow(){let e=this.ownerPos.x+this.spawnPos.x,t=this.ownerPos.y+this.spawnPos.y,n=null,r=null;for(let e=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),t=0;t<e;++t){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let e;this._poolFirst?(e=this._poolFirst,this._poolFirst=this._poolFirst.next,e.next=null):e=new $o(this);let t;t=this.minLifetime===this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,e.init(t),this.addAtBack?this._parent.addChildAt(e,0):this._parent.addChild(e),n?(r.next=e,e.prev=r,r=e):r=n=e,++this.particleCount}if(n){this._activeParticlesLast?(this._activeParticlesLast.next=n,n.prev=this._activeParticlesLast,this._activeParticlesLast=r):(this._activeParticlesFirst=n,this._activeParticlesLast=r);for(let r=0;r<this.initBehaviors.length;++r){let i=this.initBehaviors[r];if(i===ts)for(let r=n,i;r;r=i)i=r.next,this.rotation!==0&&(lo(this.rotation,r.position),r.rotation+=this.rotation),r.position.x+=e,r.position.y+=t;else i.initParticles(n)}}}cleanup(){let e,t;for(e=this._activeParticlesFirst;e;e=t)t=e.next,this.recycle(e,!0);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0}get destroyed(){return!(this._parent&&this.initBehaviors.length)}destroy(){this.autoUpdate=!1,this.cleanup();let e;for(let t=this._poolFirst;t;t=e)e=t.next,t.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(yo),K.registerBehavior(Do),K.registerBehavior(Oo),K.registerBehavior(Ao),K.registerBehavior(jo),K.registerBehavior(Mo),K.registerBehavior(No),K.registerBehavior(Po),K.registerBehavior(Fo),K.registerBehavior(Io),K.registerBehavior(Vo),K.registerBehavior(Ho),K.registerBehavior(Uo),K.registerBehavior(Wo),K.registerBehavior(Go),K.registerBehavior(Ko),K.registerBehavior(qo),K.registerBehavior(Jo),K.registerBehavior(Yo),K.registerBehavior(Xo),K.registerBehavior(Zo),K.registerBehavior(Qo),z(`ParticlesEmitter`,class extends Ha{constructor(...e){super(...e),this.elapsed=Date.now()}async onMount(e){await super.onMount(e);let{props:t}=e,n=t.context.tick;this.emitter=new K(this,t.config),this.subscriptionTick=n.observable.subscribe(e=>{if(!this.emitter)return;let t=Date.now();this.emitter.update((t-this.elapsed)*.001),this.elapsed=t})}onUpdate(e){}async onDestroy(e,t){await super.onDestroy(e,async()=>{this.emitter?.destroy(),this.emitter=null,this.subscriptionTick.unsubscribe(),t()})}});function ns(e){return V(`ParticlesEmitter`,e)}var rs=console.log,is=function(e){return e.Stand=`stand`,e.Walk=`walk`,e}({}),as=class extends za(t.Sprite){constructor(...e){super(...e),this.hitbox=null,this.currentAnimation=null,this.time=0,this.frameIndex=0,this.animations=new Map,this.subscriptionSheet=[],this.sheetParams={},this.sheetCurrentAnimation=is.Stand,this.app=null,this.globalLoader=null,this.trackedAssetIds=new Set,this.currentAnimationContainer=null}get renderer(){return this.app?.renderer}async detectImageDimensions(e){if(!e||typeof e!=`string`||e.trim()===``)throw Error(`Invalid image path provided to detectImageDimensions: ${e}`);let n=null;this.globalLoader&&(n=this.globalLoader.registerAsset(e),this.trackedAssetIds.add(n));let r=await t.Assets.load(e,e=>{this.globalLoader&&n&&this.globalLoader.updateProgress(n,e)});return this.globalLoader&&n&&this.globalLoader.completeAsset(n),{width:r.width,height:r.height}}async createTextures(e){let{width:n,height:r,framesHeight:i,framesWidth:a,image:o,offset:s}=e;if(!o||typeof o!=`string`||o.trim()===``)return console.warn(`Invalid image path provided to createTextures:`,o),[];let c=null;this.globalLoader&&(c=this.globalLoader.registerAsset(o),this.trackedAssetIds.add(c));let l=await t.Assets.load(o,e=>{this.globalLoader&&c&&this.globalLoader.updateProgress(c,e)});this.globalLoader&&c&&this.globalLoader.completeAsset(c),(!n||n<=0)&&(n=l.width,e.width=n),(!r||r<=0)&&(r=l.height,e.height=r);let u=e.spriteWidth,d=e.spriteHeight,f=[],p=s&&s.x||0,m=s&&s.y||0;for(let e=0;e<i;e++){f[e]=[];for(let i=0;i<a;i++){let a=i*u+p,o=e*d+m;if(o>r)throw rs(`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(a>n)throw rs(`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.`);f[e].push(new t.Texture({source:l.source,frame:new t.Rectangle(a,o,u,d)}))}}return f}async createAnimations(){let{textures:e}=this.spritesheet;if(e)for(let t in e){let n={...[`width`,`height`,`framesHeight`,`framesWidth`,`rectWidth`,`rectHeight`,`offset`,`image`,`sound`].reduce((e,t)=>({...e,[t]:this.spritesheet[t]}),{}),...e[t]},{rectWidth:r,width:i=0,framesWidth:a=1,rectHeight:o,height:s=0,framesHeight:c=1,image:l}=n,u=i,d=s;if(l&&(!u||u<=0||!d||d<=0)){let e=await this.detectImageDimensions(l);(!u||u<=0)&&(u=e.width,n.width=u),(!d||d<=0)&&(d=e.height,n.height=d)}n.spriteWidth=r||u/a,n.spriteHeight=o||d/c,this.animations.set(t,{frames:await this.createTextures(n),name:t,animations:e[t].animations,params:[],data:n,sprites:[]})}}async onMount(e){this[`#element`]=e;let{props:t,propObservables:n}=e,r=t.context.tick,i=t.sheet??{},a=t.sheet?.definition??{};if(this.app=t.context.app(),this.globalLoader=t.context?.globalLoader||null,i?.onFinish&&(this.onFinish=i.onFinish),this.subscriptionTick=r.observable.subscribe(e=>{this.destroyed||this.update(e)}),a){let e=a instanceof Promise?await a:a;this.spritesheet=e.value??e,await this.createAnimations()}if(i?.params&&(this.sheetParams=i.params),i?.playing&&this.has(i.playing)&&(this.sheetCurrentAnimation=i.playing,this.play(this.sheetCurrentAnimation,[this.sheetParams])),i.params)for(let e in n?.sheet.params){let t=n?.sheet.params[e];if(I(t))this.subscriptionSheet.push(t.observable.subscribe(t=>{this.animations.size!=0&&this.has(this.sheetCurrentAnimation)&&this.play(this.sheetCurrentAnimation,[{...this.sheetParams,[e]:t}])}));else{if(!this.has(this.sheetCurrentAnimation))continue;this.play(this.sheetCurrentAnimation,[{...this.sheetParams,[e]:t}])}}let o=L(()=>{let{x:e,y:t}=n??{};if(!e||!t)return!1;let r=e,i=t,a=Qi(r)&&r.animatedState().current!==r.animatedState().end,o=Qi(i)&&i.animatedState().current!==i.animatedState().end;return a||o});R(()=>{let e=o();if(!this.isMounted)return;let t=this.getMovementAnimationName(e);t&&(this.sheetCurrentAnimation=t,this.spritesheet&&this.play(this.sheetCurrentAnimation,[this.sheetParams]))}),super.onMount(e)}async onUpdate(e){if(this.destroyed)return;super.onUpdate(e),!this.globalLoader&&e.context?.globalLoader&&(this.globalLoader=e.context.globalLoader);let n=async e=>{if(!e||typeof e!=`string`||e.trim()===``)return console.warn(`Invalid image path provided to setTexture:`,e),null;let n=null;this.globalLoader&&(n=this.globalLoader.registerAsset(e),this.trackedAssetIds.add(n));let r=this.fullProps.loader?.onProgress,i=await t.Assets.load(e,e=>{if(this.globalLoader&&n&&this.globalLoader.updateProgress(n,e),r&&r(e),e==1){this.globalLoader&&n&&this.globalLoader.completeAsset(n);let e=this.fullProps.loader?.onComplete;e&&setTimeout(()=>{e(i)})}});return i},r=e.sheet,i=e.sheet?.definition??{};if(i?.type===`reset`){let e=i.value instanceof Promise?await i.value:i.value;this.spritesheet=e??i,await this.resetAnimations()}if(r?.params&&(this.sheetParams=r?.params),r?.playing&&this.isMounted&&this.spritesheet&&this.animations.size>0&&(this.sheetCurrentAnimation=r?.playing,this.play(this.sheetCurrentAnimation,[this.sheetParams])),e.hitbox!==void 0&&(this.hitbox=this.normalizeHitbox(e.hitbox)),e.scaleMode)this.baseTexture.scaleMode=e.scaleMode;else if(e.image&&this.fullProps.rectangle===void 0){let e=await n(this.fullProps.image);e&&(this.texture=e)}else e.texture&&(na(e.texture)?(e.texture.componentInstance.subjectInit.subscribe(),this.texture=this.renderer?.generateTexture(e.texture.componentInstance)):this.texture=e.texture);if(e.rectangle!==void 0){let{x:r,y:i,width:a,height:o}=e.rectangle?.value??e.rectangle,s=await n(this.fullProps.image);s&&(this.texture=new t.Texture({source:s.source,frame:new t.Rectangle(r,i,a,o)}))}this.hitbox&&!this.spritesheet&&this.applyHitboxAnchor(this.texture.width,this.texture.height)}async onDestroy(e,n){await super.onDestroy(e,async()=>{this.globalLoader&&(this.trackedAssetIds.forEach(e=>{this.globalLoader.removeAsset(e)}),this.trackedAssetIds.clear()),this.subscriptionSheet.forEach(e=>e.unsubscribe()),this.subscriptionTick.unsubscribe(),this.currentAnimationContainer&&this.parent instanceof t.Container&&this.parent.removeChild(this.currentAnimationContainer),n&&n()})}has(e){return this.animations.has(e)}get(e){return this.animations.get(e)}isPlaying(e){return e?this.currentAnimation==null?!1:this.currentAnimation.name==e:!!this.currentAnimation}getFirstAnimationName(){return this.animations.keys().next().value}getPlayableAnimationName(e){return e&&this.has(e)?e:this.getFirstAnimationName()}getMovementAnimationName(e){let t=e?is.Walk:is.Stand;if(this.has(t))return t;if(this.sheetCurrentAnimation&&this.has(this.sheetCurrentAnimation))return this.sheetCurrentAnimation;if(this.currentAnimation?.name&&this.has(this.currentAnimation.name))return this.currentAnimation.name}stop(){this.currentAnimation=null}play(e,n=[]){let r=this.currentAnimation?.params;if(this.isPlaying(e)&&Ut(n,r||[]))return;let i=this.get(e);if(!i)throw Error(`Impossible to play the ${e} animation because it doesn't exist on the "${this.id}" spritesheet`);let a=structuredClone(n);this.removeChildren(),i.sprites=[],this.currentAnimation=i,this.currentAnimation.params=a,this.time=0,this.frameIndex=0;let o=i.animations;o=Kt(o)?o(...a):o,this.currentAnimationContainer=new t.Container;for(let e of o){let n=new t.Sprite;for(let t of e)this.currentAnimation.sprites.push(t);this.currentAnimationContainer.addChild(n)}let s=this.currentAnimation.data.sound;s&&new Ca.Howl({src:s,autoplay:!0,loop:!1,volume:1}),this.update({deltaRatio:1})}async resetAnimations(){if(this.stop(),this.animations.clear(),this.currentAnimation=null,this.currentAnimationContainer=null,this.time=0,this.frameIndex=0,this.removeChildren(),this.spritesheet){await this.createAnimations();let e=this.getPlayableAnimationName(this.sheetCurrentAnimation);e&&(this.sheetCurrentAnimation=e,this.play(e,[this.sheetParams]))}}update({deltaRatio:e}){let t=this.getElement();if(t&&ma(t)||!this.isPlaying()||!this.currentAnimation||!this.currentAnimationContainer)return;let n=this,{frames:r,sprites:i,data:a}=this.currentAnimation,o=i[this.frameIndex],s=i[this.frameIndex+1];for(let e of this.currentAnimationContainer.children){if(!o||o.frameY==null||o.frameX==null)continue;this.texture=r[o.frameY][o.frameX];let e=e=>o[e]??a[e]??this.spritesheet[e],t=t=>{let n=e(t);n&&this[t].set(...n)};function i(t,r){let i=e(r||t);i!==void 0&&(n[t]=i)}this.applyTransform&&(o={...o,...this.applyTransform(o,a,this.spritesheet)});let s=e(`spriteRealSize`);o.sound,this.applyHitboxAnchor(a.spriteWidth,a.spriteHeight,s),t(`anchor`),t(`scale`),t(`skew`),t(`pivot`),i(`alpha`,`opacity`),i(`x`),i(`y`),i(`angle`),i(`rotation`),i(`visible`)}if(!s){this.time=0,this.frameIndex=0,this.onFinish&&i.length>1&&this.onFinish();return}this.time+=e??1,this.time>=s.time&&this.frameIndex++}applyHitboxAnchor(e,t,n){if(!this.hitbox||!e||!t)return;let r=(typeof n==`number`?n:n?.height)??t,i=Math.max(0,(t-r)/2),a=this.clamp((e-this.hitbox.w)/2/e),o=this.clamp((t-this.hitbox.h-i)/t),s=this.clamp(a+this.hitbox.w/2/e),c=this.clamp(o+this.hitbox.h/2/t),l=this.clamp((t-i)/t),u=a,d=o;switch(this.hitbox.anchorMode??`top-left`){case`center`:u=s,d=c;break;case`foot`:u=s,d=l;break;default:break}this.anchor.set(u,d)}normalizeHitbox(e){let t=e?.value??e;if(!t||typeof t!=`object`)return null;let{w:n,h:r,anchorMode:i}=t;return typeof n!=`number`||typeof r!=`number`?null:{w:n,h:r,anchorMode:i}}clamp(e){return Math.min(1,Math.max(0,e))}};z(`Sprite`,as);var os=e=>(z(`Sprite`,as),V(`Sprite`,e));function ss(e){let 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},n=F(null),{play:r,loop:i,muted:a}=ba(e)({play:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}});return R(()=>{let e=n(),t=r();e&&t!==void 0&&(t?e.play():e.pause()),e&&i()&&(e.loop=i()),e&&a()&&(e.muted=a())}),eo(()=>()=>{for(let e in t)t[e]&&n().removeEventListener(e,t[e])}),W(os,{...e,image:e.src,loader:{onComplete:r=>{let i=r.source.resource;n.set(i),e?.loader?.onComplete&&e.loader.onComplete(r);for(let n in t)if(e[n]){let r=t=>{e[n](t)};t[n]=r,i.addEventListener(n,r)}}}})}z(`Text`,class extends za(t.Text){constructor(...e){super(...e),this.fullText=``,this.currentIndex=0,this.typewriterSpeed=1,this._wordWrapWidth=0,this.typewriterOptions={},this.lastSoundTime=0,this.soundDuration=0}async onMount(e,t){let{props:n}=e;await super.onMount(e,t);let r=n.context.tick;n.text&&n.typewriter&&(this.fullText=n.text,this.text=``,this.currentIndex=0,n.typewriter&&(this.typewriterOptions=n.typewriter,this.typewriterOptions.skip&&ja(this.typewriterOptions.skip)&&Na(this.typewriterOptions.skip,()=>{this.skipTypewriter()}),this.typewriterOptions.sound&&this.initializeTypewriterSound()),this.updateLayout()),this.subscriptionTick=r.observable.subscribe(()=>{n.typewriter&&this.typewriterEffect()})}onUpdate(e){if(super.onUpdate(e),e.typewriter&&e.typewriter&&(this.typewriterOptions=e.typewriter,e.typewriter.sound&&this.initializeTypewriterSound()),e.text!==void 0&&(this.text=``+e.text),e.text!==void 0&&e.text!==this.fullText&&this.fullProps.typewriter&&(this.text=``,this.currentIndex=0,this.fullText=e.text,this.updateLayout()),e.style){for(let t in e.style)this.style[t]=e.style[t];e.style.wordWrapWidth&&(this._wordWrapWidth=e.style.wordWrapWidth)}e.color&&(this.style.fill=e.color),e.size&&(this.style.fontSize=e.size),e.fontFamily&&(this.style.fontFamily=e.fontFamily),this.updateLayout()}get onCompleteCallback(){return this.typewriterOptions.onComplete}initializeTypewriterSound(){this.typewriterOptions.sound?.src&&(this.typewriterSound=new Ca.Howl({src:[this.typewriterOptions.sound.src],volume:this.typewriterOptions.sound.volume??.5,rate:this.typewriterOptions.sound.rate??1,preload:!0,onload:()=>{if(this.typewriterSound){let e=this.typewriterSound.duration(),t=this.typewriterOptions.sound?.rate??1;this.soundDuration=e/t*1e3}}}))}playTypewriterSound(e){!this.typewriterSound||!this.typewriterOptions.sound||this.soundDuration>0&&e-this.lastSoundTime<this.soundDuration||(this.typewriterSound.play(),this.lastSoundTime=e)}updateLayout(){this._wordWrapWidth?this.setWidth(this._wordWrapWidth):this.setWidth(this.width),this.setHeight(this.height)}typewriterEffect(){if(this.currentIndex<this.fullText.length){let e=Math.min(this.currentIndex+(this.typewriterOptions.speed??1),this.fullText.length);this.text=this.fullText.slice(0,e),this.currentIndex=e,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(e,t){await super.onDestroy(e,async()=>{this.subscriptionTick&&this.subscriptionTick.unsubscribe(),this.typewriterSound&&=(this.typewriterSound.stop(),this.typewriterSound.unload(),void 0),t&&t()})}});function cs(e){return V(`Text`,e)}z(`TilingSprite`,class extends za(t.TilingSprite){onUpdate(e){super.onUpdate(e),e.image&&(this.texture=t.Texture.from(e.image)),e.tileScale&&this.tileScale.set(e.tileScale.x,e.tileScale.y),e.tilePosition&&this.tilePosition.set(e.tilePosition.x,e.tilePosition.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height)}});function ls(e){return V(`TilingSprite`,e)}var us=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var fs={exports:{}};(function(e,t){(function(){var t={linear:function(e,t,n,r){return n*e/r+t},easeInQuad:function(e,t,n,r){return n*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return n*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return n*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return n*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t},easeOutSine:function(e,t,n,r){return n*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return e===0?t:n*2**(10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){return e===r?t+n:n*(-(2**(-10*e/r))+1)+t},easeInOutExpo:function(e,t,n,r){return(e/=r/2)<1?n/2*2**(10*(e-1))+t:n/2*(-(2**(-10*--e))+2)+t},easeInCirc:function(e,t,n,r){return-n*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return n*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){return(e/=r/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,a,o;return o=1.70158,a=0,i=n,e===0||(e/=r),a||=r*.3,i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),-(i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t},easeOutElastic:function(e,t,n,r){var i,a,o;return o=1.70158,a=0,i=n,e===0||(e/=r),a||=r*.3,i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),i*2**(-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+n+t},easeInOutElastic:function(e,t,n,r){var i,a,o;return o=1.70158,a=0,i=n,e===0||(e/=r/2),a||=.3*1.5*r,i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),e<1?-.5*(i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t:i*2**(-10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+n+t},easeInBack:function(e,t,n,r,i){return i===void 0&&(i=1.70158),n*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return i===void 0&&(i=1.70158),n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){return i===void 0&&(i=1.70158),(e/=r/2)<1?n/2*(e*e*(((i*=1.525)+1)*e-i))+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},easeInBounce:function(e,n,r,i){var a;return a=t.easeOutBounce(i-e,0,r,i),r-a+n},easeOutBounce:function(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,n,r,i){var a;return e<i/2?(a=t.easeInBounce(e*2,0,r,i),a*.5+n):(a=t.easeOutBounce(e*2-i,0,r,i),a*.5+r*.5+n)}};(function(t){return e.exports=t})(t)}).call(us)})(fs);var ps=fs.exports,ms=ds(ps);function hs(e,t){if(e){if(typeof e==`function`)return e;if(typeof e==`string`)return ms[e]}else return ms[t]}var gs=class{constructor(e){this.viewport=e,this.touches=[],this.addListeners()}addListeners(){this.viewport.eventMode=`static`,this.viewport.forceHitArea||(this.viewport.hitArea=new t.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=e=>this.handleWheel(e),this.viewport.options.events.domElement.addEventListener(`wheel`,this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){var e;(e=this.viewport.options.events.domElement)==null||e.removeEventListener(`wheel`,this.wheelFunction)}down(e){if(!(this.viewport.pause||!this.viewport.visible)){if(e.pointerType===`mouse`?this.isMouseDown=!0:this.get(e.pointerId)||this.touches.push({id:e.pointerId,last:null}),this.count()===1){this.last=e.global.clone();let t=this.viewport.plugins.get(`decelerate`,!0),n=this.viewport.plugins.get(`bounce`,!0);(!t||!t.isActive())&&(!n||!n.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(e)&&this.viewport.options.stopPropagation&&e.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(e){return Math.abs(e)>=this.viewport.threshold}move(e){if(this.viewport.pause||!this.viewport.visible)return;let t=this.viewport.plugins.move(e);if(this.clickedAvailable&&this.last){let t=e.global.x-this.last.x,n=e.global.y-this.last.y;(this.checkThreshold(t)||this.checkThreshold(n))&&(this.clickedAvailable=!1)}t&&this.viewport.options.stopPropagation&&e.stopPropagation()}up(e){if(this.viewport.pause||!this.viewport.visible)return;e.pointerType===`mouse`&&(this.isMouseDown=!1),e.pointerType!==`mouse`&&this.remove(e.pointerId);let t=this.viewport.plugins.up(e);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit(`clicked`,{event:e,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),t&&this.viewport.options.stopPropagation&&e.stopPropagation()}getPointerPosition(e){let n=new t.Point;return this.viewport.options.events.mapPositionToPoint(n,e.clientX,e.clientY),n}handleWheel(e){if(this.viewport.pause||!this.viewport.visible)return;let t=this.viewport.toLocal(this.getPointerPosition(e));this.viewport.left<=t.x&&t.x<=this.viewport.right&&this.viewport.top<=t.y&&t.y<=this.viewport.bottom&&this.viewport.plugins.wheel(e)&&!this.viewport.options.passiveWheel&&e.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(e){for(let t of this.touches)if(t.id===e)return t;return null}remove(e){for(let t=0;t<this.touches.length;t++)if(this.touches[t].id===e){this.touches.splice(t,1);return}}count(){return+!!this.isMouseDown+this.touches.length}},_s=[`drag`,`pinch`,`wheel`,`follow`,`mouse-edges`,`decelerate`,`animate`,`bounce`,`snap-zoom`,`clamp-zoom`,`snap`,`clamp`],vs=class{constructor(e){this.viewport=e,this.list=[],this.plugins={}}add(e,t,n=_s.length){let r=this.plugins[e];r&&r.destroy(),this.plugins[e]=t;let i=_s.indexOf(e);i!==-1&&_s.splice(i,1),_s.splice(n,0,e),this.sort()}get(e,t){var n;return t&&(n=this.plugins[e])!=null&&n.paused?null:this.plugins[e]}update(e){for(let t of this.list)t.update(e)}resize(){for(let e of this.list)e.resize()}reset(){for(let e of this.list)e.reset()}removeAll(){this.list.forEach(e=>{e.destroy()}),this.plugins={},this.sort()}remove(e){var t;this.plugins[e]&&((t=this.plugins[e])==null||t.destroy(),delete this.plugins[e],this.viewport.emit(`plugin-remove`,e),this.sort())}pause(e){var t;(t=this.plugins[e])==null||t.pause()}resume(e){var t;(t=this.plugins[e])==null||t.resume()}sort(){this.list=[];for(let e of _s)this.plugins[e]&&this.list.push(this.plugins[e])}down(e){let t=!1;for(let n of this.list)n.down(e)&&(t=!0);return t}move(e){let t=!1;for(let n of this.viewport.plugins.list)n.move(e)&&(t=!0);return t}up(e){let t=!1;for(let n of this.list)n.up(e)&&(t=!0);return t}wheel(e){let t=!1;for(let n of this.list)n.wheel(e)&&(t=!0);return t}},q=class{constructor(e){this.parent=e,this.paused=!1}destroy(){}down(e){return!1}move(e){return!1}up(e){return!1}wheel(e){return!1}update(e){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}},ys={removeOnInterrupt:!1,ease:`linear`,time:1e3},bs=class extends q{constructor(e,t={}){super(e),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({},ys,t),this.options.ease=hs(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(e){if(this.paused)return;this.time+=e;let n=new t.Point(this.parent.scale.x,this.parent.scale.y);if(this.time>=this.options.time){let e=this.parent.width,t=this.parent.height;this.complete(),(e!==this.parent.width||t!==this.parent.height)&&this.parent.emit(`zoomed`,{viewport:this.parent,original:n,type:`animate`})}else{let e=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){let t=this.startWidth,n=this.deltaWidth;this.parent.fitWidth(t+n*e,this.keepCenter,this.height===null)}if(this.height!==null){let t=this.startHeight,n=this.deltaHeight;this.parent.fitHeight(t+n*e,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){let n=this.startX,r=this.startY,i=this.deltaX,a=this.deltaY,o=new t.Point(this.parent.x,this.parent.y);this.parent.moveCenter(n+i*e,r+a*e),this.parent.emit(`moved`,{viewport:this.parent,original:o,type:`animate`})}(this.width||this.height)&&this.parent.emit(`zoomed`,{viewport:this.parent,original:n,type:`animate`})}}},xs={sides:`all`,friction:.5,time:150,ease:`easeInOutSine`,underflow:`center`,bounceBox:null},Ss=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},xs,t),this.ease=hs(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;let n=this.options.underflow.toLowerCase();n===`center`?(this.underflowX=0,this.underflowY=0):(this.underflowX=n.indexOf(`left`)===-1?n.indexOf(`right`)===-1?0:1:-1,this.underflowY=n.indexOf(`top`)===-1?n.indexOf(`bottom`)===-1?0:1:-1),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(e){if(!this.paused){if(this.bounce(),this.toX){let t=this.toX;t.time+=e,this.parent.emit(`moved`,{viewport:this.parent,type:`bounce-x`}),t.time>=this.options.time?(this.parent.x=t.end,this.toX=null,this.parent.emit(`bounce-x-end`,this.parent)):this.parent.x=this.ease(t.time,t.start,t.delta,this.options.time)}if(this.toY){let t=this.toY;t.time+=e,this.parent.emit(`moved`,{viewport:this.parent,type:`bounce-y`}),t.time>=this.options.time?(this.parent.y=t.end,this.toY=null,this.parent.emit(`bounce-y-end`,this.parent)):this.parent.y=this.ease(t.time,t.start,t.delta,this.options.time)}}}calcUnderflowX(){let e;switch(this.underflowX){case-1:e=0;break;case 1:e=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:e=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return e}calcUnderflowY(){let e;switch(this.underflowY){case-1:e=0;break;case 1:e=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:e=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return e}oob(){let e=this.options.bounceBox;if(e){let n=typeof e.x>`u`?0:e.x,r=typeof e.y>`u`?0:e.y,i=typeof e.width>`u`?this.parent.worldWidth:e.width,a=typeof e.height>`u`?this.parent.worldHeight:e.height;return{left:this.parent.left<n,right:this.parent.right>i,top:this.parent.top<r,bottom:this.parent.bottom>a,topLeft:new t.Point(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new t.Point(i*this.parent.scale.x-this.parent.screenWidth,a*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 t.Point(0,0),bottomRight:new t.Point(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){if(this.paused)return;let e,t=this.parent.plugins.get(`decelerate`,!0);t&&(t.x||t.y)&&(t.x&&t.percentChangeX===t.options?.friction||t.y&&t.percentChangeY===t.options?.friction)&&(e=this.oob(),(e.left&&this.left||e.right&&this.right)&&(t.percentChangeX=this.options.friction),(e.top&&this.top||e.bottom&&this.bottom)&&(t.percentChangeY=this.options.friction));let n=this.parent.plugins.get(`drag`,!0)||{},r=this.parent.plugins.get(`pinch`,!0)||{};if(t||={},!(n!=null&&n.active)&&!(r!=null&&r.active)&&(!this.toX||!this.toY)&&(!t.x||!t.y)){e||=this.oob();let n=e.topLeft,r=e.bottomRight;if(!this.toX&&!t.x){let t=null;e.left&&this.left?t=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-n.x:e.right&&this.right&&(t=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-r.x),t!==null&&this.parent.x!==t&&(this.toX={time:0,start:this.parent.x,delta:t-this.parent.x,end:t},this.parent.emit(`bounce-x-start`,this.parent))}if(!this.toY&&!t.y){let t=null;e.top&&this.top?t=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-n.y:e.bottom&&this.bottom&&(t=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-r.y),t!==null&&this.parent.y!==t&&(this.toY={time:0,start:this.parent.y,delta:t-this.parent.y,end:t},this.parent.emit(`bounce-y-start`,this.parent))}}}reset(){this.toX=this.toY=null,this.bounce()}},Cs={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:`center`},ws=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},Cs,t),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(){let e=this.options.underflow.toLowerCase();e===`none`?this.noUnderflow=!0:e===`center`?(this.underflowX=this.underflowY=0,this.noUnderflow=!1):(this.underflowX=e.indexOf(`left`)===-1?e.indexOf(`right`)===-1?0:1:-1,this.underflowY=e.indexOf(`top`)===-1?e.indexOf(`bottom`)===-1?0:1:-1,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;let e=new t.Point(this.parent.x,this.parent.y),n=this.parent.plugins.decelerate||{};if(this.options.left!==null||this.options.right!==null){let t=!1;if(!this.noUnderflow&&this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x!==0&&(this.parent.x=0,t=!0);break;case 1:this.parent.x!==this.parent.screenWidth-this.parent.screenWorldWidth&&(this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth,t=!0);break;default:this.parent.x!==(this.parent.screenWidth-this.parent.screenWorldWidth)/2&&(this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2,t=!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,n.x=0,t=!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,n.x=0,t=!0);t&&this.parent.emit(`moved`,{viewport:this.parent,original:e,type:`clamp-x`})}if(this.options.top!==null||this.options.bottom!==null){let t=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y!==0&&(this.parent.y=0,t=!0);break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,t=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,t=!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,n.y=0,t=!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,n.y=0,t=!0);t&&this.parent.emit(`moved`,{viewport:this.parent,original:e,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()}},Ts={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null},Es=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},Ts,t),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&e<this.options.minWidth){let n=this.parent.scale.x;this.parent.fitWidth(this.options.minWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/n,e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit(`zoomed`,{viewport:this.parent,type:`clamp-zoom`})}if(this.options.maxWidth!==null&&e>this.options.maxWidth){let n=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/n,e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit(`zoomed`,{viewport:this.parent,type:`clamp-zoom`})}if(this.options.minHeight!==null&&t<this.options.minHeight){let n=this.parent.scale.y;this.parent.fitHeight(this.options.minHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/n,e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit(`zoomed`,{viewport:this.parent,type:`clamp-zoom`})}if(this.options.maxHeight!==null&&t>this.options.maxHeight){let e=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/e,this.parent.emit(`zoomed`,{viewport:this.parent,type:`clamp-zoom`})}}else if(this.options.minScale||this.options.maxScale){let e={x:null,y:null},t={x:null,y:null};if(typeof this.options.minScale==`number`)e.x=this.options.minScale,e.y=this.options.minScale;else if(this.options.minScale!==null){let t=this.options.minScale;e.x=typeof t.x>`u`?null:t.x,e.y=typeof t.y>`u`?null:t.y}if(typeof this.options.maxScale==`number`)t.x=this.options.maxScale,t.y=this.options.maxScale;else if(this.options.maxScale!==null){let e=this.options.maxScale;t.x=typeof e.x>`u`?null:e.x,t.y=typeof e.y>`u`?null:e.y}let n=this.parent.scale.x,r=this.parent.scale.y;e.x!==null&&n<e.x&&(n=e.x),t.x!==null&&n>t.x&&(n=t.x),e.y!==null&&r<e.y&&(r=e.y),t.y!==null&&r>t.y&&(r=t.y),(n!==this.parent.scale.x||r!==this.parent.scale.y)&&(this.parent.scale.set(n,r),this.parent.emit(`zoomed`,{viewport:this.parent,type:`clamp-zoom`}))}}}reset(){this.clamp()}},Ds={friction:.98,bounce:.8,minSpeed:.01},Os=16,ks=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},Ds,t),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on(`moved`,e=>this.handleMoved(e))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;let e=this.parent.input.count();return(e===1||e>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(e){if(this.saved.length){let t=this.saved[this.saved.length-1];e.type===`clamp-x`&&e.original?t.x===e.original.x&&(t.x=this.parent.x):e.type===`clamp-y`&&e.original&&t.y===e.original.y&&(t.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){let e=performance.now();for(let t of this.saved)if(t.time>=e-100){let n=e-t.time;this.x=(this.parent.x-t.x)/n,this.y=(this.parent.y-t.y)/n,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(e){e||={},typeof e.x<`u`&&(this.x=e.x,this.percentChangeX=this.options.friction),typeof e.y<`u`&&(this.y=e.y,this.percentChangeY=this.options.friction)}update(e){if(this.paused)return;let t=this.x||this.y,n=this.timeSinceRelease,r=this.timeSinceRelease+e;if(this.x){let t=this.percentChangeX,i=Math.log(t);this.parent.x+=this.x*Os/i*(t**+(r/Os)-t**+(n/Os)),this.x*=this.percentChangeX**+(e/Os)}if(this.y){let t=this.percentChangeY,i=Math.log(t);this.parent.y+=this.y*Os/i*(t**+(r/Os)-t**+(n/Os)),this.y*=this.percentChangeY**+(e/Os)}this.timeSinceRelease+=e,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)),t&&this.parent.emit(`moved`,{viewport:this.parent,type:`decelerate`})}reset(){this.x=this.y=null}},As={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},js=class extends q{constructor(e,t={}){super(e),this.windowEventHandlers=[],this.options=Object.assign({},As,t),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(e){this.addWindowEventHandler(`keyup`,t=>{e.includes(t.code)&&(this.keyIsPressed=!1)}),this.addWindowEventHandler(`keydown`,t=>{e.includes(t.code)&&(this.keyIsPressed=!0)})}addWindowEventHandler(e,t){typeof window>`u`||(window.addEventListener(e,t),this.windowEventHandlers.push({event:e,handler:t}))}destroy(){typeof window>`u`||this.windowEventHandlers.forEach(({event:e,handler:t})=>{window.removeEventListener(e,t)})}mouseButtons(e){!e||e===`all`?this.mouse=[!0,!0,!0]:this.mouse=[e.indexOf(`left`)!==-1,e.indexOf(`middle`)!==-1,e.indexOf(`right`)!==-1]}parseUnderflow(){let e=this.options.underflow.toLowerCase();e===`center`?(this.underflowX=0,this.underflowY=0):(e.includes(`left`)?this.underflowX=-1:e.includes(`right`)?this.underflowX=1:this.underflowX=0,e.includes(`top`)?this.underflowY=-1:e.includes(`bottom`)?this.underflowY=1:this.underflowY=0)}checkButtons(e){let t=e.pointerType===`mouse`,n=this.parent.input.count();return!!((n===1||n>1&&!this.parent.plugins.get(`pinch`,!0))&&(!t||this.mouse[e.button]))}checkKeyPress(e){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&e.data.pointerType===`touch`}down(e){return this.paused||!this.options.pressDrag?!1:this.checkButtons(e)&&this.checkKeyPress(e)?(this.last={x:e.global.x,y:e.global.y},(this.parent.parent||this.parent).toLocal(this.last,void 0,this.last),this.current=e.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(e){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===e.data.pointerId){let n=e.global.x,r=e.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get(`pinch`,!0)){let i={x:n,y:r};(this.parent.parent||this.parent).toLocal(i,void 0,i);let a=i.x-this.last.x,o=i.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+=(i.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(i.y-this.last.y)*this.options.factor),this.last=i,this.moved||this.parent.emit(`drag-start`,{event:e,screen:new t.Point(this.last.x,this.last.y),world:this.parent.toWorld(new t.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(e){if(this.paused)return!1;let n=this.parent.input.touches;if(n.length===1){let e=n[0];return e.last&&(this.last={x:e.last.x,y:e.last.y},this.current=e.id),this.moved=!1,!0}else if(this.last&&this.moved){let n=new t.Point(this.last.x,this.last.y);return(this.parent.parent||this.parent).toGlobal(n,n,!0),this.parent.emit(`drag-end`,{event:e,screen:n,world:this.parent.toWorld(n),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(e){if(this.paused)return!1;if(this.options.wheel){let t=this.parent.plugins.get(`wheel`,!0);if(!t||!t.options.wheelZoom&&!e.ctrlKey){let t=e.deltaMode?this.options.lineHeight:1,n=[e.deltaX,e.deltaY],[r,i]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=r*t*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=i*t*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||e.preventDefault(),this.parent.options.stopPropagation&&e.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){let e=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,e.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,e.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,e.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,e.y=0)}},Ms={speed:0,acceleration:null,radius:null},Ns=class extends q{constructor(e,t,n={}){super(e),this.target=t,this.options=Object.assign({},Ms,n),this.velocity={x:0,y:0}}update(e){if(this.paused)return;let t=this.parent.center,n=this.target.x,r=this.target.y;if(this.options.radius)if(Math.sqrt((this.target.y-t.y)**2+(this.target.x-t.x)**2)>this.options.radius){let e=Math.atan2(this.target.y-t.y,this.target.x-t.x);n=this.target.x-Math.cos(e)*this.options.radius,r=this.target.y-Math.sin(e)*this.options.radius}else return;let i=n-t.x,a=r-t.y;if(i||a)if(this.options.speed)if(this.options.acceleration){let o=Math.atan2(r-t.y,n-t.x),s=Math.sqrt(i**2+a**2);if(s){s>(this.velocity.x**2+this.velocity.y**2)/(2*this.options.acceleration)?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*e,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*e,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)};let c=Math.cos(o)*this.velocity.x,l=Math.sin(o)*this.velocity.y,u=Math.abs(c)>Math.abs(i)?n:t.x+c,d=Math.abs(l)>Math.abs(a)?r:t.y+l;this.parent.moveCenter(u,d),this.parent.emit(`moved`,{viewport:this.parent,type:`follow`})}}else{let e=Math.atan2(r-t.y,n-t.x),o=Math.cos(e)*this.options.speed,s=Math.sin(e)*this.options.speed,c=Math.abs(o)>Math.abs(i)?n:t.x+o,l=Math.abs(s)>Math.abs(a)?r:t.y+s;this.parent.moveCenter(c,l),this.parent.emit(`moved`,{viewport:this.parent,type:`follow`})}else this.parent.moveCenter(n,r),this.parent.emit(`moved`,{viewport:this.parent,type:`follow`})}},Ps={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1},Fs=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},Ps,t),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius==`number`?this.options.radius**2:null,this.resize()}resize(){let e=this.options.distance;e===null?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):(this.left=e,this.top=e,this.right=this.parent.screenWidth-e,this.bottom=this.parent.screenHeight-e)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(e){if(this.paused||e.pointerType!==`mouse`&&e.pointerId!==1||!this.options.allowButtons&&e.buttons!==0)return!1;let t=e.global.x,n=e.global.y;if(this.radiusSquared){let e=this.parent.toScreen(this.parent.center);if((e.x-t)**2+(e.y-n)**2>=this.radiusSquared){let r=Math.atan2(e.y-n,e.x-t);this.options.linear?(this.horizontal=Math.round(Math.cos(r))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(r))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(r)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(r)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&t<this.left?this.horizontal=Number(this.reverse)*this.options.speed*(60/1e3):this.right!==null&&t>this.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&n<this.top?this.vertical=Number(this.reverse)*this.options.speed*(60/1e3):this.bottom!==null&&n>this.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){let e=this.parent.plugins.get(`decelerate`,!0);this.horizontal&&e&&!this.options.noDecelerate&&e.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){let e=this.parent.plugins.get(`decelerate`,!0);this.vertical&&e&&!this.options.noDecelerate&&e.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}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)){let e=this.parent.center;this.horizontal&&(e.x+=this.horizontal*this.options.speed),this.vertical&&(e.y+=this.vertical*this.options.speed),this.parent.moveCenter(e),this.parent.emit(`moved`,{viewport:this.parent,type:`mouse-edges`})}}},Is={noDrag:!1,percent:1,center:null,factor:1,axis:`all`},Ls=new t.Point,Rs=class extends q{constructor(e,t={}){super(e),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},Is,t)}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(e){if(this.paused||!this.active)return!1;let{x:n,y:r}=(this.parent.parent||this.parent).toLocal(e.global,void 0,Ls),i=this.parent.input.touches;if(i.length>=2){let a=i[0],o=i[1],s=a.last&&o.last?Math.sqrt((o.last.x-a.last.x)**2+(o.last.y-a.last.y)**2):null;if(a.id===e.pointerId?a.last={x:n,y:r,data:e}:o.id===e.pointerId&&(o.last={x:n,y:r,data:e}),s){let e,n=new t.Point(a.last.x+(o.last.x-a.last.x)/2,a.last.y+(o.last.y-a.last.y)/2);this.options.center||(e=this.parent.toLocal(n,this.parent.parent||this.parent));let r=Math.sqrt((o.last.x-a.last.x)**2+(o.last.y-a.last.y)**2);r=r===0?r=1e-10:r;let i=(1-s/r)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=i),this.isAxisY()&&(this.parent.scale.y+=i),this.parent.emit(`zoomed`,{viewport:this.parent,type:`pinch`,center:n});let c=this.parent.plugins.get(`clamp-zoom`,!0);if(c&&c.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{let t=(this.parent.parent||this.parent).toLocal(e,this.parent);this.parent.x+=(n.x-t.x)*this.options.factor,this.parent.y+=(n.y-t.y)*this.options.factor,this.parent.emit(`moved`,{viewport:this.parent,type:`pinch`})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(n.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(n.y-this.lastCenter.y)*this.options.factor,this.parent.emit(`moved`,{viewport:this.parent,type:`pinch`})),this.lastCenter=n,this.moved=!0}else this.pinching||=(this.parent.emit(`pinch-start`,this.parent),!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}},zs={topLeft:!1,friction:.8,time:1e3,ease:`easeInOutSine`,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1},Bs=class extends q{constructor(e,t,n,r={}){super(e),this.options=Object.assign({},zs,r),this.ease=hs(r.ease,`easeInOutSine`),this.x=t,this.y=n,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};let e=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-e.x,this.deltaY=this.y-e.y,this.startX=e.x,this.startY=e.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){let e=this.parent.plugins.get(`decelerate`,!0);e&&(e.x||e.y)&&(e.percentChangeX=e.percentChangeY=this.options.friction)}return!1}update(e){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){let t=this.snapping;t.time+=e;let n,r,i,a=this.startX,o=this.startY,s=this.deltaX,c=this.deltaY;if(t.time>this.options.time)n=!0,r=a+s,i=o+c;else{let e=this.ease(t.time,0,1,this.options.time);r=a+s*e,i=o+c*e}this.options.topLeft?this.parent.moveCorner(r,i):this.parent.moveCenter(r,i),this.parent.emit(`moved`,{viewport:this.parent,type:`snap`}),n&&(this.options.removeOnComplete&&this.parent.plugins.remove(`snap`),this.parent.emit(`snap-end`,this.parent),this.snapping=null)}else{let e=this.options.topLeft?this.parent.corner:this.parent.center;(e.x!==this.x||e.y!==this.y)&&this.snapStart()}}},Vs={width:0,height:0,time:1e3,ease:`easeInOutSine`,center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1},Hs=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},Vs,t),this.ease=hs(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=e.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=e.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?(e.container.scale.x=this.xScale,e.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove(`snap-zoom`)):t.forceStart&&this.createSnapping()}createSnapping(){let e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,n=this.parent.screenWidth/this.xScale,r=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:e,startY:t,deltaX:n-e,deltaY:r-t},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(e){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let t;if(!this.options.center&&!this.options.noMove&&(t=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){let n=this.snapping;if(n.time+=e,n.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{let e=this.snapping,t=this.ease(e.time,e.startX,e.deltaX,this.options.time),n=this.ease(e.time,e.startY,e.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/t,this.parent.scale.y=this.parent.screenHeight/n}let r=this.parent.plugins.get(`clamp-zoom`,!0);r&&r.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(t))}}resume(){this.snapping=null,super.resume()}},Us={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:`all`,keyToPress:null,trackpadPinch:!1,wheelZoom:!0},Ws=class extends q{constructor(e,t={}){super(e),this.options=Object.assign({},Us,t),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(e){typeof window>`u`||(window.addEventListener(`keydown`,t=>{e.includes(t.code)&&(this.keyIsPressed=!0)}),window.addEventListener(`keyup`,t=>{e.includes(t.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){let e=this.smoothingCenter,t=this.smoothing,n;this.options.center||(n=this.parent.toLocal(e)),this.isAxisX()&&(this.parent.scale.x+=t.x),this.isAxisY()&&(this.parent.scale.y+=t.y),this.parent.emit(`zoomed`,{viewport:this.parent,type:`wheel`});let r=this.parent.plugins.get(`clamp-zoom`,!0);if(r&&r.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{let t=this.parent.parent||this.parent;t.toLocal(n,this.parent,n);let r=t.toLocal(e);this.parent.x+=r.x-n.x,this.parent.y+=r.y-n.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(e){if(this.paused)return;let t=this.parent.input.getPointerPosition(e),n=-e.deltaY*(e.deltaMode?this.options.lineHeight:1)/200,r=2**((1+this.options.percent)*n),i;this.options.center||(i=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x*=r),this.isAxisY()&&(this.parent.scale.y*=r),this.parent.emit(`zoomed`,{viewport:this.parent,type:`wheel`});let a=this.parent.plugins.get(`clamp-zoom`,!0);if(a&&a.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{let e=this.parent.parent||this.parent;e.toLocal(i,this.parent,i);let n=e.toLocal(t);this.parent.x+=n.x-i.x,this.parent.y+=n.y-i.y}this.parent.emit(`moved`,{viewport:this.parent,type:`wheel`}),this.parent.emit(`wheel-start`,{event:e,viewport:this.parent})}wheel(e){if(this.paused||!this.checkKeyPress())return!1;if(e.ctrlKey&&this.options.trackpadPinch)this.pinch(e);else if(this.options.wheelZoom){let t=this.parent.input.getPointerPosition(e),n=(this.options.reverse?-1:1)*-e.deltaY*(e.deltaMode?this.options.lineHeight:1)/500,r=2**((1+this.options.percent)*n);if(this.options.smooth){let e={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+e.x)*r-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+e.y)*r-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=t}else{let e;this.options.center||(e=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x*=r),this.isAxisY()&&(this.parent.scale.y*=r),this.parent.emit(`zoomed`,{viewport:this.parent,type:`wheel`});let n=this.parent.plugins.get(`clamp-zoom`,!0);if(n&&n.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{let n=this.parent.parent||this.parent;n.toLocal(e,this.parent,e);let r=n.toLocal(t);this.parent.x+=r.x-e.x,this.parent.y+=r.y-e.y}}this.parent.emit(`moved`,{viewport:this.parent,type:`wheel`}),this.parent.emit(`wheel-start`,{event:e,viewport:this.parent})}return!this.parent.options.passiveWheel}},Gs={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:t.Ticker.shared,allowPreserveDragOutside:!1},Ks=class extends t.Container{constructor(e){super(),this._disableOnContextMenu=e=>e.preventDefault(),this.options={...Gs,...e},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 gs(this),this.plugins=new vs(this)}destroy(e){var t;!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&((t=this.options.events.domElement)==null||t.removeEventListener(`contextmenu`,this._disableOnContextMenu)),this.input.destroy(),super.destroy(e)}update(e){this.pause||(this.plugins.update(e),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&=(this.emit(`moved-end`,this),!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&=(this.emit(`zoomed-end`,this),!1)),this.forceHitArea||(this._hitAreaDefault=new t.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(e=typeof window>`u`?0:window.innerWidth,t=typeof window>`u`?0:window.innerHeight,n,r){this.screenWidth=e,this.screenHeight=t,typeof n<`u`&&(this._worldWidth=n),typeof r<`u`&&(this._worldHeight=r),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(e){this._worldWidth=e,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(e){this._worldHeight=e,this.plugins.resize()}getVisibleBounds(){return new t.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(e,n){return arguments.length===2?this.toLocal(new t.Point(e,n)):this.toLocal(e)}toScreen(e,n){return arguments.length===2?this.toGlobal(new t.Point(e,n)):this.toGlobal(e)}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 t.Point(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(e){this.moveCenter(e)}moveCenter(...e){let t,n;typeof e[0]==`number`?(t=e[0],n=e[1]):(t=e[0].x,n=e[0].y);let r=(this.worldScreenWidth/2-t)*this.scale.x,i=(this.worldScreenHeight/2-n)*this.scale.y;return(this.x!==r||this.y!==i)&&(this.position.set(r,i),this.plugins.reset(),this.dirty=!0),this}get corner(){return new t.Point(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(e){this.moveCorner(e)}moveCorner(...e){let t,n;return e.length===1?(t=-e[0].x*this.scale.x,n=-e[0].y*this.scale.y):(t=-e[0]*this.scale.x,n=-e[1]*this.scale.y),(t!==this.x||n!==this.y)&&(this.position.set(t,n),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(e){return this.screenWidth/e}findFitHeight(e){return this.screenHeight/e}findFit(e,t){let n=this.screenWidth/e,r=this.screenHeight/t;return Math.min(n,r)}findCover(e,t){let n=this.screenWidth/e,r=this.screenHeight/t;return Math.max(n,r)}fitWidth(e=this.worldWidth,t,n=!0,r){let i;t&&(i=this.center),this.scale.x=this.screenWidth/e,n&&(this.scale.y=this.scale.x);let a=this.plugins.get(`clamp-zoom`,!0);return!r&&a&&a.clamp(),t&&i&&this.moveCenter(i),this}fitHeight(e=this.worldHeight,t,n=!0,r){let i;t&&(i=this.center),this.scale.y=this.screenHeight/e,n&&(this.scale.x=this.scale.y);let a=this.plugins.get(`clamp-zoom`,!0);return!r&&a&&a.clamp(),t&&i&&this.moveCenter(i),this}fitWorld(e){let t;e&&(t=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;let n=this.plugins.get(`clamp-zoom`,!0);return n&&n.clamp(),e&&t&&this.moveCenter(t),this}fit(e,t=this.worldWidth,n=this.worldHeight){let r;e&&(r=this.center),this.scale.x=this.screenWidth/t,this.scale.y=this.screenHeight/n,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;let i=this.plugins.get(`clamp-zoom`,!0);return i&&i.clamp(),e&&r&&this.moveCenter(r),this}setZoom(e,t){let n;t&&(n=this.center),this.scale.set(e);let r=this.plugins.get(`clamp-zoom`,!0);return r&&r.clamp(),t&&n&&this.moveCenter(n),this}zoomPercent(e,t){return this.setZoom(this.scale.x+this.scale.x*e,t)}zoom(e,t){return this.fitWidth(e+this.worldScreenWidth,t),this}get scaled(){return this.scale.x}set scaled(e){this.setZoom(e,!0)}snapZoom(e){return this.plugins.add(`snap-zoom`,new Hs(this,e)),this}OOB(){return{left:this.left<0,right:this.right>this.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new t.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(e){this.x=-e*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(e){this.x=-e*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(e){this.y=-e*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(e){this.y=-e*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(e){this._dirty=e}get forceHitArea(){return this._forceHitArea}set forceHitArea(e){e?(this._forceHitArea=e,this.hitArea=e):(this._forceHitArea=null,this.hitArea=new t.Rectangle(0,0,this.worldWidth,this.worldHeight))}drag(e){return this.plugins.add(`drag`,new js(this,e)),this}clamp(e){return this.plugins.add(`clamp`,new ws(this,e)),this}decelerate(e){return this.plugins.add(`decelerate`,new ks(this,e)),this}bounce(e){return this.plugins.add(`bounce`,new Ss(this,e)),this}pinch(e){return this.plugins.add(`pinch`,new Rs(this,e)),this}snap(e,t,n){return this.plugins.add(`snap`,new Bs(this,e,t,n)),this}follow(e,t){return this.plugins.add(`follow`,new Ns(this,e,t)),this}wheel(e){return this.plugins.add(`wheel`,new Ws(this,e)),this}animate(e){return this.plugins.add(`animate`,new bs(this,e)),this}clampZoom(e){return this.plugins.add(`clamp-zoom`,new Es(this,e)),this}mouseEdges(e){return this.plugins.add(`mouse-edges`,new Fs(this,e)),this}get pause(){return!!this._pause}set pause(e){this._pause=e,this.lastViewport=null,this.moving=!1,this.zooming=!1,e&&this.input.pause()}ensureVisible(e,t,n,r,i){i&&(n>this.worldScreenWidth||r>this.worldScreenHeight)&&(this.fit(!0,n,r),this.emit(`zoomed`,{viewport:this,type:`ensureVisible`}));let a=!1;e<this.left?(this.left=e,a=!0):e+n>this.right&&(this.right=e+n,a=!0),t<this.top?(this.top=t,a=!0):t+r>this.bottom&&(this.bottom=t+r,a=!0),a&&this.emit(`moved`,{viewport:this,type:`ensureVisible`})}},qs=[`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`];z(`Viewport`,class extends za(t.Container){#e;constructor(){super(),this.overrideProps=[`wheel`];let e={noTicker:!0,events:{domElement:{addEventListener:()=>{}}}};this.viewport=new Ks(e),super.addChild(this.viewport),this.#e=new t.Graphics,super.addChild(this.#e),this.mask=this.#e}addChild(...e){return this.viewport.addChild(...e)}addChildAt(e,t){return this.viewport.addChildAt(e,t)}onInit(e){super.onInit(e);for(let t of qs)e[t]&&this.viewport.on(t,e[t])}async onMount(e,t){e.props.context.viewport=this.viewport,await super.onMount(e,t);let{props:n}=e,{tick:r,app:i,canvasSize:a}=n.context;R(()=>{n.screenWidth===void 0&&(this.viewport.screenWidth=a().width),n.screenHeight===void 0&&(this.viewport.screenHeight=a().height),this.updateMask()}),R(()=>{let e=i();if(!e)return;let t=e.renderer;t.events.domElement.addEventListener(`wheel`,this.viewport.input.wheelFunction),this.viewport.options.events=t.events}),this.tickSubscription=r.observable.subscribe(({value:e})=>{this.viewport.update(e.deltaTime)}),this.updateViewportSettings(n)}onUpdate(e){super.onUpdate(e),this.updateViewportSettings(e)}updateViewportSettings(e){e.screenWidth!==void 0&&(this.viewport.screenWidth=e.screenWidth),e.screenHeight!==void 0&&(this.viewport.screenHeight=e.screenHeight),this.updateMask(),e.worldWidth!==void 0&&(this.viewport.worldWidth=e.worldWidth),e.worldHeight!==void 0&&(this.viewport.worldHeight=e.worldHeight),e.sortableChildren!==void 0&&(this.viewport.sortableChildren=e.sortableChildren),e.drag&&this.viewport.drag(e.drag),e.clamp&&this.viewport.clamp(e.clamp.value??e.clamp),e.wheel&&(e.wheel===!0?this.viewport.wheel():this.viewport.wheel(e.wheel)),e.decelerate&&(e.decelerate===!0?this.viewport.decelerate():this.viewport.decelerate(e.decelerate)),e.pinch&&(e.pinch===!0?this.viewport.pinch():this.viewport.pinch(e.pinch))}updateMask(){this.#e&&(this.#e.clear(),this.#e.beginFill(16777215),this.#e.drawRect(0,0,this.viewport.screenWidth,this.viewport.screenHeight),this.#e.endFill())}async onDestroy(e,t){await super.onDestroy(e,async()=>{this.tickSubscription.unsubscribe(),t()})}follow(...e){return this.viewport.follow(...e)}get plugins(){return this.viewport.plugins}});function Js(e){return V(`Viewport`,e)}z(`NineSliceSprite`,class extends za(t.NineSliceSprite){constructor(){super({width:0,height:0})}async onUpdate(e){for(let[n,r]of Object.entries(e))r!==void 0&&(n===`image`?this.texture=await t.Assets.load(r):n in this&&(this[n]=r))}});function Ys(e){return V(`NineSliceSprite`,e)}var Xs=`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`.split(`.`),Zs=class{constructor(){this.eventListeners=new Map,this.onBeforeDestroy=null,this.valueSignal=null,this.isFormElementType=!1,this.classSubscriptions=[],this.childTextSubscriptions=[]}isFormElement(e){return[`input`,`textarea`,`select`].includes(e.toLowerCase())}collectClassTokens(e,t){if(e){if(I(e)){this.collectClassTokens(e(),t);return}if(typeof e==`string`){e.split(/\s+/).filter(Boolean).forEach(e=>t.push(e));return}if(Array.isArray(e)){e.forEach(e=>this.collectClassTokens(e,t));return}if(typeof e==`object`)for(let[n,r]of Object.entries(e))(I(r)?r():r)&&t.push(n)}}collectClassSignals(e,t){if(e){if(I(e)){t.add(e);return}if(Array.isArray(e)){e.forEach(e=>this.collectClassSignals(e,t));return}typeof e==`object`&&Object.values(e).forEach(e=>this.collectClassSignals(e,t))}}applyClassList(e){if(this.element.className=``,typeof e==`string`){this.element.className=e;return}let t=[];this.collectClassTokens(e,t),t.length>0&&this.element.classList.add(...t)}syncClassSubscriptions(e){for(let e of this.classSubscriptions)e.unsubscribe();this.classSubscriptions=[];let t=new Set;this.collectClassSignals(e,t),t.size!==0&&t.forEach(t=>{if(!t?.observable?.subscribe)return;let n=t.observable.subscribe(()=>{this.applyClassList(e)});this.classSubscriptions.push(n)})}appendChildElement(e){if(e==null||e===!1)return;if(typeof e==`string`||typeof e==`number`){this.element.appendChild(document.createTextNode(String(e)));return}if(I(e)){let t=document.createTextNode(e()==null?``:String(e()));if(this.element.appendChild(t),e.observable?.subscribe){let n=e.observable.subscribe(e=>{t.textContent=e==null?``:String(e)});this.childTextSubscriptions.push(n)}return}if(Jt(e)){e.subscribe(e=>{e&&typeof e==`object`&&`elements`in e?(e.elements||[]).forEach(e=>this.appendChildElement(e)):Array.isArray(e)?e.forEach(e=>this.appendChildElement(e)):this.appendChildElement(e)});return}if(Array.isArray(e)){e.forEach(e=>this.appendChildElement(e));return}let t=e?.componentInstance?.element;if(t){this.element.appendChild(t);return}let n=e?.props?.children;n&&this.appendChildElement(n)}onInit(e){if(typeof e.element==`string`)this.element=document.createElement(e.element),this.isFormElementType=this.isFormElement(e.element);else{if(this.element=e.element?.value,!this.element)throw Error(`DOMElement requires a valid element.`);this.isFormElementType=this.isFormElement(this.element.tagName)}(e.onBeforeDestroy||e[`on-before-destroy`])&&(this.onBeforeDestroy=e.onBeforeDestroy||e[`on-before-destroy`]);for(let t of Xs)if(e.attrs?.[t]){let n=n=>{if(t===`submit`&&this.element.tagName.toLowerCase()===`form`){n.preventDefault();let r=new FormData(this.element),i={};r.forEach((e,t)=>{i[t]?Array.isArray(i[t])?i[t].push(e):i[t]=[i[t],e]:i[t]=e}),e.attrs[t]?.(n,i)}else e.attrs[t]?.(n)};this.eventListeners.set(t,n),this.element.addEventListener(t,n,!1)}e.children&&this.appendChildElement(e.children),this.onUpdate(e)}onMount(e){let t=e.propObservables.attrs;if(this.isFormElementType&&t?.value&&I(t.value)){this.valueSignal=t.value,this.element.value=this.valueSignal();let e=e=>{let t=e.target;this.valueSignal.set(t.value)};this.eventListeners.set(`input`,e),this.element.addEventListener(`input`,e,!1)}}onUpdate(e){if(this.element){for(let[t,n]of Object.entries(e.attrs||{}))if(t===`tabindex`){let e=I(n)?n():n;e==null?this.element.removeAttribute(`tabindex`):this.element.setAttribute(`tabindex`,String(e))}else if(t===`class`){let e=n.items||n.value||n,t=I(e)?e():e;this.applyClassList(t),this.syncClassSubscriptions(t)}else if(t===`style`){let e=n.items||n.value||n;if(typeof e==`string`)this.element.setAttribute(`style`,e);else if(typeof e==`object`&&e)for(let[t,n]of Object.entries(e))n!=null&&(this.element.style[t]=n)}else if(t===`value`&&this.isFormElementType)if(I(n)){let e=this.element.value,t=n();e!==t&&(this.element.value=t)}else this.element.value=n;else Xs.includes(t)||this.element.setAttribute(t,n);if(`textContent`in e){let t=e.textContent;this.element.textContent=t==null?``:String(t)}}}async onDestroy(e,t){if(this.element){this.onBeforeDestroy&&await this.onBeforeDestroy();for(let[e,t]of this.eventListeners)this.element.removeEventListener(e,t,!1);this.eventListeners.clear();for(let e of this.classSubscriptions)e.unsubscribe();this.classSubscriptions=[];for(let e of this.childTextSubscriptions)e.unsubscribe();this.childTextSubscriptions=[],this.element.remove(),t&&t()}}};z(`DOMElement`,Zs);var Qs=e=>V(`DOMElement`,e);z(`DOMContainer`,class e extends za(t.DOMContainer){constructor(...e){super(...e),this.disableLayout=!0,this.canvasSizeEffect=null}static{this.DOM_ROUTING_MAP={Sprite:`DOMSprite`}}static{this.DOM_ALLOWED_TAGS=new Set([`DOMContainer`,`DOMElement`,`DOMSprite`])}static{this.DOM_UNSUPPORTED_TAGS=new Set([`Canvas`,`Container`,`Graphics`,`Rect`,`Circle`,`Ellipse`,`Triangle`,`Svg`,`Mesh`,`Scene`,`ParticlesEmitter`,`Sprite`,`Video`,`Text`,`TilingSprite`,`Viewport`,`NineSliceSprite`,`Button`,`Joystick`,`FocusContainer`])}hasDomContainerAncestor(){let e=this.getElement()?.parent;for(;e;){if(e.tag===`DOMContainer`)return!0;e=e.parent}return!1}getPercentRatio(e){let t=parseFloat(e);return Number.isNaN(t)?null:t/100}getCanvasSize(){let e=this.fullProps?.context?.canvasSize;return typeof e==`function`?e():e}shouldUseCanvasPercent(){let e=this.fullProps?.width,t=this.fullProps?.height;return!U(e)&&!U(t)?!1:!this.hasDomContainerAncestor()}syncCanvasSizeEffect(){let e=this.shouldUseCanvasPercent();if(e&&!this.canvasSizeEffect){let e=this.fullProps?.context?.canvasSize;typeof e==`function`&&(this.canvasSizeEffect=R(()=>{e(),this.applyElementSize()}))}else !e&&this.canvasSizeEffect&&(this.canvasSizeEffect.subscription?.unsubscribe(),this.canvasSizeEffect=null)}applyElementSize(){if(!this.element)return;let e=this.fullProps?.width,t=this.fullProps?.height,n=this.shouldUseCanvasPercent(),r=n?this.getCanvasSize():null;if(e!==void 0)if(U(e))if(n){let t=this.getPercentRatio(e);if(t!==null){let e=r?.width===void 0?this.getWidth():r.width;this.element.style.width=`${e*t}px`}}else this.element.style.width=e;else typeof e==`number`?this.element.style.width=`${e}px`:typeof e==`string`&&(this.element.style.width=e);if(t!==void 0)if(U(t))if(n){let e=this.getPercentRatio(t);if(e!==null){let t=r?.height===void 0?this.getHeight():r.height;this.element.style.height=`${t*e}px`}}else this.element.style.height=t;else typeof t==`number`?this.element.style.height=`${t}px`:typeof t==`string`&&(this.element.style.height=t)}routeDomChildren(t){if(!t)return t;if(Array.isArray(t))return t.map(e=>this.routeDomChildren(e));if(na(t)){if(e.DOM_ALLOWED_TAGS.has(t.tag))return t;let n=e.DOM_ROUTING_MAP[t.tag];if(n)return t.propSubscriptions?.forEach(e=>e.unsubscribe()),t.effectSubscriptions?.forEach(e=>e.unsubscribe()),t.effectUnmounts?.forEach(e=>e?.()),V(n,t.propObservables??t.props);if(e.DOM_UNSUPPORTED_TAGS.has(t.tag))throw Error(`Component ${t.tag} is not implemented for DOMContainer context yet. Only Sprite is supported.`);return t.props?.children&&(t.props.children=this.routeDomChildren(t.props.children)),t}return t}onInit(e){let t=e._scopeClass,n={element:`div`},r={...e.attrs||{}},i=e=>{if(!t)return e;if(e==null)return t;if(typeof e==`string`)return`${t} ${e}`;if(Array.isArray(e))return[t,...e];if(typeof e==`object`){if(`items`in e){let n=e.items;return{...e,items:[t,n]}}if(`value`in e){let n=e.value;return{...e,value:[t,n]}}return{[t]:!0,...e}}return[t,e]};e.class!==void 0&&(r.class?r.class=[e.class,r.class]:r.class=e.class),e.style!==void 0&&(typeof r.style==`object`&&r.style!==null&&typeof e.style==`object`&&e.style!==null?r.style={...r.style,...e.style}:r.style===void 0?r.style=e.style:typeof r.style==`string`&&typeof e.style==`string`?r.style=`${r.style}; ${e.style}`:r.style=e.style),e.zIndex!==void 0&&(typeof r.style==`object`&&r.style!==null?r.style={...r.style,zIndex:e.zIndex}:typeof r.style==`string`?r.style=`${r.style}; z-index: ${e.zIndex}`:r.style={zIndex:e.zIndex}),t?(n.attrs={...r},n.attrs.class=i(n.attrs.class)):Object.keys(r).length>0&&(n.attrs=r);let a=this.routeDomChildren(e.children);e.children=a;let o=W(Qs,n,a);this.element=o.componentInstance.element}async onMount(e,t){await super.onMount(e,t),this.syncCanvasSizeEffect(),this.applyElementSize()}onUpdate(e){super.onUpdate(e),this.syncCanvasSizeEffect(),this.applyElementSize()}onLayoutComputed(){this.applyElementSize()}async onDestroy(e,t){await super.onDestroy(e,()=>{this.canvasSizeEffect&&=(this.canvasSizeEffect.subscription?.unsubscribe(),null),t&&t()})}});var $s=e=>V(`DOMContainer`,e),ec=`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`.split(`.`);z(`DOMSprite`,class extends Zs{constructor(...e){super(...e),this.frameIndex=0,this.frames=[],this.fps=120,this.loop=!0,this.playing=!0,this.hasExternalFrameIndex=!1,this.elapsed=0,this.sheetSubscriptions=[],this.sheetAnimations=new Map,this.sheetParams={},this.sheetTime=0,this.sheetFrameIndex=0,this.sheetFinished=!1,this.sheetLoadToken=0,this.renderElementType=`div`,this.wrapperElementType=`div`,this.isAnimating=!1,this.frameWidth=0,this.frameHeight=0,this.isContained=!1}onInit(e){let t=e,n=t.sheet===void 0&&t.image?`img`:`div`;this.renderElementType=t.element??n;let r=this.resolveValue(t.objectFit);this.fitMode=r??void 0,this.wrapperElementType=this.fitMode===`contain`&&this.renderElementType===`img`?`div`:this.renderElementType;let i=this.mergeEventAttrs({...t,element:this.wrapperElementType});this.tickSignal=i.context?.tick,this.applyProps(i),super.onInit(i),this.syncRenderElement(),this.applyDisplayProps(i),this.render(),this.updateAnimationLoop()}onMount(e){this.tickSignal=e.props.context?.tick,super.onMount(e),this.bindPlayingSignal(e),this.bindSheetParams(e),this.updateAnimationLoop()}onUpdate(e){let t=this.mergeEventAttrs(e);super.onUpdate(t),this.applyProps(t),this.syncRenderElement(),this.applyDisplayProps(t),this.render(),this.updateAnimationLoop()}async onDestroy(e,t){this.playingSubscription&&=(this.playingSubscription.unsubscribe(),void 0),this.sheetSubscriptions.length>0&&(this.sheetSubscriptions.forEach(e=>e.unsubscribe()),this.sheetSubscriptions=[]),this.stopAnimationLoop(),await super.onDestroy(e,t)}resolveRectangle(e){if(!e)return;let t=I(e)?e():e;if(!t)return;let n=t.value??t;if(n)return n}resolveSheetDefinition(e){if(!e)return;let t=I(e)?e():e;if(t)return t.value??t}async detectImageDimensions(e){return!zt()||!e?{width:0,height:0}:new Promise((t,n)=>{let r=new Image;r.onload=()=>t({width:r.naturalWidth,height:r.naturalHeight}),r.onerror=()=>n(Error(`Failed to load image: ${e}`)),r.src=e})}async createSheetAnimations(e){this.sheetAnimations.clear();let{textures:t}=e;if(!t)return;let n=[`width`,`height`,`framesHeight`,`framesWidth`,`rectWidth`,`rectHeight`,`offset`];for(let r in t){let i={...n.reduce((t,n)=>({...t,[n]:e[n]}),{}),...t[r],spriteWidth:0,spriteHeight:0};i.image=t[r].image??e.image;let{rectWidth:a,rectHeight:o,framesWidth:s=1,framesHeight:c=1,image:l}=i,u=i.width||0,d=i.height||0;if(l&&(!u||u<=0||!d||d<=0)){let e=await this.detectImageDimensions(l);(!u||u<=0)&&(u=e.width),(!d||d<=0)&&(d=e.height)}!u||!d||!s||!c||(i.width=u,i.height=d,i.spriteWidth=a||u/s,i.spriteHeight=o||d/c,this.sheetAnimations.set(r,{frames:[],name:r,animations:t[r].animations,params:[],data:i}))}}async setSheetDefinition(e){let t=++this.sheetLoadToken;if(!e){this.sheetDefinition=void 0,this.sheetAnimations.clear(),this.sheetCurrentAnimation=void 0,this.sheetCurrentName=void 0;return}let n=await e;if(t!==this.sheetLoadToken)return;if(!n){this.sheetDefinition=void 0,this.sheetAnimations.clear(),this.sheetCurrentAnimation=void 0,this.sheetCurrentName=void 0;return}this.sheetDefinition=n,n.image&&(this.image=n.image),await this.createSheetAnimations(n);let r=n.textures?Object.keys(n.textures):[],i=this.sheetCurrentName||(r.includes(`stand`)?`stand`:r[0])||void 0;i&&this.playSheet(i,[this.sheetParams]),this.render(),this.updateAnimationLoop()}playSheet(e,t=[]){let n=this.sheetCurrentAnimation?.params;if(this.sheetCurrentAnimation&&this.sheetCurrentAnimation.name===e&&Ut(t,n||[]))return;let r=this.sheetAnimations.get(e);if(!r)throw Error(`Impossible to play the ${e} animation because it doesn't exist on the spritesheet`);let i=structuredClone(t),a=r.animations;a=Kt(a)?a(...i):a,r.frames=[],r.params=i,this.sheetCurrentAnimation=r,this.sheetCurrentName=e,this.sheetTime=0,this.sheetFrameIndex=0,this.sheetFinished=!1;let o=r.data,s=o.spriteWidth,c=o.spriteHeight,l=o.offset?.x??0,u=o.offset?.y??0;for(let e of a)for(let t of e){let e=t.frameX??0,n=t.frameY??0;r.frames.push({...t,x:e*s+l,y:n*c+u,width:s,height:c})}this.render(),this.updateAnimationLoop()}getCurrentSheetFrame(){return!this.sheetCurrentAnimation||this.sheetCurrentAnimation.frames.length===0?null:this.sheetCurrentAnimation.frames[this.sheetFrameIndex]??null}advanceSheet(e){if(!this.playing||!this.sheetCurrentAnimation)return;let t=this.sheetCurrentAnimation.frames;if(t.length<=1)return;let n=this.fps>0?this.fps:60,r=0;e.deltaTime?r=e.deltaTime/Vt(n):typeof e.deltaRatio==`number`&&(r=e.deltaRatio*(n/60));let i=t[this.sheetFrameIndex+1];if(!i){if(this.loop){this.sheetTime=0,this.sheetFrameIndex=0,this.applyFrame(t[0]);return}else this.sheetFinished||(this.sheetFinished=!0,this.sheetOnFinish&&this.sheetOnFinish());this.applyFrame(t[t.length-1]);return}this.sheetTime+=r||0,this.sheetTime>=i.time&&(this.sheetFrameIndex+=1),this.applyFrame(t[this.sheetFrameIndex])}mergeEventAttrs(e){let t=e.attrs?{...e.attrs}:void 0;for(let n of ec){let r=e[n];r&&!t?.[n]&&(t||={},t[n]=r)}return e.class!==void 0&&(t||={},t.class?t.class=[e.class,t.class]:t.class=e.class),e.style!==void 0&&(t||={},typeof t.style==`object`&&t.style!==null&&typeof e.style==`object`&&e.style!==null?t.style={...t.style,...e.style}:t.style===void 0?t.style=e.style:typeof t.style==`string`&&typeof e.style==`string`?t.style=`${t.style}; ${e.style}`:t.style=e.style),t?{...e,attrs:t}:e}applyProps(e){if(e.image!==void 0&&(this.image=I(e.image)?e.image():e.image),e.rectangle!==void 0&&(this.rectangle=this.resolveRectangle(e.rectangle)),e.frames!==void 0){let t=I(e.frames)?e.frames():e.frames;this.frames=t??[]}if(e.sheet!==void 0){let t=I(e.sheet)?e.sheet():e.sheet;if(t?.definition!==void 0){let e=this.resolveSheetDefinition(t.definition);(e instanceof Promise||e&&e!==this.sheetDefinition)&&this.setSheetDefinition(e)}t?.params!==void 0&&(this.sheetParams={...this.sheetParams,...t.params}),t?.playing!==void 0&&(this.sheetCurrentName=t.playing),t?.onFinish!==void 0&&(this.sheetOnFinish=t.onFinish),this.sheetAnimations.size>0&&this.sheetCurrentName&&this.playSheet(this.sheetCurrentName,[this.sheetParams])}if(e.frameIndex!==void 0){let t=I(e.frameIndex),n=t?e.frameIndex():e.frameIndex;n!==void 0&&(this.frameIndex=n),this.hasExternalFrameIndex=t}if(e.fps!==void 0){let t=I(e.fps)?e.fps():e.fps;t!==void 0&&(this.fps=t)}if(e.playing!==void 0){let t=I(e.playing)?e.playing():e.playing;this.playing=t===!0,this.playing||(this.elapsed=0)}if(e.loop!==void 0){let t=I(e.loop)?e.loop():e.loop;t!==void 0&&(this.loop=t)}if(e.objectFit!==void 0){let t=this.resolveValue(e.objectFit);this.fitMode=t??void 0}}resolveValue(e){if(e===void 0)return;let t=I(e)?e():e;return t&&typeof t==`object`&&`value`in t?t.value:t}resolvePoint(e){let t=this.resolveValue(e);if(t!=null){if(typeof t==`number`)return{x:t,y:t};if(Array.isArray(t)){let[e,n]=t;return{x:e??0,y:n??e??0}}if(typeof t==`object`)return{x:t.x??0,y:t.y??0}}}resolveSize(e){let t=this.resolveValue(e);if(t!=null){if(typeof t==`number`)return`${t}px`;if(typeof t==`string`)return t}}resolvePixelSize(e){if(e){if(e.endsWith(`px`)){let t=parseFloat(e);return Number.isNaN(t)?void 0:t}if(/^\d+(\.\d+)?$/.test(e)){let t=parseFloat(e);return Number.isNaN(t)?void 0:t}}}toCssColor(e){return`#${Math.max(0,Math.min(16777215,e)).toString(16).padStart(6,`0`)}`}applyDisplayProps(e){if(!this.element)return;if(e.width===void 0?this.explicitWidth=void 0:this.explicitWidth=this.resolveSize(e.width),e.height===void 0?this.explicitHeight=void 0:this.explicitHeight=this.resolveSize(e.height),this.explicitWidth!==void 0&&(this.element.style.width=this.explicitWidth),this.explicitHeight!==void 0&&(this.element.style.height=this.explicitHeight),e.alpha!==void 0){let t=this.resolveValue(e.alpha);t!==void 0&&(this.element.style.opacity=String(t))}if(e.visible!==void 0){let t=this.resolveValue(e.visible);this.element.style.display=t===!1?`none`:``}if(e.zIndex!==void 0){let t=this.resolveValue(e.zIndex);t!==void 0&&(this.element.style.zIndex=String(t))}if(e.cursor!==void 0){let t=this.resolveValue(e.cursor);t!==void 0&&(this.element.style.cursor=String(t))}if(e.tint!==void 0){let t=this.resolveValue(e.tint);typeof t==`number`&&(this.element.style.filter=`drop-shadow(0 0 0 ${this.toCssColor(t)})`)}if([e.x,e.y,e.scale,e.rotation,e.angle,e.skew,e.roundPixels].some(e=>e!==void 0)){let t=this.resolveValue(e.x)??0,n=this.resolveValue(e.y)??0;this.resolveValue(e.roundPixels)&&(t=Math.round(t),n=Math.round(n));let r=this.resolvePoint(e.scale)??{x:1,y:1},i=this.resolvePoint(e.skew),a=this.resolveValue(e.angle),o=this.resolveValue(e.rotation),s=a===void 0?o===void 0?0:o*180/Math.PI:a,c=[`translate3d(${t}px, ${n}px, 0)`];if(s!==0&&c.push(`rotate(${s}deg)`),i){let e=i.x*180/Math.PI,t=i.y*180/Math.PI;(e!==0||t!==0)&&c.push(`skew(${e}deg, ${t}deg)`)}(r.x!==1||r.y!==1)&&c.push(`scale(${r.x}, ${r.y})`),this.element.style.transform=c.join(` `)}let t=this.resolvePoint(e.pivot),n=this.resolvePoint(e.anchor);t?this.element.style.transformOrigin=`${t.x}px ${t.y}px`:n&&(this.element.style.transformOrigin=`${n.x*100}% ${n.y*100}%`)}syncRenderElement(){if(this.element){if(this.fitMode===`contain`&&!(this.element instanceof HTMLImageElement)){if(!this.isContained){let e=document.createElement(this.renderElementType);this.element.style.position=`relative`,this.element.style.overflow=`hidden`,e.style.position=`absolute`,e.style.left=`0`,e.style.top=`0`,e.style.transformOrigin=`0 0`,this.element.appendChild(e),this.renderElement=e,this.isContained=!0}return}this.isContained&&=(this.renderElement&&this.renderElement!==this.element&&this.renderElement.remove(),this.renderElement=void 0,!1)}}getRenderElement(){return this.renderElement??this.element}applyContainScale(){if(!this.isContained)return;let e=this.getRenderElement();if(!e||!this.element||this.frameWidth<=0||this.frameHeight<=0)return;let t=this.resolvePixelSize(this.explicitWidth)??this.element.clientWidth,n=this.resolvePixelSize(this.explicitHeight)??this.element.clientHeight;if(!t||!n)return;let r=Math.min(t/this.frameWidth,n/this.frameHeight);!Number.isFinite(r)||r<=0||(e.style.transform=`scale(${r})`)}bindPlayingSignal(e){let t=e.propObservables?.playing;!t||!I(t)||this.playingSignal!==t&&(this.playingSubscription&&=(this.playingSubscription.unsubscribe(),void 0),this.playingSignal=t,this.playing=t(),this.playingSubscription=t.observable.subscribe(e=>{this.playing=e===!0,this.playing||(this.elapsed=0),this.updateAnimationLoop()}))}bindSheetParams(e){let t=e.propObservables?.sheet?.params;if(!(!t||typeof t!=`object`))for(let e in t){let n=t[e];I(n)&&this.sheetSubscriptions.push(n.observable.subscribe(t=>{this.sheetParams={...this.sheetParams,[e]:t},this.sheetCurrentName&&this.playSheet(this.sheetCurrentName,[this.sheetParams])}))}}getFrames(){return this.frames&&this.frames.length>0?this.frames:this.rectangle?[this.rectangle]:[]}normalizeIndex(e,t){if(t<=0)return 0;if(this.loop){let n=e%t;return n<0?n+t:n}return e<0?0:e>=t?t-1:e}render(){if(!this.element)return;let e=this.getRenderElement(),t=this.getCurrentSheetFrame();if(t){this.applyFrame(t);return}let n=this.getFrames();if(n.length===0){this.renderElementType===`img`&&this.image&&e?e.src=this.image:this.image&&(e.style.backgroundImage=`url("${this.image}")`);return}let r=this.normalizeIndex(this.frameIndex,n.length);r!==this.frameIndex&&!this.loop&&(this.frameIndex=r);let i=n[r];this.applyFrame(i)}applyFrame(e){if(!this.element)return;let t=this.getRenderElement();if(!t)return;this.frameWidth=e.width,this.frameHeight=e.height,this.fitMode===`contain`?(t.style.width=`${e.width}px`,t.style.height=`${e.height}px`):(t.style.width=this.explicitWidth??`${e.width}px`,t.style.height=this.explicitHeight??`${e.height}px`);let n=e.x??0,r=e.y??0;if(this.renderElementType===`img`){let e=t;this.image&&(e.src=this.image),e.style.objectFit=`none`,e.style.objectPosition=`-${n}px -${r}px`,this.applyContainScale();return}this.image&&(t.style.backgroundImage=`url("${this.image}")`),t.style.backgroundRepeat=`no-repeat`,t.style.backgroundPosition=`-${n}px -${r}px`,this.applyContainScale()}updateAnimationLoop(){let e=this.sheetCurrentAnimation?.frames??[];(this.sheetCurrentAnimation?this.playing&&e.length>1:this.playing&&!this.hasExternalFrameIndex&&this.getFrames().length>1&&this.fps>0)?this.startAnimationLoop():this.stopAnimationLoop()}startAnimationLoop(){if((this.tickSubscription||this.rafId!==void 0)&&this.stopAnimationLoop(),this.isAnimating=!0,this.elapsed=0,this.lastTickTimestamp=void 0,this.tickSignal?.observable){this.tickSubscription=this.tickSignal.observable.subscribe(e=>{let t=e?.value??e;if(!t)return;if(this.sheetCurrentAnimation){this.advanceSheet(t);return}let n=t.deltaTime||0;if(n<=0){let e=Bt();if(this.lastTickTimestamp===void 0){this.lastTickTimestamp=e;return}n=e-this.lastTickTimestamp,this.lastTickTimestamp=e}n>0&&this.advance(n)});return}let e=t=>{if(!this.playing||this.hasExternalFrameIndex){this.stopAnimationLoop();return}this.lastRafTimestamp===void 0&&(this.lastRafTimestamp=t);let n=t-this.lastRafTimestamp;this.lastRafTimestamp=t,this.sheetCurrentAnimation?this.advanceSheet({timestamp:t,deltaTime:n,frame:0,deltaRatio:n/Vt(this.fps)}):this.advance(n),zt()?this.rafId=window.requestAnimationFrame(e):this.rafId=setTimeout(()=>{e(Bt())},Vt(this.fps))};zt()?this.rafId=window.requestAnimationFrame(e):this.rafId=setTimeout(()=>{e(Bt())},Vt(this.fps))}stopAnimationLoop(){this.isAnimating=!1,this.tickSubscription&&=(this.tickSubscription.unsubscribe(),void 0),this.rafId!==void 0&&(zt()?window.cancelAnimationFrame(this.rafId):clearTimeout(this.rafId),this.rafId=void 0,this.lastRafTimestamp=void 0),this.lastTickTimestamp=void 0}advance(e){let t=this.getFrames();if(!this.playing||t.length<=1||this.fps<=0)return;this.elapsed+=e;let n=Vt(this.fps);for(;this.elapsed>=n;)if(this.elapsed-=n,this.frameIndex+=1,!this.loop&&this.frameIndex>=t.length){this.frameIndex=t.length-1;break}this.render()}});var tc=e=>V(`DOMSprite`,e),nc=function(e){return e.Normal=`normal`,e.Hover=`hover`,e.Pressed=`pressed`,e.Disabled=`disabled`,e}({});function rc(e){let t=F(nc.Normal),n=F(!1),r=F(!1),{text:i,disabled:a,width:o,height:s,style:c,shape:l,controlName:u}=ba(e)({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}}),d=()=>e.controls?I(e.controls)?e.controls():e.controls:null;R(()=>{let e=a(),i=n(),o=r();e?t.set(nc.Disabled):i?t.set(nc.Pressed):o?t.set(nc.Hover):t.set(nc.Normal)});let f={pointerenter:t=>{a()||(r.set(!0),e.hoverEnter?.(t))},pointerleave:t=>{r.set(!1),n.set(!1),e.hoverLeave?.(t)},pointerdown:async t=>{if(!a()){n.set(!0),e.pressDown?.(t);let r=d(),i=u();r&&i&&r.applyControl&&await r.applyControl(i,!0)}},pointerup:async t=>{if(!a()&&n()){n.set(!1),e.pressUp?.(t);let r=d(),i=u();r&&i&&r.applyControl&&await r.applyControl(i,!1)}},pointertap:async t=>{if(!a()){e.click?.(t);let n=d(),r=u();n&&r&&n.applyControl&&await n.applyControl(r)}}},p=()=>{if(e.background)return e.background;let n=l(),r=L(()=>{let e=c().backgroundColor||{[nc.Normal]:`#007bff`,[nc.Hover]:`#0056b3`,[nc.Pressed]:`#004085`,[nc.Disabled]:`#6c757d`};return e[t()]||e[nc.Normal]});return n===`circle`?W(qa,{radius:L(()=>Math.min(o(),s())/2),x:L(()=>o()/2),y:L(()=>s()/2),color:r}):W(n===`ellipse`?Ja:Ka,{width:o,height:s,color:r})},m=()=>e.children&&e.children.length>0?e.children:[W(cs,{text:i,x:L(()=>o()/2),y:L(()=>s()/2),anchor:{x:.5,y:.5},style:L(()=>{let e=c().text||{};return{fontSize:e.fontSize||16,fontFamily:e.fontFamily||`Arial`,fill:e.color||`#ffffff`}})()})];return W(Ua,{x:e.x,y:e.y,width:e.width,height:e.height,alpha:e.alpha,visible:e.visible,cursor:e.cursor||`pointer`,tabindex:e.tabindex,...f},[p(),...m()])}var J=function(e){return e.LEFT=`left`,e.TOP=`top`,e.BOTTOM=`bottom`,e.RIGHT=`right`,e.TOP_LEFT=`top_left`,e.TOP_RIGHT=`top_right`,e.BOTTOM_LEFT=`bottom_left`,e.BOTTOM_RIGHT=`bottom_right`,e}({});function ic(e={}){let n=Object.assign({outerScale:{x:1,y:1},innerScale:{x:1,y:1},innerColor:`black`,outerColor:`black`},e),r=()=>I(n.controls)?n.controls():n.controls,i=.5,a=!1,o=null,s=0,c=F(0),l=F(0),u=F(i);function d(e){let t=e.x-0,n=e.y-0;return Math.min(1,Math.sqrt(t*t+n*n)/70)}function f(e){let t=Math.atan2(e.y,e.x);return t>=-Math.PI/8&&t<0||t>=0&&t<Math.PI/8?J.RIGHT:t>=Math.PI/8&&t<3*Math.PI/8?J.BOTTOM_RIGHT:t>=3*Math.PI/8&&t<5*Math.PI/8?J.BOTTOM:t>=5*Math.PI/8&&t<7*Math.PI/8?J.BOTTOM_LEFT:t>=7*Math.PI/8&&t<Math.PI||t>=-Math.PI&&t<-7*Math.PI/8?J.LEFT:t>=-7*Math.PI/8&&t<-5*Math.PI/8?J.TOP_LEFT:t>=-5*Math.PI/8&&t<-3*Math.PI/8?J.TOP:J.TOP_RIGHT}function p(e){let t=e.currentTarget||e.target;o=e.getLocalPosition(t),a=!0,u.set(1),n.onStart?.();let i=r();i&&(i.handleJoystickStart?i.handleJoystickStart():i.joystick&&i.joystick.handleJoystickStart&&i.joystick.handleJoystickStart())}function m(){if(!a)return;c.set(0),l.set(0),a=!1,u.set(i),n.onEnd?.();let e=r();e&&(e.handleJoystickEnd?e.handleJoystickEnd():e.joystick&&e.joystick.handleJoystickEnd&&e.joystick.handleJoystickEnd())}function h(e){if(a==0)return;let i=e.currentTarget||e.target,u=e.getLocalPosition(i),p=u.x-(o?.x??0),m=u.y-(o?.y??0),h=new t.Point(0,0),g=0;if(p==0&&m==0)return;p*p+m*m;let _=J.LEFT;if(p==0){m>0?(h.set(0,m>70?70:m),g=270,_=J.BOTTOM):(h.set(0,-(Math.abs(m)>70?70:Math.abs(m))),g=90,_=J.TOP),c.set(h.x),l.set(h.y),s=d(h);let e={angle:g,direction:_,power:s};n.onChange?.(e);let t=r();t&&(t.handleJoystickChange?t.handleJoystickChange(e):t.joystick&&t.joystick.handleJoystickChange&&t.joystick.handleJoystickChange(e));return}if(m==0){p>0?(h.set(Math.abs(p)>70?70:Math.abs(p),0),g=0,_=J.RIGHT):(h.set(-(Math.abs(p)>70?70:Math.abs(p)),0),g=180,_=J.LEFT),c.set(h.x),l.set(h.y),s=d(h);let e={angle:g,direction:_,power:s};n.onChange?.(e);let t=r();t&&(t.handleJoystickChange?t.handleJoystickChange(e):t.joystick&&t.joystick.handleJoystickChange&&t.joystick.handleJoystickChange(e));return}let v=Math.abs(m/p),y=Math.atan(v);g=y*180/Math.PI;let b=0,x=0;p*p+m*m>=4900?(b=70*Math.cos(y),x=70*Math.sin(y)):(b=Math.abs(p)>70?70:Math.abs(p),x=Math.abs(m)>70?70:Math.abs(m)),m<0&&(x=-Math.abs(x)),p<0&&(b=-Math.abs(b)),p>0&&m<0||(p<0&&m<0?g=180-g:p<0&&m>0?g+=180:p>0&&m>0&&(g=360-g)),h.set(b,x),s=d(h),_=f(h),c.set(h.x),l.set(h.y);let ee={angle:g,direction:_,power:s};n.onChange?.(ee);let S=r();S&&(S.handleJoystickChange?S.handleJoystickChange(ee):S.joystick&&S.joystick.handleJoystickChange&&S.joystick.handleJoystickChange(ee))}let g,_;_=n.outer?W(os,{image:n.outer,anchor:{x:.5,y:.5},scale:n.outerScale}):W(Wa,{draw:e=>{e.circle(0,0,70).fill(n.outerColor)},alpha:.5});let v={scale:n.innerScale,x:c,y:l,alpha:u};return g=n.inner?n.inner:W(Wa,{draw:e=>{e.circle(0,0,10*2.5).fill(n.innerColor)},...v}),W(Ua,{...e,pointerdown:p,pointerup:m,pointerupoutside:m,pointermove:h},_,g)}var ac=class e{constructor(){this.containers=new Map,this.scrollAnimations=new Map}static{this.instance=null}static getInstance(){return e.instance||=new e,e.instance}registerContainer(e,t){this.containers.set(e,{...t,id:e})}updateContainer(e,t){let n=this.containers.get(e);n&&this.containers.set(e,{...n,...t})}setTabindex(e,t){let n=this.containers.get(e);if(!n)return;if(n.tabindexSubscription&&n.tabindexSubscription.unsubscribe(),t==null){n.tabindex=void 0;return}n.tabindex=t;let r=I(t)?t():t;typeof r==`number`&&this.setIndex(e,r),I(t)&&(n.tabindexSubscription=t.observable.subscribe(t=>{t!==null&&t!==n.currentIndex()&&this.setIndex(e,t)}))}unregisterContainer(e){this.containers.delete(e),this.scrollAnimations.delete(e)}registerFocusable(e,t,n){let r=this.containers.get(e);if(!r){console.warn(`FocusContainer with id "${e}" not found`);return}r.focusables.set(n,t);let i=I(r.tabindex)?r.tabindex():r.tabindex;(r.pendingIndex===n||i===n&&r.currentIndex()===null)&&(r.pendingIndex=void 0,this.applyFocus(r,e,n,t))}unregisterFocusable(e,t){let n=this.containers.get(e);n&&n.focusables.delete(t)}navigate(e,t){let n=this.containers.get(e);if(!n||n.element&&ma(n.element))return;let r=n.currentIndex(),i=Array.from(n.focusables.keys()).sort((e,t)=>e-t);if(i.length===0)return;let a=null;if(r===null)a=t===`next`?i[0]:i[i.length-1];else{let e=i.indexOf(r);a=t===`next`?e<i.length-1?i[e+1]:i[0]:e>0?i[e-1]:i[i.length-1]}if(a!==null){let t=n.tabindex;I(t)&&typeof t.set==`function`?t.set(a):this.setIndex(e,a)}}setIndex(e,t){let n=this.containers.get(e);if(!n)return;let r=n.focusables.get(t);if(!r){n.pendingIndex=t;return}this.applyFocus(n,e,t,r)}applyFocus(e,t,n,r){e.currentIndex.set(n),e.focusedElement.set(r);let i=e.tabindex;I(i)&&i()!==n&&typeof i.set==`function`&&i.set(n),e.onFocusChange&&e.onFocusChange(n,r);let a=r.componentInstance;if(a&&a.element&&typeof a.element.focus==`function`){let e=a.element;e.focus(),typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`center`,behavior:`smooth`})}if(e.autoScroll){let r=e.viewport;if(r){let i=typeof e.autoScroll==`boolean`?{center:!0}:e.autoScroll;this.scrollToElement(t,n,r,i)}}}getElement(e,t){let n=this.containers.get(e);return n&&n.focusables.get(t)||null}getCurrentIndexSignal(e){let t=this.containers.get(e);return t?t.currentIndex:null}getFocusedElementSignal(e){let t=this.containers.get(e);return t?t.focusedElement:null}isElementVisible(e,t){if(!t)return!0;let n=this.getElementBounds(e),r=t.getVisibleBounds();return n.x<r.right&&n.x+n.width>r.left&&n.y<r.bottom&&n.y+n.height>r.top}getElementBounds(e){let t=e.componentInstance;if(!t)return{x:0,y:0,width:0,height:0};let n=t.getLocalBounds?.();if(!n)return{x:0,y:0,width:0,height:0};let r=t.getGlobalPosition?.();return r?{x:r.x,y:r.y,width:n.width,height:n.height}:{x:0,y:0,width:0,height:0}}scrollToElement(e,t,n,r={}){let i=this.containers.get(e);if(!i)return;let a=i.focusables.get(t);if(!a)return;let o=n||i.viewport;if(!o)return;let s=this.getElementBounds(a);o.getVisibleBounds();let c=r.padding||0,l=r.center!==!1,u=r.smooth||!1,d=r.duration||300;if(this.isElementVisible(a,o)){if(l){let t=s.x+s.width/2,n=s.y+s.height/2;u?this.animateScroll(e,o,t,n,d):o.moveCenter(t,n)}return}if(l){let t=s.x+s.width/2,n=s.y+s.height/2;u?this.animateScroll(e,o,t,n,d):o.moveCenter(t,n)}else{let t=s.x-c,n=s.y-c,r=s.width+c*2,i=s.height+c*2;if(u){let t=s.x+s.width/2,n=s.y+s.height/2;this.animateScroll(e,o,t,n,d)}else o.fit(t,n,r,i,c)}}animateScroll(e,t,n,r,i){let a=t.center,o=a.x,s=a.y,c={startTime:Date.now(),startX:o,startY:s,targetX:n,targetY:r,duration:i};this.scrollAnimations.set(e,c);let l=()=>{let n=this.scrollAnimations.get(e);if(!n)return;let r=Date.now()-n.startTime,i=Math.min(r/n.duration,1),a=1-(1-i)**3,o=n.startX+(n.targetX-n.startX)*a,s=n.startY+(n.targetY-n.startY)*a;t.moveCenter(o,s),i<1?requestAnimationFrame(l):this.scrollAnimations.delete(e)};requestAnimationFrame(l)}},Y=ac.getInstance();On(`focusNavigation`,class extends M{constructor(...e){super(...e),this.element=null,this.controlsDirective=null,this.controlsSubscription=null}onInit(e){this.element=e}onMount(e){if(this.controlsDirective=e.directives?.controls,!this.controlsDirective){let t=kn(e,`controls`);t&&(e.directives||={},e.directives.controls=t,this.controlsDirective=t)}let t=e.props.controls;if(t){let n=I(t)?t():t;n&&this.controlsDirective?.onUpdate({controls:n},e)}I(t)&&(this.controlsSubscription=t.observable.subscribe(t=>{t&&this.controlsDirective?.onUpdate({controls:t},e)}))}onUpdate(e,t){if(e.controls!==void 0){let n=I(e.controls)?e.controls():e.controls;n&&this.controlsDirective?.onUpdate({controls:n},t)}}onDestroy(e){this.controlsSubscription&&=(this.controlsSubscription.unsubscribe(),null),this.element=null,this.controlsDirective=null}}),z(`Navigation`,class{constructor(){this.containerId=``,this.currentIndexSignal=null,this.focusedElementSignal=null,this.registeredFocusables=new Set}onInit(e){this.containerId=`focus-container-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;let t=F(null),n=F(null);this.currentIndexSignal=t,this.focusedElementSignal=n;let r=e.viewport||e.context?.viewport;Y.registerContainer(this.containerId,{focusables:new Map,currentIndex:t,focusedElement:n,onFocusChange:e.onFocusChange,autoScroll:e.autoScroll,viewport:r})}async onMount(e){if(Y.updateContainer(this.containerId,{element:e}),e.props.controls){let t=kn(e,`focusNavigation`);t&&!e.directives&&(e.directives={}),t&&(e.directives.focusNavigation=t,t.onInit(e),t.onMount(e))}if(e.allElements){let t=e.allElements.subscribe(()=>{this.registerChildren(e)});e.effectSubscriptions||=[],e.effectSubscriptions.push(t)}Y.setTabindex(this.containerId,e.propObservables?.tabindex),setTimeout(()=>{this.registerChildren(e)},0)}onUpdate(e){let t=e.viewport||e.context?.viewport;Y.updateContainer(this.containerId,{viewport:t,autoScroll:e.autoScroll,onFocusChange:e.onFocusChange})}async onDestroy(e,t){for(let e of this.registeredFocusables)Y.unregisterFocusable(this.containerId,e);this.registeredFocusables.clear(),Y.unregisterContainer(this.containerId),t&&t()}registerChildren(e){if(!e.props.children)return;let t=0,n=e=>{for(let t of e)if(t){if(I(t)||t&&typeof t.subscribe==`function`){(I(t)?t.observable:t).subscribe(e=>{if(e&&typeof e==`object`&&`elements`in e){let t=e.elements||[];Array.isArray(t)&&n(t)}else Array.isArray(e)?n(e):e&&r(e)});continue}if(Array.isArray(t)){n(t);continue}r(t)}},r=i=>{if(!i||!i.componentInstance||(i.tag===`Navigation`||i.tag===`FocusContainer`)&&i!==e)return;let a;if(i.props?.attrs?.tabindex!==void 0){let e=i.props.attrs.tabindex;a=I(e)?e():e}else if(i.props?.tabindex!==void 0){let e=i.props.tabindex;a=I(e)?e():e}if(a!==void 0&&a>=0&&(this.registeredFocusables.has(a)||(Y.registerFocusable(this.containerId,i,a),this.registeredFocusables.add(a),t++)),i.props&&i.props.children)if(Array.isArray(i.props.children))n(i.props.children);else if(I(i.props.children)||i.props.children&&typeof i.props.children.subscribe==`function`){let e=(I(i.props.children)?i.props.children.observable:i.props.children).subscribe(e=>{if(e&&typeof e==`object`&&`elements`in e){let t=e.elements||[];Array.isArray(t)&&n(t)}else Array.isArray(e)?n(e):e&&r(e)});i.effectSubscriptions&&i.effectSubscriptions.push(e)}else r(i.props.children)};if(Array.isArray(e.props.children))n(e.props.children);else if(e.props.children)if(I(e.props.children)||e.props.children&&typeof e.props.children.subscribe==`function`){let t=(I(e.props.children)?e.props.children.observable:e.props.children).subscribe(e=>{if(e&&typeof e==`object`&&`elements`in e){let t=e.elements||[];Array.isArray(t)&&n(t)}else Array.isArray(e)?n(e):e&&r(e)});e.effectSubscriptions||=[],e.effectSubscriptions.push(t)}else r(e.props.children)}getContainerId(){return this.containerId}getCurrentIndexSignal(){return this.currentIndexSignal}getFocusedElementSignal(){return this.focusedElementSignal}});var oc=e=>V(`Navigation`,e),sc=oc,cc,lc=c((()=>{cc=(()=>{var e={}.url;return(function(t){t||={};var n;n||=t===void 0?{}:t;var r,i;n.ready=new Promise(function(e,t){r=e,i=t});var a=Object.assign({},n),o=``;typeof document<`u`&&document.currentScript&&(o=document.currentScript.src),e&&(o=e),o=o.indexOf(`blob:`)===0?``:o.substr(0,o.replace(/[?#].*/,``).lastIndexOf(`/`)+1);var s=n.print||console.log.bind(console),c=n.printErr||console.warn.bind(console);Object.assign(n,a),a=null;var l;n.wasmBinary&&(l=n.wasmBinary),n.noExitRuntime,typeof WebAssembly!=`object`&&C(`no native wasm support detected`);var u,d=!1;function f(e,t,n){n=t+n;for(var r=``;!(t>=n);){var i=e[t++];if(!i)break;if(i&128){var a=e[t++]&63;if((i&224)==192)r+=String.fromCharCode((i&31)<<6|a);else{var o=e[t++]&63;i=(i&240)==224?(i&15)<<12|a<<6|o:(i&7)<<18|a<<12|o<<6|e[t++]&63,65536>i?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023))}}else r+=String.fromCharCode(i)}return r}var p,m,h,g,_,v,y,b,x;function ee(){var e=u.buffer;p=e,n.HEAP8=m=new Int8Array(e),n.HEAP16=g=new Int16Array(e),n.HEAP32=v=new Int32Array(e),n.HEAPU8=h=new Uint8Array(e),n.HEAPU16=_=new Uint16Array(e),n.HEAPU32=y=new Uint32Array(e),n.HEAPF32=b=new Float32Array(e),n.HEAPF64=x=new Float64Array(e)}var S,te=[],ne=[],re=[];function ie(){var e=n.preRun.shift();te.unshift(e)}var ae=0,oe=null,se=null;function C(e){throw n.onAbort&&n.onAbort(e),e=`Aborted(`+e+`)`,c(e),d=!0,e=new WebAssembly.RuntimeError(e+`. Build with -sASSERTIONS for more info.`),i(e),e}function ce(e){return e.startsWith(`data:application/octet-stream;base64,`)}var le=`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/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhAWUAEQFhAWYAIAFhAWcAAAFhAWgAIQFhAWkAAwFhAWoAAAFhAWsAFwFhAWwACgFhAW0ABQFhAW4AAwFhAW8AAQFhAXAAFwFhAXEABgFhAXIAAAFhAXMAIgFhAXQACgFhAXUADQFhAXYAFgFhAXcAAgFhAXgAAwFhAXkAGAFhAXoAAgFhAUEAAQFhAUIAEQFhAUMAAQFhAUQAAAOiAqACAgMSBwcACRkDAAoRBgYKEwAPDxMBBiMTCgcHGgMUASQFJRQHAwMKCgMmAQYYDxobFAAKBw8KBwMDAgkCAAAFGwACBwIHBgIDAQMIDAABKAkHBQURACkZASoAAAIrLAIALQcHBy4HLwkFCgMCMA0xAgMJAgACAQYKAQIBBQEACQIFAQEABQAODQ0GFQIBHBUGAgkCEAAAAAUyDzMMBQYINAUCAwUODg41AgMCAgIDBgICNgIBDAwMAQsLCwsLCx0CAAIAAAABABABBQICAQMC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AEAQN/IAJBgARPBEAgACABIAIQFyAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAtIAQF/IwBBEGsiBCQAIAQgAzYCDAJAIABFBEBBAEEAIAEgAiAEKAIMEHEMAQsgACgC9AMgACABIAIgBCgCDBBxCyAEQRBqJAALkwECAX0BfyMAQRBrIgYkACAGQQhqIABB6ABqIAAgAkEBdGovAWIQH0MAAMB/IQUCQAJAAkAgBi0ADEEBaw4CAAECCyAGKgIIIQUMAQsgBioCCCADlEMK1yM8lCEFCyAALQADQRB0QYCAwABxBEAgBSAAIAEgAiAEEFQiA0MAAAAAIAMgA1sbkiEFCyAGQRBqJAAgBQu1AQECfyAAKAIEQQFqIgEgACgCACICKALsAyACKALoAyICa0ECdU8EQANAIAAoAggiAUUEQCAAQQA2AgggAEIANwIADwsgACABKAIENgIAIAAgASgCCDYCBCAAIAEoAgA2AgggARAjIAAoAgRBA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ADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgACABIAFBMGoQQg8LECQACyAAIAEgAUEwaiADEEULcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QdwlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwt5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IAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIANBEGokAAtdAQR/IAAoAgAhAgNAIAIsAAAiAxBXBEBBfyEEIAAgAkEBaiICNgIAIAFBzJmz5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsFIAQLIQEMAQsLIAELrhQCEn8BfiMAQdAAayIIJAAgCCABNgJMIAhBN2ohFyAIQThqIRQCQAJAAkACQANAIAEhDSAHIA5B/////wdzSg0BIAcgDmohDgJAAkACQCANIgctAAAiCQRAA0ACQAJAIAlB/wFxIgFFBEAgByEBDAELIAFBJUcNASAHIQkDQCAJLQABQSVHBEAgCSEBDAILIAdBAWohByAJLQACIQogCUECaiIBIQkgCkElRg0ACwsgByANayIHIA5B/////wdzIhhKDQcgAARAIAAgDSAHECYLIAcNBiAIIAE2AkwgAUEBaiEHQX8hEgJAIAEsAAEiChBXRQ0AIAEtAAJBJEcNACABQQNqIQcgCkEwayESQQEhFQsgCCAHNgJMQQAhDAJAIAcsAAAiCUEgayIBQR9LBEAgByEKDAELIAchCkEBIAF0IgFBidEEcUUNAANAIAggB0EBaiIKNgJMI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AkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMg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QECfyMAQTBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEwEB4gAkEwECshACACQTBqJAAgAAs7AQF/IAEgACgCBCIFQQF1aiEBIAAoAgAhACABIAIgAyAEIAVBAXEEfyABKAIAIABqKAIABSAACxEdAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERIACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRDAALNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAE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gFxOgAACxAAIAAoAgAtAABBBHFBAnYLegECfyMAQRBrIgEkACAAKAIAIgAoAggEQANAIAAtAAAiAkEEcUUEQCAAIAJBBHI6AAAgACgCECICBEAgACACEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQELCyABQRBqJAAPCyABQYAINgIAIABBBUHYJSABECwQJAALLgEBfyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgBBADYCEAsXACAAKAIEKAIIIgAgACgCACgCCBEAAAsuAQF/IAAoAgghAiAAIAE2AgggAgRAIAIgAigCACgCBBEAAAsgACgCAEEFNgIQCz4BAX8gACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIAIgBBADYCCCAAIAAtAABB7wFxOgAAC0kBAX8jAEEQayIGJAAgBiABKAIEKAIEIgEgAiADIAQgBSABKAIAKAIIERAAIAAgBisDALY4AgAgACAGKwMItjgCBCAGQRBqJAALcwECfyMAQRBrIgIkACAAKAIEIQMgACABNgIEIAMEQCADIAMoAgAoAgQRAAALIAAoAgAiACgC6AMgACgC7ANHBEAgAkH5IzYCACAAQQVB2CUgAhAsECQACyAAQQQ2AgggACAALQAAQRByOgAAIAJBEGokAAs8AQF/AkAgACgCACIAKALsAyAAKALoAyIAa0ECdSABTQ0AIAAgAUECdGooAgAiAEUNACAAKAIEIQILIAILGQAgACgCACgC5AMiAEUEQEEADwsgACgCBAsXACAAKAIAIgAoAuwDIAAoAugDa0ECdQuOAwEDfyMAQdACayICJAACQCAAKAIAIgAoAuwDIAAoAugDRg0AIAEoAgAiAygC5AMhASAAIAMQb0UNACAAIAFGBEAgAkEIakEAQcQCECoaIAJBADoAGCACQgA3AxAgAkGAgID+BzYCDCACQRxqQQBBxAEQKhogAkHgAWohBCACQSBqIQEDQCABQoCAgPyLgIDAv383AhAgAUKBgICAEDcCCCABQoCAgPyLgIDAv383AgAgAUEYaiIBIARHDQALIAJCgICA/IuAgMC/fzcD8AEgAkKBgICAEDcD6AEgAkKAgID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dAADUHQAAxB0AANsdAADUHQAAxB0AANsdAADiHQAAdmlpaWQAAADUHQAAxB0AAOIdAADbHQAAxR0AAMIdAADFHQAA2x0AAMIdAADFHQAA4h0AAMUdAADiHQAAxR0AANsdAABkaWlpAAAAAOEdAADEHQAA2x0AAGZpaWkAAAAA1B0AAMQdAADEHQAA3B0AANQdAADEHQAAxB0AANwdAADFHQAAxB0AAMQdAADEHQAAxB0AANwdAADUHQAAxB0AANUdAADVHQAAxB0AANQdAADEHQAAoR0AANQdAADEHQAAuR0AANUdAADFHQAAAAAAANQdAADEHQAA4h0AAOIdAADbHQAAdmlpZGRpAADBHQAAxR0AQcArC0EZAAoAGRkZAAAAAAUAAAAAAAAJAAAAAAsAAAAAAAAAABkAEQoZGRkDCgcAAQAJCxgAAAkGCwAACwAGGQAAABkZGQBBkSwLIQ4AAAAAAAAAABkACg0ZGRkADQAAAgAJDgAAAAkADgAADgBByywLAQwAQdcsCxUTAAAAABMAAAAACQwAAAAAAAwAAAwAQYUtCwEQAEGRLQsVDwAAAAQPAAAAAAkQAAAAAAAQAAAQAEG/LQsBEgBByy0LHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT`;if(!ce(le)){var ue=le;le=n.locateFile?n.locateFile(ue,o):o+ue}function de(){var e=le;try{if(e==le&&l)return new Uint8Array(l);if(ce(e))try{var t=Ot(e.slice(37)),n=new Uint8Array(t.length);for(e=0;e<t.length;++e)n[e]=t.charCodeAt(e);var r=n}catch{throw Error(`Converting base64 string to bytes failed.`)}else r=void 0;var i=r;if(i)return i;throw`both async and sync fetching of the wasm failed`}catch(e){C(e)}}function fe(){return l||typeof fetch!=`function`?Promise.resolve().then(function(){return de()}):fetch(le,{credentials:`same-origin`}).then(function(e){if(!e.ok)throw`failed to load wasm binary file at '`+le+`'`;return e.arrayBuffer()}).catch(function(){return de()})}function pe(e){for(;0<e.length;)e.shift()(n)}function me(e){if(e===void 0)return`_unknown`;e=e.replace(/[^a-zA-Z0-9_]/g,`$`);var t=e.charCodeAt(0);return 48<=t&&57>=t?`_`+e:e}function he(e,t){return e=me(e),function(){return t.apply(this,arguments)}}var w=[{},{value:void 0},{value:null},{value:!0},{value:!1}],ge=[];function _e(e){var t=Error,n=he(e,function(t){this.name=e,this.message=t,t=Error(t).stack,t!==void 0&&(this.stack=this.toString()+`
4
+ `+t.replace(/^Error(:[^\n]*)?\n/,``))});return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:this.name+`: `+this.message},n}var ve=void 0;function T(e){throw new ve(e)}var ye=e=>(e||T(`Cannot use deleted val. handle = `+e),w[e].value),be=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=ge.length?ge.pop():w.length;return w[t]={ga:1,value:e},t}},xe=void 0,Se=void 0;function E(e){for(var t=``;h[e];)t+=Se[h[e++]];return t}var Ce=[];function we(){for(;Ce.length;){var e=Ce.pop();e.M.$=!1,e.delete()}}var Te=void 0,Ee={};function D(e,t){for(t===void 0&&T(`ptr should not be undefined`);e.R;)t=e.ba(t),e=e.R;return t}var De={};function Oe(e){e=At(e);var t=E(e);return Mt(e),t}function ke(e,t){var n=De[e];return n===void 0&&T(t+` has unknown type `+Oe(e)),n}function Ae(){}var je=!1;function Me(e){--e.count.value,e.count.value===0&&(e.T?e.U.W(e.T):e.P.N.W(e.O))}function Ne(e,t,n){return t===n?e:n.R===void 0?null:(e=Ne(e,t,n.R),e===null?null:n.na(e))}var Pe={};function Fe(e,t){return t=D(e,t),Ee[t]}var Ie=void 0;function Le(e){throw new Ie(e)}function Re(e,t){return t.P&&t.O||Le(`makeClassHandle requires ptr and ptrType`),!!t.U!=!!t.T&&Le(`Both smartPtrType and smartPtr must be specified`),t.count={value:1},ze(Object.create(e,{M:{value:t}}))}function ze(e){return typeof FinalizationRegistry>`u`?(ze=e=>e,e):(je=new FinalizationRegistry(e=>{Me(e.M)}),ze=e=>{var t=e.M;return t.T&&je.register(e,{M:t},e),e},Ae=e=>{je.unregister(e)},ze(e))}var Be={};function Ve(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function He(e){return this.fromWireType(v[e>>2])}var Ue={},We={};function Ge(e,t,n){function r(t){t=n(t),t.length!==e.length&&Le(`Mismatched type converter count`);for(var r=0;r<e.length;++r)qe(e[r],t[r])}e.forEach(function(e){We[e]=t});var i=Array(t.length),a=[],o=0;t.forEach((e,t)=>{De.hasOwnProperty(e)?i[t]=De[e]:(a.push(e),Ue.hasOwnProperty(e)||(Ue[e]=[]),Ue[e].push(()=>{i[t]=De[e],++o,o===a.length&&r(i)}))}),a.length===0&&r(i)}function Ke(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError(`Unknown type size: `+e)}}function qe(e,t,n={}){if(!(`argPackAdvance`in t))throw TypeError(`registerType registeredInstance requires argPackAdvance`);var r=t.name;if(e||T(`type "`+r+`" must have a positive integer typeid pointer`),De.hasOwnProperty(e)){if(n.ua)return;T(`Cannot register type '`+r+`' twice`)}De[e]=t,delete We[e],Ue.hasOwnProperty(e)&&(t=Ue[e],delete Ue[e],t.forEach(e=>e()))}function Je(e){T(e.M.P.N.name+` instance already deleted`)}function Ye(){}function Xe(e,t,n){if(e[t].S===void 0){var r=e[t];e[t]=function(){return e[t].S.hasOwnProperty(arguments.length)||T(`Function '`+n+`' called with an invalid number of arguments (`+arguments.length+`) - expects one of (`+e[t].S+`)!`),e[t].S[arguments.length].apply(this,arguments)},e[t].S=[],e[t].S[r.Z]=r}}function Ze(e,t){n.hasOwnProperty(e)?(T(`Cannot register public name '`+e+`' twice`),Xe(n,e,e),n.hasOwnProperty(void 0)&&T(`Cannot register multiple overloads of a function with the same number of arguments (undefined)!`),n[e].S[void 0]=t):n[e]=t}function Qe(e,t,n,r,i,a,o,s){this.name=e,this.constructor=t,this.X=n,this.W=r,this.R=i,this.pa=a,this.ba=o,this.na=s,this.ja=[]}function $e(e,t,n){for(;t!==n;)t.ba||T(`Expected null or instance of `+n.name+`, got an instance of `+t.name),e=t.ba(e),t=t.R;return e}function et(e,t){return t===null?(this.ea&&T(`null is not a valid `+this.name),0):(t.M||T(`Cannot pass "`+ut(t)+`" as a `+this.name),t.M.O||T(`Cannot pass deleted object as a pointer of type `+this.name),$e(t.M.O,t.M.P.N,this.N))}function tt(e,t){if(t===null){if(this.ea&&T(`null is not a valid `+this.name),this.da){var n=this.fa();return e!==null&&e.push(this.W,n),n}return 0}if(t.M||T(`Cannot pass "`+ut(t)+`" as a `+this.name),t.M.O||T(`Cannot pass deleted object as a pointer of type `+this.name),!this.ca&&t.M.P.ca&&T(`Cannot convert argument of type `+(t.M.U?t.M.U.name:t.M.P.name)+` to parameter type `+this.name),n=$e(t.M.O,t.M.P.N,this.N),this.da)switch(t.M.T===void 0&&T(`Passing raw pointer to smart pointer is illegal`),this.Ba){case 0:t.M.U===this?n=t.M.T:T(`Cannot convert argument of type `+(t.M.U?t.M.U.name:t.M.P.name)+` to parameter type `+this.name);break;case 1:n=t.M.T;break;case 2:if(t.M.U===this)n=t.M.T;else{var r=t.clone();n=this.xa(n,be(function(){r.delete()})),e!==null&&e.push(this.W,n)}break;default:T(`Unsupporting sharing policy`)}return n}function nt(e,t){return t===null?(this.ea&&T(`null is not a valid `+this.name),0):(t.M||T(`Cannot pass "`+ut(t)+`" as a `+this.name),t.M.O||T(`Cannot pass deleted object as a pointer of type `+this.name),t.M.P.ca&&T(`Cannot convert argument of type `+t.M.P.name+` to parameter type `+this.name),$e(t.M.O,t.M.P.N,this.N))}function rt(e,t,n,r){this.name=e,this.N=t,this.ea=n,this.ca=r,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,t.R===void 0?(this.toWireType=r?et:nt,this.V=null):this.toWireType=tt}function it(e,t){n.hasOwnProperty(e)||Le(`Replacing nonexistant public symbol`),n[e]=t,n[e].Z=void 0}function at(e,t){var r=[];return function(){if(r.length=0,Object.assign(r,arguments),e.includes(`j`)){var i=n[`dynCall_`+e];i=r&&r.length?i.apply(null,[t].concat(r)):i.call(null,t)}else i=S.get(t).apply(null,r);return i}}function O(e,t){e=E(e);var n=e.includes(`j`)?at(e,t):S.get(t);return typeof n!=`function`&&T(`unknown function pointer with signature `+e+`: `+t),n}var ot=void 0;function k(e,t){function n(e){i[e]||De[e]||(We[e]?We[e].forEach(n):(r.push(e),i[e]=!0))}var r=[],i={};throw t.forEach(n),new ot(e+`: `+r.map(Oe).join([`, `]))}function st(e,t,n,r,i){var a=t.length;2>a&&T(`argTypes array size mismatch! Must at least get return value and 'this' types!`);var o=t[1]!==null&&n!==null,s=!1;for(n=1;n<t.length;++n)if(t[n]!==null&&t[n].V===void 0){s=!0;break}var c=t[0].name!==`void`,l=a-2,u=Array(l),d=[],f=[];return function(){if(arguments.length!==l&&T(`function `+e+` called with `+arguments.length+` arguments, expected `+l+` args!`),f.length=0,d.length=o?2:1,d[0]=i,o){var n=t[1].toWireType(f,this);d[1]=n}for(var a=0;a<l;++a)u[a]=t[a+2].toWireType(f,arguments[a]),d.push(u[a]);if(a=r.apply(null,d),s)Ve(f);else for(var p=o?1:2;p<t.length;p++){var m=p===1?n:u[p-2];t[p].V!==null&&t[p].V(m)}return n=c?t[0].fromWireType(a):void 0,n}}function ct(e,t){for(var n=[],r=0;r<e;r++)n.push(y[t+4*r>>2]);return n}function lt(e){4<e&&--w[e].ga===0&&(w[e]=void 0,ge.push(e))}function ut(e){if(e===null)return`null`;var t=typeof e;return t===`object`||t===`array`||t===`function`?e.toString():``+e}function dt(e,t){switch(t){case 2:return function(e){return this.fromWireType(b[e>>2])};case 3:return function(e){return this.fromWireType(x[e>>3])};default:throw TypeError(`Unknown float type: `+e)}}function ft(e,t,n){switch(t){case 0:return n?function(e){return m[e]}:function(e){return h[e]};case 1:return n?function(e){return g[e>>1]}:function(e){return _[e>>1]};case 2:return n?function(e){return v[e>>2]}:function(e){return y[e>>2]};default:throw TypeError(`Unknown integer type: `+e)}}function pt(e,t){for(var n=``,r=0;!(r>=t/2);++r){var i=g[e+2*r>>1];if(i==0)break;n+=String.fromCharCode(i)}return n}function mt(e,t,n){if(n===void 0&&(n=2147483647),2>n)return 0;n-=2;var r=t;n=n<2*e.length?n/2:e.length;for(var i=0;i<n;++i)g[t>>1]=e.charCodeAt(i),t+=2;return g[t>>1]=0,t-r}function ht(e){return 2*e.length}function gt(e,t){for(var n=0,r=``;!(n>=t/4);){var i=v[e+4*n>>2];if(i==0)break;++n,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023)):r+=String.fromCharCode(i)}return r}function _t(e,t,n){if(n===void 0&&(n=2147483647),4>n)return 0;var r=t;n=r+n-4;for(var i=0;i<e.length;++i){var a=e.charCodeAt(i);if(55296<=a&&57343>=a){var o=e.charCodeAt(++i);a=65536+((a&1023)<<10)|o&1023}if(v[t>>2]=a,t+=4,t+4>n)break}return v[t>>2]=0,t-r}function vt(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);55296<=r&&57343>=r&&++n,t+=4}return t}var yt={};function bt(e){var t=yt[e];return t===void 0?E(e):t}var xt=[];function St(e){var t=xt.length;return xt.push(e),t}function Ct(e,t){for(var n=Array(e),r=0;r<e;++r)n[r]=ke(y[t+4*r>>2],`parameter `+r);return n}var wt=[],Tt=[null,[],[]];ve=n.BindingError=_e(`BindingError`),n.count_emval_handles=function(){for(var e=0,t=5;t<w.length;++t)w[t]!==void 0&&++e;return e},n.get_first_emval=function(){for(var e=5;e<w.length;++e)if(w[e]!==void 0)return w[e];return null},xe=n.PureVirtualError=_e(`PureVirtualError`);for(var Et=Array(256),Dt=0;256>Dt;++Dt)Et[Dt]=String.fromCharCode(Dt);Se=Et,n.getInheritedInstanceCount=function(){return Object.keys(Ee).length},n.getLiveInheritedInstances=function(){var e=[],t;for(t in Ee)Ee.hasOwnProperty(t)&&e.push(Ee[t]);return e},n.flushPendingDeletes=we,n.setDelayFunction=function(e){Te=e,Ce.length&&Te&&Te(we)},Ie=n.InternalError=_e(`InternalError`),Ye.prototype.isAliasOf=function(e){if(!(this instanceof Ye&&e instanceof Ye))return!1;var t=this.M.P.N,n=this.M.O,r=e.M.P.N;for(e=e.M.O;t.R;)n=t.ba(n),t=t.R;for(;r.R;)e=r.ba(e),r=r.R;return t===r&&n===e},Ye.prototype.clone=function(){if(this.M.O||Je(this),this.M.aa)return this.M.count.value+=1,this;var e=ze,t=Object,n=t.create,r=Object.getPrototypeOf(this),i=this.M;return e=e(n.call(t,r,{M:{value:{count:i.count,$:i.$,aa:i.aa,O:i.O,P:i.P,T:i.T,U:i.U}}})),e.M.count.value+=1,e.M.$=!1,e},Ye.prototype.delete=function(){this.M.O||Je(this),this.M.$&&!this.M.aa&&T(`Object already scheduled for deletion`),Ae(this),Me(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Ye.prototype.isDeleted=function(){return!this.M.O},Ye.prototype.deleteLater=function(){return this.M.O||Je(this),this.M.$&&!this.M.aa&&T(`Object already scheduled for deletion`),Ce.push(this),Ce.length===1&&Te&&Te(we),this.M.$=!0,this},rt.prototype.qa=function(e){return this.ka&&(e=this.ka(e)),e},rt.prototype.ha=function(e){this.W&&this.W(e)},rt.prototype.argPackAdvance=8,rt.prototype.readValueFromPointer=He,rt.prototype.deleteObject=function(e){e!==null&&e.delete()},rt.prototype.fromWireType=function(e){function t(){return this.da?Re(this.N.X,{P:this.wa,O:n,U:this,T:e}):Re(this.N.X,{P:this,O:e})}var n=this.qa(e);if(!n)return this.ha(e),null;var r=Fe(this.N,n);if(r!==void 0)return r.M.count.value===0?(r.M.O=n,r.M.T=e,r.clone()):(r=r.clone(),this.ha(e),r);if(r=this.N.pa(n),r=Pe[r],!r)return t.call(this);r=this.ca?r.la:r.pointerType;var i=Ne(n,this.N,r.N);return i===null?t.call(this):this.da?Re(r.N.X,{P:r,O:i,U:this,T:e}):Re(r.N.X,{P:r,O:i})},ot=n.UnboundTypeError=_e(`UnboundTypeError`);var Ot=typeof atob==`function`?atob:function(e){var t=``,n=0;e=e.replace(/[^A-Za-z0-9\+\/=]/g,``);do{var r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++)),i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++)),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++)),o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++));r=r<<2|i>>4,i=(i&15)<<4|a>>2;var s=(a&3)<<6|o;t+=String.fromCharCode(r),a!==64&&(t+=String.fromCharCode(i)),o!==64&&(t+=String.fromCharCode(s))}while(n<e.length);return t},kt={l:function(e,t,n,r){C(`Assertion failed: `+(e?f(h,e):``)+`, at: `+[t?t?f(h,t):``:`unknown filename`,n,r?r?f(h,r):``:`unknown function`])},q:function(e,t,n){e=E(e),t=ke(t,`wrapper`),n=ye(n);var r=[].slice,i=t.N,a=i.X,o=i.R.X,s=i.R.constructor;for(var c in e=he(e,function(){i.R.ja.forEach(function(e){if(this[e]===o[e])throw new xe(`Pure virtual function `+e+` must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,`__parent`,{value:a}),this.__construct.apply(this,r.call(arguments))}),a.__construct=function(){this===a&&T(`Pass correct 'this' to __construct`);var e=s.implement.apply(void 0,[this].concat(r.call(arguments)));Ae(e);var t=e.M;e.notifyOnDestruction(),t.aa=!0,Object.defineProperties(this,{M:{value:t}}),ze(this),e=t.O,e=D(i,e),Ee.hasOwnProperty(e)?T(`Tried to register registered instance: `+e):Ee[e]=this},a.__destruct=function(){this===a&&T(`Pass correct 'this' to __destruct`),Ae(this);var e=this.M.O;e=D(i,e),Ee.hasOwnProperty(e)?delete Ee[e]:T(`Tried to unregister unregistered instance: `+e)},e.prototype=Object.create(a),n)e.prototype[c]=n[c];return be(e)},j:function(e){var t=Be[e];delete Be[e];var n=t.fa,r=t.W,i=t.ia,a=i.map(e=>e.ta).concat(i.map(e=>e.za));Ge([e],a,e=>{var a={};return i.forEach((t,n)=>{var r=e[n],o=t.ra,s=t.sa,c=e[n+i.length],l=t.ya,u=t.Aa;a[t.oa]={read:e=>r.fromWireType(o(s,e)),write:(e,t)=>{var n=[];l(u,e,c.toWireType(n,t)),Ve(n)}}}),[{name:t.name,fromWireType:function(e){var t={},n;for(n in a)t[n]=a[n].read(e);return r(e),t},toWireType:function(e,t){for(var i in a)if(!(i in t))throw TypeError(`Missing field: "`+i+`"`);var o=n();for(i in a)a[i].write(o,t[i]);return e!==null&&e.push(r,o),o},argPackAdvance:8,readValueFromPointer:He,V:r}]})},v:function(){},B:function(e,t,n,r,i){var a=Ke(n);t=E(t),qe(e,{name:t,fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){if(n===1)var r=m;else if(n===2)r=g;else if(n===4)r=v;else throw TypeError(`Unknown boolean type size: `+t);return this.fromWireType(r[e>>a])},V:null})},f:function(e,t,n,r,i,a,o,s,c,l,u,d,f){u=E(u),a=O(i,a),s&&=O(o,s),l&&=O(c,l),f=O(d,f);var p=me(u);Ze(p,function(){k(`Cannot construct `+u+` due to unbound types`,[r])}),Ge([e,t,n],r?[r]:[],function(t){if(t=t[0],r)var n=t.N,i=n.X;else i=Ye.prototype;t=he(p,function(){if(Object.getPrototypeOf(this)!==o)throw new ve(`Use 'new' to construct `+u);if(c.Y===void 0)throw new ve(u+` has no accessible constructor`);var e=c.Y[arguments.length];if(e===void 0)throw new ve(`Tried to invoke ctor of `+u+` with invalid number of parameters (`+arguments.length+`) - expected (`+Object.keys(c.Y).toString()+`) parameters instead!`);return e.apply(this,arguments)});var o=Object.create(i,{constructor:{value:t}});t.prototype=o;var c=new Qe(u,t,o,f,n,a,s,l);n=new rt(u,c,!0,!1),i=new rt(u+`*`,c,!1,!1);var d=new rt(u+` const*`,c,!1,!0);return Pe[e]={pointerType:i,la:d},it(p,t),[n,i,d]})},d:function(e,t,n,r,i,a,o){var s=ct(n,r);t=E(t),a=O(i,a),Ge([],[e],function(e){function r(){k(`Cannot call `+i+` due to unbound types`,s)}e=e[0];var i=e.name+`.`+t;t.startsWith(`@@`)&&(t=Symbol[t.substring(2)]);var c=e.N.constructor;return c[t]===void 0?(r.Z=n-1,c[t]=r):(Xe(c,t,i),c[t].S[n-1]=r),Ge([],s,function(e){return e=st(i,[e[0],null].concat(e.slice(1)),null,a,o),c[t].S===void 0?(e.Z=n-1,c[t]=e):c[t].S[n-1]=e,[]}),[]})},p:function(e,t,n,r,i,a){0<t||C();var o=ct(t,n);i=O(r,i),Ge([],[e],function(e){e=e[0];var n=`constructor `+e.name;if(e.N.Y===void 0&&(e.N.Y=[]),e.N.Y[t-1]!==void 0)throw new ve(`Cannot register multiple constructors with identical number of parameters (`+(t-1)+`) for class '`+e.name+`'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.N.Y[t-1]=()=>{k(`Cannot construct `+e.name+` due to unbound types`,o)},Ge([],o,function(r){return r.splice(1,0,null),e.N.Y[t-1]=st(n,r,null,i,a),[]}),[]})},a:function(e,t,n,r,i,a,o,s){var c=ct(n,r);t=E(t),a=O(i,a),Ge([],[e],function(e){function r(){k(`Cannot call `+i+` due to unbound types`,c)}e=e[0];var i=e.name+`.`+t;t.startsWith(`@@`)&&(t=Symbol[t.substring(2)]),s&&e.N.ja.push(t);var l=e.N.X,u=l[t];return u===void 0||u.S===void 0&&u.className!==e.name&&u.Z===n-2?(r.Z=n-2,r.className=e.name,l[t]=r):(Xe(l,t,i),l[t].S[n-2]=r),Ge([],c,function(r){return r=st(i,r,e,a,o),l[t].S===void 0?(r.Z=n-2,l[t]=r):l[t].S[n-2]=r,[]}),[]})},A:function(e,t){t=E(t),qe(e,{name:t,fromWireType:function(e){var t=ye(e);return lt(e),t},toWireType:function(e,t){return be(t)},argPackAdvance:8,readValueFromPointer:He,V:null})},n:function(e,t,n){n=Ke(n),t=E(t),qe(e,{name:t,fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:dt(t,n),V:null})},e:function(e,t,n,r,i){t=E(t),i===-1&&(i=4294967295),i=Ke(n);var a=e=>e;if(r===0){var o=32-8*n;a=e=>e<<o>>>o}n=t.includes(`unsigned`)?function(e,t){return t>>>0}:function(e,t){return t},qe(e,{name:t,fromWireType:a,toWireType:n,argPackAdvance:8,readValueFromPointer:ft(t,i,r!==0),V:null})},b:function(e,t,n){function r(e){e>>=2;var t=y;return new i(p,t[e+1],t[e])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];n=E(n),qe(e,{name:n,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ua:!0})},o:function(e,t){t=E(t);var n=t===`std::string`;qe(e,{name:t,fromWireType:function(e){var t=y[e>>2],r=e+4;if(n)for(var i=r,a=0;a<=t;++a){var o=r+a;if(a==t||h[o]==0){if(i=i?f(h,i,o-i):``,s===void 0)var s=i;else s+=`\0`,s+=i;i=o+1}}else{for(s=Array(t),a=0;a<t;++a)s[a]=String.fromCharCode(h[r+a]);s=s.join(``)}return Mt(e),s},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,i=typeof t==`string`;if(i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||T(`Cannot pass non-string to std::string`),n&&i){var a=0;for(r=0;r<t.length;++r){var o=t.charCodeAt(r);127>=o?a++:2047>=o?a+=2:55296<=o&&57343>=o?(a+=4,++r):a+=3}r=a}else r=t.length;if(a=jt(4+r+1),o=a+4,y[a>>2]=r,n&&i){if(i=o,o=r+1,r=h,0<o){o=i+o-1;for(var s=0;s<t.length;++s){var c=t.charCodeAt(s);if(55296<=c&&57343>=c){var l=t.charCodeAt(++s);c=65536+((c&1023)<<10)|l&1023}if(127>=c){if(i>=o)break;r[i++]=c}else{if(2047>=c){if(i+1>=o)break;r[i++]=192|c>>6}else{if(65535>=c){if(i+2>=o)break;r[i++]=224|c>>12}else{if(i+3>=o)break;r[i++]=240|c>>18,r[i++]=128|c>>12&63}r[i++]=128|c>>6&63}r[i++]=128|c&63}}r[i]=0}}else if(i)for(i=0;i<r;++i)s=t.charCodeAt(i),255<s&&(Mt(o),T(`String has UTF-16 code units that do not fit in 8 bits`)),h[o+i]=s;else for(i=0;i<r;++i)h[o+i]=t[i];return e!==null&&e.push(Mt,a),a},argPackAdvance:8,readValueFromPointer:He,V:function(e){Mt(e)}})},i:function(e,t,n){if(n=E(n),t===2)var r=pt,i=mt,a=ht,o=()=>_,s=1;else t===4&&(r=gt,i=_t,a=vt,o=()=>y,s=2);qe(e,{name:n,fromWireType:function(e){for(var n=y[e>>2],i=o(),a,c=e+4,l=0;l<=n;++l){var u=e+4+l*t;(l==n||i[u>>s]==0)&&(c=r(c,u-c),a===void 0?a=c:(a+=`\0`,a+=c),c=u+t)}return Mt(e),a},toWireType:function(e,r){typeof r!=`string`&&T(`Cannot pass non-string to C++ string type `+n);var o=a(r),c=jt(4+o+t);return y[c>>2]=o>>s,i(r,c+4,o+t),e!==null&&e.push(Mt,c),c},argPackAdvance:8,readValueFromPointer:He,V:function(e){Mt(e)}})},k:function(e,t,n,r,i,a){Be[e]={name:E(t),fa:O(n,r),W:O(i,a),ia:[]}},h:function(e,t,n,r,i,a,o,s,c,l){Be[e].ia.push({oa:E(t),ta:n,ra:O(r,i),sa:a,za:o,ya:O(s,c),Aa:l})},C:function(e,t){t=E(t),qe(e,{va:!0,name:t,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(e,t,n,r,i){e=xt[e],t=ye(t),n=bt(n);var a=[];return y[r>>2]=be(a),e(t,n,a,i)},t:function(e,t,n,r){e=xt[e],t=ye(t),n=bt(n),e(t,n,null,r)},g:lt,m:function(e,t){var n=Ct(e,t),r=n[0];t=r.name+`_$`+n.slice(1).map(function(e){return e.name}).join(`_`)+`$`;var i=wt[t];if(i!==void 0)return i;var a=Array(e-1);return i=St((t,i,o,s)=>{for(var c=0,l=0;l<e-1;++l)a[l]=n[l+1].readValueFromPointer(s+c),c+=n[l+1].argPackAdvance;for(t=t[i].apply(t,a),l=0;l<e-1;++l)n[l+1].ma&&n[l+1].ma(a[l]);if(!r.va)return r.toWireType(o,t)}),wt[t]=i},D:function(e){4<e&&(w[e].ga+=1)},r:function(e){Ve(ye(e)),lt(e)},c:function(){C(``)},x:function(e,t,n){h.copyWithin(e,t,t+n)},w:function(e){var t=h.length;if(e>>>=0,2147483648<e)return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var i=Math;r=Math.max(e,r),i=i.min.call(i,2147483648,r+(65536-r%65536)%65536);a:{try{u.grow(i-p.byteLength+65535>>>16),ee();var a=1;break a}catch{}a=void 0}if(a)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(e,t,n,r){for(var i=0,a=0;a<n;a++){var o=y[t>>2],l=y[t+4>>2];t+=8;for(var u=0;u<l;u++){var d=h[o+u],p=Tt[e];d===0||d===10?((e===1?s:c)(f(p,0)),p.length=0):p.push(d)}i+=l}return y[r>>2]=i,0}};(function(){function e(e){n.asm=e.exports,u=n.asm.E,ee(),S=n.asm.J,ne.unshift(n.asm.F),ae--,n.monitorRunDependencies&&n.monitorRunDependencies(ae),ae==0&&(oe!==null&&(clearInterval(oe),oe=null),se&&(e=se,se=null,e()))}function t(t){e(t.instance)}function r(e){return fe().then(function(e){return WebAssembly.instantiate(e,a)}).then(function(e){return e}).then(e,function(e){c(`failed to asynchronously prepare wasm: `+e),C(e)})}var a={a:kt};if(ae++,n.monitorRunDependencies&&n.monitorRunDependencies(ae),n.instantiateWasm)try{return n.instantiateWasm(a,e)}catch(e){c(`Module.instantiateWasm callback failed with error: `+e),i(e)}return(function(){return l||typeof WebAssembly.instantiateStreaming!=`function`||ce(le)||typeof fetch!=`function`?r(t):fetch(le,{credentials:`same-origin`}).then(function(e){return WebAssembly.instantiateStreaming(e,a).then(t,function(e){return c(`wasm streaming compile failed: `+e),c(`falling back to ArrayBuffer instantiation`),r(t)})})})().catch(i),{}})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.F).apply(null,arguments)};var At=n.___getTypeName=function(){return(At=n.___getTypeName=n.asm.G).apply(null,arguments)};n.__embind_initialize_bindings=function(){return(n.__embind_initialize_bindings=n.asm.H).apply(null,arguments)};var jt=n._malloc=function(){return(jt=n._malloc=n.asm.I).apply(null,arguments)},Mt=n._free=function(){return(Mt=n._free=n.asm.K).apply(null,arguments)};n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.L).apply(null,arguments)};var Nt;se=function e(){Nt||Pt(),Nt||(se=e)};function Pt(){function e(){if(!Nt&&(Nt=!0,n.calledRun=!0,!d)){if(pe(ne),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun==`function`&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();re.unshift(e)}pe(re)}}if(!(0<ae)){if(n.preRun)for(typeof n.preRun==`function`&&(n.preRun=[n.preRun]);n.preRun.length;)ie();pe(te),0<ae||(n.setStatus?(n.setStatus(`Running...`),setTimeout(function(){setTimeout(function(){n.setStatus(``)},1),e()},1)):e())}}if(n.preInit)for(typeof n.preInit==`function`&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return Pt(),t.ready})})()})),X,uc,dc,fc,pc,Z,mc,hc,gc,_c,Q,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec=c((()=>{X=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}({}),uc=function(e){return e[e.BorderBox=0]=`BorderBox`,e[e.ContentBox=1]=`ContentBox`,e}({}),dc=function(e){return e[e.Width=0]=`Width`,e[e.Height=1]=`Height`,e}({}),fc=function(e){return e[e.Inherit=0]=`Inherit`,e[e.LTR=1]=`LTR`,e[e.RTL=2]=`RTL`,e}({}),pc=function(e){return e[e.Flex=0]=`Flex`,e[e.None=1]=`None`,e[e.Contents=2]=`Contents`,e}({}),Z=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}({}),mc=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}({}),hc=function(e){return e[e.WebFlexBasis=0]=`WebFlexBasis`,e}({}),gc=function(e){return e[e.Column=0]=`Column`,e[e.ColumnReverse=1]=`ColumnReverse`,e[e.Row=2]=`Row`,e[e.RowReverse=3]=`RowReverse`,e}({}),_c=function(e){return e[e.Column=0]=`Column`,e[e.Row=1]=`Row`,e[e.All=2]=`All`,e}({}),Q=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}({}),vc=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}({}),yc=function(e){return e[e.Undefined=0]=`Undefined`,e[e.Exactly=1]=`Exactly`,e[e.AtMost=2]=`AtMost`,e}({}),bc=function(e){return e[e.Default=0]=`Default`,e[e.Text=1]=`Text`,e}({}),xc=function(e){return e[e.Visible=0]=`Visible`,e[e.Hidden=1]=`Hidden`,e[e.Scroll=2]=`Scroll`,e}({}),Sc=function(e){return e[e.Static=0]=`Static`,e[e.Relative=1]=`Relative`,e[e.Absolute=2]=`Absolute`,e}({}),Cc=function(e){return e[e.Undefined=0]=`Undefined`,e[e.Point=1]=`Point`,e[e.Percent=2]=`Percent`,e[e.Auto=3]=`Auto`,e}({}),wc=function(e){return e[e.NoWrap=0]=`NoWrap`,e[e.Wrap=1]=`Wrap`,e[e.WrapReverse=2]=`WrapReverse`,e}({}),Tc={ALIGN_AUTO:X.Auto,ALIGN_FLEX_START:X.FlexStart,ALIGN_CENTER:X.Center,ALIGN_FLEX_END:X.FlexEnd,ALIGN_STRETCH:X.Stretch,ALIGN_BASELINE:X.Baseline,ALIGN_SPACE_BETWEEN:X.SpaceBetween,ALIGN_SPACE_AROUND:X.SpaceAround,ALIGN_SPACE_EVENLY:X.SpaceEvenly,BOX_SIZING_BORDER_BOX:uc.BorderBox,BOX_SIZING_CONTENT_BOX:uc.ContentBox,DIMENSION_WIDTH:dc.Width,DIMENSION_HEIGHT:dc.Height,DIRECTION_INHERIT:fc.Inherit,DIRECTION_LTR:fc.LTR,DIRECTION_RTL:fc.RTL,DISPLAY_FLEX:pc.Flex,DISPLAY_NONE:pc.None,DISPLAY_CONTENTS:pc.Contents,EDGE_LEFT:Z.Left,EDGE_TOP:Z.Top,EDGE_RIGHT:Z.Right,EDGE_BOTTOM:Z.Bottom,EDGE_START:Z.Start,EDGE_END:Z.End,EDGE_HORIZONTAL:Z.Horizontal,EDGE_VERTICAL:Z.Vertical,EDGE_ALL:Z.All,ERRATA_NONE:mc.None,ERRATA_STRETCH_FLEX_BASIS:mc.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:mc.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:mc.AbsolutePercentAgainstInnerSize,ERRATA_ALL:mc.All,ERRATA_CLASSIC:mc.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:hc.WebFlexBasis,FLEX_DIRECTION_COLUMN:gc.Column,FLEX_DIRECTION_COLUMN_REVERSE:gc.ColumnReverse,FLEX_DIRECTION_ROW:gc.Row,FLEX_DIRECTION_ROW_REVERSE:gc.RowReverse,GUTTER_COLUMN:_c.Column,GUTTER_ROW:_c.Row,GUTTER_ALL:_c.All,JUSTIFY_FLEX_START:Q.FlexStart,JUSTIFY_CENTER:Q.Center,JUSTIFY_FLEX_END:Q.FlexEnd,JUSTIFY_SPACE_BETWEEN:Q.SpaceBetween,JUSTIFY_SPACE_AROUND:Q.SpaceAround,JUSTIFY_SPACE_EVENLY:Q.SpaceEvenly,LOG_LEVEL_ERROR:vc.Error,LOG_LEVEL_WARN:vc.Warn,LOG_LEVEL_INFO:vc.Info,LOG_LEVEL_DEBUG:vc.Debug,LOG_LEVEL_VERBOSE:vc.Verbose,LOG_LEVEL_FATAL:vc.Fatal,MEASURE_MODE_UNDEFINED:yc.Undefined,MEASURE_MODE_EXACTLY:yc.Exactly,MEASURE_MODE_AT_MOST:yc.AtMost,NODE_TYPE_DEFAULT:bc.Default,NODE_TYPE_TEXT:bc.Text,OVERFLOW_VISIBLE:xc.Visible,OVERFLOW_HIDDEN:xc.Hidden,OVERFLOW_SCROLL:xc.Scroll,POSITION_TYPE_STATIC:Sc.Static,POSITION_TYPE_RELATIVE:Sc.Relative,POSITION_TYPE_ABSOLUTE:Sc.Absolute,UNIT_UNDEFINED:Cc.Undefined,UNIT_POINT:Cc.Point,UNIT_PERCENT:Cc.Percent,UNIT_AUTO:Cc.Auto,WRAP_NO_WRAP:wc.NoWrap,WRAP_WRAP:wc.Wrap,WRAP_WRAP_REVERSE:wc.WrapReverse}}));function Dc(e){function t(e,t,n){let r=e[t];e[t]=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.call(this,r,...t)}}for(let n of[`setPosition`,`setMargin`,`setFlexBasis`,`setWidth`,`setHeight`,`setMinWidth`,`setMinHeight`,`setMaxWidth`,`setMaxHeight`,`setPadding`,`setGap`]){let r={[Cc.Point]:e.Node.prototype[n],[Cc.Percent]:e.Node.prototype[`${n}Percent`],[Cc.Auto]:e.Node.prototype[`${n}Auto`]};t(e.Node.prototype,n,function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];let o=i.pop(),s,c;if(o===`auto`)s=Cc.Auto,c=void 0;else if(typeof o==`object`)s=o.unit,c=o.valueOf();else if(s=typeof o==`string`&&o.endsWith(`%`)?Cc.Percent:Cc.Point,c=parseFloat(o),o!==void 0&&!Number.isNaN(o)&&Number.isNaN(c))throw Error(`Invalid value ${o} for ${n}`);if(!r[s])throw Error(`Failed to execute "${n}": Unsupported unit '${o}'`);return c===void 0?r[s].call(this,...i):r[s].call(this,...i,c)})}function n(t){return e.MeasureCallback.implement({measure:function(){let{width:e,height:n}=t(...arguments);return{width:e??NaN,height:n??NaN}}})}t(e.Node.prototype,`setMeasureFunc`,function(e,t){return t?e.call(this,n(t)):this.unsetMeasureFunc()});function r(t){return e.DirtiedCallback.implement({dirtied:t})}return t(e.Node.prototype,`setDirtiedFunc`,function(e,t){e.call(this,r(t))}),t(e.Config.prototype,`free`,function(){e.Config.destroy(this)}),t(e.Node,`create`,(t,n)=>n?e.Node.createWithConfig(n):e.Node.createDefault()),t(e.Node.prototype,`free`,function(){e.Node.destroy(this)}),t(e.Node.prototype,`freeRecursive`,function(){for(let e=0,t=this.getChildCount();e<t;++e)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,`calculateLayout`,function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:fc.LTR;return e.call(this,t,n,r)}),{Config:e.Config,Node:e.Node,...Tc}}var Oc=c((()=>{Ec()}));async function kc(){return Dc(await cc())}var Ac=c((()=>{lc(),Oc(),Ec()}));function jc(){return Fc}function Mc(e){Fc=e}function Nc(e){Ic=e}function Pc(){return Ic}var Fc,Ic,Lc=c((()=>{}));function Rc(e,t){return e?typeof e==`number`?e:typeof e==`string`&&e.endsWith(`%`)?(t??=1,parseFloat(e)/100*t):Number.isNaN(parseFloat(e))?0:parseFloat(e):0}function zc(e){return typeof e==`number`?`number`:e.endsWith(`%`)?`percentage`:Number.isNaN(parseInt(e,10))?`keyword`:`number`}var Bc=c((()=>{}));function Vc(e,t,n){return(t[e]-n[e])/2}function Hc(e,t,n,r,i){let a=t===`percentage`?r[n]-i[n]:1;return Rc(e)*a}function Uc(e,t,n){let[r,i]=e,a=zc(r),o=zc(i),s={x:void 0,y:void 0};switch(r){case`top`:s.y=0;break;case`bottom`:s.y=t.height-n.height;break;case`center`:i===`left`||i===`right`?s.y=Vc(`height`,t,n):s.x=Vc(`width`,t,n);break;case`left`:s.x=0;break;case`right`:s.x=t.width-n.width;break;default:{let e=i===`top`||i===`bottom`||o!==`keyword`?`width`:`height`,c=e===`width`?`x`:`y`;s[c]=Hc(r,a,e,t,n)}}switch(i){case`top`:s.y=0;break;case`bottom`:s.y=t.height-n.height;break;case`center`:s.y===void 0?s.y=Vc(`height`,t,n):s.x=Vc(`width`,t,n);break;case`left`:s.x=0;break;case`right`:s.x=t.width-n.width;break;default:{let e=s.y===void 0?`y`:`x`;s[e]=Hc(i,o,e===`y`?`height`:`width`,t,n)}}return s}var Wc=c((()=>{Bc()}));function Gc(e,t,n,r){let i=e===`right`||e===`bottom`,a=n===`percentage`?t*r:t;return i?-a:a}function Kc(e,t,n){let[r,i,a,o]=e,s=zc(r),c=zc(i),l=zc(a),u=zc(o);if(c===`keyword`||u===`keyword`)throw Error(`Invalid objectPosition value: second and fourth values must be numbers or percentages`);if(s!==`keyword`||l!==`keyword`)throw Error(`Invalid objectPosition value: first and third values must be keywords`);let d=Uc([r,a],t,n),f={...d},p=Rc(i),m=Rc(o);return r===`left`||r===`right`?f.x=d.x+Gc(r,p,c,n.width):(r===`top`||r===`bottom`)&&(f.y=d.y+Gc(r,p,c,n.height)),a===`left`||a===`right`?f.x=d.x+Gc(a,m,u,n.width):(a===`top`||a===`bottom`)&&(f.y=d.y+Gc(a,m,u,n.height)),f}var qc=c((()=>{Bc(),Wc()}));function Jc(e,t,n){let r=e[0],i={x:void 0,y:void 0};switch(r){case`top`:i.y=0,i.x=(t.width-n.width)/2;break;case`bottom`:i.y=t.height-n.height,i.x=(t.width-n.width)/2;break;case`left`:i.x=0,i.y=(t.height-n.height)/2;break;case`right`:i.x=t.width-n.width,i.y=(t.height-n.height)/2;break;case`center`:i.x=(t.width-n.width)/2,i.y=(t.height-n.height)/2;break;default:{let e=zc(r)===`percentage`?t.width-n.width:1;i.x=Rc(r)*e,i.y=(t.height-n.height)/2}}return i}var Yc=c((()=>{Bc()}));function Xc(e,t,n){if(!e)return{x:0,y:0};let r=typeof e==`string`?e.split(` `):[e];switch(r.length){case 1:return Jc(r,t,n);case 2:return Uc(r,t,n);case 4:return Kc(r,t,n);default:throw Error(`Invalid objectPosition value: must have 1, 2, or 4 values`)}}var Zc=c((()=>{Wc(),qc(),Yc()}));function Qc(e){let t=e.target.getLocalBounds(),n=e.target.scale;return $c.width=Math.abs(t.width*n.x),$c.height=Math.abs(t.height*n.y),$c}var $c,el=c((()=>{$c={width:0,height:0}}));function tl(e,t,n=.49){return Math.abs(e-t)<n}var nl=c((()=>{}));function rl(e,t=0,n={}){let r,i,a=n.maxWait?n.maxWait:t,o,s,c,l=0,u=!!n.leading,d=`maxWait`in n,f=n.trailing??!0,p=t!==0&&typeof globalThis.requestAnimationFrame==`function`;if(typeof e!=`function`)throw TypeError(`Expected a function`);function m(t){let n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function h(e,t){return p?(typeof s==`number`&&globalThis.cancelAnimationFrame(s),globalThis.requestAnimationFrame(e)):setTimeout(e,t)}function g(e){if(p){globalThis.cancelAnimationFrame(e);return}clearTimeout(e)}function _(e){return l=e,s=h(b,t),u?m(e):o}function v(e){let n=e-(c||0),r=e-l,i=t-n;return d?Math.min(i,a-r):i}function y(e){let n=e-(c||0),r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function b(){let e=Date.now();if(y(e))return x(e);s=h(b,v(e))}function x(e){return s=void 0,f&&r?m(e):(r=i=void 0,o)}function ee(){s!==void 0&&g(s),l=0,r=c=i=s=void 0}function S(){return s===void 0?o:x(Date.now())}function te(){return s!==void 0}function ne(...e){let n=Date.now(),a=y(n);if(r=e,i=this,c=n,a){if(s===void 0)return _(c);if(d)return s=h(b,t),m(c)}return s===void 0&&(s=h(b,t)),o}return ne.cancel=ee,ne.flush=S,ne.pending=te,ne}function il(e,t,n={}){let r=n.leading??!0,i=n.trailing??!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return rl(e,t,{leading:r,trailing:i,maxWait:t})}var al=c((()=>{}));function ol(e,t){let n=`getComputed${t.charAt(0).toUpperCase()+t.slice(1)}`;return{top:e.yoga[n](Z.Top),right:e.yoga[n](Z.Right),bottom:e.yoga[n](Z.Bottom),left:e.yoga[n](Z.Left)}}function sl(e,t){let{width:n,height:r}=e.computedLayout,i=ol(e,`margin`),a=ol(e,`border`),o=ol(e,`padding`),s=t.get(`margin`);s.outer.x=-i.left,s.outer.y=-i.top,s.outer.width=n+i.left+i.right,s.outer.height=r+i.top+i.bottom,s.inner.x=0,s.inner.y=0,s.inner.width=n,s.inner.height=r;let c=t.get(`border`);c.outer.x=0,c.outer.y=0,c.outer.width=n,c.outer.height=r,c.inner.x=a.left,c.inner.y=a.top,c.inner.width=n-a.left-a.right,c.inner.height=r-a.top-a.bottom;let l=t.get(`padding`);l.outer.copyFrom(c.inner),l.inner.x=o.left+a.left,l.inner.y=o.top+a.top,l.inner.width=n-o.left-o.right-a.left-a.right,l.inner.height=r-o.top-o.bottom-a.top-a.bottom,cl(e,t)}function cl(e,n){var r;let i=n.get(`flex`),a=n.get(`padding`);i.outer.copyFrom(a.inner);let o=new t.Bounds,s=e.yoga.getChildCount();for(let n=0;n<s;n++){let r=e.yoga.getChild(n).getComputedLayout();o.addRect(new t.Rectangle(r.left,r.top,r.width,r.height))}let c=e.yoga.getFlexDirection();c===gc.Column||c===gc.ColumnReverse?(o.width=i.outer.width,o.x=i.outer.x):(o.height=i.outer.height,o.y=i.outer.y),(r=i.inner)==null||r.copyFrom(o.rectangle),n.get(`content`).outer.copyFrom(o.rectangle)}var ll,ul=c((()=>{Ac(),ll=(e=>(e.Margin=`margin`,e.Padding=`padding`,e.Border=`border`,e.Flex=`flex`,e.Content=`content`,e))(ll||{})}));function dl(e,t,n){return`rgb(${Math.round(e[0]+(t[0]-e[0])*n)},${Math.round(e[1]+(t[1]-e[1])*n)},${Math.round(e[2]+(t[2]-e[2])*n)})`}var fl,pl,ml,hl,gl=c((()=>{ul(),fl=Object.defineProperty,pl=(e,t,n)=>t in e?fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ml=(e,t,n)=>pl(e,typeof t==`symbol`?t:t+``,n),hl=class extends t.Container{constructor(){super(),ml(this,`graphics`),ml(this,`heatGraphics`),this.graphics=new Map,Object.values(ll).forEach(e=>{let n=new t.Graphics;this.graphics.set(e,n),this.addChild(n)}),this.heatGraphics=new t.Graphics,this.addChild(this.heatGraphics)}init(e){let{target:t,alpha:n,heat:r}=e;e.heatOnly||Object.entries(e).forEach(([e,t])=>{if(e===`target`||e===`alpha`||e===`heat`||e===`heatOnly`)return;t=t;let r=this.graphics.get(e);if(!(!r||!t.draw))if(t.inner)this.drawCutBox(r,t.outer,t.inner,t.color,n);else{let{x:e,y:i,width:a,height:o}=t.outer;r.rect(e,i,a,Math.max(o,1)),r.fill({color:t.color,alpha:n})}});let{invalidationCount:i,draw:a}=r;if(i>0&&a){let t=Math.min(i/20,1),n=e[ll.Margin],r=dl([255,255,0],[255,0,0],t);this.heatGraphics.rect(n.outer.x,n.outer.y,n.outer.width,n.outer.height),this.heatGraphics.fill({color:r,alpha:Math.min(.3,t)}),this.heatGraphics.stroke({color:r,alpha:Math.max(.3,t),pixelLine:!0})}this.position.set(t.x,t.y)}reset(){this.graphics.forEach(e=>e.clear()),this.heatGraphics.clear(),this.removeFromParent()}drawCutBox(e,t,n,r,i){let{x:a,y:o,width:s,height:c}=t,{x:l,y:u,width:d,height:f}=n;e.rect(a,o,s,c),e.fill({color:r,alpha:i}),e.rect(l,u,d,f),e.cut()}}})),_l=u({DebugRenderer:()=>xl}),vl,yl,bl,xl,Sl=c((()=>{ul(),gl(),vl=Object.defineProperty,yl=(e,t,n)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t,n)=>yl(e,typeof t==`symbol`?t:t+``,n),xl=class{constructor(){bl(this,`holder`,new t.Container),bl(this,`regions`,new Map),bl(this,`colors`,{[ll.Margin]:`#B68655`,[ll.Padding]:`#BAC57F`,[ll.Border]:`#E7C583`,[ll.Content]:`#89B1BE`,[ll.Flex]:`#6E28D9`}),bl(this,`alpha`,.75),Object.values(ll).forEach(e=>{this.regions.set(e,{outer:new t.Rectangle,inner:new t.Rectangle})}),this.holder.__devtoolIgnore=!0,this.holder.__devtoolIgnoreChildren=!0,this.holder.eventMode=`none`,this.holder.interactiveChildren=!1}reset(){for(let e=this.holder.children.length-1;e>=0;e--){let n=this.holder.children[e];t.BigPool.return(n)}}render(e){sl(e,this.regions);let n=Object.values(ll).reduce((t,n)=>{let r=this.regions.get(n);if(!r)return t;let i=`debugDraw${n.charAt(0).toUpperCase()}${n.slice(1)}`;return t[n]={...r,color:this.colors[n],draw:e._styles.custom[i]??!0},t},{}),{left:r,top:i}=e.computedLayout,a=e.target.getGlobalPosition(),o=t.BigPool.get(hl,{...n,target:{x:a.x+r,y:a.y+i},alpha:this.alpha,heat:{invalidationCount:e._modificationCount,draw:e._styles.custom.debugHeat!==!1},heatOnly:!e._styles.custom.debug});this.holder.addChildAt(o,0)}destroy(){this.reset(),this.holder.destroy(),this.regions.clear()}}})),Cl,wl,Tl,El,Dl=c((()=>{Ac(),Lc(),Zc(),el(),nl(),al(),Cl=Object.defineProperty,wl=(e,t,n)=>t in e?Cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tl=(e,t,n)=>wl(e,typeof t==`symbol`?t:t+``,n),El=class{constructor(){Tl(this,`autoUpdate`,!0),Tl(this,`_debugEnabled`,!1),Tl(this,`_debugRenderer`,null),Tl(this,`_throttledUpdateSize`),Tl(this,`_throttle`,100),Tl(this,`_modificationCount`,50)}async init(e){Mc(await kc()),Nc(jc().Config.create());let{layout:t}=e??{},{autoUpdate:n,enableDebug:r,throttle:i,debugModificationCount:a}=t??{};r&&this.enableDebug(!0),n!==void 0&&(this.autoUpdate=n),this._throttle=i??this._throttle,this._throttledUpdateSize=il(e=>this._updateSize(e),this._throttle,{leading:!0,trailing:!0}),this._modificationCount=a??this._modificationCount}async enableDebug(e=!this._debugEnabled){if(this._debugEnabled=e,!this._debugRenderer){let e=await Promise.resolve().then(()=>(Sl(),_l));this._debugRenderer=new e.DebugRenderer}this._debugEnabled||this._debugRenderer.reset()}update(e){this._debugEnabled&&this._debugRenderer&&(this._debugRenderer.reset(),e.addChild(this._debugRenderer.holder)),this._throttle===0?this._updateSize(e):this._throttledUpdateSize(e),this.updateLayout(e)}prerender({container:e}){this.autoUpdate&&this.update(e)}_updateSize(e){if(e.destroyed)return;let t=e._layout;if(t){let n=t.style;if(n.width===`intrinsic`||n.height===`intrinsic`){let e=Qc(t);if(n.width===`intrinsic`){let n=t.yoga.getWidth().value;tl(n,e.width)||(t.yoga.setWidth(e.width),t.invalidateRoot())}if(n.height===`intrinsic`){let n=t.yoga.getHeight().value;tl(n,e.height)||(t.yoga.setHeight(e.height),t.invalidateRoot())}}if(!e.visible){t._onChildRemoved();return}}for(let t=0;t<e.children.length;t++)this._updateSize(e.children[t])}updateLayout(e){var t,n;let r=e._layout;if(e.visible){if(r){let i=r.yoga,a=r.style,o=e.parent?.isOverflowContainer;if(!e.parent?._layout&&!o&&r._isDirty&&(r._isDirty=!1,i.calculateLayout(a.width,a.height,i.getDirection()??fc.LTR)),i.hasNewLayout()||r._forceUpdate){i.markLayoutSeen(),r._forceUpdate=!1,r._computedLayout=i.getComputedLayout();let n=Xc(a.transformOrigin,r._computedLayout,{width:0,height:0});r._computedPixiLayout={...e.computeLayoutData(r._computedLayout),originX:n.x,originY:n.y},e.emit(`layout`,r),(t=e.onLayout)==null||t.call(e,r),e._onUpdate()}this._debugEnabled&&(r._styles.custom.debug||r._modificationCount>this._modificationCount&&r._styles.custom.debugHeat!==!1)&&((n=this._debugRenderer)==null||n.render(r))}for(let t=0;t<e.children.length;t++)this.updateLayout(e.children[t])}}destroy(){!this._debugEnabled&&this._debugRenderer&&this._debugRenderer.destroy()}},Tl(El,`extension`,{type:[t.ExtensionType.WebGLSystem,t.ExtensionType.WebGPUSystem],name:`layout`})}));function Ol(e){if(e in Bl)return Bl[e];throw Error(`"${e}" is not a valid value for alignContent`)}function kl(e){if(e in Vl)return Vl[e];throw Error(`"${e}" is not a valid value for alignItems`)}function Al(e){if(e in Hl)return Hl[e];throw Error(`"${e}" is not a valid value for alignSelf`)}function jl(e){if(e in Ul)return Ul[e];throw Error(`"${e}" is not a valid value for boxSizing`)}function Ml(e){if(e in Wl)return Wl[e];throw Error(`"${e}" is not a valid value for direction`)}function Nl(e){if(e in Gl)return Gl[e];throw Error(`"${e}" is not a valid value for display`)}function Pl(e){if(e in Kl)return Kl[e];throw Error(`"${e}" is not a valid value for flexDirection`)}function Fl(e){if(e in ql)return ql[e];throw Error(`"${e}" is not a valid value for flexWrap`)}function Il(e){if(e in Jl)return Jl[e];throw Error(`"${e}" is not a valid value for justifyContent`)}function Ll(e){if(e in Yl)return Yl[e];throw Error(`"${e}" is not a valid value for overflow`)}function Rl(e){if(e in Xl)return Xl[e];throw Error(`"${e}" is not a valid value for position`)}function zl(e,t={}){for(let[n,r]of Object.entries(t))try{let t=Zl[n];t&&t(e,r)}catch{}if(t.width!==void 0){let n=t.left!==void 0&&t.right!==void 0?`auto`:t.width;e.setWidth(n)}if(t.height!==void 0){let n=t.top!==void 0&&t.bottom!==void 0?`auto`:t.height;e.setHeight(n)}}var Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql=c((()=>{Ac(),Bl={"flex-start":X.FlexStart,"flex-end":X.FlexEnd,center:X.Center,stretch:X.Stretch,"space-between":X.SpaceBetween,"space-around":X.SpaceAround,"space-evenly":X.SpaceEvenly},Vl={"flex-start":X.FlexStart,"flex-end":X.FlexEnd,center:X.Center,stretch:X.Stretch,baseline:X.Baseline},Hl={auto:X.Auto,"flex-start":X.FlexStart,"flex-end":X.FlexEnd,center:X.Center,stretch:X.Stretch,baseline:X.Baseline},Ul={"border-box":uc.BorderBox,"content-box":uc.ContentBox},Wl={ltr:fc.LTR,rtl:fc.RTL},Gl={none:pc.None,flex:pc.Flex,contents:pc.Contents},Kl={row:gc.Row,column:gc.Column,"row-reverse":gc.RowReverse,"column-reverse":gc.ColumnReverse},ql={wrap:wc.Wrap,nowrap:wc.NoWrap,"wrap-reverse":wc.WrapReverse},Jl={"flex-start":Q.FlexStart,"flex-end":Q.FlexEnd,center:Q.Center,"space-between":Q.SpaceBetween,"space-around":Q.SpaceAround,"space-evenly":Q.SpaceEvenly},Yl={visible:xc.Visible,hidden:xc.Hidden,scroll:xc.Scroll},Xl={absolute:Sc.Absolute,relative:Sc.Relative,static:Sc.Static},Zl={alignContent:(e,t)=>e.setAlignContent(Ol(t)),alignItems:(e,t)=>e.setAlignItems(kl(t)),alignSelf:(e,t)=>e.setAlignSelf(Al(t)),aspectRatio:(e,t)=>e.setAspectRatio(t),borderBottomWidth:(e,t)=>e.setBorder(Z.Bottom,t),borderEndWidth:(e,t)=>e.setBorder(Z.End,t),borderLeftWidth:(e,t)=>e.setBorder(Z.Left,t),borderRightWidth:(e,t)=>e.setBorder(Z.Right,t),borderStartWidth:(e,t)=>e.setBorder(Z.Start,t),borderTopWidth:(e,t)=>e.setBorder(Z.Top,t),borderWidth:(e,t)=>e.setBorder(Z.All,t),borderInlineWidth:(e,t)=>e.setBorder(Z.Horizontal,t),borderBlockWidth:(e,t)=>e.setBorder(Z.Vertical,t),bottom:(e,t)=>e.setPosition(Z.Bottom,t),boxSizing:(e,t)=>e.setBoxSizing(jl(t)),direction:(e,t)=>e.setDirection(Ml(t)),display:(e,t)=>e.setDisplay(Nl(t)),end:(e,t)=>e.setPosition(Z.End,t),flex:(e,t)=>e.setFlex(t),flexBasis:(e,t)=>e.setFlexBasis(t),flexDirection:(e,t)=>e.setFlexDirection(Pl(t)),rowGap:(e,t)=>e.setGap(_c.Row,t),gap:(e,t)=>e.setGap(_c.All,t),columnGap:(e,t)=>e.setGap(_c.Column,t),flexGrow:(e,t)=>e.setFlexGrow(t),flexShrink:(e,t)=>e.setFlexShrink(t),flexWrap:(e,t)=>e.setFlexWrap(Fl(t)),height:(e,t)=>e.setHeight(t),justifyContent:(e,t)=>e.setJustifyContent(Il(t)),left:(e,t)=>e.setPosition(Z.Left,t),margin:(e,t)=>e.setMargin(Z.All,t),marginBottom:(e,t)=>e.setMargin(Z.Bottom,t),marginEnd:(e,t)=>e.setMargin(Z.End,t),marginLeft:(e,t)=>e.setMargin(Z.Left,t),marginRight:(e,t)=>e.setMargin(Z.Right,t),marginStart:(e,t)=>e.setMargin(Z.Start,t),marginTop:(e,t)=>e.setMargin(Z.Top,t),marginInline:(e,t)=>e.setMargin(Z.Horizontal,t),marginBlock:(e,t)=>e.setMargin(Z.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(Ll(t)),padding:(e,t)=>e.setPadding(Z.All,t),paddingBottom:(e,t)=>e.setPadding(Z.Bottom,t),paddingEnd:(e,t)=>e.setPadding(Z.End,t),paddingLeft:(e,t)=>e.setPadding(Z.Left,t),paddingRight:(e,t)=>e.setPadding(Z.Right,t),paddingStart:(e,t)=>e.setPadding(Z.Start,t),paddingTop:(e,t)=>e.setPadding(Z.Top,t),paddingInline:(e,t)=>e.setPadding(Z.Horizontal,t),paddingBlock:(e,t)=>e.setPadding(Z.Vertical,t),position:(e,t)=>e.setPositionType(Rl(t)),right:(e,t)=>e.setPosition(Z.Right,t),start:(e,t)=>e.setPosition(Z.Start,t),top:(e,t)=>e.setPosition(Z.Top,t),insetInline:(e,t)=>e.setPosition(Z.Horizontal,t),insetBlock:(e,t)=>e.setPosition(Z.Vertical,t),inset:(e,t)=>e.setPosition(Z.All,t),width:(e,t)=>e.setWidth(t)}}));function $l(e,n){let r={...e._styles.custom,...n};r={...su.defaultStyle.shared,...e.target instanceof t.ViewContainer||r.isLeaf||su.defaultStyle.shared.isLeaf?su.defaultStyle.leaf:su.defaultStyle.container,...r};let i={...r},a=r.width===`intrinsic`,o=r.height===`intrinsic`;if(a||o){let{width:t,height:n}=Qc(e);a&&(i.width=t),o&&(i.height=n)}return{custom:r,yoga:i}}var eu=c((()=>{cu(),el()}));function tu(e,t){let n=t.layout,r;if(!n&&t.isOverflowContainer&&(r=t,n=r.parent?.layout,t=r.parent),!n)return!1;let i=e.yoga.getParent();i&&i.removeChild(e.yoga);let a=nu(e,t,r);return a===-1?!1:(n.yoga.getChildCount(),n.yoga.insertChild(e.yoga,a),!0)}function nu(e,t,n){let r=e.target,i=0;if(n){for(let e of t.children){if(e===n){for(let e of n.children)if(!(!e.layout||!e.visible)){if(e===r)return i;i++}return-1}e.layout&&e.visible&&i++}return-1}for(let e of t.children)if(!(!e.layout||!e.visible)){if(e===r)return i;i++}return-1}function ru(e){let t=e.yoga.getParent();t&&t.removeChild(e.yoga)}var iu=c((()=>{})),au,ou,$,su,cu=c((()=>{Lc(),Ql(),eu(),iu(),au=Object.defineProperty,ou=(e,t,n)=>t in e?au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t,n)=>ou(e,typeof t==`symbol`?t:t+``,n),su=class{constructor({target:e}){$(this,`yoga`),$(this,`target`),$(this,`destroyed`,!1),$(this,`_isDirty`,!1),$(this,`_computedPixiLayout`,{x:0,y:0,offsetX:0,offsetY:0,scaleX:1,scaleY:1,originX:0,originY:0}),$(this,`_computedLayout`,{left:0,right:0,top:0,bottom:0,width:0,height:0}),$(this,`_styles`,{custom:{},yoga:{}}),$(this,`_modificationCount`,0),$(this,`_forceUpdate`,!1),$(this,`hasParent`,!1),$(this,`_trackedStyleKeys`,[`borderRadius`,`borderColor`,`backgroundColor`,`objectFit`,`objectPosition`,`transformOrigin`,`isLeaf`]),this.target=e,this.yoga=jc().Node.create(Pc()),e.on(`added`,this._onChildAdded,this),e.on(`removed`,this._onChildRemoved,this),e.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(e){let t=$l(this,e),n=JSON.stringify(this._styles.custom)!==JSON.stringify(t.custom),r=JSON.stringify(this._styles.yoga)!==JSON.stringify(t.yoga),i=n||r,a=this._trackedStyleKeys.some(e=>t.custom[e]!==this._styles.custom[e]);this._styles=t,a&&(this._forceUpdate=!0),i&&(zl(this.yoga,this._styles.yoga),this.target._onUpdate(),this.invalidateRoot())}invalidateRoot(e){let t=this.getRoot(e);t.destroyed||(t._layout._isDirty=!0,t._onUpdate(),this._modificationCount++)}forceUpdate(){this._forceUpdate=!0}getRoot(e){let t=e||this.target;for(;t.parent?._layout||t.parent?.isOverflowContainer;)t=t.parent,t.isOverflowContainer&&(t=t.parent);return t}_onChildAdded(e){this.hasParent||tu(this,e)!==!1&&(this.hasParent=!0,this.invalidateRoot())}_onChildRemoved(e){this.hasParent&&(this.hasParent=!1,this.invalidateRoot(e),ru(this))}destroy(){this.destroyed||(this.destroyed=!0,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)}},$(su,`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 lu(e,t,n){let r=1,i=1;switch(e){case`fill`:r=t.width/n.width,i=t.height/n.height;break;case`contain`:{let e=Math.min(t.width/n.width,t.height/n.height);r=e,i=e;break}case`cover`:{let e=Math.max(t.width/n.width,t.height/n.height);r=e,i=e;break}case`none`:r=1,i=1;break;case`scale-down`:{let e=Math.min(1,t.width/n.width,t.height/n.height);r=e,i=e;break}}return{offsetScaleX:r,offsetScaleY:i}}var uu=c((()=>{}));function du(e,n,r,i){let a=e.getLocalBounds(),{offsetScaleX:o,offsetScaleY:s}=lu(e.layout.style.objectFit||r,n,a),c={width:a.width*o,height:a.height*s},{x:l,y:u}=Xc(e.layout.style.objectPosition,n,c);i?(l+=a.width*o*i._x,u+=a.height*s*i._y):(l-=a.minX*o,u-=a.minY*s);let d=e.layout.style.applySizeDirectly;return(d===!0||d==null&&(e instanceof t.TilingSprite||e instanceof t.NineSliceSprite))&&(e.width=a.width*o,e.height=a.height*s,o=1,s=1),{x:n.left,y:n.top,offsetX:l,offsetY:u,scaleX:o,scaleY:s}}var fu=c((()=>{uu(),Zc()})),pu,mu=c((()=>{cu(),fu(),pu=Object.getOwnPropertyDescriptor(t.Container.prototype,`visible`),t.extensions.mixin(t.Container,{_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=t.Container.prototype.updateLocalTransform,Object.defineProperty(t.Container.prototype,`visible`,pu));return}if(!this._layout){this._layout=new su({target:this}),Object.defineProperty(t.Container.prototype,`visible`,{...pu,set(e){pu.set.call(this,e),this.layout&&(e&&this.parent?this.layout._onChildAdded(this.parent):this.layout._onChildRemoved())}});for(let e of this.children)e.layout&&e.visible&&(e.layout._onChildRemoved(),e.layout._onChildAdded(this));this.parent&&this.visible&&this._layout._onChildAdded(this.parent)}this._layout.setStyle(e),this.updateLocalTransform=this.updateLocalTransformWithLayout,this._onUpdate()},updateLocalTransformWithLayout(){let e=this._didContainerChangeTick;if(this._didLocalTransformChangeId===e)return;this._didLocalTransformChangeId=e;let{x:t,y:n,offsetX:r,offsetY:i,scaleX:a,scaleY:o,originX:s,originY:c}=this._layout._computedPixiLayout,l=this.localTransform,{rotation:u,skew:d,scale:f,position:p}=this,m=u+d._y,h=u-d._x,g=Math.cos(m)*f._x,_=Math.sin(m)*f._x,v=-Math.sin(h)*f._y,y=Math.cos(h)*f._y,b=p._x+t-s*g-c*v,x=p._y+n-s*_-c*y;l.a=g*a,l.b=_*a,l.c=v*o,l.d=y*o,l.tx=b+(r*g+i*v)+s,l.ty=x+(r*_+i*y)+c},computeLayoutData(e){let{isLeaf:t}=this._layout._styles.custom;return t?du(this,e,`fill`):{x:e.left,y:e.top,offsetX:0,offsetY:0,scaleX:1,scaleY:1}}})})),hu,gu,_u=c((()=>{uu(),Zc(),hu=new t.Point(0,0),t.extensions.mixin(t.AbstractText,{computeLayoutData(e){let t=this._style;hu.copyFrom(this.scale),this.scale=1,t.wordWrap&&(t.wordWrapWidth=e.width);let n=this.getLocalBounds(),{offsetScaleX:r,offsetScaleY:i}=lu(this.layout.style.objectFit||`scale-down`,e,n);t.wordWrap&&(t.wordWrapWidth=e.width/Math.min(1,Math.max(r,i))),n=this.getLocalBounds();let a={width:n.width*r,height:n.height*i},{x:o,y:s}=Xc(this.layout.style.objectPosition,e,a);return o+=n.width*r*this.anchor._x,s+=n.height*i*this.anchor._y,this.layout.style.applySizeDirectly===!0&&(this.width=n.width*r,this.height=n.height*i),this.scale.copyFrom(hu),{x:e.left,y:e.top,offsetX:o,offsetY:s,scaleX:r,scaleY:i}}}),gu=Object.getOwnPropertyDescriptor(t.AbstractText.prototype,`text`),Object.defineProperty(t.AbstractText.prototype,`text`,{...gu,set(e){var t;let n=gu.get.call(this);gu.set.call(this,e),n!==e&&((t=this.layout)==null||t.forceUpdate())}})})),vu=c((()=>{fu(),t.extensions.mixin(t.ViewContainer,{computeLayoutData(e){return du(this,e,`fill`,this._anchor)}})})),yu=u({DebugRenderer:()=>xl,Layout:()=>su,LayoutSystem:()=>El,applyStyle:()=>zl,formatStyles:()=>$l,getNumberFromStyle:()=>Rc,getPixiSize:()=>Qc,getTypeFromStyle:()=>zc,getYoga:()=>jc,getYogaConfig:()=>Pc,nearlyEqual:()=>tl,onChildAdded:()=>tu,onChildRemoved:()=>ru,setYoga:()=>Mc,setYogaConfig:()=>Nc}),bu=c((()=>{Dl(),mu(),_u(),vu(),Sl(),cu(),Ql(),eu(),Bc(),el(),nl(),iu(),Lc(),t.extensions.add(El)})),xu=async(e,n,r)=>{let{components:i,autoRegister:a,enableLayout:o,...s}=r??{};o!==!1&&await Promise.resolve().then(()=>(bu(),yu)),i?(a!==!1&&da(),Object.entries(i).forEach(([e,t])=>{z(e,t)})):da();let c=new t.Application;await c.init({resizeTo:e,autoStart:!1,antialias:!0,...s});let l=await W(n);if(l.tag!=`Canvas`)throw Error(`Canvas is required`);l.render(e,c);let{backgroundColor:u}=H(l.props,{backgroundColor:`black`});return c.renderer.background.color=u(),{canvasElement:l,app:c}};function Su(e){return Y.getCurrentIndexSignal(e)}function Cu(e){return Y.getFocusedElementSignal(e)}function wu(e,t){let n=Y.getCurrentIndexSignal(e),r=Y.getFocusedElementSignal(e);if(!n||!r)return console.warn(`FocusContainer with id "${e}" not found`),()=>{};let i=R(()=>{t(n(),r())});return()=>{i.subscription?.unsubscribe()}}var Tu={linear:ai,easeIn:oi,easeInOut:ci,easeOut:si,circIn:li,circInOut:di,circOut:ui,backIn:fi,backInOut:mi,backOut:pi,anticipate:hi,bounceIn:bi,bounceInOut:xi,bounceOut:yi},Eu=class{constructor(e,n,r,i,a,o,s=0){this.x0=e,this.y0=n,this.x1=r,this.y1=i,this.x2=a,this.y2=o,this.focalPoint=s,this.gradient=null,this.texture=null,this.size=600,this.size=e;let c=this.size*.5;this.canvas=t.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(c*(1-s),c,0,c,c,c-.5))}addColorStop(e,t){this.gradient&&this.gradient.addColorStop(e,t)}render({translate:e}={}){let{x0:n,y0:r,x1:i,y1:a,x2:o,y2:s,focalPoint:c}=this,l=this.size;if(this.ctx&&this.gradient){this.ctx.fillStyle=this.gradient,this.ctx.fillRect(0,0,l,l),this.texture=new t.Texture({source:new t.ImageSource({resource:this.canvas,addressModeU:`clamp-to-edge`,addressModeV:`clamp-to-edge`})});let c=new t.Matrix,u=Math.sqrt((i-n)*(i-n)+(a-r)*(a-r)),d=Math.sqrt((o-n)*(o-n)+(s-r)*(s-r)),f=Math.atan2(a-r,i-n),p=u/l,m=d/l;c.rotate(-f),c.scale(p,m),e&&c.translate(e.x,e.y),this.transform=c}return{texture:this.texture,matrix:this.transform}}};function Du(e){if(`count`in e){let t=e.count();if(!Number.isFinite(t)||t<=0)return null;let n=e.min??0;return{min:n,max:n+t-1,size:t}}let t=e.min,n=e.max;return!Number.isFinite(t)||!Number.isFinite(n)||n<t?null:{min:t,max:n,size:n-t+1}}function Ou(e,t,n,r){if(r===`clamp`)return Math.min(n.max,Math.max(n.min,e));if(r===`none`)return e<n.min||e>n.max?t:e;let i=n.size;if(i<=0)return t;let a=((e-n.min)%i+i)%i;return n.min+a}function ku(e,t,n=`wrap`){let r=r=>{let i=e(),a=Du(t);if(!a)return;let o=Ou(r,i,a,n);o!==i&&e.set(o)};return{next:t=>r(e()+t),set:e=>r(e)}}return e.ArraySubject=jn,e.Button=rc,e.ButtonState=nc,e.Canvas=Va,e.Circle=qa,e.Container=Ua,e.ControlsBase=tn,e.ControlsDirective=va,e.DOMContainer=$s,e.DOMElement=Qs,e.DOMSprite=tc,e.DisplayObject=za,e.Drag=ka,e.Drop=Oa,e.EVENTS=Ra,e.Easing=Tu,e.Ellipse=Ja,e.Flash=Fa,e.FocusContainer=oc,e.FocusManager=ac,e.FogVisibility=La,e.GamepadControls=wn,e.Graphics=Wa,Object.defineProperty(e,`Howl`,{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(e,`Howler`,{enumerable:!0,get:function(){return Ca.Howler}}),e.Input=nn,e.Joystick=ic,e.JoystickControls=En,e.KeyboardControls=on,e.Mesh=Za,e.Navigation=sc,e.NineSliceSprite=Ys,e.ObjectSubject=Nn,e.ParticlesEmitter=ns,e.RadialGradient=Eu,e.Rect=Ka,e.Scene=ro,e.Scheduler=ya,e.Shake=Pa,e.Sound=Ta,e.Sprite=os,e.Svg=Xa,e.Text=cs,e.TilingSprite=ls,e.Transition=Aa,e.Triangle=Ya,Object.defineProperty(e,`Utils`,{enumerable:!0,get:function(){return Rt}}),e.Video=ss,e.Viewport=Js,e.ViewportFollow=Sa,e.animatedSequence=ea,e.animatedSignal=$i,e.bootstrapCanvas=xu,e.checkDependencies=fa,e.computed=L,e.cond=_a,e.createComponent=V,e.createTabindexNavigator=ku,Object.defineProperty(e,`currentSubscriptionsTracker`,{enumerable:!0,get:function(){return Qa}}),e.effect=R,e.focusManager=Y,e.h=W,e.isAnimatedSignal=Qi,e.isArraySubject=Mn,e.isComputed=In,e.isElement=na,e.isElementFrozen=ma,e.isObjectSubject=Pn,e.isObservable=_t,e.isPrimitive=ra,e.isSignal=I,e.isTrigger=ja,e.linkedSignal=Ln,e.loop=ga,e.mount=eo,Object.defineProperty(e,`mountTracker`,{enumerable:!0,get:function(){return $a}}),e.on=Na,e.registerAllComponents=da,e.registerComponent=z,e.signal=F,e.tick=to,e.trigger=Ma,e.untracked=Rn,e.useDefineProps=ba,e.useFocusChange=wu,e.useFocusIndex=Su,e.useFocusedElement=Cu,e.useProps=H,e.waitForDependencies=pa,e})({},PIXI);
5
+ //# sourceMappingURL=index.global.js.map